@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
@@ -0,0 +1,7 @@
1
+ import{Ob as d}from"./cli-1.1.9-22gp283h.mjs";import{GW as y,HW as U,JW as f,KW as h,LW as c,QW as i}from"./cli-1.1.9-s52npgq0.mjs";import{v4 as O,x4 as b}from"./cli-1.1.9-4qctf8p1.mjs";import{P7 as B,Q7 as M}from"./cli-1.1.9-914mh2gv.mjs";import{g9 as I,n9 as u}from"./cli-1.1.9-e1ak8jhn.mjs";import{H_ as V,J_ as v}from"./cli-1.1.9-8gkjdbxs.mjs";import{Mka as G,Pka as D,pka as H,qka as m,uka as T}from"./cli-1.1.9-1b1mw6v2.mjs";import{kla as q,lla as S,rla as F}from"./cli-1.1.9-tze0002b.mjs";import{esa as p,wsa as s}from"./cli-1.1.9-mp2pqq66.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
+
3
+ `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
+ `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
+ `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
+ `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
+ export{R as Fb,k as Gb,a as Hb,YJ as Ib};
@@ -0,0 +1,2 @@
1
+ import{Jra as M,Kra as Y}from"./cli-1.1.9-r5gk3nve.mjs";import{Ysa as W}from"./cli-1.1.9-fws7k6ak.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 sla,N as tla,X as ula,_ as vla,j as wla,U as xla,I as yla,S as zla,T as Ala,c as Bla,L as Cla,w as Dla,z as Ela,O as Fla,x as Gla,k as Hla};
@@ -0,0 +1,39 @@
1
+ import{$Q as L,QR as N,aR as w,cS as d,cx as B,ex as U}from"./cli-1.1.9-bftwnbgn.mjs";import{bba as z,iba as F,mda as P}from"./cli-1.1.9-8gkjdbxs.mjs";import{eha as H,kha as v}from"./cli-1.1.9-k4gthvh4.mjs";import{Ysa as j}from"./cli-1.1.9-fws7k6ak.mjs";async function V(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await V(I);return{type:"text",value:b(O)}}function b(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
2
+
3
+ `;h+=`**Model:** ${Z}
4
+ `,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
5
+ `,h+=`
6
+ `;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
7
+
8
+ `,h+=`| Category | Tokens | Percentage |
9
+ `,h+=`|----------|--------|------------|
10
+ `;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
11
+ `}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
12
+ `}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
13
+ `}h+=`
14
+ `}if(X.length>0){h+=`### MCP Tools
15
+
16
+ `,h+=`| Tool | Server | Tokens |
17
+ `,h+=`|------|--------|--------|
18
+ `;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
19
+ `;h+=`
20
+ `}if(Q.length>0){h+=`### Custom Agents
21
+
22
+ `,h+=`| Agent Type | Source | Tokens |
23
+ `,h+=`|------------|--------|--------|
24
+ `;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
25
+ `}h+=`
26
+ `}if(W.length>0){h+=`### Memory Files
27
+
28
+ `,h+=`| Type | Path | Tokens |
29
+ `,h+=`|------|------|--------|
30
+ `;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
31
+ `;h+=`
32
+ `}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
33
+
34
+ `,h+=`| Skill | Source | Tokens |
35
+ `,h+=`|-------|--------|--------|
36
+ `;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
37
+ `;h+=`
38
+ `}return h}var A=j(()=>{U();w();v();d();F();P()});
39
+ export{V as uh,g as vh,A as wh};
@@ -0,0 +1,2 @@
1
+ import{$n as k,_n as g,rG as h,tG as I}from"./cli-1.1.9-bftwnbgn.mjs";import{BZ as S,F1 as _,a1 as s}from"./cli-1.1.9-txs7wza6.mjs";import{i4 as c,j4 as m,k4 as T}from"./cli-1.1.9-5cr2dpgf.mjs";import{Lea as b,hfa as P}from"./cli-1.1.9-8gkjdbxs.mjs";import{Usa as D}from"./cli-1.1.9-fws7k6ak.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
+ export{E as aa};
@@ -0,0 +1,4 @@
1
+ import{Rg as g,Sg as Py}from"./cli-1.1.9-840ckwq8.mjs";import{Ki as s,Mi as d,Ni as $y}from"./cli-1.1.9-fygnj03b.mjs";import{Bt as Xy,HT as py,KL as Q,LL as Ry,LP as l,Mq as f,TL as n,Vq as u,ar as A,bM as vy,do as L,fo as V,ho as Y,iM as x,ir as Qy,ko as D,lT as c,lo as M,mM as Ny,ml as F,mo as C,oo as T,py as q,ql as Iy,qy as Zy,tr as E,tt as O,uo as Ky,xr as Wy}from"./cli-1.1.9-bftwnbgn.mjs";import{OX as i,PX as Oy}from"./cli-1.1.9-kdgc8zvn.mjs";import{QY as _,RY as a,SY as t,WY as Uy}from"./cli-1.1.9-ezkc7ag5.mjs";import{aZ as o,gZ as hy}from"./cli-1.1.9-kzqqvms6.mjs";import{Y0 as k,Z0 as Jy}from"./cli-1.1.9-txs7wza6.mjs";import{C8 as Z,L6 as m,M6 as B,V8 as zy,k7 as qy}from"./cli-1.1.9-914mh2gv.mjs";import{p9 as p,q9 as ry}from"./cli-1.1.9-xa48sv5y.mjs";import{D$ as H,Jda as b,K$ as wy,Lea as R,M$ as X,N$ as Sy,Oda as K,Oea as w,Xda as ky,hfa as v,n$ as h,xba as j,zba as jy}from"./cli-1.1.9-8gkjdbxs.mjs";import{Nha as z,Zha as Gy}from"./cli-1.1.9-fzh3d8n1.mjs";import{Mka as U,Pka as yy}from"./cli-1.1.9-1b1mw6v2.mjs";v();function Vy(y){let r=w().numStartups;R((G)=>{let S=G.tipsHistory??{};if(S[y]===r)return G;return{...G,tipsHistory:{...S,[y]:r}}})}function N(y){let r=w(),G=r.tipsHistory?.[y];if(!G)return 1/0;return r.numStartups-G}ry();yy();Xy();ky();hy();Jy();Py();Zy();Iy();zy();Oy();v();Qy();jy();Wy();wy();Ky();qy();Sy();Ny();vy();Ry();py();Gy();$y();Uy();var W;async function Hy(){if(W!==void 0)return W;let y=await n();return W=Q in y,W}async function P(y,r,G){if(!await Hy())return!1;if(x(`${y}@${Q}`))return!1;let{bashTools:S}=r??{};if(G.cli&&S?.size){if(G.cli.some((I)=>S.has(I)))return!0}if(G.filePath&&r?.readFileState){if(E(r.readFileState).some(($)=>G.filePath.test($)))return!0}return!1}var by=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return w().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=w();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=w(),r=K(),G=Boolean(y.lastPlanModeUse),S=Boolean(r?.permissions?.defaultMode);return G&&!S}catch(y){return U(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=w();return await H()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${q("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${q("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await h()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${q("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=w();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(c())return!1;return await i()>=2}},{id:"terminal-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=w();if(j.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>j.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=w();return Boolean((j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!o())return!1;let y=w();return!(j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return w().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&p.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>X()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>K().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return w().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${j.terminal==="vscode"?"code":j.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!L())return!1;if(X()!=="macos")return!1;switch(j.terminal){case"vscode":return!await C();case"cursor":return!await D();case"windsurf":return!await M();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(V())return!1;if((await Y()).length!==0)return!1;return(await T()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!w().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!w().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return w().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>X()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>l()&&w().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return w().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=w(),G=m()==="opusplan",S=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return G&&S>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
+ ${k("suggestion",y.theme)(`/plugin install frontend-design@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
+ ${k("suggestion",y.theme)(`/plugin install vercel@${Q}`)}`},cooldownSessions:3,isRelevant:async(y)=>P("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let G=k("suggestion",y.theme)("/effort high");return z("tengu_tide_elm","off")==="copy_b"?`Use ${G} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${G} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!f(B()))return!1;if(b("policySettings")?.effortLevel!==void 0)return!1;if(A()!==void 0)return!1;let y=u();if(y==="high"||y==="max")return!1;return z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${r("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${r('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;return z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_timber_lark","off")==="copy_b"?`Use ${r("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${r("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!Z())return!1;if(!F())return!1;return z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let r=k("claude",y.theme),G=t();return G?`Share Claudin and earn ${r(a(G))} of extra usage · ${r("/passes")}`:`You have free guest passes to share · ${r("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(w().hasVisitedPasses)return!1;let{eligible:r}=_();return r}},{id:"overage-credit",content:async(y)=>{let r=k("claude",y.theme),G=s(),S=G?d(G):null;if(!S)return"";return`${r(`${S} in extra usage, on us`)} · third-party apps · ${r("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>g()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return w().numStartups>5}}],my=[];function By(){let r=K().spinnerTipsOverride;if(!r?.tips?.length)return[];return r.tips.map((G,S)=>({id:`custom-tip-${S}`,content:async()=>G,cooldownSessions:0,isRelevant:async()=>!0}))}async function kr(y){let G=K().spinnerTipsOverride,S=By();if(G?.excludeDefault&&S.length>0)return S;let I=[...by,...my],$=await Promise.all(I.map((J)=>J.isRelevant(y)));return[...I.filter((J,e)=>$[e]).filter((J)=>N(J.id)>=J.cooldownSessions),...S]}
4
+ export{Vy as _a,N as $a,kr as ab};
@@ -0,0 +1,2 @@
1
+ import{rG as U,sG as A,wG as V,xG as E}from"./cli-1.1.9-bftwnbgn.mjs";import{YW as W,eX as G}from"./cli-1.1.9-06k8vem7.mjs";import{F1 as O,_0 as F,a1 as H}from"./cli-1.1.9-txs7wza6.mjs";import{i4 as q,j4 as K,k4 as L}from"./cli-1.1.9-5cr2dpgf.mjs";import{l4 as I}from"./cli-1.1.9-ax8tkq65.mjs";import{V8 as p,v8 as Q}from"./cli-1.1.9-914mh2gv.mjs";import{Lea as M,Oea as N,hfa as $}from"./cli-1.1.9-8gkjdbxs.mjs";import{Usa as Z,Ysa as _}from"./cli-1.1.9-fws7k6ak.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
+ export{b as bc,d as cc,P as dc};
@@ -0,0 +1,50 @@
1
+ import{xc as zc,yc as on}from"./cli-1.1.9-gmb2wpqf.mjs";import{Ac as jt,Bc as Vt,Cc as Oc,Ec as jn,zc as Vh}from"./cli-1.1.9-9bqrz8qn.mjs";import{Fc as ft,Ic as Dn}from"./cli-1.1.9-a5z84t63.mjs";import{$p as pu,IG as bu,JG as ln,KG as Ou,LG as zu,MG as Ru,Mp as Mu,NG as rn,Np as Tu,Op as Uu,Pp as Eu,Qp as nc,Rp as Ct,Sp as Xh,Tp as Pu,Up as Bu,Vp as Ln,Wp as Nh,Yp as ou,Zp as ac,ay as bc,cq as ku,cy as Pn,dq as An,eI as eh,eq as Lu,fI as jc,fq as Qu,gq as Nu,hG as Xt,hI as In,hq as Ju,iG as sh,iI as xn,iq as at,jq as Ah,jx as Cc,kq as gn,kx as lc,lq as Jh,lx as rc,mx as wc,nq as Gu,nx as En,oq as mc,pr as yc,qq as Su,qr as Un,rG as S,sG as Dc,tG as Bn}from"./cli-1.1.9-bftwnbgn.mjs";import{BY as Mn,NY as uc,OY as Tn,zY as D}from"./cli-1.1.9-ezkc7ag5.mjs";import{F1 as Eh,_0 as F,a1 as y}from"./cli-1.1.9-txs7wza6.mjs";import{G2 as Ph,H2 as Bh,I2 as Ih,J2 as xh,K2 as Dh,L2 as xc,O2 as jh,S2 as oh,T2 as cc,U2 as ph}from"./cli-1.1.9-ewst4gvt.mjs";import{h4 as yt,i4 as n,j4 as z,k4 as Tt}from"./cli-1.1.9-5cr2dpgf.mjs";import{l4 as Qt}from"./cli-1.1.9-ax8tkq65.mjs";import{K4 as Pt,L4 as qu}from"./cli-1.1.9-se5tezpj.mjs";import{$4 as Uh,T6 as Dt,b5 as Ic,k7 as Wn}from"./cli-1.1.9-914mh2gv.mjs";import{$fa as pt,Bfa as kh,Ffa as Th,Kfa as Oh,Lfa as yu,Mfa as Cu,Nfa as Ut,Ofa as zh,Pfa as lu,Qfa as bh,Rfa as ru,Sfa as wu,Tfa as Cn,Ufa as Lh,Vfa as gu,Wfa as Qh,Yfa as Xu,_fa as hc,ifa as tc,jfa as $t,kfa as Hn,lfa as ot,mfa as x,ofa as B,pfa as xt,pga as Kn,rfa as Jt,sfa as Fh,tfa as ut,ufa as ct,v_ as qt,w_ as Sn,yfa as nt,zfa as _h}from"./cli-1.1.9-8gkjdbxs.mjs";import{Hla as Et,zla as o}from"./cli-1.1.9-jmwr69v2.mjs";import{Usa as Lt,Vsa as Gn,Ysa as I}from"./cli-1.1.9-fws7k6ak.mjs";function pc(t,h=Ch,u){let a=x().find((w)=>w.provider==="openai"&&w.extras?.githubToken!==void 0);if(a){if(!ct(a.id,{provider:"openai",name:a.name,baseUrl:u||a.baseUrl,model:a.model||h,apiKey:t,extras:{...a.extras,githubToken:t}}))return{mode:"failed"};return nt(a.id),{mode:"updated"}}if(!ut({provider:"openai",name:"GitHub Copilot",baseUrl:u||oc,model:h,apiKey:t,extras:{githubToken:t}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function vh({onDone:t,onBack:h,onChangeAPIKey:u}){let a=jh()?.trim()?"already-authed":"menu",[C,w]=j.useState(a),[f,A]=j.useState(null),[$,R]=j.useState(""),[X,J]=j.useState(0),[Q,H]=j.useState(null),V=j.useCallback(async(i,Z=Ch,mt,N)=>{let P=oh(i,mt,N?.enterpriseDomain);if(!P.success){A(P.warning??"Could not save token to secure storage."),w("error");return}if(pc(i,Z,N?.baseUrl).mode==="failed"){A("Could not save the GitHub Copilot provider profile."),w("error");return}Uh(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),O=j.useCallback(async(i)=>{w("device-busy"),A(null),H(null);try{let Z=await Bh({domain:i});H({user_code:Z.user_code,verification_uri:Z.verification_uri}),await xh(Z.verification_uri);let mt=await Ih(Z.device_code,{initialInterval:Z.interval,timeoutSeconds:Z.expires_in,domain:i}),N=await Dh(mt,{domain:i});await V(N.token,Ch,mt,{baseUrl:N.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:i})}catch(Z){A(Z instanceof Error?Z.message:String(Z)),w("error")}},[V]);if(C==="already-authed")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot"}),n(y,{children:"You are already signed in to GitHub Copilot."}),n(y,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),n(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"back"}],onChange:(Z)=>{if(Z==="sign-in-again"){O();return}if(Z==="enterprise"){w("enterprise-domain");return}if(h){h();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="enterprise-domain")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Enterprise sign-in"}),n(y,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:">"}),n(Xt,{value:$,onChange:R,onSubmit:()=>{let Z=Ph($);if(!Z){O();return}O(Z)},onExit:()=>w(a),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:X,onChangeCursorOffset:J})]}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(C==="error"&&f)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"red",children:f}),n(S,{options:[{label:h?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(Z)=>{if(Z==="back"){if(h){h();return}w("menu"),A(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="device-busy")return z(F,{flexDirection:"column",gap:1,children:[n(y,{children:"GitHub Copilot sign-in"}),Q?z(yt,{children:[z(y,{children:["Enter code ",n(y,{bold:!0,children:Q.user_code})," at"," ",Q.verification_uri]}),n(y,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):n(y,{dimColor:!0,children:"Requesting device code from GitHub..."}),n(eh,{})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot setup"}),n(y,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),n(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(i)=>{if(i==="cancel"){if(h){h();return}t("GitHub onboard cancelled",{display:"system"});return}if(i==="enterprise"){w("enterprise-domain");return}O()}})]})}var j,Ch="github:copilot",oc="https://api.githubcopilot.com";var tu=I(()=>{Dc();jc();sh();Eh();xc();ph();Ic();Th();Tt();j=Lt(Qt(),1)});function uu(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function Nt(t,h){return h.some((u)=>t.includes(u))}function tn(t){return!Nt(uu(t),hu)}function hn(t){return t.find(tn)??null}function lh(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function un(t){return(t.quantizationLevel??t.name).toLowerCase()}function cn(t,h,u){if(t===null)return u.push("unknown size"),0;if(h==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(h==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function nn(t,h,u){let a=un(t);if(a.includes("q4"))return u.push("efficient Q4 quantization"),h==="latency"?8:4;if(a.includes("q5"))return u.push("balanced Q5 quantization"),h==="latency"?6:5;if(a.includes("q8"))return u.push("higher quality Q8 quantization"),h==="latency"?2:5;return 0}function an(t,h,u){if(h.score!==t.score)return h.score-t.score;let a=lh(t)??Number.POSITIVE_INFINITY,C=lh(h)??Number.POSITIVE_INFINITY;if(u==="latency")return a-C;if(u==="coding")return C-a;let w=14;return Math.abs(a-w)-Math.abs(C-w)}function rh(t,h){return t.map((u)=>{let a=uu(u),C=[],w=0;if(Nt(a,hu))w-=40,C.push("not a chat-first model");if(Nt(a,sc))w+=h==="coding"?24:h==="balanced"?10:4,C.push("coding-oriented model family");if(Nt(a,ec))w+=h==="latency"?4:h==="coding"?6:8,C.push("strong general-purpose model family");if(Nt(a,vc))w+=h==="latency"?2:6,C.push("chat/instruct tuned");if(a.includes("vision")||a.includes("vl"))w-=2,C.push("vision model adds extra overhead");w+=cn(lh(u),h,C),w+=nn(u,h,C);let f=C.slice(0,3).join(", ");return{...u,score:w,reasons:C,summary:f}}).sort((u,a)=>an(u,a,h))}function cu(t,h){return hn(rh(t,h))}var sc,ec,vc,hu;var nu=I(()=>{sc=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],ec=["llama","qwen","mistral","gemma","phi","deepseek"],vc=["instruct","chat","assistant"],hu=["embed","embedding","rerank","bge","whisper"]});function yn(t){let h=t.toLowerCase();return mn.some((u)=>h.includes(u))}function wh(t){try{let h=new URL(t);if(h.username)h.username="redacted";if(h.password)h.password="redacted";for(let u of h.searchParams.keys())if(yn(u))h.searchParams.set(u,"redacted");return h.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var mn;var au=I(()=>{mn=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function wn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URL(`${Oh}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",zh()),u.searchParams.append("redirect_uri",h),u.searchParams.append("scope",yu),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Cu),u.toString()}function bn(){return`<!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Codex Login Complete</title>
6
+ <style>
7
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
+ h1 { margin: 0 0 12px; font-size: 22px; }
9
+ p { margin: 0 0 10px; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>Codex login complete</h1>
14
+ <p>You can return to Claudin now.</p>
15
+ <p>Claudin will finish activating your new Codex OAuth login.</p>
16
+ </body>
17
+ </html>`}function On(t){return`<!doctype html>
18
+ <html lang="en">
19
+ <head>
20
+ <meta charset="utf-8" />
21
+ <title>Codex Login Failed</title>
22
+ <style>
23
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
+ h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
+ p { margin: 0 0 10px; }
26
+ </style>
27
+ </head>
28
+ <body>
29
+ <h1>Codex login failed</h1>
30
+ <p>${ru(t)}</p>
31
+ <p>You can close this window and try again in Claudin.</p>
32
+ </body>
33
+ </html>`}function mu(){return`<!doctype html>
34
+ <html lang="en">
35
+ <head>
36
+ <meta charset="utf-8" />
37
+ <title>Codex Login Cancelled</title>
38
+ <style>
39
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
+ h1 { margin: 0 0 12px; font-size: 22px; }
41
+ p { margin: 0 0 10px; }
42
+ </style>
43
+ </head>
44
+ <body>
45
+ <h1>Codex login cancelled</h1>
46
+ <p>You can close this window and retry in Claudin.</p>
47
+ </body>
48
+ </html>`}async function zn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:h,client_id:zh(),code_verifier:t.codeVerifier}),a=await fetch(`${Oh}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!a.ok){let R=await a.text().catch(()=>"");throw Error(R.trim()?`Codex OAuth token exchange failed (${a.status}): ${R.trim()}`:`Codex OAuth token exchange failed with status ${a.status}.`)}let C=await a.json(),w=Ut(C.access_token),f=Ut(C.refresh_token);if(!w||!f)throw Error("Codex OAuth completed, but the token response was missing credentials.");let A=Ut(C.id_token);return{apiKey:A?await wu(A).catch(()=>{return}):void 0,accessToken:w,refreshToken:f,idToken:A,accountId:bh(A)??bh(w)}}class Rh{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let h=Ou(),u=lu(),a=new bu("/auth/callback");this.authCodeListener=a,this.port=null;try{let C=await a.start(u);this.port=C;let w=Ru(),f=await zu(h),A=wn({port:C,codeChallenge:f,state:w});try{let $=await a.waitForAuthorization(w,async()=>{await t(A)}),R=new AbortController;this.tokenExchangeAbortController=R;let X;try{X=await zn({authorizationCode:$,codeVerifier:h,port:C,signal:R.signal})}finally{if(this.tokenExchangeAbortController===R)this.tokenExchangeAbortController=null}if(this.authCodeListener!==a)throw this.buildCancellationError();return a.handleSuccessRedirect([],(J)=>{J.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),J.end(bn())}),X}catch($){let R=this.authCodeListener===a?$:this.buildCancellationError();if(a.hasPendingResponse()){let X=R instanceof Error&&R.message==="Codex OAuth flow was cancelled.";a.handleErrorRedirect((J)=>{J.writeHead(X?200:400,{"Content-Type":"text/html; charset=utf-8"}),J.end(X?mu():On(R instanceof Error?R.message:String(R)))})}throw R}finally{this.cleanup()}}catch(C){let w=C instanceof Error?C.message:String(C);if(w.includes("EADDRINUSE")||w.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw C}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((h)=>{h.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),h.end(mu())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var Au=I(()=>{ln();rn();Cn()});function Rn(){return new Rh}function $u(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Rn,a=t.deps?.openBrowser??Pt,C=t.deps?.saveCodexCredentials??gu,w=t.deps?.isBareMode??o,[f,A]=Bt.useState({state:"starting"});return Bt.useEffect(()=>{if(w()){A({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startOAuthFlow(async(X)=>{if($)return;A({state:"waiting",authUrl:X,browserOpened:null});let J=await a(X);if($)return;A({state:"waiting",authUrl:X,browserOpened:J})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=C({apiKey:X.apiKey,accessToken:X.accessToken,refreshToken:X.refreshToken,idToken:X.idToken,accountId:X.accountId,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;A({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,w,h,a,C]),f}var Bt;var fu=I(()=>{Au();qu();Xu();Et();Bt=Lt(Qt(),1)});function du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ku()}}function _u(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function fn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Fn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Qu,{method:"POST",headers:du(),body:new URLSearchParams({client_id:Ah(),scope:Ju}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`xAI device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=at(C.device_code),f=at(C.user_code),A=at(C.verification_uri);if(!w||!f||!A)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:at(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:Zu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Vu/1000}}async function _n(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??fn,C=h?.now??(()=>Date.now()),w=_u(t.expires_in,Zu),f=C()+w,A=Math.max(_u(t.interval,Vu),Xn);while(C()<f){if(h?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let $=await u(Lu,{method:"POST",headers:du(),body:new URLSearchParams({grant_type:Nu,client_id:Ah(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=at(Q.access_token),V=at(Q.refresh_token);if(!H||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600;return{accessToken:H,refreshToken:V,idToken:at(Q.id_token),expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+qn,$n),await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(R.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`xAI device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("xAI device authorization timed out.")}class gh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Fn({signal:h.signal});return await t(u),await _n(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Vu=5000,Xn=1000,qn=5000,$n=60000,Zu=300000,Fu=3000;var Yu=I(()=>{An();gn()});function kn(){return new gh}function Hu(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??kn,a=t.deps?.saveXaiCredentials??Gu,C=t.deps?.isBareMode??o,[w,f]=It.useState({state:"starting"});return It.useEffect(()=>{if(C()){f({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let A=!1,$=u();return $.startDeviceFlow(async(R)=>{if(A)return;f({state:"waiting",userCode:R.user_code,verificationUri:R.verification_uri,verificationUriComplete:R.verification_uri_complete})}).then(async(R)=>{if(A)return;await h(R,(J)=>{let Q=a({accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,expiresAt:R.expiresAt,profileId:J?.profileId});if(!Q.success)throw Error(Q.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(A)return;f({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{A=!0,$.cleanup()}},[u,C,h,a]),w}var It;var Ku=I(()=>{Yu();Et();Su();It=Lt(Qt(),1)});async function Du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":Eu,...await Bu()}}function iu(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function Vn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Zn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Mu,{method:"POST",headers:await Du(),body:new URLSearchParams({client_id:Xh()}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`Kimi device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=Ct(C.device_code),f=Ct(C.user_code),A=Ct(C.verification_uri);if(!w||!f||!A)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:Ct(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:xu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Iu/1000}}async function dn(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??Vn,C=h?.now??(()=>Date.now()),w=iu(t.expires_in,xu),f=C()+w,A=Math.max(iu(t.interval,Iu),Qn);while(C()<f){if(h?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let $=await u(Tu,{method:"POST",headers:await Du(),body:new URLSearchParams({grant_type:Uu,client_id:Xh(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=Ct(Q.access_token),V=Ct(Q.refresh_token);if(!H||!V)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:900;return{accessToken:H,refreshToken:V,expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+Nn,Jn),await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(R.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`Kimi device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("Kimi device authorization timed out.")}class qh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Zn({signal:h.signal});return await t(u),await dn(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var Iu=5000,Qn=1000,Nn=5000,Jn=60000,xu=1800000,Wu=3000;var ju=I(()=>{Ln();Pu()});function Yn(){return new qh}function su(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Yn,a=t.deps?.saveKimiCredentials??ou,C=t.deps?.isBareMode??o,[w,f]=lt.useState({state:"starting"}),A=lt.useRef(!1);return lt.useEffect(()=>{if(C()){f({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startDeviceFlow(async(X)=>{if($)return;f({state:"waiting",userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=a({accessToken:X.accessToken,refreshToken:X.refreshToken,expiresAt:X.expiresAt,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;f({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,C,h,a]),lt.useEffect(()=>{if(w.state!=="waiting")return;if(A.current)return;let $=w.verificationUriComplete??w.verificationUri;if(!$)return;A.current=!0,Pt($).catch(()=>{})},[w]),w}var lt;var eu=I(()=>{ju();qu();Et();pu();lt=Lt(Qt(),1)});function ca(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function na(t){let h=ot(t);return{name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""}}function aa(t){let h={};for(let u of t.split(/\r?\n/)){let a=u.trim();if(!a)continue;let C=a.indexOf(":");if(C<=0)continue;let w=a.slice(0,C).trim(),f=a.slice(C+1).trim();if(w&&f)h[w]=f}return h}function ma(t){if(!t)return"";return Object.entries(t).map(([h,u])=>`${h}: ${u}`).join(`
49
+ `)}function ya(t,h){let u={},a=t.awsRegion?.trim();if(a)u.awsRegion=a;let C=t.gcpProject?.trim();if(C)u.gcpProject=C;let w=t.gcpRegion?.trim();if(w)u.gcpRegion=w;let f=t.azureResource?.trim();if(f)u.azureResource=f;let A=aa(h);if(Object.keys(A).length>0)u.customHeaders=A;return Object.keys(u).length>0?u:void 0}function la(t,h){let u=h?" (active)":"",a=t.apiKey?"key set":"no key",C=t.provider==="anthropic"?"anthropic":"openai-compatible",w=tc(t.model),f=w.length<=3?w.join(", "):`${w[0]}, ${w[1]} + ${w.length-2} more`;return`${C} · ${t.baseUrl} · ${f} · ${a}${u}`}function ra(t,h){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${wh(h)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function wa(t,h){if(t.state==="unreachable")return`Could not reach Ollama at ${wh(h)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let u=t.probeModel??"the selected model",a=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${a} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function fh(t,h){if(!h)return;return t.find((u)=>u.id===h)}function vu(t,h){return Boolean(t&&h&&t.id===h)}function ba(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===Zh&&!u.apiKey)}function Oa(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===pt&&!u.apiKey)}function za(t,h){return t.find((u)=>u.provider==="anthropic"&&u.baseUrl===h&&!u.apiKey)}function Ra({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=$u({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Codex OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Codex OAuth"}),n(y,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),a.state==="starting"?n(y,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):a.browserOpened===!1?z(yt,{children:[n(y,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),n(y,{children:a.authUrl})]}):a.browserOpened===!0?z(yt,{children:[n(y,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),n(y,{children:a.authUrl})]}):n(y,{dimColor:!0,children:"Opening your browser..."}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Aa({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=Hu({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"xAI OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from xAI..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t);let a=su({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from Kimi..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Vm({mode:t,onDone:h}){let u=bc(),[a,C]=g.useState([]),[w,f]=g.useState(),[A,$]=g.useState(),[R,X]=g.useState(!1),[J,Q]=g.useState(),H=g.useRef(0),[V,O]=g.useState(t==="first-run"?"select-preset":"menu"),[wt,i]=g.useState(null),[Z,mt]=g.useState("openai"),[N,P]=g.useState(()=>na("ollama")),[Zt,dt]=g.useState({}),[dh,st]=g.useState(""),[Rc,Ac]=g.useState(0),[gc,Xc]=g.useState(0),[et,Yh]=g.useState(null),[bt,Ft]=g.useState(0),[Ot,p]=g.useState(0),[qc,s]=g.useState(0),[Gh,Y]=g.useState(),[zt,_]=g.useState(),[$c,fc]=g.useState(),[Sh,Yt]=g.useState(!1),[_t,kt]=g.useState(),[e,Gt]=g.useState({state:"idle"}),[v,St]=g.useState({state:"idle"}),[tt,vt]=g.useState({state:"idle"}),[Fc,_c]=g.useState(!0),[kc,E]=g.useState(!1),th=g.useRef(!1),[hh,uh]=g.useState(()=>Vt()),[Hh,Lc]=g.useState(()=>Oc());g.useEffect(()=>{queueMicrotask(()=>{let c=x(),m=B()?.id;C(c),f(m),$(xt()),Q(Fh()),X(Jt()),_c(!1)})},[]);let Rt=rt[Ot]??rt[0],Ht=Rt.key,Qc=N[Ht],ch=a.length>0,Kt=ch,Kh=g.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:J?`Currently: ${a.find((c)=>c.id===J)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!Kt},{value:"activate-project",label:"Set active provider (Project)",description:A?`Currently: ${a.find((c)=>c.id===A)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!Kt},...R?[{value:"clear-project-override",label:"Clear project provider override",description:A?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!ch},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Kt},...Sh?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Kt,ch,Sh,hh,J,A,a]),nh=g.useCallback(()=>{if(o()){H.current+=1,Yt(!1),kt(void 0);return}let c=++H.current;(async()=>{let m=await Lh();if(c!==H.current)return;Yt(Boolean(m?.apiKey||m?.accessToken||m?.refreshToken||m?.idToken)),kt(m?.profileId)})()},[]);g.useEffect(()=>{return nh(),()=>{H.current+=1}},[nh]),g.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Gt({state:"loading"}),(async()=>{let m=await wc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)Gt({state:"unavailable",message:wa(m,N.baseUrl)});return}let l=rh(m.models,"balanced"),r=cu(m.models,"balanced");if(!c)Gt({state:"ready",defaultValue:r?.name??l[0]?.name,options:l.map((b)=>({label:b.name,value:b.name,description:b.summary}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return St({state:"loading"}),(async()=>{let m=await rc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)St({state:"unavailable",message:ra(m,N.baseUrl)});return}if(!c)St({state:"ready",defaultValue:m.models[0],options:m.models.map((l)=>({label:l,value:l}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-openai-model")return;let c=!1;return vt({state:"loading"}),(async()=>{let m=await Cc({baseUrl:N.baseUrl,apiKey:N.apiKey||void 0});if(c)return;if(!m||m.length===0){vt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:l,defaultValue:r}=lc(m,N.model);vt({state:"ready",options:l,defaultValue:r})})(),()=>{c=!0}},[N.baseUrl,N.apiKey,V]);function K(){if(th.current)return;th.current=!0,queueMicrotask(()=>{let c=x();C(c),f(B()?.id),$(xt()),Q(Fh()),X(Jt()),nh(),th.current=!1})}function At(){return null}function ah(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function mh(c){if(c?.accessToken&&c.accountId)return null;let m=await Lh();if(!m)return"stored Codex OAuth credentials could not be loaded";if(!m.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function Wh(){yc()}async function Nc(c){let m="provider";E(!0),Y("Activating provider...");try{await new Promise((ht)=>queueMicrotask(ht));let l=Jt(),r=nt(c);if(!r){_("Could not change active provider."),E(!1),L();return}let b=l?B()??r:r,q=$t(b.model)||Dt();if(!l)u((ht)=>({...ht,mainLoopModel:q,mainLoopModelForSession:null}));m=r.name;let k=At(),d=vu(r,_t),T=d?await mh():null;K();let U=l&&b.id!==r.id?` (project override still active — this project keeps using ${b.name}; use "Clear project provider override" to apply the new default here)`:"",W=d?ah({prefix:`Active provider: ${r.name}${U}`,activationWarning:T,warnings:[T,k?`could not clear startup provider override (${k})`:null].filter((ht)=>Boolean(ht))}):k?`Active provider: ${r.name}${U}. Warning: could not clear startup provider override (${k}).`:`Active provider: ${r.name}${U}`;Y(W),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:q,message:`Provider switched to ${r.name} (${q})`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish activating ${m}: ${r}`),L()}}async function Jc(){E(!0),Y("Clearing project provider override...");try{await new Promise((m)=>queueMicrotask(m)),_h(null),K();let c=B();if(c){let m=$t(c.model)||Dt();ft(),u((l)=>({...l,mainLoopModel:m,mainLoopModelForSession:null})),Y(`Project override cleared. Using global default: ${c.name}.`),E(!1),h({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:m,message:`Project override cleared — using ${c.name} (${m})`}),L()}else Y("Project provider override cleared. No global default set."),E(!1),h({action:"saved",message:"Project provider override cleared. No global default set."}),L()}catch(c){K(),Y(void 0),E(!1);let m=c instanceof Error?c.message:String(c);_(`Could not clear project provider override: ${m}`),L()}}async function Vc(c){let m="provider";E(!0),Y("Setting provider for this project...");try{await new Promise((W)=>queueMicrotask(W));let l=xt(),r=_h(c);if(!r){_("Could not set project provider override."),E(!1),L();return}let b=$t(r.model)||Dt();if(l===r.id)ft();u((W)=>({...W,mainLoopModel:b,mainLoopModelForSession:null})),m=r.name;let q=At(),k=vu(r,_t),d=k?await mh():null;K();let T=`Active provider for this project: ${r.name}. Other projects keep the global default.`,U=k?ah({prefix:T,activationWarning:d,warnings:[d,q?`could not clear startup provider override (${q})`:null].filter((W)=>Boolean(W))}):q?`${T} Warning: could not clear startup provider override (${q}).`:T;Y(U),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:b,message:`Provider switched to ${r.name} (${b}) for this project`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish setting ${m} for this project: ${r}`),L()}}function L(){fc("done"),O("menu")}function Wt(c){h({action:"cancelled",message:c})}function ih(c){let m=ot(c),l={name:m.name,baseUrl:m.baseUrl,model:m.model,apiKey:m.apiKey??""};if(i(null),mt(m.provider??"openai"),P(l),dt({}),st(""),Yh(c),p(0),Ft(0),s(l.name.length),_(void 0),c==="ollama"){Gt({state:"loading"}),O("select-ollama-model");return}if(c==="atomic-chat"){St({state:"loading"}),O("select-atomic-chat-model");return}if(c==="anthropic"){O("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){O("cloud-extras");return}O("form")}function Zc(c){let m=a.find((r)=>r.id===c);if(!m)return;let l=ca(m);i(c),mt(m.provider??"openai"),P(l),dt({awsRegion:m.extras?.awsRegion,gcpProject:m.extras?.gcpProject,gcpRegion:m.extras?.gcpRegion,azureResource:m.extras?.azureResource}),st(ma(m.extras?.customHeaders)),Yh(null),p(0),Ft(0),s(l.name.length),_(void 0),O("form")}function it(c=N){let m=ya(Zt,dh),l={provider:Z,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:m},r=wt?ct(wt,l):ut(l,{makeActive:!0});if(!r){_("Could not save provider. Fill all required fields.");return}let b=B()?.id===r.id;if(b)ft(),u((U)=>({...U,mainLoopModel:$t(r.model),mainLoopModelForSession:null}));let q=b?At():null;K();let k=!wt&&Jt()&&!b,d=k?B()?.name??"override target":null,T=wt?`Updated provider: ${r.name}`:k?`Added provider: ${r.name} (now global default — project keeps using ${d}; use "Clear project provider override" to apply here)`:`Added provider: ${r.name} (now active)`;if(Y(q?`${T}. Warning: could not clear startup provider override (${q}).`:T),t==="first-run"){h({action:"saved",activeProfileId:r.id,message:`Provider configured: ${r.name}`});return}i(null),p(0),_(void 0),L()}function dc(){if(v.state==="loading"||v.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),n(y,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(v.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Atomic Chat setup"}),n(y,{dimColor:!0,children:v.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),n(y,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),n(S,{options:v.options,defaultValue:v.defaultValue,defaultFocusValue:v.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,v.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function Yc(){if(e.state==="loading"||e.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Ollama"}),n(y,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(e.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Ollama setup"}),n(y,{dimColor:!0,children:e.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Ollama model"}),n(y,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),n(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function gt(c){let m=rt.findIndex((l)=>l.key===c);p(m<0?0:m),s(N[c].length),_(void 0),O("form")}function Gc(){if(tt.state==="loading"||tt.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Fetching models"}),n(y,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),n(y,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(tt.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:tt.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(l)=>{if(l==="manual"){gt("model");return}gt("apiKey")},onCancel:()=>gt("apiKey"),visibleOptionCount:2})]});let c=[...tt.options,{value:$h,label:"Enter a model id manually",description:"Type an id the provider did not list"}],m=tt.defaultValue??$h;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),n(S,{options:c,defaultValue:m,defaultFocusValue:m,inlineDescriptions:!0,visibleOptionCount:Math.min(8,c.length),onChange:(l)=>{if(l===$h){gt("model");return}let r={...N,model:l};P(r),Mh(r)},onCancel:()=>gt("apiKey")}),n(y,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Mh(c){if(et==="anthropic"||et==="custom"){P(c),O("custom-headers");return}it(c)}function Sc(c){let m=c.trim();if(!Rt.optional&&m.length===0){_(`${Rt.label} is required.`);return}let l={...N,[Ht]:m};if(P(l),_(void 0),Ot<rt.length-1){let r=Ot+1,b=rt[r]?.key??"name";if(b==="model"&&!pn.has(Z)&&l.baseUrl.trim().length>0){O("select-openai-model");return}p(r),s(l[b].length);return}Mh(l)}function Hc(){if(_(void 0),Ot>0){let c=Ot-1,m=rt[c]?.key??"name";p(c),s(N[m].length);return}if(t==="first-run"){O("select-preset");return}L()}D("confirm:no",Hc,{context:"Settings",isActive:V==="form"}),D("confirm:no",()=>gt("model"),{context:"Settings",isActive:V==="select-openai-model"&&(tt.state==="loading"||tt.state==="idle")});function Kc(){if(_(void 0),bt>0){Ft(bt-1);return}O("select-preset")}D("confirm:no",Kc,{context:"Settings",isActive:V==="cloud-extras"}),D("confirm:no",()=>O("form"),{context:"Settings",isActive:V==="custom-headers"}),D("confirm:no",()=>O("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"||V==="kimi-auth-choice"}),D("confirm:no",()=>O("kimi-auth-choice"),{context:"Settings",isActive:V==="kimi-oauth"});function Wc(){let c=!o(),m=[...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),n(y,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),n(S,{options:m,onChange:(l)=>{if(l==="skip"){Wt("Provider setup skipped");return}if(l==="codex-oauth"){O("codex-oauth");return}if(l==="xai-oauth"){O("xai-oauth");return}if(l==="moonshotai"){O("kimi-auth-choice");return}if(l==="github-onboard"){O("github-onboard");return}if(l==="import-legacy"){(async()=>{let r=await Vh({force:!0});uh(Vt()),K();let b=jt(r);if(r.errors.length>0){_(b);return}let q=B();if(t==="first-run"&&q){h({action:"saved",activeProfileId:q.id,activeProviderName:q.name,activeProviderModel:q.model,message:b});return}if(Y(b),_(void 0),t==="manage")L()})();return}ih(l)},onCancel:()=>{if(t==="first-run"){Wt("Provider setup skipped");return}L()},visibleOptionCount:Math.min(13,m.length)})]})}function ic(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("anthropic-oauth");return}if(c==="apiKey"){O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Mc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("kimi-oauth");return}if(c==="apiKey"){ih("moonshotai");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Tc(){let c=(xn(),Gn(In)).ConsoleOAuthFlow;return n(F,{flexDirection:"column",gap:1,children:n(c,{mode:"login",onDone:()=>{let m=ot("anthropic"),l={provider:"anthropic",name:m.name,baseUrl:m.baseUrl,model:m.model},r=za(x(),m.baseUrl),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("OAuth completed, but the Anthropic profile could not be saved."),O("select-preset");return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("OAuth completed, but the Anthropic profile could not be set as the startup provider."),O("select-preset");return}let k=`Anthropic OAuth configured: ${q.name}`;if(K(),t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}})})}function Uc(){let c=et;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let m=Ca[c],l=m[bt]??m[0],r=Zt[l.key]??"";function b(q){let k=q.trim();if(k.length===0){_(`${l.label} is required.`);return}let d={...Zt,[l.key]:k};if(dt(d),_(void 0),bt<m.length-1){Ft(bt+1);return}Ft(0),O("form")}return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),n(y,{dimColor:!0,children:l.helpText}),z(y,{dimColor:!0,children:["Step ",bt+1," of ",m.length,": ",l.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:r,onChange:(q)=>dt((k)=>({...k,[l.key]:q})),onSubmit:b,focus:!0,showCursor:!0,placeholder:`${l.placeholder}${qt.ellipsis}`,columns:80,cursorOffset:Rc,onChangeCursorOffset:Ac})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ec(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Custom headers (optional)"}),z(y,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",n(y,{children:"Header: Value"}),". Leave empty to skip."]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:dh,onChange:st,onSubmit:()=>it(N),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:gc,onChangeCursorOffset:Xc})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function Pc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:wt?"Edit provider profile":"Create provider profile"}),n(y,{dimColor:!0,children:Rt.helpText}),z(y,{dimColor:!0,children:["Provider type:"," ",Z==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),z(y,{dimColor:!0,children:["Step ",Ot+1," of ",rt.length,": ",Rt.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:Qc,onChange:(c)=>P((m)=>({...m,[Ht]:c})),onSubmit:Sc,focus:!0,showCursor:!0,placeholder:`${Rt.placeholder}${qt.ellipsis}`,mask:Ht==="apiKey"?"*":void 0,columns:80,cursorOffset:qc,onChangeCursorOffset:s})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Bc(){let c=a.length>0,m=c;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Provider manager"}),n(y,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),Gh&&n(y,{children:Gh}),n(F,{flexDirection:"column",children:a.length===0?n(y,{dimColor:!0,children:"No provider profiles configured yet."}):a.map((l)=>z(y,{dimColor:!0,children:["- ",l.name,": ",la(l,l.id===w)]},l.id))}),n(S,{options:Kh,onChange:(l)=>{switch(_(void 0),l){case"add":O("select-preset");break;case"import-legacy":{(async()=>{let r=await Vh({force:!0});if(uh(Vt()),K(),r.errors.length>0)_(jt(r));else Y(jt(r))})();break}case"activate":if(m)O("select-active");break;case"activate-project":if(m)O("select-active-project");break;case"clear-project-override":Jc();break;case"edit":if(c)O("select-edit");break;case"delete":if(m)O("select-delete");break;case"logout-codex-oauth":{let r=Qh();if(!r.success){_(r.warning??"Could not clear Codex OAuth credentials.");break}Yt(!1),kt(void 0);let b=fh(x(),_t),q=null;if(b){let k=kh(b.id);if(!k.removed){_("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),K();break}Wh(),q=k.activeProfileId?At():null}K(),Y(q?`Codex OAuth logged out. Warning: could not clear startup provider override (${q}).`:"Codex OAuth logged out.");break}default:Wt("Provider manager closed");break}},onCancel:()=>Wt("Provider manager closed"),defaultFocusValue:$c,visibleOptionCount:Kh.length})]})}function Mt(c,m,l){let r=a.map((b)=>{let q=[];if(b.id===w)q.push("active");if(A&&b.id===A)q.push("this project");if(J&&b.id===J)q.push("global default");let k=q.length>0?` (${q.join(", ")})`:"";return{value:b.id,label:`${b.name}${k}`,description:`${b.provider==="anthropic"?"anthropic":"openai-compatible"} · ${b.baseUrl} · ${b.model}`}});if(r.length===0)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(y,{dimColor:!0,children:m}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>L(),onCancel:()=>L(),visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(S,{options:r,onChange:l,onCancel:()=>L(),visibleOptionCount:Math.min(10,Math.max(2,r.length))})]})}let G;switch(V){case"select-preset":G=Wc();break;case"select-ollama-model":G=Yc();break;case"select-openai-model":G=Gc();break;case"select-atomic-chat-model":G=dc();break;case"codex-oauth":G=n(Ra,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:sn,baseUrl:hc,model:en,apiKey:""},r=fh(x(),_t),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Codex OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Codex OAuth login finished, but the provider could not be set as the startup provider."),L();return}m({profileId:b.id});let k=At(),d=await mh(c);Yt(!0),kt(b.id),K();let T=[d,k?`could not clear startup provider override (${k})`:null].filter((W)=>Boolean(W)),U=ah({prefix:"Codex OAuth configured",activationWarning:d,warnings:T});if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:U});return}Y(U),_(void 0),L()}});break;case"xai-oauth":G=n(Aa,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:vn,baseUrl:pt,model:ta,apiKey:""},r=Oa(x(),Jh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("xAI OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("xAI OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"kimi-auth-choice":G=Mc();break;case"kimi-oauth":G=n(ga,{onBack:()=>O("kimi-auth-choice"),onConfigured:async(c,m)=>{let l={provider:"openai",name:ha,baseUrl:Zh,model:ua,apiKey:""},r=ba(x(),Nh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Kimi Code OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="Kimi Code configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"github-onboard":G=n(vh,{onDone:(c)=>{if(c)Y(c),_(void 0);K(),L()},onBack:()=>O("select-preset"),onChangeAPIKey:K});break;case"anthropic-auth-choice":G=ic();break;case"anthropic-oauth":G=Tc();break;case"cloud-extras":G=Uc();break;case"custom-headers":G=Ec();break;case"form":G=Pc();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Nc(c)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(c)=>{Vc(c)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(c)=>{Zc(c)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(c)=>{let m=a.find((W)=>W.id===c),l=m?.provider==="openai"&&m?.extras?.githubToken!==void 0,r=fh(a,_t)?.id===c,b=Jh()?.profileId,q=m?.provider==="openai"&&m.baseUrl===pt&&!m.apiKey&&b===c,k=Nh()?.profileId,d=m?.provider==="openai"&&m.baseUrl===Zh&&!m.apiKey&&k===c,T=B()?.id===c,U=kh(c);if(!U.removed)_("Could not delete provider.");else{let W=[];if(r){let M=Qh();if(!M.success)W.push(M.warning??"could not clear Codex OAuth credentials");else kt(void 0);Wh()}if(l){let M=cc();if(!M.success)W.push(M.warning??"could not clear GitHub Copilot token")}if(q){let M=mc();if(!M.success)W.push(M.warning??"could not clear xAI OAuth credentials")}if(d){let M=ac();if(!M.success)W.push(M.warning??"could not clear Kimi Code OAuth credentials")}let ht=U.activeProfileId?At():null;if(ht)W.push(`could not clear startup provider override (${ht})`);if(K(),T){let M=B();if(M)ft(),u((yh)=>({...yh,mainLoopModel:$t(M.model),mainLoopModelForSession:null}));else ft(),u((yh)=>({...yh,mainLoopModel:null,mainLoopModelForSession:null}))}Y(W.length>0?`Provider deleted. Warning: ${W.join("; ")}.`:"Provider deleted")}L()});break;case"menu":default:G=Bc();break}return z(uc,{color:"permission",children:[n(zc,{enabled:Hh,onDismiss:(c)=>{uh(Vt()),Lc(!1),K();let m=B();if(c==="migrated"&&t==="first-run"&&m)h({action:"saved",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:m.model})}}),Hh?null:Fc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Loading providers..."}),n(y,{dimColor:!0,children:"Reading provider profiles from disk."})]}):kc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Activating provider..."}),n(y,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var g,rt,$h="\x00__manual__",pn,sn="Codex OAuth",en="codexplan",vn="xAI / Grok (OAuth)",ta="grok-4",ha="Moonshot AI",ua,Zh="https://api.kimi.com/coding/v1",Ca;var Xa=I(()=>{Sn();tu();Kn();Eh();Mn();Pn();Dn();Xu();Et();Hn();Wn();Un();Th();ph();En();nu();au();Bn();Tn();on();sh();fu();Ku();eu();Su();pu();Pu();jn();Tt();g=Lt(Qt(),1),rt=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],pn=new Set(["anthropic","bedrock","vertex","foundry"]),ua=nc;Ca={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
+ export{wh as sc,au as tc,aa as uc,Vm as vc,Xa as wc};
@@ -0,0 +1,4 @@
1
+ import{Aha as _,uha as X,yha as w,zha as L}from"./cli-1.1.9-4p8zymhf.mjs";import{Jja as MD,Mja as cD}from"./cli-1.1.9-573zndr8.mjs";import{Cka as aD,Mka as x,Pka as dD,ska as ND,uka as rD,yka as jD}from"./cli-1.1.9-1b1mw6v2.mjs";import{Hla as mD,ula as zD,xla as HD}from"./cli-1.1.9-jmwr69v2.mjs";import{kra as PD,lna as UD}from"./cli-1.1.9-gttthtg1.mjs";import{Usa as LD,Wsa as bD,Ysa as V,Zsa as hD}from"./cli-1.1.9-fws7k6ak.mjs";var T=bD((Cu,S)=>{S.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var W=161,f=1114109,p,l=12288,g=65510,h,P=4352,c=262141,j;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],h=[12288,12288,65281,65376,65504,65510],j=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var Z=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function kD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,_D,yD,d=(D)=>{if(D<W||D>f)return!1;return Z(p,D)},s=(D)=>{if(D<l||D>g)return!1;return Z(h,D)},n=(D)=>{if(D>=_D&&D<=yD)return!0;if(D<P||D>c)return!1;return Z(j,D)};var i=V(()=>{m();r();[_D,yD]=kD(j)});function RD(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function v(D,{ambiguousAsWide:F=!1}={}){if(RD(D),s(D)||n(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function G({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var e=()=>{};function O(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes("›"))return D;return D.replace(wD,"")}var wD;var t=V(()=>{e();wD=G()});function BD(D){let F=0,u=D.replace(ID,()=>{return F++,""});return{count:F,stripped:u}}function AD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(ED)){let{count:C,stripped:E}=BD(D);return C+AD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=O(D),D.length===0)return 0}if(!xD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=v(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)){u+=SD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=v(B,{ambiguousAsWide:!1});break}}}return u}function xD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0}return!1}function SD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var CD,DD,ED="\uDBFB\uDEEE",ID,b,FD,$;var QD=V(()=>{o();t();_();CD=LD(T(),1),DD=CD.default(),ID=/\u{10EEEE}\p{M}{0,3}/gu;b=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=b?(D)=>{if(D.includes(ED)){let{count:F,stripped:u}=BD(D);return F+(u.length>0?b(u,FD):0)}return b(D,FD)}:AD});function TD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return K(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return y(D,F);let Q=F-1-A;if(Q<=0)return y(E,F);return VD(B,Q)+"…"+E}function K(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function y(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function VD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function WD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
2
+ `);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return K(E,F);return`${E}…`}}if($(E)<=F)return E;return K(E,F)}var $D=V(()=>{QD();_()});function U(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function Ru(D){return`${(D/1000).toFixed(1)}s`}function wu(D,F){if(D<60000){if(D===0)return"0s";if(D<1000)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function pD(D){let F=D>=1000;return fD(F).format(D).toLowerCase()}function Lu(D){return pD(D).replace(".0","")}function qD(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:N}of Q)if(Math.abs(A)>=Y){let J=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(J)}${N} ago`:`in ${J}${N}`;return w("long",C).format(J,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function lD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return qD(D,{...C,now:u});return qD(D,{...C,numeric:"always",now:u})}function Iu(D){let F=D.fileSize!==void 0?U(D.fileSize):`${D.messageCount} messages`,u=[lD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function gD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(N,J)=>J.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function xu(D,F=!1,u=!0){let C=new Date(D);return`${gD(Math.floor(C.getTime()/1000),F,u)}`}var k=null,R=null,fD=(D)=>{if(D){if(!k)k=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return k}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var XD=V(()=>{_();$D()});function z(){if(!I)I=hD("perf_hooks").performance;return I}function M(D){return D.toFixed(3)}function YD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${U(C.rss)}, Heap: ${U(C.heapUsed)}`:"";return`[+${M(D).padStart(E)}ms] (+${M(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var JD=V(()=>{XD()});import{dirname as sD,join as nD}from"path";function eD(D){if(!GD)return;if(z().mark(D),H)OD.push(process.memoryUsage())}function ZD(){if(!H)return"Startup profiling not enabled";let F=z().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(YD(A.startTime,A.startTime-C,A.name,OD[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${M(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
3
+ `)}function tD(){if(KD)return;if(KD=!0,uu(),H){let D=Du(),F=sD(D);jD().mkdirSync(F),ND(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function Du(){return nD(zD(),"startup-perf",`${UD()}.txt`)}function uu(){if(!vD)return;let F=z().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(oD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length,MD("tengu_startup_perf",C)}var H,iD=0.005,vD,GD,OD,oD,KD=!1;var Fu=V(()=>{PD();cD();dD();mD();aD();JD();rD();H=HD(process.env.CLAUDE_CODE_PROFILE_STARTUP),vD=Math.random()<iD,GD=H||vD,OD=[],oD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)eD("profiler_initialized"),process.on("exit",()=>{try{tD()}catch{}})});
4
+ export{v as Qga,o as Rga,O as Sga,t as Tga,$ as Uga,QD as Vga,TD as Wga,K as Xga,y as Yga,VD as Zga,WD as _ga,$D as $ga,U as aha,Ru as bha,wu as cha,pD as dha,Lu as eha,qD as fha,lD as gha,Iu as hha,gD as iha,xu as jha,XD as kha,z as lha,M as mha,YD as nha,JD as oha,eD as pha,tD as qha,Du as rha,uu as sha,Fu as tha};
@@ -0,0 +1,2 @@
1
+ import{Ysa as o}from"./cli-1.1.9-fws7k6ak.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p,r,a,E;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),r=new Set(["api.deepseek.com"]),a={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
+ export{t as s9,n as t9,i as u9,_ as v9,s as w9,c as x9,p as y9,r as z9,a as A9,E as B9,e as C9};
@@ -0,0 +1,2 @@
1
+ import{mU as N,nU as M,oU as F,qU as I,rU as V}from"./cli-1.1.9-pjfvmwr9.mjs";import{W8 as L,X8 as _,_8 as O,a9 as b,k9 as x,m9 as H,n9 as K}from"./cli-1.1.9-e1ak8jhn.mjs";import{Jda as X,Oda as Y,Oea as Z,Xda as G,gba as D,hfa as R,iba as A}from"./cli-1.1.9-8gkjdbxs.mjs";import{Hla as m,xla as $}from"./cli-1.1.9-jmwr69v2.mjs";import{Ysa as U}from"./cli-1.1.9-fws7k6ak.mjs";function k(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:j,CLAUDE_CODE_OAUTH_TOKEN:f,...P}=q;return P}function p(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function T(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return T(p(k(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!D(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(I.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,h;var w=U(()=>{M();_();R();m();V();b();K();A();G();h=["userSettings","flagSettings","policySettings"]});
2
+ export{r as Jc,g as Kc,w as Lc};
@@ -0,0 +1,2 @@
1
+ import{p4 as K,r4 as Z}from"./cli-1.1.9-0da4szeq.mjs";import{v4 as J,x4 as Y}from"./cli-1.1.9-4qctf8p1.mjs";import{A8 as F,B8 as G,E5 as W,V8 as X,v8 as D,z5 as B}from"./cli-1.1.9-914mh2gv.mjs";import{Hja as y,Ija as Q}from"./cli-1.1.9-9yrwnzf6.mjs";import{esa as z,wsa as V}from"./cli-1.1.9-mp2pqq66.mjs";import{Ysa as N}from"./cli-1.1.9-fws7k6ak.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
+ export{P as Oi,_ as Pi};
@@ -0,0 +1,2 @@
1
+ import{K$ as x,U_ as X,Y_ as k,o$ as Y}from"./cli-1.1.9-8gkjdbxs.mjs";import{kha as $}from"./cli-1.1.9-k4gthvh4.mjs";import{Ysa as Z}from"./cli-1.1.9-fws7k6ak.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
+ export{H as fb,M as gb};
@@ -0,0 +1,24 @@
1
+ import{$X as T,kY as u}from"./cli-1.1.9-1q40zcz0.mjs";import{C2 as x,F2 as d}from"./cli-1.1.9-atdcgnab.mjs";import{L_ as B,M$ as y,N$ as c,N_ as V,O_ as w}from"./cli-1.1.9-8gkjdbxs.mjs";import{Mka as Y,Pja as R,Pka as h,Rja as D,pka as K,qka as v,uka as m}from"./cli-1.1.9-1b1mw6v2.mjs";import{kla as X,pla as W,rla as F}from"./cli-1.1.9-tze0002b.mjs";import{Hla as S,ula as N}from"./cli-1.1.9-jmwr69v2.mjs";import{kra as j,lna as O,pna as U,rna as k}from"./cli-1.1.9-gttthtg1.mjs";import{Ysa as H}from"./cli-1.1.9-fws7k6ak.mjs";function E(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,G=10){if(process.platform==="win32"){let L=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${G}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),Q=await V("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map(($)=>parseInt($,10)).filter(($)=>!isNaN($))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await V("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function e(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=B(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,G=10){if(process.platform==="win32"){let L=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${G}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),Q=await V("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await V("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var M=H(()=>{w()});import{chmod as g,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as I}from"fs/promises";import{join as Z}from"path";function _(){return Z(N(),"sessions")}function o(){return}async function _q(){if(T()!=null)return!1;let q=o()??"interactive",G=_(),J=Z(G,`${process.pid}.json`);R(async()=>{try{await P(J)}catch{}});try{return await a(G,{recursive:!0,mode:448}),await g(G,448),await I(J,K({pid:process.pid,sessionId:O(),cwd:k(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),U((z)=>{A({sessionId:z})}),!0}catch(z){return Y(`[concurrentSessions] register failed: ${X(z)}`),!1}}async function A(q){let G=Z(_(),`${process.pid}.json`);try{let J=v(await p(G,"utf8"));await I(G,K({...J,...q}))}catch(J){Y(`[concurrentSessions] updatePidFile failed: ${X(J)}`)}}async function Aq(q){if(!q)return;await A({name:q})}async function b(q){await A({bridgeSessionId:q})}async function Bq(){let q=_(),G;try{G=await l(q)}catch(z){if(!W(z))Y(`[concurrentSessions] readdir failed: ${X(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(E(L))J++;else if(y()!=="wsl")P(Z(q,z)).catch(()=>{})}return J}var C=H(()=>{j();D();h();S();F();M();c();m();u()});function Uq(q){f=q,b(r()??null).catch(()=>{})}function n(){return f}function r(){let q=n();return q?x(q.bridgeSessionId):void 0}var f=null;var t=H(()=>{C();d()});
24
+ export{E as GX,i as HX,e as IX,qq as JX,M as KX,_q as LX,Aq as MX,b as NX,Bq as OX,C as PX,Uq as QX,n as RX,r as SX,t as TX};
@@ -0,0 +1,2 @@
1
+ import{ud as Z,vd as _,wd as $,zd as O}from"./cli-1.1.9-0evqvwgb.mjs";import{Qd as Y,Vd as x}from"./cli-1.1.9-1gg4qe92.mjs";import{TL as U,YL as W,bM as S,cM as X,mM as V}from"./cli-1.1.9-bftwnbgn.mjs";import{Mka as R,Pka as K}from"./cli-1.1.9-1b1mw6v2.mjs";import{kla as Q,rla as C}from"./cli-1.1.9-tze0002b.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
+ export{F as Xa};
@@ -0,0 +1,2 @@
1
+ import{Ysa as g}from"./cli-1.1.9-fws7k6ak.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
+ export{Bq as iW,d as jW,$J as kW,DJ as lW,GJ as mW};
@@ -0,0 +1,2 @@
1
+ import{Rs as I,Us as X}from"./cli-1.1.9-bftwnbgn.mjs";import{Hla as W,xla as H}from"./cli-1.1.9-jmwr69v2.mjs";import{Ysa as V}from"./cli-1.1.9-fws7k6ak.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
+ export{q as Mc,F as Nc,K as Oc,Q as Pc,R as Qc,_ as Rc,j as Sc,Y as Tc};