@claudiolabs/claudin 0.6.1 → 0.6.2

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 (851) hide show
  1. package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +1 -0
  2. package/dist/chunks/App-0.6.2-81hq55t1.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +3 -0
  10. package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +1 -0
  29. package/dist/chunks/agents-0.6.2-pwkawpda.mjs +110 -0
  30. package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +3 -0
  31. package/dist/chunks/api-0.6.2-r9z30232.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +1 -0
  34. package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +1 -0
  35. package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +1 -0
  39. package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +1 -0
  41. package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +1 -0
  42. package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +3 -0
  43. package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +4 -0
  46. package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +1 -0
  49. package/dist/chunks/clear-0.6.2-301n503a.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +1 -0
  51. package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +42 -0
  52. package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +4 -0
  53. package/dist/chunks/cli-0.6.2-0p39svq8.mjs +2 -0
  54. package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +2 -0
  55. package/dist/chunks/cli-0.6.2-1ahapm20.mjs +2 -0
  56. package/dist/chunks/cli-0.6.2-1b9hx344.mjs +2 -0
  57. package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +2 -0
  58. package/dist/chunks/cli-0.6.2-1hrabb68.mjs +3 -0
  59. package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +9 -0
  60. package/dist/chunks/cli-0.6.2-1y907j57.mjs +2 -0
  61. package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +2 -0
  62. package/dist/chunks/cli-0.6.2-26qywcgz.mjs +2 -0
  63. package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +2 -0
  64. package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +3 -0
  65. package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +2 -0
  66. package/dist/chunks/cli-0.6.2-2z19ppek.mjs +15 -0
  67. package/dist/chunks/cli-0.6.2-334vw6ys.mjs +2 -0
  68. package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +2 -0
  69. package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +2 -0
  70. package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +2 -0
  71. package/dist/chunks/cli-0.6.2-42d88f3r.mjs +2 -0
  72. package/dist/chunks/cli-0.6.2-43f0sknv.mjs +2 -0
  73. package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +2 -0
  74. package/dist/chunks/cli-0.6.2-4a5t390f.mjs +2 -0
  75. package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +15 -0
  76. package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +2 -0
  77. package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +39 -0
  78. package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +5323 -0
  79. package/dist/chunks/cli-0.6.2-4py7r63v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +59 -0
  81. package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +2 -0
  82. package/dist/chunks/cli-0.6.2-5jempndm.mjs +133 -0
  83. package/dist/chunks/cli-0.6.2-657fbmws.mjs +2 -0
  84. package/dist/chunks/cli-0.6.2-6bacgc39.mjs +3 -0
  85. package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +5 -0
  86. package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +2 -0
  87. package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +3 -0
  88. package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +3 -0
  89. package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +4 -0
  90. package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +2 -0
  91. package/dist/chunks/cli-0.6.2-7egesyh9.mjs +4 -0
  92. package/dist/chunks/cli-0.6.2-7rmm482v.mjs +12 -0
  93. package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +2 -0
  94. package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +25 -0
  95. package/dist/chunks/cli-0.6.2-83ennmm8.mjs +21 -0
  96. package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +2 -0
  97. package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +5 -0
  98. package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +10 -0
  99. package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.2-974c5e67.mjs +9 -0
  101. package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +2 -0
  102. package/dist/chunks/cli-0.6.2-9mwrq250.mjs +3 -0
  103. package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +2 -0
  104. package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +2 -0
  105. package/dist/chunks/cli-0.6.2-9qtj477e.mjs +2 -0
  106. package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +2 -0
  107. package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +4 -0
  108. package/dist/chunks/cli-0.6.2-a8atyp18.mjs +2 -0
  109. package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +2 -0
  110. package/dist/chunks/cli-0.6.2-aq30pg47.mjs +2 -0
  111. package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +6 -0
  112. package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +2 -0
  113. package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +2 -0
  114. package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +2 -0
  115. package/dist/chunks/cli-0.6.2-bkff60ff.mjs +2 -0
  116. package/dist/chunks/cli-0.6.2-br678d1b.mjs +8 -0
  117. package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +2 -0
  118. package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +2 -0
  119. package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +2 -0
  120. package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +4 -0
  121. package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +2 -0
  122. package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +2 -0
  123. package/dist/chunks/cli-0.6.2-d3evezft.mjs +1 -0
  124. package/dist/chunks/cli-0.6.2-d3y2w089.mjs +2 -0
  125. package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +2 -0
  126. package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +12 -0
  127. package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +2 -0
  128. package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +2 -0
  129. package/dist/chunks/cli-0.6.2-dv8abe56.mjs +7 -0
  130. package/dist/chunks/cli-0.6.2-dx6qfese.mjs +2 -0
  131. package/dist/chunks/cli-0.6.2-dy4zwces.mjs +2 -0
  132. package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +2 -0
  133. package/dist/chunks/cli-0.6.2-e26khw0m.mjs +6 -0
  134. package/dist/chunks/cli-0.6.2-e66qz53g.mjs +2 -0
  135. package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +16 -0
  136. package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +45 -0
  137. package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +5 -0
  138. package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +2 -0
  139. package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +2 -0
  140. package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +2 -0
  141. package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +2 -0
  142. package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +2 -0
  143. package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +6 -0
  144. package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +2 -0
  145. package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +2 -0
  146. package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +2 -0
  147. package/dist/chunks/cli-0.6.2-grf75vb7.mjs +2 -0
  148. package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +2 -0
  149. package/dist/chunks/cli-0.6.2-h72p44ws.mjs +24 -0
  150. package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +2 -0
  151. package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +193 -0
  152. package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +2 -0
  153. package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +2 -0
  154. package/dist/chunks/cli-0.6.2-hqmcear6.mjs +2 -0
  155. package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +34 -0
  156. package/dist/chunks/cli-0.6.2-j05kmd43.mjs +2 -0
  157. package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +2 -0
  158. package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +2 -0
  159. package/dist/chunks/cli-0.6.2-jrb4f391.mjs +15 -0
  160. package/dist/chunks/cli-0.6.2-jrpted0b.mjs +2 -0
  161. package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +2 -0
  162. package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +2 -0
  163. package/dist/chunks/cli-0.6.2-k9v931hm.mjs +2 -0
  164. package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +2 -0
  165. package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +2 -0
  166. package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +4 -0
  167. package/dist/chunks/cli-0.6.2-ky1drj50.mjs +2 -0
  168. package/dist/chunks/cli-0.6.2-mabejxsw.mjs +4 -0
  169. package/dist/chunks/cli-0.6.2-majp93c4.mjs +2 -0
  170. package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +3 -0
  172. package/dist/chunks/cli-0.6.2-n9610c8k.mjs +2 -0
  173. package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +2 -0
  174. package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +2 -0
  175. package/dist/chunks/cli-0.6.2-nwzye174.mjs +2 -0
  176. package/dist/chunks/cli-0.6.2-p0jszyht.mjs +3 -0
  177. package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +58 -0
  178. package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +2 -0
  179. package/dist/chunks/cli-0.6.2-q45wdma3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +2 -0
  181. package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +2 -0
  182. package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +2 -0
  183. package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +2 -0
  184. package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +2 -0
  185. package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +2 -0
  186. package/dist/chunks/cli-0.6.2-r4p904h3.mjs +67 -0
  187. package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +2 -0
  188. package/dist/chunks/cli-0.6.2-rde30n8x.mjs +2 -0
  189. package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +2 -0
  190. package/dist/chunks/cli-0.6.2-red287ya.mjs +2 -0
  191. package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +2 -0
  192. package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +2 -0
  193. package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +17 -0
  194. package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +24 -0
  195. package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +2 -0
  196. package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +2 -0
  197. package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +2 -0
  198. package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +2 -0
  199. package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +2 -0
  200. package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +133 -0
  201. package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +2 -0
  202. package/dist/chunks/cli-0.6.2-t038jmme.mjs +3 -0
  203. package/dist/chunks/cli-0.6.2-t3e59m32.mjs +2 -0
  204. package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +2 -0
  205. package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +2 -0
  206. package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +2 -0
  207. package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +2 -0
  208. package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +50 -0
  209. package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +20 -0
  210. package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +2 -0
  211. package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +2 -0
  212. package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +2 -0
  213. package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +2 -0
  214. package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +2 -0
  215. package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +18 -0
  216. package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +2 -0
  217. package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +3 -0
  218. package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +2 -0
  219. package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +2 -0
  220. package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +12 -0
  221. package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +2 -0
  222. package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +2 -0
  223. package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +18 -0
  224. package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +2 -0
  225. package/dist/chunks/cli-0.6.2-yep449sd.mjs +17 -0
  226. package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +2 -0
  227. package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +2 -0
  228. package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +4 -0
  229. package/dist/chunks/cli-0.6.2-yysvdabq.mjs +2 -0
  230. package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +4 -0
  231. package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +3 -0
  232. package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +4 -0
  233. package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +2 -0
  234. package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +18 -0
  235. package/dist/chunks/cli-0.6.2-zaahyems.mjs +2 -0
  236. package/dist/chunks/cli-0.6.2-zftyh47j.mjs +2 -0
  237. package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +2 -0
  238. package/dist/chunks/cli-0.6.2-zs4qp487.mjs +2 -0
  239. package/dist/chunks/client-0.6.2-8b0s065m.mjs +1 -0
  240. package/dist/chunks/color-0.6.2-jza3jez4.mjs +1 -0
  241. package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +3 -0
  242. package/dist/chunks/config-0.6.2-qjwjrd75.mjs +1 -0
  243. package/dist/chunks/config-0.6.2-xac3sjb7.mjs +1 -0
  244. package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +1 -0
  245. package/dist/chunks/context-0.6.2-w965073f.mjs +1 -0
  246. package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +1 -0
  247. package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +1 -0
  248. package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +1 -0
  249. package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +9 -0
  250. package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +1 -0
  252. package/dist/chunks/createSession-0.6.2-axgp009k.mjs +1 -0
  253. package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +1365 -0
  255. package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +1 -0
  257. package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +1 -0
  258. package/dist/chunks/diff-0.6.2-md180qh9.mjs +1 -0
  259. package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +1 -0
  262. package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +10 -0
  263. package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +1 -0
  265. package/dist/chunks/environments-0.6.2-fe197syt.mjs +1 -0
  266. package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +1 -0
  268. package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +1 -0
  269. package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +1 -0
  272. package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +1 -0
  273. package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +1 -0
  275. package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +1 -0
  277. package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +4 -0
  278. package/dist/chunks/grove-0.6.2-a2wgccag.mjs +1 -0
  279. package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +1 -0
  280. package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +2 -0
  281. package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +6 -0
  282. package/dist/chunks/help-0.6.2-c49svpae.mjs +1 -0
  283. package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +3 -0
  284. package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +1 -0
  285. package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +79 -0
  286. package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +3 -0
  287. package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +1 -0
  288. package/dist/chunks/index-0.6.2-1kk3erm5.mjs +9 -0
  289. package/dist/chunks/index-0.6.2-21nak3ad.mjs +1 -0
  290. package/dist/chunks/index-0.6.2-2vns8v9p.mjs +1 -0
  291. package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +1 -0
  292. package/dist/chunks/index-0.6.2-3g92ew8z.mjs +1 -0
  293. package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +1 -0
  294. package/dist/chunks/index-0.6.2-88m8k4cp.mjs +1 -0
  295. package/dist/chunks/index-0.6.2-93bh3w93.mjs +1 -0
  296. package/dist/chunks/index-0.6.2-9e0qz384.mjs +1 -0
  297. package/dist/chunks/index-0.6.2-emm65q8h.mjs +17 -0
  298. package/dist/chunks/index-0.6.2-ff57yvh3.mjs +1 -0
  299. package/dist/chunks/index-0.6.2-g6xy97jv.mjs +1 -0
  300. package/dist/chunks/index-0.6.2-h37g7n0s.mjs +9 -0
  301. package/dist/chunks/index-0.6.2-h8jkf613.mjs +5 -0
  302. package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +1 -0
  303. package/dist/chunks/index-0.6.2-jw83xhc8.mjs +2 -0
  304. package/dist/chunks/index-0.6.2-mehn31e3.mjs +30 -0
  305. package/dist/chunks/index-0.6.2-naw1d8mg.mjs +2 -0
  306. package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +1 -0
  307. package/dist/chunks/index-0.6.2-qn0re7sj.mjs +1 -0
  308. package/dist/chunks/index-0.6.2-tftj6wdh.mjs +1 -0
  309. package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +1 -0
  310. package/dist/chunks/init-0.6.2-47k2caay.mjs +1 -0
  311. package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +1 -0
  312. package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +1 -0
  313. package/dist/chunks/insights-0.6.2-st861yg4.mjs +870 -0
  314. package/dist/chunks/install-0.6.2-webkhwz9.mjs +1 -0
  315. package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +149 -0
  316. package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +1 -0
  317. package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +1 -0
  318. package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +1 -0
  319. package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +2 -0
  320. package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +2 -0
  321. package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +1 -0
  322. package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +1 -0
  325. package/dist/chunks/log-0.6.2-h02k5q0p.mjs +1 -0
  326. package/dist/chunks/main-0.6.2-51xvrsbq.mjs +1 -0
  327. package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +1 -0
  328. package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +17 -0
  329. package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +4 -0
  330. package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +1 -0
  331. package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +1 -0
  332. package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +3 -0
  333. package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +2 -0
  334. package/dist/chunks/model-0.6.2-49f9g2vz.mjs +2 -0
  335. package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +1 -0
  336. package/dist/chunks/node-0.6.2-40bknjza.mjs +12 -0
  337. package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +14 -0
  339. package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +1 -0
  340. package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +1 -0
  342. package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +1 -0
  343. package/dist/chunks/passes-0.6.2-kadygcw6.mjs +1 -0
  344. package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +3 -0
  345. package/dist/chunks/plan-0.6.2-hzbsezab.mjs +1 -0
  346. package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +1 -0
  347. package/dist/chunks/plugin-0.6.2-pr48413e.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +1 -0
  349. package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +2 -0
  351. package/dist/chunks/print-0.6.2-ng7p0m66.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +1 -0
  353. package/dist/chunks/process-0.6.2-7k26fk4b.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +9 -0
  356. package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +1 -0
  357. package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +1 -0
  358. package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +13 -0
  360. package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +34 -0
  365. package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +1 -0
  366. package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +2 -0
  368. package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +1 -0
  371. package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +1 -0
  374. package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +2 -0
  375. package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +1 -0
  379. package/dist/chunks/session-0.6.2-k41jbqwf.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +1 -0
  383. package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +1 -0
  384. package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +5 -0
  385. package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +1 -0
  386. package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +1 -0
  389. package/dist/chunks/state-0.6.2-nymhw7ey.mjs +1 -0
  390. package/dist/chunks/stats-0.6.2-skm9nakv.mjs +6 -0
  391. package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +1 -0
  392. package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +1 -0
  394. package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +1 -0
  397. package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +1 -0
  399. package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +1 -0
  400. package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +1 -0
  402. package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +1 -0
  404. package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +4 -0
  408. package/dist/chunks/update-0.6.2-p8edrwg4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +1 -0
  412. package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +1 -0
  413. package/dist/chunks/util-0.6.2-yet75ms4.mjs +1 -0
  414. package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +1 -0
  415. package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +1 -0
  416. package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +1 -0
  417. package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +132 -0
  418. package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +1 -0
  420. package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -2
  423. package/package.json +1 -1
  424. package/dist/chunks/AgentTool-0.6.1-2b9yaj35.mjs +0 -1
  425. package/dist/chunks/App-0.6.1-sqd9wgy4.mjs +0 -1
  426. package/dist/chunks/ApproveApiKey-0.6.1-baj4maw0.mjs +0 -1
  427. package/dist/chunks/AssistantSessionChooser-0.6.1-77f308qc.mjs +0 -1
  428. package/dist/chunks/AutoModeOptInDialog-0.6.1-q2fa8wy9.mjs +0 -1
  429. package/dist/chunks/BypassPermissionsModeDialog-0.6.1-vj7zarcr.mjs +0 -1
  430. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.1-ywjkq6yd.mjs +0 -1
  431. package/dist/chunks/ConsoleOAuthFlow-0.6.1-7092d0jn.mjs +0 -1
  432. package/dist/chunks/DiffDialog-0.6.1-43pkwyjr.mjs +0 -3
  433. package/dist/chunks/Doctor-0.6.1-cptm2pha.mjs +0 -1
  434. package/dist/chunks/Grove-0.6.1-ty02ny05.mjs +0 -1
  435. package/dist/chunks/ITermBackend-0.6.1-hhbm7qhe.mjs +0 -1
  436. package/dist/chunks/InvalidConfigDialog-0.6.1-2r03697h.mjs +0 -1
  437. package/dist/chunks/InvalidSettingsDialog-0.6.1-fz8qbmrm.mjs +0 -1
  438. package/dist/chunks/MigrationDialog-0.6.1-f184vmmc.mjs +0 -1
  439. package/dist/chunks/Onboarding-0.6.1-k9r90dkb.mjs +0 -1
  440. package/dist/chunks/ProviderManager-0.6.1-k9cepg1h.mjs +0 -1
  441. package/dist/chunks/REPL-0.6.1-v3fvm99r.mjs +0 -1
  442. package/dist/chunks/ResumeConversation-0.6.1-4rzcxbm0.mjs +0 -1
  443. package/dist/chunks/SnapshotUpdateDialog-0.6.1-3tfkf2r1.mjs +0 -1
  444. package/dist/chunks/TeleportProgress-0.6.1-6sxb0xve.mjs +0 -1
  445. package/dist/chunks/TeleportRepoMismatchDialog-0.6.1-ct0aebdh.mjs +0 -1
  446. package/dist/chunks/TeleportResumeWrapper-0.6.1-rby53r9t.mjs +0 -1
  447. package/dist/chunks/TmuxBackend-0.6.1-aha1d4jg.mjs +0 -9
  448. package/dist/chunks/ToolSearchTool-0.6.1-wyvd75qb.mjs +0 -1
  449. package/dist/chunks/TrustDialog-0.6.1-0dxgmy9j.mjs +0 -1
  450. package/dist/chunks/activeProvider-0.6.1-edcjn35d.mjs +0 -1
  451. package/dist/chunks/add-dir-0.6.1-vbry4cq5.mjs +0 -1
  452. package/dist/chunks/agents-0.6.1-6g7eqc6g.mjs +0 -3
  453. package/dist/chunks/agents-0.6.1-bmw6yemz.mjs +0 -110
  454. package/dist/chunks/api-0.6.1-p90y28ss.mjs +0 -1
  455. package/dist/chunks/asciicast-0.6.1-dvny24yw.mjs +0 -1
  456. package/dist/chunks/assistant-0.6.1-c7xjeve6.mjs +0 -1
  457. package/dist/chunks/auth-0.6.1-qmmqr4a0.mjs +0 -1
  458. package/dist/chunks/auth-0.6.1-zmzs34rx.mjs +0 -1
  459. package/dist/chunks/autoMode-0.6.1-bcye95b8.mjs +0 -48
  460. package/dist/chunks/autoUpdater-0.6.1-477zfmqr.mjs +0 -1
  461. package/dist/chunks/backgroundHousekeeping-0.6.1-6c0npbxs.mjs +0 -1
  462. package/dist/chunks/branch-0.6.1-x2xgjxty.mjs +0 -4
  463. package/dist/chunks/bridgePointer-0.6.1-6mp5c94p.mjs +0 -1
  464. package/dist/chunks/btw-0.6.1-0vee5vec.mjs +0 -1
  465. package/dist/chunks/buddy-0.6.1-10x5b5m0.mjs +0 -3
  466. package/dist/chunks/cacache-0.6.1-t6wndp6s.mjs +0 -1
  467. package/dist/chunks/cache-probe-0.6.1-kb2vnp2j.mjs +0 -21
  468. package/dist/chunks/cacheStats-0.6.1-wa9ng3pv.mjs +0 -4
  469. package/dist/chunks/caches-0.6.1-h39v3a02.mjs +0 -1
  470. package/dist/chunks/claudeDesktop-0.6.1-gsfj6bp7.mjs +0 -1
  471. package/dist/chunks/claudemd-0.6.1-bp7xc2mx.mjs +0 -1
  472. package/dist/chunks/clear-0.6.1-ct2r7t9t.mjs +0 -1
  473. package/dist/chunks/clearTerminal-0.6.1-6gr2k1tw.mjs +0 -1
  474. package/dist/chunks/cli-0.6.1-0agnsggr.mjs +0 -2
  475. package/dist/chunks/cli-0.6.1-0bqe4byy.mjs +0 -2
  476. package/dist/chunks/cli-0.6.1-0f7jh20f.mjs +0 -2
  477. package/dist/chunks/cli-0.6.1-0jy2jkq4.mjs +0 -15
  478. package/dist/chunks/cli-0.6.1-0pwatab1.mjs +0 -2
  479. package/dist/chunks/cli-0.6.1-0r6z6t9d.mjs +0 -2
  480. package/dist/chunks/cli-0.6.1-0z6pdqg3.mjs +0 -2
  481. package/dist/chunks/cli-0.6.1-1a523nkb.mjs +0 -2
  482. package/dist/chunks/cli-0.6.1-1k359w9m.mjs +0 -2
  483. package/dist/chunks/cli-0.6.1-1n5ek5r5.mjs +0 -2
  484. package/dist/chunks/cli-0.6.1-22ayz1qb.mjs +0 -133
  485. package/dist/chunks/cli-0.6.1-24tz9gwy.mjs +0 -2
  486. package/dist/chunks/cli-0.6.1-263k8zfv.mjs +0 -24
  487. package/dist/chunks/cli-0.6.1-2avp7x48.mjs +0 -2
  488. package/dist/chunks/cli-0.6.1-2sc0f0mb.mjs +0 -2
  489. package/dist/chunks/cli-0.6.1-2wfbdh6y.mjs +0 -6
  490. package/dist/chunks/cli-0.6.1-2wy35yyy.mjs +0 -20
  491. package/dist/chunks/cli-0.6.1-2zh54t3f.mjs +0 -2
  492. package/dist/chunks/cli-0.6.1-39s97gy4.mjs +0 -2
  493. package/dist/chunks/cli-0.6.1-39t9nckk.mjs +0 -2
  494. package/dist/chunks/cli-0.6.1-3c4bskq1.mjs +0 -2
  495. package/dist/chunks/cli-0.6.1-3jfbggrv.mjs +0 -18
  496. package/dist/chunks/cli-0.6.1-3nvnx582.mjs +0 -2
  497. package/dist/chunks/cli-0.6.1-3r1egjh5.mjs +0 -3
  498. package/dist/chunks/cli-0.6.1-3x2x8nsx.mjs +0 -2
  499. package/dist/chunks/cli-0.6.1-3xsbth8a.mjs +0 -2
  500. package/dist/chunks/cli-0.6.1-481efx1c.mjs +0 -3
  501. package/dist/chunks/cli-0.6.1-481k0n0b.mjs +0 -2
  502. package/dist/chunks/cli-0.6.1-4argxq2y.mjs +0 -2
  503. package/dist/chunks/cli-0.6.1-4fjwfatp.mjs +0 -2
  504. package/dist/chunks/cli-0.6.1-4r2x7kmj.mjs +0 -12
  505. package/dist/chunks/cli-0.6.1-51sp0g9f.mjs +0 -25
  506. package/dist/chunks/cli-0.6.1-57gxa3fn.mjs +0 -2
  507. package/dist/chunks/cli-0.6.1-59957axm.mjs +0 -2
  508. package/dist/chunks/cli-0.6.1-5gcjed1z.mjs +0 -2
  509. package/dist/chunks/cli-0.6.1-5m3ph8yr.mjs +0 -2
  510. package/dist/chunks/cli-0.6.1-5pwj3d7r.mjs +0 -6
  511. package/dist/chunks/cli-0.6.1-5qttbnpm.mjs +0 -2
  512. package/dist/chunks/cli-0.6.1-5qyw0ayj.mjs +0 -24
  513. package/dist/chunks/cli-0.6.1-5rb1fsaa.mjs +0 -2
  514. package/dist/chunks/cli-0.6.1-5sj9ea9y.mjs +0 -4
  515. package/dist/chunks/cli-0.6.1-60wfpc5c.mjs +0 -2
  516. package/dist/chunks/cli-0.6.1-6erz0ahq.mjs +0 -18
  517. package/dist/chunks/cli-0.6.1-6rspq12f.mjs +0 -2
  518. package/dist/chunks/cli-0.6.1-6xr6nx71.mjs +0 -2
  519. package/dist/chunks/cli-0.6.1-7b4bmf31.mjs +0 -2
  520. package/dist/chunks/cli-0.6.1-7hcdhx2y.mjs +0 -2
  521. package/dist/chunks/cli-0.6.1-7mnw60rd.mjs +0 -2
  522. package/dist/chunks/cli-0.6.1-7rde0hat.mjs +0 -1
  523. package/dist/chunks/cli-0.6.1-85mcqw66.mjs +0 -2
  524. package/dist/chunks/cli-0.6.1-8djfzern.mjs +0 -2
  525. package/dist/chunks/cli-0.6.1-8fpj913g.mjs +0 -2
  526. package/dist/chunks/cli-0.6.1-8x7dm6mk.mjs +0 -3
  527. package/dist/chunks/cli-0.6.1-8y4y6nv3.mjs +0 -2
  528. package/dist/chunks/cli-0.6.1-94k5k8gj.mjs +0 -2
  529. package/dist/chunks/cli-0.6.1-9j0tzj57.mjs +0 -3
  530. package/dist/chunks/cli-0.6.1-9kse9m13.mjs +0 -12
  531. package/dist/chunks/cli-0.6.1-9m3tqqvw.mjs +0 -2
  532. package/dist/chunks/cli-0.6.1-9te6kt3m.mjs +0 -2
  533. package/dist/chunks/cli-0.6.1-a2tyzbp4.mjs +0 -9
  534. package/dist/chunks/cli-0.6.1-a7130ntd.mjs +0 -2
  535. package/dist/chunks/cli-0.6.1-agqm0wsp.mjs +0 -2
  536. package/dist/chunks/cli-0.6.1-amg1caaz.mjs +0 -2
  537. package/dist/chunks/cli-0.6.1-as4q7dcy.mjs +0 -2
  538. package/dist/chunks/cli-0.6.1-aw7t5zg2.mjs +0 -5322
  539. package/dist/chunks/cli-0.6.1-ay9b7nme.mjs +0 -2
  540. package/dist/chunks/cli-0.6.1-b0cyn50w.mjs +0 -45
  541. package/dist/chunks/cli-0.6.1-bak7jvd3.mjs +0 -2
  542. package/dist/chunks/cli-0.6.1-bk01taq5.mjs +0 -2
  543. package/dist/chunks/cli-0.6.1-bn89zt4s.mjs +0 -2
  544. package/dist/chunks/cli-0.6.1-bp0mdayc.mjs +0 -2
  545. package/dist/chunks/cli-0.6.1-bx5g1s5d.mjs +0 -21
  546. package/dist/chunks/cli-0.6.1-bygvqehn.mjs +0 -2
  547. package/dist/chunks/cli-0.6.1-c10fzbkx.mjs +0 -4
  548. package/dist/chunks/cli-0.6.1-c2scacda.mjs +0 -10
  549. package/dist/chunks/cli-0.6.1-c494rthj.mjs +0 -2
  550. package/dist/chunks/cli-0.6.1-cb15wwgj.mjs +0 -2
  551. package/dist/chunks/cli-0.6.1-cntxcs18.mjs +0 -2
  552. package/dist/chunks/cli-0.6.1-cyesbyzb.mjs +0 -2
  553. package/dist/chunks/cli-0.6.1-dbk7et0y.mjs +0 -3
  554. package/dist/chunks/cli-0.6.1-dq9trhqw.mjs +0 -2
  555. package/dist/chunks/cli-0.6.1-dsry83zd.mjs +0 -2
  556. package/dist/chunks/cli-0.6.1-e895xgfg.mjs +0 -2
  557. package/dist/chunks/cli-0.6.1-eaf4rwyc.mjs +0 -4
  558. package/dist/chunks/cli-0.6.1-egwp1swr.mjs +0 -3
  559. package/dist/chunks/cli-0.6.1-ehdz64pd.mjs +0 -15
  560. package/dist/chunks/cli-0.6.1-ersr5ygq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.1-ewkq3bnm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.1-f7gt1c0a.mjs +0 -2
  563. package/dist/chunks/cli-0.6.1-fc2ewzw4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.1-fc3sjkr8.mjs +0 -2
  565. package/dist/chunks/cli-0.6.1-fez41x44.mjs +0 -2
  566. package/dist/chunks/cli-0.6.1-fgnbf5bf.mjs +0 -2
  567. package/dist/chunks/cli-0.6.1-fpj8wpjs.mjs +0 -39
  568. package/dist/chunks/cli-0.6.1-fq7f4jb5.mjs +0 -2
  569. package/dist/chunks/cli-0.6.1-fzkdgcv3.mjs +0 -3
  570. package/dist/chunks/cli-0.6.1-gctajvvw.mjs +0 -4
  571. package/dist/chunks/cli-0.6.1-gdpgyrvw.mjs +0 -2
  572. package/dist/chunks/cli-0.6.1-gqhwqmhd.mjs +0 -12
  573. package/dist/chunks/cli-0.6.1-h0rn9sr9.mjs +0 -2
  574. package/dist/chunks/cli-0.6.1-h379gj9d.mjs +0 -2
  575. package/dist/chunks/cli-0.6.1-h757m4m8.mjs +0 -2
  576. package/dist/chunks/cli-0.6.1-hgctsdgg.mjs +0 -2
  577. package/dist/chunks/cli-0.6.1-hgz08acq.mjs +0 -16
  578. package/dist/chunks/cli-0.6.1-hj8ew2yx.mjs +0 -2
  579. package/dist/chunks/cli-0.6.1-hrnyr65b.mjs +0 -5
  580. package/dist/chunks/cli-0.6.1-j4akqyey.mjs +0 -2
  581. package/dist/chunks/cli-0.6.1-j8nqjtw2.mjs +0 -59
  582. package/dist/chunks/cli-0.6.1-jb3djqjh.mjs +0 -2
  583. package/dist/chunks/cli-0.6.1-jca1jhwf.mjs +0 -2
  584. package/dist/chunks/cli-0.6.1-je6nv7n6.mjs +0 -67
  585. package/dist/chunks/cli-0.6.1-jy43zg5q.mjs +0 -2
  586. package/dist/chunks/cli-0.6.1-jyw27bnr.mjs +0 -2
  587. package/dist/chunks/cli-0.6.1-k0sj08eq.mjs +0 -2
  588. package/dist/chunks/cli-0.6.1-katpz9mk.mjs +0 -2
  589. package/dist/chunks/cli-0.6.1-kfy009df.mjs +0 -2
  590. package/dist/chunks/cli-0.6.1-krcqab65.mjs +0 -18
  591. package/dist/chunks/cli-0.6.1-ksvftj0q.mjs +0 -2
  592. package/dist/chunks/cli-0.6.1-n7yfhpx0.mjs +0 -34
  593. package/dist/chunks/cli-0.6.1-n93sg062.mjs +0 -3
  594. package/dist/chunks/cli-0.6.1-ne71q1ht.mjs +0 -2
  595. package/dist/chunks/cli-0.6.1-nen4rh8r.mjs +0 -2
  596. package/dist/chunks/cli-0.6.1-nj1fz1ee.mjs +0 -2
  597. package/dist/chunks/cli-0.6.1-nk615t5t.mjs +0 -2
  598. package/dist/chunks/cli-0.6.1-np8mapek.mjs +0 -2
  599. package/dist/chunks/cli-0.6.1-nx5jm8nf.mjs +0 -3
  600. package/dist/chunks/cli-0.6.1-p94mckzz.mjs +0 -2
  601. package/dist/chunks/cli-0.6.1-pkqzm2ty.mjs +0 -5
  602. package/dist/chunks/cli-0.6.1-qdytg688.mjs +0 -2
  603. package/dist/chunks/cli-0.6.1-qftnyx2b.mjs +0 -2
  604. package/dist/chunks/cli-0.6.1-qk3v8fwe.mjs +0 -4
  605. package/dist/chunks/cli-0.6.1-qqtj12xs.mjs +0 -9
  606. package/dist/chunks/cli-0.6.1-qre0g1ag.mjs +0 -2
  607. package/dist/chunks/cli-0.6.1-qsq2xg3g.mjs +0 -4
  608. package/dist/chunks/cli-0.6.1-rjp543r8.mjs +0 -42
  609. package/dist/chunks/cli-0.6.1-rsa7f7a3.mjs +0 -2
  610. package/dist/chunks/cli-0.6.1-s13hz2xf.mjs +0 -2
  611. package/dist/chunks/cli-0.6.1-s1snv8wb.mjs +0 -2
  612. package/dist/chunks/cli-0.6.1-sbqpxvzz.mjs +0 -2
  613. package/dist/chunks/cli-0.6.1-sgm15vmv.mjs +0 -2
  614. package/dist/chunks/cli-0.6.1-sq2cnxjs.mjs +0 -2
  615. package/dist/chunks/cli-0.6.1-sq5qhzhn.mjs +0 -8
  616. package/dist/chunks/cli-0.6.1-srah4vag.mjs +0 -2
  617. package/dist/chunks/cli-0.6.1-svkrdf57.mjs +0 -2
  618. package/dist/chunks/cli-0.6.1-syhvjk64.mjs +0 -2
  619. package/dist/chunks/cli-0.6.1-t35v9gfs.mjs +0 -2
  620. package/dist/chunks/cli-0.6.1-taw5rdf2.mjs +0 -50
  621. package/dist/chunks/cli-0.6.1-tkjavmyv.mjs +0 -5
  622. package/dist/chunks/cli-0.6.1-trn8t31z.mjs +0 -2
  623. package/dist/chunks/cli-0.6.1-ttxz68nf.mjs +0 -58
  624. package/dist/chunks/cli-0.6.1-tx5cxejc.mjs +0 -3
  625. package/dist/chunks/cli-0.6.1-v15rcvwv.mjs +0 -2
  626. package/dist/chunks/cli-0.6.1-v39bx87n.mjs +0 -2
  627. package/dist/chunks/cli-0.6.1-v7m7rsb0.mjs +0 -2
  628. package/dist/chunks/cli-0.6.1-v95z8p88.mjs +0 -2
  629. package/dist/chunks/cli-0.6.1-vcgwtxe8.mjs +0 -133
  630. package/dist/chunks/cli-0.6.1-vep0hgj0.mjs +0 -2
  631. package/dist/chunks/cli-0.6.1-vgj2ekm4.mjs +0 -2
  632. package/dist/chunks/cli-0.6.1-vgznt46g.mjs +0 -2
  633. package/dist/chunks/cli-0.6.1-vkd5hcb8.mjs +0 -2
  634. package/dist/chunks/cli-0.6.1-vr6dwhw0.mjs +0 -17
  635. package/dist/chunks/cli-0.6.1-vvycdrz3.mjs +0 -2
  636. package/dist/chunks/cli-0.6.1-vz6zhwrs.mjs +0 -2
  637. package/dist/chunks/cli-0.6.1-w9afetc8.mjs +0 -2
  638. package/dist/chunks/cli-0.6.1-wz2nkwz1.mjs +0 -4
  639. package/dist/chunks/cli-0.6.1-x25mwydc.mjs +0 -2
  640. package/dist/chunks/cli-0.6.1-x3sm4qwg.mjs +0 -2
  641. package/dist/chunks/cli-0.6.1-x4kttrew.mjs +0 -2
  642. package/dist/chunks/cli-0.6.1-x5fsjhh0.mjs +0 -3
  643. package/dist/chunks/cli-0.6.1-xcamy4zk.mjs +0 -2
  644. package/dist/chunks/cli-0.6.1-xhm4pfg5.mjs +0 -2
  645. package/dist/chunks/cli-0.6.1-xk82vgbd.mjs +0 -2
  646. package/dist/chunks/cli-0.6.1-xn6xkj8r.mjs +0 -17
  647. package/dist/chunks/cli-0.6.1-xpqybxb3.mjs +0 -6
  648. package/dist/chunks/cli-0.6.1-y15p20f4.mjs +0 -7
  649. package/dist/chunks/cli-0.6.1-yafngt11.mjs +0 -4
  650. package/dist/chunks/cli-0.6.1-ybch0rz5.mjs +0 -193
  651. package/dist/chunks/cli-0.6.1-yjn2sk7y.mjs +0 -2
  652. package/dist/chunks/cli-0.6.1-ysqzwf65.mjs +0 -2
  653. package/dist/chunks/cli-0.6.1-yxv8jw6e.mjs +0 -3
  654. package/dist/chunks/cli-0.6.1-z11x4s9s.mjs +0 -4
  655. package/dist/chunks/cli-0.6.1-zac9yqwp.mjs +0 -2
  656. package/dist/chunks/cli-0.6.1-zdetqpgd.mjs +0 -2
  657. package/dist/chunks/cli-0.6.1-zerz57mn.mjs +0 -4
  658. package/dist/chunks/cli-0.6.1-zkz3hp6v.mjs +0 -2
  659. package/dist/chunks/cli-0.6.1-zp8yt3me.mjs +0 -2
  660. package/dist/chunks/cli-0.6.1-zscfe2d6.mjs +0 -2
  661. package/dist/chunks/cli-0.6.1-zznedec0.mjs +0 -15
  662. package/dist/chunks/client-0.6.1-f1wz818f.mjs +0 -1
  663. package/dist/chunks/color-0.6.1-39x5mjrw.mjs +0 -1
  664. package/dist/chunks/compact-0.6.1-qmw1c0k5.mjs +0 -3
  665. package/dist/chunks/config-0.6.1-0sgd8g9c.mjs +0 -1
  666. package/dist/chunks/config-0.6.1-jtzeeq94.mjs +0 -1
  667. package/dist/chunks/constants-0.6.1-x7zzrahn.mjs +0 -1
  668. package/dist/chunks/context-0.6.1-91fk726f.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.6.1-w6v2qm5p.mjs +0 -1
  670. package/dist/chunks/conversation-0.6.1-s8pkny9g.mjs +0 -1
  671. package/dist/chunks/copilotHeaders-0.6.1-5qr59e2q.mjs +0 -1
  672. package/dist/chunks/copy-0.6.1-hj7kkkb0.mjs +0 -9
  673. package/dist/chunks/cost-0.6.1-qfwk0ft6.mjs +0 -1
  674. package/dist/chunks/createSSHSession-0.6.1-8pxajawh.mjs +0 -1
  675. package/dist/chunks/createSession-0.6.1-23bnms7y.mjs +0 -1
  676. package/dist/chunks/debug-0.6.1-r42ensd9.mjs +0 -1
  677. package/dist/chunks/defaultActionDeps-0.6.1-hsssc0vk.mjs +0 -1365
  678. package/dist/chunks/desktop-0.6.1-7bxmq0nj.mjs +0 -1
  679. package/dist/chunks/detectRepository-0.6.1-e5c2p61b.mjs +0 -1
  680. package/dist/chunks/detection-0.6.1-htd79a96.mjs +0 -1
  681. package/dist/chunks/diff-0.6.1-vk9z6wqg.mjs +0 -1
  682. package/dist/chunks/doctor-0.6.1-0vcg8q42.mjs +0 -1
  683. package/dist/chunks/doctorDiagnostic-0.6.1-5ag5mgxk.mjs +0 -1
  684. package/dist/chunks/earlyInput-0.6.1-ackq9kf1.mjs +0 -1
  685. package/dist/chunks/effort-0.6.1-j6f1gp2z.mjs +0 -10
  686. package/dist/chunks/envUtils-0.6.1-9m48026q.mjs +0 -1
  687. package/dist/chunks/environmentSelection-0.6.1-vg5vgac7.mjs +0 -1
  688. package/dist/chunks/environments-0.6.1-pdexpf06.mjs +0 -1
  689. package/dist/chunks/errors-0.6.1-4v305q50.mjs +0 -1
  690. package/dist/chunks/exampleCommands-0.6.1-38stg387.mjs +0 -1
  691. package/dist/chunks/exit-0.6.1-mktwwvyj.mjs +0 -1
  692. package/dist/chunks/export-0.6.1-zc1hfk24.mjs +0 -2
  693. package/dist/chunks/extra-usage-0.6.1-wd89f315.mjs +0 -1
  694. package/dist/chunks/extra-usage-noninteractive-0.6.1-t7dbhvyj.mjs +0 -1
  695. package/dist/chunks/fast-0.6.1-r6b8a0jx.mjs +0 -1
  696. package/dist/chunks/feedback-0.6.1-318aqn49.mjs +0 -14
  697. package/dist/chunks/firstPartyEventLogger-0.6.1-fd6ha0k4.mjs +0 -1
  698. package/dist/chunks/git-0.6.1-7ttpbhwc.mjs +0 -1
  699. package/dist/chunks/githubModelsCredentials-0.6.1-9ds8a7fr.mjs +0 -1
  700. package/dist/chunks/goal-0.6.1-qh393evm.mjs +0 -4
  701. package/dist/chunks/grove-0.6.1-r5vxxzjz.mjs +0 -1
  702. package/dist/chunks/growthbook-0.6.1-md0gf7ks.mjs +0 -1
  703. package/dist/chunks/headless-0.6.1-h7011eeb.mjs +0 -2
  704. package/dist/chunks/heapdump-0.6.1-jx537rkx.mjs +0 -6
  705. package/dist/chunks/help-0.6.1-fw6h8sky.mjs +0 -1
  706. package/dist/chunks/hookChains-0.6.1-rkbx2t08.mjs +0 -3
  707. package/dist/chunks/hooks-0.6.1-91f4dj33.mjs +0 -1
  708. package/dist/chunks/hooks-0.6.1-dnspnhgd.mjs +0 -79
  709. package/dist/chunks/ide-0.6.1-hh533s3f.mjs +0 -3
  710. package/dist/chunks/image-processor-napi-0.6.1-3xp446fk.mjs +0 -1
  711. package/dist/chunks/index-0.6.1-09g2rewq.mjs +0 -1
  712. package/dist/chunks/index-0.6.1-0c57bpxq.mjs +0 -5
  713. package/dist/chunks/index-0.6.1-0grk74h7.mjs +0 -1
  714. package/dist/chunks/index-0.6.1-0vyqysww.mjs +0 -1
  715. package/dist/chunks/index-0.6.1-14xdd101.mjs +0 -1
  716. package/dist/chunks/index-0.6.1-3y22dzck.mjs +0 -1
  717. package/dist/chunks/index-0.6.1-5hede59y.mjs +0 -1
  718. package/dist/chunks/index-0.6.1-6vg6rzs0.mjs +0 -1
  719. package/dist/chunks/index-0.6.1-93zddsg2.mjs +0 -1
  720. package/dist/chunks/index-0.6.1-9w2d7p1e.mjs +0 -1
  721. package/dist/chunks/index-0.6.1-b8yv5gy2.mjs +0 -9
  722. package/dist/chunks/index-0.6.1-d7vyz56s.mjs +0 -17
  723. package/dist/chunks/index-0.6.1-dx12abyz.mjs +0 -1
  724. package/dist/chunks/index-0.6.1-f8srt3s7.mjs +0 -1
  725. package/dist/chunks/index-0.6.1-fd7pn0sn.mjs +0 -1
  726. package/dist/chunks/index-0.6.1-h8zv2k0g.mjs +0 -30
  727. package/dist/chunks/index-0.6.1-hfzesfbt.mjs +0 -1
  728. package/dist/chunks/index-0.6.1-r75bspk7.mjs +0 -2
  729. package/dist/chunks/index-0.6.1-t8sgq6bc.mjs +0 -1
  730. package/dist/chunks/index-0.6.1-vqtjqmqh.mjs +0 -9
  731. package/dist/chunks/index-0.6.1-wpz2sj28.mjs +0 -2
  732. package/dist/chunks/index-0.6.1-y6b4meqt.mjs +0 -1
  733. package/dist/chunks/init-0.6.1-0d45p8bb.mjs +0 -1
  734. package/dist/chunks/initReplBridge-0.6.1-x10y77yb.mjs +0 -1
  735. package/dist/chunks/ink-0.6.1-frjecwrb.mjs +0 -1
  736. package/dist/chunks/insights-0.6.1-jfq7b6tw.mjs +0 -870
  737. package/dist/chunks/install-0.6.1-egwy09ax.mjs +0 -1
  738. package/dist/chunks/install-github-app-0.6.1-0weabx7j.mjs +0 -149
  739. package/dist/chunks/install-slack-app-0.6.1-1y33208g.mjs +0 -1
  740. package/dist/chunks/instrumentation-0.6.1-q16b8vzj.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-0.6.1-vadchdt4.mjs +0 -1
  742. package/dist/chunks/keybindings-0.6.1-mxntktr5.mjs +0 -2
  743. package/dist/chunks/knowledge-0.6.1-3xqwg7qm.mjs +0 -2
  744. package/dist/chunks/latestVersionCache-0.6.1-900swz28.mjs +0 -1
  745. package/dist/chunks/loadAgentsDir-0.6.1-4kmt7rg0.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.6.1-q16r2b1a.mjs +0 -1
  747. package/dist/chunks/loadPluginHooks-0.6.1-smdakskd.mjs +0 -1
  748. package/dist/chunks/log-0.6.1-k5w8v9b7.mjs +0 -1
  749. package/dist/chunks/main-0.6.1-v5q5kdjt.mjs +0 -1
  750. package/dist/chunks/managedEnv-0.6.1-x9wyzt74.mjs +0 -1
  751. package/dist/chunks/mcp-0.6.1-06zc97m0.mjs +0 -4
  752. package/dist/chunks/mcp-0.6.1-sp1gzne1.mjs +0 -1
  753. package/dist/chunks/mcp-0.6.1-yfzfbpgf.mjs +0 -17
  754. package/dist/chunks/mcpb-0.6.1-e6wqpjjr.mjs +0 -1
  755. package/dist/chunks/memory-0.6.1-197wbyh9.mjs +0 -3
  756. package/dist/chunks/mobile-0.6.1-p623pybm.mjs +0 -2
  757. package/dist/chunks/model-0.6.1-fzqfznkt.mjs +0 -2
  758. package/dist/chunks/model-0.6.1-hkw4jq8s.mjs +0 -1
  759. package/dist/chunks/node-0.6.1-1zzbgn75.mjs +0 -12
  760. package/dist/chunks/oauth-0.6.1-j5fet3d4.mjs +0 -1
  761. package/dist/chunks/openaiShim-0.6.1-hcjz6jw0.mjs +0 -14
  762. package/dist/chunks/output-style-0.6.1-nd3zbark.mjs +0 -1
  763. package/dist/chunks/package-D6422PQU-0.6.1-v7kakn1v.mjs +0 -1
  764. package/dist/chunks/parseConnectUrl-0.6.1-ejn7xha9.mjs +0 -1
  765. package/dist/chunks/parser-0.6.1-fp8tsr8z.mjs +0 -1
  766. package/dist/chunks/passes-0.6.1-mdsmrywr.mjs +0 -1
  767. package/dist/chunks/permissions-0.6.1-b7hww4nq.mjs +0 -3
  768. package/dist/chunks/plan-0.6.1-r0w4htej.mjs +0 -1
  769. package/dist/chunks/plist-0.6.1-xe8jtnxk.mjs +0 -1
  770. package/dist/chunks/plugin-0.6.1-4p7wpc14.mjs +0 -29
  771. package/dist/chunks/pluginStartupCheck-0.6.1-gt4eypw9.mjs +0 -1
  772. package/dist/chunks/plugins-0.6.1-3zsktaas.mjs +0 -9
  773. package/dist/chunks/preActionHook-0.6.1-78da30nj.mjs +0 -2
  774. package/dist/chunks/print-0.6.1-xbgj0g80.mjs +0 -57
  775. package/dist/chunks/privacy-settings-0.6.1-nnhvq7b2.mjs +0 -1
  776. package/dist/chunks/process-0.6.1-fx7x9r07.mjs +0 -1
  777. package/dist/chunks/processBashCommand-0.6.1-bdscj4y4.mjs +0 -1
  778. package/dist/chunks/processSlashCommand-0.6.1-tf3bkmyy.mjs +0 -9
  779. package/dist/chunks/prompt-0.6.1-3dnt3zey.mjs +0 -1
  780. package/dist/chunks/prompt-0.6.1-e3bbvmwk.mjs +0 -1
  781. package/dist/chunks/prompts-0.6.1-xf5gjw54.mjs +0 -1
  782. package/dist/chunks/protocolHandler-0.6.1-3x1y3rds.mjs +0 -13
  783. package/dist/chunks/provider-0.6.1-9645a8j1.mjs +0 -2
  784. package/dist/chunks/providerProfiles-0.6.1-rvwkz6ak.mjs +0 -1
  785. package/dist/chunks/providerValidation-0.6.1-vj6yhn15.mjs +0 -6
  786. package/dist/chunks/rate-limit-options-0.6.1-zedhbgar.mjs +0 -1
  787. package/dist/chunks/registerSubcommands-0.6.1-07hhytjp.mjs +0 -34
  788. package/dist/chunks/registry-0.6.1-j5gr410a.mjs +0 -1
  789. package/dist/chunks/release-notes-0.6.1-g9gvekqx.mjs +0 -5
  790. package/dist/chunks/reload-plugins-0.6.1-h895km4v.mjs +0 -2
  791. package/dist/chunks/remote-env-0.6.1-prvyvph7.mjs +0 -1
  792. package/dist/chunks/remoteBridgeCore-0.6.1-repc3wzt.mjs +0 -1
  793. package/dist/chunks/remoteSession-0.6.1-sy45mthq.mjs +0 -1
  794. package/dist/chunks/rename-0.6.1-mbf64z4s.mjs +0 -1
  795. package/dist/chunks/replBridgeHandle-0.6.1-vh85gp20.mjs +0 -1
  796. package/dist/chunks/replLauncher-0.6.1-4h94vpmh.mjs +0 -1
  797. package/dist/chunks/resume-0.6.1-c4m2tsz1.mjs +0 -2
  798. package/dist/chunks/rewind-0.6.1-rwc9yc72.mjs +0 -1
  799. package/dist/chunks/rootOptions-0.6.1-qrzakwkb.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.6.1-g2cqqkbq.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.6.1-h0t8vrsp.mjs +0 -1
  802. package/dist/chunks/session-0.6.1-z2z0v2b2.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.6.1-zwyhdetk.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.6.1-sa1zcdy1.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.6.1-3kwfwm9f.mjs +0 -1
  806. package/dist/chunks/settings-0.6.1-nkp3cfkx.mjs +0 -1
  807. package/dist/chunks/setup-0.6.1-ye3h2662.mjs +0 -5
  808. package/dist/chunks/sinks-0.6.1-aj971rff.mjs +0 -1
  809. package/dist/chunks/skills-0.6.1-rg44nb1f.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.6.1-wmynctg8.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.6.1-w1296eb6.mjs +0 -1
  812. package/dist/chunks/state-0.6.1-xeb3g7ee.mjs +0 -1
  813. package/dist/chunks/stats-0.6.1-b809msg3.mjs +0 -6
  814. package/dist/chunks/status-0.6.1-qgzafsnk.mjs +0 -1
  815. package/dist/chunks/stickers-0.6.1-mvc1yhza.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.6.1-p24f3mb2.mjs +0 -1
  817. package/dist/chunks/tasks-0.6.1-6mkyp39c.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.6.1-5y5q1d5a.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.6.1-ctbnrn7g.mjs +0 -1
  820. package/dist/chunks/teleport-0.6.1-snck0mt3.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.6.1-grwmkggx.mjs +0 -1
  822. package/dist/chunks/theme-0.6.1-nkn391vp.mjs +0 -1
  823. package/dist/chunks/thinkback-0.6.1-w3e30qga.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.6.1-xtt1h9bj.mjs +0 -1
  825. package/dist/chunks/toolPool-0.6.1-k6p9m933.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.6.1-hf1m96t5.mjs +0 -1
  827. package/dist/chunks/tools-0.6.1-k1he8tf4.mjs +0 -1
  828. package/dist/chunks/trustedDevice-0.6.1-jp75s058.mjs +0 -1
  829. package/dist/chunks/turndown.cjs-0.6.1-nbyhbfxh.mjs +0 -69
  830. package/dist/chunks/ultrareviewCommand-0.6.1-wt29n8f8.mjs +0 -4
  831. package/dist/chunks/update-0.6.1-nhyb2p18.mjs +0 -86
  832. package/dist/chunks/upgrade-0.6.1-bsgbm532.mjs +0 -1
  833. package/dist/chunks/upstreamproxy-0.6.1-tv3yt8kf.mjs +0 -14
  834. package/dist/chunks/url-handler-napi-0.6.1-17xw9yz6.mjs +0 -1
  835. package/dist/chunks/usage-0.6.1-kc6f3g70.mjs +0 -1
  836. package/dist/chunks/util-0.6.1-4tchwwds.mjs +0 -1
  837. package/dist/chunks/utils-0.6.1-b58yrh2f.mjs +0 -1
  838. package/dist/chunks/vim-0.6.1-0epxft4g.mjs +0 -1
  839. package/dist/chunks/watcher-0.6.1-g05xbezn.mjs +0 -1
  840. package/dist/chunks/wiki-0.6.1-d931wde5.mjs +0 -132
  841. package/dist/chunks/worktree-0.6.1-8ebt180m.mjs +0 -1
  842. package/dist/chunks/worktreeModeEnabled-0.6.1-av5mja7y.mjs +0 -1
  843. package/dist/chunks/wrapper-0.6.1-yv9p7ayq.mjs +0 -7
  844. /package/dist/chunks/{cli-0.6.1-ygrfhgb0.mjs → cli-0.6.2-1e5p6hw6.mjs} +0 -0
  845. /package/dist/chunks/{cli-0.6.1-5aftf3q9.mjs → cli-0.6.2-3eaaj6e5.mjs} +0 -0
  846. /package/dist/chunks/{cli-0.6.1-9pfc6b63.mjs → cli-0.6.2-3rgtxc9f.mjs} +0 -0
  847. /package/dist/chunks/{cli-0.6.1-jkwrn2xm.mjs → cli-0.6.2-7p1ykg1m.mjs} +0 -0
  848. /package/dist/chunks/{cli-0.6.1-xz21g65j.mjs → cli-0.6.2-adegz2m3.mjs} +0 -0
  849. /package/dist/chunks/{cli-0.6.1-xv8wfg40.mjs → cli-0.6.2-hb4fz4pd.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.6.1-naw66kt5.mjs → cli-0.6.2-hkgnx8g7.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.6.1-j1raybvn.mjs → cli-0.6.2-qk6j042k.mjs} +0 -0
