@claudiolabs/claudin 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (910) hide show
  1. package/dist/chunks/AgentTool-1.0.14-3eb94705.mjs +1 -0
  2. package/dist/chunks/App-1.0.14-g64njc6h.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.14-a2d84wb1.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.14-84m2b3pt.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.14-p4sev4yv.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.14-p1gf60x3.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.14-t9yhrffv.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.14-dfnr66ct.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.14-80b9fnfy.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.14-5xw1fdn8.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.14-2trgr2gt.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.14-c11ddcj0.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.14-423w55et.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.14-chapmp71.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.14-hsf9qywq.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.14-bqpqw2qh.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.14-snt041zc.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.14-p14kceqc.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.14-6zpc8shq.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.14-j0ps61bf.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.14-cgcfpjkf.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.14-za0txxy6.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.14-yg4kf1y3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.14-8177pspx.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.14-whbn5wgb.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.14-vfjpmp6q.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.14-egtqfjhd.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.14-c06rhryc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.14-sjnjjka0.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.14-d05d7czp.mjs +1 -0
  31. package/dist/chunks/agents-1.0.14-68haybhf.mjs +110 -0
  32. package/dist/chunks/agents-1.0.14-jd8gzved.mjs +3 -0
  33. package/dist/chunks/api-1.0.14-sgt5erw2.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.14-3vzgbe4y.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.14-3snwhy6g.mjs +1 -0
  36. package/dist/chunks/auth-1.0.14-5rcgzv6s.mjs +1 -0
  37. package/dist/chunks/auth-1.0.14-z9fp9b50.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.14-swb8aya1.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.14-an9g2egz.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.14-j9566tb7.mjs +1 -0
  41. package/dist/chunks/branch-1.0.14-wab7dp2w.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.14-1vxrnevp.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.14-9a6ecffc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.14-xbqnxpd4.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.14-xsyfsnjc.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.14-rg9vg3mq.mjs +1 -0
  47. package/dist/chunks/btw-1.0.14-f5cv4zq4.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.14-cbxx5n1c.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.14-qpamcgt7.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.14-03fqsejc.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.14-1m7bkth3.mjs +4 -0
  52. package/dist/chunks/caches-1.0.14-ar7ea5ez.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.14-qw8yg1j3.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.14-nf8prbr5.mjs +1 -0
  55. package/dist/chunks/clear-1.0.14-2k1a1te1.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.14-9vjx2459.mjs +1 -0
  57. package/dist/chunks/cli-1.0.14-02mjj2td.mjs +2 -0
  58. package/dist/chunks/cli-1.0.14-03dntq34.mjs +2 -0
  59. package/dist/chunks/cli-1.0.14-056vh6pz.mjs +2 -0
  60. package/dist/chunks/cli-1.0.14-06ay9th6.mjs +2 -0
  61. package/dist/chunks/cli-1.0.14-080f910z.mjs +2 -0
  62. package/dist/chunks/cli-1.0.14-0aznk4r2.mjs +2 -0
  63. package/dist/chunks/cli-1.0.14-0b8m5g1h.mjs +2 -0
  64. package/dist/chunks/cli-1.0.14-0egax5w7.mjs +2 -0
  65. package/dist/chunks/cli-1.0.14-0gjgczkc.mjs +2 -0
  66. package/dist/chunks/cli-1.0.14-0x37zvng.mjs +2 -0
  67. package/dist/chunks/cli-1.0.14-1bdy2pdx.mjs +133 -0
  68. package/dist/chunks/cli-1.0.14-1qwq14cj.mjs +3 -0
  69. package/dist/chunks/cli-1.0.14-1t5z0ek3.mjs +3 -0
  70. package/dist/chunks/cli-1.0.14-1vt2kg6r.mjs +2 -0
  71. package/dist/chunks/cli-1.0.14-255cjybd.mjs +2 -0
  72. package/dist/chunks/cli-1.0.14-2hd7h509.mjs +2 -0
  73. package/dist/chunks/cli-1.0.14-2m0sc9nm.mjs +2 -0
  74. package/dist/chunks/cli-1.0.14-2n1n5t44.mjs +2 -0
  75. package/dist/chunks/cli-1.0.14-2nq4pjya.mjs +24 -0
  76. package/dist/chunks/cli-1.0.14-2vr2yczh.mjs +2 -0
  77. package/dist/chunks/cli-1.0.14-2x3edt9r.mjs +2 -0
  78. package/dist/chunks/cli-1.0.14-2ygex7d3.mjs +9 -0
  79. package/dist/chunks/cli-1.0.14-2zyyyhb7.mjs +3 -0
  80. package/dist/chunks/cli-1.0.14-37ekvc0d.mjs +18 -0
  81. package/dist/chunks/cli-1.0.14-3psqc9e7.mjs +39 -0
  82. package/dist/chunks/cli-1.0.14-3twn11hz.mjs +2 -0
  83. package/dist/chunks/cli-1.0.14-494f4wzb.mjs +2 -0
  84. package/dist/chunks/cli-1.0.14-4hcxmq25.mjs +2 -0
  85. package/dist/chunks/cli-1.0.14-4jr9qd6b.mjs +2 -0
  86. package/dist/chunks/cli-1.0.14-4k924cg4.mjs +2 -0
  87. package/dist/chunks/cli-1.0.14-5d4wcwg0.mjs +2 -0
  88. package/dist/chunks/cli-1.0.14-5scjg1rq.mjs +4 -0
  89. package/dist/chunks/cli-1.0.14-5z2gnwr2.mjs +2 -0
  90. package/dist/chunks/cli-1.0.14-66xxje2h.mjs +2 -0
  91. package/dist/chunks/cli-1.0.14-67n1r865.mjs +24 -0
  92. package/dist/chunks/cli-1.0.14-68k1pwnn.mjs +2 -0
  93. package/dist/chunks/cli-1.0.14-6eecgnxv.mjs +2 -0
  94. package/dist/chunks/cli-1.0.14-6knmqxp0.mjs +2 -0
  95. package/dist/chunks/cli-1.0.14-6v1pc51c.mjs +202 -0
  96. package/dist/chunks/cli-1.0.14-75b7hq1n.mjs +2 -0
  97. package/dist/chunks/cli-1.0.14-75v98tkm.mjs +6 -0
  98. package/dist/chunks/cli-1.0.14-7ce0zgxz.mjs +18 -0
  99. package/dist/chunks/cli-1.0.14-7mc80f2n.mjs +2 -0
  100. package/dist/chunks/cli-1.0.14-7qay34rj.mjs +2 -0
  101. package/dist/chunks/cli-1.0.14-7sxsfqxa.mjs +12 -0
  102. package/dist/chunks/cli-1.0.14-85hb2c4v.mjs +3 -0
  103. package/dist/chunks/cli-1.0.14-86makc2k.mjs +2 -0
  104. package/dist/chunks/cli-1.0.14-8848tddm.mjs +2 -0
  105. package/dist/chunks/cli-1.0.14-8fgg3hse.mjs +2 -0
  106. package/dist/chunks/cli-1.0.14-8mxj80zx.mjs +4 -0
  107. package/dist/chunks/cli-1.0.14-95d1hyag.mjs +2 -0
  108. package/dist/chunks/cli-1.0.14-95vxrp6k.mjs +2 -0
  109. package/dist/chunks/cli-1.0.14-9at1y60d.mjs +2 -0
  110. package/dist/chunks/cli-1.0.14-9peasp0t.mjs +15 -0
  111. package/dist/chunks/cli-1.0.14-ac1ts3ak.mjs +2 -0
  112. package/dist/chunks/cli-1.0.14-adsfxzzd.mjs +2 -0
  113. package/dist/chunks/cli-1.0.14-adwprsmr.mjs +2 -0
  114. package/dist/chunks/cli-1.0.14-ap4xyggx.mjs +2 -0
  115. package/dist/chunks/cli-1.0.14-asbc8xx1.mjs +16 -0
  116. package/dist/chunks/cli-1.0.14-ayanma4c.mjs +2 -0
  117. package/dist/chunks/cli-1.0.14-b0ry3sh2.mjs +25 -0
  118. package/dist/chunks/cli-1.0.14-b11ne5s1.mjs +12 -0
  119. package/dist/chunks/cli-1.0.14-b72b8p5z.mjs +2 -0
  120. package/dist/chunks/cli-1.0.14-b745qv7t.mjs +2 -0
  121. package/dist/chunks/cli-1.0.14-bhtptg08.mjs +2 -0
  122. package/dist/chunks/cli-1.0.14-bk3ss9tt.mjs +2 -0
  123. package/dist/chunks/cli-1.0.14-bpe70zxn.mjs +2 -0
  124. package/dist/chunks/cli-1.0.14-brabf1jv.mjs +2 -0
  125. package/dist/chunks/cli-1.0.14-c71rqr9k.mjs +2 -0
  126. package/dist/chunks/cli-1.0.14-c75wkkj6.mjs +2 -0
  127. package/dist/chunks/cli-1.0.14-ccc05p60.mjs +2 -0
  128. package/dist/chunks/cli-1.0.14-ch132841.mjs +2 -0
  129. package/dist/chunks/cli-1.0.14-cm2p0ph3.mjs +2 -0
  130. package/dist/chunks/cli-1.0.14-ct1wcd17.mjs +2 -0
  131. package/dist/chunks/cli-1.0.14-cxd5b9bk.mjs +2 -0
  132. package/dist/chunks/cli-1.0.14-d0xsytrn.mjs +2 -0
  133. package/dist/chunks/cli-1.0.14-d92vvqs4.mjs +2 -0
  134. package/dist/chunks/cli-1.0.14-dbqfyv7s.mjs +5 -0
  135. package/dist/chunks/cli-1.0.14-dbvshaqg.mjs +4 -0
  136. package/dist/chunks/cli-1.0.14-dd57p59t.mjs +2 -0
  137. package/dist/chunks/cli-1.0.14-de21tard.mjs +2 -0
  138. package/dist/chunks/cli-1.0.14-df2x4fp2.mjs +4 -0
  139. package/dist/chunks/cli-1.0.14-dk082sx4.mjs +17 -0
  140. package/dist/chunks/cli-1.0.14-dnpdnyqq.mjs +4 -0
  141. package/dist/chunks/cli-1.0.14-dthw88h2.mjs +2 -0
  142. package/dist/chunks/cli-1.0.14-dxb8x0rz.mjs +2 -0
  143. package/dist/chunks/cli-1.0.14-dzhv160v.mjs +2 -0
  144. package/dist/chunks/cli-1.0.14-e4rbgkh3.mjs +2 -0
  145. package/dist/chunks/cli-1.0.14-emgfr0hx.mjs +2 -0
  146. package/dist/chunks/cli-1.0.14-erk3k0t8.mjs +25 -0
  147. package/dist/chunks/cli-1.0.14-et0mrzhj.mjs +2 -0
  148. package/dist/chunks/cli-1.0.14-ex26fc5j.mjs +2 -0
  149. package/dist/chunks/cli-1.0.14-f2zs9vhk.mjs +2 -0
  150. package/dist/chunks/cli-1.0.14-f5jcsqk6.mjs +18 -0
  151. package/dist/chunks/cli-1.0.14-f6q37w7a.mjs +2 -0
  152. package/dist/chunks/cli-1.0.14-f6w3w08h.mjs +2 -0
  153. package/dist/chunks/cli-1.0.14-f89n34mp.mjs +3 -0
  154. package/dist/chunks/cli-1.0.14-fhfpsmvp.mjs +15 -0
  155. package/dist/chunks/cli-1.0.14-ftd45b68.mjs +2 -0
  156. package/dist/chunks/cli-1.0.14-g06w6jm4.mjs +2 -0
  157. package/dist/chunks/cli-1.0.14-g3gc4e8t.mjs +2 -0
  158. package/dist/chunks/cli-1.0.14-ghnyd53e.mjs +2 -0
  159. package/dist/chunks/cli-1.0.14-gjg1vjat.mjs +4 -0
  160. package/dist/chunks/cli-1.0.14-gpyabssm.mjs +1 -0
  161. package/dist/chunks/cli-1.0.14-gwmbkjc2.mjs +4 -0
  162. package/dist/chunks/cli-1.0.14-h1w8rqag.mjs +2 -0
  163. package/dist/chunks/cli-1.0.14-h2s5yvb9.mjs +2 -0
  164. package/dist/chunks/cli-1.0.14-h3hwpsy4.mjs +2 -0
  165. package/dist/chunks/cli-1.0.14-hdmedxpt.mjs +2 -0
  166. package/dist/chunks/cli-1.0.14-hh96zphk.mjs +2 -0
  167. package/dist/chunks/cli-1.0.14-hhk3wp4p.mjs +133 -0
  168. package/dist/chunks/cli-1.0.14-hx5s9hne.mjs +21 -0
  169. package/dist/chunks/cli-1.0.14-j51dm8c6.mjs +17 -0
  170. package/dist/chunks/cli-1.0.14-j9twyr23.mjs +2 -0
  171. package/dist/chunks/cli-1.0.14-jnpffwq9.mjs +2 -0
  172. package/dist/chunks/cli-1.0.14-jskb8031.mjs +2 -0
  173. package/dist/chunks/cli-1.0.14-jstnvbzj.mjs +2 -0
  174. package/dist/chunks/cli-1.0.14-k1e7b44j.mjs +7 -0
  175. package/dist/chunks/cli-1.0.14-k2xrkqcw.mjs +2 -0
  176. package/dist/chunks/cli-1.0.14-k6hht81r.mjs +2 -0
  177. package/dist/chunks/cli-1.0.14-k8eysm02.mjs +2 -0
  178. package/dist/chunks/cli-1.0.14-knxqt3hz.mjs +5 -0
  179. package/dist/chunks/cli-1.0.14-m470pppj.mjs +12 -0
  180. package/dist/chunks/cli-1.0.14-m6ja76zk.mjs +2 -0
  181. package/dist/chunks/cli-1.0.14-m70b5kbd.mjs +59 -0
  182. package/dist/chunks/cli-1.0.14-m7rhvjxj.mjs +2 -0
  183. package/dist/chunks/cli-1.0.14-ma7qcx6q.mjs +2 -0
  184. package/dist/chunks/cli-1.0.14-mb9174ba.mjs +2 -0
  185. package/dist/chunks/cli-1.0.14-mkw8yfc5.mjs +2 -0
  186. package/dist/chunks/cli-1.0.14-mm39qawq.mjs +2 -0
  187. package/dist/chunks/cli-1.0.14-mm9zge4j.mjs +2 -0
  188. package/dist/chunks/cli-1.0.14-msjx38tg.mjs +50 -0
  189. package/dist/chunks/cli-1.0.14-mvmk9c18.mjs +8 -0
  190. package/dist/chunks/cli-1.0.14-mw3ntwdw.mjs +2 -0
  191. package/dist/chunks/cli-1.0.14-myb8xers.mjs +2 -0
  192. package/dist/chunks/cli-1.0.14-n0fpj4mm.mjs +2 -0
  193. package/dist/chunks/cli-1.0.14-n8jgkzhf.mjs +2 -0
  194. package/dist/chunks/cli-1.0.14-nac2j4df.mjs +2 -0
  195. package/dist/chunks/cli-1.0.14-p0y766gp.mjs +2 -0
  196. package/dist/chunks/cli-1.0.14-p124te80.mjs +58 -0
  197. package/dist/chunks/cli-1.0.14-p1mk8kvb.mjs +2 -0
  198. package/dist/chunks/cli-1.0.14-p66smv2r.mjs +4 -0
  199. package/dist/chunks/cli-1.0.14-p8g9b6qs.mjs +6 -0
  200. package/dist/chunks/cli-1.0.14-pccg4txr.mjs +2 -0
  201. package/dist/chunks/cli-1.0.14-pcpqbb0b.mjs +3 -0
  202. package/dist/chunks/cli-1.0.14-peg6ppst.mjs +34 -0
  203. package/dist/chunks/cli-1.0.14-ph2nbeey.mjs +2 -0
  204. package/dist/chunks/cli-1.0.14-phhmzjmr.mjs +2 -0
  205. package/dist/chunks/cli-1.0.14-psw8gbp1.mjs +2 -0
  206. package/dist/chunks/cli-1.0.14-pxda0cqk.mjs +6 -0
  207. package/dist/chunks/cli-1.0.14-q4mq73ef.mjs +4 -0
  208. package/dist/chunks/cli-1.0.14-q4pb7169.mjs +67 -0
  209. package/dist/chunks/cli-1.0.14-q5jd6yb5.mjs +2 -0
  210. package/dist/chunks/cli-1.0.14-qwte1vj6.mjs +3 -0
  211. package/dist/chunks/cli-1.0.14-r7268arv.mjs +2 -0
  212. package/dist/chunks/cli-1.0.14-ra3s73t4.mjs +2 -0
  213. package/dist/chunks/cli-1.0.14-rfzdprh2.mjs +24 -0
  214. package/dist/chunks/cli-1.0.14-rxvbbv8x.mjs +3 -0
  215. package/dist/chunks/cli-1.0.14-s2pgxnbv.mjs +2 -0
  216. package/dist/chunks/cli-1.0.14-s7a5ag77.mjs +2 -0
  217. package/dist/chunks/cli-1.0.14-sbczqn9p.mjs +3 -0
  218. package/dist/chunks/cli-1.0.14-sn3z317d.mjs +2 -0
  219. package/dist/chunks/cli-1.0.14-srfv9wh6.mjs +2 -0
  220. package/dist/chunks/cli-1.0.14-t15qp56h.mjs +2 -0
  221. package/dist/chunks/cli-1.0.14-t1sj3p5p.mjs +3 -0
  222. package/dist/chunks/cli-1.0.14-t5m38zm5.mjs +15 -0
  223. package/dist/chunks/cli-1.0.14-tdqp99kc.mjs +2 -0
  224. package/dist/chunks/cli-1.0.14-tdv8sv8w.mjs +4 -0
  225. package/dist/chunks/cli-1.0.14-tjcgmra3.mjs +2 -0
  226. package/dist/chunks/cli-1.0.14-ttcwqfwj.mjs +4 -0
  227. package/dist/chunks/cli-1.0.14-v4p41dwz.mjs +5495 -0
  228. package/dist/chunks/cli-1.0.14-ve3fgjyt.mjs +2 -0
  229. package/dist/chunks/cli-1.0.14-vrh3vmm8.mjs +2 -0
  230. package/dist/chunks/cli-1.0.14-vvvyddeg.mjs +2 -0
  231. package/dist/chunks/cli-1.0.14-vw06jpp7.mjs +20 -0
  232. package/dist/chunks/cli-1.0.14-vz26zg7a.mjs +2 -0
  233. package/dist/chunks/cli-1.0.14-w6v1zxks.mjs +2 -0
  234. package/dist/chunks/cli-1.0.14-wa45dqxz.mjs +3 -0
  235. package/dist/chunks/cli-1.0.14-wjjb5egc.mjs +2 -0
  236. package/dist/chunks/cli-1.0.14-xa9jge5n.mjs +6 -0
  237. package/dist/chunks/cli-1.0.14-xbbbmrs2.mjs +2 -0
  238. package/dist/chunks/cli-1.0.14-xc0yjk9p.mjs +2 -0
  239. package/dist/chunks/cli-1.0.14-xf07bsa7.mjs +6 -0
  240. package/dist/chunks/cli-1.0.14-xgqrwe2j.mjs +12 -0
  241. package/dist/chunks/cli-1.0.14-xmfxgg80.mjs +2 -0
  242. package/dist/chunks/cli-1.0.14-xtwtqzg9.mjs +9 -0
  243. package/dist/chunks/cli-1.0.14-xvkary9q.mjs +2 -0
  244. package/dist/chunks/cli-1.0.14-xwakys0q.mjs +3 -0
  245. package/dist/chunks/cli-1.0.14-xy0szsmx.mjs +2 -0
  246. package/dist/chunks/cli-1.0.14-y10j25g4.mjs +2 -0
  247. package/dist/chunks/cli-1.0.14-y8dgsh0x.mjs +2 -0
  248. package/dist/chunks/cli-1.0.14-y8hsq76p.mjs +2 -0
  249. package/dist/chunks/cli-1.0.14-ya2azx0f.mjs +2 -0
  250. package/dist/chunks/cli-1.0.14-ya91z6q2.mjs +2 -0
  251. package/dist/chunks/cli-1.0.14-yxqwd7s7.mjs +45 -0
  252. package/dist/chunks/cli-1.0.14-yzy55kht.mjs +2 -0
  253. package/dist/chunks/cli-1.0.14-z4q3a7ed.mjs +2 -0
  254. package/dist/chunks/cli-1.0.14-zak89hnm.mjs +2 -0
  255. package/dist/chunks/cli-1.0.14-zar1mrp1.mjs +42 -0
  256. package/dist/chunks/cli-1.0.14-zbhe3r2k.mjs +2 -0
  257. package/dist/chunks/cli-1.0.14-zvvarkm8.mjs +2 -0
  258. package/dist/chunks/client-1.0.14-ya6cmgvc.mjs +1 -0
  259. package/dist/chunks/color-1.0.14-hwkxtn4h.mjs +1 -0
  260. package/dist/chunks/compact-1.0.14-0m3pkmtt.mjs +3 -0
  261. package/dist/chunks/config-1.0.14-5v04cvqa.mjs +1 -0
  262. package/dist/chunks/config-1.0.14-b53qm2m7.mjs +1 -0
  263. package/dist/chunks/constants-1.0.14-6dwbhe8v.mjs +1 -0
  264. package/dist/chunks/context-1.0.14-r2e42wq4.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.14-ecx4zas3.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.14-r5y211pa.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.14-293bscj5.mjs +1 -0
  268. package/dist/chunks/copy-1.0.14-4ac7bg5d.mjs +9 -0
  269. package/dist/chunks/cost-1.0.14-cpzf024x.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.14-7peb99vv.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.14-pbp99z80.mjs +1 -0
  272. package/dist/chunks/debug-1.0.14-935d0xmm.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.14-k2n8eszz.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.14-877wpqh4.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.14-y8xp07vm.mjs +1 -0
  276. package/dist/chunks/detection-1.0.14-v0x8bekt.mjs +1 -0
  277. package/dist/chunks/diff-1.0.14-zygrxp72.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.14-9bd8ns97.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.14-3d8wvpdr.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.14-ctf7gf3b.mjs +1 -0
  281. package/dist/chunks/effort-1.0.14-1bzhbssf.mjs +10 -0
  282. package/dist/chunks/engine-1.0.14-xpw6spn1.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.14-kvp9ngpw.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.14-x69rnjtn.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.14-17kmf2g0.mjs +1 -0
  286. package/dist/chunks/environments-1.0.14-r2dd7zte.mjs +1 -0
  287. package/dist/chunks/errors-1.0.14-zt9a9ar1.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.14-88939k92.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.14-ved7dedv.mjs +1 -0
  290. package/dist/chunks/exit-1.0.14-ja0e3xan.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.14-ae3278vr.mjs +1 -0
  292. package/dist/chunks/export-1.0.14-f5xsdta1.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.14-jzhsm8m8.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.14-kgecf4s4.mjs +1 -0
  295. package/dist/chunks/fast-1.0.14-2z2mjcs0.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.14-va4ywxx6.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.14-4k32daar.mjs +1 -0
  298. package/dist/chunks/git-1.0.14-2j16rmzn.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.14-yvj22nyn.mjs +1 -0
  300. package/dist/chunks/goal-1.0.14-k13hsq40.mjs +4 -0
  301. package/dist/chunks/grove-1.0.14-3372rcrv.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.14-0c5sw654.mjs +1 -0
  303. package/dist/chunks/headless-1.0.14-qf20wd4a.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.14-8q5mzb23.mjs +6 -0
  305. package/dist/chunks/help-1.0.14-fv0nfdpx.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.14-w7scty4f.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.14-8dvj8g9e.mjs +1 -0
  308. package/dist/chunks/hooks-1.0.14-nferkpmp.mjs +79 -0
  309. package/dist/chunks/ide-1.0.14-bd6ym0zg.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.14-cdgsapbd.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.14-gqjk256b.mjs +1 -0
  312. package/dist/chunks/index-1.0.14-0gktvbaw.mjs +30 -0
  313. package/dist/chunks/index-1.0.14-2xbsva4c.mjs +1 -0
  314. package/dist/chunks/index-1.0.14-4jb8g44p.mjs +1 -0
  315. package/dist/chunks/index-1.0.14-4tsn7fzy.mjs +1 -0
  316. package/dist/chunks/index-1.0.14-76ed957m.mjs +1 -0
  317. package/dist/chunks/index-1.0.14-95wh21ee.mjs +1 -0
  318. package/dist/chunks/index-1.0.14-9mv1tydz.mjs +1 -0
  319. package/dist/chunks/index-1.0.14-bb2w8nxz.mjs +1 -0
  320. package/dist/chunks/index-1.0.14-bphvske3.mjs +1 -0
  321. package/dist/chunks/index-1.0.14-e9qzyyvx.mjs +1 -0
  322. package/dist/chunks/index-1.0.14-fr24eeaa.mjs +1 -0
  323. package/dist/chunks/index-1.0.14-hmqgg1qn.mjs +1 -0
  324. package/dist/chunks/index-1.0.14-mt1a6s7m.mjs +5 -0
  325. package/dist/chunks/index-1.0.14-njtcq7xt.mjs +17 -0
  326. package/dist/chunks/index-1.0.14-pfztmgj3.mjs +2 -0
  327. package/dist/chunks/index-1.0.14-pjvqwa0j.mjs +1 -0
  328. package/dist/chunks/index-1.0.14-q3b475mg.mjs +1 -0
  329. package/dist/chunks/index-1.0.14-qafjae7s.mjs +1 -0
  330. package/dist/chunks/index-1.0.14-t8y5yaxp.mjs +9 -0
  331. package/dist/chunks/index-1.0.14-tqttfghe.mjs +1 -0
  332. package/dist/chunks/index-1.0.14-xfx695vz.mjs +9 -0
  333. package/dist/chunks/index-1.0.14-xn2m6vyc.mjs +1 -0
  334. package/dist/chunks/index-1.0.14-y355w9gp.mjs +2 -0
  335. package/dist/chunks/init-1.0.14-1efcnp5z.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.14-kv23c7gd.mjs +1 -0
  337. package/dist/chunks/ink-1.0.14-9k6231ba.mjs +1 -0
  338. package/dist/chunks/insights-1.0.14-4ha85mj0.mjs +870 -0
  339. package/dist/chunks/install-1.0.14-nwvqnt31.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.14-8acvsf50.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.14-fnsb39mp.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.14-mtgqqxya.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.14-2wrq07e2.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.14-129wqq67.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.14-c3rf5j58.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.14-jvj37pje.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.14-xvrmxww0.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.14-8940ydgw.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.14-k3qzacrz.mjs +1 -0
  350. package/dist/chunks/log-1.0.14-he8jphq3.mjs +1 -0
  351. package/dist/chunks/main-1.0.14-dh291att.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.14-r390r05h.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.14-dbp8b6yk.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.14-nfyhp5dt.mjs +17 -0
  355. package/dist/chunks/mcp-1.0.14-qhvm23d4.mjs +4 -0
  356. package/dist/chunks/mcpb-1.0.14-g7pvytac.mjs +1 -0
  357. package/dist/chunks/memory-1.0.14-arny0fef.mjs +72 -0
  358. package/dist/chunks/model-1.0.14-ek671gpz.mjs +1 -0
  359. package/dist/chunks/model-1.0.14-xdb536jv.mjs +2 -0
  360. package/dist/chunks/node-1.0.14-8awswbzx.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.14-yr32rz1f.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.14-gx1b20d6.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.14-63dfj4v0.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.14-18jyfqq1.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.14-hb82n0gc.mjs +1 -0
  366. package/dist/chunks/parser-1.0.14-zn3zyc77.mjs +1 -0
  367. package/dist/chunks/passes-1.0.14-bp7y0ga8.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.14-7036mxvb.mjs +3 -0
  369. package/dist/chunks/permissions-1.0.14-z5gr66mc.mjs +1 -0
  370. package/dist/chunks/plan-1.0.14-xrx5wce4.mjs +1 -0
  371. package/dist/chunks/plist-1.0.14-6yv7va29.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.14-mmkj7mtk.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.14-1qed1emq.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.14-5aje195c.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.14-1cwrs307.mjs +2 -0
  376. package/dist/chunks/print-1.0.14-4f5y78jp.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.14-yzmdw47w.mjs +1 -0
  378. package/dist/chunks/process-1.0.14-7trwqmx6.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.14-yn16nwvc.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.14-b1fm20sp.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.14-0cnzws1z.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.14-7anakmng.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.14-qmww8jvd.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.14-4pff7d61.mjs +13 -0
  385. package/dist/chunks/provider-1.0.14-jkjnss6d.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.14-9g8b8pp7.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.14-p1fpm7fn.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.14-bhz1z031.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.14-4caz1dxv.mjs +34 -0
  390. package/dist/chunks/registry-1.0.14-wgdd0gj4.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.14-z4zrd1et.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.14-wk9ec32x.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.14-k0dbz57q.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.14-8r8xr5x5.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.14-gsr8k9bv.mjs +1 -0
  396. package/dist/chunks/rename-1.0.14-pv4tpegh.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.14-8rwsfzb9.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.14-kmxxcw37.mjs +1 -0
  399. package/dist/chunks/resume-1.0.14-gkb9015m.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.14-fc3n2baf.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.14-qv4qteet.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.14-5bp85pep.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.14-qgf6y50z.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.14-0wv4aywf.mjs +1 -0
  405. package/dist/chunks/session-1.0.14-1ckwnpxq.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.14-dv7ya6k8.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.14-zcgj9ema.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.14-5tq43xzg.mjs +1 -0
  409. package/dist/chunks/settings-1.0.14-mtmb6qxs.mjs +1 -0
  410. package/dist/chunks/setup-1.0.14-qtq4ak7y.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.14-7xzz4wz8.mjs +1 -0
  412. package/dist/chunks/skills-1.0.14-5d3kh6pf.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.14-2jhv1vxz.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.14-zdan85zj.mjs +1 -0
  415. package/dist/chunks/state-1.0.14-8znfttb5.mjs +1 -0
  416. package/dist/chunks/stats-1.0.14-xam611xt.mjs +6 -0
  417. package/dist/chunks/status-1.0.14-68dgf0ne.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.14-rc2n423z.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.14-4kv8wbzd.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.14-s5s4e0t3.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.14-1hcw931t.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.14-mjzq0rsa.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.14-w1512p66.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.14-s4b4y9r3.mjs +1 -0
  425. package/dist/chunks/theme-1.0.14-e9d1ap8d.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.14-5m6b79h4.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.14-tgw5nk8p.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.14-7jvk5109.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.14-jzsffb3f.mjs +1 -0
  430. package/dist/chunks/tools-1.0.14-04f8v0x1.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.14-y3ewcxzd.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.14-4refdt7a.mjs +69 -0
  433. package/dist/chunks/types-1.0.14-6qqdzh50.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.14-t1td5gnq.mjs +4 -0
  435. package/dist/chunks/update-1.0.14-dc0g2ak6.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.14-cya8ar2w.mjs +1 -0
  437. package/dist/chunks/upload-1.0.14-tx3ytzwx.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.14-9w4fsavp.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.14-w6s4yfb9.mjs +1 -0
  440. package/dist/chunks/usage-1.0.14-19mk4yn4.mjs +1 -0
  441. package/dist/chunks/util-1.0.14-gpjz2670.mjs +1 -0
  442. package/dist/chunks/utils-1.0.14-c4k982gy.mjs +1 -0
  443. package/dist/chunks/vim-1.0.14-90q3x97q.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.14-9kg2qyp8.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.14-0330jfrb.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.14-pnbbj6wm.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.14-fvdvr8sa.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.14-ym8ap3k8.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.14-05552egx.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.14-k4kthmxq.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +0 -1
  454. package/dist/chunks/App-1.0.13-ka050dp3.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +0 -1
  483. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +0 -3
  484. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +0 -110
  485. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +0 -1
  488. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +0 -1
  489. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +0 -1
  493. package/dist/chunks/branch-1.0.13-encr40nd.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +0 -1
  499. package/dist/chunks/btw-1.0.13-55x872ns.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +0 -4
  504. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +0 -1
  507. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +0 -1
  509. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +0 -2
  510. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +0 -2
  511. package/dist/chunks/cli-1.0.13-14c24kge.mjs +0 -2
  512. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +0 -2
  513. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +0 -3
  514. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +0 -2
  515. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +0 -3
  516. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +0 -4
  517. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +0 -45
  518. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +0 -2
  519. package/dist/chunks/cli-1.0.13-2x789qav.mjs +0 -2
  520. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +0 -1
  521. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +0 -3
  522. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +0 -18
  523. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +0 -4
  524. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +0 -2
  525. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +0 -2
  526. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +0 -2
  527. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +0 -2
  528. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +0 -2
  529. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +0 -15
  530. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +0 -2
  531. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +0 -2
  532. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +0 -2
  533. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +0 -6
  534. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +0 -2
  535. package/dist/chunks/cli-1.0.13-57993qn6.mjs +0 -2
  536. package/dist/chunks/cli-1.0.13-57ez593b.mjs +0 -3
  537. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +0 -4
  538. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +0 -58
  539. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +0 -2
  540. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +0 -2
  541. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +0 -2
  542. package/dist/chunks/cli-1.0.13-696y87my.mjs +0 -18
  543. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +0 -2
  544. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +0 -2
  545. package/dist/chunks/cli-1.0.13-6vb140br.mjs +0 -25
  546. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +0 -2
  547. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +0 -2
  548. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +0 -2
  549. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +0 -2
  550. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +0 -2
  551. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +0 -5
  552. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +0 -2
  553. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +0 -2
  554. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +0 -2
  555. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +0 -6
  556. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +0 -2
  557. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +0 -2
  558. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +0 -2
  559. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +0 -2
  560. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +0 -9
  561. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +0 -25
  562. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +0 -2
  563. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +0 -2
  564. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +0 -2
  565. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +0 -2
  567. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +0 -9
  568. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +0 -2
  569. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +0 -2
  570. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +0 -15
  571. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +0 -2
  572. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +0 -34
  573. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +0 -3
  574. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +0 -2
  575. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +0 -2
  576. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +0 -2
  577. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +0 -2
  578. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +0 -4
  579. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +0 -2
  580. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +0 -2
  581. package/dist/chunks/cli-1.0.13-e464ab16.mjs +0 -2
  582. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +0 -2
  584. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +0 -2
  585. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +0 -3
  586. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +0 -12
  587. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +0 -133
  588. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +0 -67
  589. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +0 -2
  590. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +0 -2
  591. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +0 -2
  592. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +0 -2
  593. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +0 -2
  594. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +0 -8
  595. package/dist/chunks/cli-1.0.13-g7daabde.mjs +0 -3
  596. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +0 -2
  597. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +0 -2
  598. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +0 -16
  599. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +0 -2
  600. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +0 -39
  601. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +0 -2
  602. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +0 -12
  603. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +0 -12
  604. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +0 -2
  605. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +0 -2
  606. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +0 -2
  607. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +0 -2
  608. package/dist/chunks/cli-1.0.13-k71bq854.mjs +0 -2
  609. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +0 -2
  610. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +0 -2
  611. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +0 -12
  612. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +0 -2
  613. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +0 -3
  614. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +0 -7
  615. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +0 -2
  616. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +0 -5495
  617. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +0 -2
  618. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +0 -4
  619. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +0 -2
  620. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +0 -59
  621. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +0 -2
  622. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +0 -2
  623. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +0 -2
  624. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +0 -15
  625. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +0 -202
  626. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +0 -2
  627. package/dist/chunks/cli-1.0.13-p7b51har.mjs +0 -2
  628. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +0 -2
  629. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +0 -6
  630. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +0 -2
  631. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +0 -2
  632. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +0 -17
  633. package/dist/chunks/cli-1.0.13-q40za40w.mjs +0 -50
  634. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +0 -2
  635. package/dist/chunks/cli-1.0.13-qx079tft.mjs +0 -2
  636. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +0 -2
  637. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +0 -2
  638. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +0 -2
  639. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +0 -4
  640. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +0 -2
  641. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +0 -2
  642. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +0 -24
  643. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +0 -2
  644. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +0 -2
  645. package/dist/chunks/cli-1.0.13-s15merj9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +0 -2
  647. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +0 -2
  648. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +0 -24
  649. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +0 -2
  650. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +0 -20
  651. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +0 -2
  652. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +0 -24
  653. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +0 -2
  654. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +0 -2
  655. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +0 -2
  656. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +0 -2
  657. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +0 -2
  658. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +0 -17
  659. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +0 -2
  660. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +0 -2
  661. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +0 -3
  662. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +0 -2
  663. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +0 -2
  664. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +0 -2
  665. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +0 -2
  666. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +0 -2
  667. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +0 -21
  668. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +0 -2
  669. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +0 -2
  670. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +0 -4
  671. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +0 -133
  672. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +0 -2
  673. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +0 -2
  674. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +0 -2
  675. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +0 -2
  676. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +0 -2
  677. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +0 -2
  678. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +0 -2
  679. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +0 -5
  680. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +0 -2
  681. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +0 -2
  682. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +0 -2
  683. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +0 -2
  684. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +0 -6
  685. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +0 -2
  686. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +0 -2
  687. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +0 -4
  688. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +0 -3
  689. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +0 -2
  690. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +0 -2
  691. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +0 -2
  692. package/dist/chunks/cli-1.0.13-xr55511t.mjs +0 -2
  693. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +0 -42
  694. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +0 -18
  695. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +0 -6
  696. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +0 -2
  697. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +0 -4
  698. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +0 -2
  699. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +0 -4
  700. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +0 -4
  701. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +0 -3
  702. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +0 -2
  703. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +0 -2
  704. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +0 -3
  705. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +0 -2
  706. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +0 -2
  707. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +0 -2
  708. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +0 -2
  709. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +0 -2
  710. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +0 -1
  711. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +0 -1
  712. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +0 -3
  713. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +0 -1
  714. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +0 -1
  715. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +0 -1
  716. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +0 -1
  720. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +0 -9
  721. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +0 -1
  724. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.13-e005km58.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +0 -1
  728. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +0 -1
  729. package/dist/chunks/diff-1.0.13-9jypv082.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +0 -1
  733. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +0 -10
  734. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +0 -1
  738. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +0 -1
  739. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +0 -1
  742. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +0 -1
  744. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +0 -1
  747. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +0 -1
  750. package/dist/chunks/git-1.0.13-9196pgzv.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +0 -1
  752. package/dist/chunks/goal-1.0.13-cty957vz.mjs +0 -4
  753. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +0 -1
  755. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +0 -6
  757. package/dist/chunks/help-1.0.13-em333cwb.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +0 -1
  761. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +0 -1
  764. package/dist/chunks/index-1.0.13-361h9v63.mjs +0 -1
  765. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +0 -1
  766. package/dist/chunks/index-1.0.13-55th4hhq.mjs +0 -1
  767. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +0 -1
  768. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +0 -1
  769. package/dist/chunks/index-1.0.13-792fhv61.mjs +0 -1
  770. package/dist/chunks/index-1.0.13-8k0904bs.mjs +0 -1
  771. package/dist/chunks/index-1.0.13-ace8202d.mjs +0 -2
  772. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +0 -1
  773. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +0 -1
  774. package/dist/chunks/index-1.0.13-ej84k860.mjs +0 -1
  775. package/dist/chunks/index-1.0.13-fnd36467.mjs +0 -2
  776. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +0 -30
  777. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +0 -1
  778. package/dist/chunks/index-1.0.13-j0146ntq.mjs +0 -1
  779. package/dist/chunks/index-1.0.13-jackh0p4.mjs +0 -17
  780. package/dist/chunks/index-1.0.13-kfmh713v.mjs +0 -9
  781. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +0 -1
  782. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +0 -1
  783. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +0 -1
  784. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +0 -5
  785. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +0 -9
  786. package/dist/chunks/index-1.0.13-ykat42gv.mjs +0 -1
  787. package/dist/chunks/init-1.0.13-pyw980be.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +0 -1
  789. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +0 -1
  790. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +0 -870
  791. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +0 -1
  802. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +0 -1
  803. package/dist/chunks/main-1.0.13-h958ytkv.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +0 -4
  806. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +0 -17
  808. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +0 -1
  809. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +0 -72
  810. package/dist/chunks/model-1.0.13-28wkmva5.mjs +0 -2
  811. package/dist/chunks/model-1.0.13-wbne69bf.mjs +0 -1
  812. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +0 -1
  816. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +0 -1
  818. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +0 -1
  819. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.13-091a123r.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +0 -3
  822. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +0 -1
  823. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +0 -2
  828. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +0 -1
  830. package/dist/chunks/process-1.0.13-yvqmferw.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +0 -13
  837. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +0 -34
  842. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +0 -1
  848. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +0 -1
  851. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +0 -1
  857. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +0 -1
  861. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +0 -1
  862. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +0 -1
  864. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +0 -1
  867. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +0 -1
  868. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +0 -6
  869. package/dist/chunks/status-1.0.13-t69r10gd.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +0 -1
  877. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +0 -1
  882. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +0 -69
  885. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +0 -4
  887. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +0 -1
  892. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +0 -1
  893. package/dist/chunks/util-1.0.13-87gxb90q.mjs +0 -1
  894. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +0 -1
  895. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.13-ap2xrh2s.mjs → cli-1.0.14-0e04z9y7.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.13-tzenmc0b.mjs → cli-1.0.14-b2z4y3qj.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.13-v34fp7gq.mjs → cli-1.0.14-d2q4akvz.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.13-n6bzzv7p.mjs → cli-1.0.14-fnp8x3aj.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.13-d9nvpqpw.mjs → cli-1.0.14-ks6tgvs0.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.13-wv7skbb9.mjs → cli-1.0.14-skf34yk4.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.13-q9et56bj.mjs → cli-1.0.14-w1y6p2xa.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.13-4z6c4gzk.mjs → cli-1.0.14-z311x3av.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Lka as q,Vka as U}from"./cli-1.0.14-dzhv160v.mjs";import{gsa as L,hsa as X}from"./cli-1.0.14-ks6tgvs0.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
