@claudiolabs/claudin 1.1.13 → 1.1.15

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 (902) hide show
  1. package/README.md +15 -0
  2. package/dist/chunks/AgentTool-1.1.15-gx8fc8ee.mjs +1 -0
  3. package/dist/chunks/App-1.1.15-qpr6dmbc.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.15-rtnhqcns.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.15-s7er4t5d.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.15-kr2k1h8a.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.15-hw9nhwyy.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.15-0x92en6s.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.15-d6xm1gwy.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.15-c7mf2z38.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.15-0epyn26c.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.15-ctfaxbr1.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.15-e0tff61r.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.15-yd169vrz.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.15-n45xnvpn.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.15-k01hesh9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.15-asr4k8v7.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.15-hrth7zcv.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.15-zbv78tw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.15-nx65m66j.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.15-ywaycst9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.15-etyznx6r.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.15-0fg2psza.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.15-rse3qrff.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.15-v5yc09rw.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.15-yf6w94dh.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.15-8wp0rdty.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.15-gsenj0tc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.15-gdh1b8nf.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.15-j0xgsz6j.mjs +1 -0
  31. package/dist/chunks/agents-1.1.15-5492tnsb.mjs +3 -0
  32. package/dist/chunks/agents-1.1.15-7hc1h2ch.mjs +110 -0
  33. package/dist/chunks/api-1.1.15-xk3v2kp8.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.15-e2v4yew0.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.15-nw8cp5g9.mjs +1 -0
  36. package/dist/chunks/auth-1.1.15-e4p3txt8.mjs +1 -0
  37. package/dist/chunks/auth-1.1.15-mwc856q9.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.15-a9fb2v1b.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.15-5wavzb5n.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.15-83x041z8.mjs +1 -0
  41. package/dist/chunks/branch-1.1.15-91a0yyws.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.15-5da0fvad.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.15-tg57j3bm.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.15-d4nwdh4g.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.15-rmb5208z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.15-rn0mx8rq.mjs +1 -0
  47. package/dist/chunks/btw-1.1.15-0jmj5h91.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.15-smncbttv.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.15-tcd6d5ha.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.15-nhmnthg5.mjs +4 -0
  51. package/dist/chunks/caches-1.1.15-ef0rrkeh.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.15-mhq3r4nw.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.15-khb8ybx5.mjs +1 -0
  54. package/dist/chunks/clear-1.1.15-8pawqyx1.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.15-xt8nj2kp.mjs +1 -0
  56. package/dist/chunks/cli-1.1.15-08shmxg9.mjs +2 -0
  57. package/dist/chunks/cli-1.1.15-0dyh92xq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.15-0h2kcmr1.mjs +18 -0
  59. package/dist/chunks/cli-1.1.15-0pfa5bmf.mjs +2 -0
  60. package/dist/chunks/cli-1.1.15-0rfyjnzd.mjs +2 -0
  61. package/dist/chunks/cli-1.1.15-0we6hqxv.mjs +2 -0
  62. package/dist/chunks/cli-1.1.15-10px11sw.mjs +3 -0
  63. package/dist/chunks/cli-1.1.15-13a7c1kp.mjs +42 -0
  64. package/dist/chunks/cli-1.1.15-1686x3bq.mjs +2 -0
  65. package/dist/chunks/cli-1.1.15-180mwt3m.mjs +12 -0
  66. package/dist/chunks/cli-1.1.15-198p1q51.mjs +2 -0
  67. package/dist/chunks/cli-1.1.15-1dxkde62.mjs +24 -0
  68. package/dist/chunks/cli-1.1.15-1j51w5q4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.15-1kjb39xj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.15-23s6jgky.mjs +2 -0
  71. package/dist/chunks/cli-1.1.15-28rcg0zk.mjs +2 -0
  72. package/dist/chunks/cli-1.1.15-2a8j57jc.mjs +3 -0
  73. package/dist/chunks/cli-1.1.15-2cqj7ng5.mjs +2 -0
  74. package/dist/chunks/cli-1.1.15-2ds94snw.mjs +2 -0
  75. package/dist/chunks/cli-1.1.15-2h049njx.mjs +2 -0
  76. package/dist/chunks/cli-1.1.15-2hm1vd94.mjs +2 -0
  77. package/dist/chunks/cli-1.1.15-2y7wsmne.mjs +4 -0
  78. package/dist/chunks/cli-1.1.15-336vzqmv.mjs +2 -0
  79. package/dist/chunks/cli-1.1.15-37qaz9g1.mjs +2 -0
  80. package/dist/chunks/cli-1.1.15-3ehpt6h2.mjs +2 -0
  81. package/dist/chunks/cli-1.1.15-3j79dbx9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.15-3rdskywh.mjs +39 -0
  83. package/dist/chunks/cli-1.1.15-3vx70sys.mjs +24 -0
  84. package/dist/chunks/cli-1.1.15-49wq39yd.mjs +2 -0
  85. package/dist/chunks/cli-1.1.15-4efmr7vy.mjs +2 -0
  86. package/dist/chunks/cli-1.1.15-4gknk1rg.mjs +18 -0
  87. package/dist/chunks/cli-1.1.15-4hpce0rc.mjs +2 -0
  88. package/dist/chunks/cli-1.1.15-4yp9xqth.mjs +2 -0
  89. package/dist/chunks/cli-1.1.15-59jq5mvw.mjs +2 -0
  90. package/dist/chunks/cli-1.1.15-59t4k8sr.mjs +66 -0
  91. package/dist/chunks/cli-1.1.15-5cr53mcj.mjs +2 -0
  92. package/dist/chunks/cli-1.1.15-5gp5r54s.mjs +58 -0
  93. package/dist/chunks/cli-1.1.15-657rhkrw.mjs +4 -0
  94. package/dist/chunks/cli-1.1.15-6g08vy98.mjs +2 -0
  95. package/dist/chunks/cli-1.1.15-6txc31rr.mjs +2 -0
  96. package/dist/chunks/cli-1.1.15-6w168zj1.mjs +2 -0
  97. package/dist/chunks/cli-1.1.15-716m1dh6.mjs +3 -0
  98. package/dist/chunks/cli-1.1.15-736kw6rq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.15-78j1ffsw.mjs +2 -0
  100. package/dist/chunks/cli-1.1.15-7enkgabc.mjs +2 -0
  101. package/dist/chunks/cli-1.1.15-7g1qck6b.mjs +2 -0
  102. package/dist/chunks/cli-1.1.15-7pdnxwtt.mjs +2 -0
  103. package/dist/chunks/cli-1.1.15-7sppxsya.mjs +2 -0
  104. package/dist/chunks/cli-1.1.15-7z4ctjx7.mjs +4 -0
  105. package/dist/chunks/cli-1.1.15-82j4qb2a.mjs +2 -0
  106. package/dist/chunks/cli-1.1.15-83qj7w53.mjs +2 -0
  107. package/dist/chunks/cli-1.1.15-89z8afvw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.15-8mpc9ecv.mjs +2 -0
  109. package/dist/chunks/cli-1.1.15-8w8262sk.mjs +2 -0
  110. package/dist/chunks/cli-1.1.15-937n7y0j.mjs +2 -0
  111. package/dist/chunks/cli-1.1.15-9ec5jmz5.mjs +2 -0
  112. package/dist/chunks/cli-1.1.15-9mbbz0a1.mjs +6 -0
  113. package/dist/chunks/cli-1.1.15-9vzy8b6c.mjs +2 -0
  114. package/dist/chunks/cli-1.1.15-a2yw7vw1.mjs +2 -0
  115. package/dist/chunks/cli-1.1.15-a3xwxptj.mjs +3 -0
  116. package/dist/chunks/cli-1.1.15-a6p2wwtc.mjs +2 -0
  117. package/dist/chunks/cli-1.1.15-a9y6yf7g.mjs +45 -0
  118. package/dist/chunks/cli-1.1.15-ae2hn1xh.mjs +12 -0
  119. package/dist/chunks/cli-1.1.15-akhz6et5.mjs +3 -0
  120. package/dist/chunks/cli-1.1.15-arysgyep.mjs +3 -0
  121. package/dist/chunks/cli-1.1.15-axdksp5m.mjs +15 -0
  122. package/dist/chunks/cli-1.1.15-b16e0ajk.mjs +5440 -0
  123. package/dist/chunks/cli-1.1.15-ba6p63pk.mjs +2 -0
  124. package/dist/chunks/cli-1.1.15-baktd8w0.mjs +8 -0
  125. package/dist/chunks/cli-1.1.15-bhxf1gde.mjs +2 -0
  126. package/dist/chunks/cli-1.1.15-bkenrcdp.mjs +9 -0
  127. package/dist/chunks/cli-1.1.15-bkk9d70e.mjs +2 -0
  128. package/dist/chunks/cli-1.1.15-c0e6k21y.mjs +2 -0
  129. package/dist/chunks/cli-1.1.15-c6h2gge7.mjs +202 -0
  130. package/dist/chunks/cli-1.1.15-c74jnte8.mjs +6 -0
  131. package/dist/chunks/cli-1.1.15-c985ap3y.mjs +2 -0
  132. package/dist/chunks/cli-1.1.15-cagegn51.mjs +2 -0
  133. package/dist/chunks/cli-1.1.15-chxsepr7.mjs +2 -0
  134. package/dist/chunks/cli-1.1.15-cj6zmtng.mjs +2 -0
  135. package/dist/chunks/cli-1.1.15-cvwkywg9.mjs +2 -0
  136. package/dist/chunks/cli-1.1.15-cx3reatp.mjs +4 -0
  137. package/dist/chunks/cli-1.1.15-czbvbd5n.mjs +2 -0
  138. package/dist/chunks/cli-1.1.15-d4stmd3a.mjs +2 -0
  139. package/dist/chunks/cli-1.1.15-d4xme5sm.mjs +15 -0
  140. package/dist/chunks/cli-1.1.15-dbnqj3tk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.15-dpxcysrc.mjs +2 -0
  142. package/dist/chunks/cli-1.1.15-dv1zb375.mjs +4 -0
  143. package/dist/chunks/cli-1.1.15-dw51tkmc.mjs +3 -0
  144. package/dist/chunks/cli-1.1.15-e0wdjxcm.mjs +2 -0
  145. package/dist/chunks/cli-1.1.15-e69gmp99.mjs +2 -0
  146. package/dist/chunks/cli-1.1.15-e7t7w0n4.mjs +2 -0
  147. package/dist/chunks/cli-1.1.15-emegjc48.mjs +2 -0
  148. package/dist/chunks/cli-1.1.15-engyyzpk.mjs +2 -0
  149. package/dist/chunks/cli-1.1.15-erwqj4vs.mjs +34 -0
  150. package/dist/chunks/cli-1.1.15-evwsdckr.mjs +2 -0
  151. package/dist/chunks/cli-1.1.15-ewmcb0r7.mjs +133 -0
  152. package/dist/chunks/cli-1.1.15-ez7210ck.mjs +2 -0
  153. package/dist/chunks/cli-1.1.15-f0xy8ndf.mjs +2 -0
  154. package/dist/chunks/cli-1.1.15-f146m97m.mjs +2 -0
  155. package/dist/chunks/cli-1.1.15-f9eqbjqc.mjs +2 -0
  156. package/dist/chunks/cli-1.1.15-fcgk3maq.mjs +3 -0
  157. package/dist/chunks/cli-1.1.15-ffs08nv9.mjs +2 -0
  158. package/dist/chunks/cli-1.1.15-fk3ac4gc.mjs +2 -0
  159. package/dist/chunks/cli-1.1.15-fm6herjr.mjs +2 -0
  160. package/dist/chunks/cli-1.1.15-fnh28phg.mjs +24 -0
  161. package/dist/chunks/cli-1.1.15-fr6qfqgh.mjs +2 -0
  162. package/dist/chunks/cli-1.1.15-fyy1ehtf.mjs +3 -0
  163. package/dist/chunks/cli-1.1.15-g7tjhqzb.mjs +2 -0
  164. package/dist/chunks/cli-1.1.15-g9e4rkeg.mjs +2 -0
  165. package/dist/chunks/cli-1.1.15-gbrgyagf.mjs +7 -0
  166. package/dist/chunks/cli-1.1.15-gk6d4ahd.mjs +21 -0
  167. package/dist/chunks/cli-1.1.15-gngz1xbk.mjs +6 -0
  168. package/dist/chunks/cli-1.1.15-gpks2b5v.mjs +4 -0
  169. package/dist/chunks/cli-1.1.15-gq3wg30t.mjs +2 -0
  170. package/dist/chunks/cli-1.1.15-gs56p0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.15-gw258rrk.mjs +50 -0
  172. package/dist/chunks/cli-1.1.15-gwgwd5hm.mjs +4 -0
  173. package/dist/chunks/cli-1.1.15-h3y5qymm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.15-h6ev26yt.mjs +2 -0
  175. package/dist/chunks/cli-1.1.15-hf65t2c2.mjs +2 -0
  176. package/dist/chunks/cli-1.1.15-hq3xwfa3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.15-j8xzj86y.mjs +15 -0
  178. package/dist/chunks/cli-1.1.15-jd4x21q0.mjs +2 -0
  179. package/dist/chunks/cli-1.1.15-jdkggndk.mjs +2 -0
  180. package/dist/chunks/cli-1.1.15-jeqz3hde.mjs +24 -0
  181. package/dist/chunks/cli-1.1.15-jfe29j4s.mjs +2 -0
  182. package/dist/chunks/cli-1.1.15-jfs5gybd.mjs +2 -0
  183. package/dist/chunks/cli-1.1.15-jmt39vvh.mjs +2 -0
  184. package/dist/chunks/cli-1.1.15-jzw1d4vb.mjs +2 -0
  185. package/dist/chunks/cli-1.1.15-k1836ne2.mjs +16 -0
  186. package/dist/chunks/cli-1.1.15-k3j7z8yp.mjs +20 -0
  187. package/dist/chunks/cli-1.1.15-k8spwbtd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.15-kb70x0yv.mjs +3 -0
  189. package/dist/chunks/cli-1.1.15-kgm2pw8x.mjs +2 -0
  190. package/dist/chunks/cli-1.1.15-kr36eh1x.mjs +59 -0
  191. package/dist/chunks/cli-1.1.15-kvc672d5.mjs +2 -0
  192. package/dist/chunks/cli-1.1.15-m33mdt7b.mjs +3 -0
  193. package/dist/chunks/cli-1.1.15-m9er763b.mjs +2 -0
  194. package/dist/chunks/cli-1.1.15-mrgk4vjn.mjs +2 -0
  195. package/dist/chunks/cli-1.1.15-n7rft8vb.mjs +2 -0
  196. package/dist/chunks/cli-1.1.15-nffng52m.mjs +2 -0
  197. package/dist/chunks/cli-1.1.15-nnbd4as2.mjs +25 -0
  198. package/dist/chunks/cli-1.1.15-p1trn7j2.mjs +4 -0
  199. package/dist/chunks/cli-1.1.15-p7vaw3hv.mjs +2 -0
  200. package/dist/chunks/cli-1.1.15-pakg6t79.mjs +2 -0
  201. package/dist/chunks/cli-1.1.15-pf3rvvj5.mjs +3 -0
  202. package/dist/chunks/cli-1.1.15-pg56x579.mjs +2 -0
  203. package/dist/chunks/cli-1.1.15-pgqqjddw.mjs +4 -0
  204. package/dist/chunks/cli-1.1.15-ph9jfwh3.mjs +2 -0
  205. package/dist/chunks/cli-1.1.15-q5cap7nt.mjs +3 -0
  206. package/dist/chunks/cli-1.1.15-q6nb88hp.mjs +2 -0
  207. package/dist/chunks/cli-1.1.15-qga6k32k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.15-qnxzqj1z.mjs +2 -0
  209. package/dist/chunks/cli-1.1.15-qxhpqndj.mjs +5 -0
  210. package/dist/chunks/cli-1.1.15-qxprwvyg.mjs +2 -0
  211. package/dist/chunks/cli-1.1.15-r4y8m1sf.mjs +2 -0
  212. package/dist/chunks/cli-1.1.15-rdq10bn2.mjs +2 -0
  213. package/dist/chunks/cli-1.1.15-rhz9fv4x.mjs +4 -0
  214. package/dist/chunks/cli-1.1.15-rkfqf782.mjs +2 -0
  215. package/dist/chunks/cli-1.1.15-rqw4p0ke.mjs +2 -0
  216. package/dist/chunks/cli-1.1.15-rtcyrbsg.mjs +1 -0
  217. package/dist/chunks/cli-1.1.15-rvg56jwp.mjs +2 -0
  218. package/dist/chunks/cli-1.1.15-s28sb1ga.mjs +2 -0
  219. package/dist/chunks/cli-1.1.15-stmx3k3w.mjs +2 -0
  220. package/dist/chunks/cli-1.1.15-swf7050w.mjs +3 -0
  221. package/dist/chunks/cli-1.1.15-syqaq4nv.mjs +2 -0
  222. package/dist/chunks/cli-1.1.15-t0xrcfbr.mjs +2 -0
  223. package/dist/chunks/cli-1.1.15-t3rgyeam.mjs +2 -0
  224. package/dist/chunks/cli-1.1.15-t61ax3rg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.15-t80k8k17.mjs +2 -0
  226. package/dist/chunks/cli-1.1.15-t8xsja3r.mjs +6 -0
  227. package/dist/chunks/cli-1.1.15-tc86fw6x.mjs +2 -0
  228. package/dist/chunks/cli-1.1.15-tmp788zk.mjs +2 -0
  229. package/dist/chunks/cli-1.1.15-tpbkevjz.mjs +2 -0
  230. package/dist/chunks/cli-1.1.15-tv01zd9c.mjs +2 -0
  231. package/dist/chunks/cli-1.1.15-vsctpke4.mjs +2 -0
  232. package/dist/chunks/cli-1.1.15-vvc5kd0e.mjs +6 -0
  233. package/dist/chunks/cli-1.1.15-w1xsnsrr.mjs +2 -0
  234. package/dist/chunks/cli-1.1.15-w79kpn9z.mjs +17 -0
  235. package/dist/chunks/cli-1.1.15-w957aq1a.mjs +2 -0
  236. package/dist/chunks/cli-1.1.15-wbqj4f48.mjs +133 -0
  237. package/dist/chunks/cli-1.1.15-wkxn6fq7.mjs +9 -0
  238. package/dist/chunks/cli-1.1.15-wq860b6c.mjs +2 -0
  239. package/dist/chunks/cli-1.1.15-x4dh9ra2.mjs +2 -0
  240. package/dist/chunks/cli-1.1.15-x6z56vxt.mjs +2 -0
  241. package/dist/chunks/cli-1.1.15-xh72g5md.mjs +25 -0
  242. package/dist/chunks/cli-1.1.15-xmm250at.mjs +2 -0
  243. package/dist/chunks/cli-1.1.15-xn5kcp4k.mjs +2 -0
  244. package/dist/chunks/cli-1.1.15-xrdr3a8j.mjs +2 -0
  245. package/dist/chunks/cli-1.1.15-xtf04fdy.mjs +5 -0
  246. package/dist/chunks/cli-1.1.15-xvwbdkk2.mjs +2 -0
  247. package/dist/chunks/cli-1.1.15-y4jpgjpy.mjs +6 -0
  248. package/dist/chunks/cli-1.1.15-ya3zmpbf.mjs +2 -0
  249. package/dist/chunks/cli-1.1.15-ybhmmbr3.mjs +2 -0
  250. package/dist/chunks/cli-1.1.15-z9szqcyg.mjs +17 -0
  251. package/dist/chunks/cli-1.1.15-zg7csyzz.mjs +2 -0
  252. package/dist/chunks/cli-1.1.15-zm1sx1vh.mjs +2 -0
  253. package/dist/chunks/cli-1.1.15-zm9a5m0b.mjs +2 -0
  254. package/dist/chunks/cli-1.1.15-zpt8yv0b.mjs +2 -0
  255. package/dist/chunks/cli-1.1.15-zrabw726.mjs +2 -0
  256. package/dist/chunks/cli-1.1.15-ztgk02re.mjs +4 -0
  257. package/dist/chunks/cli-1.1.15-zw3cc5m8.mjs +2 -0
  258. package/dist/chunks/client-1.1.15-7zxfy90s.mjs +1 -0
  259. package/dist/chunks/color-1.1.15-v6smmkca.mjs +1 -0
  260. package/dist/chunks/compact-1.1.15-mey332ra.mjs +3 -0
  261. package/dist/chunks/config-1.1.15-jcwja4eb.mjs +1 -0
  262. package/dist/chunks/config-1.1.15-pafh429c.mjs +1 -0
  263. package/dist/chunks/constants-1.1.15-qvh9m3yg.mjs +1 -0
  264. package/dist/chunks/context-1.1.15-gef0rkyp.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.1.15-y4tcdh2q.mjs +1 -0
  266. package/dist/chunks/conversation-1.1.15-r506ktpr.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.1.15-nwyxv1c6.mjs +1 -0
  268. package/dist/chunks/copy-1.1.15-bm5qhs38.mjs +9 -0
  269. package/dist/chunks/cost-1.1.15-9en5vp81.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.1.15-46chvft6.mjs +1 -0
  271. package/dist/chunks/createSession-1.1.15-pxd63w9x.mjs +1 -0
  272. package/dist/chunks/debug-1.1.15-8nbm2xpt.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.1.15-wxt2kmzg.mjs +1526 -0
  274. package/dist/chunks/desktop-1.1.15-gdsmr24w.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.1.15-cdm0wycs.mjs +1 -0
  276. package/dist/chunks/detection-1.1.15-ftsf9hbz.mjs +1 -0
  277. package/dist/chunks/diff-1.1.15-q3a5dtec.mjs +1 -0
  278. package/dist/chunks/doctor-1.1.15-p6cn9vhk.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.1.15-1bqd038t.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.1.15-h3s4mc10.mjs +1 -0
  281. package/dist/chunks/effort-1.1.15-ntfkkphx.mjs +13 -0
  282. package/dist/chunks/engine-1.1.15-bafn3xae.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.1.15-jyzc1ek9.mjs +1 -0
  284. package/dist/chunks/envUtils-1.1.15-djhm9sn3.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.1.15-dk14rrw7.mjs +1 -0
  286. package/dist/chunks/environments-1.1.15-dgwyaqx6.mjs +1 -0
  287. package/dist/chunks/errors-1.1.15-dv0cz15v.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.1.15-263nxjc7.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.1.15-cgv6pwrz.mjs +1 -0
  290. package/dist/chunks/exit-1.1.15-7jy2eyny.mjs +1 -0
  291. package/dist/chunks/explorer-1.1.15-3cqntxjp.mjs +1 -0
  292. package/dist/chunks/export-1.1.15-w57hsyes.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.1.15-caapnsf9.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.1.15-2hrhqvj4.mjs +1 -0
  295. package/dist/chunks/fast-1.1.15-556g3z6s.mjs +1 -0
  296. package/dist/chunks/feedback-1.1.15-g0fbb2v3.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.1.15-5d6tk014.mjs +1 -0
  298. package/dist/chunks/git-1.1.15-xzay0ztr.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.1.15-4py0k74v.mjs +1 -0
  300. package/dist/chunks/goal-1.1.15-e1em0116.mjs +4 -0
  301. package/dist/chunks/growthbook-1.1.15-6xn6q0sp.mjs +1 -0
  302. package/dist/chunks/headless-1.1.15-rafx8eee.mjs +2 -0
  303. package/dist/chunks/heapdump-1.1.15-6q8q4788.mjs +6 -0
  304. package/dist/chunks/help-1.1.15-zs3pgg4k.mjs +1 -0
  305. package/dist/chunks/hookChains-1.1.15-9a6pb5w5.mjs +3 -0
  306. package/dist/chunks/hooks-1.1.15-b9gs32vb.mjs +1 -0
  307. package/dist/chunks/hooks-1.1.15-hfwjnas3.mjs +79 -0
  308. package/dist/chunks/ide-1.1.15-ece17mva.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.1.15-fejg7fwn.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.1.15-pk7rphxz.mjs +1 -0
  311. package/dist/chunks/index-1.1.15-2vvc784g.mjs +5 -0
  312. package/dist/chunks/index-1.1.15-58q8vth9.mjs +30 -0
  313. package/dist/chunks/index-1.1.15-61gtszck.mjs +23 -0
  314. package/dist/chunks/index-1.1.15-63sm4p3b.mjs +1 -0
  315. package/dist/chunks/index-1.1.15-bqgefxac.mjs +2 -0
  316. package/dist/chunks/index-1.1.15-cmeghrr8.mjs +1 -0
  317. package/dist/chunks/index-1.1.15-dh3eqcj6.mjs +1 -0
  318. package/dist/chunks/index-1.1.15-gt3z8ez8.mjs +2 -0
  319. package/dist/chunks/index-1.1.15-hngbp5j9.mjs +1 -0
  320. package/dist/chunks/index-1.1.15-hv4e77y5.mjs +1 -0
  321. package/dist/chunks/index-1.1.15-jbcn1htw.mjs +1 -0
  322. package/dist/chunks/index-1.1.15-jsq8t7gh.mjs +1 -0
  323. package/dist/chunks/index-1.1.15-jxrabdxb.mjs +9 -0
  324. package/dist/chunks/index-1.1.15-k2qf0p34.mjs +1 -0
  325. package/dist/chunks/index-1.1.15-kegec7g7.mjs +1 -0
  326. package/dist/chunks/index-1.1.15-px3s42jj.mjs +1 -0
  327. package/dist/chunks/index-1.1.15-qa2n341d.mjs +1 -0
  328. package/dist/chunks/index-1.1.15-rb6gwjnr.mjs +9 -0
  329. package/dist/chunks/index-1.1.15-v1jbnyfv.mjs +1 -0
  330. package/dist/chunks/index-1.1.15-v3xjhkgg.mjs +1 -0
  331. package/dist/chunks/index-1.1.15-wn5dzvtp.mjs +1 -0
  332. package/dist/chunks/index-1.1.15-yxqqa2q5.mjs +1 -0
  333. package/dist/chunks/index-1.1.15-ztxh3p91.mjs +1 -0
  334. package/dist/chunks/init-1.1.15-s0513abb.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.1.15-nfxwvhxr.mjs +1 -0
  336. package/dist/chunks/ink-1.1.15-06g53x2d.mjs +1 -0
  337. package/dist/chunks/insights-1.1.15-2ttbvk7c.mjs +870 -0
  338. package/dist/chunks/install-1.1.15-w5d46eyw.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.1.15-tqjywtyy.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.1.15-7qyq36aa.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.1.15-5nywr7k6.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.1.15-9akt8s2v.mjs +1 -0
  343. package/dist/chunks/keybindings-1.1.15-1tvzezk8.mjs +2 -0
  344. package/dist/chunks/knowledge-1.1.15-bkkcs3a3.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.1.15-2ksjmrzy.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.1.15-95r643y9.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.1.15-h3znhdpc.mjs +1 -0
  348. package/dist/chunks/log-1.1.15-efrp1hpn.mjs +1 -0
  349. package/dist/chunks/main-1.1.15-ba7dtwzz.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.1.15-5b44apg9.mjs +1 -0
  351. package/dist/chunks/mcp-1.1.15-219ec2vw.mjs +4 -0
  352. package/dist/chunks/mcp-1.1.15-84m4prhz.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.15-9f3zyt67.mjs +17 -0
  354. package/dist/chunks/mcpb-1.1.15-ykxze1k6.mjs +1 -0
  355. package/dist/chunks/memory-1.1.15-96pdt13p.mjs +72 -0
  356. package/dist/chunks/model-1.1.15-b40xd4h1.mjs +1 -0
  357. package/dist/chunks/model-1.1.15-pvecp9fh.mjs +2 -0
  358. package/dist/chunks/node-1.1.15-e5eqx52s.mjs +12 -0
  359. package/dist/chunks/oauth-1.1.15-7fxj0bcf.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.1.15-dq3fghyq.mjs +14 -0
  361. package/dist/chunks/output-style-1.1.15-e7ttz7b5.mjs +1 -0
  362. package/dist/chunks/package-L37ZVTF4-1.1.15-kss8kwyd.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.1.15-km2j6z0r.mjs +1 -0
  364. package/dist/chunks/parser-1.1.15-2x7mpppq.mjs +1 -0
  365. package/dist/chunks/passes-1.1.15-8x4mva12.mjs +1 -0
  366. package/dist/chunks/permissions-1.1.15-134fj94y.mjs +1 -0
  367. package/dist/chunks/permissions-1.1.15-a2d8pgtp.mjs +3 -0
  368. package/dist/chunks/plan-1.1.15-swdve0xr.mjs +1 -0
  369. package/dist/chunks/plist-1.1.15-5ged16we.mjs +1 -0
  370. package/dist/chunks/plugin-1.1.15-kcpdt96s.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.1.15-aazppe92.mjs +1 -0
  372. package/dist/chunks/plugins-1.1.15-atzwgc9x.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.1.15-611jrgf1.mjs +2 -0
  374. package/dist/chunks/print-1.1.15-ma7jjc0w.mjs +57 -0
  375. package/dist/chunks/process-1.1.15-6rbhzpg0.mjs +1 -0
  376. package/dist/chunks/processBashCommand-1.1.15-aamrz1kj.mjs +1 -0
  377. package/dist/chunks/processSlashCommand-1.1.15-azxvy7pb.mjs +9 -0
  378. package/dist/chunks/prompt-1.1.15-1k4m318a.mjs +1 -0
  379. package/dist/chunks/prompt-1.1.15-xe79z4pr.mjs +1 -0
  380. package/dist/chunks/prompts-1.1.15-wte4x7e4.mjs +1 -0
  381. package/dist/chunks/protocolHandler-1.1.15-88zg9mk8.mjs +13 -0
  382. package/dist/chunks/provider-1.1.15-c8z6c4xj.mjs +2 -0
  383. package/dist/chunks/providerProfiles-1.1.15-srn11t8e.mjs +1 -0
  384. package/dist/chunks/providerValidation-1.1.15-yef6qwy2.mjs +6 -0
  385. package/dist/chunks/rate-limit-options-1.1.15-dk2mf38m.mjs +1 -0
  386. package/dist/chunks/registerSubcommands-1.1.15-v5kze215.mjs +26 -0
  387. package/dist/chunks/registry-1.1.15-jnsk0t9a.mjs +1 -0
  388. package/dist/chunks/release-notes-1.1.15-nbmmmwbh.mjs +5 -0
  389. package/dist/chunks/reload-plugins-1.1.15-thmm1n66.mjs +2 -0
  390. package/dist/chunks/remote-env-1.1.15-mt6r7s6d.mjs +1 -0
  391. package/dist/chunks/remoteBridgeCore-1.1.15-28aykv35.mjs +1 -0
  392. package/dist/chunks/remoteSession-1.1.15-br9mvf70.mjs +1 -0
  393. package/dist/chunks/rename-1.1.15-4cnm57qq.mjs +1 -0
  394. package/dist/chunks/replBridgeHandle-1.1.15-554c9pxz.mjs +1 -0
  395. package/dist/chunks/replLauncher-1.1.15-0ymjxtxx.mjs +1 -0
  396. package/dist/chunks/resume-1.1.15-tka4a9rz.mjs +2 -0
  397. package/dist/chunks/rewind-1.1.15-pskzwz2n.mjs +1 -0
  398. package/dist/chunks/rootOptions-1.1.15-k8vyvzs4.mjs +1 -0
  399. package/dist/chunks/runWorkflowHeadless-1.1.15-2sgm9477.mjs +10 -0
  400. package/dist/chunks/sandbox-adapter-1.1.15-jjpkvd4w.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.1.15-e2bqcnkv.mjs +1 -0
  402. package/dist/chunks/session-1.1.15-p4vbgb6n.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.1.15-krx4yyg5.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.1.15-gmsn6pxt.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.1.15-7b040mx5.mjs +1 -0
  406. package/dist/chunks/settings-1.1.15-ekfty1pj.mjs +1 -0
  407. package/dist/chunks/setup-1.1.15-zep22435.mjs +5 -0
  408. package/dist/chunks/sinks-1.1.15-5b2jbvzk.mjs +1 -0
  409. package/dist/chunks/skills-1.1.15-tqfym88e.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.1.15-x5r52mgd.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.1.15-zvm4gj9j.mjs +1 -0
  412. package/dist/chunks/state-1.1.15-92brngf3.mjs +1 -0
  413. package/dist/chunks/stats-1.1.15-83zt06hn.mjs +6 -0
  414. package/dist/chunks/status-1.1.15-z168hre8.mjs +1 -0
  415. package/dist/chunks/stickers-1.1.15-7hf6025s.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.1.15-vsw2gnsy.mjs +1 -0
  417. package/dist/chunks/tasks-1.1.15-0jrt2qg7.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.1.15-k13jejzh.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.1.15-s9t0zyne.mjs +1 -0
  420. package/dist/chunks/teleport-1.1.15-9dd1smb0.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.1.15-qc30y99e.mjs +1 -0
  422. package/dist/chunks/theme-1.1.15-6q2jy7n3.mjs +1 -0
  423. package/dist/chunks/thinkback-1.1.15-nm1h90a9.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.1.15-f67z5b5k.mjs +1 -0
  425. package/dist/chunks/toolPool-1.1.15-tfcesaq1.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.1.15-8ta5a4z3.mjs +1 -0
  427. package/dist/chunks/tools-1.1.15-y5hj8rpq.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.1.15-8tfqjnhv.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.1.15-hh9kd6yr.mjs +69 -0
  430. package/dist/chunks/types-1.1.15-9baqmv4a.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.1.15-pgr4087d.mjs +4 -0
  432. package/dist/chunks/update-1.1.15-3g32jxm9.mjs +72 -0
  433. package/dist/chunks/upgrade-1.1.15-n01mknp0.mjs +1 -0
  434. package/dist/chunks/upload-1.1.15-7swxydm4.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.1.15-0kwe084a.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.1.15-6zmtv9xn.mjs +1 -0
  437. package/dist/chunks/usage-1.1.15-24aqj3m1.mjs +1 -0
  438. package/dist/chunks/util-1.1.15-5jq3gm50.mjs +1 -0
  439. package/dist/chunks/utils-1.1.15-w1h2z3bz.mjs +1 -0
  440. package/dist/chunks/vim-1.1.15-saehb9jw.mjs +1 -0
  441. package/dist/chunks/watchLoop-1.1.15-5whne0rd.mjs +13 -0
  442. package/dist/chunks/watcher-1.1.15-jgbek4vd.mjs +1 -0
  443. package/dist/chunks/wiki-1.1.15-d8an1sjy.mjs +132 -0
  444. package/dist/chunks/workflows-1.1.15-hxrpwge7.mjs +1 -0
  445. package/dist/chunks/worktree-1.1.15-1es3bab6.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.1.15-c62gcjdh.mjs +1 -0
  447. package/dist/chunks/wrapper-1.1.15-jn7yrxqc.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +9 -9
  450. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
  451. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
  458. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
  459. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
  461. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
  467. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
  477. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
  479. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
  480. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
  481. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
  482. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
  483. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
  484. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
  485. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
  486. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
  489. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
  490. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
  495. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
  496. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
  497. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
  498. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
  499. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
  500. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
  501. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
  502. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
  503. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
  504. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
  505. package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
  506. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
  507. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
  508. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
  510. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
  511. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
  512. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
  513. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
  514. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
  517. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
  518. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
  519. package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
  520. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
  521. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
  522. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
  524. package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
  525. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
  526. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
  529. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
  530. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
  531. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
  532. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
  533. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
  535. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
  537. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
  538. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
  539. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
  540. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
  541. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
  542. package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
  543. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
  544. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
  545. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
  546. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
  547. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
  548. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
  549. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
  550. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
  551. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
  553. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
  554. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
  556. package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
  557. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
  559. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
  560. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
  561. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
  562. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
  563. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
  564. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
  565. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
  566. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
  567. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
  568. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
  569. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
  570. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
  571. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
  573. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
  574. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
  575. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
  576. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
  577. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
  578. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
  579. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
  580. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
  581. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
  582. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
  583. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
  584. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
  585. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
  586. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
  587. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
  588. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
  589. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
  590. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
  591. package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
  592. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
  593. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
  594. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
  595. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
  596. package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
  597. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
  598. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
  600. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
  601. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
  602. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
  603. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
  604. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
  605. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
  606. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
  607. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
  608. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
  609. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
  610. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
  611. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
  612. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
  614. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
  615. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
  616. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
  617. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
  618. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
  619. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
  620. package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
  621. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
  622. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
  623. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
  624. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
  625. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
  626. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
  627. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
  628. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
  629. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
  630. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
  631. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
  632. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
  633. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
  634. package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
  635. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
  636. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
  637. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
  638. package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
  640. package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
  642. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
  643. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
  644. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
  645. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
  646. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
  647. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
  648. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
  649. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
  650. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
  651. package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
  652. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
  653. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
  654. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
  655. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
  656. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
  657. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
  658. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
  659. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
  660. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
  661. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
  662. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
  663. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
  664. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
  665. package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
  666. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
  667. package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
  668. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
  669. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
  670. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
  671. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
  672. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
  673. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
  674. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
  675. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
  676. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
  677. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
  678. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
  680. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
  681. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
  682. package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
  683. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
  684. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
  685. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
  686. package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
  687. package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
  688. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
  690. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
  691. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
  692. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
  693. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
  694. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
  695. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
  696. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
  697. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
  698. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
  700. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
  701. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
  702. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
  703. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
  704. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
  705. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
  706. package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
  707. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
  708. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
  709. package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
  710. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
  711. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
  712. package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
  713. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
  714. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
  715. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
  716. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
  717. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
  718. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
  719. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
  720. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
  721. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
  722. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
  723. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
  724. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
  725. package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
  726. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
  727. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
  728. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
  729. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
  730. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
  731. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
  732. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
  733. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
  734. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
  735. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
  736. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
  737. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
  738. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
  739. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
  740. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
  741. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
  742. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
  743. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
  744. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
  745. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
  746. package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
  747. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
  748. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
  749. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
  750. package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
  751. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
  752. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
  753. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
  754. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
  755. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
  756. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
  757. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
  758. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
  759. package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
  760. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
  761. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
  762. package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
  763. package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
  764. package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
  765. package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
  766. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
  767. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
  768. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
  769. package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
  770. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
  771. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
  772. package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
  773. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
  774. package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
  775. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
  776. package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
  777. package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
  778. package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
  779. package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
  780. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
  781. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
  782. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
  783. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
  784. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
  785. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
  786. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
  787. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
  788. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
  789. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
  790. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
  791. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
  792. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
  793. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
  794. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
  796. package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
  797. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
  799. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
  800. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
  801. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
  802. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
  803. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
  804. package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
  805. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
  806. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
  807. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
  809. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
  810. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
  812. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
  813. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
  814. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
  815. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
  816. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
  817. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
  818. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
  820. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
  822. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
  823. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
  824. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
  825. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
  826. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
  827. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
  828. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
  829. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
  830. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
  831. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
  832. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
  833. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
  834. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
  835. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
  836. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
  837. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
  838. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
  839. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
  840. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
  841. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
  842. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
  843. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
  844. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
  845. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
  846. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
  847. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
  848. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
  850. package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
  854. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
  855. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
  856. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
  857. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
  860. package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
  861. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
  862. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
  863. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
  865. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
  868. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
  870. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
  871. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
  873. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
  875. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
  878. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
  880. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
  881. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
  882. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
  885. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
  886. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
  887. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
  888. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
  889. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
  890. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
  891. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
  892. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
  893. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
  894. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
  895. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
  896. /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.15-7rhgft7r.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.15-a86ebv4c.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.15-bwy6nhdk.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.15-g9n3fyq0.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.15-h58yf3xj.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.15-r64a0n76.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.15-yrmh6ksq.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{rd as Y,sd as Z,td as _,wd as b}from"./cli-1.1.15-f9eqbjqc.mjs";import{Md as X,Rd as V}from"./cli-1.1.15-pgqqjddw.mjs";import{JL as T,OL as U,TL as O,UL as W,cM as S}from"./cli-1.1.15-b16e0ajk.mjs";import{uka as Q,xka as K}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as C,Uka as L}from"./cli-1.1.15-dv1zb375.mjs";V();K();C();S();O();b();function j(E,H,J){let G=new Set(H.plugins.map((v)=>v.name)),z=`@${J}`,q=[];for(let v of Object.keys(E.plugins)){if(!v.endsWith(z))continue;let h=v.slice(0,-z.length);if(!G.has(h))q.push(v)}return q}async function F(){await Y();let E=W(),H=Z(),J=await T(),G=[];for(let z of Object.keys(J))try{let q=await U(z);if(!q.forceRemoveDeletedPlugins)continue;let v=j(E,q,z);for(let h of v){if(h in H)continue;let R=E.plugins[h]??[];if(!R.some((A)=>A.scope==="user"||A.scope==="project"||A.scope==="local"))continue;for(let A of R){let{scope:B}=A;if(B!=="user"&&B!=="project"&&B!=="local")continue;try{await X(h,B)}catch($){Q(`Failed to auto-uninstall delisted plugin ${h} from ${B}: ${L($)}`,{level:"error"})}}await _(h),G.push(h)}}catch(q){Q(`Failed to check for delisted plugins in "${z}": ${L(q)}`,{level:"warn"})}return G}
