@claudiolabs/claudio 0.1.10 → 0.1.11

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 (807) hide show
  1. package/bin/claudio +50 -1
  2. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
  3. package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
  15. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
  32. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
  33. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
  34. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
  35. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
  36. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
  37. package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
  38. package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
  39. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
  40. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
  41. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
  42. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
  43. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
  44. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
  45. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
  46. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
  47. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
  48. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
  50. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
  51. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
  53. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
  54. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
  56. package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
  57. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
  58. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
  59. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
  60. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
  61. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
  62. package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
  63. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
  64. package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
  65. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
  66. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
  67. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
  68. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
  69. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
  70. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
  71. package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
  72. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
  73. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
  74. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
  75. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
  76. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
  77. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
  78. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
  79. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
  80. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
  81. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
  82. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
  83. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
  84. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
  85. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
  86. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
  87. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
  88. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
  89. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
  90. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
  91. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
  92. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
  93. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
  94. package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
  95. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
  96. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
  97. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
  98. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
  99. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
  100. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
  101. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
  102. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
  103. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
  104. package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
  105. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
  106. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
  107. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
  108. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
  109. package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
  110. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
  111. package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
  112. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
  113. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
  114. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
  115. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
  116. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
  117. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
  118. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
  119. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
  120. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
  121. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
  122. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
  123. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
  124. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
  125. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
  126. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
  127. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
  128. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
  129. package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
  130. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
  131. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
  132. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
  133. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
  134. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
  135. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
  136. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
  137. package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
  138. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
  139. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
  140. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
  141. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
  142. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
  143. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
  144. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
  145. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
  146. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
  147. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
  148. package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
  149. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
  150. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
  151. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
  152. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
  153. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
  154. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
  155. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
  156. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
  157. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
  158. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
  159. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
  160. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
  161. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
  162. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
  163. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
  164. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
  165. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
  166. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
  167. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
  168. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
  169. package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
  170. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
  171. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
  172. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
  173. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
  174. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
  175. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
  176. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
  177. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
  178. package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
  179. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
  180. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
  181. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
  182. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
  183. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
  184. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
  185. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
  186. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
  187. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
  188. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
  189. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
  190. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
  191. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
  192. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
  193. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
  194. package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
  195. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
  196. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
  197. package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
  198. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
  199. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
  200. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
  201. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
  202. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
  203. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
  204. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
  205. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
  206. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
  207. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
  208. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
  209. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
  210. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
  211. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
  212. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
  213. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
  214. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
  215. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
  216. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
  217. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
  218. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
  219. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
  220. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
  221. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
  222. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
  223. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
  224. package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
  225. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
  226. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
  227. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
  228. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
  229. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
  230. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
  231. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
  232. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
  233. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
  234. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
  235. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
  236. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
  237. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
  238. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
  239. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
  240. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
  241. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
  242. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
  243. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
  244. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
  245. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
  246. package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
  247. package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
  248. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
  249. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
  250. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
  251. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
  252. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
  253. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
  254. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
  255. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
  256. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
  257. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
  258. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
  259. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
  260. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
  261. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
  262. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
  263. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
  264. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
  265. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
  266. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
  267. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
  268. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
  269. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
  270. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
  271. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
  272. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
  273. package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
  274. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
  275. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
  276. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
  277. package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
  278. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
  279. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
  280. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
  281. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
  282. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
  283. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
  284. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
  285. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
  286. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
  287. package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
  288. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
  289. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
  290. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
  291. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
  292. package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
  293. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
  294. package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
  295. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
  296. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
  297. package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
  298. package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
  299. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
  300. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
  301. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
  302. package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
  303. package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
  304. package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
  305. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
  306. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
  307. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
  308. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
  309. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
  310. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
  311. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
  312. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
  313. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
  314. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
  315. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
  316. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
  317. package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
  318. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
  319. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
  320. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
  321. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
  322. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
  323. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
  324. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
  325. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
  326. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
  327. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
  328. package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
  329. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
  330. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
  331. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
  332. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
  333. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
  334. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
  335. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
  336. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
  337. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
  338. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
  339. package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
  340. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
  341. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
  342. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
  343. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
  344. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
  345. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
  346. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
  347. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
  348. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
  349. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
  350. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
  351. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
  352. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
  353. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
  354. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
  355. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
  356. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
  357. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
  358. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
  359. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
  360. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
  361. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
  362. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
  363. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
  364. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
  365. package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
  366. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
  367. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
  368. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
  369. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
  370. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
  371. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
  372. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
  373. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
  374. package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
  375. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
  376. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
  377. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
  378. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
  379. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
  380. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
  381. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
  382. package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
  383. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
  384. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
  385. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
  386. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
  387. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
  388. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
  389. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
  390. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
  391. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
  392. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
  393. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
  394. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
  395. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
  396. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
  397. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
  398. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
  399. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
  400. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
  401. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
  402. package/dist/claudio-vscode.vsix +0 -0
  403. package/dist/cli.mjs +3 -3
  404. package/package.json +1 -1
  405. package/dist/chunks/AgentTool-0.1.10-6d1adwh4.mjs +0 -1
  406. package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +0 -1
  407. package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +0 -1
  408. package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +0 -1
  409. package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +0 -1
  410. package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +0 -1
  411. package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +0 -1
  412. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +0 -1
  413. package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +0 -1
  414. package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +0 -3
  415. package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +0 -1
  416. package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +0 -1
  417. package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +0 -1
  418. package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +0 -1
  419. package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +0 -1
  420. package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +0 -1
  421. package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +0 -1
  422. package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +0 -1
  423. package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +0 -1
  424. package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +0 -1
  425. package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +0 -1
  426. package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +0 -1
  427. package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +0 -1
  428. package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +0 -1
  429. package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +0 -1
  430. package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +0 -9
  431. package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +0 -1
  432. package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +0 -1
  433. package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +0 -1
  434. package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +0 -1
  435. package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +0 -3
  436. package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +0 -111
  437. package/dist/chunks/api-0.1.10-712k136n.mjs +0 -1
  438. package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +0 -1
  439. package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +0 -1
  440. package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +0 -1
  441. package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +0 -1
  442. package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +0 -48
  443. package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +0 -1
  444. package/dist/chunks/branch-0.1.10-z00acm0q.mjs +0 -4
  445. package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +0 -1
  446. package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +0 -1
  447. package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +0 -3
  448. package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +0 -1
  449. package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +0 -21
  450. package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +0 -4
  451. package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +0 -1
  452. package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +0 -1
  453. package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +0 -2
  454. package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +0 -1
  455. package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +0 -1
  456. package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +0 -1
  457. package/dist/chunks/clear-0.1.10-7a42j19v.mjs +0 -1
  458. package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +0 -1
  459. package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +0 -3
  460. package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +0 -3
  461. package/dist/chunks/cli-0.1.10-17f08ra3.mjs +0 -2
  462. package/dist/chunks/cli-0.1.10-19jdke0x.mjs +0 -2
  463. package/dist/chunks/cli-0.1.10-1faf50d6.mjs +0 -2
  464. package/dist/chunks/cli-0.1.10-1remt68x.mjs +0 -2
  465. package/dist/chunks/cli-0.1.10-1zgq248j.mjs +0 -2
  466. package/dist/chunks/cli-0.1.10-227xyew7.mjs +0 -2
  467. package/dist/chunks/cli-0.1.10-283zk2ee.mjs +0 -2
  468. package/dist/chunks/cli-0.1.10-28zx3btb.mjs +0 -14
  469. package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +0 -2
  470. package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +0 -2
  471. package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +0 -2
  472. package/dist/chunks/cli-0.1.10-2k83cndj.mjs +0 -2
  473. package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +0 -31
  474. package/dist/chunks/cli-0.1.10-2tygs780.mjs +0 -2
  475. package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +0 -2
  476. package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +0 -12
  477. package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +0 -11
  478. package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +0 -39
  479. package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +0 -2
  480. package/dist/chunks/cli-0.1.10-4a42q38j.mjs +0 -2
  481. package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +0 -3
  482. package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +0 -2
  483. package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +0 -2
  484. package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +0 -2
  485. package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +0 -2
  486. package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +0 -21
  487. package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +0 -3
  488. package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +0 -3
  489. package/dist/chunks/cli-0.1.10-594z8zdp.mjs +0 -2
  490. package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +0 -2
  491. package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +0 -2
  492. package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +0 -833
  493. package/dist/chunks/cli-0.1.10-63qeecn7.mjs +0 -24
  494. package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +0 -2
  495. package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +0 -2
  496. package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +0 -2
  497. package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +0 -2
  498. package/dist/chunks/cli-0.1.10-6wf59qza.mjs +0 -58
  499. package/dist/chunks/cli-0.1.10-72ece2yk.mjs +0 -2
  500. package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +0 -2
  501. package/dist/chunks/cli-0.1.10-7691mckr.mjs +0 -2
  502. package/dist/chunks/cli-0.1.10-77zcax57.mjs +0 -2
  503. package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +0 -2
  504. package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +0 -4
  505. package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +0 -8
  506. package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +0 -2
  507. package/dist/chunks/cli-0.1.10-8dyffagh.mjs +0 -2
  508. package/dist/chunks/cli-0.1.10-91tna7ay.mjs +0 -2
  509. package/dist/chunks/cli-0.1.10-977j0ey2.mjs +0 -2
  510. package/dist/chunks/cli-0.1.10-97rwbawt.mjs +0 -2
  511. package/dist/chunks/cli-0.1.10-9dfywk37.mjs +0 -2
  512. package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +0 -16
  513. package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +0 -50
  514. package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +0 -2
  515. package/dist/chunks/cli-0.1.10-a4p945wp.mjs +0 -2
  516. package/dist/chunks/cli-0.1.10-a53q2hat.mjs +0 -2
  517. package/dist/chunks/cli-0.1.10-a6j6www8.mjs +0 -10
  518. package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +0 -2
  519. package/dist/chunks/cli-0.1.10-akaq0zte.mjs +0 -2
  520. package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +0 -2
  521. package/dist/chunks/cli-0.1.10-b59j6twr.mjs +0 -2
  522. package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +0 -2
  523. package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +0 -2
  524. package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +0 -2
  525. package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +0 -2
  526. package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +0 -4
  527. package/dist/chunks/cli-0.1.10-bw6411be.mjs +0 -3
  528. package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +0 -4
  529. package/dist/chunks/cli-0.1.10-c7bkm855.mjs +0 -4
  530. package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +0 -2
  531. package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +0 -5
  532. package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +0 -2
  533. package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +0 -2
  534. package/dist/chunks/cli-0.1.10-d48qgcag.mjs +0 -2
  535. package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +0 -2
  536. package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +0 -2
  537. package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +0 -2
  538. package/dist/chunks/cli-0.1.10-dx92txwb.mjs +0 -13
  539. package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +0 -2
  540. package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +0 -44
  541. package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +0 -2
  542. package/dist/chunks/cli-0.1.10-eh248dzz.mjs +0 -15
  543. package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +0 -2
  544. package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +0 -2
  545. package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +0 -2
  546. package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +0 -2
  547. package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +0 -2
  548. package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +0 -2
  549. package/dist/chunks/cli-0.1.10-fay16q4v.mjs +0 -2
  550. package/dist/chunks/cli-0.1.10-fcarec7s.mjs +0 -2
  551. package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +0 -5
  552. package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +0 -2
  553. package/dist/chunks/cli-0.1.10-frs4kmth.mjs +0 -2
  554. package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +0 -132
  555. package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +0 -4
  556. package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +0 -100
  557. package/dist/chunks/cli-0.1.10-gms4557v.mjs +0 -252
  558. package/dist/chunks/cli-0.1.10-gnds07ck.mjs +0 -2
  559. package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +0 -2
  560. package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +0 -2
  561. package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +0 -24
  562. package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +0 -2
  563. package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +0 -2
  564. package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +0 -2
  565. package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +0 -2
  566. package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +0 -2
  567. package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +0 -2
  568. package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +0 -2
  569. package/dist/chunks/cli-0.1.10-js33z9dt.mjs +0 -2
  570. package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +0 -2
  571. package/dist/chunks/cli-0.1.10-jy7ds572.mjs +0 -2
  572. package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +0 -3
  573. package/dist/chunks/cli-0.1.10-knbxee8j.mjs +0 -2
  574. package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +0 -2
  575. package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +0 -2
  576. package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +0 -7
  577. package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +0 -2
  578. package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +0 -2
  579. package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +0 -192
  580. package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +0 -15
  581. package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +0 -22
  582. package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +0 -34
  583. package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +0 -2
  584. package/dist/chunks/cli-0.1.10-npkfteg7.mjs +0 -2
  585. package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +0 -2
  586. package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +0 -4
  587. package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +0 -2
  588. package/dist/chunks/cli-0.1.10-p4a151rw.mjs +0 -2
  589. package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +0 -2
  590. package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +0 -2
  591. package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +0 -2
  592. package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +0 -2
  593. package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +0 -2
  594. package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +0 -2
  595. package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +0 -2
  596. package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +0 -3
  597. package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +0 -2
  598. package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +0 -2
  599. package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +0 -2
  600. package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +0 -2
  601. package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +0 -134
  602. package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +0 -45
  603. package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +0 -2
  604. package/dist/chunks/cli-0.1.10-rvb440sp.mjs +0 -2
  605. package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +0 -2
  606. package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +0 -2
  607. package/dist/chunks/cli-0.1.10-s6jxst02.mjs +0 -2
  608. package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +0 -11
  609. package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +0 -18
  610. package/dist/chunks/cli-0.1.10-sab6x266.mjs +0 -2
  611. package/dist/chunks/cli-0.1.10-seekz53q.mjs +0 -2
  612. package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +0 -2
  613. package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +0 -4
  614. package/dist/chunks/cli-0.1.10-t0v9d184.mjs +0 -2
  615. package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +0 -2
  616. package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +0 -2
  617. package/dist/chunks/cli-0.1.10-ta048zme.mjs +0 -3
  618. package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +0 -4
  619. package/dist/chunks/cli-0.1.10-v385rk98.mjs +0 -2
  620. package/dist/chunks/cli-0.1.10-v582vfad.mjs +0 -2
  621. package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +0 -7
  622. package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +0 -16
  623. package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +0 -2
  624. package/dist/chunks/cli-0.1.10-w8np72sh.mjs +0 -2
  625. package/dist/chunks/cli-0.1.10-wajz23ff.mjs +0 -2
  626. package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +0 -6
  627. package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +0 -2
  628. package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +0 -12
  629. package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +0 -2
  630. package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +0 -2
  631. package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +0 -2
  632. package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +0 -2
  633. package/dist/chunks/cli-0.1.10-y17z0pes.mjs +0 -2
  634. package/dist/chunks/cli-0.1.10-y1bkenem.mjs +0 -2
  635. package/dist/chunks/cli-0.1.10-y2byece1.mjs +0 -12
  636. package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +0 -2
  637. package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +0 -9
  638. package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +0 -5036
  639. package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +0 -2
  640. package/dist/chunks/cli-0.1.10-yset0578.mjs +0 -2
  641. package/dist/chunks/cli-0.1.10-z20mk55m.mjs +0 -5
  642. package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +0 -6
  643. package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +0 -2
  644. package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +0 -2
  645. package/dist/chunks/cli-0.1.10-zeqsd250.mjs +0 -2
  646. package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +0 -2
  647. package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +0 -2
  648. package/dist/chunks/client-0.1.10-btm7zd17.mjs +0 -1
  649. package/dist/chunks/color-0.1.10-h3wdkq18.mjs +0 -1
  650. package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +0 -3
  651. package/dist/chunks/config-0.1.10-37452dtw.mjs +0 -1
  652. package/dist/chunks/config-0.1.10-apkj5t0e.mjs +0 -1
  653. package/dist/chunks/context-0.1.10-z4vfp64w.mjs +0 -1
  654. package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +0 -1
  655. package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +0 -1
  656. package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +0 -9
  657. package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +0 -1
  658. package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +0 -1
  659. package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +0 -1
  660. package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +0 -1
  661. package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +0 -1
  662. package/dist/chunks/devtools-0.1.10-93f39njd.mjs +0 -1
  663. package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +0 -1
  664. package/dist/chunks/doctor-0.1.10-wcq13152.mjs +0 -1
  665. package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +0 -1
  666. package/dist/chunks/effort-0.1.10-kanyae0a.mjs +0 -8
  667. package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +0 -1
  668. package/dist/chunks/environments-0.1.10-7dht1svt.mjs +0 -1
  669. package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +0 -1
  670. package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +0 -2
  671. package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +0 -1
  672. package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +0 -1
  673. package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +0 -1
  674. package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +0 -14
  675. package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +0 -1
  676. package/dist/chunks/git-0.1.10-ngvcytb0.mjs +0 -1
  677. package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +0 -1
  678. package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +0 -1
  679. package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +0 -6
  680. package/dist/chunks/help-0.1.10-yj8ra443.mjs +0 -1
  681. package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +0 -3
  682. package/dist/chunks/hooks-0.1.10-epp78p44.mjs +0 -79
  683. package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +0 -1
  684. package/dist/chunks/ide-0.1.10-361fyyet.mjs +0 -3
  685. package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +0 -1
  686. package/dist/chunks/index-0.1.10-1cxj797w.mjs +0 -2
  687. package/dist/chunks/index-0.1.10-30c6wwdm.mjs +0 -30
  688. package/dist/chunks/index-0.1.10-80bh88yr.mjs +0 -1
  689. package/dist/chunks/index-0.1.10-8apwt1gk.mjs +0 -1
  690. package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +0 -2
  691. package/dist/chunks/index-0.1.10-9mqxzarc.mjs +0 -5
  692. package/dist/chunks/index-0.1.10-c29w46aj.mjs +0 -1
  693. package/dist/chunks/index-0.1.10-c450y86m.mjs +0 -1
  694. package/dist/chunks/index-0.1.10-d1r31eyx.mjs +0 -9
  695. package/dist/chunks/index-0.1.10-drj30y1c.mjs +0 -1
  696. package/dist/chunks/index-0.1.10-g667a23q.mjs +0 -1
  697. package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +0 -1
  698. package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +0 -1
  699. package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +0 -9
  700. package/dist/chunks/index-0.1.10-r42rb77w.mjs +0 -7
  701. package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +0 -1
  702. package/dist/chunks/index-0.1.10-s32szzwg.mjs +0 -1
  703. package/dist/chunks/index-0.1.10-std21r3g.mjs +0 -1
  704. package/dist/chunks/index-0.1.10-t71jm4x7.mjs +0 -1
  705. package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +0 -1
  706. package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +0 -1
  707. package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +0 -1
  708. package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +0 -1
  709. package/dist/chunks/ink-0.1.10-57r8vscr.mjs +0 -1
  710. package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +0 -870
  711. package/dist/chunks/install-0.1.10-9w2w5vre.mjs +0 -1
  712. package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +0 -149
  713. package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +0 -1
  714. package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +0 -12
  715. package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +0 -1
  716. package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +0 -2
  717. package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +0 -2
  718. package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +0 -1
  719. package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +0 -1
  720. package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +0 -1
  721. package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +0 -1
  722. package/dist/chunks/main-0.1.10-q3qenxfq.mjs +0 -1
  723. package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +0 -1
  724. package/dist/chunks/mcp-0.1.10-af795ewj.mjs +0 -1
  725. package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +0 -17
  726. package/dist/chunks/mcp-0.1.10-nd17220r.mjs +0 -4
  727. package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +0 -1
  728. package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +0 -1
  729. package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +0 -3
  730. package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +0 -2
  731. package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +0 -1
  732. package/dist/chunks/model-0.1.10-rygn5rc7.mjs +0 -2
  733. package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +0 -1
  734. package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +0 -14
  735. package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +0 -1
  736. package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +0 -1
  737. package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +0 -1
  738. package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +0 -1
  739. package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +0 -3
  740. package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +0 -1
  741. package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +0 -1
  742. package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +0 -29
  743. package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +0 -1
  744. package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +0 -9
  745. package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +0 -57
  746. package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +0 -1
  747. package/dist/chunks/process-0.1.10-kp51xxsy.mjs +0 -1
  748. package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +0 -1
  749. package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +0 -9
  750. package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +0 -1
  751. package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +0 -1
  752. package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +0 -1
  753. package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +0 -2
  754. package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +0 -1
  755. package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +0 -1
  756. package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +0 -1
  757. package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +0 -5
  758. package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +0 -2
  759. package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +0 -1
  760. package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +0 -1
  761. package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +0 -1
  762. package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +0 -1
  763. package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +0 -1
  764. package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +0 -2
  765. package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +0 -1
  766. package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +0 -1
  767. package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +0 -1
  768. package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +0 -2
  769. package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +0 -1
  770. package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +0 -1
  771. package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +0 -5
  772. package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +0 -1
  773. package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +0 -1
  774. package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +0 -1
  775. package/dist/chunks/state-0.1.10-embrgn1a.mjs +0 -1
  776. package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +0 -6
  777. package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +0 -1
  778. package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +0 -1
  779. package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +0 -1
  780. package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +0 -1
  781. package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +0 -1
  782. package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +0 -1
  783. package/dist/chunks/teleport-0.1.10-saft8sby.mjs +0 -1
  784. package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +0 -1
  785. package/dist/chunks/theme-0.1.10-5xss74sp.mjs +0 -1
  786. package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +0 -1
  787. package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +0 -1
  788. package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +0 -1
  789. package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +0 -1
  790. package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +0 -1
  791. package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +0 -69
  792. package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +0 -4
  793. package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +0 -94
  794. package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +0 -1
  795. package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +0 -14
  796. package/dist/chunks/usage-0.1.10-r8vznre6.mjs +0 -1
  797. package/dist/chunks/util-0.1.10-51fk6c0k.mjs +0 -1
  798. package/dist/chunks/utils-0.1.10-43r4vneb.mjs +0 -1
  799. package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +0 -1
  800. package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +0 -1
  801. package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +0 -132
  802. package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +0 -1
  803. package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +0 -1
  804. package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +0 -7
  805. /package/dist/chunks/{cli-0.1.10-tf9dk84p.mjs → cli-0.1.11-4px8nt5r.mjs} +0 -0
  806. /package/dist/chunks/{cli-0.1.10-xfdakzcb.mjs → cli-0.1.11-tyh8gms9.mjs} +0 -0
  807. /package/dist/chunks/{cli-0.1.10-9xpgjxhj.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
@@ -0,0 +1,50 @@
1
+ import{Hb as xt,Ib as ie}from"./cli-0.1.11-0fshz0ak.mjs";import{Jb as xn,Kb as pn,Lb as un,Mb as Kt,Ob as ce}from"./cli-0.1.11-bbx2h4x9.mjs";import{An as Zt,Ay as mt,Bn as Da,By as Ra,DK as An,Dy as te,EK as re,Ey as ae,HK as Ut,IK as Wt,JK as oe,Nv as kt,Ov as Ha,Pv as Nt,Qv as qt,Rv as Tt,Sv as Ja,cK as It,eK as ee,ov as q,pv as za,qv as ne}from"./cli-0.1.11-s8ygndzf.mjs";import{US as D,WS as Ba,cT as Pt,dT as va}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as b,SU as c,vV as st}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as wn}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as Fn}from"./cli-0.1.11-x37jysc0.mjs";import{OX as Gt,PX as Wa}from"./cli-0.1.11-16086k9e.mjs";import{h0 as ot,i0 as ct,j0 as it,k0 as ut,l0 as pa,o0 as lt,s0 as ht,t0 as Jt,u0 as dt}from"./cli-0.1.11-zwkjaj0d.mjs";import{Aca as Jn,Bca as Rt,Cca as Xn,Dca as _t,Eca as Mt,Fca as Xa,Gca as Wn,Hca as $t,Ica as Kn,Kca as Ft,L7 as j,M7 as Ea,Mca as Ht,Wba as Xt,Xba as In,Yba as Va,Zba as zn,Zca as ja,_ba as Z,aca as B,bca as E,cca as en,gca as rn,hca as Un,lca as rt,wca as Hn,xca as pt,yca as zt,zca as fn}from"./cli-0.1.11-v7bwjqf0.mjs";import{kha as cn,sha as Lt}from"./cli-0.1.11-d3exw047.mjs";import{Nna as J,Ona as xa,Rna as x}from"./cli-0.1.11-yrfxpjhr.mjs";function Ma(n,a=$n){let e=Z().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(e)return en(e.id,{provider:"openai",name:e.name,baseUrl:e.baseUrl,model:e.model||a,apiKey:n,extras:{...e.extras,githubToken:n}}),rn(e.id),{mode:"updated"};return E({provider:"openai",name:"GitHub Copilot",baseUrl:_a,model:a,apiKey:n,extras:{githubToken:n}},{makeActive:!0}),{mode:"created"}}function yt({onDone:n,onBack:a,onChangeAPIKey:e}){let i=lt()?.trim()?"already-authed":"menu",[h,d]=H.useState(i),[R,O]=H.useState(null),[w,l]=H.useState(null),g=H.useCallback(async(p,A=$n,L)=>{let P=ht(p,L);if(!P.success){O(P.warning??"Could not save token to secure storage."),d("error");return}Ma(p,A),e?.(),n("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[e,n]),k=H.useCallback(async()=>{d("device-busy"),O(null),l(null);try{let p=await ot();l({user_code:p.user_code,verification_uri:p.verification_uri}),await it(p.verification_uri);let A=await ct(p.device_code,{initialInterval:p.interval,timeoutSeconds:p.expires_in}),L=await ut(A);await g(L.token,$n,A)}catch(p){O(p instanceof Error?p.message:String(p)),d("error")}},[g]);if(h==="already-authed")return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{bold:!0,children:"GitHub Copilot"},void 0,!1,void 0,this),z.jsxDEV(c,{children:"You are already signed in to GitHub Copilot."},void 0,!1,void 0,this),z.jsxDEV(c,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:"Sign in again",value:"sign-in-again"},{label:a?"Back to /provider menu":"Cancel",value:"back"}],onChange:(A)=>{if(A==="sign-in-again"){k();return}if(a){a();return}n("GitHub onboard cancelled",{display:"system"})}},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(h==="error"&&R)return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{color:"red",children:R},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:a?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(A)=>{if(A==="back"){if(a){a();return}d("menu"),O(null);return}n("GitHub onboard cancelled",{display:"system"})}},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(h==="device-busy")return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{children:"GitHub Copilot sign-in"},void 0,!1,void 0,this),w?z.jsxDEV(z.Fragment,{children:[z.jsxDEV(c,{children:["Enter code ",z.jsxDEV(c,{bold:!0,children:w.user_code},void 0,!1,void 0,this)," at"," ",w.verification_uri]},void 0,!0,void 0,this),z.jsxDEV(c,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV(c,{dimColor:!0,children:"Requesting device code from GitHub..."},void 0,!1,void 0,this),z.jsxDEV(mt,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{bold:!0,children:"GitHub Copilot setup"},void 0,!1,void 0,this),z.jsxDEV(c,{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."},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:"Sign in with browser",value:"device"},{label:a?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(p)=>{if(p==="cancel"){if(a){a();return}n("GitHub onboard cancelled",{display:"system"});return}k()}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var H,z,$n="github:copilot",_a="https://api.githubcopilot.com";var Ct=x(()=>{za();Ra();st();pa();dt();rt();H=J(Fn(),1),z=J(wn(),1)});function gt(n){return[n.name,n.family??"",...n.families??[],n.parameterSize??"",n.quantizationLevel??""].join(" ").toLowerCase()}function on(n,a){return a.some((e)=>n.includes(e))}function Ta(n){return!on(gt(n),bt)}function Sa(n){return n.find(Ta)??null}function Gn(n){let e=`${n.parameterSize??""} ${n.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(e?.[1])return Number(e[1]);if(typeof n.sizeBytes==="number"&&n.sizeBytes>0)return Number((n.sizeBytes/1e9).toFixed(1));return null}function La(n){return(n.quantizationLevel??n.name).toLowerCase()}function $a(n,a,e){if(n===null)return e.push("unknown size"),0;if(a==="latency"){if(n<=4)return e.push("tiny model for low latency"),32;if(n<=8)return e.push("small model for fast responses"),26;if(n<=14)return e.push("mid-sized model with acceptable latency"),16;if(n<=24)return e.push("larger model may be slower"),8;return e.push("large model likely slower locally"),n<=40?0:-8}if(a==="coding"){if(n>=7&&n<=14)return e.push("strong coding size tier"),24;if(n>14&&n<=34)return e.push("large coding-capable size tier"),28;if(n>34)return e.push("very large model with higher quality potential"),18;return e.push("compact model may trade off coding depth"),12}if(n>=7&&n<=14)return e.push("great balanced size tier"),26;if(n>=3&&n<7)return e.push("compact balanced size tier"),18;if(n>14&&n<=24)return e.push("high quality balanced size tier"),20;if(n>24)return e.push("large model for quality-first usage"),10;return e.push("very small model for general usage"),8}function Fa(n,a,e){let i=La(n);if(i.includes("q4"))return e.push("efficient Q4 quantization"),a==="latency"?8:4;if(i.includes("q5"))return e.push("balanced Q5 quantization"),a==="latency"?6:5;if(i.includes("q8"))return e.push("higher quality Q8 quantization"),a==="latency"?2:5;return 0}function Ga(n,a,e){if(a.score!==n.score)return a.score-n.score;let i=Gn(n)??Number.POSITIVE_INFINITY,h=Gn(a)??Number.POSITIVE_INFINITY;if(e==="latency")return i-h;if(e==="coding")return h-i;let d=14;return Math.abs(i-d)-Math.abs(h-d)}function Yn(n,a){return n.map((e)=>{let i=gt(e),h=[],d=0;if(on(i,bt))d-=40,h.push("not a chat-first model");if(on(i,ka))d+=a==="coding"?24:a==="balanced"?10:4,h.push("coding-oriented model family");if(on(i,Na))d+=a==="latency"?4:a==="coding"?6:8,h.push("strong general-purpose model family");if(on(i,qa))d+=a==="latency"?2:6,h.push("chat/instruct tuned");if(i.includes("vision")||i.includes("vl"))d-=2,h.push("vision model adds extra overhead");d+=$a(Gn(e),a,h),d+=Fa(e,a,h);let R=h.slice(0,3).join(", ");return{...e,score:d,reasons:h,summary:R}}).sort((e,i)=>Ga(e,i,a))}function wt(n,a){return Sa(Yn(n,a))}var ka,Na,qa,bt;var ft=x(()=>{ka=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Na=["llama","qwen","mistral","gemma","phi","deepseek"],qa=["instruct","chat","assistant"],bt=["embed","embedding","rerank","bge","whisper"]});function Qa(n){let a=n.toLowerCase();return Ya.some((e)=>a.includes(e))}function Qn(n){try{let a=new URL(n);if(a.username)a.username="redacted";if(a.password)a.password="redacted";for(let e of a.searchParams.keys())if(Qa(e))a.searchParams.set(e,"redacted");return a.toString()}catch{return n.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 Ya;var Ot=x(()=>{Ya=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Za(n){let a=`http://localhost:${n.port}/auth/callback`,e=new URL(`${Hn}/oauth/authorize`);return e.searchParams.append("response_type","code"),e.searchParams.append("client_id",Jn()),e.searchParams.append("redirect_uri",a),e.searchParams.append("scope",pt),e.searchParams.append("code_challenge",n.codeChallenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("id_token_add_organizations","true"),e.searchParams.append("codex_cli_simplified_flow","true"),e.searchParams.append("state",n.state),e.searchParams.append("originator",zt),e.toString()}function Pa(){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 Claudio now.</p>
15
+ <p>Claudio will finish activating your new Codex OAuth login.</p>
16
+ </body>
17
+ </html>`}function Ia(n){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>${_t(n)}</p>
31
+ <p>You can close this window and try again in Claudio.</p>
32
+ </body>
33
+ </html>`}function At(){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 Claudio.</p>
47
+ </body>
48
+ </html>`}async function Ua(n){let a=`http://localhost:${n.port}/auth/callback`,e=new URLSearchParams({grant_type:"authorization_code",code:n.authorizationCode,redirect_uri:a,client_id:Jn(),code_verifier:n.codeVerifier}),i=await fetch(`${Hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e,signal:n.signal?AbortSignal.any([n.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!i.ok){let l=await i.text().catch(()=>"");throw Error(l.trim()?`Codex OAuth token exchange failed (${i.status}): ${l.trim()}`:`Codex OAuth token exchange failed with status ${i.status}.`)}let h=await i.json(),d=fn(h.access_token),R=fn(h.refresh_token);if(!d||!R)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=fn(h.id_token);return{apiKey:O?await Mt(O).catch(()=>{return}):void 0,accessToken:d,refreshToken:R,idToken:O,accountId:Xn(O)??Xn(d)}}class Zn{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(n){let a=Nt(),e=Rt(),i=new kt("/auth/callback");this.authCodeListener=i,this.port=null;try{let h=await i.start(e);this.port=h;let d=Tt(),R=await qt(a),O=Za({port:h,codeChallenge:R,state:d});try{let w=await i.waitForAuthorization(d,async()=>{await n(O)}),l=new AbortController;this.tokenExchangeAbortController=l;let g;try{g=await Ua({authorizationCode:w,codeVerifier:a,port:h,signal:l.signal})}finally{if(this.tokenExchangeAbortController===l)this.tokenExchangeAbortController=null}if(this.authCodeListener!==i)throw this.buildCancellationError();return i.handleSuccessRedirect([],(k)=>{k.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),k.end(Pa())}),g}catch(w){let l=this.authCodeListener===i?w:this.buildCancellationError();if(i.hasPendingResponse()){let g=l instanceof Error&&l.message==="Codex OAuth flow was cancelled.";i.handleErrorRedirect((k)=>{k.writeHead(g?200:400,{"Content-Type":"text/html; charset=utf-8"}),k.end(g?At():Ia(l instanceof Error?l.message:String(l)))})}throw l}finally{this.cleanup()}}catch(h){let d=h instanceof Error?h.message:String(h);if(d.includes("EADDRINUSE")||d.includes(String(e)))throw Error(`Codex OAuth needs localhost:${e} for its callback. Close any app already using that port and try again.`);throw h}}cleanup(){let n=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(n),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((a)=>{a.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),a.end(At())});this.authCodeListener?.cancelPendingAuthorization(n),this.authCodeListener=null,this.port=null}}var St=x(()=>{Ha();Ja();Xa()});function Ka(){return new Zn}function Yt(n){let{onAuthenticated:a}=n,e=n.deps?.createOAuthService??Ka,i=n.deps?.openBrowser??Gt,h=n.deps?.saveCodexCredentials??$t,d=n.deps?.isBareMode??cn,[R,O]=On.useState({state:"starting"});return On.useEffect(()=>{if(d()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,l=e();return l.startOAuthFlow(async(g)=>{if(w)return;O({state:"waiting",authUrl:g,browserOpened:null});let k=await i(g);if(w)return;O({state:"waiting",authUrl:g,browserOpened:k})}).then(async(g)=>{if(w)return;await a(g,(v)=>{let p=h({apiKey:g.apiKey,accessToken:g.accessToken,refreshToken:g.refreshToken,idToken:g.idToken,accountId:g.accountId,profileId:v?.profileId});if(!p.success)throw Error(p.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((g)=>{if(w)return;O({state:"error",message:g instanceof Error?g.message:String(g)})}),()=>{w=!0,l.cleanup()}},[e,d,a,i,h]),R}var On;var Qt=x(()=>{St();Wa();Ft();Lt();On=J(Fn(),1)});function he(n){return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function de(n){let a=zn(n);return{name:a.name,baseUrl:a.baseUrl,model:a.model,apiKey:a.apiKey??""}}function se(n){let a={};for(let e of n.split(/\r?\n/)){let i=e.trim();if(!i)continue;let h=i.indexOf(":");if(h<=0)continue;let d=i.slice(0,h).trim(),R=i.slice(h+1).trim();if(d&&R)a[d]=R}return a}function me(n){if(!n)return"";return Object.entries(n).map(([a,e])=>`${a}: ${e}`).join(`
49
+ `)}function ye(n,a){let e={},i=n.awsRegion?.trim();if(i)e.awsRegion=i;let h=n.gcpProject?.trim();if(h)e.gcpProject=h;let d=n.gcpRegion?.trim();if(d)e.gcpRegion=d;let R=n.azureResource?.trim();if(R)e.azureResource=R;let O=se(a);if(Object.keys(O).length>0)e.customHeaders=O;return Object.keys(e).length>0?e:void 0}function be(n,a){let e=a?" (active)":"",i=n.apiKey?"key set":"no key",h=n.provider==="anthropic"?"anthropic":"openai-compatible",d=Xt(n.model),R=d.length<=3?d.join(", "):`${d[0]}, ${d[1]} + ${d.length-2} more`;return`${h} · ${n.baseUrl} · ${R} · ${i}${e}`}function ge(n,a){if(n.state==="unreachable")return`Could not reach Atomic Chat at ${Qn(a)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(n.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 we(n,a){if(n.state==="unreachable")return`Could not reach Ollama at ${Qn(a)}. Start Ollama first, or enter the endpoint manually.`;if(n.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(n.state==="generation_failed"){let e=n.probeModel??"the selected model",i=n.detail?` Details: ${n.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${e}.${i} Run "ollama run ${e}" once and retry, or enter details manually.`}return""}function Pn(n,a){if(!a)return;return n.find((e)=>e.id===a)}function fe(n,a){return Boolean(n&&a&&n.id===a)}function Oe({onBack:n,onConfigured:a}){let e=y.useCallback(async(h,d)=>{await a(h,d)},[a]);D("confirm:no",n,[n]);let i=Yt({onAuthenticated:e});if(i.state==="error")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"error",bold:!0,children:"Codex OAuth failed"},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.message},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter or Esc to go back."},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:n,onCancel:n,visibleOptionCount:1},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Codex OAuth"},void 0,!1,void 0,this),t.jsxDEV(c,{children:"Sign in with your ChatGPT account in the browser. Claudio will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."},void 0,!1,void 0,this),i.state==="starting"?t.jsxDEV(c,{dimColor:!0,children:"Starting local callback and preparing your browser..."},void 0,!1,void 0,this):i.browserOpened===!1?t.jsxDEV(t.Fragment,{children:[t.jsxDEV(c,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.authUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this):i.browserOpened===!0?t.jsxDEV(t.Fragment,{children:[t.jsxDEV(c,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.authUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this):t.jsxDEV(c,{dimColor:!0,children:"Opening your browser..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Esc to cancel and go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ir({mode:n,onDone:a}){let e=It(),[i,h]=y.useState([]),[d,R]=y.useState(),O=y.useRef(0),[w,l]=y.useState(n==="first-run"?"select-preset":"menu"),[g,k]=y.useState(null),[v,p]=y.useState("openai"),[A,L]=y.useState(()=>de("ollama")),[P,ln]=y.useState({}),[En,Rn]=y.useState(""),[Et,Vt]=y.useState(0),[jt,Bt]=y.useState(0),[_n,Vn]=y.useState(null),[I,nn]=y.useState(0),[U,Y]=y.useState(0),[Dt,Q]=y.useState(0),[jn,$]=y.useState(),[W,f]=y.useState(),[vt,na]=y.useState(),[Bn,hn]=y.useState(!1),[dn,tn]=y.useState(),[F,sn]=y.useState({state:"idle"}),[G,mn]=y.useState({state:"idle"}),[ta,aa]=y.useState(!0),[ea,yn]=y.useState(!1),Mn=y.useRef(!1),[kn,Nn]=y.useState(()=>un()),[Dn,ra]=y.useState(()=>Kt());y.useEffect(()=>{queueMicrotask(()=>{let r=Z(),o=B()?.id;h(r),R(o),aa(!1)})},[]);let K=V[U]??V[0],Cn=K.key,oa=A[Cn],qn=i.length>0,Tn=qn,vn=y.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...kn?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider",description:"Switch the active provider profile",disabled:!Tn},{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!qn},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Tn},...Bn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Tn,qn,Bn,kn]),Sn=y.useCallback(()=>{if(cn()){O.current+=1,hn(!1),tn(void 0);return}let r=++O.current;(async()=>{let o=await Wn();if(r!==O.current)return;hn(Boolean(o?.apiKey||o?.accessToken||o?.refreshToken||o?.idToken)),tn(o?.profileId)})()},[]);y.useEffect(()=>{return Sn(),()=>{O.current+=1}},[Sn]),y.useEffect(()=>{if(w!=="select-ollama-model")return;let r=!1;return sn({state:"loading"}),(async()=>{let o=await Wt({baseUrl:A.baseUrl});if(o.state!=="ready"){if(!r)sn({state:"unavailable",message:we(o,A.baseUrl)});return}let u=Yn(o.models,"balanced"),s=wt(o.models,"balanced");if(!r)sn({state:"ready",defaultValue:s?.name??u[0]?.name,options:u.map((m)=>({label:m.name,value:m.name,description:m.summary}))})})(),()=>{r=!0}},[A.baseUrl,w]),y.useEffect(()=>{if(w!=="select-atomic-chat-model")return;let r=!1;return mn({state:"loading"}),(async()=>{let o=await Ut({baseUrl:A.baseUrl});if(o.state!=="ready"){if(!r)mn({state:"unavailable",message:ge(o,A.baseUrl)});return}if(!r)mn({state:"ready",defaultValue:o.models[0],options:o.models.map((u)=>({label:u,value:u}))})})(),()=>{r=!0}},[A.baseUrl,w]);function S(){if(Mn.current)return;Mn.current=!0,queueMicrotask(()=>{let r=Z();h(r),R(B()?.id),Sn(),Mn.current=!1})}function an(){return null}function nt(r){if(r.activationWarning)return`${r.prefix}. Saved for next startup. Warning: ${r.warnings.join("; ")}.`;if(r.warnings.length>0)return`${r.prefix}. Claudio switched to it for this session with warnings: ${r.warnings.join("; ")}.`;return`${r.prefix}. Claudio switched to it for this session.`}async function tt(r){if(r?.accessToken&&r.accountId)return null;let o=await Wn();if(!o)return"stored Codex OAuth credentials could not be loaded";if(!o.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function at(){Zt()}async function ca(r){let o="provider";yn(!0),$("Activating provider...");try{await new Promise((X)=>queueMicrotask(X));let u=rn(r);if(!u){f("Could not change active provider."),yn(!1),M();return}let s=In(u.model);e((X)=>({...X,mainLoopModel:s,mainLoopModelForSession:null})),o=u.name;let m=an(),C=fe(u,dn),_=C?await tt():null;S();let T=C?nt({prefix:`Active provider: ${u.name}`,activationWarning:_,warnings:[_,m?`could not clear startup provider override (${m})`:null].filter((X)=>Boolean(X))}):m?`Active provider: ${u.name}. Warning: could not clear startup provider override (${m}).`:`Active provider: ${u.name}`;$(T),yn(!1),a({action:"activated",activeProfileId:u.id,activeProviderName:u.name,activeProviderModel:s,message:`Provider switched to ${u.name} (${s})`}),M()}catch(u){S(),$(void 0),yn(!1);let s=u instanceof Error?u.message:String(u);f(`Could not finish activating ${o}: ${s}`),M()}}function M(){na("done"),l("menu")}function bn(r){a({action:"cancelled",message:r})}function ia(r){let o=zn(r),u={name:o.name,baseUrl:o.baseUrl,model:o.model,apiKey:o.apiKey??""};if(k(null),p(o.provider??"openai"),L(u),ln({}),Rn(""),Vn(r),Y(0),nn(0),Q(u.name.length),f(void 0),r==="ollama"){sn({state:"loading"}),l("select-ollama-model");return}if(r==="atomic-chat"){mn({state:"loading"}),l("select-atomic-chat-model");return}if(r==="anthropic"){l("anthropic-auth-choice");return}if(r==="bedrock"||r==="vertex"||r==="foundry"){l("cloud-extras");return}l("form")}function ua(r){let o=i.find((s)=>s.id===r);if(!o)return;let u=he(o);k(r),p(o.provider??"openai"),L(u),ln({awsRegion:o.extras?.awsRegion,gcpProject:o.extras?.gcpProject,gcpRegion:o.extras?.gcpRegion,azureResource:o.extras?.azureResource}),Rn(me(o.extras?.customHeaders)),Vn(null),Y(0),nn(0),Q(u.name.length),f(void 0),l("form")}function gn(r=A){let o=ye(P,En),u={provider:v,name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey,extras:o},s=g?en(g,u):E(u,{makeActive:!0});if(!s){f("Could not save provider. Fill all required fields.");return}let m=B()?.id===s.id;if(m)e((T)=>({...T,mainLoopModel:In(s.model),mainLoopModelForSession:null}));let C=m?an():null;S();let _=g?`Updated provider: ${s.name}`:`Added provider: ${s.name} (now active)`;if($(C?`${_}. Warning: could not clear startup provider override (${C}).`:_),n==="first-run"){a({action:"saved",activeProfileId:s.id,message:`Provider configured: ${s.name}`});return}k(null),Y(0),f(void 0),M()}function la(){if(G.state==="loading"||G.state==="idle")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Checking Atomic Chat"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(G.state==="unavailable")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Atomic Chat setup"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:G.message},void 0,!1,void 0,this),t.jsxDEV(q,{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:(r)=>{if(r==="manual"){Y(0),Q(A.name.length),l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:2},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."},void 0,!1,void 0,this),t.jsxDEV(q,{options:G.options,defaultValue:G.defaultValue,defaultFocusValue:G.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,G.options.length),onChange:(r)=>{let o={...A,model:r};L(o),gn(o)},onCancel:()=>l("select-preset")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ha(){if(F.state==="loading"||F.state==="idle")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Checking Ollama"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Looking for installed Ollama models..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(F.state==="unavailable")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Ollama setup"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:F.message},void 0,!1,void 0,this),t.jsxDEV(q,{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:(r)=>{if(r==="manual"){Y(0),Q(A.name.length),l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:2},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Choose an Ollama model"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."},void 0,!1,void 0,this),t.jsxDEV(q,{options:F.options,defaultValue:F.defaultValue,defaultFocusValue:F.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,F.options.length),onChange:(r)=>{let o={...A,model:r};L(o),gn(o)},onCancel:()=>l("select-preset")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function da(r){let o=r.trim();if(!K.optional&&o.length===0){f(`${K.label} is required.`);return}let u={...A,[Cn]:o};if(L(u),f(void 0),U<V.length-1){let s=U+1,m=V[s]?.key??"name";Y(s),Q(u[m].length);return}if((_n==="anthropic"||_n==="custom")&&w==="form"){L(u),l("custom-headers");return}gn(u)}function sa(){if(f(void 0),U>0){let r=U-1,o=V[r]?.key??"name";Y(r),Q(A[o].length);return}if(n==="first-run"){l("select-preset");return}M()}D("confirm:no",sa,{context:"Settings",isActive:w==="form"});function ma(){if(f(void 0),I>0){nn(I-1);return}l("select-preset")}D("confirm:no",ma,{context:"Settings",isActive:w==="cloud-extras"}),D("confirm:no",()=>l("form"),{context:"Settings",isActive:w==="custom-headers"}),D("confirm:no",()=>l("select-preset"),{context:"Settings",isActive:w==="anthropic-auth-choice"||w==="anthropic-oauth"});function ya(){let r=!cn(),o=[...kn?[{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)"},...r?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex 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 - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM 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:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...n==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:n==="first-run"?"Set up provider":"Choose provider preset"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."},void 0,!1,void 0,this),t.jsxDEV(q,{options:o,onChange:(u)=>{if(u==="skip"){bn("Provider setup skipped");return}if(u==="codex-oauth"){l("codex-oauth");return}if(u==="github-onboard"){l("github-onboard");return}if(u==="import-legacy"){(async()=>{let s=await xn({force:!0});Nn(un()),S();let m=pn(s);if(s.errors.length>0){f(m);return}let C=B();if(n==="first-run"&&C){a({action:"saved",activeProfileId:C.id,activeProviderName:C.name,activeProviderModel:C.model,message:m});return}if($(m),f(void 0),n==="manage")M()})();return}ia(u)},onCancel:()=>{if(n==="first-run"){bn("Provider setup skipped");return}M()},visibleOptionCount:Math.min(13,o.length)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ca(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Anthropic — choose authentication"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudio/.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:(r)=>{if(r==="oauth"){l("anthropic-oauth");return}if(r==="apiKey"){l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ba(){let r=(ae(),xa(te)).ConsoleOAuthFlow;return t.jsxDEV(b,{flexDirection:"column",gap:1,children:t.jsxDEV(r,{mode:"login",onDone:()=>{let o=zn("anthropic"),u={provider:"anthropic",name:o.name,baseUrl:o.baseUrl,model:o.model},s=E(u,{makeActive:!0});if(!s){f("OAuth completed, but the Anthropic profile could not be saved."),l("select-preset");return}let m=`Anthropic OAuth configured: ${s.name}`;if(S(),n==="first-run"){a({action:"saved",activeProfileId:s.id,message:m});return}$(m),f(void 0),M()}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function ga(){let r=_n;if(r!=="bedrock"&&r!=="vertex"&&r!=="foundry")return null;let o=Ce[r],u=o[I]??o[0],s=P[u.key]??"";function m(C){let _=C.trim();if(_.length===0){f(`${u.label} is required.`);return}let T={...P,[u.key]:_};if(ln(T),f(void 0),I<o.length-1){nn(I+1);return}nn(0),l("form")}return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:`${r==="bedrock"?"AWS Bedrock":r==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:u.helpText},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Step ",I+1," of ",o.length,": ",u.label]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:s,onChange:(C)=>ln((_)=>({..._,[u.key]:C})),onSubmit:m,focus:!0,showCursor:!0,placeholder:`${u.placeholder}${j.ellipsis}`,columns:80,cursorOffset:Et,onChangeCursorOffset:Vt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wa(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Custom headers (optional)"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",t.jsxDEV(c,{children:"Header: Value"},void 0,!1,void 0,this),". Leave empty to skip."]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:En,onChange:Rn,onSubmit:()=>gn(A),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:jt,onChangeCursorOffset:Bt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fa(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:g?"Edit provider profile":"Create provider profile"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:K.helpText},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Provider type:"," ",v==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]},void 0,!0,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Step ",U+1," of ",V.length,": ",K.label]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:oa,onChange:(r)=>L((o)=>({...o,[Cn]:r})),onSubmit:da,focus:!0,showCursor:!0,placeholder:`${K.placeholder}${j.ellipsis}`,mask:Cn==="apiKey"?"*":void 0,columns:80,cursorOffset:Dt,onChangeCursorOffset:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Oa(){let r=i.length>0,o=r;return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Provider manager"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."},void 0,!1,void 0,this),jn&&t.jsxDEV(c,{children:jn},void 0,!1,void 0,this),t.jsxDEV(b,{flexDirection:"column",children:i.length===0?t.jsxDEV(c,{dimColor:!0,children:"No provider profiles configured yet."},void 0,!1,void 0,this):i.map((u)=>t.jsxDEV(c,{dimColor:!0,children:["- ",u.name,": ",be(u,u.id===d)]},u.id,!0,void 0,this))},void 0,!1,void 0,this),t.jsxDEV(q,{options:vn,onChange:(u)=>{switch(f(void 0),u){case"add":l("select-preset");break;case"import-legacy":{(async()=>{let s=await xn({force:!0});if(Nn(un()),S(),s.errors.length>0)f(pn(s));else $(pn(s))})();break}case"activate":if(o)l("select-active");break;case"edit":if(r)l("select-edit");break;case"delete":if(o)l("select-delete");break;case"logout-codex-oauth":{let s=Kn();if(!s.success){f(s.warning??"Could not clear Codex OAuth credentials.");break}hn(!1),tn(void 0);let m=Pn(Z(),dn),C=null;if(m){let _=Un(m.id);if(!_.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),S();break}at(),C=_.activeProfileId?an():null}S(),$(C?`Codex OAuth logged out. Warning: could not clear startup provider override (${C}).`:"Codex OAuth logged out.");break}default:bn("Provider manager closed");break}},onCancel:()=>bn("Provider manager closed"),defaultFocusValue:vt,visibleOptionCount:vn.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ln(r,o,u){let s=i.map((m)=>({value:m.id,label:m.id===d?`${m.name} (active)`:m.name,description:`${m.provider==="anthropic"?"anthropic":"openai-compatible"} · ${m.baseUrl} · ${m.model}`}));if(s.length===0)return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:r},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:o},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>M(),onCancel:()=>M(),visibleOptionCount:1},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:r},void 0,!1,void 0,this),t.jsxDEV(q,{options:s,onChange:u,onCancel:()=>M(),visibleOptionCount:Math.min(10,Math.max(2,s.length))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}let N;switch(w){case"select-preset":N=ya();break;case"select-ollama-model":N=ha();break;case"select-atomic-chat-model":N=la();break;case"codex-oauth":N=t.jsxDEV(Oe,{onBack:()=>l("select-preset"),onConfigured:async(r,o)=>{let u={provider:"openai",name:ue,baseUrl:Ht,model:le,apiKey:""},s=Pn(Z(),dn),m=s?en(s.id,u):E(u,{makeActive:!0});if(!m){f("Codex OAuth login finished, but the provider profile could not be saved."),M();return}let C=s&&d!==m.id?rn(m.id):m;if(!C){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),M();return}o({profileId:m.id});let _=an(),T=await tt(r);hn(!0),tn(m.id),S();let X=[T,_?`could not clear startup provider override (${_})`:null].filter((Aa)=>Boolean(Aa)),et=nt({prefix:"Codex OAuth configured",activationWarning:T,warnings:X});if(n==="first-run"){a({action:"saved",activeProfileId:C.id,message:et});return}$(et),f(void 0),M()}},void 0,!1,void 0,this);break;case"github-onboard":N=t.jsxDEV(yt,{onDone:(r)=>{if(r)$(r),f(void 0);S(),M()},onBack:()=>l("select-preset"),onChangeAPIKey:S},void 0,!1,void 0,this);break;case"anthropic-auth-choice":N=Ca();break;case"anthropic-oauth":N=ba();break;case"cloud-extras":N=ga();break;case"custom-headers":N=wa();break;case"form":N=fa();break;case"select-active":N=Ln("Set active provider","No providers available. Add one first.",(r)=>{ca(r)});break;case"select-edit":N=Ln("Edit provider","No providers available. Add one first.",(r)=>{ua(r)});break;case"select-delete":N=Ln("Delete provider","No providers available. Add one first.",(r)=>{let o=i.find((C)=>C.id===r),u=o?.provider==="openai"&&o?.extras?.githubToken!==void 0,s=Pn(i,dn)?.id===r,m=Un(r);if(!m.removed)f("Could not delete provider.");else{let C=[];if(s){let T=Kn();if(!T.success)C.push(T.warning??"could not clear Codex OAuth credentials");else tn(void 0);at()}if(u){let T=Jt();if(!T.success)C.push(T.warning??"could not clear GitHub Copilot token")}let _=m.activeProfileId?an():null;if(_)C.push(`could not clear startup provider override (${_})`);S(),$(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}M()});break;case"menu":default:N=Oa();break}return t.jsxDEV(Pt,{color:"permission",children:[t.jsxDEV(xt,{enabled:Dn,onDismiss:(r)=>{Nn(un()),ra(!1),S();let o=B();if(r==="migrated"&&n==="first-run"&&o)a({action:"saved",activeProfileId:o.id,activeProviderName:o.name,activeProviderModel:o.model})}},void 0,!1,void 0,this),Dn?null:ta?t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Loading providers..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Reading provider profiles from disk."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ea?t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Activating provider..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Please wait while the provider is being configured."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N]},void 0,!0,void 0,this)}var y,t,V,ue="Codex OAuth",le="codexplan",Ce;var Ae=x(()=>{Ea();Ct();ja();st();Ba();ee();Ft();Lt();Va();Da();rt();dt();oe();ft();Ot();ne();va();ie();re();Qt();ce();y=J(Fn(),1),t=J(wn(),1),V=[{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:"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.'},{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}];Ce={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{Qn as Cb,Ot as Db,se as Eb,ir as Fb,Ae as Gb};
@@ -0,0 +1,2 @@
1
+ import{Fj as fq,Jj as Sq}from"./cli-0.1.11-s8ygndzf.mjs";import{BP as Q,CP as Eq}from"./cli-0.1.11-r990p54m.mjs";import{jS as Kq,kS as Wq,nS as kq}from"./cli-0.1.11-wc9bay3d.mjs";import{QU as L,SU as O,eT as jq,vV as nq}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as bq}from"./cli-0.1.11-kk0qqs5v.mjs";import{J2 as Vq,p2 as Pq,q2 as gq}from"./cli-0.1.11-qbcfg80y.mjs";import{A_ as pq,Cba as Iq,P8 as Mq,R8 as Dq,Vba as Bq,y_ as Uq}from"./cli-0.1.11-v7bwjqf0.mjs";import{nfa as yq}from"./cli-0.1.11-fag2wtke.mjs";import{Nna as Fq,Rna as Rq}from"./cli-0.1.11-yrfxpjhr.mjs";function uq(){return Iq().editorMode==="vim"}function vq(){if(Uq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Kq())return"shift + ⏎ for newline";return Wq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function xq(Y,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return Y.length>0&&!/^\s/.test(Y)&&!Y.startsWith("\x1B")}var Xq=Rq(()=>{kq();Bq();pq()});function T(Y){return Y.replace(/\+/g," + ")}function tq(Y){let q=_q.c(99),{dimColor:H,fixedWidth:Gq,gap:u,paddingX:x}=Y,s=Q("app:toggleTranscript","Global","ctrl+o"),B;if(q[0]!==s)B=T(s),q[0]=s,q[1]=B;else B=q[1];let m=B,l=Q("app:toggleTodos","Global","ctrl+t"),k;if(q[2]!==l)k=T(l),q[2]=l,q[3]=k;else k=q[3];let e=k,d=Q("chat:undo","Chat","ctrl+_"),y;if(q[4]!==d)y=T(d),q[4]=d,q[5]=y;else y=q[5];let i=y,r=Q("chat:stash","Chat","ctrl+s"),D;if(q[6]!==r)D=T(r),q[6]=r,q[7]=D;else D=q[7];let $=D,o=Q("chat:cycleMode","Chat","shift+tab"),V;if(q[8]!==o)V=T(o),q[8]=o,q[9]=V;else V=q[9];let t=V,qq=Q("chat:modelPicker","Chat","alt+p"),j;if(q[10]!==qq)j=T(qq),q[10]=qq,q[11]=j;else j=q[11];let Hq=j,Jq=Q("chat:fastMode","Chat","alt+o"),n;if(q[12]!==Jq)n=T(Jq),q[12]=Jq,q[13]=n;else n=q[13];let Lq=n,Oq=Q("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Oq)S=T(Oq),q[14]=Oq,q[15]=S;else S=q[15];let Qq=S,Tq=Q("app:toggleTerminal","Global","meta+j"),E;if(q[16]!==Tq)E=T(Tq),q[16]=Tq,q[17]=E;else E=q[17];let Nq=E,Yq=Q("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Yq)h=T(Yq),q[18]=Yq,q[19]=h;else h=q[19];let Zq=h,a;if(q[20]!==H||q[21]!==Nq)a=null,q[20]=H,q[21]=Nq,q[22]=a;else a=q[22];let wq=a,zq=Gq?24:void 0,Z;if(q[23]!==H)Z=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"! for bash mode"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[23]=H,q[24]=Z;else Z=q[24];let w;if(q[25]!==H)w=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"/ for commands"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[25]=H,q[26]=w;else w=q[26];let z;if(q[27]!==H)z=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"@ for file paths"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[27]=H,q[28]=z;else z=q[28];let A;if(q[29]!==H)A=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"& for background"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[29]=H,q[30]=A;else A=q[30];let F;if(q[31]!==H)F=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"/btw for side question"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[31]=H,q[32]=F;else F=q[32];let G;if(q[33]!==zq||q[34]!==Z||q[35]!==w||q[36]!==z||q[37]!==A||q[38]!==F)G=J.jsxDEV(L,{flexDirection:"column",width:zq,children:[Z,w,z,A,F]},void 0,!0,void 0,this),q[33]=zq,q[34]=Z,q[35]=w,q[36]=z,q[37]=A,q[38]=F,q[39]=G;else G=q[39];let Aq=Gq?35:void 0,N;if(q[40]!==H)N=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"double tap esc to clear input"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[40]=H,q[41]=N;else N=q[41];let R;if(q[42]!==t||q[43]!==H)R=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[t," ","to auto-accept edits"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[42]=t,q[43]=H,q[44]=R;else R=q[44];let U;if(q[45]!==H||q[46]!==m)U=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[m," for verbose output"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[45]=H,q[46]=m,q[47]=U;else U=q[47];let I;if(q[48]!==H||q[49]!==e)I=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[e," to toggle tasks"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[48]=H,q[49]=e,q[50]=I;else I=q[50];let C;if(q[51]===Symbol.for("react.memo_cache_sentinel"))C=vq(),q[51]=C;else C=q[51];let K;if(q[52]!==H)K=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:C},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[52]=H,q[53]=K;else K=q[53];let W;if(q[54]!==Aq||q[55]!==N||q[56]!==R||q[57]!==U||q[58]!==I||q[59]!==K||q[60]!==wq)W=J.jsxDEV(L,{flexDirection:"column",width:Aq,children:[N,R,U,I,wq,K]},void 0,!0,void 0,this),q[54]=Aq,q[55]=N,q[56]=R,q[57]=U,q[58]=I,q[59]=K,q[60]=wq,q[61]=W;else W=q[61];let v;if(q[62]!==H||q[63]!==i)v=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[i," to undo"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[62]=H,q[63]=i,q[64]=v;else v=q[64];let X;if(q[65]!==H)X=Mq()!=="windows"&&J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"ctrl + z to suspend"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[65]=H,q[66]=X;else X=q[66];let b;if(q[67]!==H||q[68]!==Zq)b=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[Zq," to paste images"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[67]=H,q[68]=Zq,q[69]=b;else b=q[69];let M;if(q[70]!==H||q[71]!==Hq)M=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[Hq," to switch model"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[70]=H,q[71]=Hq,q[72]=M;else M=q[72];let P;if(q[73]!==H||q[74]!==Lq)P=Pq()&&gq()&&J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[Lq," to toggle fast mode"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[73]=H,q[74]=Lq,q[75]=P;else P=q[75];let g;if(q[76]!==H||q[77]!==$)g=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[$," to stash prompt"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[76]=H,q[77]=$,q[78]=g;else g=q[78];let f;if(q[79]!==H||q[80]!==Qq)f=J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:[Qq," to edit in $EDITOR"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[79]=H,q[80]=Qq,q[81]=f;else f=q[81];let _;if(q[82]!==H)_=fq()&&J.jsxDEV(L,{children:J.jsxDEV(O,{dimColor:H,children:"/keybindings to customize"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[82]=H,q[83]=_;else _=q[83];let p;if(q[84]!==v||q[85]!==X||q[86]!==b||q[87]!==M||q[88]!==P||q[89]!==g||q[90]!==f||q[91]!==_)p=J.jsxDEV(L,{flexDirection:"column",children:[v,X,b,M,P,g,f,_]},void 0,!0,void 0,this),q[84]=v,q[85]=X,q[86]=b,q[87]=M,q[88]=P,q[89]=g,q[90]=f,q[91]=_,q[92]=p;else p=q[92];let c;if(q[93]!==u||q[94]!==x||q[95]!==G||q[96]!==W||q[97]!==p)c=J.jsxDEV(L,{paddingX:x,flexDirection:"row",gap:u,children:[G,W,p]},void 0,!0,void 0,this),q[93]=u,q[94]=x,q[95]=G,q[96]=W,q[97]=p,q[98]=c;else c=q[98];return c}var _q,J;var hq=Rq(()=>{nq();Dq();Sq();Eq();yq();Vq();Xq();_q=Fq(jq(),1),J=Fq(bq(),1)});
2
+ export{uq as Ye,xq as Ze,Xq as _e,tq as $e,hq as af};
@@ -0,0 +1,2 @@
1
+ import{Rna as B}from"./cli-0.1.11-yrfxpjhr.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as Ih,C as Jh};
@@ -0,0 +1,2 @@
1
+ import{Rna as M}from"./cli-0.1.11-yrfxpjhr.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
+ export{W as Gea,Q as Hea,K as Iea,X as Jea,Y as Kea,Z as Lea,y as Mea,G as Nea,h as Oea,w as Pea};
@@ -0,0 +1,3 @@
1
+ import{Ana as C,Gna as f,yna as y,zna as x}from"./cli-0.1.11-e7gjxknm.mjs";import{Pna as k}from"./cli-0.1.11-yrfxpjhr.mjs";var IF=k((i)=>{var K=y(),w=C(),b=x(),h=f(),v=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),P=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function l(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=P(V,W),Y=l(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
+ `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},m=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},u=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),c=(F)=>(J)=>{throw J},a=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||c)(W));return(Y.successHandler||a)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},d=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),g=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},p=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function s(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await p(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=r(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var r=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function o(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let[J,G]of Object.entries(F))if(G!==void 0)this.authSchemes.set(J,G)}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,n=q(T),S=(F)=>F.expiration!==void 0,t=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};i.requestBuilder=h.requestBuilder;i.DefaultIdentityProviderConfig=E;i.EXPIRATION_MS=T;i.HttpApiKeyAuthSigner=_;i.HttpBearerAuthSigner=z;i.NoAuthSigner=A;i.createIsIdentityExpiredFunction=q;i.createPaginator=s;i.doesIdentityRequireRefresh=S;i.getHttpAuthSchemeEndpointRuleSetPlugin=m;i.getHttpAuthSchemePlugin=u;i.getHttpSigningPlugin=d;i.getSmithyContext=v;i.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;i.httpAuthSchemeMiddleware=j;i.httpAuthSchemeMiddlewareOptions=M;i.httpSigningMiddleware=O;i.httpSigningMiddlewareOptions=I;i.isIdentityExpired=n;i.memoizeIdentityProvider=t;i.normalizeProvider=g;i.setFeature=o});
3
+ export{IF as e6};
@@ -0,0 +1,2 @@
1
+ import{vp as I,yp as W}from"./cli-0.1.11-s8ygndzf.mjs";import{iha as H,sha as V}from"./cli-0.1.11-d3exw047.mjs";V();W();var J=null,z=null,N=null;function Z(f){J=f}function $(f){z=f}function q(f){N=f}var G=!1,O="idle";function F(){return O}function K(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function Q(f){z?.(f)}function R(f){N?.(f)}
2
+ export{Z as Za,$ as _a,q as $a,F as ab,K as bb,Q as cb,R as db};
@@ -0,0 +1,58 @@
1
+ import{Bi as h,Du as k,Eu as I,Ph as $,Sh as m,gI as u,rH as F,sF as A,tF as p,tH as L,zi as U}from"./cli-0.1.11-s8ygndzf.mjs";import{e1 as O,f1 as f}from"./cli-0.1.11-qbcfg80y.mjs";import{Hga as b,Jga as T,Tga as S,Xga as E}from"./cli-0.1.11-vq5fvf9m.mjs";import{fha as y,sha as C}from"./cli-0.1.11-d3exw047.mjs";import{Rna as N}from"./cli-0.1.11-yrfxpjhr.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function l(w){let z=w.match(r);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(d);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function i(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function s(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=l(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:i(),promptMessages:[L({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var r,d,G,Yw;var a=N(()=>{I();m();p();T();h();u();f();j();r=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,d=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(F(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await s(K,w)})});
58
+ export{Xw as yg,Zw as zg,a as Ag};
@@ -0,0 +1,2 @@
1
+ import{Vma as H,gja as z,kja as B}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as x}from"./cli-0.1.11-yrfxpjhr.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{Q as _da,J as $da,R as aea,K as bea,U as cea,V as dea,W as eea,X as fea,Y as gea,Z as hea,$ as iea,j as jea,q as kea,A as lea,G as mea,L as nea,_ as oea,b as pea,k as qea,p as rea,v as sea,C as tea,O as uea,y as vea,S as wea,f as xea,m as yea,u as zea,h as Aea,l as Bea,w as Cea,g as Dea,d as Eea,M as Fea};
@@ -0,0 +1,2 @@
1
+ import{eT as V,fV as W,tV as X,vV as k}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as M}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as f}from"./cli-0.1.11-x37jysc0.mjs";import{tfa as U,ufa as P}from"./cli-0.1.11-nx8a99hz.mjs";import{Nna as K,Rna as O}from"./cli-0.1.11-yrfxpjhr.mjs";import{PassThrough as C}from"stream";function D(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let L=setTimeout(z,0);return()=>clearTimeout(L)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J.jsxDEV(J.Fragment,{children:w},void 0,!1,void 0,this),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(Q);if(b===-1)return q;let w=b+Q.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J.jsxDEV(D,{children:q},void 0,!1,void 0,this),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function I(q,b){let w=await g(q,b);return U(w)}var Z,y,J,Q="\x1B[?2026h",F="\x1B[?2026l";var j=O(()=>{P();k();Z=K(V(),1),y=K(f(),1),J=K(M(),1)});
2
+ export{g as Vf,I as Wf,j as Xf};
@@ -0,0 +1,2 @@
1
+ import{iha as q,sha as U}from"./cli-0.1.11-d3exw047.mjs";import{Qna as L,Rna as X}from"./cli-0.1.11-yrfxpjhr.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
2
+ export{G as _Q,Y as $Q,Z as aR,$ as bR,Q as cR,_ as dR,v as eR,E as fR,A as gR,h as hR,u as iR,f as jR,w as kR,S as lR,P as mR,I as nR,l as oR,y as pR,g as qR};
@@ -0,0 +1,2 @@
1
+ import{Pc as j,Qc as E}from"./cli-0.1.11-cw0ss3jw.mjs";import{DG as _,GG as $,KG as f,ik as W,lk as v,mG as X,oG as Y,xG as Z,zG as w}from"./cli-0.1.11-s8ygndzf.mjs";import{C$ as A,F7 as Q,K7 as T,Kba as V,Vba as N,p$ as S}from"./cli-0.1.11-v7bwjqf0.mjs";import{Dga as L,Jga as K,bha as B,eha as R}from"./cli-0.1.11-vq5fvf9m.mjs";import{Rna as y}from"./cli-0.1.11-yrfxpjhr.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:S(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(V()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){Q(q)}})()}var J=null,G=null;var U=y(()=>{E();N();R();K();T();f();w();v();A()});
2
+ export{d as lc,P as mc,t as nc,U as oc};
@@ -0,0 +1,2 @@
1
+ import{$p as P,Il as Q,Jl as I,Yp as W,gI as U,sH as Y}from"./cli-0.1.11-s8ygndzf.mjs";import{Fea as f,iea as B,jea as H}from"./cli-0.1.11-7xr2ermy.mjs";import{tfa as J,ufa as F}from"./cli-0.1.11-nx8a99hz.mjs";import{Vma as $,aja as v}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as Z}from"./cli-0.1.11-yrfxpjhr.mjs";import{randomUUID as V}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??V(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:w(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function X(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function w(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:G(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:X(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[z(h.content,h.uuid)];return[];default:return[]}})}function z(j,h){let x=J(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function G(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var R=Z(()=>{$();f();I();F();U();P()});
2
+ export{S as Fd,X as Gd,w as Hd,r as Id,z as Jd,T as Kd,R as Ld};
@@ -0,0 +1,2 @@
1
+ import{nc as t,oc as pJ}from"./cli-0.1.11-8qrhqvh5.mjs";import{Ag as DJ,zg as r}from"./cli-0.1.11-7vz357wm.mjs";import{$D as yJ,$t as _J,Aw as c,Bw as MJ,Dx as a,Jx as AJ,PO as n,Rn as h,SO as OJ,YD as PJ,ZD as jJ,_D as o,_t as u,gI as I,gN as RJ,rJ as P,ri as zJ,ro as VJ,to as x,vE as l,vw as T,wE as HJ,zL as i,zw as g}from"./cli-0.1.11-s8ygndzf.mjs";import{x3 as YJ}from"./cli-0.1.11-qbcfg80y.mjs";import{$aa as NJ,F7 as B,Haa as m,K7 as H,Paa as f,Qaa as UJ,u7 as O,v7 as wJ,v9 as QJ}from"./cli-0.1.11-v7bwjqf0.mjs";import{bea as ZJ}from"./cli-0.1.11-7xr2ermy.mjs";import{nfa as KJ}from"./cli-0.1.11-fag2wtke.mjs";import{dga as R,ega as y}from"./cli-0.1.11-xwj7cmkj.mjs";import{Jga as C,Pga as qJ,Tga as V,Xga as BJ,bha as d,eha as LJ}from"./cli-0.1.11-vq5fvf9m.mjs";import{fha as U,sha as WJ}from"./cli-0.1.11-d3exw047.mjs";import{Qka as b,Vma as j,fka as F}from"./cli-0.1.11-rrnr3ab1.mjs";import{Ona as IJ}from"./cli-0.1.11-yrfxpjhr.mjs";yJ();DJ();j();KJ();y();P();zJ();x();QJ();ZJ();C();H();I();YJ();qJ();h();P();x();H();C();I();h();VJ();function D(){}j();y();wJ();LJ();WJ();BJ();_J();NJ();H();g();HJ();RJ();MJ();UJ();AJ();OJ();import{join as Q}from"path";var TJ=30;function L(){let q=((m()||{}).cleanupPeriodDays??TJ)*24*60*60*1000;return new Date(Date.now()-q)}function vJ(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,q){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await V().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function bJ(){let X=V(),J=L(),q=O.errors(),$=O.baseLogs(),G=await p(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Z)=>Z.isDirectory()&&Z.name.startsWith("mcp-logs-")).map((Z)=>Q($,Z.name));for(let Z of Y)G=vJ(G,await p(Z,J,!0)),await z(Z,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function SJ(){let X=L(),J={messages:0,errors:0},q=i(),$=V(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Q(q,K.name),Z;try{Z=await $.readdir(Y)}catch{J.errors++;continue}for(let W of Z)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,a),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function kJ(X,J,q=!0){let $=L(),G={messages:0,errors:0},K=V(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Z of Y){if(!Z.isFile()||!Z.name.endsWith(J))continue;try{if(await w(Q(X,Z.name),$,K))G.messages++}catch{G.errors++}}if(q)await z(X,K);return G}function EJ(){let X=Q(U(),"plans");return kJ(X,".md")}async function CJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));await Promise.all(Y.map(async(Z)=>{try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,q)}catch($){B($)}return J}async function hJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));for(let Z of Y)try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,q)}catch($){B($)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},q=V(),$=Q(U(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function s(){let{errors:X}=c();if(X.length>0&&f("cleanupPeriodDays")){d("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await bJ(),await SJ(),await EJ(),await CJ(),await hJ(),await xJ(),await u(),await l(L());let J=await n(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}g();pJ();var dJ=(jJ(),IJ(PJ));var v=600000;function iX(){r(),D(),dJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await s();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
2
+ export{iX as S};
@@ -0,0 +1,2 @@
1
+ import{Rna as V}from"./cli-0.1.11-yrfxpjhr.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
+ export{b as Wma,T as Xma,K as Yma,z as Zma,B as _ma,x as $ma,k as ana,m as bna,G as cna,O as dna,y as ena,l as fna,o as gna,i as hna,D as ina,R as jna,U0 as kna,E0 as lna,I0 as mna,D0 as nna,x0 as ona,O0 as pna,M as qna,p0 as rna,j6 as sna,nq as tna};
@@ -0,0 +1,7 @@
1
+ import{cP as a,dP as E,fP as r,gP as o,hP as s,mP as GQ}from"./cli-0.1.11-1bryv90w.mjs";import{AX as t,yX as N}from"./cli-0.1.11-50naxqgt.mjs";import{c4 as U,d4 as I}from"./cli-0.1.11-qbcfg80y.mjs";import{C5 as KQ,v5 as n}from"./cli-0.1.11-b0jasw23.mjs";import{G6 as jQ,p6 as e}from"./cli-0.1.11-d10nfa6g.mjs";import{o7 as Y,q7 as h}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as u,ega as ZQ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as H,Ega as i,Jga as F,Lga as k,Mga as R,Pga as y,bha as K,eha as b}from"./cli-0.1.11-vq5fvf9m.mjs";ZQ();b();h();F();y();function D(Q){if(Q<60000)return`${Math.round(Q/1000)}s`;let W=Math.floor(Q/60000),Z=Math.round(Q%60000/1000);return Z>0?`${W}m ${Z}s`:`${W}m`}function $Q(Q){let Z=(Q.startsWith("sk-ant-si-")?Q.slice(10):Q).split(".");if(Z.length!==3||!Z[1])return null;try{return R(Buffer.from(Z[1],"base64url").toString("utf8"))}catch{return null}}function f(Q){let W=$Q(Q);if(W!==null&&typeof W==="object"&&"exp"in W&&typeof W.exp==="number")return W.exp;return null}var zQ=300000,p=1800000,m=3,JQ=60000;function FQ({getAccessToken:Q,onRefresh:W,label:Z,refreshBufferMs:z=zQ}){let $=new Map,J=new Map,G=new Map;function X(V){let w=(G.get(V)??0)+1;return G.set(V,w),w}function q(V,w){let j=f(w);if(!j){K(`[${Z}:token] Could not decode JWT expiry for sessionId=${V}, token prefix=${w.slice(0,15)}…, keeping existing timer`);return}let C=$.get(V);if(C)clearTimeout(C);let B=X(V),P=new Date(j*1000).toISOString(),v=j*1000-Date.now()-z;if(v<=0){K(`[${Z}:token] Token for sessionId=${V} expires=${P} (past or within buffer), refreshing immediately`),O(V,B);return}K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(v)} (expires=${P}, buffer=${z/1000}s)`);let WQ=setTimeout(O,v,V,B);$.set(V,WQ)}function L(V,w){let j=$.get(V);if(j)clearTimeout(j);let C=X(V),B=Math.max(w*1000-z,30000);K(`[${Z}:token] Scheduled token refresh for sessionId=${V} in ${D(B)} (expires_in=${w}s, buffer=${z/1000}s)`);let P=setTimeout(O,B,V,C);$.set(V,P)}async function O(V,w){let j;try{j=await Q()}catch(B){K(`[${Z}:token] getAccessToken threw for sessionId=${V}: ${H(B)}`,{level:"error"})}if(G.get(V)!==w){K(`[${Z}:token] doRefresh for sessionId=${V} stale (gen ${w} vs ${G.get(V)}), skipping`);return}if(!j){let B=(J.get(V)??0)+1;if(J.set(V,B),K(`[${Z}:token] No OAuth token available for refresh, sessionId=${V} (failure ${B}/${m})`,{level:"error"}),Y("error","bridge_token_refresh_no_oauth"),B<m){let P=setTimeout(O,JQ,V,w);$.set(V,P)}return}J.delete(V),K(`[${Z}:token] Refreshing token for sessionId=${V}: new token prefix=${j.slice(0,15)}…`),u("tengu_bridge_token_refreshed",{}),W(V,j);let C=setTimeout(O,p,V,w);$.set(V,C),K(`[${Z}:token] Scheduled follow-up refresh for sessionId=${V} in ${D(p)}`)}function _(V){X(V);let w=$.get(V);if(w)clearTimeout(w),$.delete(V);J.delete(V)}function QQ(){for(let V of G.keys())X(V);for(let V of $.values())clearTimeout(V);$.clear(),J.clear()}return{schedule:q,scheduleFromExpiresIn:L,cancel:_,cancelAll:QQ}}import{randomUUID as g}from"crypto";b();h();F();KQ();GQ();r();I();t();y();class T extends Error{retryAfterMs;constructor(Q,W){super(Q);this.retryAfterMs=W}}class x{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(Q){this.config=Q}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(Q){if(this.closed)return;let W=Array.isArray(Q)?Q:[Q];if(W.length===0)return;while(this.pending.length+W.length>this.config.maxQueueSize&&!this.closed)await new Promise((Z)=>{this.backpressureResolvers.push(Z)});if(this.closed)return;this.pending.push(...W),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((Q)=>{this.flushResolvers.push(Q)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let Q of this.backpressureResolvers)Q();this.backpressureResolvers=[];for(let Q of this.flushResolvers)Q();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let Q=0;try{while(this.pending.length>0&&!this.closed){let W=this.takeBatch();if(W.length===0)continue;try{await this.config.send(W),Q=0}catch(Z){if(Q++,this.config.maxConsecutiveFailures!==void 0&&Q>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(W.length,Q),Q=0,this.releaseBackpressure();continue}this.pending=W.concat(this.pending);let z=Z instanceof T?Z.retryAfterMs:void 0;await this.sleep(this.retryDelay(Q,z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let W of this.flushResolvers)W();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:Q,maxBatchBytes:W}=this.config;if(W===void 0)return this.pending.splice(0,Q);let Z=0,z=0;while(z<this.pending.length&&z<Q){let $;try{$=Buffer.byteLength(k(this.pending[z]))}catch{this.pending.splice(z,1);continue}if(z>0&&Z+$>W)break;Z+=$,z++}return this.pending.splice(0,z)}retryDelay(Q,W){let Z=Math.random()*this.config.jitterMs;if(W!==void 0)return Math.max(this.config.baseDelayMs,Math.min(W,this.config.maxDelayMs))+Z;return Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs)+Z}releaseBackpressure(){let Q=this.backpressureResolvers;this.backpressureResolvers=[];for(let W of Q)W()}sleep(Q){return new Promise((W)=>{this.sleepResolve=W,setTimeout((Z,z)=>{Z.sleepResolve=null,z()},Q,this,W)})}}I();class c{inflight=null;pending=null;closed=!1;config;constructor(Q){this.config=Q}enqueue(Q){if(this.closed)return;this.pending=this.pending?d(this.pending,Q):Q,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let Q=this.pending;this.pending=null,this.inflight=this.sendWithRetry(Q).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(Q){let W=Q,Z=0;while(!this.closed){if(await this.config.send(W))return;if(Z++,await U(this.retryDelay(Z)),this.pending&&!this.closed)W=d(W,this.pending),this.pending=null}}retryDelay(Q){let W=Math.min(this.config.baseDelayMs*2**(Q-1),this.config.maxDelayMs),Z=Math.random()*this.config.jitterMs;return W+Z}}function d(Q,W){let Z={...Q};for(let[z,$]of Object.entries(W))if((z==="external_metadata"||z==="internal_metadata")&&Z[z]&&typeof Z[z]==="object"&&typeof $==="object"&&$!==null)Z[z]={...Z[z],...$};else Z[z]=$;return Z}var VQ=20000,YQ=100;function l(){return!0}class M extends Error{reason;constructor(Q){super(`CCRClient init failed: ${Q}`);this.reason=Q}}var XQ=10;function qQ(){return{byMessage:new Map,scopeToMessage:new Map}}function S(Q){return`${Q.session_id}:${Q.parent_tool_use_id??""}`}function wQ(Q,W){let Z=[],z=new Map;for(let $ of Q)switch($.event.type){case"message_start":{let J=$.event.message.id,G=W.scopeToMessage.get(S($));if(G)W.byMessage.delete(G);W.scopeToMessage.set(S($),J),W.byMessage.set(J,[]),Z.push($);break}case"content_block_delta":{if($.event.delta.type!=="text_delta"){Z.push($);break}let J=W.scopeToMessage.get(S($)),G=J?W.byMessage.get(J):void 0;if(!G){Z.push($);break}let X=G[$.event.index]??=[];X.push($.event.delta.text);let q=z.get(X);if(q){q.event.delta.text=X.join("");break}let L={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:$.event.index,delta:{type:"text_delta",text:X.join("")}}};z.set(X,L),Z.push(L);break}default:Z.push($)}return Z}function LQ(Q,W){Q.byMessage.delete(W.message.id);let Z=S(W);if(Q.scopeToMessage.get(Z)===W.message.id)Q.scopeToMessage.delete(Z)}class OQ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=n({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=qQ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(Q,W,Z){if(this.onEpochMismatch=Z?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Z?.heartbeatIntervalMs??VQ,this.heartbeatJitterFraction=Z?.heartbeatJitterFraction??0,this.getAuthHeaders=Z?.getAuthHeaders??E,W.protocol!=="http:"&&W.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${W.protocol}`);let z=W.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${W.protocol}//${W.host}${z}`,this.sessionId=z.split("/").pop()||"",this.workerState=new c({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((J)=>J.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let J=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!J.ok)throw new T("client event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new x({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let J=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!J.ok)throw new T("internal event POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new x({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let J=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((G)=>({event_id:G.eventId,status:G.status}))},"delivery batch");if(!J.ok)throw new T("delivery POST failed",J.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),Q.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(Q){let W=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new M("no_auth_headers");if(Q===void 0){let G=process.env.CLAUDE_CODE_WORKER_EPOCH;Q=G?parseInt(G,10):NaN}if(isNaN(Q))throw new M("missing_epoch");this.workerEpoch=Q;let Z=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 M("worker_register_failed");this.currentState="idle",this.startHeartbeat(),o(()=>{this.writeEvent({type:"keep_alive"})}),K(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-W});let{metadata:$,durationMs:J}=await Z;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:J,had_state:$!==null});return $}async getWorkerState(){let Q=Date.now(),W=this.getAuthHeaders();if(Object.keys(W).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,W,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-Q}}async request(Q,W,Z,z,{timeout:$=1e4}={}){let J=this.getAuthHeaders();if(Object.keys(J).length===0)return{ok:!1};try{let G=await this.http[Q](`${this.sessionBaseUrl}${W}`,Z,{headers:{...J,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:$});if(G.status>=200&&G.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(G.status===409)this.handleEpochMismatch();if(G.status===401||G.status===403){let X=a(),q=X?f(X):null;if(q!==null&&q*1000<Date.now())K(`CCRClient: session_token expired (exp=${new Date(q*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=XQ)K(`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(K(`CCRClient: ${z} returned ${G.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:Q,path:W,status:G.status}),G.status===429){let X=G.headers?.["retry-after"],q=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(q)&&q>=0)return{ok:!1,retryAfterMs:q*1000}}return{ok:!1}}catch(G){return K(`CCRClient: ${z} failed: ${H(G)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:Q,path:W,error_code:i(G)}),{ok:!1}}}reportState(Q,W){if(Q===this.currentState&&!W)return;this.currentState=Q,this.workerState.enqueue({worker_status:Q,requires_action_details:W?{tool_name:W.tool_name,action_description:W.action_description,request_id:W.request_id}:null})}reportMetadata(Q){this.workerState.enqueue({external_metadata:Q})}handleEpochMismatch(){K("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let Q=()=>{let Z=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(W,this.heartbeatIntervalMs+Z)},W=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;Q()};Q()}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)K("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(Q){if(Q.type==="stream_event"){if(this.streamEventBuffer.push(Q),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),YQ);return}if(await this.flushStreamEventBuffer(),Q.type==="assistant")LQ(this.streamTextAccumulator,Q);await this.eventUploader.enqueue(this.toClientEvent(Q))}toClientEvent(Q){let W=Q;return{payload:{...W,uuid:typeof W.uuid==="string"?W.uuid:g()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let Q=this.streamEventBuffer;this.streamEventBuffer=[];let W=wQ(Q,this.streamTextAccumulator);await this.eventUploader.enqueue(W.map((Z)=>({payload:Z,ephemeral:!0})))}async writeInternalEvent(Q,W,{isCompaction:Z=!1,agentId:z}={}){let $={payload:{type:Q,...W,uuid:typeof W.uuid==="string"?W.uuid:g()},...Z&&{is_compaction:!0},...z&&{agent_id:z}};await this.internalEventUploader.enqueue($)}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(Q,W,Z){let z=this.getAuthHeaders();if(Object.keys(z).length===0)return null;let $=[],J;do{let G=new URL(`${this.sessionBaseUrl}${Q}`);for(let[q,L]of Object.entries(W))G.searchParams.set(q,L);if(J)G.searchParams.set("cursor",J);let X=await this.getWithRetry(G.toString(),z,Z);if(!X)return null;$.push(...X.data??[]),J=X.next_cursor}while(J);return K(`CCRClient: Read ${$.length} internal events from ${Q}${W.subagents?" (subagents)":""}`),$}async getWithRetry(Q,W,Z){for(let z=1;z<=10;z++){let $;try{$=await this.http.get(Q,{headers:{...W,"anthropic-version":"2023-06-01","User-Agent":N()},validateStatus:l,timeout:30000})}catch(J){if(K(`CCRClient: GET ${Q} failed (attempt ${z}/10): ${H(J)}`,{level:"warn"}),z<10){let G=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(G)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(K(`CCRClient: GET ${Q} returned ${$.status} (attempt ${z}/10)`,{level:"warn"}),z<10){let J=Math.min(500*2**(z-1),30000)+Math.random()*500;await U(J)}}return K("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Z}),null}reportDelivery(Q,W){this.deliveryUploader.enqueue({eventId:Q,status:W})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),s(),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()}}jQ();b();h();F();r();I();y();t();var BQ=1000,HQ=30000,UQ=600000,CQ=45000,PQ=new Set([401,403,404]),A=10,TQ=500,NQ=8000,kQ={stream:!0};function xQ(){return!0}function AQ(Q){let W=[],Z=0,z;while((z=Q.indexOf(`
2
+
3
+ `,Z))!==-1){let $=Q.slice(Z,z);if(Z=z+2,!$.trim())continue;let J={},G=!1;for(let X of $.split(`
4
+ `)){if(X.startsWith(":")){G=!0;continue}let q=X.indexOf(":");if(q===-1)continue;let L=X.slice(0,q),O=X[q+1]===" "?X.slice(q+2):X.slice(q+1);switch(L){case"event":J.event=O;break;case"id":J.id=O;break;case"data":J.data=J.data?J.data+`
5
+ `+O:O;break}}if(J.data||G)W.push(J)}return{frames:W,remaining:Q.slice(Z)}}class _Q{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(Q,W={},Z,z,$,J){this.url=Q;if(this.headers=W,this.sessionId=Z,this.refreshHeaders=z,this.getAuthHeaders=J??E,this.postUrl=RQ(Q),$!==void 0&&$>0)this.lastSequenceNum=$;K(`SSETransport: SSE URL = ${Q.href}`),K(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){K(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let Q=Date.now(),W=new URL(this.url.href);if(this.lastSequenceNum>0)W.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Z=this.getAuthHeaders(),z={...this.headers,...Z,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":N()};if(Z.Cookie)delete z.Authorization;if(this.lastSequenceNum>0)z["Last-Event-ID"]=String(this.lastSequenceNum);K(`SSETransport: Opening ${W.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(W.href,{headers:z,signal:this.abortController.signal});if(!$.ok){let G=PQ.has($.status);if(K(`SSETransport: HTTP ${$.status}${G?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:$.status}),G){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){K("SSETransport: No response body"),this.handleConnectionError();return}let J=Date.now()-Q;K("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:J}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Connection error: ${H($)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(Q){let W=Q.getReader(),Z=new TextDecoder,z="";try{while(!0){let{done:$,value:J}=await W.read();if($)break;z+=Z.decode(J,kQ);let{frames:G,remaining:X}=AQ(z);z=X;for(let q of G){if(this.resetLivenessTimer(),q.id){let L=parseInt(q.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))K(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let O=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<O)this.seenSequenceNums.delete(_)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(q.event&&q.data)this.handleSSEFrame(q.event,q.data);else if(q.data)K("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;K(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{W.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")K("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(Q,W){if(Q!=="client_event"){K(`SSETransport: Unexpected SSE event type '${Q}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:Q});return}let Z;try{Z=R(W)}catch($){K(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let z=Z.payload;if(z&&typeof z==="object"&&"type"in z){let $=this.sessionId?` session=${this.sessionId}`:"";K(`SSETransport: Event seq=${Z.sequence_num} event_id=${Z.event_id} event_type=${Z.event_type} payload_type=${String(z.type)}${$}`),Y("info","cli_sse_message_received"),this.onData?.(k(z)+`
6
+ `)}else K(`SSETransport: Ignoring client_event with no type in payload: event_id=${Z.event_id}`);this.onEventCallback?.(Z)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;let W=Q-this.reconnectStartTime;if(W<UQ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),K("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Z=Math.min(BQ*Math.pow(2,this.reconnectAttempts-1),HQ),z=Math.max(0,Z+Z*0.25*(2*Math.random()-1));K(`SSETransport: Reconnecting in ${Math.round(z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(W/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},z)}else K(`SSETransport: Reconnection time budget exhausted after ${Math.round(W/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:W}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,K("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,CQ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0){K("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Z={...W,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":N()};K(`SSETransport: POST body keys=${Object.keys(Q).join(",")}`);for(let z=1;z<=A;z++){try{let J=await e.post(this.postUrl,Q,{headers:Z,validateStatus:xQ});if(J.status===200||J.status===201){K(`SSETransport: POST success type=${Q.type}`);return}if(K(`SSETransport: POST ${J.status} body=${k(J.data).slice(0,200)}`),J.status>=400&&J.status<500&&J.status!==429){K(`SSETransport: POST returned ${J.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:J.status});return}K(`SSETransport: POST returned ${J.status}, attempt ${z}/${A}`),Y("warn","cli_sse_post_retryable_error",{status:J.status,attempt:z})}catch(J){K(`SSETransport: POST error: ${J.message}, attempt ${z}/${A}`),Y("warn","cli_sse_post_network_error",{attempt:z})}if(z===A){K(`SSETransport: POST failed after ${A} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(TQ*Math.pow(2,z-1),NQ);await U($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(Q){this.onData=Q}setOnClose(Q){this.onCloseCallback=Q}setOnEvent(Q){this.onEventCallback=Q}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function RQ(Q){let W=Q.pathname;if(W.endsWith("/stream"))W=W.slice(0,-7);return`${Q.protocol}//${Q.host}${W}`}
7
+ export{FQ as n,x as o,M as p,OQ as q,_Q as r};
@@ -0,0 +1,5 @@
1
+ import{BE as S,HE as o,Pt as D,Tt as r,xE as F,yE as y}from"./cli-0.1.11-s8ygndzf.mjs";import{GU as z,HU as O,aU as A,bU as l}from"./cli-0.1.11-bvd2r7an.mjs";import{i8 as x,j8 as d,l8 as b,m8 as g}from"./cli-0.1.11-v7bwjqf0.mjs";import{Oga as k,Pga as p,Tga as L,Xga as c,bha as V,eha as I}from"./cli-0.1.11-vq5fvf9m.mjs";import{sna as T,tna as C}from"./cli-0.1.11-98zcwng9.mjs";import{Rna as w}from"./cli-0.1.11-yrfxpjhr.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
+ `)&&!Q.endsWith(`
3
+
4
+ `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
5
+ export{Qq as bf,v as cf,j as df,i as ef,Nq as ff,t as gf};
@@ -0,0 +1,2 @@
1
+ import{bi as o,ci as n}from"./cli-0.1.11-s8ygndzf.mjs";import{Rna as e}from"./cli-0.1.11-yrfxpjhr.mjs";function i(m){t.setState(()=>[...m])}var t,r=()=>t.getState(),d;var s=e(()=>{n();t=o([]),d=t.subscribe});
2
+ export{r as yc,d as zc,i as Ac,s as Bc};
@@ -0,0 +1,9 @@
1
+ import{G5 as A}from"./cli-0.1.11-sqqzwx4h.mjs";import{G6 as gG,p6 as q}from"./cli-0.1.11-d10nfa6g.mjs";import{K6 as $G}from"./cli-0.1.11-h2hxx8ma.mjs";import{Tga as L,Xga as MG,bha as $,eha as i}from"./cli-0.1.11-vq5fvf9m.mjs";import{hha as c,iha as RG,sha as HG}from"./cli-0.1.11-d3exw047.mjs";import{sna as O,tna as g}from"./cli-0.1.11-98zcwng9.mjs";import{Nna as aG,Pna as P,Rna as a,Sna as H}from"./cli-0.1.11-yrfxpjhr.mjs";var GG=P((w)=>{var jG=w&&w.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),TG=w&&w.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),o=w&&w.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))jG(J,G,Q)}return TG(J,G),J};Object.defineProperty(w,"__esModule",{value:!0});w.req=w.json=w.toBuffer=void 0;var DG=o(H("http")),NG=o(H("https"));async function e(G){let J=0,Q=[];for await(let V of G)J+=V.length,Q.push(V);return Buffer.concat(Q,J)}w.toBuffer=e;async function LG(G){let Q=(await e(G)).toString("utf8");try{return JSON.parse(Q)}catch(V){let Y=V;throw Y.message+=` (input: ${Q})`,Y}}w.json=LG;function SG(G,J={}){let V=((typeof G==="string"?G:G.href).startsWith("https:")?NG:DG).request(G,J),Y=new Promise((Z,K)=>{V.once("response",Z).once("error",K).end()});return V.then=Y.then.bind(Y),V}w.req=SG});var ZG=P((X)=>{var QG=X&&X.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),PG=X&&X.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),VG=X&&X.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))QG(J,G,Q)}return PG(J,G),J},_G=X&&X.__exportStar||function(G,J){for(var Q in G)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(J,Q))QG(J,G,Q)};Object.defineProperty(X,"__esModule",{value:!0});X.Agent=void 0;var vG=VG(H("net")),JG=VG(H("http")),AG=H("https");_G(GG(),X);var M=Symbol("AgentBaseInternalState");class YG extends JG.Agent{constructor(G){super(G);this[M]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new vG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],V=Q.indexOf(J);if(V!==-1){if(Q.splice(V,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return AG.Agent.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let V={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(V),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,V)).then((K)=>{if(this.decrementSockets(Y,Z),K instanceof JG.Agent)try{return K.addRequest(G,V)}catch(W){return Q(W)}this[M].currentSocket=K,super.createSocket(G,J,Q)},(K)=>{this.decrementSockets(Y,Z),Q(K)})}createConnection(){let G=this[M].currentSocket;if(this[M].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[M].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[M])this[M].defaultPort=G}get protocol(){return this[M].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[M])this[M].protocol=G}}X.Agent=YG});var KG=P((U)=>{var bG=U&&U.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(U,"__esModule",{value:!0});U.parseProxyResponse=void 0;var hG=bG($G()),_=(0,hG.default)("https-proxy-agent:parse-proxy-response");function CG(G){return new Promise((J,Q)=>{let V=0,Y=[];function Z(){let E=G.read();if(E)u(E);else G.once("readable",Z)}function K(){G.removeListener("end",W),G.removeListener("error",R),G.removeListener("readable",Z)}function W(){K(),_("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function R(E){K(),_("onerror %o",E),Q(E)}function u(E){Y.push(E),V+=E.length;let z=Buffer.concat(Y,V),r=z.indexOf(`\r
3
+ \r
4
+ `);if(r===-1){_("have not received end of HTTP headers yet..."),Z();return}let s=z.slice(0,r).toString("ascii").split(`\r
5
+ `),x=s.shift();if(!x)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=x.split(" "),OG=+t[1],UG=t.slice(2).join(" "),T={};for(let D of s){if(!D)continue;let k=D.indexOf(":");if(k===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${D}"`));let l=D.slice(0,k).toLowerCase(),d=D.slice(k+1).trimStart(),S=T[l];if(typeof S==="string")T[l]=[S,d];else if(Array.isArray(S))S.push(d);else T[l]=d}_("got proxy server response: %o %o",x,T),K(),J({connect:{statusCode:OG,statusText:UG,headers:T},buffered:z})}G.on("error",R),G.on("end",W),Z()})}U.parseProxyResponse=CG});var EG=P((B)=>{var yG=B&&B.__createBinding||(Object.create?function(G,J,Q,V){if(V===void 0)V=Q;var Y=Object.getOwnPropertyDescriptor(J,Q);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[Q]}};Object.defineProperty(G,V,Y)}:function(G,J,Q,V){if(V===void 0)V=Q;G[V]=J[Q]}),fG=B&&B.__setModuleDefault||(Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J}),zG=B&&B.__importStar||function(G){if(G&&G.__esModule)return G;var J={};if(G!=null){for(var Q in G)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(G,Q))yG(J,G,Q)}return fG(J,G),J},BG=B&&B.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(B,"__esModule",{value:!0});B.HttpsProxyAgent=void 0;var v=zG(H("net")),WG=zG(H("tls")),uG=BG(H("assert")),xG=BG($G()),kG=ZG(),lG=H("url"),dG=KG(),N=(0,xG.default)("https-proxy-agent"),wG=(G)=>{if(G.servername===void 0&&G.host&&!v.isIP(G.host))return{...G,servername:G.host};return G};class m extends kG.Agent{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new lG.URL(G):G,this.proxyHeaders=J?.headers??{},N("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),V=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:Q,port:V}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let V;if(Q.protocol==="https:")N("Creating `tls.Socket`: %o",this.connectOpts),V=WG.connect(wG(this.connectOpts));else N("Creating `net.Socket`: %o",this.connectOpts),V=v.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=v.isIPv6(J.host)?`[${J.host}]`:J.host,K=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))K+=`${z}: ${Y[z]}\r
7
+ `;let W=(0,dG.parseProxyResponse)(V);V.write(`${K}\r
8
+ `);let{connect:R,buffered:u}=await W;if(G.emit("proxyConnect",R),this.emit("proxyConnect",R,G),R.statusCode===200){if(G.once("socket",mG),J.secureEndpoint)return N("Upgrading socket connection to TLS"),WG.connect({...XG(wG(J),"host","path","port"),socket:V});return V}V.destroy();let E=new v.Socket({writable:!1});return E.readable=!0,G.once("socket",(z)=>{N("Replaying proxy buffer for failed request"),(0,uG.default)(z.listenerCount("data")>0),z.push(u),z.push(null)}),E}}m.protocols=["http","https"];B.HttpsProxyAgent=m;function mG(G){G.resume()}function XG(G,...J){let Q={},V;for(V in G)if(!J.includes(V))Q[V]=G[V];return Q}});function VJ(){I.cache.clear?.(),$("Cleared CA certificates cache")}var I;var p=a(()=>{g();i();HG();MG();I=O(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=H("tls"),V=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)V.push(...Z),$(`CA certs: Loaded ${V.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base (--use-system-ca fallback)`)}else V.push(...Q.rootCertificates),$(`CA certs: Loaded ${V.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});V.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return V.length>0?V:void 0})});import{Agent as cG}from"https";function XJ(){let G=F(),J=I();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function h(){let G=F(),J=I();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(A()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function zJ(){F.cache.clear?.(),b.cache.clear?.(),$("Cleared mTLS configuration cache")}function BJ(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,b;var qG=a(()=>{g();p();i();MG();F=O(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),b=O(()=>{let G=F(),J=I();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new cG(Q)})});function OJ(G){FG.set(G,!0)}function iG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function j(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function pG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=pG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),V=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${V}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let R=W;return V===W.substring(1)||V.endsWith(R)}return V===W})}catch{return!1}}function f(G,J={}){let Q=F(),V=I(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};if(RG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,K,W)=>{W(null,Z,iG(K))};return new IG.HttpsProxyAgent(G,{...Y,...J})}function UJ(G={}){let J=j(),Q=b(),V=q.create({proxy:!1});if(!J){if(Q)V.defaults.httpsAgent=Q;return V}let Y=f(J,G);return V.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),V}function jJ(G){let J=j();if(!J)return;if(y(G))return;return f(J)}function TJ(G){let J=j();if(!J)return;if(y(G))return;return J}function DJ(G){let J=G?.provider??"unknown",Q=FG.get(J)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...Q,unix:Y}}let V=j();if(V){if(typeof Bun<"u")return{...Q,proxy:V,...h()};return{...Q,dispatcher:n(V)}}return{...Q,...h()}}function NJ(){let G=j(),J=b();if(C!==void 0)q.interceptors.request.eject(C),C=void 0;if(q.defaults.proxy=void 0,q.defaults.httpAgent=void 0,q.defaults.httpsAgent=void 0,G){q.defaults.proxy=!1;let Q=f(G);C=q.interceptors.request.use((V)=>{if(V.url&&y(V.url))if(J)V.httpsAgent=J,V.httpAgent=J;else delete V.httpsAgent,delete V.httpAgent;else V.httpsAgent=Q,V.httpAgent=Q;return V}),A().setGlobalDispatcher(n(G))}else if(J){q.defaults.httpsAgent=J;let Q=h();if(Q.dispatcher)A().setGlobalDispatcher(Q.dispatcher)}}async function LJ(){let G=j();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.1.11-r6p77pf7.mjs"),import("./index-0.1.11-s0w8xy7q.mjs")]),V=f(G),Y=new J({httpAgent:V,httpsAgent:V});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function SJ(){n.cache.clear?.(),$("Cleared proxy agent cache")}var IG,FG,n,C;var nG=a(()=>{gG();g();p();i();HG();qG();IG=aG(EG(),1),FG=new Map;n=O((G)=>{let J=A(),Q=F(),V=I(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||V){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...V&&{ca:V}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)})});
9
+ export{EG as j5,I as k5,VJ as l5,p as m5,F as n5,XJ as o5,zJ as p5,BJ as q5,qG as r5,OJ as s5,j as t5,y as u5,UJ as v5,jJ as w5,TJ as x5,DJ as y5,NJ as z5,LJ as A5,SJ as B5,nG as C5};
@@ -0,0 +1,2 @@
1
+ import{Cba as L,Uba as G,Vba as h,Zba as v,_ba as P,bca as k,lca as f,zba as M}from"./cli-0.1.11-v7bwjqf0.mjs";import{Gea as E,Pea as x}from"./cli-0.1.11-7qpnfx56.mjs";import{fha as T,sha as u}from"./cli-0.1.11-d3exw047.mjs";import{Rna as C}from"./cli-0.1.11-yrfxpjhr.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudioMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudioMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudioMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Jb,Wj as Kb,e as Lb,Xj as Mb,Yj as Nb,jj as Ob};
@@ -0,0 +1,2 @@
1
+ import{oF as x,rF as A}from"./cli-0.1.11-s8ygndzf.mjs";import{Rna as z}from"./cli-0.1.11-yrfxpjhr.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var B=z(()=>{A()});
2
+ export{G as Te,H as Ue,B as Ve};
@@ -0,0 +1,2 @@
1
+ import{vna as F}from"./cli-0.1.11-0qwee9gy.mjs";import{Lna as w}from"./cli-0.1.11-n23d2wej.mjs";import{Pna as h}from"./cli-0.1.11-yrfxpjhr.mjs";var P=h((p)=>{var t=w(),l=F();function d(e){try{let o=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return o.delete("CONFIG"),o.delete("CONFIG_PREFIX_SEPARATOR"),o.delete("ENV"),[...o].join(", ")}catch(o){return e}}var u=(e,o)=>async()=>{try{let r=e(process.env,o);if(r===void 0)throw Error();return r}catch(r){throw new t.CredentialsProviderError(r.message||`Not found in ENV: ${d(e.toString())}`,{logger:o?.logger})}},C=(e,{preferredFile:o="config",...r}={})=>async()=>{let n=l.getProfileName(r),{configFile:i,credentialsFile:c}=await l.loadSharedConfigFiles(r),s=c[n]||{},g=i[n]||{},m=o==="config"?{...s,...g}:{...g,...s};try{let f=e(m,o==="config"?i:c);if(f===void 0)throw Error();return f}catch(a){throw new t.CredentialsProviderError(a.message||`Not found in config files w/ profile [${n}]: ${d(e.toString())}`,{logger:r.logger})}},y=(e)=>typeof e==="function",E=(e)=>y(e)?async()=>await e():t.fromStatic(e),N=({environmentVariableSelector:e,configFileSelector:o,default:r},n={})=>{let{signingName:i,logger:c}=n,s={signingName:i,logger:c};return t.memoize(t.chain(u(e,s),C(o,n),E(r)))};p.loadConfig=N});
2
+ export{P as una};
@@ -0,0 +1,4 @@
1
+ import{$j as pJ,Kh as dJ,LN as TJ,Tj as DJ,Vj as cJ,Zj as IJ,_j as BJ,sO as jJ,wO as ZV}from"./cli-0.1.11-s8ygndzf.mjs";import{$8 as mJ,Cba as NJ,F7 as L,Gaa as WJ,K7 as kJ,N8 as fJ,Qaa as uJ,T7 as c,U7 as PJ,Vba as hJ,X8 as qJ,n8 as VJ,p8 as p}from"./cli-0.1.11-v7bwjqf0.mjs";import{aea as j,bea as zJ}from"./cli-0.1.11-7xr2ermy.mjs";import{dga as f,ega as gJ}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as e,Jga as SJ,Tga as JJ,Xga as bJ,bha as Q,eha as yJ}from"./cli-0.1.11-vq5fvf9m.mjs";import{$ia as wJ,_ia as AJ}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as LJ,Rna as XJ}from"./cli-0.1.11-yrfxpjhr.mjs";class d{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 y(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let H=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,H)W(),H=!1;await y(),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=CJ(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 H=W.charCodeAt(Y);if(H>=97&&H<=122)V|=1<<H-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),H=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);H[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,X=[],N=-1/0,{paths:D,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?D[M]:q[M],E=B.indexOf(H[0]);if(E===-1)continue;b[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(H[A],u+1),E===-1)continue J;b[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(X.length===W&&_+g-R<=N)continue;let S=D[M],UJ=U[M],T=Y*16+g-R;T+=HJ(S,b[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,b[A],!1);if(T+=Math.max(0,32-(UJ>>2)),X.length<W){if(X.push({path:S,fuzzScore:T}),X.length===W)X.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=X[0].fuzzScore}else if(T>N){let A=0,F=X.length;while(A<F){let h=A+F>>1;if(X[h].fuzzScore<T)A=h+1;else F=h}X.splice(A,0,{path:S,fuzzScore:T}),X.shift(),N=X[0].fuzzScore}}X.sort((M,B)=>B.fuzzScore-M.fuzzScore);let I=X.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let B=X[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function y(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let H=Y.length;for(let _=0;_<Y.length;_++){let X=Y.charCodeAt(_);if(X===47||X===92){H=_;break}}let $=Y.slice(0,H);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,H)=>{let $=Y.length-H.length;if($!==0)return $;return Y<H?-1:Y>H?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,b;var QJ=XJ(()=>{b=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let H=J[Y];for(let $=0;$<H.length;$++)V=(V^H.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let H=0;H<Y.length;H++)V=(V^Y.charCodeAt(H))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(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 sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],H=[...new Set([J,W])],$=KJ.default(),_=!1,X=H.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(X.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${X[q]}`)}let D=_?$:null;return n=D,s=Z,D}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),H=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-H}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),X=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=X.length;X=N.filter(X),Q(`[FileIndex] applied ignore patterns: ${q} -> ${X.length} files`)}C=X;let D=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${X.length} tracked files in ${D}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:X.length,tracked_count:X.length,untracked_count:0,duration_ms:D}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
3
+ `).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),sJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return X}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await y(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let H=O.dirname(J[Y]);while(H!=="."&&!V.has(H)){let $=O.dirname(H);if($===H)break;V.add(H),H=$}}}async function iJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await DJ(Y,".",J)).map((X)=>O.relative(j(),X)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,H=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(H)]);ZJ=_;let X=[...$,..._],N=await FJ(X);$J=N;let D=[...N,...X],q=xJ(D);if(q!==i)await W.loadFromFileListAsync(D).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(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 vV(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=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{return(await J.readdir(W)).map((V)=>{let Y=O.join(W,V.name),H=O.relative(W,Y);return V.isDirectory()?H+O.sep:H})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,H="."+O.sep;if(J.startsWith(H))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,H){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let X=V+$.length;H(X)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=15,VV=5000;var YV=XJ(()=>{pJ();QJ();gJ();hJ();zJ();yJ();SJ();PJ();bJ();fJ();ZV();kJ();mJ();cJ();uJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
4
+ export{jV as rg,UV as sg,vV as tg,EJ as ug,GV as vg,RV as wg,YV as xg};
@@ -0,0 +1,2 @@
1
+ import{ov as O,qv as j}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as y,MP as v}from"./cli-0.1.11-r990p54m.mjs";import{QU as F,SU as I,WU as R,eT as d,vV as p}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as k}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as S}from"./cli-0.1.11-x37jysc0.mjs";import{Eaa as P,Qaa as b}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as J,ega as m}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as L}from"./cli-0.1.11-yrfxpjhr.mjs";m();p();b();j();v();var T=L(d(),1),h=L(S(),1),H=L(k(),1),x="Auto mode lets Claude handle permission prompts automatically — Claude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function a(A){let f=T.c(18),{onAccept:K,onDecline:q,declineExits:C}=A,Q;if(f[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],f[0]=Q;else Q=f[0];h.default.useEffect(E,Q);let W;if(f[1]!==K||f[2]!==q)W=function(V){f:switch(V){case"accept":{J("tengu_auto_mode_opt_in_dialog_accept",{}),P("userSettings",{skipAutoPermissionPrompt:!0}),K();break f}case"accept-default":{J("tengu_auto_mode_opt_in_dialog_accept_default",{}),P("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),K();break f}case"decline":J("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=K,f[2]=q,f[3]=W;else W=f[3];let M=W,X;if(f[4]===Symbol.for("react.memo_cache_sentinel"))X=H.jsxDEV(F,{flexDirection:"column",gap:1,children:[H.jsxDEV(I,{children:x},void 0,!1,void 0,this),H.jsxDEV(R,{url:"https://code.claude.com/docs/en/security"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[4]=X;else X=f[4];let Y;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Y=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=Y;else Y=f[5];let Z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))Z={label:"Yes, enable auto mode",value:"accept"},f[6]=Z;else Z=f[6];let N=C?"No, exit":"No, go back",w;if(f[7]!==N)w=[...Y,Z,{label:N,value:"decline"}],f[7]=N,f[8]=w;else w=f[8];let z;if(f[9]!==M)z=(U)=>M(U),f[9]=M,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=H.jsxDEV(O,{options:w,onChange:z,onCancel:q},void 0,!1,void 0,this),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let B;if(f[15]!==q||f[16]!==G)B=H.jsxDEV(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[X,G]},void 0,!0,void 0,this),f[15]=q,f[16]=G,f[17]=B;else B=f[17];return B}function E(){J("tengu_auto_mode_opt_in_dialog_shown",{})}
2
+ export{x as Pa,a as Qa};