@claudiolabs/claudin 0.5.12 → 0.5.13

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 (844) hide show
  1. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
  2. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
  29. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
  30. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
  31. package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
  34. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
  35. package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
  39. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
  41. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
  46. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
  49. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
  51. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
  52. package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
  53. package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
  54. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
  55. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
  56. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
  57. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
  58. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
  59. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
  60. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
  61. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
  62. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
  63. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
  64. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
  65. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
  66. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
  67. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
  68. package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
  69. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
  71. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
  72. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
  73. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
  75. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
  76. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
  77. package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
  78. package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
  79. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
  80. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
  81. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
  82. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
  83. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
  84. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
  85. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
  86. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
  87. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
  88. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
  89. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
  90. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
  91. package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
  92. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
  93. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
  94. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
  95. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
  96. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
  97. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
  98. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
  99. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
  100. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
  101. package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
  102. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
  103. package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
  104. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
  105. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
  106. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
  107. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
  108. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
  109. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
  110. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
  111. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
  112. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
  113. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
  114. package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
  115. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
  116. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
  117. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
  119. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
  120. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
  121. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
  122. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
  123. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
  124. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
  125. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
  126. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
  127. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
  128. package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
  129. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
  130. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
  131. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
  132. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
  133. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
  134. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
  135. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
  136. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
  137. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
  138. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
  139. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
  140. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
  141. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
  142. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
  143. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
  144. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
  145. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
  146. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
  147. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
  148. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
  149. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
  150. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
  151. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
  152. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
  153. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
  154. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
  155. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
  156. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
  157. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
  158. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
  159. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
  160. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
  161. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
  162. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
  164. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
  165. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
  166. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
  167. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
  168. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
  169. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
  170. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
  171. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
  172. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
  173. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
  174. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
  175. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
  176. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
  177. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
  178. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
  179. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
  180. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
  181. package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
  182. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
  183. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
  184. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
  185. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
  186. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
  187. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
  188. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
  189. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
  190. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
  191. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
  192. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
  193. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
  194. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
  195. package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
  196. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
  197. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
  198. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
  199. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
  200. package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
  201. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
  202. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
  203. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
  204. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
  205. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
  206. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
  207. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
  208. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
  209. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
  210. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
  211. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
  212. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
  213. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
  214. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
  215. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
  216. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
  219. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
  220. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
  222. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
  223. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
  224. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
  225. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
  226. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
  227. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
  228. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
  229. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
  230. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
  231. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
  232. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
  233. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
  234. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
  235. package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
  236. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
  237. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
  238. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
  239. package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
  240. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
  241. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
  242. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
  243. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
  244. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
  245. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
  246. package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
  249. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
  250. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
  253. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
  255. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
  257. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
  258. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
  259. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
  262. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
  263. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
  265. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
  266. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
  268. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
  269. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
  272. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
  273. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
  275. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
  277. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
  278. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
  279. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
  280. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
  281. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
  282. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
  283. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
  284. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
  285. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
  286. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
  287. package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
  288. package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
  289. package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
  290. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
  291. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
  292. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
  293. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
  294. package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
  295. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
  296. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
  297. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
  298. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
  299. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
  300. package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
  301. package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
  302. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
  303. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
  304. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
  305. package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
  306. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
  307. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
  308. package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
  309. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
  310. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
  311. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
  312. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
  313. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
  314. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
  315. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
  316. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
  318. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
  319. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
  320. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
  321. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
  322. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
  324. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
  325. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
  326. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
  327. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
  328. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
  330. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
  331. package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
  332. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
  333. package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
  334. package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
  335. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
  336. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
  337. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
  338. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
  339. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
  340. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
  341. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
  342. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
  343. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
  344. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
  345. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
  346. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
  347. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
  348. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
  349. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
  350. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
  351. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
  352. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
  353. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
  355. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
  356. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
  357. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
  358. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
  359. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
  360. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
  361. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
  362. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
  363. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
  364. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
  365. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
  366. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
  367. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
  368. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
  369. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
  370. package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
  371. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
  372. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
  373. package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
  374. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
  375. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
  376. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
  377. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
  378. package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
  379. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
  380. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
  381. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
  382. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
  383. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
  384. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
  385. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
  386. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
  387. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
  388. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
  389. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
  390. package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
  391. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
  392. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
  393. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
  394. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
  395. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
  396. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
  397. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
  398. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
  399. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
  400. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
  401. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
  402. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
  403. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
  404. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
  405. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
  406. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
  407. package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
  408. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
  409. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
  410. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
  411. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
  412. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
  413. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
  414. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
  415. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
  416. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
  417. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
  418. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
  419. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
  420. package/dist/claudin-vscode.vsix +0 -0
  421. package/dist/cli.mjs +2 -2
  422. package/package.json +1 -1
  423. package/dist/chunks/AgentTool-0.5.12-smdrq819.mjs +0 -1
  424. package/dist/chunks/App-0.5.12-r5wjd7s8.mjs +0 -1
  425. package/dist/chunks/ApproveApiKey-0.5.12-ne9g2ryd.mjs +0 -1
  426. package/dist/chunks/AssistantSessionChooser-0.5.12-xsd6p7kt.mjs +0 -1
  427. package/dist/chunks/AutoModeOptInDialog-0.5.12-ssrkfkmd.mjs +0 -1
  428. package/dist/chunks/BypassPermissionsModeDialog-0.5.12-q6qcrrj2.mjs +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.12-gfcmcgxz.mjs +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-0.5.12-e1f2czf7.mjs +0 -1
  431. package/dist/chunks/DiffDialog-0.5.12-vnm4mz9c.mjs +0 -3
  432. package/dist/chunks/Doctor-0.5.12-rtbvt5mw.mjs +0 -1
  433. package/dist/chunks/Grove-0.5.12-qv18jfe4.mjs +0 -1
  434. package/dist/chunks/ITermBackend-0.5.12-tp63kb2y.mjs +0 -1
  435. package/dist/chunks/InvalidConfigDialog-0.5.12-q3wspzrk.mjs +0 -1
  436. package/dist/chunks/InvalidSettingsDialog-0.5.12-ksv56j0p.mjs +0 -1
  437. package/dist/chunks/MigrationDialog-0.5.12-ekgs1jgb.mjs +0 -1
  438. package/dist/chunks/Onboarding-0.5.12-sjtsxgzz.mjs +0 -1
  439. package/dist/chunks/ProviderManager-0.5.12-sjdymhw7.mjs +0 -1
  440. package/dist/chunks/REPL-0.5.12-8h9bmdjx.mjs +0 -1
  441. package/dist/chunks/ResumeConversation-0.5.12-wpm4mfaa.mjs +0 -1
  442. package/dist/chunks/SnapshotUpdateDialog-0.5.12-n8kyqhdr.mjs +0 -1
  443. package/dist/chunks/TeleportProgress-0.5.12-30xn93y9.mjs +0 -1
  444. package/dist/chunks/TeleportRepoMismatchDialog-0.5.12-e3fg3amd.mjs +0 -1
  445. package/dist/chunks/TeleportResumeWrapper-0.5.12-hk2rzdh9.mjs +0 -1
  446. package/dist/chunks/TmuxBackend-0.5.12-jevh3zhx.mjs +0 -9
  447. package/dist/chunks/ToolSearchTool-0.5.12-9ggdsbtq.mjs +0 -1
  448. package/dist/chunks/TrustDialog-0.5.12-h0w01e8v.mjs +0 -1
  449. package/dist/chunks/activeProvider-0.5.12-gs3tp52z.mjs +0 -1
  450. package/dist/chunks/add-dir-0.5.12-20s2bbpb.mjs +0 -1
  451. package/dist/chunks/agents-0.5.12-3hsbstfa.mjs +0 -3
  452. package/dist/chunks/agents-0.5.12-s6qbjsne.mjs +0 -110
  453. package/dist/chunks/api-0.5.12-0wrh71sa.mjs +0 -1
  454. package/dist/chunks/asciicast-0.5.12-rjjtzjz5.mjs +0 -1
  455. package/dist/chunks/assistant-0.5.12-wv5tm7qb.mjs +0 -1
  456. package/dist/chunks/auth-0.5.12-1jvg770t.mjs +0 -1
  457. package/dist/chunks/auth-0.5.12-s2b8vrty.mjs +0 -1
  458. package/dist/chunks/autoMode-0.5.12-ka6ppwmf.mjs +0 -48
  459. package/dist/chunks/autoUpdater-0.5.12-gdprekp5.mjs +0 -1
  460. package/dist/chunks/backgroundHousekeeping-0.5.12-1yfjbpvk.mjs +0 -1
  461. package/dist/chunks/branch-0.5.12-j64r58dd.mjs +0 -4
  462. package/dist/chunks/bridgePointer-0.5.12-x983by3j.mjs +0 -1
  463. package/dist/chunks/btw-0.5.12-kgz89wa7.mjs +0 -1
  464. package/dist/chunks/buddy-0.5.12-r9nysssz.mjs +0 -3
  465. package/dist/chunks/cacache-0.5.12-4170vfc6.mjs +0 -1
  466. package/dist/chunks/cache-probe-0.5.12-5nr9y8e3.mjs +0 -21
  467. package/dist/chunks/cacheStats-0.5.12-bgxk3p2h.mjs +0 -4
  468. package/dist/chunks/caches-0.5.12-95zf6qzv.mjs +0 -1
  469. package/dist/chunks/claudeDesktop-0.5.12-23kdtzwn.mjs +0 -1
  470. package/dist/chunks/claudemd-0.5.12-nyakrtyn.mjs +0 -1
  471. package/dist/chunks/clear-0.5.12-tngfq6r4.mjs +0 -1
  472. package/dist/chunks/clearTerminal-0.5.12-g53rj1ba.mjs +0 -1
  473. package/dist/chunks/cli-0.5.12-02t9z38y.mjs +0 -2
  474. package/dist/chunks/cli-0.5.12-02yr8j71.mjs +0 -3
  475. package/dist/chunks/cli-0.5.12-057c2cp2.mjs +0 -5
  476. package/dist/chunks/cli-0.5.12-07kx3k7b.mjs +0 -2
  477. package/dist/chunks/cli-0.5.12-097tmfjr.mjs +0 -2
  478. package/dist/chunks/cli-0.5.12-0qasc0ef.mjs +0 -2
  479. package/dist/chunks/cli-0.5.12-11b979hs.mjs +0 -2
  480. package/dist/chunks/cli-0.5.12-15jvdvek.mjs +0 -3
  481. package/dist/chunks/cli-0.5.12-1fs9t3y1.mjs +0 -2
  482. package/dist/chunks/cli-0.5.12-1vyz0tt9.mjs +0 -2
  483. package/dist/chunks/cli-0.5.12-27ngaysm.mjs +0 -2
  484. package/dist/chunks/cli-0.5.12-2fqmc1dw.mjs +0 -17
  485. package/dist/chunks/cli-0.5.12-2jxq8gnm.mjs +0 -2
  486. package/dist/chunks/cli-0.5.12-2thv7xjf.mjs +0 -133
  487. package/dist/chunks/cli-0.5.12-2tqpkne4.mjs +0 -3
  488. package/dist/chunks/cli-0.5.12-2wf629mh.mjs +0 -2
  489. package/dist/chunks/cli-0.5.12-2zcpj03a.mjs +0 -2
  490. package/dist/chunks/cli-0.5.12-30h4rkq5.mjs +0 -4
  491. package/dist/chunks/cli-0.5.12-34cd39ve.mjs +0 -2
  492. package/dist/chunks/cli-0.5.12-36swspqa.mjs +0 -2
  493. package/dist/chunks/cli-0.5.12-3t06hwwh.mjs +0 -2
  494. package/dist/chunks/cli-0.5.12-3v7zr435.mjs +0 -2
  495. package/dist/chunks/cli-0.5.12-3vz2jvfs.mjs +0 -2
  496. package/dist/chunks/cli-0.5.12-3zwt5bt4.mjs +0 -2
  497. package/dist/chunks/cli-0.5.12-41eae9ef.mjs +0 -2
  498. package/dist/chunks/cli-0.5.12-47dbnsz1.mjs +0 -2
  499. package/dist/chunks/cli-0.5.12-495d826j.mjs +0 -18
  500. package/dist/chunks/cli-0.5.12-4dn79vqp.mjs +0 -2
  501. package/dist/chunks/cli-0.5.12-4dxe3951.mjs +0 -2
  502. package/dist/chunks/cli-0.5.12-4h4yvgep.mjs +0 -4
  503. package/dist/chunks/cli-0.5.12-5d3qcvf5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.12-5qad6x1n.mjs +0 -2
  505. package/dist/chunks/cli-0.5.12-60w1a0bs.mjs +0 -2
  506. package/dist/chunks/cli-0.5.12-62bfegwf.mjs +0 -3
  507. package/dist/chunks/cli-0.5.12-63mc4ryd.mjs +0 -2
  508. package/dist/chunks/cli-0.5.12-6h1z8rhs.mjs +0 -2
  509. package/dist/chunks/cli-0.5.12-7bxdfxh2.mjs +0 -7
  510. package/dist/chunks/cli-0.5.12-7c345wdv.mjs +0 -15
  511. package/dist/chunks/cli-0.5.12-7cn41yy7.mjs +0 -6
  512. package/dist/chunks/cli-0.5.12-7dj55dt9.mjs +0 -2
  513. package/dist/chunks/cli-0.5.12-7j2hryxc.mjs +0 -3
  514. package/dist/chunks/cli-0.5.12-7p67dbr2.mjs +0 -2
  515. package/dist/chunks/cli-0.5.12-7repzgzv.mjs +0 -2
  516. package/dist/chunks/cli-0.5.12-7vxpqr5a.mjs +0 -67
  517. package/dist/chunks/cli-0.5.12-7zb3ptxb.mjs +0 -2
  518. package/dist/chunks/cli-0.5.12-8j9p82ea.mjs +0 -2
  519. package/dist/chunks/cli-0.5.12-8v5w8znc.mjs +0 -9
  520. package/dist/chunks/cli-0.5.12-8vg9yqcp.mjs +0 -3
  521. package/dist/chunks/cli-0.5.12-8wzyrrzj.mjs +0 -10
  522. package/dist/chunks/cli-0.5.12-96ne669g.mjs +0 -25
  523. package/dist/chunks/cli-0.5.12-9mq24qzr.mjs +0 -2
  524. package/dist/chunks/cli-0.5.12-9q9g02p5.mjs +0 -2
  525. package/dist/chunks/cli-0.5.12-9qdgpa04.mjs +0 -2
  526. package/dist/chunks/cli-0.5.12-9zz4wk90.mjs +0 -2
  527. package/dist/chunks/cli-0.5.12-afky60yh.mjs +0 -2
  528. package/dist/chunks/cli-0.5.12-ajgk4ksj.mjs +0 -2
  529. package/dist/chunks/cli-0.5.12-am3j4jcx.mjs +0 -12
  530. package/dist/chunks/cli-0.5.12-aqgqkjt4.mjs +0 -2
  531. package/dist/chunks/cli-0.5.12-asbn3d19.mjs +0 -2
  532. package/dist/chunks/cli-0.5.12-b2d3jjn3.mjs +0 -2
  533. package/dist/chunks/cli-0.5.12-b73xqvce.mjs +0 -2
  534. package/dist/chunks/cli-0.5.12-brdpkyjd.mjs +0 -4
  535. package/dist/chunks/cli-0.5.12-bw549ry1.mjs +0 -2
  536. package/dist/chunks/cli-0.5.12-bx2t76qp.mjs +0 -3
  537. package/dist/chunks/cli-0.5.12-bxsvvg0q.mjs +0 -2
  538. package/dist/chunks/cli-0.5.12-bzab36pn.mjs +0 -15
  539. package/dist/chunks/cli-0.5.12-c2yq69h9.mjs +0 -17
  540. package/dist/chunks/cli-0.5.12-c40vvkn4.mjs +0 -2
  541. package/dist/chunks/cli-0.5.12-c6whkxmz.mjs +0 -2
  542. package/dist/chunks/cli-0.5.12-c8f4daey.mjs +0 -2
  543. package/dist/chunks/cli-0.5.12-caz6gx12.mjs +0 -2
  544. package/dist/chunks/cli-0.5.12-cbevkwg4.mjs +0 -3
  545. package/dist/chunks/cli-0.5.12-cqv7z22w.mjs +0 -2
  546. package/dist/chunks/cli-0.5.12-ctqkj6ve.mjs +0 -6
  547. package/dist/chunks/cli-0.5.12-cw1qs4bg.mjs +0 -24
  548. package/dist/chunks/cli-0.5.12-cwbm4b6n.mjs +0 -2
  549. package/dist/chunks/cli-0.5.12-d158qgn4.mjs +0 -2
  550. package/dist/chunks/cli-0.5.12-dda4jky0.mjs +0 -2
  551. package/dist/chunks/cli-0.5.12-dpm51wzp.mjs +0 -2
  552. package/dist/chunks/cli-0.5.12-eb1c0sqs.mjs +0 -2
  553. package/dist/chunks/cli-0.5.12-ecgx5n54.mjs +0 -2
  554. package/dist/chunks/cli-0.5.12-f141d2qa.mjs +0 -2
  555. package/dist/chunks/cli-0.5.12-f15xspgt.mjs +0 -18
  556. package/dist/chunks/cli-0.5.12-f5pfjvdk.mjs +0 -2
  557. package/dist/chunks/cli-0.5.12-f8850v2j.mjs +0 -42
  558. package/dist/chunks/cli-0.5.12-f99c5512.mjs +0 -24
  559. package/dist/chunks/cli-0.5.12-fqp5s15p.mjs +0 -59
  560. package/dist/chunks/cli-0.5.12-g4ffbdep.mjs +0 -2
  561. package/dist/chunks/cli-0.5.12-g4wb8mj2.mjs +0 -193
  562. package/dist/chunks/cli-0.5.12-gfm1s8a2.mjs +0 -4
  563. package/dist/chunks/cli-0.5.12-ghtxkxqx.mjs +0 -2
  564. package/dist/chunks/cli-0.5.12-gt83ysr0.mjs +0 -9
  565. package/dist/chunks/cli-0.5.12-gwg1e43k.mjs +0 -34
  566. package/dist/chunks/cli-0.5.12-had5m07e.mjs +0 -2
  567. package/dist/chunks/cli-0.5.12-hp0508v9.mjs +0 -2
  568. package/dist/chunks/cli-0.5.12-hvtcdcev.mjs +0 -2
  569. package/dist/chunks/cli-0.5.12-j3j0qej1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.12-j75ba781.mjs +0 -2
  571. package/dist/chunks/cli-0.5.12-jp1r2jw2.mjs +0 -1
  572. package/dist/chunks/cli-0.5.12-jy79msaa.mjs +0 -2
  573. package/dist/chunks/cli-0.5.12-k1crwtdc.mjs +0 -2
  574. package/dist/chunks/cli-0.5.12-k976aej3.mjs +0 -2
  575. package/dist/chunks/cli-0.5.12-kez9r81a.mjs +0 -2
  576. package/dist/chunks/cli-0.5.12-khvy67r3.mjs +0 -2
  577. package/dist/chunks/cli-0.5.12-kkfzbxw6.mjs +0 -2
  578. package/dist/chunks/cli-0.5.12-kr31tdde.mjs +0 -2
  579. package/dist/chunks/cli-0.5.12-ktv3envc.mjs +0 -2
  580. package/dist/chunks/cli-0.5.12-m22yxpb9.mjs +0 -2
  581. package/dist/chunks/cli-0.5.12-m2gh4ewc.mjs +0 -2
  582. package/dist/chunks/cli-0.5.12-mgke70yz.mjs +0 -39
  583. package/dist/chunks/cli-0.5.12-n1ax8ehf.mjs +0 -2
  584. package/dist/chunks/cli-0.5.12-n1wc50h4.mjs +0 -2
  585. package/dist/chunks/cli-0.5.12-n4bfatc5.mjs +0 -2
  586. package/dist/chunks/cli-0.5.12-nb3q4dfs.mjs +0 -4
  587. package/dist/chunks/cli-0.5.12-nbcjwzzn.mjs +0 -2
  588. package/dist/chunks/cli-0.5.12-ne0f51vh.mjs +0 -2
  589. package/dist/chunks/cli-0.5.12-nf7cvq82.mjs +0 -2
  590. package/dist/chunks/cli-0.5.12-nj5yya0e.mjs +0 -2
  591. package/dist/chunks/cli-0.5.12-nytegfxk.mjs +0 -4
  592. package/dist/chunks/cli-0.5.12-p4mf644w.mjs +0 -2
  593. package/dist/chunks/cli-0.5.12-p5ps8gf0.mjs +0 -6
  594. package/dist/chunks/cli-0.5.12-p7shsask.mjs +0 -2
  595. package/dist/chunks/cli-0.5.12-pdqnfqg3.mjs +0 -2
  596. package/dist/chunks/cli-0.5.12-pp1549k7.mjs +0 -2
  597. package/dist/chunks/cli-0.5.12-pp1f55mm.mjs +0 -2
  598. package/dist/chunks/cli-0.5.12-pq058s0e.mjs +0 -2
  599. package/dist/chunks/cli-0.5.12-pwee4pmy.mjs +0 -2
  600. package/dist/chunks/cli-0.5.12-pycnjaeg.mjs +0 -16
  601. package/dist/chunks/cli-0.5.12-pzvv2jfe.mjs +0 -2
  602. package/dist/chunks/cli-0.5.12-qafa6js8.mjs +0 -2
  603. package/dist/chunks/cli-0.5.12-qdhvs7zg.mjs +0 -5
  604. package/dist/chunks/cli-0.5.12-qew4mzgp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.12-qffnerrz.mjs +0 -2
  606. package/dist/chunks/cli-0.5.12-qt5dmgd4.mjs +0 -58
  607. package/dist/chunks/cli-0.5.12-qvbpbpwc.mjs +0 -2
  608. package/dist/chunks/cli-0.5.12-r1nnkaek.mjs +0 -3
  609. package/dist/chunks/cli-0.5.12-r1p7bcf8.mjs +0 -2
  610. package/dist/chunks/cli-0.5.12-r6bpk4tm.mjs +0 -50
  611. package/dist/chunks/cli-0.5.12-rb8we522.mjs +0 -2
  612. package/dist/chunks/cli-0.5.12-rc1p9wk6.mjs +0 -3
  613. package/dist/chunks/cli-0.5.12-rt0k97yj.mjs +0 -12
  614. package/dist/chunks/cli-0.5.12-rw2tcb8a.mjs +0 -21
  615. package/dist/chunks/cli-0.5.12-s0h788we.mjs +0 -2
  616. package/dist/chunks/cli-0.5.12-sb5ec9ms.mjs +0 -2
  617. package/dist/chunks/cli-0.5.12-sd5469b2.mjs +0 -3
  618. package/dist/chunks/cli-0.5.12-senanaj4.mjs +0 -15
  619. package/dist/chunks/cli-0.5.12-ssw8vd5p.mjs +0 -45
  620. package/dist/chunks/cli-0.5.12-tczcdzf3.mjs +0 -2
  621. package/dist/chunks/cli-0.5.12-tfdwzg37.mjs +0 -4
  622. package/dist/chunks/cli-0.5.12-tnk4m7zs.mjs +0 -8
  623. package/dist/chunks/cli-0.5.12-tnq5ajv3.mjs +0 -2
  624. package/dist/chunks/cli-0.5.12-va0ce6hc.mjs +0 -2
  625. package/dist/chunks/cli-0.5.12-vkgwh6kg.mjs +0 -2
  626. package/dist/chunks/cli-0.5.12-vp5smcs1.mjs +0 -4
  627. package/dist/chunks/cli-0.5.12-vrbqnjp6.mjs +0 -2
  628. package/dist/chunks/cli-0.5.12-vs30tjk8.mjs +0 -2
  629. package/dist/chunks/cli-0.5.12-vw8gp4d2.mjs +0 -2
  630. package/dist/chunks/cli-0.5.12-vwd5aqnh.mjs +0 -20
  631. package/dist/chunks/cli-0.5.12-w00qj83e.mjs +0 -133
  632. package/dist/chunks/cli-0.5.12-w02bmj5v.mjs +0 -2
  633. package/dist/chunks/cli-0.5.12-w3hy6c60.mjs +0 -2
  634. package/dist/chunks/cli-0.5.12-w7m7knvf.mjs +0 -4
  635. package/dist/chunks/cli-0.5.12-wgqarp3j.mjs +0 -2
  636. package/dist/chunks/cli-0.5.12-wgqshyyq.mjs +0 -2
  637. package/dist/chunks/cli-0.5.12-whfz3xsx.mjs +0 -2
  638. package/dist/chunks/cli-0.5.12-wqg58esg.mjs +0 -2
  639. package/dist/chunks/cli-0.5.12-wqn70xss.mjs +0 -2
  640. package/dist/chunks/cli-0.5.12-x3r8qtwj.mjs +0 -12
  641. package/dist/chunks/cli-0.5.12-x479axrj.mjs +0 -2
  642. package/dist/chunks/cli-0.5.12-xdrtyw81.mjs +0 -2
  643. package/dist/chunks/cli-0.5.12-xdx5bcxv.mjs +0 -5
  644. package/dist/chunks/cli-0.5.12-xg7a0dy4.mjs +0 -2
  645. package/dist/chunks/cli-0.5.12-xhf4y2sm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.12-xsyxpmwt.mjs +0 -2
  647. package/dist/chunks/cli-0.5.12-xyf8b9hh.mjs +0 -4
  648. package/dist/chunks/cli-0.5.12-xysz4vte.mjs +0 -2
  649. package/dist/chunks/cli-0.5.12-xzeb7mtb.mjs +0 -2
  650. package/dist/chunks/cli-0.5.12-y2kq7fe8.mjs +0 -2
  651. package/dist/chunks/cli-0.5.12-y66stscm.mjs +0 -2
  652. package/dist/chunks/cli-0.5.12-yq8ds97a.mjs +0 -2
  653. package/dist/chunks/cli-0.5.12-ysy6e9rz.mjs +0 -2
  654. package/dist/chunks/cli-0.5.12-yxvbh81c.mjs +0 -2
  655. package/dist/chunks/cli-0.5.12-z100r543.mjs +0 -2
  656. package/dist/chunks/cli-0.5.12-z2yzdy27.mjs +0 -2
  657. package/dist/chunks/cli-0.5.12-z6vekb4d.mjs +0 -2
  658. package/dist/chunks/cli-0.5.12-zbcr8cbk.mjs +0 -2
  659. package/dist/chunks/cli-0.5.12-zc0qwdy2.mjs +0 -5268
  660. package/dist/chunks/cli-0.5.12-zd5fps7m.mjs +0 -3
  661. package/dist/chunks/cli-0.5.12-zf4k1ja2.mjs +0 -2
  662. package/dist/chunks/cli-0.5.12-zsjs6asf.mjs +0 -2
  663. package/dist/chunks/client-0.5.12-25cxceb6.mjs +0 -1
  664. package/dist/chunks/color-0.5.12-7ag99jgh.mjs +0 -1
  665. package/dist/chunks/compact-0.5.12-tkdapr9z.mjs +0 -3
  666. package/dist/chunks/config-0.5.12-0c9spewv.mjs +0 -1
  667. package/dist/chunks/config-0.5.12-vc9je2fj.mjs +0 -1
  668. package/dist/chunks/context-0.5.12-rznd55j3.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.5.12-fm064xkc.mjs +0 -1
  670. package/dist/chunks/conversation-0.5.12-rstja52a.mjs +0 -1
  671. package/dist/chunks/copy-0.5.12-wfyfcx1t.mjs +0 -9
  672. package/dist/chunks/cost-0.5.12-5t5ppkhd.mjs +0 -1
  673. package/dist/chunks/createSSHSession-0.5.12-n4gfgvy0.mjs +0 -1
  674. package/dist/chunks/createSession-0.5.12-vberyedq.mjs +0 -1
  675. package/dist/chunks/debug-0.5.12-6tk66dq2.mjs +0 -1
  676. package/dist/chunks/defaultActionDeps-0.5.12-cd6kj7vb.mjs +0 -1177
  677. package/dist/chunks/desktop-0.5.12-t4zetpqs.mjs +0 -1
  678. package/dist/chunks/detectRepository-0.5.12-4rer36ef.mjs +0 -1
  679. package/dist/chunks/detection-0.5.12-kc620t5m.mjs +0 -1
  680. package/dist/chunks/diff-0.5.12-t1nwyr97.mjs +0 -1
  681. package/dist/chunks/doctor-0.5.12-6ehwnc02.mjs +0 -1
  682. package/dist/chunks/doctorDiagnostic-0.5.12-715ngvgm.mjs +0 -1
  683. package/dist/chunks/earlyInput-0.5.12-9c0k1b2s.mjs +0 -1
  684. package/dist/chunks/effort-0.5.12-tge1ba18.mjs +0 -10
  685. package/dist/chunks/envUtils-0.5.12-4210d9jh.mjs +0 -1
  686. package/dist/chunks/environmentSelection-0.5.12-fpz6s66f.mjs +0 -1
  687. package/dist/chunks/environments-0.5.12-yjkrj1h3.mjs +0 -1
  688. package/dist/chunks/errors-0.5.12-hx01gb7f.mjs +0 -1
  689. package/dist/chunks/exampleCommands-0.5.12-228rhbph.mjs +0 -1
  690. package/dist/chunks/exit-0.5.12-x0w90ajb.mjs +0 -1
  691. package/dist/chunks/export-0.5.12-cdv2fqe2.mjs +0 -2
  692. package/dist/chunks/extra-usage-0.5.12-d0ypcf8h.mjs +0 -1
  693. package/dist/chunks/extra-usage-noninteractive-0.5.12-1xmkn7xb.mjs +0 -1
  694. package/dist/chunks/fast-0.5.12-pm7p7cea.mjs +0 -1
  695. package/dist/chunks/feedback-0.5.12-k7w5ac6x.mjs +0 -14
  696. package/dist/chunks/firstPartyEventLogger-0.5.12-jbg4z87y.mjs +0 -1
  697. package/dist/chunks/git-0.5.12-rpqpwk1g.mjs +0 -1
  698. package/dist/chunks/githubModelsCredentials-0.5.12-gc6bcfrs.mjs +0 -1
  699. package/dist/chunks/grove-0.5.12-g5c6bca9.mjs +0 -1
  700. package/dist/chunks/growthbook-0.5.12-d3dr2a5b.mjs +0 -1
  701. package/dist/chunks/headless-0.5.12-4en0ynj2.mjs +0 -2
  702. package/dist/chunks/heapdump-0.5.12-bwv2jy65.mjs +0 -6
  703. package/dist/chunks/help-0.5.12-m0n3bja4.mjs +0 -1
  704. package/dist/chunks/hookChains-0.5.12-ybpwc19k.mjs +0 -3
  705. package/dist/chunks/hooks-0.5.12-gd1zgq76.mjs +0 -1
  706. package/dist/chunks/hooks-0.5.12-kmtv873b.mjs +0 -79
  707. package/dist/chunks/ide-0.5.12-kh015qjb.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-0.5.12-gskzpn6n.mjs +0 -1
  709. package/dist/chunks/index-0.5.12-0qdxjc4v.mjs +0 -30
  710. package/dist/chunks/index-0.5.12-1ms14gcb.mjs +0 -1
  711. package/dist/chunks/index-0.5.12-23xwq3mj.mjs +0 -1
  712. package/dist/chunks/index-0.5.12-3k0mgkby.mjs +0 -5
  713. package/dist/chunks/index-0.5.12-3qxmsrhf.mjs +0 -1
  714. package/dist/chunks/index-0.5.12-5nwrep7m.mjs +0 -1
  715. package/dist/chunks/index-0.5.12-5zp8ghw8.mjs +0 -2
  716. package/dist/chunks/index-0.5.12-6t3ctwhj.mjs +0 -1
  717. package/dist/chunks/index-0.5.12-bb0dxhht.mjs +0 -1
  718. package/dist/chunks/index-0.5.12-cdvaqvrt.mjs +0 -1
  719. package/dist/chunks/index-0.5.12-e3g06gch.mjs +0 -2
  720. package/dist/chunks/index-0.5.12-g0waf7b4.mjs +0 -1
  721. package/dist/chunks/index-0.5.12-k2yx7rgg.mjs +0 -1
  722. package/dist/chunks/index-0.5.12-pqbbvhvf.mjs +0 -17
  723. package/dist/chunks/index-0.5.12-v34jg9ty.mjs +0 -1
  724. package/dist/chunks/index-0.5.12-vd2ps0yn.mjs +0 -1
  725. package/dist/chunks/index-0.5.12-vk2f44v8.mjs +0 -9
  726. package/dist/chunks/index-0.5.12-vqmfkmk5.mjs +0 -1
  727. package/dist/chunks/index-0.5.12-vxrpnsbd.mjs +0 -1
  728. package/dist/chunks/index-0.5.12-w00wq0mv.mjs +0 -1
  729. package/dist/chunks/index-0.5.12-wq1ac3z9.mjs +0 -1
  730. package/dist/chunks/index-0.5.12-z05jb67f.mjs +0 -9
  731. package/dist/chunks/init-0.5.12-dek8tx6c.mjs +0 -1
  732. package/dist/chunks/initReplBridge-0.5.12-tzmcc68e.mjs +0 -1
  733. package/dist/chunks/ink-0.5.12-pa331vem.mjs +0 -1
  734. package/dist/chunks/insights-0.5.12-5vdjmpbj.mjs +0 -870
  735. package/dist/chunks/install-0.5.12-vegjn29b.mjs +0 -1
  736. package/dist/chunks/install-github-app-0.5.12-x1q07njz.mjs +0 -149
  737. package/dist/chunks/install-slack-app-0.5.12-xdebh0fz.mjs +0 -1
  738. package/dist/chunks/instrumentation-0.5.12-t5wdqnhp.mjs +0 -1
  739. package/dist/chunks/interactiveHelpers-0.5.12-fs831eqt.mjs +0 -1
  740. package/dist/chunks/keybindings-0.5.12-c5ptskwf.mjs +0 -2
  741. package/dist/chunks/knowledge-0.5.12-vqnz3rhj.mjs +0 -2
  742. package/dist/chunks/latestVersionCache-0.5.12-6ea56sj8.mjs +0 -1
  743. package/dist/chunks/loadAgentsDir-0.5.12-q3cab4jf.mjs +0 -1
  744. package/dist/chunks/loadPluginHooks-0.5.12-teg232ka.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.12-zqfepr29.mjs +0 -1
  746. package/dist/chunks/log-0.5.12-hb77k1c6.mjs +0 -1
  747. package/dist/chunks/main-0.5.12-a5ye3nrk.mjs +0 -1
  748. package/dist/chunks/managedEnv-0.5.12-9m0enspy.mjs +0 -1
  749. package/dist/chunks/mcp-0.5.12-0g4by910.mjs +0 -1
  750. package/dist/chunks/mcp-0.5.12-kmsa1db8.mjs +0 -17
  751. package/dist/chunks/mcp-0.5.12-tpprk6qh.mjs +0 -4
  752. package/dist/chunks/mcpb-0.5.12-40x6rp03.mjs +0 -1
  753. package/dist/chunks/memory-0.5.12-31smeswe.mjs +0 -3
  754. package/dist/chunks/mobile-0.5.12-trtv6cx8.mjs +0 -2
  755. package/dist/chunks/model-0.5.12-dwyagyf8.mjs +0 -2
  756. package/dist/chunks/model-0.5.12-ncsht9ca.mjs +0 -1
  757. package/dist/chunks/node-0.5.12-n3y2efbq.mjs +0 -12
  758. package/dist/chunks/oauth-0.5.12-vz32m3f2.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.12-5vwewpct.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.12-j7kzxe0j.mjs +0 -1
  761. package/dist/chunks/package-D6422PQU-0.5.12-pcrvwm89.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.12-k9xxsfd1.mjs +0 -1
  763. package/dist/chunks/parser-0.5.12-dztg8ppe.mjs +0 -1
  764. package/dist/chunks/passes-0.5.12-5z8tw34t.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.12-rww5yb80.mjs +0 -3
  766. package/dist/chunks/plan-0.5.12-69ntjye7.mjs +0 -1
  767. package/dist/chunks/plist-0.5.12-3ab3ry0j.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.12-k1c1ggj8.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.12-4nzjv877.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.12-gjxv18dm.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.12-z0z4xe2p.mjs +0 -2
  772. package/dist/chunks/print-0.5.12-9y9vvttb.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.12-w3hpvv24.mjs +0 -1
  774. package/dist/chunks/process-0.5.12-esywnb4j.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.12-24r2r258.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.12-pt79vh2t.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.12-hc11zacw.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.12-txnbkzk6.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.12-r29ww1bz.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.12-sg2pjg74.mjs +0 -13
  781. package/dist/chunks/provider-0.5.12-kdvewq5e.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.12-z3pct3be.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.12-637xxs9q.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.12-e7czq7ff.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.12-5jq9w7c4.mjs +0 -34
  786. package/dist/chunks/registry-0.5.12-dcz74t85.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.12-acaycqgr.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.12-07m62xd2.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.12-8ffhqnh9.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.12-qes76y4j.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.12-wqh0sh5p.mjs +0 -1
  792. package/dist/chunks/rename-0.5.12-pefg421m.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.12-mrx144v7.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.12-xyajjb89.mjs +0 -1
  795. package/dist/chunks/resume-0.5.12-yz9ysprz.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.12-7n5x67g8.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.12-mn1xh15m.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.12-g1r9b0p8.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.12-w1rx9eck.mjs +0 -1
  800. package/dist/chunks/session-0.5.12-t3cd84ep.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.12-905y94g7.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.12-9f5qb84p.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.12-b88eps8r.mjs +0 -1
  804. package/dist/chunks/settings-0.5.12-ascz750g.mjs +0 -1
  805. package/dist/chunks/setup-0.5.12-k4bb1v5t.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.12-wra2rxct.mjs +0 -1
  807. package/dist/chunks/skills-0.5.12-tzetjssj.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.12-4mesbnz6.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.12-j9pvbhww.mjs +0 -1
  810. package/dist/chunks/state-0.5.12-fmbxq91j.mjs +0 -1
  811. package/dist/chunks/stats-0.5.12-6dftg0mb.mjs +0 -6
  812. package/dist/chunks/status-0.5.12-prhem3mn.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.12-t4kmsdfn.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.12-bbjh5kcq.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.12-5zkvc91z.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.12-4993s40p.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.12-003j14d2.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.12-qc9n0e99.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.12-e0q1ppyp.mjs +0 -1
  820. package/dist/chunks/theme-0.5.12-j3m1w193.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.12-q0g2nxf8.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.12-q3xptm32.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.12-99zz2z7m.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.12-msyjmzw4.mjs +0 -1
  825. package/dist/chunks/tools-0.5.12-rfpyvm5z.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.12-x17za0q6.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.12-pe30j67r.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.12-3ns0qpr7.mjs +0 -4
  829. package/dist/chunks/update-0.5.12-4hgf7mr4.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.12-7gs6mxyh.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.12-1v1wp95x.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.12-2w5y94ch.mjs +0 -1
  833. package/dist/chunks/usage-0.5.12-e4h5kk04.mjs +0 -1
  834. package/dist/chunks/util-0.5.12-2p0n6pkd.mjs +0 -1
  835. package/dist/chunks/utils-0.5.12-6hw9zr7a.mjs +0 -1
  836. package/dist/chunks/vim-0.5.12-f95wabwk.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.12-0qy95ccm.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.12-1h2k88h1.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.12-0svdfkzh.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.12-qxdddvwv.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.12-553s8689.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.12-9ghkvy4m.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.12-r4t180q2.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.12-paj8nhxk.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