2
+ export{F as Xa};
@@ -0,0 +1,3 @@
1
+ import{Rea as R,u_ as Q,w_ as M,wea as P}from"./cli-1.1.15-c6h2gge7.mjs";import{uka as G,xka as C}from"./cli-1.1.15-vvc5kd0e.mjs";import{Esa as j}from"./cli-1.1.15-bwy6nhdk.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 k(){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 U(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 k()){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 B(){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 U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();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 f();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 m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
3
+ export{g as k4,w as l4,m as m4};
@@ -0,0 +1,2 @@
1
+ import{$c as z,ad as K}from"./cli-1.1.15-9ec5jmz5.mjs";import{vK as w,xK as J}from"./cli-1.1.15-b16e0ajk.mjs";import{O3 as H}from"./cli-1.1.15-fk3ac4gc.mjs";import{Asa as E,Esa as G}from"./cli-1.1.15-bwy6nhdk.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
+ export{V as Xc,N as Yc};
@@ -0,0 +1,2 @@
1
+ import{Esa as P}from"./cli-1.1.15-bwy6nhdk.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
2
+ export{k as KW,w as LW,H as MW,g as NW,V as OW,W as PW,L as QW,Y as RW};
@@ -0,0 +1,7 @@
1
+ import{Hb as d}from"./cli-1.1.15-2h049njx.mjs";import{gW as v,hW as U,jW as f,kW as h,lW as c,qW as i}from"./cli-1.1.15-f146m97m.mjs";import{Y3 as O,_3 as b}from"./cli-1.1.15-engyyzpk.mjs";import{q7 as B,r7 as A}from"./cli-1.1.15-k1836ne2.mjs";import{J8 as y,Q8 as u}from"./cli-1.1.15-ae2hn1xh.mjs";import{p_ as Y,r_ as I}from"./cli-1.1.15-c6h2gge7.mjs";import{Zja as H,_ja as m,cka as T,uka as G,xka as D}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as F,Uka as q,Vka as S}from"./cli-1.1.15-dv1zb375.mjs";import{Mra as p,csa as s}from"./cli-1.1.15-fnh28phg.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
2
+
3
+ `,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
4
+ `)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
+ `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
6
+ `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
+ export{R as yb,k as zb,a as Ab,YJ as Bb};
@@ -0,0 +1,21 @@
1
+ import{MR as C,aK as O,as as K,bs as X,ek as J,uE as L,vE as Y}from"./cli-1.1.15-b16e0ajk.mjs";import{Esa as V}from"./cli-1.1.15-bwy6nhdk.mjs";function N(z){let y=[],D=z.matchAll(Z);for(let v of D)if(v.index!==void 0)y.push({word:v[0],start:v.index,end:v.index+v[0].length});return y}async function W({question:z,cacheSafeParams:y}){let D=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
+
3
+ IMPORTANT CONTEXT:
4
+ - You are a separate, lightweight agent spawned to answer this one question
5
+ - The main agent is NOT interrupted - it continues working independently in the background
6
+ - You share the conversation context but are a completely separate instance
7
+ - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
+
9
+ CRITICAL CONSTRAINTS:
10
+ - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
+ - This is a one-off response - there will be no follow-up turns
12
+ - You can ONLY provide information based on what you already know from the conversation context
13
+ - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
+ - If you don't know the answer, say so - do not offer to look it up or investigate
15
+
16
+ Simply answer the question with the information you have.</system-reminder>
17
+
18
+ ${z}`,v=await L({promptMessages:[O({content:D})],cacheSafeParams:y,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:$(v.messages),usage:v.totalUsage}}function $(z){let y=z.flatMap((v)=>v.type==="assistant"?v.message.content:[]);if(y.length>0){let v=J(y,`
19
+
20
+ `).trim();if(v)return v;let G=y.find((H)=>H.type==="tool_use");if(G)return`(The model tried to call ${"name"in G?G.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let D=z.find((v)=>v.type==="system"&&("subtype"in v)&&v.subtype==="api_error");if(D)return`(API error: ${K(D.error)})`;return null}var Z;var w=V(()=>{X();Y();C();Z=/^\/btw\b/gi});
21
+ export{N as Jh,W as Kh,w as Lh};
@@ -0,0 +1,6 @@
1
+ import{Esa as I}from"./cli-1.1.15-bwy6nhdk.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
2
+ `:`
3
+ `)+H,K=J+1,J=$.indexOf(`
4
+ `,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",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]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
5
+ `);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
6
+ export{q1 as R8,Y1 as S8,X1 as T8};
@@ -0,0 +1,4 @@
1
+ import{GP as w,HP as C,Vi as T}from"./cli-1.1.15-b16e0ajk.mjs";import{gka as J,kka as y,uka as X,xka as S}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as A,Vka as N}from"./cli-1.1.15-dv1zb375.mjs";import{Asa as x,Esa as k}from"./cli-1.1.15-bwy6nhdk.mjs";import{execFile as P}from"child_process";import{isAbsolute as M,join as K,relative as h,sep as b}from"path";import{promisify as u}from"util";async function l(q){try{let{stdout:z}=await R("git",["-c","core.quotepath=false","ls-files"],{cwd:q,encoding:"utf8",timeout:_,maxBuffer:m});return z.split(`
2
+ `).filter((Q)=>Q.length>0)}catch(z){return X(`[rulesLint] git ls-files failed in ${q}: ${String(z)}`),null}}function c(q){if(q.length===0)return!1;if(f.some((z)=>q.includes(z)))return!1;if(M(q))return!1;if(!q.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(q)}function a(q,z){let Q=J();if(Q.existsSync(K(q,z)))return!0;if(!U.test(z))return!1;let W=z.replace(U,"");return[".ts",".tsx"].some((Y)=>Q.existsSync(K(q,W+Y)))}function s(q,z){let Q=z.split("/")[0];if(!Q)return!1;let W=J(),Y=K(q,Q);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function r(q){let z=new Set,Q=[];for(let W of q.split(`
3
+ `))for(let Y of W.matchAll(p)){let $=Y[1];if(!$)continue;let v=$.trim().replace(F,"").replace(E,"");if(c(v)&&!z.has(v))z.add(v),Q.push({path:v,line:W})}return Q}async function O(q){let z=J(),Q;try{Q=await z.readdir(q)}catch(Y){let $=N(Y);if($==="ENOENT"||$==="EACCES"||$==="ENOTDIR")return[];throw Y}let W=[];for(let Y of Q){let $=K(q,Y.name);if(Y.isDirectory())W.push(...await O($));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push($)}return W.sort()}function o(q,z){let Q=L.default().add(q);return z.some((W)=>{if(W.startsWith("..")||M(W))return!1;return Q.ignores(W)})}async function Yq(q={}){let z=J(),Q=q.root??z.cwd(),W=await O(K(Q,g)),Y=I.map((Z)=>K(Q,Z)).filter((Z)=>z.existsSync(Z)),$=q.trackedFiles??await l(Q)??null,v=[],G=[];for(let Z of[...W,...Y]){let V;try{V=await z.readFile(Z,{encoding:"utf8"})}catch(H){X(`[rulesLint] unreadable rule file ${Z}: ${String(H)}`);continue}let D=!Z.includes(`${b}rules${b}`),B=w(V);if(D)G.push({file:Z,chars:V.length});if(!D){for(let H of B.unsupportedKeys)v.push({file:Z,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${H}\` is not supported and is ignored`,fix:H==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)v.push({file:Z,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)G.push({file:Z,chars:V.length});else if($){if(!o(B.paths,$))v.push({file:Z,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:H,line:j}of r(B.content)){if(!s(Q,H))continue;if(a(Q,H))continue;if(d.test(j))continue;v.push({file:Z,kind:"missing_path",severity:"warning",message:`cites \`${H}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}}return{findings:v,unconditional:G,unconditionalChars:G.reduce((Z,V)=>Z+V.chars,0),filesChecked:W.length+Y.length}}function Zq(q,z){let Q=h(q,z);return Q.length>0&&!Q.startsWith("..")?Q:z}var L,I,g,R,_=1e4,m=33554432,p,E,F,f,d,U;var n=k(()=>{S();A();y();C();L=x(T(),1),I=["AGENTS.md","CLAUDE.md"],g=K(".claudin","rules"),R=u(P),p=/`([^`\n]+)`/g,E=/:\d+(?:-\d+)?$/,F=/[.,;:)\]]+$/,f=["<",">","*","~","...","$","|","://"," ","path/to"],d=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,U=/\.js$/});
4
+ export{Yq as eg,Zq as fg,n as gg};
@@ -0,0 +1,2 @@
1
+ import{S3 as J,U3 as Y}from"./cli-1.1.15-k8spwbtd.mjs";import{Y3 as G,_3 as X}from"./cli-1.1.15-engyyzpk.mjs";import{Y7 as B,a5 as z,b8 as D,c8 as F,f5 as V,w8 as W}from"./cli-1.1.15-k1836ne2.mjs";import{pja as w,qja as N}from"./cli-1.1.15-e69gmp99.mjs";import{Mra as y,csa as Q}from"./cli-1.1.15-fnh28phg.mjs";import{Esa as M}from"./cli-1.1.15-bwy6nhdk.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
2
+ export{f as Ri,Z as Si};
@@ -0,0 +1,2 @@
1
+ import{Esa as j}from"./cli-1.1.15-bwy6nhdk.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{q as _2,A as $2,B as a3,D as b3,F as c3,G as d3,H as e3,k as f3};
@@ -0,0 +1,50 @@
1
+ import{uc as y2,vc as iq}from"./cli-1.1.15-pg56x579.mjs";import{Bc as aq,wc as h4,xc as i0,yc as h0,zc as X2}from"./cli-1.1.15-emegjc48.mjs";import{Cc as _0,Fc as nq}from"./cli-1.1.15-08shmxg9.mjs";import{$p as jz,AG as Xz,BG as yz,CG as Kz,DG as Wq,Ix as V2,Jp as gz,Kp as xz,Kx as lq,Lp as cz,Mp as lz,Np as $2,Op as G0,Pp as L4,Qp as pz,Rp as vz,Rw as G2,Sp as Oq,Sw as Y2,Tp as I4,Tw as W2,Uw as m2,Vp as tz,Vw as cq,WH as o4,Wp as J2,XH as i2,Yp as rz,ZF as L0,ZH as vq,_F as s4,_H as dq,aq as bq,bq as Oz,cq as Uz,dq as Iz,eq as Pz,fq as J0,gq as b4,hG as S,hq as Hq,iG as a2,iq as P4,jG as pq,kq as Tz,lq as Z2,mr as N2,nq as Sz,nr as xq,yG as Vz,zG as Yq}from"./cli-1.1.15-b16e0ajk.mjs";import{hY as a,jY as fq,vY as R2,wY as gq}from"./cli-1.1.15-tpbkevjz.mjs";import{I0 as w,K0 as N,n1 as l4}from"./cli-1.1.15-kr36eh1x.mjs";import{A2 as t4,B2 as Q2,C2 as r4,o2 as p4,p2 as v4,q2 as d4,r2 as n4,s2 as a4,t2 as n2,w2 as i4}from"./cli-1.1.15-rkfqf782.mjs";import{K3 as N0,L3 as $,M3 as y,N3 as x0}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as U0}from"./cli-1.1.15-fk3ac4gc.mjs";import{l4 as p0,m4 as Fz}from"./cli-1.1.15-fyy1ehtf.mjs";import{C4 as c4,E4 as d2,N6 as Cq,u6 as a0}from"./cli-1.1.15-k1836ne2.mjs";import{$ea as P0,Afa as mz,Bfa as Gq,Cfa as O4,Dfa as Hz,Efa as U4,Gfa as Lz,Ifa as q2,Jfa as r0,Sea as z2,Tea as M0,Uea as kq,Vea as t0,Wea as n,Yea as v,Zea as n0,Zfa as Aq,afa as w4,bfa as R0,cfa as Q0,d_ as F0,e_ as Sq,gfa as $0,hfa as B4,jfa as j4,nfa as x4,sfa as X4,tfa as Nz,ufa as Gz,vfa as c0,wfa as y4,xfa as Yz,yfa as V4,zfa as Wz}from"./cli-1.1.15-c6h2gge7.mjs";import{hla as t,nla as l0}from"./cli-1.1.15-tc86fw6x.mjs";import{Asa as O0,Bsa as Tq,Esa as d}from"./cli-1.1.15-bwy6nhdk.mjs";function r2(z,q=G4,R){let J=n().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||t2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function e4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=i4()?.trim()?"already-authed":"menu",[G,m]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,k]=i.useState(null),h=i.useCallback(async(f,D=G4,Z0,I)=>{let p=t4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),m("error");return}if(r2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),m("error");return}c4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{m("device-busy"),b(null),k(null);try{let D=await v4({domain:f});k({user_code:D.user_code,verification_uri:D.verification_uri}),await n4(D.verification_uri);let Z0=await d4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await a4(Z0,{domain:f});await h(I.token,G4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),m("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){m("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=p4(M);if(!D){X();return}X(D)},onExit:()=>m(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(S,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}m("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(o4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{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."}),$(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){m("enterprise-domain");return}X()}})]})}var i,G4="github:copilot",t2="https://api.githubcopilot.com";var zz=d(()=>{a2();i2();s4();l4();n2();r4();d2();x4();x0();i=O0(U0(),1)});function Rz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function zq(z){return!I0(Rz(z),qz)}function qq(z){return z.find(zq)??null}function Y4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function Rq(z){return(z.quantizationLevel??z.name).toLowerCase()}function Qq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function $q(z,q,R){let J=Rq(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Jq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Y4(z)??Number.POSITIVE_INFINITY,G=Y4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let m=14;return Math.abs(J-m)-Math.abs(G-m)}function W4(z,q){return z.map((R)=>{let J=Rz(R),G=[],m=0;if(I0(J,qz))m-=40,G.push("not a chat-first model");if(I0(J,s2))m+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,o2))m+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,e2))m+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))m-=2,G.push("vision model adds extra overhead");m+=Qq(Y4(R),q,G),m+=$q(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:m,reasons:G,summary:_}}).sort((R,J)=>Jq(R,J,q))}function Qz(z,q){return qq(W4(z,q))}var s2,o2,e2,qz;var $z=d(()=>{s2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],o2=["llama","qwen","mistral","gemma","phi","deepseek"],e2=["instruct","chat","assistant"],qz=["embed","embedding","rerank","bge","whisper"]});function Nq(z){let q=z.toLowerCase();return Zq.some((R)=>q.includes(R))}function m4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Nq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.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 Zq;var Jz=d(()=>{Zq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function mq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${X4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",y4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Nz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Gz),R.toString()}function Vq(){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 Xq(z){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>${Wz(z)}</p>
31
+ <p>You can close this window and try again in Claudin.</p>
32
+ </body>
33
+ </html>`}function Zz(){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 yq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:y4(),code_verifier:z.codeVerifier}),J=await fetch(`${X4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),m=c0(G.access_token),_=c0(G.refresh_token);if(!m||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=c0(G.id_token);return{apiKey:b?await mz(b).catch(()=>{return}):void 0,accessToken:m,refreshToken:_,idToken:b,accountId:V4(b)??V4(m)}}class K4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=Xz(),R=Yz(),J=new Vz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let m=Kz(),_=await yz(q),b=mq({port:G,codeChallenge:_,state:m});try{let M=await J.waitForAuthorization(m,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await yq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(Vq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?Zz():Xq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let m=G instanceof Error?G.message:String(G);if(m.includes("EADDRINUSE")||m.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end(Zz())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var bz=d(()=>{Yq();Wq();Gq()});function Kq(){return new K4}function Mz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Kq,J=z.deps?.openBrowser??p0,G=z.deps?.saveCodexCredentials??Hz,m=z.deps?.isBareMode??t,[_,b]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(m()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,m,q,J,G]),_}var v0;var _z=d(()=>{bz();Fz();Lz();l0();v0=O0(U0(),1)});function Ez(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":jz()}}function Bz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function _q(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function wq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Uz,{method:"POST",headers:Ez(),body:new URLSearchParams({client_id:b4(),scope:Pz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!m||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Dz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:hz/1000}}async function Bq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??_q,G=q?.now??(()=>Date.now()),m=Bz(z.expires_in,Dz),_=G()+m,b=Math.max(Bz(z.interval,hz),Lq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Oz,{method:"POST",headers:Ez(),body:new URLSearchParams({grant_type:Iz,client_id:b4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=J0(U.access_token),h=J0(U.refresh_token);if(!k||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:k,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Fq,Mq),await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class H4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await wq({signal:q.signal});return await z(R),await Bq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var hz=5000,Lq=1000,Fq=5000,Mq=60000,Dz=300000,wz=3000;var uz=d(()=>{bq();Hq()});function jq(){return new H4}function kz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??jq,J=z.deps?.saveXaiCredentials??Tz,G=z.deps?.isBareMode??t,[m,_]=d0.useState({state:"starting"});return d0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),m}var d0;var Az=d(()=>{uz();l0();Sz();d0=O0(U0(),1)});async function az(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":lz,...await vz()}}function fz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function hq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function Dq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(gz,{method:"POST",headers:await az(),body:new URLSearchParams({client_id:L4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!m||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:nz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:dz/1000}}async function Eq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??hq,G=q?.now??(()=>Date.now()),m=fz(z.expires_in,nz),_=G()+m,b=Math.max(fz(z.interval,dz),Uq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(xz,{method:"POST",headers:await az(),body:new URLSearchParams({grant_type:cz,client_id:L4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=G0(U.access_token),h=G0(U.refresh_token);if(!k||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:k,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Iq,Pq),await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class F4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await Dq({signal:q.signal});return await z(R),await Eq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var dz=5000,Uq=1000,Iq=5000,Pq=60000,nz=1800000,Cz=3000;var iz=d(()=>{Oq();pz()});function uq(){return new F4}function sz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??uq,J=z.deps?.saveKimiCredentials??tz,G=z.deps?.isBareMode??t,[m,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(m.state!=="waiting")return;if(b.current)return;let M=m.verificationUriComplete??m.verificationUri;if(!M)return;b.current=!0,p0(M).catch(()=>{})},[m]),m}var Y0;var oz=d(()=>{iz();Fz();l0();rz();Y0=O0(U0(),1)});function R1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function Q1(z){let q=t0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function $1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let m=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(m&&_)q[m]=_}return q}function J1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
49
+ `)}function Z1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let m=z.gcpRegion?.trim();if(m)R.gcpRegion=m;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=$1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function G1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",m=z2(z.model),_=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function Y1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${m4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.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 W1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${m4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.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(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function _4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function ez(z,q){return Boolean(z&&q&&z.id===q)}function m1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===D4&&!R.apiKey)}function V1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===r0&&!R.apiKey)}function X1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function y1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=Mz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{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."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function K1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=kz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function b1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=sz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function P8({mode:z,onDone:q}){let R=V2(),[J,G]=H.useState([]),[m,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),k=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>Q1("ollama")),[D0,E0]=H.useState({}),[E4,s0]=H.useState(""),[K2,b2]=H.useState(0),[H2,L2]=H.useState(0),[o0,u4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[F2,s]=H.useState(0),[T4,u]=H.useState(),[y0,B]=H.useState(),[M2,_2]=H.useState(),[S4,u0]=H.useState(!1),[B0,j0]=H.useState(),[o,T0]=H.useState({state:"idle"}),[e,S0]=H.useState({state:"idle"}),[z0,e0]=H.useState({state:"idle"}),[w2,B2]=H.useState(!0),[j2,l]=H.useState(!1),z4=H.useRef(!1),[q4,R4]=H.useState(()=>h0()),[k4,O2]=H.useState(()=>X2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(n0()),U(w4()),L(P0()),B2(!1)})},[]);let K0=W0[X0]??W0[0],k0=K0.key,U2=I[k0],Q4=J.length>0,A0=Q4,A4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!A0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!A0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"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:!Q4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!A0},...S4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[A0,Q4,S4,q4,P,b,J]),$4=H.useCallback(()=>{if(t()){k.current+=1,u0(!1),j0(void 0);return}let Q=++k.current;(async()=>{let Z=await O4();if(Q!==k.current)return;u0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return $4(),()=>{k.current+=1}},[$4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await m2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:W1(Z,I.baseUrl)});return}let Y=W4(Z.models,"balanced"),W=Qz(Z.models,"balanced");if(!Q)T0({state:"ready",defaultValue:W?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return S0({state:"loading"}),(async()=>{let Z=await W2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)S0({state:"unavailable",message:Y1(Z,I.baseUrl)});return}if(!Q)S0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return e0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){e0({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:Y,defaultValue:W}=Y2(Z,I.model);e0({state:"ready",options:Y,defaultValue:W})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(z4.current)return;z4.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(n0()),U(w4()),L(P0()),$4(),z4.current=!1})}function b0(){return null}function J4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Z4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await O4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function C4(){N2()}async function I2(Q){let Z="provider";l(!0),u("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),W=$0(Q);if(!W){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??W:W,F=M0(V.model)||a0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=W.name;let j=b0(),E=ez(W,B0),x=E?await Z4():null;A();let c=Y&&V.id!==W.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",C=E?J4({prefix:`Active provider: ${W.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${W.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${W.name}${c}`;u(C),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:F,message:`Provider switched to ${W.name} (${F})`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${W}`),O()}}async function P2(){l(!0),u("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),B4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||a0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),u(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else u("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),u(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function h2(Q){let Z="provider";l(!0),u("Setting provider for this project...");try{await new Promise((C)=>queueMicrotask(C));let Y=n0(),W=B4(Q);if(!W){B("Could not set project provider override."),l(!1),O();return}let V=M0(W.model)||a0();if(Y===W.id)_0();R((C)=>({...C,mainLoopModel:V,mainLoopModelForSession:null})),Z=W.name;let F=b0(),j=ez(W,B0),E=j?await Z4():null;A();let x=`Active provider for this project: ${W.name}. Other projects keep the global default.`,c=j?J4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((C)=>Boolean(C))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;u(c),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:V,message:`Provider switched to ${W.name} (${V}) for this project`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${W}`),O()}}function O(){_2("done"),X("menu")}function C0(Q){q({action:"cancelled",message:Q})}function f4(Q){let Z=t0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),E0({}),s0(""),u4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){T0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){S0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function D2(Q){let Z=J.find((W)=>W.id===Q);if(!Z)return;let Y=R1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),E0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),s0(J1(Z.extras?.customHeaders)),u4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function f0(Q=I){let Z=Z1(D0,E4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},W=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!W){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===W.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(W.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${W.name}`:j?`Added provider: ${W.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${W.name} (now active)`;if(u(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:W.id,message:`Provider configured: ${W.name}`});return}f(null),r(0),B(void 0),O()}function E2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function u2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(S,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function T2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(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:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:M4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??M4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(S,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===M4){H0("model");return}let W={...I,model:Y};p(W),g4(W)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function g4(Q){if(o0==="anthropic"||o0==="custom"){p(Q),X("custom-headers");return}f0(Q)}function S2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[k0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let W=X0+1,V=W0[W]?.key??"name";if(V==="model"&&!tq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(W),s(Y[V].length);return}g4(Y)}function k2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",k2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function A2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",A2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function C2(){let Q=!t(),Z=[...q4?[{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"},...Q?[{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"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(S,{options:Z,onChange:(Y)=>{if(Y==="skip"){C0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let W=await h4({force:!0});R4(h0()),A();let V=i0(W);if(W.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(u(V),B(void 0),z==="manage")O()})();return}f4(Y)},onCancel:()=>{if(z==="first-run"){C0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function f2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(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:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function g2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(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:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){f4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function x2(){let Q=(dq(),Tq(vq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=t0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},W=X1(n(),Z.baseUrl),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}})})}function c2(){let Q=o0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=N1[Q],Y=Z[V0]??Z[0],W=D0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...D0,[Y.key]:j};if(E0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:W,onChange:(F)=>E0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:K2,onChangeCursorOffset:b2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function l2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:E4,onChange:s0,onSubmit:()=>f0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:H2,onChangeCursorOffset:L2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function p2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:U2,onChange:(Q)=>p((Z)=>({...Z,[k0]:Q})),onSubmit:S2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:k0==="apiKey"?"*":void 0,columns:80,cursorOffset:F2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),T4&&$(N,{children:T4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",G1(Y,Y.id===m)]},Y.id))}),$(S,{options:A4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"import-legacy":{(async()=>{let W=await h4({force:!0});if(R4(h0()),A(),W.errors.length>0)B(i0(W));else u(i0(W))})();break}case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":P2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let W=U4();if(!W.success){B(W.warning??"Could not clear Codex OAuth credentials.");break}u0(!1),j0(void 0);let V=_4(n(),B0),F=null;if(V){let j=j4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}C4(),F=j.activeProfileId?b0():null}A(),u(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:C0("Provider manager closed");break}},onCancel:()=>C0("Provider manager closed"),defaultFocusValue:M2,visibleOptionCount:A4.length})]})}function g0(Q,Z,Y){let W=J.map((V)=>{let F=[];if(V.id===m)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(W.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(S,{options:W,onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,W.length))})]})}let T;switch(h){case"select-preset":T=C2();break;case"select-ollama-model":T=u2();break;case"select-openai-model":T=T2();break;case"select-atomic-chat-model":T=E2();break;case"codex-oauth":T=$(y1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:rq,baseUrl:q2,model:sq,apiKey:""},W=_4(n(),B0),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Z4(Q);u0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((C)=>Boolean(C)),c=J4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}u(c),B(void 0),O()}});break;case"xai-oauth":T=$(K1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:oq,baseUrl:r0,model:eq,apiKey:""},W=V1(n(),P4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"kimi-auth-choice":T=g2();break;case"kimi-oauth":T=$(b1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:z1,baseUrl:D4,model:q1,apiKey:""},W=m1(n(),I4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"github-onboard":T=$(e4,{onDone:(Q)=>{if(Q)u(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":T=f2();break;case"anthropic-oauth":T=x2();break;case"cloud-extras":T=c2();break;case"custom-headers":T=l2();break;case"form":T=p2();break;case"select-active":T=g0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{I2(Q)});break;case"select-active-project":T=g0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-edit":T=g0("Edit provider","No providers available. Add one first.",(Q)=>{D2(Q)});break;case"select-delete":T=g0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((C)=>C.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,W=_4(J,B0)?.id===Q,V=P4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===r0&&!Z.apiKey&&V===Q,j=I4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===D4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=j4(Q);if(!c.removed)B("Could not delete provider.");else{let C=[];if(W){let g=U4();if(!g.success)C.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);C4()}if(Y){let g=Q2();if(!g.success)C.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=Z2();if(!g.success)C.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=J2();if(!g.success)C.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)C.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R((N4)=>({...N4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R((N4)=>({...N4,mainLoopModel:null,mainLoopModelForSession:null}))}u(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:T=v2();break}return y(R2,{color:"permission",children:[$(y2,{enabled:k4,onDismiss:(Q)=>{R4(h0()),O2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),k4?null:w2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):j2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):T]})}var H,W0,M4="\x00__manual__",tq,rq="Codex OAuth",sq="codexplan",oq="xAI / Grok (OAuth)",eq="grok-4",z1="Moonshot AI",q1,D4="https://api.kimi.com/coding/v1",N1;var H1=d(()=>{Sq();zz();Aq();l4();fq();lq();nq();Lz();l0();kq();Cq();xq();x4();r4();cq();$z();Jz();pq();gq();iq();s4();_z();Az();oz();Sz();rz();pz();aq();x0();H=O0(U0(),1),W0=[{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.'}],tq=new Set(["anthropic","bedrock","vertex","foundry"]),q1=$2;N1={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{m4 as pc,Jz as qc,$1 as rc,P8 as sc,H1 as tc};
@@ -0,0 +1,4 @@
1
+ import{Jo as IJ,Lo as pJ,PR as UJ,VK as DJ,Vi as cJ,WK as BJ,XK as lJ,mS as jJ,nS as $V}from"./cli-1.1.15-b16e0ajk.mjs";import{B$ as qJ,F$ as gJ,Fda as uJ,R_ as WJ,Rea as hJ,W_ as l,pga as G,s$ as mJ,v_ as p,w_ as fJ,wda as m,wea as YJ,xga as dJ}from"./cli-1.1.15-c6h2gge7.mjs";import{Dia as U,Fia as PJ}from"./cli-1.1.15-mrgk4vjn.mjs";import{rja as f,uja as SJ}from"./cli-1.1.15-8w8262sk.mjs";import{gka as VJ,kka as bJ,uka as Q,xka as kJ}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as yJ,Uka as JJ}from"./cli-1.1.15-dv1zb375.mjs";import{Pma as AJ,Qma as zJ}from"./cli-1.1.15-xn5kcp4k.mjs";import{Asa as wJ,Esa as _J}from"./cli-1.1.15-bwy6nhdk.mjs";class c{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=[],q=-1/0,{paths:I,lowerPaths:A,charBits:F,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((F[M]&$)!==$)continue;let B=Z?I[M]:A[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let N=1;N<Y;N++){if(E=B.indexOf(X[N],h+1),E===-1)continue J;y[N]=E;let K=E-h-1;if(K===0)u+=4;else C+=3+K*1;h=E}if(H.length===W&&_+u-C<=q)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=HJ(S,y[N],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let d=N+K>>1;if(H[d].fuzzScore<T)N=d+1;else K=d}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=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(!x)x=new c;return x}function vV(){x=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function FJ(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(!x||L.length===0)return;let W=await KJ(J),Z=[...L,...$J,...XJ,...J,...W],V=FJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.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])],$=xJ.default(),_=!1,H=X.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;$.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}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 p(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),q=await EJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=p(l(),A,{timeout:1e4,cwd:V}).then(async(j)=>{if(F!==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 KJ(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("",{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=[...$,..._],q=await KJ(H);XJ=q;let I=[...q,...H],A=FJ(I);if(A!==r)await W.loadFromFileListAsync(I).done,r=A,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 NJ(){if(v)return;let J=sJ();if(x){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 NJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;NJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=x?VV(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("",{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 xJ,x=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();pJ();uJ();zJ();xJ=wJ(cJ(),1);ZJ=AJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
+ export{c as $h,MJ as ai,jV as bi,vV as ci,RV as di,GV as ei,NJ as fi,CV as gi,LV as hi,ZV as ii};
@@ -0,0 +1,2 @@
1
+ import{pf as R,rf as p}from"./cli-1.1.15-chxsepr7.mjs";import{k2 as O,n2 as d}from"./cli-1.1.15-vsctpke4.mjs";import{uka as K,xka as h}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as D,Uka as f}from"./cli-1.1.15-dv1zb375.mjs";import{Esa as I,Fsa as J}from"./cli-1.1.15-bwy6nhdk.mjs";async function g({environmentId:X,title:Q,events:q,gitRepoUrl:_,branch:Y,signal:z,baseUrl:G,getAccessToken:$,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.1.15-e4p3txt8.mjs"),{getOrganizationUUID:Z}=await import("./client-1.1.15-7zxfy90s.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.15-7fxj0bcf.mjs"),{getOAuthHeaders:P}=await import("./api-1.1.15-xk3v2kp8.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.1.15-cdm0wycs.mjs"),{getDefaultBranch:L}=await import("./git-1.1.15-xzay0ztr.mjs"),{getMainLoopModel:T}=await import("./model-1.1.15-b40xd4h1.mjs"),{default:v}=await import("./index-1.1.15-jsq8t7gh.mjs"),x=$?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let M=await Z();if(!M)return K("[bridge] No org UUID for session creation"),null;let E=null,k=null;if(_){let{parseGitRemote:y}=await import("./detectRepository-1.1.15-cdm0wycs.mjs"),F=y(_);if(F){let{host:A,owner:S,name:w}=F,j=Y||await L()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${w}`,revision:j},k={type:"git_repository",git_info:{type:"github",repo:`${S}/${w}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N(_);if(A){let[S,w]=A.split("/");if(S&&w){let j=Y||await L()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${w}`,revision:j},k={type:"git_repository",git_info:{type:"github",repo:`${S}/${w}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:k?[k]:[],model:T()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":M},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await v.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${f(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 C=H.data;if(!C||typeof C!=="object"||!("id"in C)||typeof C.id!=="string")return K("[bridge] No session ID in response"),null;return C.id}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.15-e4p3txt8.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.15-7zxfy90s.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.15-7fxj0bcf.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.15-xk3v2kp8.mjs"),{default:G}=await import("./index-1.1.15-jsq8t7gh.mjs"),$=Q?.getAccessToken?.()??q()?.accessToken;if(!$)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($),"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 L=N.response?.status??"no-response",T=N.code??"unknown-code",v=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",M=N.message??f(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${L} code=${T} method=${x} url=${v} timeout=${E} message=${M}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${f(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 r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.15-e4p3txt8.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.15-7zxfy90s.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.15-7fxj0bcf.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.15-xk3v2kp8.mjs"),{default:G}=await import("./index-1.1.15-jsq8t7gh.mjs"),$=Q?.getAccessToken?.()??q()?.accessToken;if(!$){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($),"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.1.15-e4p3txt8.mjs"),{getOrganizationUUID:Y}=await import("./client-1.1.15-7zxfy90s.mjs"),{getOauthConfig:z}=await import("./oauth-1.1.15-7fxj0bcf.mjs"),{getOAuthHeaders:G}=await import("./api-1.1.15-xk3v2kp8.mjs"),{default:$}=await import("./index-1.1.15-jsq8t7gh.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=O(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await $.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(L)=>L<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let L=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${L?`: ${L}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${f(N)}`)}}var c=I(()=>{h();D();p();d()});
2
+ export{g as gf,t as hf,r as if,o as jf,c as kf};
@@ -0,0 +1,2 @@
1
+ import{fla as B,gla as H,nla as V}from"./cli-1.1.15-tc86fw6x.mjs";import{Esa as Q}from"./cli-1.1.15-bwy6nhdk.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as Hh,Y as Ih};
@@ -0,0 +1,2 @@
1
+ import{ni as W,oi as v,pi as T}from"./cli-1.1.15-bkk9d70e.mjs";import{Aia as F,wia as X,yia as C,zia as $}from"./cli-1.1.15-59t4k8sr.mjs";import{uka as L,xka as B}from"./cli-1.1.15-vvc5kd0e.mjs";import{cla as H,nla as y}from"./cli-1.1.15-tc86fw6x.mjs";import{Sqa as j,Tma as E}from"./cli-1.1.15-xn5kcp4k.mjs";import{Mra as R,csa as N}from"./cli-1.1.15-fnh28phg.mjs";N();C();j();B();y();F();T();import{randomUUID as O}from"crypto";import{mkdir as U,writeFile as A}from"fs/promises";import{basename as I,join as M}from"path";var P=30000;function Q(q){L(`[bridge:inbound-attach] ${q}`)}var k=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),D=$(()=>X.array(k()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=D().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return I(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function l(){return M(H(),"uploads",E())}async function x(q){let G=W();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${v()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await R.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:P,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),_=(q.file_uuid.slice(0,8)||O().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),w=l(),Y=M(w,`${_}-${K}`);try{await U(w,{recursive:!0}),await A(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(x))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function u(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 o(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return u(G,K)}
2
+ export{S as ca,f as da,u as ea,o as fa};
@@ -0,0 +1,2 @@
1
+ import{L3 as w,N3 as F}from"./cli-1.1.15-e0wdjxcm.mjs";import{Fsa as D}from"./cli-1.1.15-bwy6nhdk.mjs";F();var z,B;function O(q,v){z=q,B=v}async function Q(q,v,G,H){let J=z??import("./App-1.1.15-qpr6dmbc.mjs"),K=B??import("./REPL-1.1.15-zbv78tw9.mjs");z=void 0,B=void 0;let[{App:M},{REPL:N}]=await Promise.all([J,K]);await H(q,w(M,{...v,children:w(N,{...G})}))}
2
+ export{O as db,Q as eb};