2
+ export{G as DX,Y as EX,Z as FX,$ as GX,Q as HX,_ as IX,v as JX,E as KX,A as LX,h as MX,u as NX,f as OX,w as PX,S as QX,P as RX,I as SX,l as TX,y as UX,g as VX};
@@ -0,0 +1,2 @@
1
+ import{Ap as n,gx as I,hx as P,lx as t,zp as W}from"./cli-1.0.14-v4p41dwz.mjs";import{a4 as H,b4 as p}from"./cli-1.0.14-ap4xyggx.mjs";import{c4 as C,e4 as i}from"./cli-1.0.14-080f910z.mjs";import{E8 as l,F7 as v,M4 as S,S4 as c,e8 as R,k8 as V}from"./cli-1.0.14-asbc8xx1.mjs";import{Tda as q,Tea as O,Tfa as T,Uda as u,Ufa as Y,_fa as y,bga as k,ega as g,qga as D,vea as E,yea as X,yga as m}from"./cli-1.0.14-6v1pc51c.mjs";import{bia as G,dia as f,eia as $,fia as h}from"./cli-1.0.14-q4pb7169.mjs";import{Qia as Z,Via as _,Wia as M}from"./cli-1.0.14-sn3z317d.mjs";import{_ja as x,bka as b}from"./cli-1.0.14-pxda0cqk.mjs";import{Kra as A,sra as Q}from"./cli-1.0.14-7ce0zgxz.mjs";import{hsa as U}from"./cli-1.0.14-ks6tgvs0.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
+ export{Yj as vc,r as wc};
@@ -0,0 +1,2 @@
1
+ import{qga as C,w_ as z,y_ as H,yga as J}from"./cli-1.0.14-6v1pc51c.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,2 @@
1
+ import{Df as R,Ff as d}from"./cli-1.0.14-h3hwpsy4.mjs";import{k2 as j,n2 as c}from"./cli-1.0.14-ya2azx0f.mjs";import{_ja as K,bka as D}from"./cli-1.0.14-pxda0cqk.mjs";import{Fka as h,yka as C}from"./cli-1.0.14-tdv8sv8w.mjs";import{hsa as I,isa as J}from"./cli-1.0.14-ks6tgvs0.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.0.14-5rcgzv6s.mjs"),{getOrganizationUUID:Z}=await import("./client-1.0.14-ya6cmgvc.mjs"),{getOauthConfig:V}=await import("./oauth-1.0.14-yr32rz1f.mjs"),{getOAuthHeaders:P}=await import("./api-1.0.14-sgt5erw2.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.0.14-y8xp07vm.mjs"),{getDefaultBranch:_}=await import("./git-1.0.14-2j16rmzn.mjs"),{getMainLoopModel:M}=await import("./model-1.0.14-ek671gpz.mjs"),{default:T}=await import("./index-1.0.14-4jb8g44p.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-1.0.14-y8xp07vm.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.14-5rcgzv6s.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.14-ya6cmgvc.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.14-yr32rz1f.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.14-sgt5erw2.mjs"),{default:G}=await import("./index-1.0.14-4jb8g44p.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.14-5rcgzv6s.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.14-ya6cmgvc.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.14-yr32rz1f.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.14-sgt5erw2.mjs"),{default:G}=await import("./index-1.0.14-4jb8g44p.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-1.0.14-5rcgzv6s.mjs"),{getOrganizationUUID:Y}=await import("./client-1.0.14-ya6cmgvc.mjs"),{getOauthConfig:z}=await import("./oauth-1.0.14-yr32rz1f.mjs"),{getOAuthHeaders:G}=await import("./api-1.0.14-sgt5erw2.mjs"),{default:L}=await import("./index-1.0.14-4jb8g44p.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
+ export{i as uf,r as vf,t as wf,o as xf,p as yf};
@@ -0,0 +1,2 @@
1
+ import{PR as R,_J as Y,pm as W,sm as P,uk as Q,vk as I}from"./cli-1.0.14-v4p41dwz.mjs";import{Bga as B,Cga as f}from"./cli-1.0.14-gjg1vjat.mjs";import{Mia as F,qia as H,ria as J}from"./cli-1.0.14-y10j25g4.mjs";import{yqa as $,zma as v}from"./cli-1.0.14-5z2gnwr2.mjs";import{hsa as Z}from"./cli-1.0.14-ks6tgvs0.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -0,0 +1,2 @@
1
+ import{iN as Q,jN as $}from"./cli-1.0.14-v4p41dwz.mjs";import{gla as V,hla as P,ima as W,jma as E}from"./cli-1.0.14-5z2gnwr2.mjs";import{hsa as L}from"./cli-1.0.14-ks6tgvs0.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as md,C as nd};
@@ -0,0 +1,50 @@
1
+ import{Fc as zc,Gc as on}from"./cli-1.0.14-jstnvbzj.mjs";import{Hc as Vh,Ic as jt,Jc as Vt,Kc as Oc,Mc as jn}from"./cli-1.0.14-0gjgczkc.mjs";import{Nc as ft,Qc as Dn}from"./cli-1.0.14-3twn11hz.mjs";import{$H as xn,AG as zu,BG as Ru,CG as rn,Np as Mu,Op as Tu,Pp as Uu,Qp as Eu,Rp as nc,Sp as Ct,Tp as Xh,Up as Pu,Vp as Bu,Wp as Ln,XH as eh,Xp as Nh,YF as Xt,YH as jc,ZF as sh,Zp as ou,_H as In,_p as ac,_x as bc,aq as pu,ay as Pn,dq as ku,eq as An,fq as Lu,gG as S,gq as Qu,hG as Dc,hq as Nu,hx as Cc,iG as Bn,iq as Ju,ix as lc,jq as at,jx as rc,kq as Ah,kx as wc,lq as gn,lr as yc,lx as En,mq as Jh,mr as Un,oq as Gu,pq as mc,rq as Su,xG as bu,yG as ln,zG as Ou}from"./cli-1.0.14-v4p41dwz.mjs";import{iY as D,kY as Mn,wY as uc,xY as Tn}from"./cli-1.0.14-g3gc4e8t.mjs";import{G0 as F,I0 as y,l1 as Eh}from"./cli-1.0.14-m70b5kbd.mjs";import{A2 as oh,B2 as cc,C2 as ph,o2 as Ph,p2 as Bh,q2 as Ih,r2 as xh,s2 as Dh,t2 as xc,w2 as jh}from"./cli-1.0.14-myb8xers.mjs";import{T3 as yt,U3 as n,V3 as z,W3 as Tt}from"./cli-1.0.14-psw8gbp1.mjs";import{X3 as Qt}from"./cli-1.0.14-vvvyddeg.mjs";import{s4 as Pt,t4 as qu}from"./cli-1.0.14-pcpqbb0b.mjs";import{D6 as Dt,J4 as Uh,L4 as Ic,V6 as Wn}from"./cli-1.0.14-asbc8xx1.mjs";import{$ea as xt,Afa as bh,Bfa as ru,Cfa as wu,Dfa as Cn,Efa as Lh,Ffa as gu,Gfa as Qh,Ifa as Xu,Kfa as hc,Lfa as pt,Uea as tc,Vea as $t,Wea as Hn,Xea as ot,Yea as x,_ea as B,_fa as Kn,bfa as Jt,cfa as Fh,dfa as ut,efa as ct,f_ as qt,g_ as Sn,ifa as nt,jfa as _h,lfa as kh,pfa as Th,ufa as Oh,vfa as yu,wfa as Cu,xfa as Ut,yfa as zh,zfa as lu}from"./cli-1.0.14-6v1pc51c.mjs";import{Nka as o,Vka as Et}from"./cli-1.0.14-dzhv160v.mjs";import{dsa as Lt,esa as Gn,hsa as I}from"./cli-1.0.14-ks6tgvs0.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 Ac,au as Bc,aa as Cc,Vm as Dc,Xa as Ec};
@@ -0,0 +1,8 @@
1
+ import{gb as b}from"./cli-1.0.14-fnp8x3aj.mjs";import{of as zK,tf as dK}from"./cli-1.0.14-xwakys0q.mjs";import{$A as sz,$I as hK,LK as wz,Sm as rz,TK as MK,Um as bK,VT as j,Vo as M,Wo as vK,XT as uK,Yo as iz,ZA as oz,Zu as Cz,aB as fK,aJ as mK,ap as SK,cM as tz,dM as pK,ev as xK,kQ as Ez,sM as ez,tQ as FK,uM as cK}from"./cli-1.0.14-v4p41dwz.mjs";import{$Y as GK,UY as Kz,ZY as AK,_Y as Qz}from"./cli-1.0.14-m70b5kbd.mjs";import{C6 as Uz,D6 as lz,E8 as xz,J6 as Dz,M4 as U,O6 as I,Q6 as _z,S4 as O,V6 as k,g7 as nz,k7 as jK,q8 as Tz,s8 as Mz,u8 as R}from"./cli-1.0.14-asbc8xx1.mjs";import{$8 as _K,_8 as G}from"./cli-1.0.14-p8g9b6qs.mjs";import{$aa as zz,Bda as Jz,Eea as Wz,Faa as t,Fea as Bz,Gea as az,Hda as _,Kaa as LK,Q_ as $z,Qaa as e,S_ as TK,Tea as L,Uaa as UK,Z_ as cz,bba as DK,j_ as Zz,k_ as RK,n$ as dz,pea as gz,qga as V,r_ as T,sda as q,t_ as CK,u$ as EK,uda as H,vea as $,wda as uz,xda as S,yda as kz,yea as W,yga as A}from"./cli-1.0.14-6v1pc51c.mjs";import{_ga as E,dha as kK}from"./cli-1.0.14-gjg1vjat.mjs";import{iia as pz,jia as PK}from"./cli-1.0.14-y10j25g4.mjs";import{Xia as Z,_ia as N}from"./cli-1.0.14-k8eysm02.mjs";import{Gja as r,Ija as WK,Jja as i,Mja as o,Qja as BK}from"./cli-1.0.14-pxda0cqk.mjs";import{gka as s,hka as NK}from"./cli-1.0.14-ccc05p60.mjs";import{Aka as n,Fka as VK,yka as y}from"./cli-1.0.14-tdv8sv8w.mjs";import{Kka as C,Lka as v,Nka as hz,Tka as mz,Vka as yK}from"./cli-1.0.14-dzhv160v.mjs";import{Aoa as fz,Hoa as a,Mna as Iz,Nna as bz,Ona as Oz,Qna as vz,_oa as l,ooa as Sz,qma as F,uma as JK,yqa as w}from"./cli-1.0.14-5z2gnwr2.mjs";import{esa as wK}from"./cli-1.0.14-ks6tgvs0.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
+ `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
+ `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
+ `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[K,Q].filter(Boolean).join(`
7
+ `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
+ export{ZQ as N,$Q as O,qQ as P,HQ as Q,nX as R,rX as S,iX as T,oX as U,sX as V,tX as W,eX as X,zY as Y,KY as Z,QY as _};
@@ -0,0 +1,2 @@
1
+ import{ri as M,si as w,ti as A}from"./cli-1.0.14-c75wkkj6.mjs";import{bia as X,dia as N,eia as $,fia as O}from"./cli-1.0.14-q4pb7169.mjs";import{_ja as R,bka as C}from"./cli-1.0.14-pxda0cqk.mjs";import{Ika as L,Vka as _}from"./cli-1.0.14-dzhv160v.mjs";import{yqa as T,zma as H}from"./cli-1.0.14-5z2gnwr2.mjs";import{Kra as y,sra as W}from"./cli-1.0.14-7ce0zgxz.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
2
+ export{S as ca,f as da,l as ea,s as fa};
@@ -0,0 +1,2 @@
1
+ import{s4 as M,t4 as E}from"./cli-1.0.14-pcpqbb0b.mjs";import{Yea as _,bga as S,efa as F,ega as p,pfa as l,sfa as L,tfa as c}from"./cli-1.0.14-6v1pc51c.mjs";import{Nka as Y,Vka as m}from"./cli-1.0.14-dzhv160v.mjs";import{hsa as B}from"./cli-1.0.14-ks6tgvs0.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"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"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
+ export{R as o2,r as p2,o as q2,e as r2,I as s2,O as t2,U as u2,VJ as v2,a as w2,WJ as x2,yJ as y2,zJ as z2,n as A2,jJ as B2,s as C2};
@@ -0,0 +1,2 @@
1
+ import{hsa as y}from"./cli-1.0.14-ks6tgvs0.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
+ export{N as D2,P as E2,M as F2,C as G2,I as H2,L as I2,w as J2,T as K2,R as L2,b as M2,g as N2,l as O2,k as P2};
@@ -0,0 +1,2 @@
1
+ import{Rn as T,Sn as Cq,iy as Pq,my as cq}from"./cli-1.0.14-v4p41dwz.mjs";import{NY as Uq,OY as Iq,RY as kq}from"./cli-1.0.14-peg6ppst.mjs";import{G0 as L,I0 as O,kZ as aq,l1 as hq}from"./cli-1.0.14-m70b5kbd.mjs";import{U3 as J,V3 as Q,W3 as vq}from"./cli-1.0.14-psw8gbp1.mjs";import{N5 as bq,O5 as Mq,f6 as Sq}from"./cli-1.0.14-asbc8xx1.mjs";import{Tea as Bq,gba as Nq,iba as fq,w$ as Xq,x$ as jq,yea as Rq}from"./cli-1.0.14-6v1pc51c.mjs";import{Kha as nq}from"./cli-1.0.14-ya91z6q2.mjs";import{dsa as yq,hsa as Gq}from"./cli-1.0.14-ks6tgvs0.mjs";function dq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function eq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Wq=Gq(()=>{kq();Bq();fq()});function V(Y){return Y.replace(/\+/g," + ")}function LH(Y){let q=Eq.c(99),{dimColor:H,fixedWidth:Dq,gap:x,paddingX:l}=Y,m=T("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=V(m),q[0]=m,q[1]=p;else p=q[1];let d=p,e=T("app:toggleTodos","Global","ctrl+t"),f;if(q[2]!==e)f=V(e),q[2]=e,q[3]=f;else f=q[3];let s=f,i=T("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=V(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=T("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=V($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=T("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=V(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Hq=T("chat:modelPicker","Chat","alt+p"),n;if(q[10]!==Hq)n=V(Hq),q[10]=Hq,q[11]=n;else n=q[11];let Jq=n,Lq=T("chat:fastMode","Chat","alt+o"),j;if(q[12]!==Lq)j=V(Lq),q[12]=Lq,q[13]=j;else j=q[13];let Oq=j,Qq=T("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Qq)S=V(Qq),q[14]=Qq,q[15]=S;else S=q[15];let Tq=S,Vq=T("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Vq)a=V(Vq),q[16]=Vq,q[17]=a;else a=q[17];let Fq=a,Yq=T("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=V(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,gq=V(T("chat:increaseEffort","Chat","shift+right")),_q=V(T("chat:openDiff","Chat","ctrl+g")),pq=V(T("chat:openExplorer","Chat","ctrl+e")),C;if(q[20]!==H||q[21]!==Fq)C=null,q[20]=H,q[21]=Fq,q[22]=C;else C=q[22];let wq=C,zq=Dq?28:void 0,Z;if(q[23]!==H)Z=J(L,{children:J(O,{dimColor:H,children:"! for bash mode"})}),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J(L,{children:J(O,{dimColor:H,children:"/ for commands"})}),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J(L,{children:J(O,{dimColor:H,children:"@ for file paths"})}),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J(L,{children:J(O,{dimColor:H,children:"& for background"})}),q[29]=H,q[30]=A;else A=q[30];let D;if(q[31]!==H)D=J(L,{children:J(O,{dimColor:H,children:"/btw for side question"})}),q[31]=H,q[32]=D;else D=q[32];let F;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==D)F=Q(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,D,J(L,{children:Q(O,{dimColor:H,children:[pq," for file explorer"]})}),J(L,{children:Q(O,{dimColor:H,children:[_q," for diff reviewer"]})})]}),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=D,q[39]=F;else F=q[39];let Aq=Dq?35:void 0,G;if(q[40]!==H)G=J(L,{children:J(O,{dimColor:H,children:"double tap esc to clear input"})}),q[40]=H,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==H)N=J(L,{children:Q(O,{dimColor:H,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=H,q[44]=N;else N=q[44];let R;if(q[45]!==H||q[46]!==d)R=J(L,{children:Q(O,{dimColor:H,children:[d," for verbose output"]})}),q[45]=H,q[46]=d,q[47]=R;else R=q[47];let U;if(q[48]!==H||q[49]!==s)U=J(L,{children:Q(O,{dimColor:H,children:[s," to toggle tasks"]})}),q[48]=H,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==H)I=J(L,{children:J(O,{dimColor:H,children:c})}),q[52]=H,q[53]=I;else I=q[53];let K;if(q[54]!==Aq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==wq)K=Q(L,{flexDirection:"column",width:Aq,children:[G,N,R,U,wq,I]}),q[54]=Aq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=wq,q[61]=K;else K=q[61];let W;if(q[62]!==H||q[63]!==r)W=J(L,{children:Q(O,{dimColor:H,children:[r," to undo"]})}),q[62]=H,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==H)v=Xq()!=="windows"&&J(L,{children:J(O,{dimColor:H,children:"ctrl + z to suspend"})}),q[65]=H,q[66]=v;else v=q[66];let X;if(q[67]!==H||q[68]!==Zq)X=J(L,{children:Q(O,{dimColor:H,children:[Zq," to paste images"]})}),q[67]=H,q[68]=Zq,q[69]=X;else X=q[69];let b;if(q[70]!==H||q[71]!==Jq)b=J(L,{children:Q(O,{dimColor:H,children:[Jq," to switch model"]})}),q[70]=H,q[71]=Jq,q[72]=b;else b=q[72];let M;if(q[73]!==H||q[74]!==Oq)M=bq()&&Mq()&&J(L,{children:Q(O,{dimColor:H,children:[Oq," to toggle fast mode"]})}),q[73]=H,q[74]=Oq,q[75]=M;else M=q[75];let P;if(q[76]!==H||q[77]!==o)P=J(L,{children:Q(O,{dimColor:H,children:[o," to stash prompt"]})}),q[76]=H,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==H||q[80]!==Tq)E=J(L,{children:Q(O,{dimColor:H,children:[Tq," to edit in $EDITOR"]})}),q[79]=H,q[80]=Tq,q[81]=E;else E=q[81];let g;if(q[82]!==H)g=Pq()&&J(L,{children:J(O,{dimColor:H,children:"/keybindings to customize"})}),q[82]=H,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=Q(L,{flexDirection:"column",children:[W,v,X,b,J(L,{children:Q(O,{dimColor:H,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let u;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)u=Q(L,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=u;else u=q[98];return u}var Eq;var uq=Gq(()=>{hq();jq();cq();Cq();nq();Sq();Wq();vq();Eq=yq(aq(),1)});
2
+ export{dq as Gf,eq as Hf,Wq as If,LH as Jf,uq as Kf};
@@ -0,0 +1,2 @@
1
+ import{Zr as Hq,_r as pq,yz as Uq,zz as mq}from"./cli-1.0.14-v4p41dwz.mjs";import{c4 as Bq,e4 as dq}from"./cli-1.0.14-080f910z.mjs";import{E8 as gq,M4 as Wq,R4 as jq,S4 as Sq,e8 as c,i8 as S,y7 as Nq,z7 as yq}from"./cli-1.0.14-asbc8xx1.mjs";import{$$ as Gq,baa as Pq,bea as Yq,cea as Dq,dea as k,fea as Xq,iea as Lq,q$ as M,u$ as $q}from"./cli-1.0.14-6v1pc51c.mjs";import{bia as N,dia as bq,eia as E,fia as Cq}from"./cli-1.0.14-q4pb7169.mjs";import{Oia as Kq,Pia as Qq,Qia as Vq,Via as Zq,Wia as Rq}from"./cli-1.0.14-sn3z317d.mjs";import{Xia as _,_ia as e}from"./cli-1.0.14-k8eysm02.mjs";import{Dja as m,Ija as Eq,_ja as Y,bja as Fq,bka as Jq,dja as $J}from"./cli-1.0.14-pxda0cqk.mjs";import{Eka as P,Fka as qq,yka as C}from"./cli-1.0.14-tdv8sv8w.mjs";import{Kra as kq,sra as z}from"./cli-1.0.14-7ce0zgxz.mjs";import{gsa as ZJ,hsa as d,isa as Tq}from"./cli-1.0.14-ks6tgvs0.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.14-nf8prbr5.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
2
+ export{vq as p,NJ as q,BJ as r,Mq as s,HJ as t,UJ as u,OJ as v,wJ as w};
@@ -0,0 +1,2 @@
1
+ import{I0 as t,kZ as s,l1 as f}from"./cli-1.0.14-m70b5kbd.mjs";import{U3 as n,V3 as c,W3 as r}from"./cli-1.0.14-psw8gbp1.mjs";import{dsa as m,hsa as l}from"./cli-1.0.14-ks6tgvs0.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
+ export{T as tg,p as ug};
@@ -0,0 +1,58 @@
1
+ import{$J as F,Jv as U,Lv as h,PR as a,VC as A,WC as p,eB as k,ej as $,fB as I,hj as m,wR as L}from"./cli-1.0.14-v4p41dwz.mjs";import{x4 as O,y4 as f}from"./cli-1.0.14-asbc8xx1.mjs";import{Mja as S,Qja as E}from"./cli-1.0.14-pxda0cqk.mjs";import{Dka as b,Fka as T}from"./cli-1.0.14-tdv8sv8w.mjs";import{Ika as y,Vka as C}from"./cli-1.0.14-dzhv160v.mjs";import{hsa as N}from"./cli-1.0.14-ks6tgvs0.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
+ export{Xw as Wh,Zw as Xh,s as Yh};
@@ -0,0 +1,2 @@
1
+ import{ST as z,_r as _}from"./cli-1.0.14-v4p41dwz.mjs";import{e4 as f}from"./cli-1.0.14-080f910z.mjs";import{E8 as A,S4 as K,z7 as k}from"./cli-1.0.14-asbc8xx1.mjs";import{Hda as v,Tea as x,Xaa as W,t_ as L,u$ as T}from"./cli-1.0.14-6v1pc51c.mjs";import{Kha as H}from"./cli-1.0.14-ya91z6q2.mjs";import{bia as b,dia as Q,eia as q,fia as V}from"./cli-1.0.14-q4pb7169.mjs";import{Wia as w}from"./cli-1.0.14-sn3z317d.mjs";import{_ia as O}from"./cli-1.0.14-k8eysm02.mjs";import{Fka as U}from"./cli-1.0.14-tdv8sv8w.mjs";import{uma as X,yqa as B}from"./cli-1.0.14-5z2gnwr2.mjs";import{hsa as G}from"./cli-1.0.14-ks6tgvs0.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
2
+ export{Y as Id};
@@ -0,0 +1,4 @@
1
+ import{No as IJ,Po as cJ,SR as UJ,UK as DJ,VK as BJ,WK as lJ,Zi as pJ,pS as jJ,qS as $V}from"./cli-1.0.14-v4p41dwz.mjs";import{D$ as NJ,H$ as gJ,Hda as uJ,T_ as WJ,Tea as hJ,Y_ as l,qga as G,u$ as mJ,x_ as c,xda as m,y_ as fJ,yea as YJ,yga as dJ}from"./cli-1.0.14-6v1pc51c.mjs";import{iia as U,jia as PJ}from"./cli-1.0.14-y10j25g4.mjs";import{Xia as f,_ia as SJ}from"./cli-1.0.14-k8eysm02.mjs";import{Mja as VJ,Qja as bJ,_ja as Q,bka as kJ}from"./cli-1.0.14-pxda0cqk.mjs";import{Fka as yJ,yka as JJ}from"./cli-1.0.14-tdv8sv8w.mjs";import{vma as qJ,wma as zJ}from"./cli-1.0.14-5z2gnwr2.mjs";import{dsa as wJ,hsa as _J}from"./cli-1.0.14-ks6tgvs0.mjs";class p{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new p;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await c(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
+ `).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=c(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
+ `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let $=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();cJ();uJ();zJ();KJ=wJ(pJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
+ export{p as di,MJ as ei,jV as fi,vV as gi,RV as hi,GV as ii,AJ as ji,CV as ki,LV as li,ZV as mi};
@@ -0,0 +1,6 @@
1
+ import{hsa as j}from"./cli-1.0.14-ks6tgvs0.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
+ `:`
3
+ `)+z,H=D+1,D=q.indexOf(`
4
+ `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
+ `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
+ export{o as Z8,O1 as _8,e as $8};
@@ -0,0 +1,2 @@
1
+ import{Cd as Z,Dd as _,Ed as $,Hd as O}from"./cli-1.0.14-emgfr0hx.mjs";import{Yd as Y,be as x}from"./cli-1.0.14-gwmbkjc2.mjs";import{IL as U,NL as W,SL as S,TL as X,bM as V}from"./cli-1.0.14-v4p41dwz.mjs";import{_ja as R,bka as K}from"./cli-1.0.14-pxda0cqk.mjs";import{Fka as C,yka as Q}from"./cli-1.0.14-tdv8sv8w.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 $a};
@@ -0,0 +1,3 @@
1
+ import{Tea as R,w_ as Q,y_ as M,yea as P}from"./cli-1.0.14-6v1pc51c.mjs";import{_ja as G,bka as C}from"./cli-1.0.14-pxda0cqk.mjs";import{hsa as j}from"./cli-1.0.14-ks6tgvs0.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
2
+ `),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
3
+ export{g as r4,w as s4,f as t4};