@@ -1,4 +0,0 @@
1
- import{$i as DG,$z as FG,Cl as j,DK as TG,Dl as l,EK as R,El as A,FK as CG,Fl as P,Gl as r,Hl as t,Il as EG,Jl as a,Kl as yG,Ll as o,Ml as s,Nl as jG,QL as wG,RL as gG,SN as SG,Wl as OG,Xl as PG,ZB as BG,ZG as C,Zi as T,_B as kG,_K as NG,aA as MG,aH as qG,aL as RG,aj as xG,fl as g,gl as U,hl as S,il as AG,iv as ZG,jN as zG,jl as v,kl as h,ll as E,ml as u,mv as IG,nl as c,ol as d,pB as WG,pK as GG,pl as p,qB as bG,qK as KG,rK as _G,sl as HG,tl as n,ul as f,wK as JG,wl as M,xl as i,yl as V,zl as m}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import"./cli-0.5.12-f5pfjvdk.mjs";import"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import"./cli-0.5.12-c6whkxmz.mjs";import"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import{Z1 as $G,w2 as fG}from"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{Bca as YG,Jca as UG}from"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import{Nda as XG,Qda as VG}from"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import{Kfa as q,Pfa as LG}from"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import"./cli-0.5.12-xzeb7mtb.mjs";EG();P();yG();AG();P();class I{constructor(G){this._server=G}requestStream(G,K,Q){return this._server.requestStream(G,K,Q)}createMessageStream(G,K){let Q=this._server.getClientCapabilities();if((G.tools||G.toolChoice)&&!Q?.sampling?.tools)throw Error("Client does not support sampling tools capability.");if(G.messages.length>0){let X=G.messages[G.messages.length-1],$=Array.isArray(X.content)?X.content:[X.content],Z=$.some((Y)=>Y.type==="tool_result"),D=G.messages.length>1?G.messages[G.messages.length-2]:void 0,B=D?Array.isArray(D.content)?D.content:[D.content]:[],W=B.some((Y)=>Y.type==="tool_use");if(Z){if($.some((Y)=>Y.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!W)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(W){let Y=new Set(B.filter((H)=>H.type==="tool_use").map((H)=>H.id)),F=new Set($.filter((H)=>H.type==="tool_result").map((H)=>H.toolUseId));if(Y.size!==F.size||![...Y].every((H)=>F.has(H)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:G},V,K)}elicitInputStream(G,K){let Q=this._server.getClientCapabilities(),X=G.mode??"form";switch(X){case"url":{if(!Q?.elicitation?.url)throw Error("Client does not support url elicitation.");break}case"form":{if(!Q?.elicitation?.form)throw Error("Client does not support form elicitation.");break}}let $=X==="form"&&G.mode===void 0?{...G,mode:"form"}:G;return this.requestStream({method:"elicitation/create",params:$},j,K)}async getTask(G,K){return this._server.getTask({taskId:G},K)}async getTaskResult(G,K,Q){return this._server.getTaskResult({taskId:G},K,Q)}async listTasks(G,K){return this._server.listTasks(G?{cursor:G}:void 0,K)}async cancelTask(G,K){return this._server.cancelTask({taskId:G},K)}}jG();class b extends r{constructor(G,K){super(K);if(this._serverInfo=G,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(M.options.map((Q,X)=>[Q,X])),this.isMessageIgnored=(Q,X)=>{let $=this._loggingLevels.get(X);return $?this.LOG_LEVEL_SEVERITY.get(Q)<this.LOG_LEVEL_SEVERITY.get($):!1},this._capabilities=K?.capabilities??{},this._instructions=K?.instructions,this._jsonSchemaValidator=K?.jsonSchemaValidator??new a,this.setRequestHandler(c,(Q)=>this._oninitialize(Q)),this.setNotificationHandler(d,()=>this.oninitialized?.()),this._capabilities.logging)this.setRequestHandler(i,async(Q,X)=>{let $=X.sessionId||X.requestInfo?.headers["mcp-session-id"]||void 0,{level:Z}=Q.params,D=M.safeParse(Z);if(D.success)this._loggingLevels.set($,D.data);return{}})}get experimental(){if(!this._experimental)this._experimental={tasks:new I(this)};return this._experimental}registerCapabilities(G){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=t(this._capabilities,G)}setRequestHandler(G,K){let X=S(G)?.method;if(!X)throw Error("Schema is missing a method literal");let $;if(g(X)){let D=X;$=D._zod?.def?.value??D.value}else{let D=X;$=D._def?.value??D.value}if(typeof $!=="string")throw Error("Schema method literal must be a string");if($==="tools/call"){let D=async(B,W)=>{let Y=U(f,B);if(!Y.success){let O=Y.error instanceof Error?Y.error.message:String(Y.error);throw new A(E.InvalidParams,`Invalid tools/call request: ${O}`)}let{params:F}=Y.data,H=await Promise.resolve(K(B,W));if(F.task){let O=U(p,H);if(!O.success){let _=O.error instanceof Error?O.error.message:String(O.error);throw new A(E.InvalidParams,`Invalid task creation result: ${_}`)}return O.data}let J=U(n,H);if(!J.success){let O=J.error instanceof Error?J.error.message:String(J.error);throw new A(E.InvalidParams,`Invalid tools/call result: ${O}`)}return J.data};return super.setRequestHandler(G,D)}return super.setRequestHandler(G,K)}assertCapabilityForMethod(G){switch(G){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${G})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${G})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${G})`);break;case"ping":break}}assertNotificationCapability(G){switch(G){case"notifications/message":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${G})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${G})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${G})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${G})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(G){if(!this._capabilities)return;switch(G){case"completion/complete":if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${G})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${G})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${G})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${G})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${G})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${G})`);break;case"ping":case"initialize":break}}assertTaskCapability(G){s(this._clientCapabilities?.tasks?.requests,G,"Client")}assertTaskHandlerCapability(G){if(!this._capabilities)return;o(this._capabilities.tasks?.requests,G,"Server")}async _oninitialize(G){let K=G.params.protocolVersion;return this._clientCapabilities=G.params.capabilities,this._clientVersion=G.params.clientInfo,{protocolVersion:h.includes(K)?K:v,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},u)}async createMessage(G,K){if(G.tools||G.toolChoice){if(!this._clientCapabilities?.sampling?.tools)throw Error("Client does not support sampling tools capability.")}if(G.messages.length>0){let Q=G.messages[G.messages.length-1],X=Array.isArray(Q.content)?Q.content:[Q.content],$=X.some((W)=>W.type==="tool_result"),Z=G.messages.length>1?G.messages[G.messages.length-2]:void 0,D=Z?Array.isArray(Z.content)?Z.content:[Z.content]:[],B=D.some((W)=>W.type==="tool_use");if($){if(X.some((W)=>W.type!=="tool_result"))throw Error("The last message must contain only tool_result content if any is present");if(!B)throw Error("tool_result blocks are not matching any tool_use from the previous message")}if(B){let W=new Set(D.filter((F)=>F.type==="tool_use").map((F)=>F.id)),Y=new Set(X.filter((F)=>F.type==="tool_result").map((F)=>F.toolUseId));if(W.size!==Y.size||![...W].every((F)=>Y.has(F)))throw Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}if(G.tools)return this.request({method:"sampling/createMessage",params:G},m,K);return this.request({method:"sampling/createMessage",params:G},V,K)}async elicitInput(G,K){switch(G.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support url elicitation.");let X=G;return this.request({method:"elicitation/create",params:X},j,K)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw Error("Client does not support form elicitation.");let X=G.mode==="form"?G:{...G,mode:"form"},$=await this.request({method:"elicitation/create",params:X},j,K);if($.action==="accept"&&$.content&&X.requestedSchema)try{let D=this._jsonSchemaValidator.getValidator(X.requestedSchema)($.content);if(!D.valid)throw new A(E.InvalidParams,`Elicitation response content does not match requested schema: ${D.errorMessage}`)}catch(Z){if(Z instanceof A)throw Z;throw new A(E.InternalError,`Error validating elicitation response: ${Z instanceof Error?Z.message:String(Z)}`)}return $}}}createElicitationCompletionNotifier(G,K){if(!this._clientCapabilities?.elicitation?.url)throw Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:G}},K)}async listRoots(G,K){return this.request({method:"roots/list",params:G},l,K)}async sendLoggingMessage(G,K){if(this._capabilities.logging){if(!this.isMessageIgnored(G.level,K))return this.notification({method:"notifications/message",params:G})}}async sendResourceUpdated(G){return this.notification({method:"notifications/resources/updated",params:G})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}_G();import e from"node:process";class k{constructor(G=e.stdin,K=e.stdout){this._stdin=G,this._stdout=K,this._readBuffer=new GG,this._started=!1,this._ondata=(Q)=>{this._readBuffer.append(Q),this.processReadBuffer()},this._onerror=(Q)=>{this.onerror?.(Q)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let G=this._readBuffer.readMessage();if(G===null)break;this.onmessage?.(G)}catch(G){this.onerror?.(G)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send(G){return new Promise((K)=>{let Q=KG(G);if(this._stdout.write(Q))K();else this._stdout.once("drain",K)})}}VG();P();kG();gG();TG();xG();qG();PG();IG();UG();SG();fG();RG();MG();LG();bG();CG();process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS??="true";var vG=[wG];function QG(G,K){let Q=new Set(K.map(($)=>$.name)),X=G.filter(($)=>!Q.has($.name));return[...K,...X]}async function hG(){let G=[],K=[];return await JG(({client:Q,tools:X})=>{G.push(Q),K.push(...X)}),{mcpClients:G,mcpTools:K}}async function AK(G,K,Q){let $=ZG(100);FG(G);let Z=new b({name:"claude/tengu",version:"99.0.0"},{capabilities:{tools:{}}}),{mcpClients:D,mcpTools:B}=await hG();Z.setRequestHandler(HG,async()=>{let Y=T(),F=QG(C(Y),B);return{tools:await Promise.all(F.map(async(H)=>{let J;if(H.outputSchema){let O=R(H.outputSchema);if(typeof O==="object"&&O!==null&&"type"in O&&O.type==="object")J=O}return{...H,description:await H.prompt({getToolPermissionContext:async()=>Y,tools:F,agents:[]}),inputSchema:H.inputJSONSchema??R(H.inputSchema),outputSchema:J}}))}}),Z.setRequestHandler(f,async({params:{name:Y,arguments:F}})=>{let H=T(),J=QG(C(H),B),O=DG(J,Y);if(!O)throw Error(`Tool ${Y} not found`);let _={abortController:OG(),options:{commands:vG,tools:J,mainLoopModel:$G(),thinkingConfig:{type:"disabled"},mcpClients:D,mcpResources:{},isNonInteractiveSession:!0,debug:K,verbose:Q,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>BG(),setAppState:()=>{},messages:[],readFileState:$,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!O.isEnabled())throw Error(`Tool ${Y} is not enabled`);let N=O.inputSchema.parse(F??{}),L=await O.validateInput?.(N??{},_);if(L&&!L.result)throw Error(`Tool ${Y} input is invalid: ${L.message}`);let x=await O.call(N??{},_,NG,zG({content:[]})),z,y=x.data;if(typeof y==="string")z=[{type:"text",text:y}];else if(Array.isArray(y))z=y.map((w)=>{if(w.type==="text")return{type:"text",text:w.text||""};else if(w.type==="image"&&w.source)return{type:"image",data:w.source.data,mimeType:w.source.media_type};else return console.warn(`Unmapped content block type from tool ${Y}: ${w.type||"unknown"}`),{type:"text",text:q(w)}});else z=[{type:"text",text:q(y)}];return{content:z,isError:!!x.isError}}catch(N){if(YG(N),N instanceof XG)return{isError:!0,content:[{type:"text",text:`Tool ${Y} input is invalid:
2
- ${N.issues.map((z)=>`- ${z.path.join(".")}: ${z.message}`).join(`
3
- `)}`}]};return{isError:!0,content:[{type:"text",text:(N instanceof Error?WG(N):[String(N)]).filter(Boolean).join(`
4
- `).trim()||"Error"}]}}});async function W(){let Y=new k;await Z.connect(Y)}return await W()}export{AK as startMCPServer,hG as loadReexposedMcpTools,QG as getCombinedTools};
@@ -1 +0,0 @@
1
- import{aoa as z}from"./cli-0.5.12-xzeb7mtb.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
@@ -1,3 +0,0 @@
1
- import{Bf as ez,zf as eq}from"./cli-0.5.12-xdx5bcxv.mjs";import{AB as _z,BD as Lq,CD as Dz,JD as $q,LD as Pz,Qt as Vq,Tt as xz,jQ as Zq,kQ as zz,km as tq,lm as tz,uk as fq,vB as cq,wB as jz,xk as Tz,yQ as nq,zB as uq}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import{uU as pq,vU as Mz}from"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import{uV as y,wV as wz}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as bq,_V as yq,rX as A,tX as V,xX as oq}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import{BZ as W,CZ as X,DZ as x}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Pq}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import{A4 as Cz,z4 as jq}from"./cli-0.5.12-ctqkj6ve.mjs";import{B4 as hq,D4 as Fz}from"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{$$ as Dq,Bca as iq,E8 as _q,J$ as Nq,Jca as oz,L7 as Xz,R8 as Ez,W$ as Sz,X$ as Jq,caa as Rz,iaa as Sq,l7 as Iq,laa as Rq,maa as vq,naa as kz,vaa as vz,waa as Oz}from"./cli-0.5.12-g4wb8mj2.mjs";import{ada as xq,eda as Iz}from"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import{pea as lq,qea as lz}from"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import{dfa as Hq,ffa as Az}from"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import{Aga as aq,Gga as iz}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as f,Wga as Fq}from"./cli-0.5.12-60w1a0bs.mjs";import{Gia as Mq,rma as bz}from"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as Yq,Zna as Lz,aoa as D}from"./cli-0.5.12-xzeb7mtb.mjs";function Cq(z){return Iq(z)!==null}var Eq=D(()=>{Xz()});import{basename as Hz,join as Nz}from"path";function Vz(z){return z.type==="Project"&&z.parent===void 0&&vq(Hz(z.path))}function Oq(z,q){let G=new Set(z.filter(Vz).map((Y)=>Y.path));return Rq(q,(Y)=>G.has(Y))??Nz(q,Sq)}var Tq=D(()=>{kz()});import{mkdir as yz}from"fs/promises";import{basename as fz,join as pz}from"path";function dq(z){let q=gq.c(58),{onSelect:G,onCancel:Y}=z,Z=k.use(Zq()),I=Mq(),C=pz(f(),"CLAUDE.md"),L=Oq(Z,I),p=fz(L),Jz=Z.some((J)=>J.path===C),Qz=Z.some((J)=>J.path===L),Yz=[...Z.filter(nz).map(mz),...Jz?[]:[{path:C,type:"User",content:"",exists:!1}],...Qz?[]:[{path:L,type:"Project",content:"",exists:!1}]],Aq=new Map,N=Yz.map((J)=>{let Q=_q(J.path),kq=J.exists?"":" (new)",zq=J.parent?(Aq.get(J.parent)??0)+1:0;Aq.set(J.path,zq);let Bz=zq>0?" ".repeat(zq-1):"",_;if(J.type==="User"&&!J.isNested&&J.path===C)_="User memory";else if(J.type==="Project"&&!J.isNested&&J.path===L)_="Project memory";else if(zq>0)_=`${Bz}L ${Q}${kq}`;else _=`${Q}`;let F,Kz=Cq(I);if(J.type==="User"&&!J.isNested)F="Saved in ~/.claudin/CLAUDE.md";else if(J.type==="Project"&&!J.isNested&&J.path===L)F=`${Kz?"Checked in at":"Saved in"} ./${p}`;else if(J.parent)F="@-imported";else if(J.isNested)F="dynamically loaded";else F="";return{label:_,value:J.path,description:F}}),h=[],Zz=Vq(dz);if(Jq()){let J;if(q[0]===Symbol.for("react.memo_cache_sentinel"))J={label:"Open auto-memory folder",value:`${P}${Dq()}`,description:""},q[0]=J;else J=q[0];if(h.push(J),wq.isTeamMemoryEnabled()){let Q;if(q[1]===Symbol.for("react.memo_cache_sentinel"))Q={label:"Open team memory folder",value:`${P}${wq.getTeamMemPath()}`,description:""},q[1]=Q;else Q=q[1];h.push(Q)}for(let Q of Zz.activeAgents)if(Q.memory){let kq=fq(Q.agentType,Q.memory);h.push({label:`Open ${jq.bold(Q.agentType)} agent memory`,value:`${P}${kq}`,description:`${Q.memory} scope`})}}N.push(...h);let c;if(q[2]!==N)c=Qq&&N.some(gz)?Qq:N[0]?.value||"",q[2]=N,q[3]=c;else c=q[3];let Wq=c,[u,Wz]=k.useState(Jq),[b,Uz]=k.useState(cq),[B]=k.useState(Jq),H=Vq(uz),[j,Gz]=k.useState(null),$;if(q[4]!==B)$=()=>{if(!B)return;uq().then(Gz)},q[4]=B,q[5]=$;else $=q[5];let g;if(q[6]!==H||q[7]!==B)g=[B,H],q[6]=H,q[7]=B,q[8]=g;else g=q[8];k.useEffect($,g);let d;if(q[9]!==H||q[10]!==j)d=H?"running":j===null?"":j===0?"never":`last ran ${xq(new Date(j))}`,q[9]=H,q[10]=j,q[11]=d;else d=q[11];let m=d,[K,Uq]=k.useState(null),U=K!==null,E=B?1:0,n;if(q[12]!==u)n=function(){let Q=!u;Nq("userSettings",{autoMemoryEnabled:Q}),Wz(Q),Hq("tengu_auto_memory_toggled",{enabled:Q})},q[12]=u,q[13]=n;else n=q[13];let Gq=n,l;if(q[14]!==b)l=function(){let Q=!b;Nq("userSettings",{autoDreamEnabled:Q}),Uz(Q),Hq("tengu_auto_dream_toggled",{enabled:Q})},q[14]=b,q[15]=l;else l=q[15];let Bq=l;pq();let r;if(q[16]===Symbol.for("react.memo_cache_sentinel"))r={context:"Confirmation"},q[16]=r;else r=q[16];y("confirm:no",Y,r);let s;if(q[17]!==K||q[18]!==Bq||q[19]!==Gq)s=()=>{if(K===0)Gq();else if(K===1)Bq()},q[17]=K,q[18]=Bq,q[19]=Gq,q[20]=s;else s=q[20];let a;if(q[21]!==U)a={context:"Confirmation",isActive:U},q[21]=U,q[22]=a;else a=q[22];y("confirm:yes",s,a);let i;if(q[23]!==E)i=()=>{Uq((J)=>J!==null&&J<E?J+1:null)},q[23]=E,q[24]=i;else i=q[24];let o;if(q[25]!==U)o={context:"Select",isActive:U},q[25]=U,q[26]=o;else o=q[26];y("select:next",i,o);let t;if(q[27]===Symbol.for("react.memo_cache_sentinel"))t=()=>{Uq(cz)},q[27]=t;else t=q[27];let e;if(q[28]!==U)e={context:"Select",isActive:U},q[28]=U,q[29]=e;else e=q[29];y("select:previous",t,e);let Kq=K===0,Xq=u?"on":"off",S;if(q[30]!==Xq)S=X(V,{children:["Auto-memory: ",Xq]}),q[30]=Xq,q[31]=S;else S=q[31];let R;if(q[32]!==Kq||q[33]!==S)R=W(Lq,{isFocused:Kq,children:S}),q[32]=Kq,q[33]=S,q[34]=R;else R=q[34];let v;if(q[35]!==b||q[36]!==m||q[37]!==K||q[38]!==H||q[39]!==B)v=B&&W(Lq,{isFocused:K===1,styled:!1,children:X(V,{color:K===1?"suggestion":void 0,children:["Auto-dream: ",b?"on":"off",m&&X(V,{dimColor:!0,children:[" · ",m]}),!H&&b&&W(V,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=b,q[36]=m,q[37]=K,q[38]=H,q[39]=B,q[40]=v;else v=q[40];let O;if(q[41]!==R||q[42]!==v)O=X(A,{flexDirection:"column",marginBottom:1,children:[R,v]}),q[41]=R,q[42]=v,q[43]=O;else O=q[43];let T;if(q[44]!==G)T=(J)=>{if(J.startsWith(P)){let Q=J.slice(P.length);yz(Q,{recursive:!0}).catch(hz).then(()=>hq(Q));return}Qq=J,G(J)},q[44]=G,q[45]=T;else T=q[45];let w;if(q[46]!==E)w=()=>Uq(E),q[46]=E,q[47]=w;else w=q[47];let M;if(q[48]!==Wq||q[49]!==N||q[50]!==Y||q[51]!==T||q[52]!==w||q[53]!==U)M=W($q,{defaultFocusValue:Wq,options:N,isDisabled:U,onChange:T,onCancel:Y,onUpFromFirstItem:w}),q[48]=Wq,q[49]=N,q[50]=Y,q[51]=T,q[52]=w,q[53]=U,q[54]=M;else M=q[54];let qq;if(q[55]!==O||q[56]!==M)qq=X(A,{flexDirection:"column",width:"100%",children:[O,M]}),q[55]=O,q[56]=M,q[57]=qq;else qq=q[57];return qq}function hz(){}function cz(z){return z!==null&&z>0?z-1:z}function uz(z){return Object.values(z.tasks).some($z)}function $z(z){return z.type==="dream"&&z.status==="running"}function gz(z){return z.value===Qq}function dz(z){return z.agentDefinitions}function mz(z){return{...z,exists:!0}}function nz(z){return z.type!=="AutoMem"&&z.type!=="TeamMem"}var gq,k,wq,Qq,P="__open_folder__";var mq=D(()=>{Cz();bz();Mz();bq();wz();Rz();Az();jz();_z();xz();Tz();Fz();nq();Fq();Ez();Iz();Eq();Sz();Pz();Dz();Tq();x();gq=Yq(yq(),1),k=Yq(Pq(),1),wq=(Oz(),Lz(vz))});import{homedir as sz}from"os";import{relative as az}from"path";function rq(z){let q=sz(),G=lq(),Y=z.startsWith(q)?"~"+z.slice(q.length):null,Z=z.startsWith(G)?"./"+az(G,z):null;if(Y&&Z)return Y.length<=Z.length?Y:Z;return Y||Z||z}var rz;var sq=D(()=>{bq();lz();x();rz=Yq(yq(),1)});import{mkdir as qJ,writeFile as zJ}from"fs/promises";function JJ({onDone:z}){let q=async(Y)=>{try{if(Y.includes(f()))await qJ(f(),{recursive:!0});try{await zJ(Y,"",{encoding:"utf8",flag:"wx"})}catch(p){if(aq(p)!=="EEXIST")throw p}await eq(Y);let Z="default",I="";if(process.env.VISUAL)Z="$VISUAL",I=process.env.VISUAL;else if(process.env.EDITOR)Z="$EDITOR",I=process.env.EDITOR;let C=Z!=="default"?`Using ${Z}="${I}".`:"",L=C?`> ${C} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";z(`Opened memory file at ${rq(Y)}
2
-
3
- ${L}`,{display:"system"})}catch(Z){iq(Z),z(`Error opening memory file: ${Z}`)}},G=()=>{z("Cancelled memory editing",{display:"system"})};return W(tq,{title:"Memory",onCancel:G,color:"remember",children:X(A,{flexDirection:"column",children:[W(qz.Suspense,{fallback:null,children:W(dq,{onSelect:q,onCancel:G})}),W(A,{marginTop:1,children:X(V,{dimColor:!0,children:["Learn more: ",W(oq,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var qz,iJ=async(z)=>{return zz(),await Zq(),W(JJ,{onDone:z})};var QJ=D(()=>{tz();mq();sq();bq();nq();Fq();iz();oz();ez();x();qz=Yq(Pq(),1)});QJ();export{iJ as call};
@@ -1,2 +0,0 @@
1
- import{if as r,jf as Xz}from"./cli-0.5.12-7c345wdv.mjs";import{EV as n,FV as Wz,uV as s,wV as Vz}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as Uz,_V as Nz,rX as l,tX as H}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import{BZ as G,CZ as f,DZ as T}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Jz}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as x,aoa as Iz}from"./cli-0.5.12-xzeb7mtb.mjs";function Yz(I){let z=o.c(52),{onDone:V}=I,[W,e]=O.useState("ios"),b;if(z[0]===Symbol.for("react.memo_cache_sentinel"))b={ios:"",android:""},z[0]=b;else b=z[0];let[$,t]=O.useState(b),{url:u}=i[W],D=$[W],h,M;if(z[1]===Symbol.for("react.memo_cache_sentinel"))h=()=>{(async function(){let[Gz,Hz]=await Promise.all([r(i.ios.url,{type:"utf8",errorCorrectionLevel:"L"}),r(i.android.url,{type:"utf8",errorCorrectionLevel:"L"})]);t({ios:Gz,android:Hz})})().catch(vz)},M=[],z[1]=h,z[2]=M;else h=z[1],M=z[2];O.useEffect(h,M);let R;if(z[3]!==V)R=()=>{V()},z[3]=V,z[4]=R;else R=z[4];let zz=R,g;if(z[5]===Symbol.for("react.memo_cache_sentinel"))g={context:"Confirmation"},z[5]=g;else g=z[5];s("confirm:no",zz,g);let K;if(z[6]!==V)K=function(J){if(J.key==="q"||J.ctrl&&J.key==="c"){J.preventDefault(),V();return}if(J.key==="tab"||J.key==="left"||J.key==="right")J.preventDefault(),e(Ez)},z[6]=V,z[7]=K;else K=z[7];let m=K,X,Y,Z,N,U,k,E,v,B;if(z[8]!==m||z[9]!==D){let _=D.split(`
2
- `).filter(kz);if(Y=n,X=l,E="column",v=0,B=!0,Z=m,z[19]===Symbol.for("react.memo_cache_sentinel"))N=G(H,{children:" "}),U=G(H,{children:" "}),z[19]=N,z[20]=U;else N=z[19],U=z[20];k=_.map(Zz),z[8]=m,z[9]=D,z[10]=X,z[11]=Y,z[12]=Z,z[13]=N,z[14]=U,z[15]=k,z[16]=E,z[17]=v,z[18]=B}else X=z[10],Y=z[11],Z=z[12],N=z[13],U=z[14],k=z[15],E=z[16],v=z[17],B=z[18];let P,q;if(z[21]===Symbol.for("react.memo_cache_sentinel"))P=G(H,{children:" "}),q=G(H,{children:" "}),z[21]=P,z[22]=q;else P=z[21],q=z[22];let p=W==="ios",d=W==="ios",Q;if(z[23]!==p||z[24]!==d)Q=G(H,{bold:p,underline:d,children:"iOS"}),z[23]=p,z[24]=d,z[25]=Q;else Q=z[25];let y;if(z[26]===Symbol.for("react.memo_cache_sentinel"))y=G(H,{dimColor:!0,children:" / "}),z[26]=y;else y=z[26];let a=W==="android",j=W==="android",c;if(z[27]!==a||z[28]!==j)c=G(H,{bold:a,underline:j,children:"Android"}),z[27]=a,z[28]=j,z[29]=c;else c=z[29];let w;if(z[30]!==Q||z[31]!==c)w=f(H,{children:[Q,y,c]}),z[30]=Q,z[31]=c,z[32]=w;else w=z[32];let C;if(z[33]===Symbol.for("react.memo_cache_sentinel"))C=G(H,{dimColor:!0,children:"(tab to switch, esc to close)"}),z[33]=C;else C=z[33];let A;if(z[34]!==w)A=f(l,{flexDirection:"row",gap:2,children:[w,C]}),z[34]=w,z[35]=A;else A=z[35];let F;if(z[36]!==u)F=G(H,{dimColor:!0,children:u}),z[36]=u,z[37]=F;else F=z[37];let L;if(z[38]!==X||z[39]!==Z||z[40]!==N||z[41]!==U||z[42]!==k||z[43]!==A||z[44]!==F||z[45]!==E||z[46]!==v||z[47]!==B)L=f(X,{flexDirection:E,tabIndex:v,autoFocus:B,onKeyDown:Z,children:[N,U,k,P,q,A,F]}),z[38]=X,z[39]=Z,z[40]=N,z[41]=U,z[42]=k,z[43]=A,z[44]=F,z[45]=E,z[46]=v,z[47]=B,z[48]=L;else L=z[48];let S;if(z[49]!==Y||z[50]!==L)S=G(Y,{children:L}),z[49]=Y,z[50]=L,z[51]=S;else S=z[51];return S}function Zz(I,z){return G(H,{children:I},z)}function kz(I){return I.length>0}function Ez(I){return I==="ios"?"android":"ios"}function vz(){}async function Lz(I){return G(Yz,{onDone:I})}var o,O,i;var Bz=Iz(()=>{Xz();Wz();Uz();Vz();T();o=x(Nz(),1),O=x(Jz(),1),i={ios:{url:"https://apps.apple.com/app/claude-by-anthropic/id6473753684"},android:{url:"https://play.google.com/store/apps/details?id=com.anthropic.claude"}}});Bz();export{Lz as call};
@@ -1,2 +0,0 @@
1
- import"./cli-0.5.12-1fs9t3y1.mjs";import{Tf as i,Uf as Nb,Vf as V,Wf as Pb}from"./cli-0.5.12-pp1f55mm.mjs";import{Aw as Kb,Qt as Q,Rt as c,SL as r,TL as Qb,Tt as Jb,yw as g,zw as p}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import"./cli-0.5.12-f5pfjvdk.mjs";import{_V as Hb}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import{BZ as Y,DZ as v}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Gb}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import{B2 as Eb,H1 as kb,Q1 as f,R1 as qb,S1 as F,T1 as zb,d2 as D,i2 as $,k2 as I,n1 as C,o1 as T,t1 as X,w2 as Bb,y1 as A,z2 as M}from"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import{A4 as s,z4 as W}from"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{Bba as o,dca as w,jca as e,yba as O,zba as S}from"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import{Sea as L,Tea as h,Uea as bb}from"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import{dfa as Z,ffa as n}from"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as _,aoa as d}from"./cli-0.5.12-xzeb7mtb.mjs";function Rb(k){let b=m.c(17),{onDone:z}=k,B=Q(Yb),q=Q(Xb),E=Q(Wb),H=c(),G;if(b[0]!==B||b[1]!==z)G=function(){Z("tengu_model_command_menu",{action:"cancel"});let N=y(B);z(`Kept model as ${W.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=G;else G=b[2];let J=G,K;if(b[3]!==E||b[4]!==B||b[5]!==z||b[6]!==H)K=function(N,u){Z("tengu_model_command_menu",{action:N,from_model:B,to_model:N}),H((l)=>({...l,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${W.bold(y(N))}`;if(u!==void 0)P=P+` with ${W.bold(u)} effort`;let x=void 0;if(C()){if(A(),!X(N)&&E)H(Ub),x=!1;else if(X(N)&&T()&&E)P=P+" · Fast mode ON",x=!0}if(V(N,x===!0,I()))P=P+" · Billed as extra usage";if(x===!1)P=P+" · Fast mode OFF";z(P)},b[3]=E,b[4]=B,b[5]=z,b[6]=H,b[7]=K;else K=b[7];let R=K,U;if(b[8]!==E||b[9]!==B)U=C()&&E&&X(B)&&T(),b[8]=E,b[9]=B,b[10]=U;else U=b[10];let j;if(b[11]!==J||b[12]!==R||b[13]!==B||b[14]!==q||b[15]!==U)j=Y(i,{initial:B,sessionModel:q,onSelect:R,onCancel:J,isStandaloneCommand:!0,showFastModeNotice:U}),b[11]=J,b[12]=R,b[13]=B,b[14]=q,b[15]=U,b[16]=j;else j=b[16];return j}function Ub(k){return{...k,fastMode:!1}}function Wb(k){return k.fastMode}function Xb(k){return k.mainLoopModelForSession}function Yb(k){return k.mainLoopModel}function Zb({args:k,onDone:b}){let z=Q((E)=>E.fastMode),B=c(),q=k==="default"?null:k;return t.useEffect(()=>{async function E(){if(q&&!F(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&Ib(q)){b("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(q&&jb(q)){b("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!q){H(null);return}if(yb(q)){H(q);return}try{let{valid:G,error:J}=await r(q);if(G)H(q);else b(J||`Model '${q}' not found`,{display:"system"})}catch(G){b(`Failed to validate model: ${G.message}`,{display:"system"})}}function H(G){B((R)=>({...R,mainLoopModel:G,mainLoopModelForSession:null}));let J=`Set model to ${W.bold(y(G))}`,K=void 0;if(C()){if(A(),!X(G)&&z)B((R)=>({...R,fastMode:!1})),K=!1;else if(X(G)&&z)J+=" · Fast mode ON",K=!0}if(V(G,K===!0,I()))J+=" · Billed as extra usage";if(K===!1)J+=" · Fast mode OFF";b(J)}E()},[q,b,B]),null}function yb(k){return f.includes(k.toLowerCase().trim())}function Ib(k){let b=k.toLowerCase();return!g()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function jb(k){let b=k.toLowerCase();return!p()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function xb(k){let{onDone:b}=k,z=Q(wb),B=Q(Tb),q=Q(Cb),E=y(z),H=q!==void 0?` (effort: ${q})`:"";if(B)b(`Current model: ${W.bold(y(B))} (session override from plan mode)
2
- Base model: ${E}${H}`);else b(`Current model: ${E}${H}`);return null}function Cb(k){return k.effortValue}function Tb(k){return k.mainLoopModelForSession}function wb(k){return k.mainLoopModel}function Ab(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function cb(){if(!w()?.startsWith("openai:"))return;try{let k=await M();if(k.length===0)return;let b=O();if(Ab(b,k))return;S(k)}catch{}}function y(k){let b=$(k??D());return k===null?`${b} (default)`:b}var m,t,rb=async(k,b,z)=>{if(z=z?.trim()||"",h.includes(z))return Z("tengu_model_command_inline_help",{args:z}),Y(xb,{onDone:k});if(L.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Z("tengu_model_command_inline",{args:z}),Y(Zb,{args:z,onDone:k});if(w()?.startsWith("openai:"))cb();return Y(Rb,{onDone:k})};var Vb=d(()=>{s();Nb();bb();n();Jb();Pb();kb();qb();Kb();Eb();o();Bb();zb();Qb();e();v();m=_(Hb(),1),t=_(Gb(),1)});Vb();export{rb as call};
@@ -1 +0,0 @@
1
- import{$1 as f,W1 as a,X1 as b,Y1 as c,Z1 as d,_1 as e,a2 as g,b2 as h,c2 as i,d2 as j,e2 as k,f2 as l,g2 as m,h2 as n,i2 as o,j2 as p,k2 as q,l2 as r,m2 as s,n2 as t,o2 as u,p2 as v,q2 as w,r2 as x,s2 as y,t2 as z,u2 as A,v2 as B,w2 as C}from"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import"./cli-0.5.12-xzeb7mtb.mjs";C();export{w as resolveSkillModelOverride,r as renderModelSetting,t as renderModelName,o as renderDefaultModelSetting,v as parseUserSpecifiedModel,A as normalizeModelStringForAPI,B as modelRejectsSamplingParams,y as modelDisplayString,q as isOpus1mMergeEnabled,b as isNonCustomOpusModel,x as isLegacyModelRemapEnabled,c as getUserSpecifiedModelSetting,a as getSmallFastModel,i as getRuntimeMainLoopModel,u as getPublicModelName,s as getPublicModelDisplayName,p as getOpus46PricingSuffix,z as getMarketingNameForModel,d as getMainLoopModel,g as getDefaultSonnetModel,f as getDefaultOpusModel,j as getDefaultMainLoopModelSetting,k as getDefaultMainLoopModel,h as getDefaultHaikuModel,n as getClaudeAiUserDefaultModelDescription,m as getCanonicalName,e as getBestModel,l as firstPartyNameToCanonical};
@@ -1,12 +0,0 @@
1
- import{Sma as w,Tma as C,Uma as bQ,Vma as A,ana as r,bna as o,cna as kQ,dna as JQ,ena as W,fna as a,gna as _,hna as BQ,kna as WQ}from"./cli-0.5.12-f8850v2j.mjs";import{aoa as b}from"./cli-0.5.12-xzeb7mtb.mjs";var l=b(()=>{JQ()});function G(z){if(z.inputSchema.type!=="object")throw Error(`JSON schema for tool "${z.name}" must be an object, but got ${z.inputSchema.type}`);return{type:"custom",name:z.name,input_schema:z.inputSchema,description:z.description,run:z.run,parse:(Q)=>Q,...z.close?{close:z.close}:{}}}var n=b(()=>{WQ();l()});import*as R from"node:fs/promises";import*as D from"node:path";import{randomUUID as CQ}from"node:crypto";async function DQ(z){try{return await R.realpath(z)}catch{return z}}async function UQ(z){let Q=[],$=z;for(;;){let V;try{V=await R.realpath($)}catch{let Y=!1;try{Y=(await R.lstat($)).isSymbolicLink()}catch{}if(Y){$=D.resolve(D.dirname($),await R.readlink($));continue}let K=D.dirname($);if(K===$)return z;Q.push(D.basename($)),$=K;continue}return Q.length?D.join(V,...Q.reverse()):V}}async function i(z,Q,$){let V=$?.allowOutside??!1;if(D.isAbsolute(Q)){if(!V)throw new W(`absolute path ${JSON.stringify(Q)} not permitted`);return D.resolve(Q)}let Y=await DQ(D.resolve(z)),K=D.resolve(Y,Q);if(V)return K;let q=await UQ(K),X=Y.endsWith(D.sep)?Y:Y+D.sep;if(q!==Y&&!q.startsWith(X))throw new W(`path ${JSON.stringify(Q)} escapes workdir`);return q}async function m(z,Q){let $=D.dirname(z),V=D.join($,`.tmp-${process.pid}-${CQ()}`),Y;try{Y=await R.open(V,"wx",NQ),await Y.writeFile(Q,"utf-8"),await Y.sync(),await Y.close(),Y=void 0,await R.rename(V,z)}catch(K){if(Y)await Y.close().catch(()=>{});throw await R.unlink(V).catch(()=>{}),K}}function j(z,Q){switch(z?.code){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${z instanceof Error?z.message:String(z)}`}}var B=493,NQ=420;var d=b(()=>{a()});import*as O from"node:fs/promises";import*as s from"node:fs";import*as U from"node:path";import{execFile as LQ}from"node:child_process";import{promisify as MQ}from"node:util";import{Readable as OQ}from"node:stream";import{pipeline as wQ}from"node:stream/promises";async function AQ(z){let{client:Q,sessionId:$}=z;if(!Q||!$)return async()=>{};let V=o(Q),Y=await Q.beta.sessions.retrieve($),K=U.resolve(z.workdir,"skills"),q=[];for(let X of Y.agent.skills)try{let H=await t(Q,X.skill_id,X.version),Z=await Q.beta.skills.versions.retrieve(H,{skill_id:X.skill_id}),J=U.basename(Z.name.trim());if(J===""||J==="."||J==="..")J=X.skill_id;let L=U.resolve(K,J);if(L!==K&&!L.startsWith(K+U.sep)){V.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:Z.name});continue}let v=await Q.beta.skills.versions.download(H,{skill_id:X.skill_id});await O.rm(L,{recursive:!0,force:!0}),await O.mkdir(L,{recursive:!0,mode:B}),q.push(L),await e(v,L),V.info("downloaded skill",{component:"agent-tool-context",skill_id:X.skill_id,version:H,dest:L})}catch(H){V.warn("failed to download skill",{component:"agent-tool-context",skill_id:X.skill_id,error:String(H)})}return async()=>{for(let X of q)await O.rm(X,{recursive:!0,force:!0}).catch((H)=>{V.warn("failed to clean up skill",{component:"agent-tool-context",dest:X,error:String(H)})})}}async function t(z,Q,$){if(/^\d+$/.test($))return $;let V;for await(let Y of z.beta.skills.versions.list(Q))if(/^\d+$/.test(Y.version)&&(V===void 0||BigInt(Y.version)>BigInt(V)))V=Y.version;if(V===void 0)throw new A(`skill ${JSON.stringify(Q)} has no concrete version to resolve ${JSON.stringify($)} against`);return V}function RQ(z){for(let Q of z.split(`
2
- `)){let $=Q.trim();if(!$)continue;if(U.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new A(`refusing to extract unsafe archive member: ${$}`)}}function IQ(z){for(let Q of z.split(`
3
- `)){let $=Q.trimStart()[0];if($==="l"||$==="h"||$==="b"||$==="c"||$==="p"||$==="s")throw new A("refusing to extract archive with symlink/hardlink/device member")}}async function h(z,Q){try{let{stdout:$}=await yQ(z,Q);return $}catch($){if($!=null&&typeof $==="object"&&$.code==="ENOENT")throw new A(`skill extraction requires the \`${z}\` command, but it was not found on PATH`);throw $}}function GQ(z){let Q,$=!1;for(let V of z.split(`
4
- `)){let Y=V.trim().split("/").filter((q)=>q!==""&&q!==".");if(Y.length===0)continue;let K=Y[0];if(Q===void 0)Q=K;else if(K!==Q)return"";if(Y.length>1)$=!0}return Q!==void 0&&$?Q:""}async function e(z,Q){let $=U.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!z.body)throw new A("skill download response had no body");await wQ(OQ.fromWeb(z.body),s.createWriteStream($));let V=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`);try{let Y=await FQ($,4),K=Y.length>=4&&Y[0]===80&&Y[1]===75&&Y[2]===3&&Y[3]===4,q=K?"unzip":"tar",X=await h(q,K?["-Z1",$]:["-tf",$]);RQ(X),IQ(await h(q,K?["-Z",$]:["-tvf",$]));let H=GQ(X);await O.mkdir(V,{recursive:!0,mode:B}),await h(q,K?["-oq",$,"-d",V]:["-xf",$,"-C",V]);let Z=H?U.join(V,H):V;for(let J of await O.readdir(Z))await O.rename(U.join(Z,J),U.join(Q,J))}finally{await O.rm($,{force:!0}),await O.rm(V,{recursive:!0,force:!0})}}async function FQ(z,Q){let $=await O.open(z,"r");try{let V=Buffer.alloc(Q),{bytesRead:Y}=await $.read(V,0,Q,0);return V.subarray(0,Y)}finally{await $.close()}}var yQ;var QQ=b(()=>{r();kQ();d();yQ=MQ(LQ)});import*as k from"node:fs/promises";import*as g from"node:fs";import*as N from"node:path";import*as c from"node:child_process";import*as VQ from"node:crypto";import*as YQ from"node:readline";function KQ(z){return z===void 0?jQ:z}function O0(z){return[gQ(z),vQ(z),fQ(z),SQ(z),mQ(z),dQ(z)]}function E(z,Q){return i(z.workdir,Q,{allowOutside:z.unrestrictedPaths??!1})}function TQ(){let z={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;z[Q]=$}return z}class XQ{constructor(z,Q=TQ()){T.add(this),M.set(this,void 0),y.set(this,""),x.set(this,!1),F.set(this,!1),I.set(this,null),w(this,M,c.spawn("/bin/bash",["--noprofile","--norc"],{cwd:z,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),C(this,M,"f").stdout.setEncoding("utf8"),C(this,M,"f").stderr.setEncoding("utf8"),C(this,M,"f").stdout.on("data",($)=>C(this,T,"m",p).call(this,$)),C(this,M,"f").stderr.on("data",($)=>C(this,T,"m",p).call(this,$)),C(this,M,"f").once("close",()=>{w(this,F,!0,"f");let $=C(this,I,"f");w(this,I,null,"f"),$?.resolve()})}get closed(){return C(this,F,"f")}async exec(z,Q={}){if(C(this,F,"f"))throw new A("bash session terminated");let $=Q.timeoutMs??qQ,V=Q.signal;if(V?.aborted)throw new A("bash command aborted");w(this,y,"","f"),w(this,x,!1,"f");let Y=`__ANT_CMD_${VQ.randomUUID()}_DONE__`,K=`${Y.slice(0,8)}''${Y.slice(8)}`,q=`{ ${z}
5
- } </dev/null 2>&1; printf '\\n${K}%d\\n' $?
6
- `;if(C(this,M,"f").stdin.write(q),C(this,y,"f").indexOf(Y)<0){let{promise:v,resolve:ZQ}=_();w(this,I,{sentinel:Y,resolve:ZQ},"f");let f,u;try{await Promise.race([v,new Promise((HQ,S)=>{f=setTimeout(()=>S(new A(`bash command timed out after ${$}ms`)),$)}),new Promise((HQ,S)=>{if(!V)return;u=()=>S(new A("bash command aborted")),V.addEventListener("abort",u,{once:!0})})])}finally{if(f)clearTimeout(f);if(u&&V)V.removeEventListener("abort",u);w(this,I,null,"f")}}let X=C(this,y,"f").indexOf(Y);if(X<0)throw new A("bash session terminated");let Z=C(this,y,"f").slice(X+Y.length).match(/^(-?\d+)/),J=Z?parseInt(Z[1],10):-1,L=C(this,y,"f").slice(0,X).replace(EQ,"").replace(/\n+$/,"");if(C(this,x,"f"))L=`[output truncated]
7
- ${L}`;return{output:L,exitCode:J}}close(){if(C(this,F,"f"))return;w(this,F,!0,"f");let z=C(this,I,"f");w(this,I,null,"f"),z?.resolve(),C(this,M,"f").stdout.destroy(),C(this,M,"f").stderr.destroy(),C(this,M,"f").stdin.destroy();try{process.kill(-C(this,M,"f").pid,"SIGKILL")}catch{C(this,M,"f").kill("SIGKILL")}C(this,M,"f").unref()}}function gQ(z){let Q,$=Promise.resolve();return G({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:V,restart:Y,timeout_ms:K},q)=>{let X=$,H=_();$=H.promise;try{await X}catch{}try{if(Y)Q?.close(),Q=void 0;if(!V){if(Y)return"bash session restarted";throw new W("bash: command is required")}Q??(Q=new XQ(z.workdir,z.env));try{let{output:Z,exitCode:J}=await Q.exec(V,{timeoutMs:K??qQ,signal:q?.signal});if(J!==0)throw new W(Z||`exit ${J}`);return Z}catch(Z){if(Z instanceof W)throw Z;throw Q.close(),Q=void 0,new W(`bash: ${Z instanceof Error?Z.message:String(Z)}`)}}finally{H.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function vQ(z){return G({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new W("read: file_path is required");let V=await E(z,Q),Y;try{let J=await k.stat(V);if(!J.isFile())throw new W(`read: ${Q} is not a regular file`);let L=KQ(z.maxFileBytes);if(L!==null&&J.size>L)throw new W(`read: ${Q} is ${J.size} bytes, exceeds ${L}-byte limit. Use bash (head/tail/sed) to read a slice.`);Y=await k.readFile(V,"utf8")}catch(J){if(J instanceof W)throw J;throw new W(`read: ${j(J,Q)}`)}if(!$)return Y;if($.length!==2)throw new W("read: view_range must be [start_line, end_line]");let[K,q]=$,X=Y.split(`
8
- `),H=Math.max(0,K-1),Z=q>0?q:X.length;return X.slice(H,Z).join(`
9
- `)}})}function fQ(z){return G({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new W("write: file_path is required");let V=await E(z,Q);try{await k.mkdir(N.dirname(V),{recursive:!0,mode:B}),await m(V,$??"")}catch(Y){throw new W(`write: ${j(Y,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function SQ(z){return G({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:V,replace_all:Y})=>{if(!Q)throw new W("edit: file_path is required");if(!$)throw new W("edit: old_string is required");let K=await E(z,Q),q;try{let Z=await k.stat(K);if(!Z.isFile())throw new W(`edit: ${Q} is not a regular file`);let J=KQ(z.maxFileBytes);if(J!==null&&Z.size>J)throw new W(`edit: ${Q} is ${Z.size} bytes, exceeds ${J}-byte limit. Use bash (sed/awk) to edit a large file.`);q=await k.readFile(K,"utf8")}catch(Z){if(Z instanceof W)throw Z;throw new W(`edit: ${j(Z,Q)}`)}let X=q.split($).length-1;if(X===0)throw new W(`edit: old_string not found in ${Q}`);let H;if(Y)H=q.split($).join(V);else{if(X>1)throw new W(`edit: old_string appears ${X} times in ${Q} (must be unique)`);H=q.replace($,()=>V)}try{await m(K,H)}catch(Z){throw new W(`edit: write: ${j(Z,Q)}`)}return`edited ${Q} (${Y?X:1} replacement(s))`}})}function mQ(z){return G({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new W("glob: pattern is required");let V=N.resolve(z.workdir),Y=Q;if(N.isAbsolute(Q)){if(!z.unrestrictedPaths)throw new W("glob: absolute pattern not permitted");V=N.parse(Q).root,Y=N.relative(V,Q)}else if($)V=await E(z,$);if(!z.unrestrictedPaths&&Y.split(/[\\/]/).includes(".."))throw new W('glob: ".." is not permitted in the pattern');let K=[];try{for await(let q of uQ(Y,{cwd:V,withFileTypes:!0,exclude:(X)=>X.name===".git"||X.name==="node_modules"})){if(!q.isFile())continue;let X=N.join(q.parentPath,q.name);if(!z.unrestrictedPaths&&!_Q(V,X))continue;let H=0;try{H=(await k.stat(X)).mtimeMs}catch{}K.push({path:X,mtime:H})}}catch(q){throw new W(`glob: ${q instanceof Error?q.message:String(q)}`)}if(K.length===0)return"no matches";return K.sort((q,X)=>X.mtime-q.mtime),K.slice(0,PQ).map((q)=>q.path).join(`
10
- `)}})}function dQ(z){return G({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},V)=>{if(!Q)throw new W("grep: pattern is required");let Y=N.resolve(z.workdir);if($)Y=await E(z,$);let K=await aQ();return K?hQ(K,Q,Y,V?.signal):pQ(Q,Y,V?.signal)}})}function hQ(z,Q,$,V){return new Promise((Y,K)=>{let q=c.spawn(z,["-n","--no-heading","-e",Q,"--",$],{...V?{signal:V}:{}}),X="",H="",Z=!1;q.stdout.on("data",(J)=>{if(Z)return;if(X+=J,X.length>P)Z=!0,X=X.slice(0,P),q.kill("SIGKILL")}),q.stderr.on("data",(J)=>H+=J),q.on("close",(J)=>{if(V?.aborted)return K(new W("grep: aborted"));if(Z)return Y(X+`
11
- [output truncated at ${P} bytes]`);if(J===0)return Y(X);if(J===1)return Y("no matches");K(new W(`grep: rg failed: ${H||`exit ${J}`}`))}),q.on("error",(J)=>{if(V?.aborted)return K(new W("grep: aborted"));K(new W(`grep: rg failed: ${J.message}`))})})}async function pQ(z,Q,$){let V;try{V=new RegExp(z)}catch(H){throw new W(`grep: invalid regex: ${H instanceof Error?H.message:String(H)}`)}let Y=[],K=P,q=(H)=>{if(K-=H.length+1,K<0)return Y.push(`[output truncated at ${P} bytes]`),!1;return Y.push(H),!0};if((await k.stat(Q).catch(()=>null))?.isFile())await zQ(Q,V,q);else await nQ(Q,"",(H)=>zQ(N.join(Q,H),V,q),$);if($?.aborted)throw new W("grep: aborted");if(Y.length===0)return"no matches";return Y.join(`
12
- `)}async function zQ(z,Q,$){let V=g.createReadStream(z,{encoding:"utf8"}),Y=YQ.createInterface({input:V,crlfDelay:1/0}),K=0;try{for await(let q of Y){if(K++,q.length>xQ)continue;if(Q.test(q)&&!$(`${z}:${K}:${q}`))return!1}}catch{}finally{V.destroy()}return!0}function _Q(z,Q){let $=N.relative(z,Q);return $===""||!$.startsWith(".."+N.sep)&&$!==".."&&!N.isAbsolute($)}async function nQ(z,Q,$,V){let Y=lQ;async function K(q,X){if(X>cQ)return!0;if(V?.aborted)return!1;let H;try{H=await k.readdir(N.join(z,q),{withFileTypes:!0})}catch{return!0}for(let Z of H){if(Z.name===".git"||Z.name==="node_modules")continue;if(Y--<=0)return!1;if(V?.aborted)return!1;let J=q?N.join(q,Z.name):Z.name;if(Z.isDirectory()){if(!await K(J,X+1))return!1}else if(Z.isFile()){if(await $(J)===!1)return!1}}return!0}await K(Q,0)}async function aQ(){let z=(process.env.PATH??"").split(N.delimiter);for(let Q of z){let $=N.join(Q,"rg");try{return await k.access($,g.constants.X_OK),$}catch{}}return null}var T,M,y,x,F,I,p,$Q=102400,qQ=120000,jQ=262144,P=102400,xQ=2000,PQ=200,EQ,uQ,cQ=40,lQ=50000;var iQ=b(()=>{bQ();r();a();n();BQ();d();QQ();EQ=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,uQ=k.glob;M=new WeakMap,y=new WeakMap,x=new WeakMap,F=new WeakMap,I=new WeakMap,T=new WeakSet,p=function(Q){if(w(this,y,C(this,y,"f")+Q,"f"),C(this,y,"f").length>$Q)w(this,y,C(this,y,"f").slice(C(this,y,"f").length-$Q),"f"),w(this,x,!0,"f");if(C(this,I,"f")&&C(this,y,"f").indexOf(C(this,I,"f").sentinel)>=0){let $=C(this,I,"f");w(this,I,null,"f"),$.resolve()}}});iQ();export{AQ as setupSkills,t as resolveSkillVersion,E as resolvePath,e as extractSkillArchive,fQ as betaWriteTool,vQ as betaReadTool,dQ as betaGrepTool,mQ as betaGlobTool,SQ as betaEditTool,gQ as betaBashTool,O0 as betaAgentToolset20260401,XQ as BashSession};
@@ -1 +0,0 @@
1
- import{$ea as g,Vea as a,Wea as b,Xea as c,Yea as d,Zea as e,_ea as f,afa as h,bfa as i,cfa as j}from"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-xzeb7mtb.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
@@ -1,14 +0,0 @@
1
- import{Ah as lD,yh as cD,zh as d1}from"./cli-0.5.12-vkgwh6kg.mjs";import{$o as c1,Ao as m1,Bo as a,Co as SD,Do as BD,Eo as CD,Fo as u1,Go as zD,Ho as t,Oo as A1,Qo as p1,RM as t1,SM as w1,TM as yD,UM as f1,Vo as R2,Wn as b1,Wo as bD,Xi as VD,Xn as G2,Xo as x2,Yi as w2,Yo as qD,Zo as L1,_o as P1,ap as l1,bp as TD,cp as i1,dp as n1,eo as q1,ep as gD,fp as v2,ho as T1,io as F2,jo as ID,ko as UD,lo as KD,mo as A2,ro as uD,so as O2,to as y1,uo as h1,vo as k1,wo as ED,xo as G1,yo as F1,zo as LD}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import{WU as JD,_U as K1}from"./cli-0.5.12-4dn79vqp.mjs";import"./cli-0.5.12-f5pfjvdk.mjs";import"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import{cZ as C1,gZ as f2}from"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import"./cli-0.5.12-c6whkxmz.mjs";import"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import{MZ as g1,NZ as M2}from"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import{n0 as B1,s0 as j2}from"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{$ba as U1,Eba as dD,Fba as W2,Qba as R1,Tba as x1,Uba as N2,Yba as v1,Zba as xD,_ba as I1,bca as vD,cca as E1,fca as S1,jca as z2,mca as $D,pca as pD}from"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import{fga as B,iga as XD}from"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import{Mga as mD,Oga as DD,Wga as ND}from"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import{Wma as ZD,kna as P2}from"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{aoa as b}from"./cli-0.5.12-xzeb7mtb.mjs";function e(D,$=!0){let O=uD(D);if(O.type==="object"&&O.properties){let Q=O.properties,Z=Array.isArray(O.required)?O.required:[],W={};for(let[Y,X]of Object.entries(Q))W[Y]=e(X,$);if(O.properties=W,$)O.required=Z.filter((Y)=>(Y in W)),O.additionalProperties=!1;else O.required=Z.filter((Y)=>(Y in W))}if("items"in O)if(Array.isArray(O.items))O.items=O.items.map((Q)=>e(Q,$));else O.items=e(O.items,$);for(let Q of["anyOf","oneOf","allOf"])if(Q in O&&Array.isArray(O[Q]))O[Q]=O[Q].map((Z)=>e(Z,$));return O}function jD(D){let $=a();return D.filter((O)=>O.name!=="ToolSearchTool").filter((O)=>!O.type||O.type==="function").map((O)=>{let Q={...O.input_schema??{type:"object",properties:{}}};if(O.name==="Agent"&&Q.properties){let Z=Q.properties;if(!Array.isArray(Q.required))Q.required=[];let W=Q.required;for(let Y of["message","subagent_type"])if(Y in Z&&!W.includes(Y))W.push(Y)}return{type:"function",function:{name:O.name,description:O.description??"",parameters:e(Q,!$&&!mD(process.env.CLAUDIN_DISABLE_STRICT_TOOLS))}}})}var wD=b(()=>{ND();O2();zD()});function Z2(){if(DD())return;try{return dD().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function iD(){if($D()?.transport!=="gemini")return;let D=cD(process.env);if(D&&D!=="access-token")return;if(DD())return;Z2()}var nD=b(()=>{pD();ND();lD();W2()});import{randomUUID as Q2}from"crypto";function Y2(){return Q2()}function oD(D,$){let O=Y2(),Q=Date.now();return B(JSON.stringify({type:"api_call_start",correlationId:O,provider:D,model:$,timestamp:Q}),{level:"debug"}),{correlationId:O,startTime:Q}}function aD(D,$,O,Q,Z,W,Y,X,V,H){let P=Date.now()-$,_={type:Q==="error"?"api_call_error":"api_call_end",correlationId:D,model:O,duration_ms:P,status:Q,tokens_in:Z,tokens_out:W,streaming:Y};if(X!==void 0)_.first_token_ms=X;if(V!==void 0)_.total_chunks=V;if(H)_.error=H;B(JSON.stringify(_),{level:Q==="error"?"error":"debug"})}var rD=b(()=>{XD()});function tD(D){return D.trim().length===0}function X2(D){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test(D)}function H2(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function _2(D){return eD[D]??null}function D1(D){return D in eD}function sD(D,$){let O=_2(D);if(!O)return null;return{[O]:$}}function HD(D,$){if($===void 0)return{};try{let O=JSON.parse($);if(H2(O))return O;if(typeof O==="string"&&!tD(O))return sD(D,O)??O;return O}catch{if(tD($)||X2($))return{};return sD(D,$)??{}}}var eD;var fD=b(()=>{eD={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function OD(D){if(!D)return{};let $={};for(let[O,Q]of Object.entries(D)){let Z=O.toLowerCase();if(Z.startsWith("x-anthropic")||Z.startsWith("anthropic-")||Z.startsWith("x-claude")||Z==="x-app"||Z==="x-client-app"||Z==="authorization"||Z==="x-api-key"||Z==="api-key")continue;$[O]=Q}return $}function $1(D){let $=D.headers.get("retry-after");return $?` (Retry-After: ${$})`:""}var O1=()=>{};function W1(D){return new Promise(($)=>setTimeout($,D))}function WD(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var GD=()=>{};function FD(D){if(!D)return"";if(typeof D==="string")return D;if(Array.isArray(D))return D.map(($)=>$.type==="text"?$.text??"":"").join(`
2
-
3
- `);return String(D)}function J2(D,$){if(typeof D==="string")return $?`Error: ${D}`:D;if(!Array.isArray(D)){let Z=JSON.stringify(D??"");return $?`Error: ${Z}`:Z}let O=[];for(let Z of D){if(Z?.type==="text"&&typeof Z.text==="string"){O.push({type:"text",text:Z.text});continue}if(Z?.type==="image"){let W=Z.source;if(W?.type==="url"&&W.url)O.push({type:"image_url",image_url:{url:W.url}});else if(W?.type==="base64"&&W.media_type&&W.data)O.push({type:"image_url",image_url:{url:`data:${W.media_type};base64,${W.data}`}});continue}if(typeof Z?.text==="string")O.push({type:"text",text:Z.text})}if(O.length===0)return"";if(O.length===1&&O[0].type==="text"){let Z=O[0].text??"";return $?`Error: ${Z}`:Z}if(O.every((Z)=>Z.type==="text")){let Z=O.map((W)=>W.text??"").join(`
4
-
5
- `);return $?`Error: ${Z}`:Z}if($&&O[0]?.type==="text")O[0]={...O[0],text:`Error: ${O[0].text??""}`};else if($)O.unshift({type:"text",text:"Error:"});return O}function _D(D){if(typeof D==="string")return D;if(!Array.isArray(D))return String(D??"");let $=[];for(let Q of D)switch(Q.type){case"text":$.push({type:"text",text:Q.text??""});break;case"image":{let Z=Q.source;if(Z?.type==="base64")$.push({type:"image_url",image_url:{url:`data:${Z.media_type};base64,${Z.data}`}});else if(Z?.type==="url")$.push({type:"image_url",image_url:{url:Z.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(Q.text)$.push({type:"text",text:Q.text})}if($.length===0)return"";if($.length===1&&$[0].type==="text")return $[0].text??"";if($.every((Q)=>Q.type==="text"))return $.map((Q)=>Q.text??"").join(`
6
-
7
- `);return $}function Z1(D,$,O){let Q=O?.preserveReasoningContent===!0,Z=[],W=new Set,Y=new Set;for(let H of D){let _=(H.message??H).content;if(Array.isArray(_)){for(let G of _)if(G.type==="tool_result"&&G.tool_use_id)Y.add(G.tool_use_id)}}let X=FD($);if(X)Z.push({role:"system",content:X});for(let H=0;H<D.length;H++){let P=D[H],_=H===D.length-1,G=P.message??P,v=G.role??P.role,z=G.content;if(v==="user")if(Array.isArray(z)){let f=z.filter((j)=>j.type==="tool_result"),R=z.filter((j)=>j.type!=="tool_result");for(let j of f){let I=j.tool_use_id??"unknown";if(W.has(I))Z.push({role:"tool",tool_call_id:I,content:J2(j.content,j.is_error)});else B(`Dropping orphan tool_result for ID: ${I} to prevent API error`)}if(R.length>0)Z.push({role:"user",content:_D(R)})}else Z.push({role:"user",content:_D(z)});else if(v==="assistant")if(Array.isArray(z)){let f=z.filter((N)=>N.type==="tool_use"),R=z.find((N)=>N.type==="thinking"),j=z.filter((N)=>N.type!=="tool_use"&&N.type!=="thinking"),I={role:"assistant",content:(()=>{let N=_D(j);return typeof N==="string"?N:Array.isArray(N)?N.map((F)=>F.text??"").join(""):""})()};if(Q){let N=R?.thinking;if(typeof N==="string"&&N.trim().length>0)I.reasoning_content=N;else I.reasoning_content=""}if(f.length>0){let N=f.map((F)=>{let h=F.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!Y.has(h)&&!_)return null;W.add(h);let q={id:h,type:"function",function:{name:F.name??"unknown",arguments:typeof F.input==="string"?F.input:JSON.stringify(F.input??{})}};if(F.extra_content)q.extra_content={...F.extra_content};if(a()){let u=F.signature??R?.signature,C=q.extra_content?.google??{};q.extra_content={...q.extra_content,google:{...C,thought_signature:u??"skip_thought_signature_validator"}}}return q}).filter((F)=>F!==null);if(N.length>0)I.tool_calls=N}if(I.content||I.tool_calls?.length)Z.push(I)}else{let f={role:"assistant",content:(()=>{let R=_D(z);return typeof R==="string"?R:Array.isArray(R)?R.map((j)=>j.text??"").join(""):""})()};if(f.content)Z.push(f)}}let V=[];for(let H of Z){let P=V[V.length-1];if(P&&P.role==="tool"&&H.role==="user")V.push({role:"assistant",content:"[Tool execution interrupted by user]"});let _=V[V.length-1];if(_&&_.role===H.role&&H.role!=="tool"&&H.role!=="system"){let G=_.content,v=H.content;if(typeof G==="string"&&typeof v==="string")_.content=G+(G&&v?`
8
- `:"")+v;else{let z=(f)=>{if(!f)return[];if(typeof f==="string")return f?[{type:"text",text:f}]:[];return f};_.content=[...z(G),...z(v)]}if(H.tool_calls?.length)_.tool_calls=[..._.tool_calls??[],...H.tool_calls]}else V.push(H)}return V}var Q1=b(()=>{XD();zD()});function X1(D){for(let $ of Y1){let O=D[$];if(typeof O==="string"&&O!=="")return O}return null}function H1(D){for(let $ of Y1){let O=D[$];if(typeof O==="string"&&O!=="")return O}return null}var Y1;var AD=b(()=>{Y1=["reasoning_content","reasoning","reasoning_text","thinking"]});function _1(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function MD(D,$){if(D.firstTokenTime===null)D.firstTokenTime=Date.now();D.chunkCount++}function J1(D){let $=Date.now(),O=D.firstTokenTime?$-D.firstTokenTime:null,Q=$-D.startTime;return{totalChunks:D.chunkCount,firstTokenMs:O,durationMs:Q}}var V1=()=>{};function V2(D){if(!D)return;return JD(D)}function K2(D){try{let $=JSON.parse(D);return $&&typeof $==="object"&&!Array.isArray($)?D:null}catch{for(let $ of N1)try{let O=D+$,Q=JSON.parse(O);if(Q&&typeof Q==="object"&&!Array.isArray(Q))return O}catch{}return null}}async function*z1(D,$,O,Q){let Z=WD(),W=0,Y=new Map,X=!1,V=!1,H=!1,P=L1(),_=null,G=!1,v=!1,z=0,f=_1();yield{type:"message_start",message:{id:Z,type:"message",role:"assistant",content:[],model:$,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let R=D.body?.getReader();if(!R)return;let j=new TextDecoder,I="",N=120000,F=Date.now();async function h(){return new Promise((C,i)=>{let T=setTimeout(()=>{let E=Math.round((Date.now()-F)/1000);i(Error(`OpenAI/Gemini SSE stream idle for ${E}s (limit: ${N/1000}s). Connection likely dropped.`))},N),x;if(O)x=()=>{clearTimeout(T)},O.addEventListener("abort",x,{once:!0});R.read().then((E)=>{if(clearTimeout(T),O&&x)O.removeEventListener("abort",x);if(E.value)F=Date.now();C(E)},(E)=>{if(clearTimeout(T),O&&x)O.removeEventListener("abort",x);i(E)})})}let q=async function*(){if(!X)return;let C=P.flush();if(C)yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:C}};yield{type:"content_block_stop",index:W},W++,X=!1};try{while(!0){let{done:C,value:i}=await h();if(C)break;I+=j.decode(i,{stream:!0});let T=I.split(`
9
- `);I=T.pop()??"";for(let x of T){let E=x.trim();if(!E||E==="data: [DONE]")continue;if(!E.startsWith("data: "))continue;let n;try{n=JSON.parse(E.slice(6))}catch{continue}let p=V2(n.usage);for(let k of n.choices??[]){let d=k.delta,QD=X1(d);if(QD!=null){if(!V)yield{type:"content_block_start",index:W,content_block:{type:"thinking",thinking:""}},V=!0;yield{type:"content_block_delta",index:W,delta:{type:"thinking_delta",thinking:QD}}}if(d.content!=null&&d.content!==""){if(V&&!H)yield{type:"content_block_stop",index:W},W++,H=!0;if(!X)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},X=!0;let L=P.feed(d.content);if(L)z+=L.length,yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:L}};MD(f,d.content)}if(d.tool_calls){for(let L of d.tool_calls)if(L.id&&L.function?.name){if(V&&!H)yield{type:"content_block_stop",index:W},W++,H=!0;if(X)yield*q();let w=W,c=L.function.arguments??"",g=D1(L.function.name);if(MD(f,L.function.arguments??""),Y.set(L.index,{id:L.id,name:L.function.name,index:w,jsonBuffer:c,normalizeAtStop:g}),yield{type:"content_block_start",index:w,content_block:{type:"tool_use",id:L.id,name:L.function.name,input:{},...L.extra_content?{extra_content:L.extra_content}:{},...L.extra_content?.google?.thought_signature?{signature:L.extra_content.google.thought_signature}:{}}},W++,L.function.arguments&&!g)z+=L.function.arguments.length,yield{type:"content_block_delta",index:w,delta:{type:"input_json_delta",partial_json:L.function.arguments}}}else if(L.function?.arguments){let w=Y.get(L.index);if(w){if(L.function.arguments)z+=L.function.arguments.length,w.jsonBuffer+=L.function.arguments;if(w.normalizeAtStop)continue;yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:L.function.arguments}}}}}if(k.finish_reason&&!v){if(v=!0,V&&!H)yield{type:"content_block_stop",index:W},W++,H=!0;if(X)yield*q();for(let[,w]of Y){if(w.normalizeAtStop){let g;if(k.finish_reason==="length")g=w.jsonBuffer;else{let M=K2(w.jsonBuffer);if(M)g=M;else g=JSON.stringify(HD(w.name,w.jsonBuffer))}yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:g}},yield{type:"content_block_stop",index:w.index};continue}let c="";if(w.jsonBuffer)try{JSON.parse(w.jsonBuffer)}catch{let g=w.jsonBuffer.trimEnd();for(let M of N1)try{JSON.parse(g+M),c=M;break}catch{}}if(c)yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:c}};yield{type:"content_block_stop",index:w.index}}let L=k.finish_reason==="tool_calls"?"tool_use":k.finish_reason==="length"?"max_tokens":"end_turn";if(k.finish_reason==="content_filter"||k.finish_reason==="safety"){if(!X)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},X=!0;yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:`
10
-
11
- [Content blocked by provider safety filter]`}}}if(_=L,yield{type:"message_delta",delta:{stop_reason:L,stop_sequence:null},...p?{usage:p}:{}},p)G=!0}}if(!G&&p&&(n.choices?.length??0)===0&&_!==null)yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:p},G=!0}}}finally{R.releaseLock()}let u=J1(f);if(u.totalChunks>0)B(JSON.stringify({type:"stream_stats",model:$,total_chunks:u.totalChunks,first_token_ms:u.firstTokenMs,duration_ms:u.durationMs}),{level:"debug"});if(!G&&_!==null&&(z>0||(Q??0)>0)){let C=w1($);yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:{input_tokens:Q??0,output_tokens:Math.ceil(z/C),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var N1,RD;var j1=b(()=>{XD();V1();K1();P1();fD();f1();GD();AD();N1=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];RD=class RD{generator;controller=new AbortController;constructor(D){this.generator=D}async*[Symbol.asyncIterator](){yield*this.generator}}});function L2(D){let $=D.toLowerCase();return G1.some((O)=>$.includes(O))}function s(D){try{let $=new URL(D);if($.username)$.username="redacted";if($.password)$.password="redacted";for(let Q of $.searchParams.keys())if(L2(Q))$.searchParams.set(Q,"redacted");let O=$.toString();return t(O,process.env)??O}catch{return t(D,process.env)??D}}var M1=b(()=>{A1();F1()});class o1{defaultHeaders;reasoningEffort;constructor(D,$){this.defaultHeaders=OD(D),this.reasoningEffort=$}create(D,$){let O=this,Q,Z=(async()=>{let W=E1({model:D.model,reasoningEffortOverride:O.reasoningEffort}),Y=await O._doRequest(W,D,$);if(Q=Y,D.stream){let P=Y.url?.includes("/responses"),_=0;for(let G of D.messages){let v=G,z=v.message?v.message.content:v.content;if(z!=null&&typeof z!=="string"&&!Array.isArray(z))continue;_+=yD(z)}if(typeof D.system==="string")_+=t1(D.system);else if(Array.isArray(D.system))_+=yD(D.system);return new RD(W.transport==="codex_responses"||P?n1(Y,W.resolvedModel,$?.signal):z1(Y,W.resolvedModel,$?.signal,_))}if(W.transport==="codex_responses"){let P=await i1(Y,$?.signal);return gD(P,W.resolvedModel)}if(Y.url?.includes("/responses")||W.transport==="chat_completions"&&LD()){if((Y.headers.get("content-type")??"").includes("application/json")){let _=await Y.json();if(_&&typeof _==="object"&&(("output"in _)||("incomplete_details"in _)))return gD(_,W.resolvedModel);return O._convertNonStreamingResponse(_,W.resolvedModel)}}if((Y.headers.get("content-type")??"").includes("application/json")){let P=await Y.json();return O._convertNonStreamingResponse(P,W.resolvedModel)}let H=await Y.text().catch(()=>"");throw ZD.generate(Y.status,void 0,`OpenAI API error ${Y.status}: unexpected response: ${H.slice(0,500)}`,Y.headers)})();return Z.withResponse=async()=>{return{data:await Z,response:Q??new Response,request_id:Q?.headers.get("x-request-id")??WD()}},Z}async _doRequest(D,$,O){let Q=vD(D.baseUrl),Z=LD();if(Z&&D.transport==="codex_responses"){let Y=$D(),X=Y?.extras?.githubToken??Y?.apiKey??"";if(!X)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return TD({request:D,credentials:{apiKey:X,source:"env"},params:$,defaultHeaders:{...this.defaultHeaders,...OD(O?.headers),...ED},signal:O?.signal})}if(D.transport==="codex_responses"&&!Z){let Y=await x1().catch(async(V)=>{return B(`[codex] access token refresh failed before request: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await R1()}}),X=S1({storedCredentials:Y.credentials});if(!X.apiKey){let V=DD()?"":", choose Codex OAuth in /provider",H=X.authPath?`${V} or place a Codex auth.json at ${X.authPath}`:V,P=t(D.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${P}. Set CODEX_API_KEY${H}.`)}if(!X.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");return TD({request:D,credentials:X,params:$,defaultHeaders:{...this.defaultHeaders,...OD(O?.headers)},signal:O?.signal})}return this._doOpenAIRequest(D,$,O)}async _doOpenAIRequest(D,$,O){let Q=p1($.messages),Z=Z1(Q,$.system,{preserveReasoningContent:SD(D.baseUrl)||CD(D.baseUrl)||BD(D.baseUrl)}),W={model:D.resolvedModel,messages:Z,stream:$.stream??!1,store:!1},Y=typeof $.max_tokens==="number"&&$.max_tokens>0?$.max_tokens:void 0,X=typeof $.max_completion_tokens==="number"?$.max_completion_tokens:void 0;if(Y!==void 0)W.max_completion_tokens=Y;else if(X!==void 0)W.max_completion_tokens=X;if($.stream&&!xD(D.baseUrl))W.stream_options={include_usage:!0};let V=LD(),H=m1(),P=xD(D.baseUrl),_=vD(D.baseUrl),G=V&&_==="copilot",v=V&&(_==="models"||_==="custom"),z=SD(D.baseUrl),f=CD(D.baseUrl),R=BD(D.baseUrl);if((V||H||P||z||f||R)&&W.max_completion_tokens!==void 0)W.max_tokens=W.max_completion_tokens,delete W.max_completion_tokens;if(H||a()||z||f||R)delete W.store;if($.temperature!==void 0)W.temperature=$.temperature;if($.top_p!==void 0)W.top_p=$.top_p;if(f){let J=$.thinking?.type,K=J==="disabled"?"disabled":J==="enabled"||J==="adaptive"?"enabled":void 0;if(K)W.thinking={type:K};if(K==="enabled"){let y=D.reasoning?.effort;if(y)W.reasoning_effort=u1(y)}}if($.tools&&$.tools.length>0){let J=jD($.tools);if(J.length>0){if(W.tools=J,$.tool_choice){let K=$.tool_choice;if(K.type==="auto")W.tool_choice="auto";else if(K.type==="tool"&&K.name)W.tool_choice={type:"function",function:{name:K.name}};else if(K.type==="any")W.tool_choice="required";else if(K.type==="none")W.tool_choice="none"}}}let j={"Content-Type":"application/json",...this.defaultHeaders,...OD(O?.headers),"User-Agent":g1()},I=a(),N=$D(),F;if(v1(N?.baseUrl)&&!N?.apiKey)F=(await T1().catch(async(K)=>{return B(`[xai] access token refresh failed before request: ${K instanceof Error?K.message:String(K)}`,{level:"warn"}),{refreshed:!1,credentials:await q1()}})).credentials?.accessToken;let h=N?.apiKey??N?.extras?.githubToken??F??"",q=!1;try{let{hostname:J}=new URL(D.baseUrl);q=J.endsWith(".azure.com")&&(J.includes("cognitiveservices")||J.includes("openai")||J.includes("services.ai"))}catch{}let u=!1;try{u=D.baseUrl.toLowerCase().includes("bankr")}catch{}if(h){if(q)j["api-key"]=h;else if(u)j["X-API-Key"]=h;else j.Authorization=`Bearer ${h}`;if(F&&h===F)j["User-Agent"]=b1()}else if(I){let J=await d1(process.env);if(J.kind!=="none"){if(j.Authorization=`Bearer ${J.credential}`,J.kind!=="api-key"&&"projectId"in J&&J.projectId)j["x-goog-user-project"]=J.projectId}}if(G)Object.assign(j,ED);else if(v)j.Accept="application/vnd.github+json",j["X-GitHub-Api-Version"]="2022-11-28";let C=(J)=>{if(q){let K=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",y=D.resolvedModel??N?.model??"gpt-4o";if(/\/deployments\//i.test(J))return`${J.replace(/\/+$/,"")}/chat/completions?api-version=${K}`;return`${J.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${y}/chat/completions?api-version=${K}`}return`${J}/chat/completions`},i=P?I1(D.baseUrl):[],T=D.baseUrl,x=C(T),E=new Set([T]),n=!1,p=(J)=>{for(let K of i){if(E.has(K))continue;let y=x;return E.add(K),T=K,x=C(T),B(`[OpenAIShim] self-heal retry reason=${J} method=POST from=${s(y)} to=${s(x)} model=${D.resolvedModel}`,{level:"warn"}),!0}return!1},k=VD(W),d=()=>{k=VD(W)},QD=()=>({method:"POST",headers:j,body:k,signal:O?.signal}),L=P?i.length+1:0,w=(V?y1:1)+L,c=(J,K,y)=>{if(O?.signal?.aborted)throw J;let S=y??UD(J,{url:K}),r=s(K),o=t(S.message,process.env)||"Request failed";throw B(`[OpenAIShim] transport failure category=${S.category} retryable=${S.retryable} code=${S.code??"unknown"} method=POST url=${r} model=${D.resolvedModel} message=${o}`,{level:"warn"}),ZD.generate(503,void 0,ID(`OpenAI API transport error: ${o}${S.code?` (code=${S.code})`:""}`,S),new Headers)},g=(J,K,y,S,r,o="",A)=>{let U=A??KD({status:J,body:K}),l=s(r);throw B(`[OpenAIShim] request failed category=${U.category} retryable=${U.retryable} status=${J} method=POST url=${l} model=${D.resolvedModel}`,{level:"warn"}),ZD.generate(J,y,ID(`OpenAI API error ${J}: ${K}${o}`,U),S)},M,s1=D.baseUrl.includes("nvidia")?"nvidia-nim":D.baseUrl.includes("minimax")?"minimax":D.baseUrl.includes("localhost:11434")||D.baseUrl.includes("localhost:11435")?"ollama":D.baseUrl.includes("anthropic")?"anthropic":"openai",hD=B1(),{correlationId:e1,startTime:D2}=oD(s1,D.resolvedModel);for(let J=0;J<w;J++){try{M=await bD(x,QD(),{provider:hD})}catch(A){if(O?.signal?.aborted===!0||typeof DOMException<"u"&&A instanceof DOMException&&A.name==="AbortError"||typeof A==="object"&&A!==null&&"name"in A&&A.name==="AbortError")throw A;let l=UD(A,{url:x});if(P&&l.category==="localhost_resolution_failed"&&p("localhost_resolution_failed"))continue;c(A,x,l)}if(M.ok){let A=0,U=0;if(!$.stream)try{let m=await M.clone().json();A=m.usage?.prompt_tokens??0,U=m.usage?.completion_tokens??0}catch{}return aD(e1,D2,D.resolvedModel,"success",A,U,!1),M}if(V&&M.status===429&&J<w-1){await M.text().catch(()=>{});let A=Math.min(h1*2**J,k1);await W1(A*1000);continue}let K=await M.text().catch(()=>"unknown error"),y=V&&M.status===429?$1(M):"";if(V&&M.status===400){if(K.includes("/chat/completions")||K.includes("not accessible")){let A=`${D.baseUrl}/responses`,U={model:D.resolvedModel,input:c1($.messages),stream:$.stream??!1,store:!1};if(!Array.isArray(U.input)||U.input.length===0)U.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let l=FD($.system);if(l)U.instructions=l;if(W.max_tokens!==void 0)U.max_output_tokens=W.max_tokens;if($.tools&&$.tools.length>0){let YD=l1($.tools);if(YD.length>0)U.tools=YD}let m;try{m=await bD(A,{method:"POST",headers:j,body:VD(U),signal:O?.signal},{provider:hD})}catch(YD){c(YD,A)}if(m.ok)return m;let PD=await m.text().catch(()=>"unknown error"),$2=KD({status:m.status,body:PD}),kD;try{kD=JSON.parse(PD)}catch{}g(m.status,PD,kD,m.headers,A,"",$2)}}let S=KD({status:M.status,body:K});if(P&&S.category==="endpoint_not_found"&&p("endpoint_not_found"))continue;let r=Array.isArray(W.tools)&&W.tools.length>0;if(!n&&S.category==="tool_call_incompatible"&&U1({baseUrl:T,hasTools:r})){n=!0,delete W.tools,delete W.tool_choice,d(),B(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${s(x)} model=${D.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(K)}catch{}g(M.status,K,o,M.headers,x,y,S)}throw ZD.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse(D,$){let O=D.choices?.[0],Q=[],Z=H1(O?.message??{});if(Z)Q.push({type:"thinking",thinking:Z});let W=O?.message?.content!==""&&O?.message?.content!=null?O?.message?.content:null;if(typeof W==="string"&&W)Q.push({type:"text",text:qD(W)});else if(Array.isArray(W)&&W.length>0){let X=[];for(let H of W)if(H&&typeof H==="object"&&H.type==="text"&&typeof H.text==="string")X.push(H.text);let V=X.join(`
12
- `);if(V)Q.push({type:"text",text:qD(V)})}if(O?.message?.tool_calls)for(let X of O.message.tool_calls){let V=HD(X.function.name,X.function.arguments);Q.push({type:"tool_use",id:X.id,name:X.function.name,input:V,...X.extra_content?{extra_content:X.extra_content}:{},...X.extra_content?.google?.thought_signature?{signature:X.extra_content.google.thought_signature}:{}})}let Y=O?.finish_reason==="tool_calls"?"tool_use":O?.finish_reason==="length"?"max_tokens":"end_turn";if(O?.finish_reason==="content_filter"||O?.finish_reason==="safety")Q.push({type:"text",text:`
13
-
14
- [Content blocked by provider safety filter]`});return{id:D.id??WD(),type:"message",role:"assistant",content:Q,model:D.model??$,stop_reason:Y,stop_sequence:null,usage:JD(D.usage)}}}class a1{messages;reasoningEffort;constructor(D,$){this.messages=new o1(D,$),this.reasoningEffort=$}}function I2(D){iD(),C1();let $=new a1({...D.defaultHeaders??{}},D.reasoningEffort);return{beta:$,messages:$.messages}}var r1=b(()=>{P2();N2();F2();G2();XD();ND();lD();nD();f2();j2();A1();rD();w2();f1();R2();pD();K1();v2();x2();A2();z2();P1();fD();M2();F1();O1();GD();Q1();zD();AD();j1();wD();M1()});var U2=b(()=>{wD();r1()});U2();export{I2 as createOpenAIShimClient,jD as convertTools};
@@ -1 +0,0 @@
1
- import{aoa as t}from"./cli-0.5.12-xzeb7mtb.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
@@ -1 +0,0 @@
1
- import{Sg as e,Tg as a}from"./cli-0.5.12-b2d3jjn3.mjs";import{aoa as r}from"./cli-0.5.12-xzeb7mtb.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
@@ -1 +0,0 @@
1
- import"./cli-0.5.12-xzeb7mtb.mjs";var o=()=>null,n=o;export{n as default};
@@ -1 +0,0 @@
1
- import{H4 as a,I4 as b,J4 as c,K4 as d,L4 as e,M4 as f}from"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-xzeb7mtb.mjs";f();export{d as parseCommandRaw,b as parseCommand,e as extractCommandArguments,a as ensureInitialized,c as PARSE_ABORTED};
@@ -1 +0,0 @@
1
- import{AU as g,BU as m,DU as b,uU as S,vU as Qq,wU as f,yU as c}from"./cli-0.5.12-qew4mzgp.mjs";import{EV as O,FV as Uq,uV as y,wV as Nq}from"./cli-0.5.12-f5pfjvdk.mjs";import{NX as R,UV as v,YX as Mq,ZV as Hq,rX as M,tX as z,xX as L}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import{AZ as U,BZ as q,CZ as J,DZ as V}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Jq}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-khvy67r3.mjs";import"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{A9 as h,Bca as E,Jaa as u,Jca as Bq,Maa as d,S9 as zq,eba as Xq,q8 as F,s8 as qq}from"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import{dfa as _,ffa as k}from"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as e,aoa as C}from"./cli-0.5.12-xzeb7mtb.mjs";function D({onDone:X}){let[P,Q]=N.useState(!0),[$,T]=N.useState([]),[j,W]=N.useState(!1),[G,x]=N.useState(null),[A,o]=N.useState(void 0),Y=S(()=>X("Guest passes dialog dismissed",{display:"system"})),l=N.useCallback(()=>{X("Guest passes dialog dismissed",{display:"system"})},[X]);if(y("confirm:no",l,{context:"Confirmation"}),R((H,B)=>{if(B.return&&G)v(G).then((K)=>{if(K)process.stdout.write(K);_("tengu_guest_passes_link_copied",{}),X("Referral link copied to clipboard!")})}),N.useEffect(()=>{async function H(){try{let B=await m();if(!B||!B.eligible){W(!1),Q(!1);return}if(W(!0),B.referral_code_details?.referral_link)x(B.referral_code_details.referral_link);o(B.referrer_reward);let K=B.referral_code_details?.campaign??"claude_code_guest_pass",I;try{I=await f(K)}catch(Z){E(Z),W(!1),Q(!1);return}let t=I.redemptions||[],a=I.limit||3,w=[];for(let Z=0;Z<a;Z++){let s=t[Z];w.push({passNumber:Z+1,isAvailable:!s})}T(w),Q(!1)}catch(B){E(B),W(!1),Q(!1)}}H()},[]),P)return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[q(z,{dimColor:!0,children:"Loading guest pass information…"}),q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Esc to cancel"})})]})});if(!j)return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[q(z,{children:"Guest passes are not currently available."}),q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Esc to cancel"})})]})});let n=F($,(H)=>H.isAvailable),r=[...$].sort((H,B)=>+B.isAvailable-+H.isAvailable),i=(H)=>{if(!H.isAvailable)return J(M,{flexDirection:"column",marginRight:1,children:[q(z,{dimColor:!0,children:"┌─────────╱"}),q(z,{dimColor:!0,children:` ) CC ${h} ┊╱`}),q(z,{dimColor:!0,children:"└───────╱"})]},H.passNumber);return J(M,{flexDirection:"column",marginRight:1,children:[q(z,{children:"┌──────────┐"}),J(z,{children:[" ) CC ",q(z,{color:"claude",children:h})," ┊ ( "]}),q(z,{children:"└──────────┘"})]},H.passNumber)};return q(O,{children:J(M,{flexDirection:"column",gap:1,children:[J(z,{color:"permission",children:["Guest passes · ",n," left"]}),q(M,{flexDirection:"row",marginLeft:2,children:r.slice(0,3).map((H)=>i(H))}),G&&q(M,{marginLeft:2,children:q(z,{children:G})}),q(M,{flexDirection:"column",marginLeft:2,children:J(z,{dimColor:!0,children:[A?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${c(A)} of extra usage to keep building. `:"Share a free week of Claude Code with friends. ",q(L,{url:A?"https://support.claude.com/en/articles/13456702-claude-code-guest-passes":"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",children:"Terms apply."})]})}),q(M,{children:q(z,{dimColor:!0,italic:!0,children:Y.pending?J(U,{children:["Press ",Y.keyName," again to exit"]}):q(U,{children:"Enter to copy link · Esc to cancel"})})})]})})}var N;var p=C(()=>{zq();Qq();Hq();Mq();Nq();k();b();qq();Bq();Uq();V();N=e(Jq(),1)});async function kq(X){let Q=!d().hasVisitedPasses;if(Q){let $=g();u((T)=>({...T,hasVisitedPasses:!0,passesLastSeenRemaining:$??T.passesLastSeenRemaining}))}return _("tengu_guest_passes_visited",{is_first_visit:Q}),q(D,{onDone:X})}var Yq=C(()=>{p();k();b();Xq();V()});Yq();export{kq as call};
@@ -1,3 +0,0 @@
1
- import{Ec as eG,Fc as nJ}from"./cli-0.5.12-w02bmj5v.mjs";import{$f as IX,Zf as OX,_f as sX,ag as tX}from"./cli-0.5.12-3v7zr435.mjs";import{bg as WX,cg as IG,dg as EX,eg as OG,fg as fJ}from"./cli-0.5.12-wqg58esg.mjs";import{gg as iJ,hg as hX}from"./cli-0.5.12-ne0f51vh.mjs";import{tg as gJ,ug as CX}from"./cli-0.5.12-j75ba781.mjs";import{Ug as wX,Vg as $X}from"./cli-0.5.12-p7shsask.mjs";import"./cli-0.5.12-n4bfatc5.mjs";import"./cli-0.5.12-ajgk4ksj.mjs";import"./cli-0.5.12-g4ffbdep.mjs";import{$K as QX,AD as _X,JD as n,KD as VG,Qt as zX,Rt as NX,SN as qY,Tt as rX,WK as LX,XK as UX,Xk as EG,YK as kX,ZK as qX,_k as $G,aL as oX,al as KJ,en as MJ,fn as vX,gA as rG,hA as FJ,km as sG,lm as TJ,rN as KX,sG as pJ,tG as mX,zD as hJ}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import{uU as FG,vU as mJ}from"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import{EV as ZX,FV as aX,gV as SJ,hV as SX,uV as PG,wV as _J}from"./cli-0.5.12-f5pfjvdk.mjs";import{BX as RJ,NX as uJ,XW as YX,YX as XG,_V as JG,rX as C,tX as H}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import{AZ as r,BZ as Z,CZ as F,DZ as x}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as tG}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import{A4 as lX,z4 as s}from"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import{$_ as HJ,A6 as BJ,G$ as IJ,W$ as jX,Z_ as yJ,__ as u,c$ as bJ,g9 as OJ,h9 as TX,k$ as gX,z6 as YG}from"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import{Kfa as DG,Pfa as nX}from"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import{Gia as tJ,rma as dX}from"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as i,aoa as e}from"./cli-0.5.12-xzeb7mtb.mjs";function oG(U){let G=DJ.c(9),{ruleValue:X}=U;switch(X.toolName){case rG.name:if(X.ruleContent)if(X.ruleContent.endsWith(":*")){let N;if(G[0]!==X.ruleContent)N=X.ruleContent.slice(0,-2),G[0]=X.ruleContent,G[1]=N;else N=G[1];let J;if(G[2]!==N)J=F(H,{dimColor:!0,children:["Any Bash command starting with"," ",Z(H,{bold:!0,children:N})]}),G[2]=N,G[3]=J;else J=G[3];return J}else{let N;if(G[4]!==X.ruleContent)N=F(H,{dimColor:!0,children:["The Bash command ",Z(H,{bold:!0,children:X.ruleContent})]}),G[4]=X.ruleContent,G[5]=N;else N=G[5];return N}else{let N;if(G[6]===Symbol.for("react.memo_cache_sentinel"))N=Z(H,{dimColor:!0,children:"Any Bash command"}),G[6]=N;else N=G[6];return N}default:if(!X.ruleContent){let N;if(G[7]!==X.toolName)N=F(H,{dimColor:!0,children:["Any use of the ",Z(H,{bold:!0,children:X.toolName})," tool"]}),G[7]=X.toolName,G[8]=N;else N=G[8];return N}else return null}}var DJ;var EJ=e(()=>{XG();FJ();x();DJ=i(JG(),1)});function yX(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IJ("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IJ("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function vJ(U){let G=jJ.c(26),{onAddRules:X,onCancel:N,ruleValues:J,ruleBehavior:q,initialContext:B,setToolPermissionContext:Q}=U,E;if(G[0]===Symbol.for("react.memo_cache_sentinel"))E=OJ.map(yX),G[0]=E;else E=G[0];let k=E,W;if(G[1]!==B||G[2]!==X||G[3]!==N||G[4]!==q||G[5]!==J||G[6]!==Q)W=(g)=>{if(g==="cancel"){N();return}else if(OJ.includes(g)){let A=g,T=EG(B,{type:"addRules",rules:J,behavior:q,destination:A});$G({type:"addRules",rules:J,behavior:q,destination:A}),Q(T);let j=J.map((_)=>({ruleValue:_,ruleBehavior:q,source:A})),S=MJ.isSandboxingEnabled()&&MJ.isAutoAllowBashIfSandboxedEnabled(),l=gJ(T,{sandboxAutoAllowEnabled:S}).filter((_)=>J.some((R)=>R.toolName===_.rule.ruleValue.toolName&&R.ruleContent===_.rule.ruleValue.ruleContent));X(j,l.length>0?l:void 0)}},G[1]=B,G[2]=X,G[3]=N,G[4]=q,G[5]=J,G[6]=Q,G[7]=W;else W=G[7];let z=W,L;if(G[8]!==J.length)L=bJ(J.length,"rule"),G[8]=J.length,G[9]=L;else L=G[9];let I=`Add ${q} permission ${L}`,M;if(G[10]!==J)M=J.map(RX),G[10]=J,G[11]=M;else M=G[11];let O;if(G[12]!==M)O=Z(C,{flexDirection:"column",paddingX:2,children:M}),G[12]=M,G[13]=O;else O=G[13];let K=J.length===1?"Where should this rule be saved?":"Where should these rules be saved?",D;if(G[14]!==K)D=Z(H,{children:K}),G[14]=K,G[15]=D;else D=G[15];let w;if(G[16]!==z)w=Z(n,{options:k,onChange:z}),G[16]=z,G[17]=w;else w=G[17];let f;if(G[18]!==D||G[19]!==w)f=F(C,{flexDirection:"column",marginY:1,children:[D,w]}),G[18]=D,G[19]=w,G[20]=f;else f=G[20];let b;if(G[21]!==N||G[22]!==O||G[23]!==f||G[24]!==I)b=F(sG,{title:I,onCancel:N,color:"permission",children:[O,f]}),G[21]=N,G[22]=O,G[23]=f,G[24]=I,G[25]=b;else b=G[25];return b}function RX(U){return F(C,{flexDirection:"column",children:[Z(H,{bold:!0,children:u(U)}),Z(oG,{ruleValue:U})]},u(U))}var jJ;var CJ=e(()=>{VG();XG();KJ();HJ();CX();vX();TX();jX();gX();TJ();EJ();x();jJ=i(JG(),1)});function cJ(U){let G=xJ.c(24),{onCancel:X,onSubmit:N,ruleBehavior:J}=U,[q,B]=AJ.useState(""),[Q,E]=AJ.useState(0),k=FG(),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},G[0]=W;else W=G[0];PG("confirm:no",X,W);let{columns:z}=SJ(),L=z-6,I;if(G[1]!==N||G[2]!==J)I=(j)=>{let S=j.trim();if(S.length===0)return;let p=yJ(S);N(p,J)},G[1]=N,G[2]=J,G[3]=I;else I=G[3];let M=I,O;if(G[4]!==J)O=F(H,{bold:!0,color:"permission",children:["Add ",J," permission rule"]}),G[4]=J,G[5]=O;else O=G[5];let K;if(G[6]===Symbol.for("react.memo_cache_sentinel"))K=Z(RJ,{}),G[6]=K;else K=G[6];let D,w;if(G[7]===Symbol.for("react.memo_cache_sentinel"))D=Z(H,{bold:!0,children:u({toolName:pJ.name})}),w=Z(H,{bold:!1,children:" or "}),G[7]=D,G[8]=w;else D=G[7],w=G[8];let f;if(G[9]===Symbol.for("react.memo_cache_sentinel"))f=F(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",D,w,Z(H,{bold:!0,children:u({toolName:rG.name,ruleContent:"ls:*"})})]}),G[9]=f;else f=G[9];let b;if(G[10]!==Q||G[11]!==M||G[12]!==q||G[13]!==L)b=F(C,{flexDirection:"column",children:[f,Z(C,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Z(hJ,{showCursor:!0,value:q,onChange:B,onSubmit:M,placeholder:`Enter permission rule${YG.ellipsis}`,columns:L,cursorOffset:Q,onChangeCursorOffset:E})})]}),G[10]=Q,G[11]=M,G[12]=q,G[13]=L,G[14]=b;else b=G[14];let g;if(G[15]!==O||G[16]!==b)g=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,b]}),G[15]=O,G[16]=b,G[17]=g;else g=G[17];let A;if(G[18]!==k.keyName||G[19]!==k.pending)A=Z(C,{marginLeft:3,children:k.pending?F(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Z(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),G[18]=k.keyName,G[19]=k.pending,G[20]=A;else A=G[20];let T;if(G[21]!==A||G[22]!==g)T=F(r,{children:[g,A]}),G[21]=A,G[22]=g,G[23]=T;else T=G[23];return T}var xJ,AJ;var dJ=e(()=>{BJ();_X();mJ();SX();XG();_J();FJ();mX();HJ();x();xJ=i(JG(),1),AJ=i(tG(),1)});function aJ(U){let G=lJ.c(30),{onHeaderFocusChange:X,onStateChange:N}=U,{headerFocused:J,focusHeader:q}=OG(),B,Q;if(G[0]!==J||G[1]!==X)B=()=>{X?.(J)},Q=[J,X],G[0]=J,G[1]=X,G[2]=B,G[3]=Q;else B=G[2],Q=G[3];GG.useEffect(B,Q);let[E]=GG.useState(cX),[k,W]=GG.useState(xX),[z,L]=GG.useState(pX),[I,M]=GG.useState(0),O,K;if(G[4]!==k||G[5]!==E||G[6]!==N||G[7]!==z)O=()=>{N({approved:k,retry:z,denials:E})},K=[k,z,E,N],G[4]=k,G[5]=E,G[6]=N,G[7]=z,G[8]=O,G[9]=K;else O=G[8],K=G[9];GG.useEffect(O,K);let D;if(G[10]===Symbol.for("react.memo_cache_sentinel"))D=(R)=>{let m=Number(R);W((c)=>{let h=new Set(c);if(h.has(m))h.delete(m);else h.add(m);return h})},G[10]=D;else D=G[10];let w=D,f;if(G[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},G[11]=f;else f=G[11];let b=f,g;if(G[12]!==I)g=(R,m)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},G[12]=I,G[13]=g;else g=G[13];let A=E.length>0,T;if(G[14]!==A)T={isActive:A},G[14]=A,G[15]=T;else T=G[15];if(uJ(g,T),E.length===0){let R;if(G[16]===Symbol.for("react.memo_cache_sentinel"))R=Z(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),G[16]=R;else R=G[16];return R}let j;if(G[17]!==k||G[18]!==E||G[19]!==z){let R;if(G[21]!==k||G[22]!==z)R=(m,c)=>{let h=k.has(c),GJ=z.has(c)?" (retry)":"";return{label:F(H,{children:[Z(iJ,{status:h?"success":"error",withSpace:!0}),m.display,Z(H,{dimColor:!0,children:GJ})]}),value:String(c)}},G[21]=k,G[22]=z,G[23]=R;else R=G[23];j=E.map(R),G[17]=k,G[18]=E,G[19]=z,G[20]=j}else j=G[20];let S=j,p;if(G[24]===Symbol.for("react.memo_cache_sentinel"))p=Z(H,{children:"Commands recently denied by the auto mode classifier."}),G[24]=p;else p=G[24];let l=Math.min(10,S.length),_;if(G[25]!==q||G[26]!==J||G[27]!==S||G[28]!==l)_=F(C,{flexDirection:"column",children:[p,Z(C,{marginTop:1,children:Z(n,{options:S,onChange:w,onFocus:b,visibleOptionCount:l,isDisabled:J,onUpFromFirstItem:q})})]}),G[25]=q,G[26]=J,G[27]=S,G[28]=l,G[29]=_;else _=G[29];return _}function pX(){return new Set}function xX(){return new Set}function cX(){return eG()}var lJ,GG;var rJ=e(()=>{XG();nJ();VG();hX();fJ();x();lJ=i(JG(),1),GG=i(tG(),1)});function $J(U){let G=oJ.c(19),{directoryPath:X,onRemove:N,onCancel:J,permissionContext:q,setPermissionContext:B}=U,Q;if(G[0]!==X||G[1]!==N||G[2]!==q||G[3]!==B)Q=()=>{let K=EG(q,{type:"removeDirectories",directories:[X],destination:"session"});B(K),N()},G[0]=X,G[1]=N,G[2]=q,G[3]=B,G[4]=Q;else Q=G[4];let E=Q,k;if(G[5]!==E||G[6]!==J)k=(K)=>{if(K==="yes")E();else J()},G[5]=E,G[6]=J,G[7]=k;else k=G[7];let W=k,z;if(G[8]!==X)z=Z(C,{marginX:2,flexDirection:"column",children:Z(H,{bold:!0,children:X})}),G[8]=X,G[9]=z;else z=G[9];let L;if(G[10]===Symbol.for("react.memo_cache_sentinel"))L=Z(H,{children:"Claude Code will no longer have access to files in this directory."}),G[10]=L;else L=G[10];let I;if(G[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],G[11]=I;else I=G[11];let M;if(G[12]!==W||G[13]!==J)M=Z(n,{onChange:W,onCancel:J,options:I}),G[12]=W,G[13]=J,G[14]=M;else M=G[14];let O;if(G[15]!==J||G[16]!==z||G[17]!==M)O=F(sG,{title:"Remove directory from workspace?",onCancel:J,color:"error",children:[z,L,M]}),G[15]=J,G[16]=z,G[17]=M,G[18]=O;else O=G[18];return O}var oJ;var sJ=e(()=>{VG();XG();KJ();TJ();x();oJ=i(JG(),1)});function JX(U){let G=eJ.c(23),{onExit:X,toolPermissionContext:N,onRequestAddDirectory:J,onRequestRemoveDirectory:q,onHeaderFocusChange:B}=U,{headerFocused:Q,focusHeader:E}=OG(),k,W;if(G[0]!==Q||G[1]!==B)k=()=>{B?.(Q)},W=[Q,B],G[0]=Q,G[1]=B,G[2]=k,G[3]=W;else k=G[2],W=G[3];GX.useEffect(k,W);let z;if(G[4]!==N.additionalWorkingDirectories)z=Array.from(N.additionalWorkingDirectories.keys()).map(iX),G[4]=N.additionalWorkingDirectories,G[5]=z;else z=G[5];let L=z,I;if(G[6]!==L||G[7]!==J||G[8]!==q)I=(A)=>{if(A==="add-directory"){J();return}let T=L.find((j)=>j.path===A);if(T&&T.isDeletable)q(T.path)},G[6]=L,G[7]=J,G[8]=q,G[9]=I;else I=G[9];let M=I,O;if(G[10]!==X)O=()=>X("Workspace dialog dismissed",{display:"system"}),G[10]=X,G[11]=O;else O=G[11];let K=O,D;if(G[12]!==L){D=L.map(uX);let A;if(G[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${YG.ellipsis}`,value:"add-directory"},G[14]=A;else A=G[14];D.push(A),G[12]=L,G[13]=D}else D=G[13];let w=D,f;if(G[15]===Symbol.for("react.memo_cache_sentinel"))f=F(C,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Z(H,{children:`- ${tJ()}`}),Z(H,{dimColor:!0,children:"(Original working directory)"})]}),G[15]=f;else f=G[15];let b=Math.min(10,w.length),g;if(G[16]!==E||G[17]!==K||G[18]!==M||G[19]!==Q||G[20]!==w||G[21]!==b)g=F(C,{flexDirection:"column",marginBottom:1,children:[f,Z(n,{options:w,onChange:M,onCancel:K,visibleOptionCount:b,onUpFromFirstItem:E,isDisabled:Q})]}),G[16]=E,G[17]=K,G[18]=M,G[19]=Q,G[20]=w,G[21]=b,G[22]=g;else g=G[22];return g}function uX(U){return{label:U.path,value:U.path}}function iX(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eJ,GX;var XX=e(()=>{BJ();dX();VG();XG();fJ();x();eJ=i(JG(),1),GX=i(tG(),1)});function eX(U){let G=MG.c(4),{rule:X}=U,N;if(G[0]!==X.source)N=LX(X.source),G[0]=X.source,G[1]=N;else N=G[1];let J=`From ${N}`,q;if(G[2]!==J)q=Z(H,{dimColor:!0,children:J}),G[2]=J,G[3]=q;else q=G[3];return q}function GY(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function JY(U){let G=MG.c(42),{rule:X,onDelete:N,onCancel:J}=U,q=FG(),B;if(G[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},G[0]=B;else B=G[0];PG("confirm:no",J,B);let Q;if(G[1]!==X.ruleValue)Q=u(X.ruleValue),G[1]=X.ruleValue,G[2]=Q;else Q=G[2];let E;if(G[3]!==Q)E=Z(H,{bold:!0,children:Q}),G[3]=Q,G[4]=E;else E=G[4];let k;if(G[5]!==X.ruleValue)k=Z(oG,{ruleValue:X.ruleValue}),G[5]=X.ruleValue,G[6]=k;else k=G[6];let W;if(G[7]!==X)W=Z(eX,{rule:X}),G[7]=X,G[8]=W;else W=G[8];let z;if(G[9]!==E||G[10]!==k||G[11]!==W)z=F(C,{flexDirection:"column",marginX:2,children:[E,k,W]}),G[9]=E,G[10]=k,G[11]=W,G[12]=z;else z=G[12];let L=z,I;if(G[13]!==q.keyName||G[14]!==q.pending)I=Z(C,{marginLeft:3,children:q.pending?F(H,{dimColor:!0,children:["Press ",q.keyName," again to exit"]}):Z(H,{dimColor:!0,children:"Esc to cancel"})}),G[13]=q.keyName,G[14]=q.pending,G[15]=I;else I=G[15];let M=I;if(X.source==="policySettings"){let T;if(G[16]===Symbol.for("react.memo_cache_sentinel"))T=Z(H,{bold:!0,color:"permission",children:"Rule details"}),G[16]=T;else T=G[16];let j;if(G[17]===Symbol.for("react.memo_cache_sentinel"))j=F(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
2
- `,"Contact your system administrator for more information."]}),G[17]=j;else j=G[17];let S;if(G[18]!==L)S=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[T,L,j]}),G[18]=L,G[19]=S;else S=G[19];let p;if(G[20]!==M||G[21]!==S)p=F(r,{children:[S,M]}),G[20]=M,G[21]=S,G[22]=p;else p=G[22];return p}let O;if(G[23]!==X.ruleBehavior)O=GY(X.ruleBehavior),G[23]=X.ruleBehavior,G[24]=O;else O=G[24];let K;if(G[25]!==O)K=F(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),G[25]=O,G[26]=K;else K=G[26];let D;if(G[27]===Symbol.for("react.memo_cache_sentinel"))D=Z(H,{children:"Are you sure you want to delete this permission rule?"}),G[27]=D;else D=G[27];let w;if(G[28]!==J||G[29]!==N)w=(T)=>T==="yes"?N():J(),G[28]=J,G[29]=N,G[30]=w;else w=G[30];let f;if(G[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],G[31]=f;else f=G[31];let b;if(G[32]!==J||G[33]!==w)b=Z(n,{onChange:w,onCancel:J,options:f}),G[32]=J,G[33]=w,G[34]=b;else b=G[34];let g;if(G[35]!==L||G[36]!==b||G[37]!==K)g=F(C,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,D,b]}),G[35]=L,G[36]=b,G[37]=K,G[38]=g;else g=G[38];let A;if(G[39]!==M||G[40]!==g)A=F(r,{children:[g,M]}),G[39]=M,G[40]=g,G[41]=A;else A=G[41];return A}function XY(U){let G=MG.c(26),{options:X,searchQuery:N,isSearchMode:J,isFocused:q,onSelect:B,onCancel:Q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,z=EX(),{headerFocused:L,focusHeader:I,blurHeader:M}=OG(),O,K;if(G[0]!==M||G[1]!==L||G[2]!==J)O=()=>{if(J&&L)M()},K=[J,L,M],G[0]=M,G[1]=L,G[2]=J,G[3]=O,G[4]=K;else O=G[3],K=G[4];d.useEffect(O,K);let D,w;if(G[5]!==L||G[6]!==W)D=()=>{W?.(L)},w=[L,W],G[5]=L,G[6]=W,G[7]=D,G[8]=w;else D=G[7],w=G[8];d.useEffect(D,w);let f=J&&!L,b;if(G[9]!==k||G[10]!==q||G[11]!==N||G[12]!==f||G[13]!==z)b=Z(C,{marginBottom:1,flexDirection:"column",children:Z(OX,{query:N,isFocused:f,isTerminalFocused:q,width:z,cursorOffset:k})}),G[9]=k,G[10]=q,G[11]=N,G[12]=f,G[13]=z,G[14]=b;else b=G[14];let g=Math.min(10,X.length),A=J||L,T;if(G[15]!==I||G[16]!==E||G[17]!==Q||G[18]!==B||G[19]!==X||G[20]!==g||G[21]!==A)T=Z(n,{options:X,onChange:B,onCancel:Q,visibleOptionCount:g,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),G[15]=I,G[16]=E,G[17]=Q,G[18]=B,G[19]=X,G[20]=g,G[21]=A,G[22]=T;else T=G[22];let j;if(G[23]!==b||G[24]!==T)j=F(C,{flexDirection:"column",children:[b,T]}),G[23]=b,G[24]=T,G[25]=j;else j=G[25];return j}function VJ(U){let G=MG.c(27),X,N,J,q,B,Q,E,k,W;if(G[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...D}=U;W=M,J=K,q=D,N=C,Q="column",E=W==="allow"?0:void 0;let w;if(G[10]===Symbol.for("react.memo_cache_sentinel"))w={allow:"Claude Code won't ask before using allowed tools.",ask:"Claude Code will always ask for confirmation before using these tools.",deny:"Claude Code will always reject requests to use denied tools."},G[10]=w;else w=G[10];let f=w[W];if(G[11]!==f)k=Z(H,{children:f}),G[11]=f,G[12]=k;else k=G[12];X=XY,B=O(W,q.searchQuery),G[0]=U,G[1]=X,G[2]=N,G[3]=J,G[4]=q,G[5]=B,G[6]=Q,G[7]=E,G[8]=k,G[9]=W}else X=G[1],N=G[2],J=G[3],q=G[4],B=G[5],Q=G[6],E=G[7],k=G[8],W=G[9];let z;if(G[13]!==J||G[14]!==W)z=(M)=>J(M,W),G[13]=J,G[14]=W,G[15]=z;else z=G[15];let L;if(G[16]!==X||G[17]!==q||G[18]!==B.options||G[19]!==z)L=Z(X,{options:B.options,onSelect:z,...q}),G[16]=X,G[17]=q,G[18]=B.options,G[19]=z,G[20]=L;else L=G[20];let I;if(G[21]!==N||G[22]!==Q||G[23]!==E||G[24]!==k||G[25]!==L)I=F(N,{flexDirection:Q,flexShrink:E,children:[k,L]}),G[21]=N,G[22]=Q,G[23]=E,G[24]=k,G[25]=L,G[26]=I;else I=G[26];return I}function MX(U){let G=MG.c(113),{onExit:X,initialTab:N,onRetryDenials:J}=U,q;if(G[0]===Symbol.for("react.memo_cache_sentinel"))q=eG(),G[0]=q;else q=G[0];let B=q.length>0,Q=N??(B?"recent":"allow"),E;if(G[1]===Symbol.for("react.memo_cache_sentinel"))E=[],G[1]=E;else E=G[1];let[k,W]=d.useState(E),z=zX(UY),L=NX(),I=YX(),M;if(G[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},G[2]=M;else M=G[2];let O=d.useRef(M),K;if(G[3]===Symbol.for("react.memo_cache_sentinel"))K=(Y)=>{O.current=Y},G[3]=K;else K=G[3];let D=K,[w,f]=d.useState(),[b,g]=d.useState(),[A,T]=d.useState(null),[j,S]=d.useState(null),[p,l]=d.useState(!1),[_,R]=d.useState(null),[m,c]=d.useState(!1),[h,GJ]=d.useState(!0),bG;if(G[4]===Symbol.for("react.memo_cache_sentinel"))bG=(Y)=>{GJ(Y)},G[4]=bG;else bG=G[4];let JJ=bG,HG;if(G[5]!==z)HG=new Map,UX(z).forEach((Y)=>{HG.set(DG(Y),Y)}),G[5]=z,G[6]=HG;else HG=G[6];let XJ=HG,KG;if(G[7]!==z)KG=new Map,kX(z).forEach((Y)=>{KG.set(DG(Y),Y)}),G[7]=z,G[8]=KG;else KG=G[8];let YJ=KG,AG;if(G[9]!==z)AG=new Map,qX(z).forEach((Y)=>{AG.set(DG(Y),Y)}),G[9]=z,G[10]=AG;else AG=G[10];let ZJ=AG,TG;if(G[11]!==XJ||G[12]!==ZJ||G[13]!==YJ)TG=(Y,V)=>{let P=V===void 0?"":V,v=(()=>{switch(Y){case"allow":return XJ;case"deny":return YJ;case"ask":return ZJ;case"workspace":case"recent":return new Map}})(),y=[];if(Y!=="workspace"&&Y!=="recent"&&!P)y.push({label:`Add a new rule${YG.ellipsis}`,value:"add-new-rule"});let a=Array.from(v.keys()).sort((WG,t)=>{let fG=v.get(WG),PJ=v.get(t);if(fG&&PJ){let DX=u(fG.ruleValue).toLowerCase(),bX=u(PJ.ruleValue).toLowerCase();return DX.localeCompare(bX)}return 0}),wG=P.toLowerCase();for(let WG of a){let t=v.get(WG);if(t){let fG=u(t.ruleValue);if(P&&!fG.toLowerCase().includes(wG))continue;y.push({label:fG,value:WG})}}return{options:y,rulesByKey:v}},G[11]=XJ,G[12]=ZJ,G[13]=YJ,G[14]=TG;else TG=G[14];let o=TG,ZG=FG(),BG=!w&&!A&&!j&&!p&&!_,zJ=BG&&m,gG;if(G[15]===Symbol.for("react.memo_cache_sentinel"))gG=()=>{c(!1)},G[15]=gG;else gG=G[15];let jG;if(G[16]!==zJ)jG={isActive:zJ,onExit:gG},G[16]=zJ,G[17]=jG;else jG=G[17];let{query:NJ,setQuery:vG,cursorOffset:LJ}=IX(jG),CG;if(G[18]!==m||G[19]!==BG||G[20]!==vG)CG=(Y)=>{if(!BG)return;if(m)return;if(Y.ctrl||Y.meta)return;if(Y.key==="/")Y.preventDefault(),c(!0),vG("");else if(Y.key.length===1&&Y.key!=="j"&&Y.key!=="k"&&Y.key!=="m"&&Y.key!=="i"&&Y.key!=="r"&&Y.key!==" ")Y.preventDefault(),c(!0),vG(Y.key)},G[18]=m,G[19]=BG,G[20]=vG,G[21]=CG;else CG=G[21];let UJ=CG,yG;if(G[22]!==o)yG=(Y,V)=>{let{rulesByKey:P}=o(V);if(Y==="add-new-rule"){T(V);return}else{f(P.get(Y));return}},G[22]=o,G[23]=yG;else yG=G[23];let kJ=yG,RG;if(G[24]===Symbol.for("react.memo_cache_sentinel"))RG=()=>{T(null)},G[24]=RG;else RG=G[24];let AX=RG,SG;if(G[25]===Symbol.for("react.memo_cache_sentinel"))SG=(Y,V)=>{S({ruleValue:Y,ruleBehavior:V}),T(null)},G[25]=SG;else SG=G[25];let BX=SG,_G;if(G[26]===Symbol.for("react.memo_cache_sentinel"))_G=(Y,V)=>{S(null);for(let P of Y)W((v)=>[...v,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let v=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${YG.warning} Warning: ${u(P.rule.ruleValue)} is ${v}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},G[26]=_G;else _G=G[26];let fX=_G,mG;if(G[27]===Symbol.for("react.memo_cache_sentinel"))mG=()=>{S(null)},G[27]=mG;else mG=G[27];let VX=mG,hG;if(G[28]===Symbol.for("react.memo_cache_sentinel"))hG=()=>l(!0),G[28]=hG;else hG=G[28];let PX=hG,pG;if(G[29]===Symbol.for("react.memo_cache_sentinel"))pG=(Y)=>R(Y),G[29]=pG;else pG=G[29];let FX=pG,xG;if(G[30]!==k||G[31]!==X||G[32]!==J)xG=()=>{let Y=O.current,V=(y)=>Array.from(y).map((a)=>Y.denials[a]).filter(LY),P=V(Y.retry);if(P.length>0){let y=P.map(NY);J?.(y),X(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let v=V(Y.approved);if(v.length>0||k.length>0){let y=v.length>0?[`Approved ${v.map(zY).join(", ")}`]:[];X([...y,...k].join(`
3
- `))}else X("Permissions dialog dismissed",{display:"system"})},G[30]=k,G[31]=X,G[32]=J,G[33]=xG;else xG=G[33];let cG=xG,qJ=BG&&!m,dG;if(G[34]!==qJ)dG={context:"Settings",isActive:qJ},G[34]=qJ,G[35]=dG;else dG=G[35];PG("confirm:no",cG,dG);let uG;if(G[36]!==o||G[37]!==w||G[38]!==L||G[39]!==z)uG=()=>{if(!w)return;let{options:Y}=o(w.ruleBehavior),V=DG(w),P=Y.filter(ZY).map(YY),v=P.indexOf(V),y;if(v!==-1){if(v<P.length-1)y=P[v+1];else if(v>0)y=P[v-1]}g(y),QX({rule:w,initialContext:z,setToolPermissionContext(a){L((wG)=>({...wG,toolPermissionContext:a}))}}),W((a)=>[...a,`Deleted ${w.ruleBehavior} rule ${s.bold(u(w.ruleValue))}`]),f(void 0)},G[36]=o,G[37]=w,G[38]=L,G[39]=z,G[40]=uG;else uG=G[40];let QJ=uG;if(w){let Y;if(G[41]===Symbol.for("react.memo_cache_sentinel"))Y=()=>f(void 0),G[41]=Y;else Y=G[41];let V;if(G[42]!==QJ||G[43]!==w)V=Z(JY,{rule:w,onDelete:QJ,onCancel:Y}),G[42]=QJ,G[43]=w,G[44]=V;else V=G[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let Y;if(G[45]!==A)Y=Z(cJ,{onCancel:AX,onSubmit:BX,ruleBehavior:A}),G[45]=A,G[46]=Y;else Y=G[46];return Y}if(j){let Y;if(G[47]!==j.ruleValue)Y=[j.ruleValue],G[47]=j.ruleValue,G[48]=Y;else Y=G[48];let V;if(G[49]!==L)V=(v)=>{L((y)=>({...y,toolPermissionContext:v}))},G[49]=L,G[50]=V;else V=G[50];let P;if(G[51]!==Y||G[52]!==V||G[53]!==z||G[54]!==j.ruleBehavior)P=Z(vJ,{onAddRules:fX,onCancel:VX,ruleValues:Y,ruleBehavior:j.ruleBehavior,initialContext:z,setToolPermissionContext:V}),G[51]=Y,G[52]=V,G[53]=z,G[54]=j.ruleBehavior,G[55]=P;else P=G[55];return P}if(p){let Y;if(G[56]!==L||G[57]!==z)Y=(v,y)=>{let wG={type:"addDirectories",directories:[v],destination:y?"localSettings":"session"},WG=EG(z,wG);if(L((t)=>({...t,toolPermissionContext:WG})),y)$G(wG);W((t)=>[...t,`Added directory ${s.bold(v)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},G[56]=L,G[57]=z,G[58]=Y;else Y=G[58];let V;if(G[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),G[59]=V;else V=G[59];let P;if(G[60]!==Y||G[61]!==z)P=Z(wX,{onAddDirectory:Y,onCancel:V,permissionContext:z}),G[60]=Y,G[61]=z,G[62]=P;else P=G[62];return P}if(_){let Y;if(G[63]!==_)Y=()=>{W((y)=>[...y,`Removed directory ${s.bold(_)} from workspace`]),R(null)},G[63]=_,G[64]=Y;else Y=G[64];let V;if(G[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),G[65]=V;else V=G[65];let P;if(G[66]!==L)P=(y)=>{L((a)=>({...a,toolPermissionContext:y}))},G[66]=L,G[67]=P;else P=G[67];let v;if(G[68]!==_||G[69]!==Y||G[70]!==P||G[71]!==z)v=Z($J,{directoryPath:_,onRemove:Y,onCancel:V,permissionContext:z,setPermissionContext:P}),G[68]=_,G[69]=Y,G[70]=P,G[71]=z,G[72]=v;else v=G[72];return v}let iG;if(G[73]!==o||G[74]!==cG||G[75]!==kJ||G[76]!==m||G[77]!==I||G[78]!==b||G[79]!==LJ||G[80]!==NJ)iG={searchQuery:NJ,isSearchMode:m,isFocused:I,onCancel:cG,lastFocusedRuleKey:b,cursorOffset:LJ,getRulesOptions:o,handleToolSelect:kJ,onHeaderFocusChange:JJ},G[73]=o,G[74]=cG,G[75]=kJ,G[76]=m,G[77]=I,G[78]=b,G[79]=LJ,G[80]=NJ,G[81]=iG;else iG=G[81];let $=iG,wJ=!!w||!!A||!!j||p||!!_,WJ=!m,nG;if(G[82]===Symbol.for("react.memo_cache_sentinel"))nG=Z(IG,{id:"recent",title:"Recently denied",children:Z(aJ,{onHeaderFocusChange:JJ,onStateChange:D})}),G[82]=nG;else nG=G[82];let zG;if(G[83]!==$)zG=Z(IG,{id:"allow",title:"Allow",children:Z(VJ,{tab:"allow",...$})}),G[83]=$,G[84]=zG;else zG=G[84];let NG;if(G[85]!==$)NG=Z(IG,{id:"ask",title:"Ask",children:Z(VJ,{tab:"ask",...$})}),G[85]=$,G[86]=NG;else NG=G[86];let LG;if(G[87]!==$)LG=Z(IG,{id:"deny",title:"Deny",children:Z(VJ,{tab:"deny",...$})}),G[87]=$,G[88]=LG;else LG=G[88];let lG;if(G[89]===Symbol.for("react.memo_cache_sentinel"))lG=Z(H,{children:"Claude Code can read files in the workspace, and make edits when auto-accept edits is on."}),G[89]=lG;else lG=G[89];let UG;if(G[90]!==X||G[91]!==z)UG=Z(IG,{id:"workspace",title:"Workspace",children:F(C,{flexDirection:"column",children:[lG,Z(JX,{onExit:X,toolPermissionContext:z,onRequestAddDirectory:PX,onRequestRemoveDirectory:FX,onHeaderFocusChange:JJ})]})}),G[90]=X,G[91]=z,G[92]=UG;else UG=G[92];let kG;if(G[93]!==Q||G[94]!==wJ||G[95]!==WJ||G[96]!==zG||G[97]!==NG||G[98]!==LG||G[99]!==UG)kG=F(WX,{title:"Permissions:",color:"permission",defaultTab:Q,hidden:wJ,initialHeaderFocused:!B,navFromContent:WJ,children:[nG,zG,NG,LG,UG]}),G[93]=Q,G[94]=wJ,G[95]=WJ,G[96]=zG,G[97]=NG,G[98]=LG,G[99]=UG,G[100]=kG;else kG=G[100];let qG;if(G[101]!==Q||G[102]!==ZG.keyName||G[103]!==ZG.pending||G[104]!==h||G[105]!==m)qG=Z(C,{marginTop:1,paddingLeft:1,children:Z(H,{dimColor:!0,children:ZG.pending?F(r,{children:["Press ",ZG.keyName," again to exit"]}):h?Z(r,{children:"←/→ tab switch · ↓ return · Esc cancel"}):m?Z(r,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&Q==="recent"?Z(r,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Z(r,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),G[101]=Q,G[102]=ZG.keyName,G[103]=ZG.pending,G[104]=h,G[105]=m,G[106]=qG;else qG=G[106];let QG;if(G[107]!==kG||G[108]!==qG)QG=F(ZX,{color:"permission",children:[kG,qG]}),G[107]=kG,G[108]=qG,G[109]=QG;else QG=G[109];let aG;if(G[110]!==UJ||G[111]!==QG)aG=Z(C,{flexDirection:"column",onKeyDown:UJ,children:QG}),G[110]=UJ,G[111]=QG,G[112]=aG;else aG=G[112];return aG}function YY(U){return U.value}function ZY(U){return U.value!=="add-new-rule"}function zY(U){return s.bold(U.display)}function NY(U){return U.display}function LY(U){return U!==void 0}function UY(U){return U.toolPermissionContext}var MG,d;var HX=e(()=>{lX();BJ();rX();KJ();VG();mJ();tX();XG();_J();nJ();HJ();oX();nX();aX();fJ();sX();CJ();$X();EJ();dJ();rJ();sJ();XX();x();MG=i(JG(),1),d=i(tG(),1)});var _Z=async(U,G)=>{return Z(MX,{onExit:U,onRetryDenials:(X)=>{G.setMessages((N)=>[...N,KX(X)])}})};var kY=e(()=>{HX();qY();x()});kY();export{_Z as call};
@@ -1 +0,0 @@
1
- import{Hc as v,Ic as d}from"./cli-0.5.12-y66stscm.mjs";import{Bf as D,xf as B,yf as j,zf as F}from"./cli-0.5.12-xdx5bcxv.mjs";import{Cm as I,Fk as U,Gk as _,Gm as u,Jk as g,Xk as A,al as m,sH as y,uH as P}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import"./cli-0.5.12-f5pfjvdk.mjs";import{YX as c,_V as T,rX as V,tX as G}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import{BZ as w,CZ as W,DZ as Z}from"./cli-0.5.12-c6whkxmz.mjs";import"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import{rma as h,sla as R}from"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as C,aoa as N}from"./cli-0.5.12-xzeb7mtb.mjs";function $(z){let b=M.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),S=X?I(X):void 0,E=await v(w($,{planContent:q,planPath:f,editorName:S}));return z(E),null}var M;var x=N(()=>{h();c();j();u();m();P();g();D();d();Z();M=C(T(),1)});x();export{bb as call};
@@ -1 +0,0 @@
1
- import{aoa as z}from"./cli-0.5.12-xzeb7mtb.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};