@@ -1,17 +0,0 @@
1
- import{y as O,z as x}from"./cli-0.6.1-ygrfhgb0.mjs";import{$J as F,DK as oq,EJ as c,FJ as Uq,GJ as a,GK as sq,HJ as Wq,HK as iq,IK as nq,JJ as J,JK as Nz,OJ as jq,QJ as Gq,ZJ as N,ZK as t,_J as Xq,_K as Jq,_O as b,aP as Bq,cK as kq,cL as Nq,eE as Mq,eK as Rq,fE as Zz,fK as rq,gK as Jz,ku as aq,nE as tq,oE as Rz,ou as kz,pm as zq,qm as Uz,rl as pq,rm as wq,sm as Wz,tm as Aq,um as Xz,xm as Tq,ym as Yz}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import"./cli-0.6.1-vkd5hcb8.mjs";import"./cli-0.6.1-1n5ek5r5.mjs";import"./cli-0.6.1-x25mwydc.mjs";import{PY as dq,RW as Qz,RY as Oq,_W as Lq,iY as Pq,kY as Hq,mY as f}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import{o0 as Kq,p0 as K,q0 as m,r0 as v}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Iz}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-8x7dm6mk.mjs";import"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{$$ as qq,Jba as fq,K8 as lq,L8 as Ez,Pba as vq,Qba as cq,R9 as mq,W9 as Dz,cca as jz,haa as Gz}from"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import{cga as w,ega as Bz}from"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import{jha as e,nha as zz}from"./cli-0.6.1-jb3djqjh.mjs";import{Dha as gq,Fha as _z}from"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as Vq,ipa as Qq}from"./cli-0.6.1-9pfc6b63.mjs";Jz();import{stat as xz}from"fs/promises";import{cwd as yz}from"process";Bq();zz();Oq();Gq();Gz();Wz();Zz();Xz();Yz();Uz();v();var _q=Vq(Qz(),1),d=Vq(Iz(),1);function Eq(z){let q=_q.c(36),{servers:Q,scope:G,onDone:I}=z,U;if(q[0]!==Q)U=Object.keys(Q),q[0]=Q,q[1]=U;else U=q[1];let W=U,Z;if(q[2]===Symbol.for("react.memo_cache_sentinel"))Z={},q[2]=Z;else Z=q[2];let[X,Y]=d.useState(Z),P,B;if(q[3]===Symbol.for("react.memo_cache_sentinel"))P=()=>{J().then((V)=>{let{servers:s}=V;return Y(s)})},B=[],q[3]=P,q[4]=B;else P=q[3],B=q[4];d.useEffect(P,B);let A;if(q[5]!==X||q[6]!==W)A=W.filter((V)=>X[V]!==void 0),q[5]=X,q[6]=W,q[7]=A;else A=q[7];let H=A,T=async function(s){let Yq=0;for(let l of s){let Zq=Q[l];if(Zq){let i=l;if(X[i]!==void 0){let n=1;while(X[`${l}_${n}`]!==void 0)n++;i=`${l}_${n}`}await c(i,Zq,G),Yq++}}y(Yq)},[r]=Lq(),h;if(q[8]!==I||q[9]!==G||q[10]!==r)h=(V)=>{if(V>0)e(`
2
- ${Pq("success",r)(`Successfully imported ${V} MCP ${qq(V,"server")} to ${G} config.`)}
3
- `);else e(`
4
- No servers were imported.`);I(),b()},q[8]=I,q[9]=G,q[10]=r,q[11]=h;else h=q[11];let y=h,S;if(q[12]!==y)S=()=>{y(0)},q[12]=y,q[13]=S;else S=q[13];let _=S,qz=W.length,$;if(q[14]!==W.length)$=qq(W.length,"server"),q[14]=W.length,q[15]=$;else $=q[15];let o=`Found ${qz} MCP ${$} in Claude Desktop.`,E;if(q[16]!==H.length)E=H.length>0&&K(f,{color:"warning",children:"Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix."}),q[16]=H.length,q[17]=E;else E=q[17];let C;if(q[18]===Symbol.for("react.memo_cache_sentinel"))C=K(f,{children:"Please select the servers you want to import:"}),q[18]=C;else C=q[18];let D,j;if(q[19]!==H||q[20]!==W)D=W.map((V)=>({label:`${V}${H.includes(V)?" (already exists)":""}`,value:V})),j=W.filter((V)=>!H.includes(V)),q[19]=H,q[20]=W,q[21]=D,q[22]=j;else D=q[21],j=q[22];let k;if(q[23]!==_||q[24]!==T||q[25]!==D||q[26]!==j)k=K(Mq,{options:D,defaultValue:j,onSubmit:T,onCancel:_,hideIndexes:!0}),q[23]=_,q[24]=T,q[25]=D,q[26]=j,q[27]=k;else k=q[27];let R;if(q[28]!==_||q[29]!==o||q[30]!==E||q[31]!==k)R=m(Tq,{title:"Import MCP Servers from Claude Desktop",subtitle:o,color:"success",onCancel:_,hideInputGuide:!0,children:[E,C,k]}),q[28]=_,q[29]=o,q[30]=E,q[31]=k,q[32]=R;else R=q[32];let u;if(q[33]===Symbol.for("react.memo_cache_sentinel"))u=K(Hq,{paddingX:1,children:K(f,{dimColor:!0,italic:!0,children:m(Aq,{children:[K(zq,{shortcut:"Space",action:"select"}),K(zq,{shortcut:"Enter",action:"confirm"}),K(wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[33]=u;else u=q[33];let g;if(q[34]!==R)g=m(Kq,{children:[R,u]}),q[34]=R,q[35]=g;else g=q[35];return g}Oq();Rz();Bz();Nz();Nq();Gq();Rq();var xq={getAllMcpConfigs:J,getMcpConfigsByScope:a,getProjectMcpServerStatus:kq,isMcpServerDisabled:jq,describeMcpConfigFilePath:N,connectToServer:t,clearServerCache:Jq};function yq(z){return{generatedAt:new Date().toISOString(),targetName:z.targetName,scopeFilter:z.scopeFilter,configOnly:z.configOnly,summary:{totalReports:0,healthy:0,warnings:0,blocking:0},findings:[],servers:[]}}function Vz(z){if(z.message==="MCP config is not a valid JSON")return"config.invalid_json";if(z.message.startsWith("Missing environment variables:"))return"config.missing_env_vars";if(z.message.includes("Windows requires 'cmd /c' wrapper to execute npx"))return"config.windows_npx_wrapper_required";if(z.message==="Does not adhere to MCP server configuration schema")return"config.invalid_schema";return"config.validation_error"}function Kz(z){let q=z.mcpErrorMetadata?.severity;if(q==="fatal")return"error";if(q==="warning")return"warn";return"warn"}function bq(z){return z.map((q)=>{let Q=Kz(q);return{blocking:Q==="error",code:Vz(q),message:q.message,remediation:q.suggestion,scope:q.mcpErrorMetadata?.scope,serverName:q.mcpErrorMetadata?.serverName,severity:Q,sourcePath:q.file}})}function Fq(z){let q=[],Q=new Map;for(let G of z){if(!G.serverName){q.push(G);continue}let I=Q.get(G.serverName)??[];I.push(G),Q.set(G.serverName,I)}return{globalFindings:q,serverFindingsByName:Q}}function M(z){if(z.scope==="claudeai")return"claudeai";if(z.scope==="dynamic")return z.pluginSource?"plugin":"dynamic";if(z.scope==="managed")return"managed";return z.scope}function Iq(z){return z.type??"stdio"}function Dq(z){switch(z.type){case"sse":case"http":case"ws":case"claudeai-proxy":return`${z.scope}:${z.type}:${z.url}`;case"sdk":return`${z.scope}:${z.type}:${z.name}`;default:return`${z.scope}:${z.type??"stdio"}:${z.command}:${JSON.stringify(z.args??[])}`}}function Lz(z,q){if(!q)return!1;return M(z)===M(q)&&Dq(z)===Dq(q)}function p(z,q,Q,G,I){let U=Q[z];if(!U)return[];let W=q==="project"?I.getProjectMcpServerStatus(z)==="pending":!1,Z=I.isMcpServerDisabled(z),X=!Z&&Lz(U,G);return[{name:z,sourceType:M(U),sourcePath:I.describeMcpConfigFilePath(q),transport:Iq(U),runtimeVisible:X,runtimeActive:X,pendingApproval:W,disabled:Z}]}function L(z,q){if(!q)return z==="enterprise"||z==="local"||z==="project"||z==="user";return z===q}function hq(z,q){return[...L("enterprise",q)?z.enterprise.errors:[],...L("local",q)?z.local.errors:[],...L("project",q)?z.project.errors:[],...L("user",q)?z.user.errors:[]]}function Pz(z,q,Q){return{name:z,sourceType:M(q),sourcePath:M(q)==="plugin"?`plugin:${q.pluginSource??"unknown"}`:M(q)==="claudeai"?"claude.ai":q.scope,transport:Iq(q),runtimeVisible:Q?.runtimeVisible??!0,runtimeActive:Q?.runtimeActive??!0,disabled:Q?.disabled??!1}}function Hz(z,q,Q){let G=M(q),I=G==="plugin"?`plugin:${q.pluginSource??"unknown"}`:G==="claudeai"?"claude.ai":Q.describeMcpConfigFilePath(q.scope);return z.some((U)=>U.sourceType===G&&U.sourcePath===I&&U.transport===Iq(q))}function Oz(z){let q=z.filter((G)=>G.sourceType==="local"||G.sourceType==="project"||G.sourceType==="user"||G.sourceType==="enterprise");if(q.length<=1)return[];let Q=q.find((G)=>G.runtimeActive)??q[0];return[{blocking:!1,code:"duplicate.same_name_multiple_scopes",message:`Server is defined in multiple config scopes; active source is ${Q.sourceType}`,remediation:"Remove or rename one of the duplicate definitions to avoid confusion.",serverName:Q.name,severity:"warn"},{blocking:!1,code:"scope.shadowed",message:`${Q.name} has shadowed definitions in lower-precedence config scopes.`,remediation:"Inspect the other definitions and remove the ones you no longer want to keep.",serverName:Q.name,severity:"warn"}]}function wz(z){let q=[];for(let Q of z){if(Q.pendingApproval)q.push({blocking:!1,code:"state.pending_project_approval",message:`${Q.name} is declared in project config but pending project approval.`,remediation:"Approve the server in the project MCP approval flow before expecting it to become active.",scope:"project",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath});if(Q.disabled)q.push({blocking:!1,code:"state.disabled",message:`${Q.name} is currently disabled.`,remediation:"Re-enable the server before expecting it to be available at runtime.",serverName:Q.name,severity:"warn",sourcePath:Q.sourcePath})}return q}function Sq(z){let q=[...z.findings,...z.servers.flatMap((U)=>U.findings)],Q=q.filter((U)=>U.blocking).length,G=q.filter((U)=>U.severity==="warn").length,I=z.servers.filter((U)=>U.liveCheck.result==="connected"&&U.findings.every((W)=>!W.blocking&&W.severity!=="warn")).length;return{...z,summary:{totalReports:z.servers.length,healthy:I,warnings:G,blocking:Q}}}async function Az(z,q,Q,G,I){if(Q)return{attempted:!1,result:"skipped"};if(!q){if(G.some((X)=>X.pendingApproval))return{attempted:!1,result:"pending"};if(G.some((X)=>X.disabled))return{attempted:!1,result:"disabled"};return{attempted:!1,result:"skipped"}}let U=Date.now(),W=await I.connectToServer(z,q),Z=Date.now()-U;try{switch(W.type){case"connected":return{attempted:!0,result:"connected",durationMs:Z};case"needs-auth":return{attempted:!0,result:"needs-auth",durationMs:Z};case"disabled":return{attempted:!0,result:"disabled",durationMs:Z};case"pending":return{attempted:!0,result:"pending",durationMs:Z};case"failed":return{attempted:!0,result:"failed",durationMs:Z,error:W.error}}}finally{await I.clearServerCache(z,q).catch(()=>{})}}function Tz(z,q,Q){let G=q.find((I)=>I.runtimeActive);if(Q.result==="needs-auth")return[{blocking:!1,code:"auth.needs_auth",message:`${z} requires authentication before it can be used.`,remediation:"Authenticate the server and then rerun the doctor command.",serverName:z,severity:"warn",sourcePath:G?.sourcePath}];if(Q.result==="failed"){let I=G?.transport==="stdio"&&typeof Q.error==="string"&&Q.error.toLowerCase().includes("not found");return[{blocking:!0,code:I?"stdio.command_not_found":"health.failed",message:Q.error?`${z} failed its live health check: ${Q.error}`:`${z} failed its live health check.`,remediation:I?"Verify the configured executable exists on PATH or use a full executable path.":"Inspect the server configuration and retry the connection once the underlying problem is fixed.",serverName:z,severity:"error",sourcePath:G?.sourcePath}]}return[]}async function $q(z,q,Q,G){let I={enterprise:G.getMcpConfigsByScope("enterprise"),local:G.getMcpConfigsByScope("local"),project:G.getMcpConfigsByScope("project"),user:G.getMcpConfigsByScope("user")},{servers:U}=await G.getAllMcpConfigs(),W=G.isMcpServerDisabled(z),Z=U[z]??void 0,X=W?void 0:Z,Y=[...L("enterprise",q.scopeFilter)?p(z,"enterprise",I.enterprise.servers,X,G):[],...L("local",q.scopeFilter)?p(z,"local",I.local.servers,X,G):[],...L("project",q.scopeFilter)?p(z,"project",I.project.servers,X,G):[],...L("user",q.scopeFilter)?p(z,"user",I.user.servers,X,G):[]],P=!!Z&&!Hz(Y,Z,G)&&(Y.length===0&&!q.scopeFilter||Y.length>0&&Y.every((T)=>!T.runtimeActive));if(Z&&P)Y.push(Pz(z,Z,{disabled:W,runtimeActive:!W,runtimeVisible:!W}));let B=Y.some((T)=>T.runtimeActive)||P?X:void 0,A=[...Q.get(z)??[],...Oz(Y),...wz(Y)];if(Y.length===0&&!P)A.push({blocking:!0,code:"state.not_found",message:`${z} was not found in the selected MCP configuration sources.`,remediation:"Check the server name and scope, or add the MCP server before retrying.",serverName:z,severity:"error"});let H=await Az(z,B,q.configOnly,Y,G);return A.push(...Tz(z,Y,H)),{serverName:z,requestedByUser:q.requestedByUser,definitions:Y,liveCheck:H,findings:A}}function Mz(z,q,Q){let G=new Set(Q?Object.keys(q):[]);for(let I of z)for(let U of Object.keys(I))G.add(U);return[...G].sort()}async function Cq(z={configOnly:!1},q=xq){let Q=yq(z),G={enterprise:q.getMcpConfigsByScope("enterprise"),local:q.getMcpConfigsByScope("local"),project:q.getMcpConfigsByScope("project"),user:q.getMcpConfigsByScope("user")},I=bq(hq(G,z.scopeFilter)),{globalFindings:U,serverFindingsByName:W}=Fq(I),{servers:Z}=await q.getAllMcpConfigs(),X=Mz([...L("enterprise",z.scopeFilter)?[G.enterprise.servers]:[],...L("local",z.scopeFilter)?[G.local.servers]:[],...L("project",z.scopeFilter)?[G.project.servers]:[],...L("user",z.scopeFilter)?[G.user.servers]:[]],Z,!z.scopeFilter),Y=await Promise.all(X.map((P)=>$q(P,{configOnly:z.configOnly,requestedByUser:!1,scopeFilter:z.scopeFilter},W,q)));return Q.servers=Y,Q.findings=U,Sq(Q)}async function uq(z,q,Q=xq){let G=yq({...q,targetName:z}),I={enterprise:Q.getMcpConfigsByScope("enterprise"),local:Q.getMcpConfigsByScope("local"),project:Q.getMcpConfigsByScope("project"),user:Q.getMcpConfigsByScope("user")},U=bq(hq(I,q.scopeFilter)),{globalFindings:W,serverFindingsByName:Z}=Fq(U),X=await $q(z,{configOnly:q.configOnly,requestedByUser:!0,scopeFilter:q.scopeFilter},Z,Q);return G.servers=[X],G.findings=W,Sq(G)}Nq();Gq();Rq();kz();jz();_z();Bq();Dz();Ez();v();function bz(z){let q=[];if(q.push("MCP Doctor"),q.push(""),q.push("Summary"),q.push(`- ${z.summary.totalReports} server reports generated`),q.push(`- ${z.summary.healthy} healthy`),q.push(`- ${z.summary.warnings} warnings`),q.push(`- ${z.summary.blocking} blocking issues`),z.targetName)q.push(`- target: ${z.targetName}`);for(let Q of z.servers){q.push(""),q.push(Q.serverName);let G=Q.definitions.find((I)=>I.runtimeActive);if(G)q.push(`- Active source: ${G.sourceType}`),q.push(`- Transport: ${G.transport??"unknown"}`);if(Q.definitions.length>1){let I=Q.definitions.filter((U)=>!U.runtimeActive).map((U)=>U.sourceType);if(I.length>0)q.push(`- Additional definitions: ${I.join(", ")}`)}if(Q.liveCheck.result){let U=new Set(["disabled","pending","skipped"]).has(Q.liveCheck.result)?"State":"Live check";q.push(`- ${U}: ${Q.liveCheck.result}`)}if(Q.liveCheck.error)q.push(`- Error: ${Q.liveCheck.error}`);for(let I of Q.findings)if(q.push(`- ${I.message}`),I.remediation)q.push(`- Fix: ${I.remediation}`)}if(z.findings.length>0){q.push(""),q.push("Global findings");for(let Q of z.findings)if(q.push(`- ${Q.message}`),Q.remediation)q.push(`- Fix: ${Q.remediation}`)}return q.join(`
5
- `)}async function OG(z,q){try{let Q=q.scope?F(q.scope):void 0,G=!!q.configOnly,I=z?await uq(z,{configOnly:G,scopeFilter:Q}):await Cq({configOnly:G,scopeFilter:Q});if(q.json)process.stdout.write(`${JSON.stringify(I,null,2)}
6
- `);else process.stdout.write(`${bz(I)}
7
- `);await new Promise((U)=>setTimeout(U,50)),process.exit(I.summary.blocking>0?1:0);return}catch(Q){O(Q.message)}}async function eq(z,q){try{let Q=await t(z,q);if(Q.type==="connected")return"✓ Connected";else if(Q.type==="needs-auth")return"! Needs authentication";else return"✗ Failed to connect"}catch(Q){return"✗ Connection error"}}async function wG({debug:z,verbose:q}){let Q=yz();w("tengu_mcp_start",{});try{await xz(Q)}catch(G){if(gq(G))O(`Error: Directory ${Q} does not exist`);throw G}try{let{setup:G}=await import("./setup-0.6.1-ye3h2662.mjs");await G(Q,"default",!1,!1,void 0,!1);let{startMCPServer:I}=await import("./mcp-0.6.1-06zc97m0.mjs");await I(Q,z??!1,q??!1)}catch(G){O(`Error: Failed to start MCP server: ${G}`)}}async function AG(z,q){let Q=Wq(z),G=()=>{if(Q&&(Q.type==="sse"||Q.type==="http"))oq(z,Q),nq(z,Q)};try{if(q.scope){let Y=F(q.scope);w("tengu_mcp_delete",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server ${z} from ${Y} config
8
- `),x(`File modified: ${N(Y)}`)}let I=vq(),U=fq(),{servers:W}=a("project"),Z=!!W[z],X=[];if(I.mcpServers?.[z])X.push("local");if(Z)X.push("project");if(U.mcpServers?.[z])X.push("user");if(X.length===0)O(`No MCP server found with name: "${z}"`);else if(X.length===1){let Y=X[0];w("tengu_mcp_delete",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server "${z}" from ${Y} config
9
- `),x(`File modified: ${N(Y)}`)}else process.stderr.write(`MCP server "${z}" exists in multiple scopes:
10
- `),X.forEach((Y)=>{process.stderr.write(` - ${Xq(Y)} (${N(Y)})
11
- `)}),process.stderr.write(`
12
- To remove from a specific scope, use:
13
- `),X.forEach((Y)=>{process.stderr.write(` claude mcp remove "${z}" -s ${Y}
14
- `)}),O()}catch(I){O(I.message)}}async function TG(){w("tengu_mcp_list",{});let{servers:z}=await J();if(Object.keys(z).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
15
- `);let q=Object.entries(z),Q=await rq(q,async([G,I])=>({name:G,server:I,status:await eq(G,I)}),{concurrency:pq()});for(let{name:G,server:I,status:U}of Q)if(I.type==="sse")console.log(`${G}: ${I.url} (SSE) - ${U}`);else if(I.type==="http")console.log(`${G}: ${I.url} (HTTP) - ${U}`);else if(I.type==="claudeai-proxy")console.log(`${G}: ${I.url} - ${U}`);else if(!I.type||I.type==="stdio"){let W=Array.isArray(I.args)?I.args:[];console.log(`${G}: ${I.command} ${W.join(" ")} - ${U}`)}}await b(0)}async function MG(z){w("tengu_mcp_get",{name:z});let q=Wq(z);if(!q)O(`No MCP server found with name: ${z}`);console.log(`${z}:`),console.log(` Scope: ${Xq(q.scope)}`);let Q=await eq(z,q);if(console.log(` Status: ${Q}`),q.type==="sse"){if(console.log(" Type: sse"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="http"){if(console.log(" Type: http"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,I]of Object.entries(q.headers))console.log(` ${G}: ${I}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="stdio"){console.log(" Type: stdio"),console.log(` Command: ${q.command}`);let G=Array.isArray(q.args)?q.args:[];if(console.log(` Args: ${G.join(" ")}`),q.env){console.log(" Environment:");for(let[I,U]of Object.entries(q.env))console.log(` ${I}=${U}`)}}console.log(`
16
- To remove this server, run: claude mcp remove "${z}" -s ${q.scope}`),await b(0)}async function BG(z,q,Q){try{let G=F(Q.scope),I=mq(q),W=Q.clientSecret&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string"&&"oauth"in I&&I.oauth&&typeof I.oauth==="object"&&"clientId"in I.oauth?await sq():void 0;await c(z,I,G);let Z=I&&typeof I==="object"&&"type"in I?String(I.type||"stdio"):"stdio";if(W&&I&&typeof I==="object"&&"type"in I&&(I.type==="sse"||I.type==="http")&&"url"in I&&typeof I.url==="string")iq(z,{type:I.type,url:I.url},W);w("tengu_mcp_add",{scope:G,source:"json",type:Z}),x(`Added ${Z} MCP server ${z} to ${G} config`)}catch(G){O(G.message)}}async function _G(z){try{let q=F(z.scope),Q=lq();w("tengu_mcp_add",{scope:q,platform:Q,source:"desktop"});let{readClaudeDesktopMcpServers:G}=await import("./claudeDesktop-0.6.1-gsfj6bp7.mjs"),I=await G();if(Object.keys(I).length===0)x("No MCP servers found in Claude Desktop configuration or configuration file does not exist.");let{unmount:U}=await dq(K(aq,{children:K(tq,{children:K(Eq,{servers:I,scope:q,onDone:()=>{U()}})})}),{exitOnCtrlC:!0})}catch(q){O(q.message)}}async function EG(){w("tengu_mcp_reset_mcpjson_choices",{}),cq((z)=>({...z,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),x(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
17
- You will be prompted for approval next time you start Claude Code.`)}export{wG as mcpServeHandler,EG as mcpResetChoicesHandler,AG as mcpRemoveHandler,TG as mcpListHandler,MG as mcpGetHandler,OG as mcpDoctorHandler,BG as mcpAddJsonHandler,_G as mcpAddFromDesktopHandler};
@@ -1 +0,0 @@
1
- import{hpa as z}from"./cli-0.6.1-9pfc6b63.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{Sf as eq,Uf as ez}from"./cli-0.6.1-pkqzm2ty.mjs";import{$D as Dz,Fk as fq,Ik as Tz,NQ as Zq,OQ as zz,UB as cq,VB as jz,YB as uq,ZB as _z,_D as Lq,aR as nq,gE as $q,iE as Pz,lu as Vq,ou as xz,xm as tq,ym as tz}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import{YU as pq,ZU as Mz}from"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import"./cli-0.6.1-vkd5hcb8.mjs";import"./cli-0.6.1-1n5ek5r5.mjs";import{lW as y,nW as wz}from"./cli-0.6.1-x25mwydc.mjs";import{RW as yq,RY as bq,kY as A,mY as V,qY as oq}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import{p0 as W,q0 as X,r0 as x}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Pq}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import{O0 as hq,Q0 as Fz}from"./cli-0.6.1-8x7dm6mk.mjs";import"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import{s5 as jq,t5 as Cz}from"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{$aa as Rz,Ada as iq,B9 as _q,Gaa as Nq,I8 as Xz,Ida as oz,O9 as Ez,Taa as Sz,Uaa as Jq,Yaa as Dq,fba as Sq,i8 as Iq,iba as Rq,jba as vq,kba as kz,sba as vz,tba as Oz}from"./cli-0.6.1-ybch0rz5.mjs";import{$da as xq,dea as Iz}from"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import{ofa as lq,pfa as lz}from"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import{cga as Hq,ega as Az}from"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import{Fha as iz,zha as aq}from"./cli-0.6.1-qsq2xg3g.mjs";import{Iha as f,Vha as Fq}from"./cli-0.6.1-qdytg688.mjs";import{Fja as Mq,yna as bz}from"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as Yq,epa as Lz,hpa as D}from"./cli-0.6.1-9pfc6b63.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{mf as r,nf as Xz}from"./cli-0.6.1-0jy2jkq4.mjs";import{lW as s,nW as Vz,vW as n,wW as Wz}from"./cli-0.6.1-x25mwydc.mjs";import{RW as Nz,RY as Uz,kY as l,mY as H}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import{p0 as G,q0 as f,r0 as T}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Jz}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as x,hpa as Iz}from"./cli-0.6.1-9pfc6b63.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.6.1-kfy009df.mjs";import{og as i,pg as Nb,qg as V,rg as Pb}from"./cli-0.6.1-np8mapek.mjs";import{Xw as g,Yw as p,Zw as Kb,lu as Q,mu as c,ou as Jb,rM as r,sM as Qb}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import"./cli-0.6.1-vkd5hcb8.mjs";import"./cli-0.6.1-1n5ek5r5.mjs";import"./cli-0.6.1-x25mwydc.mjs";import{RW as Hb}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import{p0 as Y,r0 as v}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Gb}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-8x7dm6mk.mjs";import{B2 as kb,L2 as f,M2 as qb,N2 as F,O2 as zb,Y2 as D,b3 as $,d3 as I,h2 as C,i2 as T,n2 as X,p3 as Bb,s2 as A,s3 as M,u3 as Eb}from"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import{s5 as W,t5 as s}from"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{Aca as o,cda as w,ida as e,xca as O,yca as S}from"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import{Rfa as L,Sfa as h,Tfa as bb}from"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import{cga as Z,ega as n}from"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as _,hpa as d}from"./cli-0.6.1-9pfc6b63.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{$2 as m,P2 as a,Q2 as b,R2 as c,S2 as d,T2 as e,U2 as f,V2 as g,W2 as h,X2 as i,Y2 as j,Z2 as k,_2 as l,a3 as n,b3 as o,c3 as p,d3 as q,e3 as r,f3 as s,g3 as t,h3 as u,i3 as v,j3 as w,k3 as x,l3 as y,m3 as z,n3 as A,o3 as B,p3 as C}from"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import"./cli-0.6.1-9pfc6b63.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{$na as bQ,Zna as w,_na as C,aoa as A,hoa as r,ioa as o,joa as kQ,koa as JQ,loa as W,moa as a,noa as _,ooa as BQ,roa as WQ}from"./cli-0.6.1-rjp543r8.mjs";import{hpa as b}from"./cli-0.6.1-9pfc6b63.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{$fa as h,Ufa as a,Vfa as b,Wfa as c,Xfa as d,Yfa as e,Zfa as f,_fa as g,aga as i,bga as j}from"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-9pfc6b63.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{wh as nO,xh as aD,yh as oO}from"./cli-0.6.1-cntxcs18.mjs";import{Eo as cO,Fo as J1,Go as KO,Ho as nD,Io as a,Jo as CO,Ko as bO,Lo as qO,Mo as oD,No as NO,Oo as t,Vo as UD,Zo as rD,gp as T1,ho as pD,hp as yO,ij as VO,io as B1,ip as g1,jj as S1,jp as TO,kp as GD,lp as fD,mp as tD,np as sD,op as gO,pp as eD,qp as O1,ro as cD,rp as hO,sN as Z1,sp as h1,tN as ID,uN as kO,uo as lD,vN as xD,vo as C1,wo as SO,xo as EO,yo as zO,zo as b1}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import{HV as dD,LV as E1}from"./cli-0.6.1-vkd5hcb8.mjs";import{NV as _O,RV as wD}from"./cli-0.6.1-1n5ek5r5.mjs";import"./cli-0.6.1-x25mwydc.mjs";import"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import"./cli-0.6.1-7mnw60rd.mjs";import"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import{A0 as iD,B0 as q1}from"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-8x7dm6mk.mjs";import{h1 as uD,m1 as U1}from"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import{o6 as hD,p6 as kD,q6 as mD,w6 as UO,x6 as RD,y6 as vD}from"./cli-0.6.1-rsa7f7a3.mjs";import{B6 as BO,D6 as y1}from"./cli-0.6.1-7hcdhx2y.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{Dca as lO,Eca as V1,Pca as BD,Sca as CD,Tca as R1,Xca as bD,Yca as RO,Zca as qD,_ca as yD,ada as vO,bda as TD,eda as gD,ida as v1,lda as DO,oda as iO}from"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import{eha as B,hha as XO}from"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import{Lha as pO,Nha as OO,Vha as PO}from"./cli-0.6.1-qdytg688.mjs";import{yna as I1,zja as xO}from"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import{boa as ZO,roa as x1}from"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{hpa as b}from"./cli-0.6.1-9pfc6b63.mjs";function e(O,D=!0){let $=cO(O);if($.type==="object"&&$.properties){let Z=$.properties,Q=Array.isArray($.required)?$.required:[],W={};for(let[H,Y]of Object.entries(Z))W[H]=e(Y,D);if($.properties=W,D)$.required=Q.filter((H)=>(H in W)),$.additionalProperties=!1;else $.required=Q.filter((H)=>(H in W))}if("items"in $)if(Array.isArray($.items))$.items=$.items.map((Z)=>e(Z,D));else $.items=e($.items,D);for(let Z of["anyOf","oneOf","allOf"])if(Z in $&&Array.isArray($[Z]))$[Z]=$[Z].map((Q)=>e(Q,D));return $}function jO(O){let $=!a()&&!pO(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return O.filter((Z)=>Z.name!=="ToolSearchTool").filter((Z)=>!Z.type||Z.type==="function").map((Z)=>{let Q=Z.description??"";if(Z.input_schema){let Y=dO.get(Z.input_schema);if(Y&&Y.name===Z.name&&Y.description===Q&&Y.strict===$)return Y.result}_1.computes++;let W={...Z.input_schema??{type:"object",properties:{}}};if(Z.name==="Agent"&&W.properties){let Y=W.properties;if(!Array.isArray(W.required))W.required=[];let J=W.required;for(let X of["message","subagent_type"])if(X in Y&&!J.includes(X))J.push(X)}let H={type:"function",function:{name:Z.name,description:Q,parameters:e(W,$)}};if(Z.input_schema)dO.set(Z.input_schema,{name:Z.name,description:Q,strict:$,result:H});return H})}var dO,_1;var wO=b(()=>{PO();J1();NO();dO=new WeakMap,_1={computes:0}});function z1(){if(OO())return;try{return lO().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function aO(){if(DO()?.transport!=="gemini")return;let O=nO(process.env);if(O&&O!=="access-token")return;if(OO())return;z1()}var rO=b(()=>{iO();PO();oO();V1()});import{randomUUID as K1}from"crypto";function L1(){return K1()}function tO(O,D){let $=L1(),Z=Date.now();return B(JSON.stringify({type:"api_call_start",correlationId:$,provider:O,model:D,timestamp:Z}),{level:"debug"}),{correlationId:$,startTime:Z}}function sO(O,D,$,Z,Q,W,H,Y,J,X){let L=Date.now()-D,_={type:Z==="error"?"api_call_error":"api_call_end",correlationId:O,model:$,duration_ms:L,status:Z,tokens_in:Q,tokens_out:W,streaming:H};if(Y!==void 0)_.first_token_ms=Y;if(J!==void 0)_.total_chunks=J;if(X)_.error=X;B(JSON.stringify(_),{level:Z==="error"?"error":"debug"})}var eO=b(()=>{XO()});function OD(O){return O.trim().length===0}function P1(O){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test(O)}function N1(O){return typeof O==="object"&&O!==null&&!Array.isArray(O)}function j1(O){return $D[O]??null}function WD(O){return O in $D}function DD(O,D){let $=j1(O);if(!$)return null;return{[$]:D}}function HO(O,D){if(D===void 0)return{};try{let $=JSON.parse(D);if(N1($))return $;if(typeof $==="string"&&!OD($))return DD(O,$)??$;return $}catch{if(OD(D)||P1(D))return{};return DD(O,D)??{}}}var $D;var GO=b(()=>{$D={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function $O(O){if(!O)return{};let D={};for(let[$,Z]of Object.entries(O)){let Q=$.toLowerCase();if(Q.startsWith("x-anthropic")||Q.startsWith("anthropic-")||Q.startsWith("x-claude")||Q==="x-app"||Q==="x-client-app"||Q==="authorization"||Q==="x-api-key"||Q==="api-key")continue;D[$]=Z}return D}function ZD(O){let D=O.headers.get("retry-after");return D?` (Retry-After: ${D})`:""}var QD=()=>{};function YD(O){return new Promise((D)=>setTimeout(D,O))}function WO(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var fO=()=>{};function w1(O){let D=XD.get(O);if(D!==void 0)return D;JD.toolResultComputes++;let $=f1(O.content,O.is_error);return XD.set(O,$),$}function G1(O){if(typeof O==="string")return O;if(O===null||O===void 0)return"{}";if(typeof O!=="object")return JSON.stringify(O);let D=HD.get(O);if(D!==void 0)return D;JD.toolUseArgumentsComputes++;let $=JSON.stringify(O);return HD.set(O,$),$}function FO(O){if(!O)return"";if(typeof O==="string")return O;if(Array.isArray(O))return O.map((D)=>D.type==="text"?D.text??"":"").join(`
2
-
3
- `);return String(O)}function f1(O,D){if(typeof O==="string")return D?`Error: ${O}`:O;if(!Array.isArray(O)){let Q=JSON.stringify(O??"");return D?`Error: ${Q}`:Q}let $=[];for(let Q of O){if(Q?.type==="text"&&typeof Q.text==="string"){$.push({type:"text",text:Q.text});continue}if(Q?.type==="image"){let W=Q.source;if(W?.type==="url"&&W.url)$.push({type:"image_url",image_url:{url:W.url}});else if(W?.type==="base64"&&W.media_type&&W.data)$.push({type:"image_url",image_url:{url:`data:${W.media_type};base64,${W.data}`}});continue}if(typeof Q?.text==="string")$.push({type:"text",text:Q.text})}if($.length===0)return"";if($.length===1&&$[0].type==="text"){let Q=$[0].text??"";return D?`Error: ${Q}`:Q}if($.every((Q)=>Q.type==="text")){let Q=$.map((W)=>W.text??"").join(`
4
-
5
- `);return D?`Error: ${Q}`:Q}if(D&&$[0]?.type==="text")$[0]={...$[0],text:`Error: ${$[0].text??""}`};else if(D)$.unshift({type:"text",text:"Error:"});return $}function JO(O){if(typeof O==="string")return O;if(!Array.isArray(O))return String(O??"");let D=[];for(let Z of O)switch(Z.type){case"text":D.push({type:"text",text:Z.text??""});break;case"image":{let Q=Z.source;if(Q?.type==="base64")D.push({type:"image_url",image_url:{url:`data:${Q.media_type};base64,${Q.data}`}});else if(Q?.type==="url")D.push({type:"image_url",image_url:{url:Q.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(Z.text)D.push({type:"text",text:Z.text})}if(D.length===0)return"";if(D.length===1&&D[0].type==="text")return D[0].text??"";if(D.every((Z)=>Z.type==="text"))return D.map((Z)=>Z.text??"").join(`
6
-
7
- `);return D}function _D(O,D,$){let Z=$?.preserveReasoningContent===!0,Q=[],W=new Set,H=new Set;for(let X of O){let _=(X.message??X).content;if(Array.isArray(_)){for(let f of _)if(f.type==="tool_result"&&f.tool_use_id)H.add(f.tool_use_id)}}let Y=FO(D);if(Y)Q.push({role:"system",content:Y});for(let X=0;X<O.length;X++){let L=O[X],_=X===O.length-1,f=L.message??L,R=f.role??L.role,N=f.content;if(R==="user")if(Array.isArray(N)){let G=N.filter((j)=>j.type==="tool_result"),I=N.filter((j)=>j.type!=="tool_result");for(let j of G){let v=j.tool_use_id??"unknown";if(W.has(v))Q.push({role:"tool",tool_call_id:v,content:w1(j)});else B(`Dropping orphan tool_result for ID: ${v} to prevent API error`)}if(I.length>0)Q.push({role:"user",content:JO(I)})}else Q.push({role:"user",content:JO(N)});else if(R==="assistant")if(Array.isArray(N)){let G=N.filter((P)=>P.type==="tool_use"),I=N.find((P)=>P.type==="thinking"),j=N.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),v={role:"assistant",content:(()=>{let P=JO(j);return typeof P==="string"?P:Array.isArray(P)?P.map((M)=>M.text??"").join(""):""})()};if(Z){let P=I?.thinking;if(typeof P==="string"&&P.trim().length>0)v.reasoning_content=P;else v.reasoning_content=""}if(G.length>0){let P=G.map((M)=>{let h=M.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!H.has(h)&&!_)return null;W.add(h);let q={id:h,type:"function",function:{name:M.name??"unknown",arguments:G1(M.input)}};if(M.extra_content)q.extra_content={...M.extra_content};if(a()){let u=M.signature??I?.signature,C=q.extra_content?.google??{};q.extra_content={...q.extra_content,google:{...C,thought_signature:u??"skip_thought_signature_validator"}}}return q}).filter((M)=>M!==null);if(P.length>0)v.tool_calls=P}if(v.content||v.tool_calls?.length)Q.push(v)}else{let G={role:"assistant",content:(()=>{let I=JO(N);return typeof I==="string"?I:Array.isArray(I)?I.map((j)=>j.text??"").join(""):""})()};if(G.content)Q.push(G)}}let J=[];for(let X of Q){let L=J[J.length-1];if(L&&L.role==="tool"&&X.role==="user")J.push({role:"assistant",content:"[Tool execution interrupted by user]"});let _=J[J.length-1];if(_&&_.role===X.role&&X.role!=="tool"&&X.role!=="system"){let f=_.content,R=X.content;if(typeof f==="string"&&typeof R==="string")_.content=f+(f&&R?`
8
- `:"")+R;else{let N=(G)=>{if(!G)return[];if(typeof G==="string")return G?[{type:"text",text:G}]:[];return G};_.content=[...N(f),...N(R)]}if(X.tool_calls?.length)_.tool_calls=[..._.tool_calls??[],...X.tool_calls]}else J.push(X)}return J}var XD,HD,JD;var VD=b(()=>{XO();NO();XD=new WeakMap,HD=new WeakMap,JD={toolResultComputes:0,toolUseArgumentsComputes:0}});function KD(O){for(let D of zD){let $=O[D];if(typeof $==="string"&&$!=="")return $}return null}function LD(O){for(let D of zD){let $=O[D];if(typeof $==="string"&&$!=="")return $}return null}var zD;var AO=b(()=>{zD=["reasoning_content","reasoning","reasoning_text","thinking"]});function PD(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function MO(O,D){if(O.firstTokenTime===null)O.firstTokenTime=Date.now();O.chunkCount++}function ND(O){let D=Date.now(),$=O.firstTokenTime?D-O.firstTokenTime:null,Z=D-O.startTime;return{totalChunks:O.chunkCount,firstTokenMs:$,durationMs:Z}}var jD=()=>{};function F1(O){if(!O)return;return _O(O)}function A1(O){try{let D=JSON.parse(O);return D&&typeof D==="object"&&!Array.isArray(D)?O:null}catch{for(let D of FD)try{let $=O+D,Z=JSON.parse($);if(Z&&typeof Z==="object"&&!Array.isArray(Z))return $}catch{}return null}}async function*AD(O,D,$,Z){let Q=WO(),W=0,H=new Map,Y=!1,J=!1,X=!1,L=GD(),_=null,f=!1,R=!1,N=0,G=PD();yield{type:"message_start",message:{id:Q,type:"message",role:"assistant",content:[],model:D,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let I=O.body?.getReader();if(!I)return;let j=new TextDecoder,v="",P=120000,M=Date.now();async function h(){return new Promise((C,i)=>{let y=setTimeout(()=>{let S=Math.round((Date.now()-M)/1000);i(Error(`OpenAI/Gemini SSE stream idle for ${S}s (limit: ${P/1000}s). Connection likely dropped.`))},P),x;if($)x=()=>{clearTimeout(y)},$.addEventListener("abort",x,{once:!0});I.read().then((S)=>{if(clearTimeout(y),$&&x)$.removeEventListener("abort",x);if(S.value)M=Date.now();C(S)},(S)=>{if(clearTimeout(y),$&&x)$.removeEventListener("abort",x);i(S)})})}let q=async function*(){if(!Y)return;let C=L.flush();if(C)yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:C}};yield{type:"content_block_stop",index:W},W++,Y=!1};try{while(!0){let{done:C,value:i}=await h();if(C)break;v+=j.decode(i,{stream:!0});let y=v.split(`
9
- `);v=y.pop()??"";for(let x of y){let S=x.trim();if(!S||S==="data: [DONE]")continue;if(!S.startsWith("data: "))continue;let n;try{n=JSON.parse(S.slice(6))}catch{continue}let p=F1(n.usage);for(let k of n.choices??[]){let d=k.delta,QO=KD(d);if(QO!=null){if(!J)yield{type:"content_block_start",index:W,content_block:{type:"thinking",thinking:""}},J=!0;yield{type:"content_block_delta",index:W,delta:{type:"thinking_delta",thinking:QO}}}if(d.content!=null&&d.content!==""){if(J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(!Y)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},Y=!0;let K=L.feed(d.content);if(K)N+=K.length,yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:K}};MO(G,d.content)}if(d.tool_calls){for(let K of d.tool_calls)if(K.id&&K.function?.name){if(J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(Y)yield*q();let w=W,c=K.function.arguments??"",T=WD(K.function.name);if(MO(G,K.function.arguments??""),H.set(K.index,{id:K.id,name:K.function.name,index:w,jsonBuffer:c,normalizeAtStop:T}),yield{type:"content_block_start",index:w,content_block:{type:"tool_use",id:K.id,name:K.function.name,input:{},...K.extra_content?{extra_content:K.extra_content}:{},...K.extra_content?.google?.thought_signature?{signature:K.extra_content.google.thought_signature}:{}}},W++,K.function.arguments&&!T)N+=K.function.arguments.length,yield{type:"content_block_delta",index:w,delta:{type:"input_json_delta",partial_json:K.function.arguments}}}else if(K.function?.arguments){let w=H.get(K.index);if(w){if(K.function.arguments)N+=K.function.arguments.length,w.jsonBuffer+=K.function.arguments;if(w.normalizeAtStop)continue;yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:K.function.arguments}}}}}if(k.finish_reason&&!R){if(R=!0,J&&!X)yield{type:"content_block_stop",index:W},W++,X=!0;if(Y)yield*q();for(let[,w]of H){if(w.normalizeAtStop){let T;if(k.finish_reason==="length")T=w.jsonBuffer;else{let A=A1(w.jsonBuffer);if(A)T=A;else T=JSON.stringify(HO(w.name,w.jsonBuffer))}yield{type:"content_block_delta",index:w.index,delta:{type:"input_json_delta",partial_json:T}},yield{type:"content_block_stop",index:w.index};continue}let c="";if(w.jsonBuffer)try{JSON.parse(w.jsonBuffer)}catch{let T=w.jsonBuffer.trimEnd();for(let A of FD)try{JSON.parse(T+A),c=A;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 K=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(!Y)yield{type:"content_block_start",index:W,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:W,delta:{type:"text_delta",text:`
10
-
11
- [Content blocked by provider safety filter]`}}}if(_=K,yield{type:"message_delta",delta:{stop_reason:K,stop_sequence:null},...p?{usage:p}:{}},p)f=!0}}if(!f&&p&&(n.choices?.length??0)===0&&_!==null)yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:p},f=!0}}}finally{I.releaseLock()}let u=ND(G);if(u.totalChunks>0)B(JSON.stringify({type:"stream_stats",model:D,total_chunks:u.totalChunks,first_token_ms:u.firstTokenMs,duration_ms:u.durationMs}),{level:"debug"});if(!f&&_!==null&&(N>0||(Z??0)>0)){let C=ID(D);yield{type:"message_delta",delta:{stop_reason:_,stop_sequence:null},usage:{input_tokens:Z??0,output_tokens:Math.ceil(N/C),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var FD,IO;var MD=b(()=>{XO();jD();wD();fD();GO();xD();fO();AO();FD=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];IO=class IO{generator;controller=new AbortController;constructor(O){this.generator=O}async*[Symbol.asyncIterator](){yield*this.generator}}});function M1(O){let D=O.toLowerCase();return RD.some(($)=>D.includes($))}function s(O){try{let D=new URL(O);if(D.username)D.username="redacted";if(D.password)D.password="redacted";for(let Z of D.searchParams.keys())if(M1(Z))D.searchParams.set(Z,"redacted");let $=D.toString();return t($,process.env)??$}catch{return t(O,process.env)??O}}var SD=b(()=>{UD();vD()});function ED(O){if(!O)return!1;try{let D=new URL(O).host;return D==="api.openai.com"||D.endsWith(".api.openai.com")}catch{return!1}}class D1{defaultHeaders;reasoningEffort;constructor(O,D){this.defaultHeaders=$O(O),this.reasoningEffort=D}create(O,D){let $=this,Z,Q=(async()=>{let W=TD({model:O.model,reasoningEffortOverride:$.reasoningEffort}),H=await $._doRequest(W,O,D);if(Z=H,O.stream){let L=H.url?.includes("/responses"),_=0;for(let f of O.messages){let R=f,N=R.message?R.message.content:R.content;if(N!=null&&typeof N!=="string"&&!Array.isArray(N))continue;_+=kO(N)}if(typeof O.system==="string")_+=Z1(O.system);else if(Array.isArray(O.system))_+=kO(O.system);return new IO(W.transport==="codex_responses"||L?O1(H,W.resolvedModel,D?.signal):AD(H,W.resolvedModel,D?.signal,_))}if(W.transport==="codex_responses"){let L=await eD(H,D?.signal);return hO(L,W.resolvedModel)}if(H.url?.includes("/responses")||W.transport==="chat_completions"&&KO()){if((H.headers.get("content-type")??"").includes("application/json")){let _=await H.json();if(_&&typeof _==="object"&&(("output"in _)||("incomplete_details"in _)))return hO(_,W.resolvedModel);return $._convertNonStreamingResponse(_,W.resolvedModel)}}if((H.headers.get("content-type")??"").includes("application/json")){let L=await H.json();return $._convertNonStreamingResponse(L,W.resolvedModel)}let X=await H.text().catch(()=>"");throw ZO.generate(H.status,void 0,`OpenAI API error ${H.status}: unexpected response: ${X.slice(0,500)}`,H.headers)})();return Q.withResponse=async()=>{return{data:await Q,response:Z??new Response,request_id:Z?.headers.get("x-request-id")??WO()}},Q}async _doRequest(O,D,$){let Z=vO(O.baseUrl),Q=KO();if(Q&&O.transport==="codex_responses"){let H=DO(),Y=H?.extras?.githubToken??H?.apiKey??"";if(!Y)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return gO({request:O,credentials:{apiKey:Y,source:"env"},params:D,defaultHeaders:{...this.defaultHeaders,...$O($?.headers),...UO,...BO(D.messages)},signal:$?.signal})}if(O.transport==="codex_responses"&&!Q){let H=await CD().catch(async(J)=>{return B(`[codex] access token refresh failed before request: ${J instanceof Error?J.message:String(J)}`,{level:"warn"}),{refreshed:!1,credentials:await BD()}}),Y=gD({storedCredentials:H.credentials});if(!Y.apiKey){let J=OO()?"":", choose Codex OAuth in /provider",X=Y.authPath?`${J} or place a Codex auth.json at ${Y.authPath}`:J,L=t(O.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${L}. Set CODEX_API_KEY${X}.`)}if(!Y.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 gO({request:O,credentials:Y,params:D,defaultHeaders:{...this.defaultHeaders,...$O($?.headers)},signal:$?.signal})}return this._doOpenAIRequest(O,D,$)}async _doOpenAIRequest(O,D,$){let Z=rD(D.messages),Q=_D(Z,D.system,{preserveReasoningContent:CO(O.baseUrl)||qO(O.baseUrl)||bO(O.baseUrl)}),W={model:O.resolvedModel,messages:Q,stream:D.stream??!1,store:!1,...ED(O.baseUrl)&&{prompt_cache_key:xO(),prompt_cache_retention:"24h"}},H=typeof D.max_tokens==="number"&&D.max_tokens>0?D.max_tokens:void 0,Y=typeof D.max_completion_tokens==="number"?D.max_completion_tokens:void 0;if(H!==void 0)W.max_completion_tokens=H;else if(Y!==void 0)W.max_completion_tokens=Y;if(D.stream&&!RO(O.baseUrl))W.stream_options={include_usage:!0};let J=KO(),X=nD(),L=RO(O.baseUrl),_=vO(O.baseUrl),f=J&&_==="copilot",R=J&&(_==="models"||_==="custom"),N=CO(O.baseUrl),G=qO(O.baseUrl),I=bO(O.baseUrl);if((J||X||L||N||G||I)&&W.max_completion_tokens!==void 0)W.max_tokens=W.max_completion_tokens,delete W.max_completion_tokens;if(X||a()||N||G||I)delete W.store;if(D.temperature!==void 0)W.temperature=D.temperature;if(D.top_p!==void 0)W.top_p=D.top_p;if(G){let V=D.thinking?.type,z=V==="disabled"?"disabled":V==="enabled"||V==="adaptive"?"enabled":void 0;if(z)W.thinking={type:z};if(z==="enabled"){let g=O.reasoning?.effort;if(g)W.reasoning_effort=oD(g)}}if(D.tools&&D.tools.length>0){let V=jO(D.tools);if(V.length>0){if(W.tools=V,D.tool_choice){let z=D.tool_choice;if(z.type==="auto")W.tool_choice="auto";else if(z.type==="tool"&&z.name)W.tool_choice={type:"function",function:{name:z.name}};else if(z.type==="any")W.tool_choice="required";else if(z.type==="none")W.tool_choice="none"}}}let j={"Content-Type":"application/json",...this.defaultHeaders,...$O($?.headers),"User-Agent":iD()},v=a(),P=DO(),M;if(bD(P?.baseUrl)&&!P?.apiKey)M=(await lD().catch(async(z)=>{return B(`[xai] access token refresh failed before request: ${z instanceof Error?z.message:String(z)}`,{level:"warn"}),{refreshed:!1,credentials:await cD()}})).credentials?.accessToken;let h=P?.apiKey??P?.extras?.githubToken??M??"",q=!1;try{let{hostname:V}=new URL(O.baseUrl);q=V.endsWith(".azure.com")&&(V.includes("cognitiveservices")||V.includes("openai")||V.includes("services.ai"))}catch{}let u=!1;try{u=O.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(M&&h===M)j["User-Agent"]=pD()}else if(v){let V=await aD(process.env);if(V.kind!=="none"){if(j.Authorization=`Bearer ${V.credential}`,V.kind!=="api-key"&&"projectId"in V&&V.projectId)j["x-goog-user-project"]=V.projectId}}if(f)Object.assign(j,UO,BO(D.messages));else if(R)j.Accept="application/vnd.github+json",j["X-GitHub-Api-Version"]="2022-11-28";let C=(V)=>{if(q){let z=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",g=O.resolvedModel??P?.model??"gpt-4o";if(/\/deployments\//i.test(V))return`${V.replace(/\/+$/,"")}/chat/completions?api-version=${z}`;return`${V.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${g}/chat/completions?api-version=${z}`}return`${V}/chat/completions`},i=L?qD(O.baseUrl):[],y=O.baseUrl,x=C(y),S=new Set([y]),n=!1,p=(V)=>{for(let z of i){if(S.has(z))continue;let g=x;return S.add(z),y=z,x=C(y),B(`[OpenAIShim] self-heal retry reason=${V} method=POST from=${s(g)} to=${s(x)} model=${O.resolvedModel}`,{level:"warn"}),!0}return!1},k=VO(W),d=()=>{k=VO(W)},QO=()=>({method:"POST",headers:j,body:k,signal:$?.signal}),K=L?i.length+1:0,w=(J?hD:1)+K,c=(V,z,g)=>{if($?.signal?.aborted)throw V;let E=g??EO(V,{url:z}),r=s(z),o=t(E.message,process.env)||"Request failed";throw B(`[OpenAIShim] transport failure category=${E.category} retryable=${E.retryable} code=${E.code??"unknown"} method=POST url=${r} model=${O.resolvedModel} message=${o}`,{level:"warn"}),ZO.generate(503,void 0,SO(`OpenAI API transport error: ${o}${E.code?` (code=${E.code})`:""}`,E),new Headers)},T=(V,z,g,E,r,o="",F)=>{let U=F??zO({status:V,body:z}),l=s(r);throw B(`[OpenAIShim] request failed category=${U.category} retryable=${U.retryable} status=${V} method=POST url=${l} model=${O.resolvedModel}`,{level:"warn"}),ZO.generate(V,g,SO(`OpenAI API error ${V}: ${z}${o}`,U),E)},A,Q1=O.baseUrl.includes("nvidia")?"nvidia-nim":O.baseUrl.includes("minimax")?"minimax":O.baseUrl.includes("localhost:11434")||O.baseUrl.includes("localhost:11435")?"ollama":O.baseUrl.includes("anthropic")?"anthropic":"openai",mO=uD(),{correlationId:Y1,startTime:X1}=tO(Q1,O.resolvedModel);for(let V=0;V<w;V++){try{A=await yO(x,QO(),{provider:mO})}catch(F){if($?.signal?.aborted===!0||typeof DOMException<"u"&&F instanceof DOMException&&F.name==="AbortError"||typeof F==="object"&&F!==null&&"name"in F&&F.name==="AbortError")throw F;let l=EO(F,{url:x});if(L&&l.category==="localhost_resolution_failed"&&p("localhost_resolution_failed"))continue;c(F,x,l)}if(A.ok){let F=0,U=0;if(!D.stream)try{let m=await A.clone().json();F=m.usage?.prompt_tokens??0,U=m.usage?.completion_tokens??0}catch{}return sO(Y1,X1,O.resolvedModel,"success",F,U,!1),A}if(J&&A.status===429&&V<w-1){await A.text().catch(()=>{});let F=Math.min(kD*2**V,mD);await YD(F*1000);continue}let z=await A.text().catch(()=>"unknown error"),g=J&&A.status===429?ZD(A):"";if(J&&A.status===400){if(z.includes("/chat/completions")||z.includes("not accessible")){let F=`${O.baseUrl}/responses`,U={model:O.resolvedModel,input:tD(D.messages),stream:D.stream??!1,store:!1,...ED(O.baseUrl)&&{prompt_cache_key:xO(),prompt_cache_retention:"24h"}};if(!Array.isArray(U.input)||U.input.length===0)U.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let l=FO(D.system);if(l)U.instructions=l;if(W.max_tokens!==void 0)U.max_output_tokens=W.max_tokens;if(D.tools&&D.tools.length>0){let YO=sD(D.tools);if(YO.length>0)U.tools=YO}let m;try{m=await yO(F,{method:"POST",headers:j,body:VO(U),signal:$?.signal},{provider:mO})}catch(YO){c(YO,F)}if(m.ok)return m;let LO=await m.text().catch(()=>"unknown error"),H1=zO({status:m.status,body:LO}),uO;try{uO=JSON.parse(LO)}catch{}T(m.status,LO,uO,m.headers,F,"",H1)}}let E=zO({status:A.status,body:z});if(L&&E.category==="endpoint_not_found"&&p("endpoint_not_found"))continue;let r=Array.isArray(W.tools)&&W.tools.length>0;if(!n&&E.category==="tool_call_incompatible"&&yD({baseUrl:y,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=${O.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(z)}catch{}T(A.status,z,o,A.headers,x,g,E)}throw ZO.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse(O,D){let $=O.choices?.[0],Z=[],Q=LD($?.message??{});if(Q)Z.push({type:"thinking",thinking:Q});let W=$?.message?.content!==""&&$?.message?.content!=null?$?.message?.content:null;if(typeof W==="string"&&W)Z.push({type:"text",text:TO(W)});else if(Array.isArray(W)&&W.length>0){let Y=[];for(let X of W)if(X&&typeof X==="object"&&X.type==="text"&&typeof X.text==="string")Y.push(X.text);let J=Y.join(`
12
- `);if(J)Z.push({type:"text",text:TO(J)})}if($?.message?.tool_calls)for(let Y of $.message.tool_calls){let J=HO(Y.function.name,Y.function.arguments);Z.push({type:"tool_use",id:Y.id,name:Y.function.name,input:J,...Y.extra_content?{extra_content:Y.extra_content}:{},...Y.extra_content?.google?.thought_signature?{signature:Y.extra_content.google.thought_signature}:{}})}let H=$?.finish_reason==="tool_calls"?"tool_use":$?.finish_reason==="length"?"max_tokens":"end_turn";if($?.finish_reason==="content_filter"||$?.finish_reason==="safety")Z.push({type:"text",text:`
13
-
14
- [Content blocked by provider safety filter]`});return{id:O.id??WO(),type:"message",role:"assistant",content:Z,model:O.model??D,stop_reason:H,stop_sequence:null,usage:_O(O.usage)}}}class $1{messages;reasoningEffort;constructor(O,D){this.messages=new D1(O,D),this.reasoningEffort=D}}function k1(O){aO(),dD();let D=new $1({...O.defaultHeaders??{}},O.reasoningEffort);return{beta:D,messages:D.messages}}var W1=b(()=>{x1();R1();C1();B1();XO();PO();oO();rO();E1();U1();UD();eO();S1();xD();T1();iO();wD();h1();g1();b1();v1();fD();GO();q1();y1();vD();QD();fO();VD();NO();AO();MD();I1();wO();SD()});var m1=b(()=>{wO();W1()});m1();export{k1 as createOpenAIShimClient,jO as convertTools};
@@ -1 +0,0 @@
1
- import{hpa as t}from"./cli-0.6.1-9pfc6b63.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{fh as e,gh as a}from"./cli-0.6.1-w9afetc8.mjs";import{hpa as r}from"./cli-0.6.1-9pfc6b63.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
@@ -1 +0,0 @@
1
- import"./cli-0.6.1-9pfc6b63.mjs";var o=()=>null,n=o;export{n as default};
@@ -1 +0,0 @@
1
- import{SZ as a,TZ as b,UZ as c,VZ as d,WZ as e,XZ as f}from"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-9pfc6b63.mjs";f();export{d as parseCommandRaw,b as parseCommand,e as extractCommandArguments,a as ensureInitialized,c as PARSE_ABORTED};
@@ -1 +0,0 @@
1
- import{YU as S,ZU as Qq,_U as f,aV as c,cV as g,dV as m,fV as b}from"./cli-0.6.1-j4akqyey.mjs";import{lW as y,nW as Nq,vW as O,wW as Uq}from"./cli-0.6.1-x25mwydc.mjs";import{GY as R,LW as v,QW as Hq,RY as Mq,kY as M,mY as z,qY as L}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import{o0 as U,p0 as q,q0 as J,r0 as V}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as Jq}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{Ada as E,Gba as u,Ida as Bq,Jba as d,P_ as zq,cca as Xq,n9 as F,p9 as qq,x_ as h}from"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import{cga as _,ega as k}from"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as e,hpa as C}from"./cli-0.6.1-9pfc6b63.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{Cd as eG,Dd as nJ}from"./cli-0.6.1-jca1jhwf.mjs";import{Df as gJ,Ef as CX}from"./cli-0.6.1-39s97gy4.mjs";import{ug as OX,vg as sX,wg as IX,xg as tX}from"./cli-0.6.1-ay9b7nme.mjs";import{Ag as EX,Bg as OG,Cg as fJ,yg as WX,zg as IG}from"./cli-0.6.1-dsry83zd.mjs";import{Dg as iJ,Eg as hX}from"./cli-0.6.1-cb15wwgj.mjs";import"./cli-0.6.1-94k5k8gj.mjs";import{hh as wX,ih as $X}from"./cli-0.6.1-0z6pdqg3.mjs";import"./cli-0.6.1-agqm0wsp.mjs";import"./cli-0.6.1-katpz9mk.mjs";import{AL as QX,BL as oX,FA as rG,GA as FJ,RG as pJ,SG as mX,UN as KX,YD as hJ,ZD as _X,gE as n,hE as VG,il as EG,ll as $G,lu as zX,mu as NX,nl as KJ,ou as rX,rn as MJ,sn as vX,tO as qY,vL as LX,wL as UX,xL as kX,xm as sG,yL as qX,ym as TJ}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import{YU as FG,ZU as mJ}from"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import"./cli-0.6.1-vkd5hcb8.mjs";import"./cli-0.6.1-1n5ek5r5.mjs";import{ZV as SJ,_V as SX,lW as PG,nW as _J,vW as ZX,wW as aX}from"./cli-0.6.1-x25mwydc.mjs";import{GY as uJ,QX as YX,RW as JG,RY as XG,kY as C,mY as H,uY as RJ}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import{o0 as r,p0 as Z,q0 as F,r0 as x}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as tG}from"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-8x7dm6mk.mjs";import"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import{s5 as s,t5 as lX}from"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import{$$ as bJ,Daa as IJ,Taa as jX,W$ as yJ,X$ as u,Y$ as HJ,d_ as OJ,e_ as TX,haa as gX,w7 as YG,x7 as BJ}from"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import{Jga as DG,Oga as nX}from"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import{Fja as tJ,yna as dX}from"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as i,hpa as e}from"./cli-0.6.1-9pfc6b63.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{Fd as v,Gd as d}from"./cli-0.6.1-4fjwfatp.mjs";import{Qf as B,Rf as j,Sf as F,Uf as D}from"./cli-0.6.1-pkqzm2ty.mjs";import{Pm as I,Qk as U,Rk as _,TH as y,Tm as u,Uk as g,VH as P,il as A,nl as m}from"./cli-0.6.1-aw7t5zg2.mjs";import"./cli-0.6.1-3nvnx582.mjs";import"./cli-0.6.1-zznedec0.mjs";import"./cli-0.6.1-7b4bmf31.mjs";import"./cli-0.6.1-s13hz2xf.mjs";import"./cli-0.6.1-sq2cnxjs.mjs";import"./cli-0.6.1-1a523nkb.mjs";import"./cli-0.6.1-s1snv8wb.mjs";import"./cli-0.6.1-xn6xkj8r.mjs";import"./cli-0.6.1-t35v9gfs.mjs";import"./cli-0.6.1-as4q7dcy.mjs";import"./cli-0.6.1-srah4vag.mjs";import"./cli-0.6.1-jyw27bnr.mjs";import"./cli-0.6.1-zp8yt3me.mjs";import"./cli-0.6.1-263k8zfv.mjs";import"./cli-0.6.1-zdetqpgd.mjs";import"./cli-0.6.1-5gcjed1z.mjs";import"./cli-0.6.1-xhm4pfg5.mjs";import"./cli-0.6.1-j4akqyey.mjs";import"./cli-0.6.1-n7yfhpx0.mjs";import"./cli-0.6.1-fc2ewzw4.mjs";import"./cli-0.6.1-vkd5hcb8.mjs";import"./cli-0.6.1-1n5ek5r5.mjs";import"./cli-0.6.1-x25mwydc.mjs";import{RW as T,RY as c,kY as V,mY as G}from"./cli-0.6.1-j8nqjtw2.mjs";import"./cli-0.6.1-n93sg062.mjs";import"./cli-0.6.1-h757m4m8.mjs";import"./cli-0.6.1-trn8t31z.mjs";import"./cli-0.6.1-5pwj3d7r.mjs";import"./cli-0.6.1-h379gj9d.mjs";import"./cli-0.6.1-ewkq3bnm.mjs";import"./cli-0.6.1-p94mckzz.mjs";import"./cli-0.6.1-tkjavmyv.mjs";import{p0 as w,q0 as W,r0 as Z}from"./cli-0.6.1-7mnw60rd.mjs";import"./cli-0.6.1-yjn2sk7y.mjs";import"./cli-0.6.1-85mcqw66.mjs";import"./cli-0.6.1-a7130ntd.mjs";import"./cli-0.6.1-sbqpxvzz.mjs";import"./cli-0.6.1-8x7dm6mk.mjs";import"./cli-0.6.1-hgz08acq.mjs";import"./cli-0.6.1-a2tyzbp4.mjs";import"./cli-0.6.1-xpqybxb3.mjs";import"./cli-0.6.1-22ayz1qb.mjs";import"./cli-0.6.1-x4kttrew.mjs";import"./cli-0.6.1-rsa7f7a3.mjs";import"./cli-0.6.1-bp0mdayc.mjs";import"./cli-0.6.1-ybch0rz5.mjs";import"./cli-0.6.1-zerz57mn.mjs";import"./cli-0.6.1-1k359w9m.mjs";import"./cli-0.6.1-je6nv7n6.mjs";import"./cli-0.6.1-v15rcvwv.mjs";import"./cli-0.6.1-syhvjk64.mjs";import"./cli-0.6.1-8fpj913g.mjs";import"./cli-0.6.1-vz6zhwrs.mjs";import"./cli-0.6.1-2wfbdh6y.mjs";import"./cli-0.6.1-jb3djqjh.mjs";import"./cli-0.6.1-qsq2xg3g.mjs";import"./cli-0.6.1-qdytg688.mjs";import{uma as R,yna as h}from"./cli-0.6.1-xk82vgbd.mjs";import"./cli-0.6.1-0bqe4byy.mjs";import"./cli-0.6.1-rjp543r8.mjs";import"./cli-0.6.1-krcqab65.mjs";import"./cli-0.6.1-gqhwqmhd.mjs";import"./cli-0.6.1-amg1caaz.mjs";import{dpa as C,hpa as N}from"./cli-0.6.1-9pfc6b63.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{hpa as z}from"./cli-0.6.1-9pfc6b63.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};