@claudiolabs/claudin 1.0.17 → 1.1.0

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 (912) hide show
  1. package/dist/chunks/AgentTool-1.1.0-enyqd6zk.mjs +1 -0
  2. package/dist/chunks/App-1.1.0-6def0a6n.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.0-m9mybr7j.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.0-4c1qce0n.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.0-2afw9h09.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.0-r09k7rem.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.0-p05h72f8.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.0-842yvm18.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.0-dyfzh4xz.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.0-gwmatamz.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.0-4mz9bn58.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.0-zk7sq7x9.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.0-wjqdhhvn.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.0-w64hcgs0.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.0-mkc5ew58.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.0-wsjvh8me.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.0-t8s1cvt5.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.0-ayq5wr7h.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.0-ya45nhgt.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.0-q3hsbdns.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.0-9xeshk4s.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.0-fzf5xcm5.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.0-h3qsm7za.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.0-7a0w9w6g.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.0-yzx44v2v.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.0-3gd1pr4d.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.0-6m8j6s6z.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.0-b42stwdb.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.0-gst7d69m.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.0-6b0xw5qv.mjs +1 -0
  31. package/dist/chunks/agents-1.1.0-3e34h40q.mjs +3 -0
  32. package/dist/chunks/agents-1.1.0-vgtkxq8y.mjs +110 -0
  33. package/dist/chunks/api-1.1.0-px2sj5kw.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.0-2wzkvqn2.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.0-t93vcyks.mjs +1 -0
  36. package/dist/chunks/auth-1.1.0-fvk2pf8g.mjs +1 -0
  37. package/dist/chunks/auth-1.1.0-q76xp4nm.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.0-87n8w9d4.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.0-3sjqay1h.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.0-yvybeza3.mjs +1 -0
  41. package/dist/chunks/branch-1.1.0-9g4r23x4.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.0-c59t7fn5.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.0-t0deynrx.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.0-zj4jw1v1.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.0-6nrn1g75.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.0-83at32ad.mjs +1 -0
  47. package/dist/chunks/btw-1.1.0-y88gyvq1.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.0-rch3sq8e.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.0-ej21brrw.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.0-ehbwcyh9.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.0-ksnt9g30.mjs +4 -0
  52. package/dist/chunks/caches-1.1.0-jzxm4v1g.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.0-zyset7gv.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.0-mb17883g.mjs +1 -0
  55. package/dist/chunks/clear-1.1.0-55sa519v.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.0-g803ycep.mjs +1 -0
  57. package/dist/chunks/cli-1.1.0-0c134tyv.mjs +2 -0
  58. package/dist/chunks/cli-1.1.0-0e7qzsa6.mjs +2 -0
  59. package/dist/chunks/cli-1.1.0-0hf961r9.mjs +2 -0
  60. package/dist/chunks/cli-1.1.0-0pd1b4vc.mjs +133 -0
  61. package/dist/chunks/cli-1.1.0-0pygrth1.mjs +2 -0
  62. package/dist/chunks/cli-1.1.0-0yvk0ynn.mjs +2 -0
  63. package/dist/chunks/cli-1.1.0-18mcq0aj.mjs +6 -0
  64. package/dist/chunks/cli-1.1.0-1tax09d6.mjs +2 -0
  65. package/dist/chunks/cli-1.1.0-22xy9wm0.mjs +2 -0
  66. package/dist/chunks/cli-1.1.0-23xk5c5p.mjs +2 -0
  67. package/dist/chunks/cli-1.1.0-27q99qxg.mjs +5638 -0
  68. package/dist/chunks/cli-1.1.0-2g3ef6xx.mjs +2 -0
  69. package/dist/chunks/cli-1.1.0-2kcgmy0n.mjs +4 -0
  70. package/dist/chunks/cli-1.1.0-2ptkfn3v.mjs +2 -0
  71. package/dist/chunks/cli-1.1.0-2ynkx7mx.mjs +2 -0
  72. package/dist/chunks/cli-1.1.0-35dy019c.mjs +2 -0
  73. package/dist/chunks/cli-1.1.0-376tm1k9.mjs +2 -0
  74. package/dist/chunks/cli-1.1.0-3bm55s4g.mjs +59 -0
  75. package/dist/chunks/cli-1.1.0-3vd4xtts.mjs +2 -0
  76. package/dist/chunks/cli-1.1.0-42q5m352.mjs +2 -0
  77. package/dist/chunks/cli-1.1.0-43b9w2rq.mjs +5 -0
  78. package/dist/chunks/cli-1.1.0-44z5qkky.mjs +2 -0
  79. package/dist/chunks/cli-1.1.0-4brqrqtg.mjs +8 -0
  80. package/dist/chunks/cli-1.1.0-4f03ap1f.mjs +3 -0
  81. package/dist/chunks/cli-1.1.0-4hheqq4t.mjs +2 -0
  82. package/dist/chunks/cli-1.1.0-51r43ffv.mjs +2 -0
  83. package/dist/chunks/cli-1.1.0-534xht1w.mjs +2 -0
  84. package/dist/chunks/cli-1.1.0-5gb7f7xp.mjs +2 -0
  85. package/dist/chunks/cli-1.1.0-5p4r7v1p.mjs +3 -0
  86. package/dist/chunks/cli-1.1.0-5pgcnrex.mjs +2 -0
  87. package/dist/chunks/cli-1.1.0-685fssp6.mjs +2 -0
  88. package/dist/chunks/cli-1.1.0-6g8jkwc8.mjs +2 -0
  89. package/dist/chunks/cli-1.1.0-6h9f0djh.mjs +6 -0
  90. package/dist/chunks/cli-1.1.0-6pd6d43a.mjs +58 -0
  91. package/dist/chunks/cli-1.1.0-6pv9er50.mjs +2 -0
  92. package/dist/chunks/cli-1.1.0-6q6mnbdg.mjs +45 -0
  93. package/dist/chunks/cli-1.1.0-6sw6w6gt.mjs +2 -0
  94. package/dist/chunks/cli-1.1.0-6td2sp0v.mjs +2 -0
  95. package/dist/chunks/cli-1.1.0-6vd5e2xx.mjs +2 -0
  96. package/dist/chunks/cli-1.1.0-715hzmph.mjs +4 -0
  97. package/dist/chunks/cli-1.1.0-7278n5vd.mjs +18 -0
  98. package/dist/chunks/cli-1.1.0-7d1nvdda.mjs +2 -0
  99. package/dist/chunks/cli-1.1.0-7pxt9gcq.mjs +2 -0
  100. package/dist/chunks/cli-1.1.0-80tgppc8.mjs +12 -0
  101. package/dist/chunks/cli-1.1.0-8azg891x.mjs +2 -0
  102. package/dist/chunks/cli-1.1.0-8t3nbehc.mjs +2 -0
  103. package/dist/chunks/cli-1.1.0-8xbx5bw0.mjs +4 -0
  104. package/dist/chunks/cli-1.1.0-93djfjy7.mjs +2 -0
  105. package/dist/chunks/cli-1.1.0-9neyfch2.mjs +2 -0
  106. package/dist/chunks/cli-1.1.0-9w7sg286.mjs +2 -0
  107. package/dist/chunks/cli-1.1.0-a3xx1dac.mjs +2 -0
  108. package/dist/chunks/cli-1.1.0-a4fdbmtm.mjs +3 -0
  109. package/dist/chunks/cli-1.1.0-ab3nq7yd.mjs +2 -0
  110. package/dist/chunks/cli-1.1.0-acknyrzr.mjs +2 -0
  111. package/dist/chunks/cli-1.1.0-aefnhpce.mjs +2 -0
  112. package/dist/chunks/cli-1.1.0-aew4bmae.mjs +2 -0
  113. package/dist/chunks/cli-1.1.0-agcwe85z.mjs +3 -0
  114. package/dist/chunks/cli-1.1.0-ah0k4q2s.mjs +17 -0
  115. package/dist/chunks/cli-1.1.0-anh31kw5.mjs +2 -0
  116. package/dist/chunks/cli-1.1.0-avpw9ja1.mjs +4 -0
  117. package/dist/chunks/cli-1.1.0-awwr4yce.mjs +2 -0
  118. package/dist/chunks/cli-1.1.0-b2dpekht.mjs +50 -0
  119. package/dist/chunks/cli-1.1.0-b4js0h2n.mjs +2 -0
  120. package/dist/chunks/cli-1.1.0-b6z6m26q.mjs +2 -0
  121. package/dist/chunks/cli-1.1.0-bg3abn0c.mjs +3 -0
  122. package/dist/chunks/cli-1.1.0-bpw6t33c.mjs +2 -0
  123. package/dist/chunks/cli-1.1.0-c32rv5p9.mjs +2 -0
  124. package/dist/chunks/cli-1.1.0-cs1m99a5.mjs +4 -0
  125. package/dist/chunks/cli-1.1.0-cz87w6nw.mjs +2 -0
  126. package/dist/chunks/cli-1.1.0-df637xcj.mjs +12 -0
  127. package/dist/chunks/cli-1.1.0-dgje4dyf.mjs +12 -0
  128. package/dist/chunks/cli-1.1.0-dkcs1ckg.mjs +2 -0
  129. package/dist/chunks/cli-1.1.0-dqm9d5fq.mjs +2 -0
  130. package/dist/chunks/cli-1.1.0-dsg8mr16.mjs +2 -0
  131. package/dist/chunks/cli-1.1.0-dvdc29ed.mjs +20 -0
  132. package/dist/chunks/cli-1.1.0-dzexv5mk.mjs +15 -0
  133. package/dist/chunks/cli-1.1.0-e8cb572s.mjs +3 -0
  134. package/dist/chunks/cli-1.1.0-ej9gkky3.mjs +2 -0
  135. package/dist/chunks/cli-1.1.0-ejsqz1pw.mjs +2 -0
  136. package/dist/chunks/cli-1.1.0-ex8w5gzz.mjs +2 -0
  137. package/dist/chunks/cli-1.1.0-eyafjwj2.mjs +2 -0
  138. package/dist/chunks/cli-1.1.0-f1vdd8jq.mjs +2 -0
  139. package/dist/chunks/cli-1.1.0-f2zea2vz.mjs +202 -0
  140. package/dist/chunks/cli-1.1.0-f40fhk16.mjs +2 -0
  141. package/dist/chunks/cli-1.1.0-f7s3d6cm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.0-fav6jhbg.mjs +2 -0
  143. package/dist/chunks/cli-1.1.0-fefdtfkh.mjs +2 -0
  144. package/dist/chunks/cli-1.1.0-fhsgjvax.mjs +2 -0
  145. package/dist/chunks/cli-1.1.0-fj9tsf79.mjs +2 -0
  146. package/dist/chunks/cli-1.1.0-fkkfc8bz.mjs +24 -0
  147. package/dist/chunks/cli-1.1.0-fm3zj7km.mjs +2 -0
  148. package/dist/chunks/cli-1.1.0-fyhcmngx.mjs +2 -0
  149. package/dist/chunks/cli-1.1.0-fzj13jj1.mjs +2 -0
  150. package/dist/chunks/cli-1.1.0-g19j4m46.mjs +3 -0
  151. package/dist/chunks/cli-1.1.0-g4qrjkze.mjs +25 -0
  152. package/dist/chunks/cli-1.1.0-gedc2sjr.mjs +2 -0
  153. package/dist/chunks/cli-1.1.0-gn36m4rw.mjs +2 -0
  154. package/dist/chunks/cli-1.1.0-h9m8nwpz.mjs +2 -0
  155. package/dist/chunks/cli-1.1.0-heqqh4q5.mjs +42 -0
  156. package/dist/chunks/cli-1.1.0-hhv56f6w.mjs +2 -0
  157. package/dist/chunks/cli-1.1.0-hqc7gemc.mjs +2 -0
  158. package/dist/chunks/cli-1.1.0-hxcczrch.mjs +34 -0
  159. package/dist/chunks/cli-1.1.0-j0spemhp.mjs +2 -0
  160. package/dist/chunks/cli-1.1.0-j8j38mj8.mjs +2 -0
  161. package/dist/chunks/cli-1.1.0-jggsfk80.mjs +2 -0
  162. package/dist/chunks/cli-1.1.0-jm9w1ra4.mjs +133 -0
  163. package/dist/chunks/cli-1.1.0-jzr2r6q9.mjs +18 -0
  164. package/dist/chunks/cli-1.1.0-k97b244h.mjs +2 -0
  165. package/dist/chunks/cli-1.1.0-kb88a691.mjs +16 -0
  166. package/dist/chunks/cli-1.1.0-kchy50kf.mjs +2 -0
  167. package/dist/chunks/cli-1.1.0-kdb9g90t.mjs +6 -0
  168. package/dist/chunks/cli-1.1.0-ke2q4vv2.mjs +39 -0
  169. package/dist/chunks/cli-1.1.0-kf2vvzzq.mjs +2 -0
  170. package/dist/chunks/cli-1.1.0-kh16d8ks.mjs +2 -0
  171. package/dist/chunks/cli-1.1.0-khfqjg3d.mjs +2 -0
  172. package/dist/chunks/cli-1.1.0-kqpv3mqm.mjs +2 -0
  173. package/dist/chunks/cli-1.1.0-ksm3jf7w.mjs +2 -0
  174. package/dist/chunks/cli-1.1.0-ky8gc8bw.mjs +2 -0
  175. package/dist/chunks/cli-1.1.0-kyed5wy4.mjs +2 -0
  176. package/dist/chunks/cli-1.1.0-kyvxb684.mjs +18 -0
  177. package/dist/chunks/cli-1.1.0-m3srsyep.mjs +2 -0
  178. package/dist/chunks/cli-1.1.0-mcwgdp9f.mjs +1 -0
  179. package/dist/chunks/cli-1.1.0-mp23wvb8.mjs +2 -0
  180. package/dist/chunks/cli-1.1.0-mthxxfdv.mjs +2 -0
  181. package/dist/chunks/cli-1.1.0-mxcr7n72.mjs +3 -0
  182. package/dist/chunks/cli-1.1.0-n063kkhn.mjs +2 -0
  183. package/dist/chunks/cli-1.1.0-n22zpcen.mjs +2 -0
  184. package/dist/chunks/cli-1.1.0-nrkd2283.mjs +2 -0
  185. package/dist/chunks/cli-1.1.0-nwh4569v.mjs +2 -0
  186. package/dist/chunks/cli-1.1.0-nwnph1tm.mjs +3 -0
  187. package/dist/chunks/cli-1.1.0-nzw8nfe8.mjs +4 -0
  188. package/dist/chunks/cli-1.1.0-pagxnvrp.mjs +2 -0
  189. package/dist/chunks/cli-1.1.0-pc78xk2w.mjs +2 -0
  190. package/dist/chunks/cli-1.1.0-pgzqtn5w.mjs +3 -0
  191. package/dist/chunks/cli-1.1.0-pyjjh1vb.mjs +2 -0
  192. package/dist/chunks/cli-1.1.0-q0xhsdq5.mjs +2 -0
  193. package/dist/chunks/cli-1.1.0-q5tc9jm9.mjs +2 -0
  194. package/dist/chunks/cli-1.1.0-q8ch6d67.mjs +2 -0
  195. package/dist/chunks/cli-1.1.0-qeh5c8ha.mjs +2 -0
  196. package/dist/chunks/cli-1.1.0-qsymkkgn.mjs +25 -0
  197. package/dist/chunks/cli-1.1.0-qtb6qp7v.mjs +2 -0
  198. package/dist/chunks/cli-1.1.0-qy3n5r3j.mjs +2 -0
  199. package/dist/chunks/cli-1.1.0-r5jfjghw.mjs +2 -0
  200. package/dist/chunks/cli-1.1.0-r82e580m.mjs +9 -0
  201. package/dist/chunks/cli-1.1.0-rcbfq6ds.mjs +15 -0
  202. package/dist/chunks/cli-1.1.0-rgft35ht.mjs +2 -0
  203. package/dist/chunks/cli-1.1.0-rhbwwag9.mjs +2 -0
  204. package/dist/chunks/cli-1.1.0-rhhqa2eq.mjs +6 -0
  205. package/dist/chunks/cli-1.1.0-rk5hvaqf.mjs +2 -0
  206. package/dist/chunks/cli-1.1.0-rwzm7q8k.mjs +2 -0
  207. package/dist/chunks/cli-1.1.0-rxjpq9sj.mjs +15 -0
  208. package/dist/chunks/cli-1.1.0-s2byqr5v.mjs +2 -0
  209. package/dist/chunks/cli-1.1.0-s77gty0s.mjs +2 -0
  210. package/dist/chunks/cli-1.1.0-sn31brzs.mjs +4 -0
  211. package/dist/chunks/cli-1.1.0-snspzvx6.mjs +2 -0
  212. package/dist/chunks/cli-1.1.0-ss0sp6y9.mjs +2 -0
  213. package/dist/chunks/cli-1.1.0-sz45a3kz.mjs +2 -0
  214. package/dist/chunks/cli-1.1.0-t314tbev.mjs +2 -0
  215. package/dist/chunks/cli-1.1.0-t7bxqzs4.mjs +24 -0
  216. package/dist/chunks/cli-1.1.0-t7zmjjnm.mjs +2 -0
  217. package/dist/chunks/cli-1.1.0-t81d1nxv.mjs +6 -0
  218. package/dist/chunks/cli-1.1.0-tfwm688t.mjs +2 -0
  219. package/dist/chunks/cli-1.1.0-tjzezs5y.mjs +2 -0
  220. package/dist/chunks/cli-1.1.0-txh9zgpn.mjs +12 -0
  221. package/dist/chunks/cli-1.1.0-txn2egpm.mjs +2 -0
  222. package/dist/chunks/cli-1.1.0-typ6ydyr.mjs +2 -0
  223. package/dist/chunks/cli-1.1.0-vmrftx0a.mjs +5 -0
  224. package/dist/chunks/cli-1.1.0-vnw1etr4.mjs +2 -0
  225. package/dist/chunks/cli-1.1.0-vpef0qmy.mjs +2 -0
  226. package/dist/chunks/cli-1.1.0-vsd5cgtc.mjs +2 -0
  227. package/dist/chunks/cli-1.1.0-vyrset59.mjs +2 -0
  228. package/dist/chunks/cli-1.1.0-w2z92spx.mjs +2 -0
  229. package/dist/chunks/cli-1.1.0-w6pbjjfv.mjs +2 -0
  230. package/dist/chunks/cli-1.1.0-w99tv921.mjs +4 -0
  231. package/dist/chunks/cli-1.1.0-wq7mrbze.mjs +2 -0
  232. package/dist/chunks/cli-1.1.0-wy684ycb.mjs +2 -0
  233. package/dist/chunks/cli-1.1.0-wzt27z3c.mjs +2 -0
  234. package/dist/chunks/cli-1.1.0-x1d428kd.mjs +4 -0
  235. package/dist/chunks/cli-1.1.0-x52w32zj.mjs +9 -0
  236. package/dist/chunks/cli-1.1.0-xbafqhxj.mjs +2 -0
  237. package/dist/chunks/cli-1.1.0-xfbynaew.mjs +3 -0
  238. package/dist/chunks/cli-1.1.0-xh7h18aj.mjs +2 -0
  239. package/dist/chunks/cli-1.1.0-xnkggt2k.mjs +2 -0
  240. package/dist/chunks/cli-1.1.0-xqj8jr7g.mjs +4 -0
  241. package/dist/chunks/cli-1.1.0-xrtkbdea.mjs +4 -0
  242. package/dist/chunks/cli-1.1.0-xtme365c.mjs +2 -0
  243. package/dist/chunks/cli-1.1.0-xz7dpcmk.mjs +2 -0
  244. package/dist/chunks/cli-1.1.0-xz8y1ffw.mjs +2 -0
  245. package/dist/chunks/cli-1.1.0-y08d0fhm.mjs +2 -0
  246. package/dist/chunks/cli-1.1.0-y16ey5vs.mjs +3 -0
  247. package/dist/chunks/cli-1.1.0-y44vvpr5.mjs +24 -0
  248. package/dist/chunks/cli-1.1.0-y7km7tyc.mjs +2 -0
  249. package/dist/chunks/cli-1.1.0-y82h5sjv.mjs +2 -0
  250. package/dist/chunks/cli-1.1.0-yb4xnm2h.mjs +21 -0
  251. package/dist/chunks/cli-1.1.0-ypyc700d.mjs +7 -0
  252. package/dist/chunks/cli-1.1.0-z3er82qf.mjs +2 -0
  253. package/dist/chunks/cli-1.1.0-z3kmdvmm.mjs +17 -0
  254. package/dist/chunks/cli-1.1.0-z515ecdw.mjs +2 -0
  255. package/dist/chunks/cli-1.1.0-z8gyd4hj.mjs +2 -0
  256. package/dist/chunks/cli-1.1.0-z9w48as1.mjs +2 -0
  257. package/dist/chunks/cli-1.1.0-zjdhcx9g.mjs +67 -0
  258. package/dist/chunks/cli-1.1.0-zv42btgr.mjs +2 -0
  259. package/dist/chunks/cli-1.1.0-zv9mj8cm.mjs +2 -0
  260. package/dist/chunks/client-1.1.0-mczmpajm.mjs +1 -0
  261. package/dist/chunks/color-1.1.0-mz220mnj.mjs +1 -0
  262. package/dist/chunks/compact-1.1.0-m3h4vy67.mjs +3 -0
  263. package/dist/chunks/config-1.1.0-0cmcwws5.mjs +1 -0
  264. package/dist/chunks/config-1.1.0-94w375pc.mjs +1 -0
  265. package/dist/chunks/constants-1.1.0-f8cevnbf.mjs +1 -0
  266. package/dist/chunks/context-1.1.0-02esqhw9.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.0-q79y3s53.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.0-zgrc0409.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.0-hs5hd2rk.mjs +1 -0
  270. package/dist/chunks/copy-1.1.0-d9ewpvtx.mjs +9 -0
  271. package/dist/chunks/cost-1.1.0-29687fk2.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.0-cwje9xax.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.0-mqxpwaxx.mjs +1 -0
  274. package/dist/chunks/debug-1.1.0-7myvhved.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.0-kjmcwbvb.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.0-psp9x7ag.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.0-s1sbyjtw.mjs +1 -0
  278. package/dist/chunks/detection-1.1.0-395zszbn.mjs +1 -0
  279. package/dist/chunks/diff-1.1.0-tw33wd16.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.0-w49j96y7.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.0-bazcbcf0.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.0-k2ggh5e8.mjs +1 -0
  283. package/dist/chunks/effort-1.1.0-d31ntd59.mjs +13 -0
  284. package/dist/chunks/engine-1.1.0-zykm6ttb.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.0-vjjgjg6g.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.0-j6qw20t8.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.0-pbfss60j.mjs +1 -0
  288. package/dist/chunks/environments-1.1.0-05sa7vqs.mjs +1 -0
  289. package/dist/chunks/errors-1.1.0-rv1w7dzk.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.0-hwr1bhvw.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.0-mctsxzhh.mjs +1 -0
  292. package/dist/chunks/exit-1.1.0-w4dt0y70.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.0-grjehtcs.mjs +1 -0
  294. package/dist/chunks/export-1.1.0-nkxywrt3.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.0-t5fad215.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.0-ejz9p8tk.mjs +1 -0
  297. package/dist/chunks/fast-1.1.0-ktxbryjn.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.0-wmc2etfk.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.0-37ttkjsw.mjs +1 -0
  300. package/dist/chunks/git-1.1.0-19myj8f0.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.0-kehp42vm.mjs +1 -0
  302. package/dist/chunks/goal-1.1.0-vegr2gpx.mjs +4 -0
  303. package/dist/chunks/grove-1.1.0-jhejcpfq.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.0-65kf7wnp.mjs +1 -0
  305. package/dist/chunks/headless-1.1.0-7ar922rp.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.0-32jsacwx.mjs +6 -0
  307. package/dist/chunks/help-1.1.0-845v0hns.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.0-v8cw92ff.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.0-6yfeb39f.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.0-q1eegxep.mjs +1 -0
  311. package/dist/chunks/ide-1.1.0-9t0cq40y.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.0-sdagc4gb.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.0-gcb31e7e.mjs +1 -0
  314. package/dist/chunks/index-1.1.0-0pz70rhb.mjs +1 -0
  315. package/dist/chunks/index-1.1.0-2v7bhc73.mjs +9 -0
  316. package/dist/chunks/index-1.1.0-42sjc0ra.mjs +1 -0
  317. package/dist/chunks/index-1.1.0-5e2yge0j.mjs +1 -0
  318. package/dist/chunks/index-1.1.0-5rn65wcn.mjs +1 -0
  319. package/dist/chunks/index-1.1.0-6eg49x8z.mjs +1 -0
  320. package/dist/chunks/index-1.1.0-6f33zr88.mjs +2 -0
  321. package/dist/chunks/index-1.1.0-711thf5z.mjs +30 -0
  322. package/dist/chunks/index-1.1.0-7mr4ft1q.mjs +1 -0
  323. package/dist/chunks/index-1.1.0-9qnvcqd3.mjs +1 -0
  324. package/dist/chunks/index-1.1.0-bryn9r7n.mjs +1 -0
  325. package/dist/chunks/index-1.1.0-c9ypb2er.mjs +2 -0
  326. package/dist/chunks/index-1.1.0-dpwmxnj4.mjs +5 -0
  327. package/dist/chunks/index-1.1.0-f06x7270.mjs +17 -0
  328. package/dist/chunks/index-1.1.0-fz6shkyy.mjs +1 -0
  329. package/dist/chunks/index-1.1.0-ga21tcpt.mjs +9 -0
  330. package/dist/chunks/index-1.1.0-qta6e5wt.mjs +1 -0
  331. package/dist/chunks/index-1.1.0-rdrdd03m.mjs +1 -0
  332. package/dist/chunks/index-1.1.0-vdwwq04q.mjs +1 -0
  333. package/dist/chunks/index-1.1.0-x8ra62mv.mjs +1 -0
  334. package/dist/chunks/index-1.1.0-yaxmne6h.mjs +1 -0
  335. package/dist/chunks/index-1.1.0-yna8rsmk.mjs +1 -0
  336. package/dist/chunks/index-1.1.0-zv3y0dw4.mjs +1 -0
  337. package/dist/chunks/init-1.1.0-2ktykcbs.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.0-2dq44h6p.mjs +1 -0
  339. package/dist/chunks/ink-1.1.0-n8ev4ggj.mjs +1 -0
  340. package/dist/chunks/insights-1.1.0-2pm8nqda.mjs +870 -0
  341. package/dist/chunks/install-1.1.0-kpkp79qx.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.0-ezr26tzq.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.0-526087q0.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.0-2hcxjw4w.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.0-1n70h3yk.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.0-zp4xvxd0.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.0-7ypjnfee.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.0-nh3f0q9v.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.0-6jtp0hpx.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.0-3986smwm.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.0-n5jzedar.mjs +1 -0
  352. package/dist/chunks/log-1.1.0-ytvjc0bd.mjs +1 -0
  353. package/dist/chunks/main-1.1.0-f14kmh7p.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.0-e8vpf6by.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.0-1ywhd8fj.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.0-7nqv81k0.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.0-qx3nvmcz.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.0-rj36djns.mjs +1 -0
  359. package/dist/chunks/memory-1.1.0-5r0h3k4k.mjs +72 -0
  360. package/dist/chunks/model-1.1.0-44xx16dv.mjs +2 -0
  361. package/dist/chunks/model-1.1.0-fg2cbfq2.mjs +1 -0
  362. package/dist/chunks/node-1.1.0-110zckqt.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.0-wpg4ck2v.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.0-j1v7ywpt.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.0-zn9ssp3s.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.0-gmk2hvrx.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.0-5zrr15g5.mjs +1 -0
  368. package/dist/chunks/parser-1.1.0-whqnp9vy.mjs +1 -0
  369. package/dist/chunks/passes-1.1.0-syt7mc82.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.0-93w1tjs2.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.0-xwgjba5h.mjs +1 -0
  372. package/dist/chunks/plan-1.1.0-8by2pkr1.mjs +1 -0
  373. package/dist/chunks/plist-1.1.0-a72f96zz.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.0-1cq6rnm4.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.0-e3hxzsxe.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.0-2ebadazb.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.0-1qpnh1b8.mjs +2 -0
  378. package/dist/chunks/print-1.1.0-5023fs4e.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.0-rg0g4j4k.mjs +1 -0
  380. package/dist/chunks/process-1.1.0-azyy6h3h.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.0-xbaa5wkh.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.0-hegrj68h.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.0-2r56j5nk.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.0-2vmdvy77.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.0-n1m0d2m2.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.0-xs2p3rtn.mjs +13 -0
  387. package/dist/chunks/provider-1.1.0-2j5pg4yy.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.0-rbqezxcw.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.0-677eqkc3.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.0-3m14394y.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.0-x7bmwv4g.mjs +34 -0
  392. package/dist/chunks/registry-1.1.0-4fyg7f9q.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.0-pz5tn880.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.0-69db1v80.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.0-ksfpd9mb.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.0-n7thmemb.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.0-qfe65dcd.mjs +1 -0
  398. package/dist/chunks/rename-1.1.0-xwf9aagc.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.0-bdbdmxmh.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.0-tkn2dd4g.mjs +1 -0
  401. package/dist/chunks/resume-1.1.0-bks26dze.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.0-cet2enqh.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.0-jsytxerw.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.0-0feve89r.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.0-h2jzdxee.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.0-93sg9m8e.mjs +1 -0
  407. package/dist/chunks/session-1.1.0-qj25v1ny.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.0-cyr63cxd.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.0-f2jn1dgt.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.0-jhvnwn06.mjs +1 -0
  411. package/dist/chunks/settings-1.1.0-v6kq2gg7.mjs +1 -0
  412. package/dist/chunks/setup-1.1.0-1nvqkzwy.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.0-y6gqgdcq.mjs +1 -0
  414. package/dist/chunks/skills-1.1.0-xsjqqdbe.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.0-vf7vkpmt.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.0-e67ygkan.mjs +1 -0
  417. package/dist/chunks/state-1.1.0-bh945jtk.mjs +1 -0
  418. package/dist/chunks/stats-1.1.0-x33dy37t.mjs +6 -0
  419. package/dist/chunks/status-1.1.0-d0yq6cgj.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.0-xc1m1wem.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.0-2842f2xr.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.0-jwtf7c9d.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.0-5f9gr2n7.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.0-p5p6mzr0.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.0-vpph6285.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.0-sapkr8qe.mjs +1 -0
  427. package/dist/chunks/theme-1.1.0-tj4jvv7p.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.0-jz93vtq3.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.0-bjmff4sm.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.0-m2n24729.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.0-xkqnfkpg.mjs +1 -0
  432. package/dist/chunks/tools-1.1.0-s3ha83mm.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.0-c22x3kwa.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.0-ysafs3br.mjs +69 -0
  435. package/dist/chunks/types-1.1.0-1bb823j7.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.0-k2hb0xpa.mjs +4 -0
  437. package/dist/chunks/update-1.1.0-7v973cbz.mjs +88 -0
  438. package/dist/chunks/upgrade-1.1.0-rr1r91bn.mjs +1 -0
  439. package/dist/chunks/upload-1.1.0-0zhvg1j3.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.0-ayhfykdv.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.0-s7xr32y6.mjs +1 -0
  442. package/dist/chunks/usage-1.1.0-wtv9dama.mjs +1 -0
  443. package/dist/chunks/util-1.1.0-9mksq9n7.mjs +1 -0
  444. package/dist/chunks/utils-1.1.0-8gfj8s3w.mjs +1 -0
  445. package/dist/chunks/vim-1.1.0-2fjkfqs6.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.0-6qghm3y5.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.0-p8jgf9r7.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.0-x8aa5635.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.0-epxphggs.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.0-eza3fdnj.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.0-3mh5gae3.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.0-snjvfemx.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.0.17-5sh00rvp.mjs +0 -1
  456. package/dist/chunks/App-1.0.17-21x955nf.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.0.17-v9qwnks3.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.0.17-7fhpba7s.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.0.17-1f2htb8d.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.0.17-f0sxwzjz.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.17-3vym5r13.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.0.17-zm43ebg6.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.0.17-4tms55j9.mjs +0 -7
  464. package/dist/chunks/Doctor-1.0.17-t06djmxa.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.0.17-70s33s8m.mjs +0 -6
  466. package/dist/chunks/Grove-1.0.17-yjm80k3b.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.0.17-9m0b17d2.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.0.17-emahg4dz.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.0.17-c6e0v6c3.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.0.17-c7bybvmz.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.0.17-b8ejyr1p.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.0.17-p0r1dne9.mjs +0 -1
  473. package/dist/chunks/REPL-1.0.17-wgem7h01.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.0.17-bjzzhjqs.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.0.17-k7x0a14y.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.0.17-an8ph2xk.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.0.17-tsxxhwhb.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.0.17-ktxtd7sf.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.0.17-ffkbx4sp.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.0.17-x1hvw496.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.0.17-3k9jkx42.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.0.17-3ndd66y9.mjs +0 -1
  483. package/dist/chunks/add-dir-1.0.17-c4r7f3at.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.0.17-neqgdzv4.mjs +0 -1
  485. package/dist/chunks/agents-1.0.17-s7nhde9z.mjs +0 -110
  486. package/dist/chunks/agents-1.0.17-sfz2xbbe.mjs +0 -3
  487. package/dist/chunks/api-1.0.17-wawrdq5e.mjs +0 -1
  488. package/dist/chunks/asciicast-1.0.17-x1k7s3xe.mjs +0 -1
  489. package/dist/chunks/assistant-1.0.17-j9qj4tcs.mjs +0 -1
  490. package/dist/chunks/auth-1.0.17-31h7x8d1.mjs +0 -1
  491. package/dist/chunks/auth-1.0.17-mm386118.mjs +0 -1
  492. package/dist/chunks/autoMode-1.0.17-tqqmwaya.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.0.17-wyfmhbnx.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.0.17-10bcwm4v.mjs +0 -1
  495. package/dist/chunks/branch-1.0.17-k80de7gn.mjs +0 -4
  496. package/dist/chunks/bridge-1.0.17-tcs32wqn.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.0.17-fw6mj0cy.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.0.17-3j84y5ft.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.0.17-2fm7fkaf.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.0.17-16f5ek10.mjs +0 -1
  501. package/dist/chunks/btw-1.0.17-jx41dad0.mjs +0 -1
  502. package/dist/chunks/buddy-1.0.17-845ax733.mjs +0 -3
  503. package/dist/chunks/cacache-1.0.17-b2nj6hfy.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.0.17-zwhwxqas.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.0.17-ryzxdsqt.mjs +0 -4
  506. package/dist/chunks/caches-1.0.17-11t05bjz.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.0.17-53efpe93.mjs +0 -1
  508. package/dist/chunks/claudemd-1.0.17-zse4k4wj.mjs +0 -1
  509. package/dist/chunks/clear-1.0.17-jk7fy20t.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.0.17-3veatmfp.mjs +0 -1
  511. package/dist/chunks/cli-1.0.17-04mwr39a.mjs +0 -2
  512. package/dist/chunks/cli-1.0.17-05v12vep.mjs +0 -2
  513. package/dist/chunks/cli-1.0.17-082vgztb.mjs +0 -6
  514. package/dist/chunks/cli-1.0.17-0g7kgsx0.mjs +0 -2
  515. package/dist/chunks/cli-1.0.17-0gwvjedx.mjs +0 -2
  516. package/dist/chunks/cli-1.0.17-0h68yp5q.mjs +0 -2
  517. package/dist/chunks/cli-1.0.17-0h8rgkqn.mjs +0 -18
  518. package/dist/chunks/cli-1.0.17-0r3rrjqs.mjs +0 -2
  519. package/dist/chunks/cli-1.0.17-10rqsvs2.mjs +0 -2
  520. package/dist/chunks/cli-1.0.17-142ww3xz.mjs +0 -67
  521. package/dist/chunks/cli-1.0.17-182fckgj.mjs +0 -2
  522. package/dist/chunks/cli-1.0.17-1ay7n4n5.mjs +0 -2
  523. package/dist/chunks/cli-1.0.17-1d9ccn16.mjs +0 -2
  524. package/dist/chunks/cli-1.0.17-1gh241a0.mjs +0 -50
  525. package/dist/chunks/cli-1.0.17-1nnc1g3f.mjs +0 -2
  526. package/dist/chunks/cli-1.0.17-1ptwye5c.mjs +0 -25
  527. package/dist/chunks/cli-1.0.17-1w8t10bs.mjs +0 -59
  528. package/dist/chunks/cli-1.0.17-1ycfrbcz.mjs +0 -133
  529. package/dist/chunks/cli-1.0.17-1yj54t22.mjs +0 -2
  530. package/dist/chunks/cli-1.0.17-23znd3er.mjs +0 -2
  531. package/dist/chunks/cli-1.0.17-28rys8n5.mjs +0 -2
  532. package/dist/chunks/cli-1.0.17-2c5rzypz.mjs +0 -2
  533. package/dist/chunks/cli-1.0.17-2f86ehqm.mjs +0 -2
  534. package/dist/chunks/cli-1.0.17-2jt2w5sh.mjs +0 -42
  535. package/dist/chunks/cli-1.0.17-2mdpd30s.mjs +0 -3
  536. package/dist/chunks/cli-1.0.17-2yxp2sz6.mjs +0 -2
  537. package/dist/chunks/cli-1.0.17-3939hx4x.mjs +0 -2
  538. package/dist/chunks/cli-1.0.17-3ba3vg5e.mjs +0 -6
  539. package/dist/chunks/cli-1.0.17-3dm1st8c.mjs +0 -4
  540. package/dist/chunks/cli-1.0.17-46tr5weq.mjs +0 -2
  541. package/dist/chunks/cli-1.0.17-472de7yw.mjs +0 -2
  542. package/dist/chunks/cli-1.0.17-4dka7p1w.mjs +0 -3
  543. package/dist/chunks/cli-1.0.17-4e7wpg9g.mjs +0 -2
  544. package/dist/chunks/cli-1.0.17-4ppbs89h.mjs +0 -2
  545. package/dist/chunks/cli-1.0.17-4prxa3t4.mjs +0 -2
  546. package/dist/chunks/cli-1.0.17-4qh79bzg.mjs +0 -2
  547. package/dist/chunks/cli-1.0.17-5g9z2hnd.mjs +0 -2
  548. package/dist/chunks/cli-1.0.17-5j5603y3.mjs +0 -2
  549. package/dist/chunks/cli-1.0.17-5jrh9pw3.mjs +0 -6
  550. package/dist/chunks/cli-1.0.17-5my2a6t5.mjs +0 -2
  551. package/dist/chunks/cli-1.0.17-5wvqpfzb.mjs +0 -4
  552. package/dist/chunks/cli-1.0.17-6amam79j.mjs +0 -4
  553. package/dist/chunks/cli-1.0.17-6gqj4d8v.mjs +0 -2
  554. package/dist/chunks/cli-1.0.17-6hxscz8d.mjs +0 -2
  555. package/dist/chunks/cli-1.0.17-6ty7z7jt.mjs +0 -2
  556. package/dist/chunks/cli-1.0.17-70a54p8v.mjs +0 -2
  557. package/dist/chunks/cli-1.0.17-7ngvd609.mjs +0 -2
  558. package/dist/chunks/cli-1.0.17-7p5c1h67.mjs +0 -2
  559. package/dist/chunks/cli-1.0.17-89k0njkm.mjs +0 -2
  560. package/dist/chunks/cli-1.0.17-89p1ntv1.mjs +0 -4
  561. package/dist/chunks/cli-1.0.17-8c9eadan.mjs +0 -2
  562. package/dist/chunks/cli-1.0.17-8f71d8ge.mjs +0 -2
  563. package/dist/chunks/cli-1.0.17-8gd4gtyj.mjs +0 -39
  564. package/dist/chunks/cli-1.0.17-8h47dvj2.mjs +0 -12
  565. package/dist/chunks/cli-1.0.17-8jrync3y.mjs +0 -2
  566. package/dist/chunks/cli-1.0.17-8r1zjpkg.mjs +0 -2
  567. package/dist/chunks/cli-1.0.17-8tbkxnj4.mjs +0 -2
  568. package/dist/chunks/cli-1.0.17-8vch8btt.mjs +0 -2
  569. package/dist/chunks/cli-1.0.17-926g8p8g.mjs +0 -2
  570. package/dist/chunks/cli-1.0.17-95kcmvj1.mjs +0 -2
  571. package/dist/chunks/cli-1.0.17-9868wetk.mjs +0 -2
  572. package/dist/chunks/cli-1.0.17-9kwckjes.mjs +0 -15
  573. package/dist/chunks/cli-1.0.17-9xr21bd5.mjs +0 -45
  574. package/dist/chunks/cli-1.0.17-a0qpbbgx.mjs +0 -2
  575. package/dist/chunks/cli-1.0.17-a49frejp.mjs +0 -2
  576. package/dist/chunks/cli-1.0.17-a6mc44b2.mjs +0 -4
  577. package/dist/chunks/cli-1.0.17-a77fqcz9.mjs +0 -2
  578. package/dist/chunks/cli-1.0.17-a8nd0nw1.mjs +0 -15
  579. package/dist/chunks/cli-1.0.17-a9k3xfma.mjs +0 -25
  580. package/dist/chunks/cli-1.0.17-ah6z554b.mjs +0 -2
  581. package/dist/chunks/cli-1.0.17-amskbazt.mjs +0 -2
  582. package/dist/chunks/cli-1.0.17-at0j3482.mjs +0 -2
  583. package/dist/chunks/cli-1.0.17-awxt5jcy.mjs +0 -2
  584. package/dist/chunks/cli-1.0.17-b7zgt5wj.mjs +0 -2
  585. package/dist/chunks/cli-1.0.17-b91m27j2.mjs +0 -2
  586. package/dist/chunks/cli-1.0.17-bbq31y7a.mjs +0 -9
  587. package/dist/chunks/cli-1.0.17-bheyzxzm.mjs +0 -2
  588. package/dist/chunks/cli-1.0.17-bmw1t0t6.mjs +0 -58
  589. package/dist/chunks/cli-1.0.17-bner2z30.mjs +0 -16
  590. package/dist/chunks/cli-1.0.17-bnex4nm7.mjs +0 -6
  591. package/dist/chunks/cli-1.0.17-btwwqyqt.mjs +0 -2
  592. package/dist/chunks/cli-1.0.17-bwt7gr42.mjs +0 -5
  593. package/dist/chunks/cli-1.0.17-bxwv0g41.mjs +0 -7
  594. package/dist/chunks/cli-1.0.17-bzn05jd6.mjs +0 -2
  595. package/dist/chunks/cli-1.0.17-c4mj41az.mjs +0 -2
  596. package/dist/chunks/cli-1.0.17-ca7kkyhc.mjs +0 -2
  597. package/dist/chunks/cli-1.0.17-cavdar8z.mjs +0 -2
  598. package/dist/chunks/cli-1.0.17-cd9q5wvd.mjs +0 -2
  599. package/dist/chunks/cli-1.0.17-ctfz7aky.mjs +0 -2
  600. package/dist/chunks/cli-1.0.17-cxy5w8mx.mjs +0 -2
  601. package/dist/chunks/cli-1.0.17-dc668fev.mjs +0 -2
  602. package/dist/chunks/cli-1.0.17-dfb76sxr.mjs +0 -2
  603. package/dist/chunks/cli-1.0.17-dgjmb848.mjs +0 -3
  604. package/dist/chunks/cli-1.0.17-dpms71sy.mjs +0 -4
  605. package/dist/chunks/cli-1.0.17-dss95ag9.mjs +0 -6
  606. package/dist/chunks/cli-1.0.17-dyrqnbfs.mjs +0 -2
  607. package/dist/chunks/cli-1.0.17-e4mt36cj.mjs +0 -2
  608. package/dist/chunks/cli-1.0.17-ea8m8v7k.mjs +0 -133
  609. package/dist/chunks/cli-1.0.17-ecr8sjr9.mjs +0 -2
  610. package/dist/chunks/cli-1.0.17-ee1sf1f4.mjs +0 -2
  611. package/dist/chunks/cli-1.0.17-emxxxrjh.mjs +0 -2
  612. package/dist/chunks/cli-1.0.17-erbfjxqt.mjs +0 -2
  613. package/dist/chunks/cli-1.0.17-es1tv25a.mjs +0 -2
  614. package/dist/chunks/cli-1.0.17-esydm78q.mjs +0 -2
  615. package/dist/chunks/cli-1.0.17-f5mwgpmm.mjs +0 -2
  616. package/dist/chunks/cli-1.0.17-fgbyxz18.mjs +0 -3
  617. package/dist/chunks/cli-1.0.17-fjz6hvrb.mjs +0 -9
  618. package/dist/chunks/cli-1.0.17-fkqttg24.mjs +0 -24
  619. package/dist/chunks/cli-1.0.17-fm4473vw.mjs +0 -2
  620. package/dist/chunks/cli-1.0.17-gch1jsbe.mjs +0 -2
  621. package/dist/chunks/cli-1.0.17-ge11eg68.mjs +0 -3
  622. package/dist/chunks/cli-1.0.17-gwqztngk.mjs +0 -2
  623. package/dist/chunks/cli-1.0.17-gy47n7qj.mjs +0 -2
  624. package/dist/chunks/cli-1.0.17-h101c40b.mjs +0 -2
  625. package/dist/chunks/cli-1.0.17-h3jp181w.mjs +0 -20
  626. package/dist/chunks/cli-1.0.17-h4w6a4d1.mjs +0 -3
  627. package/dist/chunks/cli-1.0.17-h6b518v1.mjs +0 -2
  628. package/dist/chunks/cli-1.0.17-hb445h5r.mjs +0 -2
  629. package/dist/chunks/cli-1.0.17-hbqxdxv2.mjs +0 -2
  630. package/dist/chunks/cli-1.0.17-hc0snvws.mjs +0 -2
  631. package/dist/chunks/cli-1.0.17-hh90k4js.mjs +0 -2
  632. package/dist/chunks/cli-1.0.17-hswqk374.mjs +0 -12
  633. package/dist/chunks/cli-1.0.17-hxyavaae.mjs +0 -2
  634. package/dist/chunks/cli-1.0.17-hzag9kre.mjs +0 -2
  635. package/dist/chunks/cli-1.0.17-j526q1y7.mjs +0 -2
  636. package/dist/chunks/cli-1.0.17-j5qmnveg.mjs +0 -2
  637. package/dist/chunks/cli-1.0.17-jfarzka9.mjs +0 -18
  638. package/dist/chunks/cli-1.0.17-jfrx870z.mjs +0 -3
  639. package/dist/chunks/cli-1.0.17-jktkjeyp.mjs +0 -2
  640. package/dist/chunks/cli-1.0.17-jze67k48.mjs +0 -2
  641. package/dist/chunks/cli-1.0.17-k165z3yw.mjs +0 -4
  642. package/dist/chunks/cli-1.0.17-k27bgcpe.mjs +0 -2
  643. package/dist/chunks/cli-1.0.17-k3xz0fme.mjs +0 -21
  644. package/dist/chunks/cli-1.0.17-ka8tc4xj.mjs +0 -4
  645. package/dist/chunks/cli-1.0.17-kn7c19b9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.17-ksmypgky.mjs +0 -202
  647. package/dist/chunks/cli-1.0.17-kxfqzcbd.mjs +0 -2
  648. package/dist/chunks/cli-1.0.17-m2mr0t1a.mjs +0 -2
  649. package/dist/chunks/cli-1.0.17-m52g3sxg.mjs +0 -17
  650. package/dist/chunks/cli-1.0.17-m59cbaf4.mjs +0 -5
  651. package/dist/chunks/cli-1.0.17-m983tex6.mjs +0 -2
  652. package/dist/chunks/cli-1.0.17-mf9k8ee9.mjs +0 -2
  653. package/dist/chunks/cli-1.0.17-mhmktnkz.mjs +0 -2
  654. package/dist/chunks/cli-1.0.17-mk4ctspx.mjs +0 -2
  655. package/dist/chunks/cli-1.0.17-mnsjbqs4.mjs +0 -2
  656. package/dist/chunks/cli-1.0.17-mzzfvdfd.mjs +0 -2
  657. package/dist/chunks/cli-1.0.17-n6v9ztev.mjs +0 -2
  658. package/dist/chunks/cli-1.0.17-nf9nfc0r.mjs +0 -2
  659. package/dist/chunks/cli-1.0.17-nkg0ctrj.mjs +0 -2
  660. package/dist/chunks/cli-1.0.17-park9sag.mjs +0 -3
  661. package/dist/chunks/cli-1.0.17-pfwa4tne.mjs +0 -2
  662. package/dist/chunks/cli-1.0.17-pkj16tyk.mjs +0 -2
  663. package/dist/chunks/cli-1.0.17-pzebvptb.mjs +0 -2
  664. package/dist/chunks/cli-1.0.17-qadydg9v.mjs +0 -15
  665. package/dist/chunks/cli-1.0.17-qde4391n.mjs +0 -2
  666. package/dist/chunks/cli-1.0.17-qnyqadyd.mjs +0 -3
  667. package/dist/chunks/cli-1.0.17-qx980gch.mjs +0 -5637
  668. package/dist/chunks/cli-1.0.17-r5sxt70v.mjs +0 -4
  669. package/dist/chunks/cli-1.0.17-rev3s74x.mjs +0 -4
  670. package/dist/chunks/cli-1.0.17-rhsj77ax.mjs +0 -12
  671. package/dist/chunks/cli-1.0.17-rp4pr56x.mjs +0 -2
  672. package/dist/chunks/cli-1.0.17-rpm2778d.mjs +0 -2
  673. package/dist/chunks/cli-1.0.17-rq8fyqe6.mjs +0 -2
  674. package/dist/chunks/cli-1.0.17-rsrbhcgg.mjs +0 -2
  675. package/dist/chunks/cli-1.0.17-s87gh0xy.mjs +0 -2
  676. package/dist/chunks/cli-1.0.17-sdwcavah.mjs +0 -2
  677. package/dist/chunks/cli-1.0.17-svhv399t.mjs +0 -2
  678. package/dist/chunks/cli-1.0.17-sxwsnjkf.mjs +0 -2
  679. package/dist/chunks/cli-1.0.17-t3a6qmnj.mjs +0 -2
  680. package/dist/chunks/cli-1.0.17-tq56x0z7.mjs +0 -2
  681. package/dist/chunks/cli-1.0.17-ttnq9eyz.mjs +0 -2
  682. package/dist/chunks/cli-1.0.17-v39zqb3q.mjs +0 -12
  683. package/dist/chunks/cli-1.0.17-v42jc8b6.mjs +0 -2
  684. package/dist/chunks/cli-1.0.17-v7gbw6nc.mjs +0 -2
  685. package/dist/chunks/cli-1.0.17-verxvj0s.mjs +0 -2
  686. package/dist/chunks/cli-1.0.17-vg1egngy.mjs +0 -2
  687. package/dist/chunks/cli-1.0.17-vjz0mgdc.mjs +0 -2
  688. package/dist/chunks/cli-1.0.17-w221edm9.mjs +0 -2
  689. package/dist/chunks/cli-1.0.17-w335kv69.mjs +0 -2
  690. package/dist/chunks/cli-1.0.17-wbr7f7wj.mjs +0 -2
  691. package/dist/chunks/cli-1.0.17-wm0z0tn9.mjs +0 -24
  692. package/dist/chunks/cli-1.0.17-wp8wyvc5.mjs +0 -34
  693. package/dist/chunks/cli-1.0.17-wqrh69a1.mjs +0 -8
  694. package/dist/chunks/cli-1.0.17-x0khsc7b.mjs +0 -2
  695. package/dist/chunks/cli-1.0.17-xc8m08gx.mjs +0 -2
  696. package/dist/chunks/cli-1.0.17-xhvs9ddb.mjs +0 -2
  697. package/dist/chunks/cli-1.0.17-xvntbm80.mjs +0 -3
  698. package/dist/chunks/cli-1.0.17-xvt8srd0.mjs +0 -2
  699. package/dist/chunks/cli-1.0.17-y24xrbmn.mjs +0 -2
  700. package/dist/chunks/cli-1.0.17-ya2pc5rh.mjs +0 -1
  701. package/dist/chunks/cli-1.0.17-yhm1j87y.mjs +0 -2
  702. package/dist/chunks/cli-1.0.17-ykztjshc.mjs +0 -2
  703. package/dist/chunks/cli-1.0.17-ysbbhgx7.mjs +0 -2
  704. package/dist/chunks/cli-1.0.17-yt9x63kq.mjs +0 -17
  705. package/dist/chunks/cli-1.0.17-ytcs4408.mjs +0 -2
  706. package/dist/chunks/cli-1.0.17-z313h4h8.mjs +0 -3
  707. package/dist/chunks/cli-1.0.17-zjtvw594.mjs +0 -18
  708. package/dist/chunks/cli-1.0.17-znwer2mk.mjs +0 -3
  709. package/dist/chunks/cli-1.0.17-zsbjcta9.mjs +0 -2
  710. package/dist/chunks/cli-1.0.17-zw7pcdw5.mjs +0 -4
  711. package/dist/chunks/cli-1.0.17-zxmxc807.mjs +0 -2
  712. package/dist/chunks/cli-1.0.17-zzy8pydb.mjs +0 -24
  713. package/dist/chunks/client-1.0.17-xqf28e2z.mjs +0 -1
  714. package/dist/chunks/color-1.0.17-x7gy4qsg.mjs +0 -1
  715. package/dist/chunks/compact-1.0.17-ntr0k3c1.mjs +0 -3
  716. package/dist/chunks/config-1.0.17-1bmax1k6.mjs +0 -1
  717. package/dist/chunks/config-1.0.17-wg2z9bvt.mjs +0 -1
  718. package/dist/chunks/constants-1.0.17-9g1fvd9s.mjs +0 -1
  719. package/dist/chunks/context-1.0.17-798z8a9c.mjs +0 -1
  720. package/dist/chunks/context-noninteractive-1.0.17-fbqqqy1k.mjs +0 -1
  721. package/dist/chunks/conversation-1.0.17-dh2k9gmk.mjs +0 -1
  722. package/dist/chunks/copilotHeaders-1.0.17-ztn0cqk4.mjs +0 -1
  723. package/dist/chunks/copy-1.0.17-74hpmk8e.mjs +0 -9
  724. package/dist/chunks/cost-1.0.17-edvv39jq.mjs +0 -1
  725. package/dist/chunks/createSSHSession-1.0.17-9vy9wmd2.mjs +0 -1
  726. package/dist/chunks/createSession-1.0.17-6ethfgt5.mjs +0 -1
  727. package/dist/chunks/debug-1.0.17-ka59nr0k.mjs +0 -1
  728. package/dist/chunks/defaultActionDeps-1.0.17-pa1y8kd6.mjs +0 -1446
  729. package/dist/chunks/desktop-1.0.17-31m1etzm.mjs +0 -1
  730. package/dist/chunks/detectRepository-1.0.17-8pz5azd8.mjs +0 -1
  731. package/dist/chunks/detection-1.0.17-3evcsm4n.mjs +0 -1
  732. package/dist/chunks/diff-1.0.17-gh9asnv7.mjs +0 -1
  733. package/dist/chunks/doctor-1.0.17-dk3s21ty.mjs +0 -1
  734. package/dist/chunks/doctorDiagnostic-1.0.17-31t5hgcb.mjs +0 -1
  735. package/dist/chunks/earlyInput-1.0.17-t706682g.mjs +0 -1
  736. package/dist/chunks/effort-1.0.17-qdecy5rp.mjs +0 -10
  737. package/dist/chunks/engine-1.0.17-1h34mzj4.mjs +0 -1
  738. package/dist/chunks/envLessBridgeConfig-1.0.17-ae0j9tej.mjs +0 -1
  739. package/dist/chunks/envUtils-1.0.17-3wpvqsah.mjs +0 -1
  740. package/dist/chunks/environmentSelection-1.0.17-n74jjawy.mjs +0 -1
  741. package/dist/chunks/environments-1.0.17-5cwk3b85.mjs +0 -1
  742. package/dist/chunks/errors-1.0.17-7m26fq8r.mjs +0 -1
  743. package/dist/chunks/exampleCommands-1.0.17-gva1ra1c.mjs +0 -1
  744. package/dist/chunks/execFileNoThrow-1.0.17-f7g2n79t.mjs +0 -1
  745. package/dist/chunks/exit-1.0.17-js0a6tr5.mjs +0 -1
  746. package/dist/chunks/explorer-1.0.17-0tsv1eaz.mjs +0 -1
  747. package/dist/chunks/export-1.0.17-y5w7ttdw.mjs +0 -2
  748. package/dist/chunks/extra-usage-1.0.17-ws6dsej0.mjs +0 -1
  749. package/dist/chunks/extra-usage-noninteractive-1.0.17-9fqc29gm.mjs +0 -1
  750. package/dist/chunks/fast-1.0.17-bz8x0afk.mjs +0 -1
  751. package/dist/chunks/feedback-1.0.17-t3m4hybn.mjs +0 -14
  752. package/dist/chunks/firstPartyEventLogger-1.0.17-avapd2qj.mjs +0 -1
  753. package/dist/chunks/git-1.0.17-dp3j8z22.mjs +0 -1
  754. package/dist/chunks/githubModelsCredentials-1.0.17-kp29gxmn.mjs +0 -1
  755. package/dist/chunks/goal-1.0.17-gs6qz9xz.mjs +0 -4
  756. package/dist/chunks/grove-1.0.17-g1jrnrfa.mjs +0 -1
  757. package/dist/chunks/growthbook-1.0.17-c150q3q5.mjs +0 -1
  758. package/dist/chunks/headless-1.0.17-3s0pbnt1.mjs +0 -2
  759. package/dist/chunks/heapdump-1.0.17-7w56g33y.mjs +0 -6
  760. package/dist/chunks/help-1.0.17-t0jyya03.mjs +0 -1
  761. package/dist/chunks/hookChains-1.0.17-8hq9yg68.mjs +0 -3
  762. package/dist/chunks/hooks-1.0.17-75bzpsfq.mjs +0 -1
  763. package/dist/chunks/hooks-1.0.17-vkahmdgs.mjs +0 -79
  764. package/dist/chunks/ide-1.0.17-yy904k1k.mjs +0 -3
  765. package/dist/chunks/image-processor-napi-1.0.17-6faqb25d.mjs +0 -1
  766. package/dist/chunks/inboundAttachments-1.0.17-tk5xd5n5.mjs +0 -1
  767. package/dist/chunks/index-1.0.17-3x8p135j.mjs +0 -9
  768. package/dist/chunks/index-1.0.17-3xzthc12.mjs +0 -1
  769. package/dist/chunks/index-1.0.17-4hbew0jj.mjs +0 -1
  770. package/dist/chunks/index-1.0.17-63rw94pj.mjs +0 -1
  771. package/dist/chunks/index-1.0.17-6sz8n41b.mjs +0 -30
  772. package/dist/chunks/index-1.0.17-7kafj1wr.mjs +0 -1
  773. package/dist/chunks/index-1.0.17-8bzj2r89.mjs +0 -1
  774. package/dist/chunks/index-1.0.17-94k1v6vk.mjs +0 -1
  775. package/dist/chunks/index-1.0.17-anafdqwk.mjs +0 -2
  776. package/dist/chunks/index-1.0.17-bmrkyghv.mjs +0 -1
  777. package/dist/chunks/index-1.0.17-f1kag1j2.mjs +0 -1
  778. package/dist/chunks/index-1.0.17-fm1dtwyv.mjs +0 -1
  779. package/dist/chunks/index-1.0.17-htkh5gz1.mjs +0 -1
  780. package/dist/chunks/index-1.0.17-kbm6jjth.mjs +0 -1
  781. package/dist/chunks/index-1.0.17-mwn9khh9.mjs +0 -1
  782. package/dist/chunks/index-1.0.17-r5cma447.mjs +0 -17
  783. package/dist/chunks/index-1.0.17-rqt631c5.mjs +0 -5
  784. package/dist/chunks/index-1.0.17-rzz9jfsj.mjs +0 -1
  785. package/dist/chunks/index-1.0.17-s1j2b6vq.mjs +0 -1
  786. package/dist/chunks/index-1.0.17-vsgqkee9.mjs +0 -1
  787. package/dist/chunks/index-1.0.17-ym2rj6bp.mjs +0 -9
  788. package/dist/chunks/index-1.0.17-z2zgermv.mjs +0 -2
  789. package/dist/chunks/index-1.0.17-zh9afr9s.mjs +0 -1
  790. package/dist/chunks/init-1.0.17-fz0hn5sx.mjs +0 -1
  791. package/dist/chunks/initReplBridge-1.0.17-3r8ea310.mjs +0 -1
  792. package/dist/chunks/ink-1.0.17-rp7215qx.mjs +0 -1
  793. package/dist/chunks/insights-1.0.17-q6rck59k.mjs +0 -870
  794. package/dist/chunks/install-1.0.17-6080qjjr.mjs +0 -1
  795. package/dist/chunks/install-github-app-1.0.17-z7kv0v60.mjs +0 -149
  796. package/dist/chunks/install-slack-app-1.0.17-gm26km9g.mjs +0 -1
  797. package/dist/chunks/instrumentation-1.0.17-jzxwt5er.mjs +0 -1
  798. package/dist/chunks/interactiveHelpers-1.0.17-w48vtvtz.mjs +0 -1
  799. package/dist/chunks/keybindings-1.0.17-x6tbbf7w.mjs +0 -2
  800. package/dist/chunks/knowledge-1.0.17-bfrdctvr.mjs +0 -2
  801. package/dist/chunks/latestVersionCache-1.0.17-6henz973.mjs +0 -1
  802. package/dist/chunks/loadAgentsDir-1.0.17-n60qxn26.mjs +0 -1
  803. package/dist/chunks/loadPluginHooks-1.0.17-8tqx0pdk.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.0.17-wav55dek.mjs +0 -1
  805. package/dist/chunks/log-1.0.17-j1rv6dsh.mjs +0 -1
  806. package/dist/chunks/main-1.0.17-h4k1en4r.mjs +0 -1
  807. package/dist/chunks/managedEnv-1.0.17-nt7nm12j.mjs +0 -1
  808. package/dist/chunks/mcp-1.0.17-23ggaedw.mjs +0 -17
  809. package/dist/chunks/mcp-1.0.17-jj7xfnfe.mjs +0 -4
  810. package/dist/chunks/mcp-1.0.17-z4984caf.mjs +0 -1
  811. package/dist/chunks/mcpb-1.0.17-bhsxvq63.mjs +0 -1
  812. package/dist/chunks/memory-1.0.17-yt68v7ap.mjs +0 -72
  813. package/dist/chunks/model-1.0.17-aeyz5p9p.mjs +0 -2
  814. package/dist/chunks/model-1.0.17-qsjdvrd5.mjs +0 -1
  815. package/dist/chunks/node-1.0.17-0rq9m4ak.mjs +0 -12
  816. package/dist/chunks/oauth-1.0.17-yjkwe4k5.mjs +0 -1
  817. package/dist/chunks/openaiShim-1.0.17-tz5wqwzh.mjs +0 -14
  818. package/dist/chunks/output-style-1.0.17-9g29453y.mjs +0 -1
  819. package/dist/chunks/package-2VNCXFNY-1.0.17-rztr9aj4.mjs +0 -1
  820. package/dist/chunks/parseConnectUrl-1.0.17-hkk9pnna.mjs +0 -1
  821. package/dist/chunks/parser-1.0.17-msy0vt6k.mjs +0 -1
  822. package/dist/chunks/passes-1.0.17-j2yp563b.mjs +0 -1
  823. package/dist/chunks/permissions-1.0.17-gy7m159e.mjs +0 -3
  824. package/dist/chunks/permissions-1.0.17-v5041xc1.mjs +0 -1
  825. package/dist/chunks/plan-1.0.17-dsrf8crc.mjs +0 -1
  826. package/dist/chunks/plist-1.0.17-qj89pt80.mjs +0 -1
  827. package/dist/chunks/plugin-1.0.17-rtmfht0z.mjs +0 -29
  828. package/dist/chunks/pluginStartupCheck-1.0.17-9rqvbt4k.mjs +0 -1
  829. package/dist/chunks/plugins-1.0.17-aa1p63yv.mjs +0 -9
  830. package/dist/chunks/preActionHook-1.0.17-sk15skx3.mjs +0 -2
  831. package/dist/chunks/print-1.0.17-2mzd4w21.mjs +0 -57
  832. package/dist/chunks/privacy-settings-1.0.17-7vm1x5sr.mjs +0 -1
  833. package/dist/chunks/process-1.0.17-v6aqjwzk.mjs +0 -1
  834. package/dist/chunks/processBashCommand-1.0.17-zykh4cqf.mjs +0 -1
  835. package/dist/chunks/processSlashCommand-1.0.17-gcjyjyjr.mjs +0 -9
  836. package/dist/chunks/prompt-1.0.17-6wa08t1s.mjs +0 -1
  837. package/dist/chunks/prompt-1.0.17-n7xqvg3b.mjs +0 -1
  838. package/dist/chunks/prompts-1.0.17-s87r77nr.mjs +0 -1
  839. package/dist/chunks/protocolHandler-1.0.17-4w13byd5.mjs +0 -13
  840. package/dist/chunks/provider-1.0.17-55mbqxc2.mjs +0 -2
  841. package/dist/chunks/providerProfiles-1.0.17-kxhx9m23.mjs +0 -1
  842. package/dist/chunks/providerValidation-1.0.17-haa5b155.mjs +0 -6
  843. package/dist/chunks/rate-limit-options-1.0.17-0cqpvcdk.mjs +0 -1
  844. package/dist/chunks/registerSubcommands-1.0.17-5zmj0kqm.mjs +0 -34
  845. package/dist/chunks/registry-1.0.17-mkfb3tvt.mjs +0 -1
  846. package/dist/chunks/release-notes-1.0.17-8snbpqbs.mjs +0 -5
  847. package/dist/chunks/reload-plugins-1.0.17-eg1v6x99.mjs +0 -2
  848. package/dist/chunks/remote-env-1.0.17-9fksp65j.mjs +0 -1
  849. package/dist/chunks/remoteBridgeCore-1.0.17-rtawcjw6.mjs +0 -1
  850. package/dist/chunks/remoteSession-1.0.17-a1ms2ttj.mjs +0 -1
  851. package/dist/chunks/rename-1.0.17-09e526vj.mjs +0 -1
  852. package/dist/chunks/replBridgeHandle-1.0.17-3qyccrd1.mjs +0 -1
  853. package/dist/chunks/replLauncher-1.0.17-50011rdb.mjs +0 -1
  854. package/dist/chunks/resume-1.0.17-hy1ncvwh.mjs +0 -2
  855. package/dist/chunks/rewind-1.0.17-cvna2377.mjs +0 -1
  856. package/dist/chunks/rootOptions-1.0.17-kpkg1wb0.mjs +0 -1
  857. package/dist/chunks/runWorkflowHeadless-1.0.17-jbv8z86k.mjs +0 -10
  858. package/dist/chunks/sandbox-adapter-1.0.17-hq7fx8ex.mjs +0 -1
  859. package/dist/chunks/sandbox-toggle-1.0.17-kr3wm7t7.mjs +0 -1
  860. package/dist/chunks/session-1.0.17-5613sexq.mjs +0 -2
  861. package/dist/chunks/sessionDiscovery-1.0.17-gsw1cxaw.mjs +0 -1
  862. package/dist/chunks/sessionFileAccessHooks-1.0.17-p0gkvt4d.mjs +0 -1
  863. package/dist/chunks/sessionStorage-1.0.17-9ayxcfb9.mjs +0 -1
  864. package/dist/chunks/settings-1.0.17-dp8x87ef.mjs +0 -1
  865. package/dist/chunks/setup-1.0.17-ey47rggp.mjs +0 -5
  866. package/dist/chunks/sinks-1.0.17-pjfn1cvs.mjs +0 -1
  867. package/dist/chunks/skills-1.0.17-957pj40r.mjs +0 -1
  868. package/dist/chunks/startupProfiler-1.0.17-r5qx27af.mjs +0 -1
  869. package/dist/chunks/startupUpdateCheck-1.0.17-ccx0f3x6.mjs +0 -1
  870. package/dist/chunks/state-1.0.17-wqzcjy24.mjs +0 -1
  871. package/dist/chunks/stats-1.0.17-qwr66nst.mjs +0 -6
  872. package/dist/chunks/status-1.0.17-fw5sv974.mjs +0 -1
  873. package/dist/chunks/stickers-1.0.17-0xx7db6g.mjs +0 -1
  874. package/dist/chunks/subprocessEnv-1.0.17-n5cn87xp.mjs +0 -1
  875. package/dist/chunks/tasks-1.0.17-w0q9gftt.mjs +0 -1
  876. package/dist/chunks/teamHelpers-1.0.17-sa3s8hyk.mjs +0 -1
  877. package/dist/chunks/teammateModeSnapshot-1.0.17-z253vr4f.mjs +0 -1
  878. package/dist/chunks/teleport-1.0.17-g2by1yjq.mjs +0 -1
  879. package/dist/chunks/terminalSetup-1.0.17-g2q4wcwh.mjs +0 -1
  880. package/dist/chunks/theme-1.0.17-40nrdpr3.mjs +0 -1
  881. package/dist/chunks/thinkback-1.0.17-vzzceq55.mjs +0 -1
  882. package/dist/chunks/thinkback-play-1.0.17-f75qmjyw.mjs +0 -1
  883. package/dist/chunks/toolPool-1.0.17-qtydtser.mjs +0 -1
  884. package/dist/chunks/toolSearch-1.0.17-913zemhq.mjs +0 -1
  885. package/dist/chunks/tools-1.0.17-22ce3q9j.mjs +0 -1
  886. package/dist/chunks/trustedDevice-1.0.17-rhbew9da.mjs +0 -1
  887. package/dist/chunks/turndown.cjs-1.0.17-3b3z4x7p.mjs +0 -69
  888. package/dist/chunks/types-1.0.17-psrdfpk3.mjs +0 -1
  889. package/dist/chunks/ultrareviewCommand-1.0.17-srb6z4yz.mjs +0 -4
  890. package/dist/chunks/update-1.0.17-chegbf04.mjs +0 -88
  891. package/dist/chunks/upgrade-1.0.17-4r1q1v3q.mjs +0 -1
  892. package/dist/chunks/upload-1.0.17-am8s1q94.mjs +0 -7
  893. package/dist/chunks/upstreamproxy-1.0.17-88vgegvm.mjs +0 -14
  894. package/dist/chunks/url-handler-napi-1.0.17-cg7jf2v4.mjs +0 -1
  895. package/dist/chunks/usage-1.0.17-0pjtc1jb.mjs +0 -1
  896. package/dist/chunks/util-1.0.17-cwe172ex.mjs +0 -1
  897. package/dist/chunks/utils-1.0.17-2q7gzedz.mjs +0 -1
  898. package/dist/chunks/vim-1.0.17-9re127j9.mjs +0 -1
  899. package/dist/chunks/watchLoop-1.0.17-8n39xwhz.mjs +0 -13
  900. package/dist/chunks/watcher-1.0.17-annky0s6.mjs +0 -1
  901. package/dist/chunks/wiki-1.0.17-p8s2y2fh.mjs +0 -132
  902. package/dist/chunks/workflows-1.0.17-5ygdx16y.mjs +0 -1
  903. package/dist/chunks/worktree-1.0.17-zh7mn90d.mjs +0 -1
  904. package/dist/chunks/worktreeModeEnabled-1.0.17-m9g3s832.mjs +0 -1
  905. package/dist/chunks/wrapper-1.0.17-p976tvn1.mjs +0 -7
  906. /package/dist/chunks/{cli-1.0.17-v698jz68.mjs → cli-1.1.0-5sg0fk2p.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.17-j7brfjt1.mjs → cli-1.1.0-7s0f112n.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.17-d25jj43z.mjs → cli-1.1.0-9nc530td.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.17-zdnd89rw.mjs → cli-1.1.0-gm3yzqxw.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.17-y1rnx6nw.mjs → cli-1.1.0-j0sa90bm.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.0.17-9ktgfern.mjs → cli-1.1.0-vcev20jn.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.0.17-t0tb5qzh.mjs → cli-1.1.0-wmg6s7xa.mjs} +0 -0
@@ -1 +0,0 @@
1
- import{Lf as vq,Mf as MG,Nf as lq,Of as BG,Pf as cq,Qf as fG,Rf as iq,Sf as AG}from"./cli-1.0.17-5my2a6t5.mjs";import{Uf as DG,Vf as hG,Xf as PG}from"./cli-1.0.17-xc8m08gx.mjs";import"./cli-1.0.17-5wvqpfzb.mjs";import{Cg as KG,Dg as dG}from"./cli-1.0.17-04mwr39a.mjs";import{$n as Mq,BN as YG,CN as yG,GN as ZG,QM as wq,Tn as Jq,Un as tq,Vn as Wq,Wn as eq,Xn as yq,YH as Bq,YM as fq,Yn as qG,ZH as QG,_x as zq,ao as GG,ay as HG,by as gq,cN as RG,dN as FG,hG as JG,jG,yN as XG}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import{qW as NG,tW as lG}from"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import{jY as sq,kY as LG,lY as rq}from"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import{F0 as j,H0 as O,J0 as U,N0 as Rq,lZ as Aq,m1 as uq,uZ as Xq}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import"./cli-1.0.17-w335kv69.mjs";import"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import{V3 as J,W3 as W,X3 as p}from"./cli-1.0.17-dfb76sxr.mjs";import{Y3 as Uq}from"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-fgbyxz18.mjs";import"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{Rca as aq,Sca as zG,_ca as nq,i_ as b,j_ as jq}from"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-hb445h5r.mjs";import{Vja as kG,eka as uG}from"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as v,ksa as Qq}from"./cli-1.0.17-h101c40b.mjs";function dq({agentServer:G,onCancel:q,onComplete:Q}){let[X]=Xq(),[y,B]=u.useState(!1),[f,Y]=u.useState(null),[V,P]=u.useState(null),H=u.useRef(null);u.useEffect(()=>()=>H.current?.abort(),[]);let T=u.useCallback(()=>{if(y)H.current?.abort(),H.current=null,B(!1),P(null)},[y]);sq("confirm:no",T,{context:"Confirmation",isActive:y});let w=u.useCallback(async()=>{if(!G.needsAuth||!G.url)return;B(!0),Y(null);let L=new AbortController;H.current=L;try{let E={type:G.transport,url:G.url};await YG(G.name,E,P,L.signal),Q?.(`Authentication successful for ${G.name}. The server will connect when the agent runs.`)}catch(E){if(E instanceof Error&&!(E instanceof XG))Y(E.message)}finally{B(!1),H.current=null}},[G,Q]),k=aq(String(G.name));if(y)return W(O,{flexDirection:"column",gap:1,padding:1,children:[W(U,{color:"claude",children:["Authenticating with ",G.name,"…"]}),W(O,{children:[J(Bq,{}),J(U,{children:" A browser window will open for authentication"})]}),V&&W(O,{flexDirection:"column",children:[J(U,{dimColor:!0,children:"If your browser doesn't open automatically, copy this URL manually:"}),J(Rq,{url:V})]}),J(O,{marginLeft:3,children:W(U,{dimColor:!0,children:["Return here after authenticating in your browser."," ",J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})})]});let R=[];if(G.needsAuth)R.push({label:G.isAuthenticated?"Re-authenticate":"Authenticate",value:"auth"});return R.push({label:"Back",value:"back"}),W(Mq,{title:`${k} MCP Server`,subtitle:"agent-only",onCancel:q,inputGuide:(L)=>L.pending?W(U,{children:["Press ",L.keyName," again to exit"]}):W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),children:[W(O,{flexDirection:"column",gap:0,children:[W(O,{children:[J(U,{bold:!0,children:"Type: "}),J(U,{dimColor:!0,children:G.transport})]}),G.url&&W(O,{children:[J(U,{bold:!0,children:"URL: "}),J(U,{dimColor:!0,children:G.url})]}),G.command&&W(O,{children:[J(U,{bold:!0,children:"Command: "}),J(U,{dimColor:!0,children:G.command})]}),W(O,{children:[J(U,{bold:!0,children:"Used by: "}),J(U,{dimColor:!0,children:G.sourceAgents.join(", ")})]}),W(O,{marginTop:1,children:[J(U,{bold:!0,children:"Status: "}),W(U,{children:[j("inactive",X)(b.radioOff)," not connected (agent-only)"]})]}),G.needsAuth&&W(O,{children:[J(U,{bold:!0,children:"Auth: "}),G.isAuthenticated?W(U,{children:[j("success",X)(b.tick)," authenticated"]}):W(U,{children:[j("warning",X)(b.triangleUpOutline)," may need authentication"]})]})]}),J(O,{children:J(U,{dimColor:!0,children:"This server connects only when running the agent."})}),f&&J(O,{children:W(U,{color:"error",children:["Error: ",f]})}),J(O,{children:J(JG,{options:R,onChange:async(L)=>{switch(L){case"auth":await w();break;case"back":q();break}},onCancel:q})})]})}var u;var pq=Qq(()=>{jq();uq();rq();ZG();nq();eq();jG();qG();GG();tq();QG();p();u=v(Uq(),1)});function UG(G){switch(G){case"project":return{label:"Project MCPs",path:fq(G)};case"user":return{label:"User MCPs",path:fq(G)};case"local":return{label:"Local MCPs",path:fq(G)};case"enterprise":return{label:"Enterprise MCPs"};case"dynamic":return{label:"Built-in MCPs",path:"always available"};default:return{label:G}}}function pG(G){let q=new Map;for(let Q of G){let X=Q.scope;if(!q.has(X))q.set(X,[]);q.get(X).push(Q)}for(let[,Q]of q)Q.sort((X,y)=>X.name.localeCompare(y.name));return q}function mq(G){let q=OG.c(78),{servers:Q,agentServers:X,onSelectServer:y,onSelectAgentServer:B,onComplete:f}=G,Y;if(q[0]!==X)Y=X===void 0?[]:X,q[0]=X,q[1]=Y;else Y=q[1];let V=Y,[P]=Xq(),[H,T]=VG.useState(0),w;if(q[2]!==Q){let Z=Q.filter(vG);w=pG(Z),q[2]=Q,q[3]=w}else w=q[3];let k=w,R;if(q[4]!==Q)R=Q.filter(SG).sort(xG),q[4]=Q,q[5]=R;else R=q[5];let L=R,E;if(q[6]!==k)E=(k.get("dynamic")??[]).sort(gG),q[6]=k,q[7]=E;else E=q[7];let M=E,C;if(q[8]===Symbol.for("react.memo_cache_sentinel"))C=UG("dynamic"),q[8]=C;else C=q[8];let l=C,K;if(q[9]!==V||q[10]!==L||q[11]!==M||q[12]!==k){K=[];for(let Z of WG){let A=k.get(Z)??[];for(let I of A)K.push({type:"server",server:I})}for(let Z of L)K.push({type:"server",server:Z});for(let Z of V)K.push({type:"agent-server",agentServer:Z});for(let Z of M)K.push({type:"server",server:Z});q[9]=V,q[10]=L,q[11]=M,q[12]=k,q[13]=K}else K=q[13];let F=K,N;if(q[14]!==f)N=()=>{f("MCP dialog dismissed",{display:"system"})},q[14]=f,q[15]=N;else N=q[15];let D=N,z;if(q[16]!==B||q[17]!==y||q[18]!==F||q[19]!==H)z=()=>{let Z=F[H];if(!Z)return;if(Z.type==="server")y(Z.server);else if(Z.type==="agent-server"&&B)B(Z.agentServer)},q[16]=B,q[17]=y,q[18]=F,q[19]=H,q[20]=z;else z=q[20];let h=z,m,_;if(q[21]!==F)_=()=>T((Z)=>Z===0?F.length-1:Z-1),m=()=>T((Z)=>Z===F.length-1?0:Z+1),q[21]=F,q[22]=m,q[23]=_;else m=q[22],_=q[23];let i;if(q[24]!==D||q[25]!==h||q[26]!==m||q[27]!==_)i={"confirm:previous":_,"confirm:next":m,"confirm:yes":h,"confirm:no":D},q[24]=D,q[25]=h,q[26]=m,q[27]=_,q[28]=i;else i=q[28];let c;if(q[29]===Symbol.for("react.memo_cache_sentinel"))c={context:"Confirmation"},q[29]=c;else c=q[29];LG(i,c);let g;if(q[30]!==F)g=(Z)=>F.findIndex((A)=>A.type==="server"&&A.server===Z),q[30]=F,q[31]=g;else g=q[31];let Lq=g,o;if(q[32]!==F)o=(Z)=>F.findIndex((A)=>A.type==="agent-server"&&A.agentServer===Z),q[32]=F,q[33]=o;else o=q[33];let Zq=o,$;if(q[34]===Symbol.for("react.memo_cache_sentinel"))$=kG(),q[34]=$;else $=q[34];let CG=$,Fq;if(q[35]!==Q)Fq=Q.some(_G),q[35]=Q,q[36]=Fq;else Fq=q[36];let hq=Fq;if(Q.length===0&&V.length===0)return null;let Kq;if(q[37]!==Lq||q[38]!==H||q[39]!==P)Kq=(Z)=>{let A=Lq(Z),I=H===A,d,S;if(Z.client.type==="disabled")d=j("inactive",P)(b.radioOff),S="disabled";else if(Z.client.type==="connected")d=j("success",P)(b.tick),S="connected";else if(Z.client.type==="pending"){d=j("inactive",P)(b.radioOff);let{reconnectAttempt:oq,maxReconnectAttempts:$q}=Z.client;if(oq&&$q)S=`reconnecting (${oq}/${$q})…`;else S="connecting…"}else if(Z.client.type==="needs-auth")d=j("warning",P)(b.triangleUpOutline),S="needs authentication";else d=j("error",P)(b.cross),S="failed";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`${Z.name}-${A}`)},q[37]=Lq,q[38]=H,q[39]=P,q[40]=Kq;else Kq=q[40];let x=Kq,Oq;if(q[41]!==Zq||q[42]!==H||q[43]!==P)Oq=(Z)=>{let A=Zq(Z),I=H===A,d=Z.needsAuth?j("warning",P)(b.triangleUpOutline):j("inactive",P)(b.radioOff),S=Z.needsAuth?"may need auth":"agent-only";return W(O,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${b.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",d," "]}),J(U,{dimColor:!I,children:S})]},`agent-${Z.name}-${A}`)},q[41]=Zq,q[42]=H,q[43]=P,q[44]=Oq;else Oq=q[44];let Tq=Oq,Vq=Q.length+V.length,Hq;if(q[45]===Symbol.for("react.memo_cache_sentinel"))Hq=J(KG,{}),q[45]=Hq;else Hq=q[45];let Dq;if(q[46]!==Vq)Dq=zG(Vq,"server"),q[46]=Vq,q[47]=Dq;else Dq=q[47];let Cq=`${Vq} ${Dq}`,a;if(q[48]!==x||q[49]!==k)a=WG.map((Z)=>{let A=k.get(Z);if(!A||A.length===0)return null;let I=UG(Z);return W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:I.label}),I.path&&W(U,{dimColor:!0,children:[" (",I.path,")"]})]}),A.map((d)=>x(d))]},Z)}),q[48]=x,q[49]=k,q[50]=a;else a=q[50];let n;if(q[51]!==L||q[52]!==x)n=L.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"claude.ai"})}),L.map((Z)=>x(Z))]}),q[51]=L,q[52]=x,q[53]=n;else n=q[53];let s;if(q[54]!==V||q[55]!==Tq)s=V.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[J(O,{paddingLeft:2,children:J(U,{bold:!0,children:"Agent MCPs"})}),[...new Set(V.flatMap(mG))].map((Z)=>W(O,{flexDirection:"column",marginTop:1,children:[J(O,{paddingLeft:2,children:W(U,{dimColor:!0,children:["@",Z]})}),V.filter((A)=>A.sourceAgents.includes(Z)).map((A)=>Tq(A))]},Z))]}),q[54]=V,q[55]=Tq,q[56]=s;else s=q[56];let r;if(q[57]!==M||q[58]!==x)r=M.length>0&&W(O,{flexDirection:"column",marginBottom:1,children:[W(O,{paddingLeft:2,children:[J(U,{bold:!0,children:l.label}),l.path&&W(U,{dimColor:!0,children:[" (",l.path,")"]})]}),M.map((Z)=>x(Z))]}),q[57]=M,q[58]=x,q[59]=r;else r=q[59];let t;if(q[60]!==hq)t=hq&&J(U,{dimColor:!0,children:CG?"※ Error logs shown inline with --debug":"※ Run claude --debug to see error logs"}),q[60]=hq,q[61]=t;else t=q[61];let Pq;if(q[62]===Symbol.for("react.memo_cache_sentinel"))Pq=W(U,{dimColor:!0,children:[J(Rq,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})," ","for help"]}),q[62]=Pq;else Pq=q[62];let e;if(q[63]!==t)e=W(O,{flexDirection:"column",children:[t,Pq]}),q[63]=t,q[64]=e;else e=q[64];let qq;if(q[65]!==a||q[66]!==n||q[67]!==s||q[68]!==r||q[69]!==e)qq=W(O,{flexDirection:"column",children:[a,n,s,r,e]}),q[65]=a,q[66]=n,q[67]=s,q[68]=r,q[69]=e,q[70]=qq;else qq=q[70];let Gq;if(q[71]!==D||q[72]!==Cq||q[73]!==qq)Gq=J(Mq,{title:"Manage MCP servers",subtitle:Cq,onCancel:D,hideInputGuide:!0,children:qq}),q[71]=D,q[72]=Cq,q[73]=qq,q[74]=Gq;else Gq=q[74];let Eq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))Eq=J(O,{paddingX:1,children:J(U,{dimColor:!0,italic:!0,children:W(yq,{children:[J(Jq,{shortcut:"↑↓",action:"navigate"}),J(Jq,{shortcut:"Enter",action:"confirm"}),J(Wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[75]=Eq;else Eq=q[75];let Nq;if(q[76]!==Gq)Nq=W(O,{flexDirection:"column",children:[Hq,Gq,Eq]}),q[76]=Gq,q[77]=Nq;else Nq=q[77];return Nq}function mG(G){return G.sourceAgents}function _G(G){return G.client.type==="failed"}function gG(G,q){return G.name.localeCompare(q.name)}function xG(G,q){return G.name.localeCompare(q.name)}function SG(G){return G.client.config.type==="claudeai-proxy"}function vG(G){return G.client.config.type!=="claudeai-proxy"}var OG,VG,WG;var _q=Qq(()=>{jq();uq();rq();FG();uG();nq();eq();qG();GG();tq();dG();p();OG=v(Aq(),1),VG=v(Uq(),1),WG=["project","local","user","enterprise"]});function xq(G){let q=EG.c(25),{serverName:Q,onComplete:X}=G,[y]=Xq(),B=HG(),f=DG(),[Y,V]=kq.useState(!0),[P,H]=kq.useState(null),T,w;if(q[0]!==X||q[1]!==f||q[2]!==Q||q[3]!==B)T=()=>{(async function(){try{if(!B.getState().mcp.clients.find((M)=>M.name===Q)){H(`MCP server "${Q}" not found`),V(!1),X(`MCP server "${Q}" not found`);return}let E=await f(Q);q:switch(E.client.type){case"connected":{V(!1),X(`Successfully reconnected to ${Q}`);break q}case"needs-auth":{H(`${Q} requires authentication`),V(!1),X(`${Q} requires authentication. Use /mcp to authenticate.`);break q}case"pending":case"failed":case"disabled":H(`Failed to reconnect to ${Q}`),V(!1),X(`Failed to reconnect to ${Q}`)}}catch(L){let E=L,M=E instanceof Error?E.message:String(E);H(M),V(!1),X(`Error: ${M}`)}})()},w=[Q,f,B,X],q[0]=X,q[1]=f,q[2]=Q,q[3]=B,q[4]=T,q[5]=w;else T=q[4],w=q[5];if(kq.useEffect(T,w),Y){let k;if(q[6]!==Q)k=W(U,{color:"text",children:["Reconnecting to ",J(U,{bold:!0,children:Q})]}),q[6]=Q,q[7]=k;else k=q[7];let R;if(q[8]===Symbol.for("react.memo_cache_sentinel"))R=W(O,{children:[J(Bq,{}),J(U,{children:" Establishing connection to MCP server"})]}),q[8]=R;else R=q[8];let L;if(q[9]!==k)L=W(O,{flexDirection:"column",gap:1,padding:1,children:[k,R]}),q[9]=k,q[10]=L;else L=q[10];return L}if(P){let k;if(q[11]!==y)k=j("error",y)(b.cross),q[11]=y,q[12]=k;else k=q[12];let R;if(q[13]!==k)R=W(U,{children:[k," "]}),q[13]=k,q[14]=R;else R=q[14];let L;if(q[15]!==Q)L=W(U,{color:"error",children:["Failed to reconnect to ",Q]}),q[15]=Q,q[16]=L;else L=q[16];let E;if(q[17]!==R||q[18]!==L)E=W(O,{children:[R,L]}),q[17]=R,q[18]=L,q[19]=E;else E=q[19];let M;if(q[20]!==P)M=W(U,{dimColor:!0,children:["Error: ",P]}),q[20]=P,q[21]=M;else M=q[21];let C;if(q[22]!==E||q[23]!==M)C=W(O,{flexDirection:"column",gap:1,padding:1,children:[E,M]}),q[22]=E,q[23]=M,q[24]=C;else C=q[24];return C}return null}var EG,kq;var Sq=Qq(()=>{jq();uq();PG();gq();QG();p();EG=v(Aq(),1),kq=v(Uq(),1)});function Iq(G){let q=wG.c(66),{onComplete:Q}=G,X=zq($G),y=zq(oG),B=X.clients,f;if(q[0]===Symbol.for("react.memo_cache_sentinel"))f={type:"list"},q[0]=f;else f=q[0];let[Y,V]=Yq.default.useState(f),P;if(q[1]===Symbol.for("react.memo_cache_sentinel"))P=[],q[1]=P;else P=q[1];let[H,T]=Yq.default.useState(P),w;if(q[2]!==y.allAgents)w=RG(y.allAgents),q[2]=y.allAgents,q[3]=w;else w=q[3];let k=w,R;if(q[4]!==B)R=B.filter(iG).sort(cG),q[4]=B,q[5]=R;else R=q[5];let L=R,E,M;if(q[6]!==L||q[7]!==X.tools)E=()=>{let K=!1;return async function(){let D=await Promise.all(L.map(async(z)=>{let h=z.config.scope,m=z.config.type==="sse",_=z.config.type==="http",i=z.config.type==="claudeai-proxy",c=void 0;if(m||_){let o=await new yG(z.name,z.config).tokens(),Zq=NG()!==null&&z.type==="connected",$=z.type==="connected"&&wq(X.tools,z.name).length>0;c=Boolean(o)||Zq||$}let g={name:z.name,client:z,scope:h};if(i)return{...g,transport:"claudeai-proxy",isAuthenticated:!1,config:z.config};else if(m)return{...g,transport:"sse",isAuthenticated:c,config:z.config};else if(_)return{...g,transport:"http",isAuthenticated:c,config:z.config};else return{...g,transport:"stdio",config:z.config}}));if(K)return;T(D)}(),()=>{K=!0}},M=[L,X.tools],q[6]=L,q[7]=X.tools,q[8]=E,q[9]=M;else E=q[8],M=q[9];Yq.default.useEffect(E,M);let C,l;if(q[10]!==k.length||q[11]!==L.length||q[12]!==Q||q[13]!==H.length)C=()=>{if(H.length===0&&L.length>0)return;if(H.length===0&&k.length===0)Q("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},l=[H.length,L.length,k.length,Q],q[10]=k.length,q[11]=L.length,q[12]=Q,q[13]=H.length,q[14]=C,q[15]=l;else C=q[14],l=q[15];switch(Yq.useEffect(C,l),Y.type){case"list":{let K,F;if(q[16]===Symbol.for("react.memo_cache_sentinel"))F=(D)=>V({type:"server-menu",server:D}),K=(D)=>V({type:"agent-server-menu",agentServer:D}),q[16]=K,q[17]=F;else K=q[16],F=q[17];let N;if(q[18]!==k||q[19]!==Q||q[20]!==H||q[21]!==Y.defaultTab)N=J(mq,{servers:H,agentServers:k,onSelectServer:F,onSelectAgentServer:K,onComplete:Q,defaultTab:Y.defaultTab}),q[18]=k,q[19]=Q,q[20]=H,q[21]=Y.defaultTab,q[22]=N;else N=q[22];return N}case"server-menu":{let K;if(q[23]!==X.tools||q[24]!==Y.server.name)K=wq(X.tools,Y.server.name),q[23]=X.tools,q[24]=Y.server.name,q[25]=K;else K=q[25];let F=K,N=Y.server.transport==="claudeai-proxy"?"claude.ai":"Claude Code";if(Y.server.transport==="stdio"){let D;if(q[26]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[26]=Y.server,q[27]=D;else D=q[27];let z;if(q[28]!==N)z=()=>V({type:"list",defaultTab:N}),q[28]=N,q[29]=z;else z=q[29];let h;if(q[30]!==Q||q[31]!==F.length||q[32]!==D||q[33]!==z||q[34]!==Y.server)h=J(lq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[30]=Q,q[31]=F.length,q[32]=D,q[33]=z,q[34]=Y.server,q[35]=h;else h=q[35];return h}else{let D;if(q[36]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[36]=Y.server,q[37]=D;else D=q[37];let z;if(q[38]!==N)z=()=>V({type:"list",defaultTab:N}),q[38]=N,q[39]=z;else z=q[39];let h;if(q[40]!==Q||q[41]!==F.length||q[42]!==D||q[43]!==z||q[44]!==Y.server)h=J(vq,{server:Y.server,serverToolsCount:F.length,onViewTools:D,onCancel:z,onComplete:Q}),q[40]=Q,q[41]=F.length,q[42]=D,q[43]=z,q[44]=Y.server,q[45]=h;else h=q[45];return h}}case"server-tools":{let K,F;if(q[46]!==Y.server)F=(D,z)=>V({type:"server-tool-detail",server:Y.server,toolIndex:z}),K=()=>V({type:"server-menu",server:Y.server}),q[46]=Y.server,q[47]=K,q[48]=F;else K=q[47],F=q[48];let N;if(q[49]!==K||q[50]!==F||q[51]!==Y.server)N=J(iq,{server:Y.server,onSelectTool:F,onBack:K}),q[49]=K,q[50]=F,q[51]=Y.server,q[52]=N;else N=q[52];return N}case"server-tool-detail":{let K;if(q[53]!==X.tools||q[54]!==Y.server.name)K=wq(X.tools,Y.server.name),q[53]=X.tools,q[54]=Y.server.name,q[55]=K;else K=q[55];let N=K[Y.toolIndex];if(!N)return V({type:"server-tools",server:Y.server}),null;let D;if(q[56]!==Y.server)D=()=>V({type:"server-tools",server:Y.server}),q[56]=Y.server,q[57]=D;else D=q[57];let z;if(q[58]!==D||q[59]!==N||q[60]!==Y.server)z=J(cq,{tool:N,server:Y.server,onBack:D}),q[58]=D,q[59]=N,q[60]=Y.server,q[61]=z;else z=q[61];return z}case"agent-server-menu":{let K;if(q[62]===Symbol.for("react.memo_cache_sentinel"))K=()=>V({type:"list",defaultTab:"Agents"}),q[62]=K;else K=q[62];let F;if(q[63]!==Q||q[64]!==Y.agentServer)F=J(dq,{agentServer:Y.agentServer,onCancel:K,onComplete:Q}),q[63]=Q,q[64]=Y.agentServer,q[65]=F;else F=q[65];return F}}}function cG(G,q){return G.name.localeCompare(q.name)}function iG(G){return G.name!=="ide"}function oG(G){return G.agentDefinitions}function $G(G){return G.mcp}var wG,Yq;var IG=Qq(()=>{ZG();FG();gq();lG();pq();_q();MG();BG();fG();AG();p();wG=v(Aq(),1),Yq=v(Uq(),1)});var bG=Qq(()=>{pq();_q();Sq();MG();IG();BG();fG();AG()});function aG(G){let q=TG.c(7),{action:Q,target:X,onComplete:y}=G,B=zq(sG),f=hG(),Y=bq.useRef(!1),V,P;if(q[0]!==Q||q[1]!==B||q[2]!==y||q[3]!==X||q[4]!==f)V=()=>{if(Y.current)return;Y.current=!0;let H=Q==="enable",T=B.filter(nG),w=X==="all"?T.filter((k)=>H?k.type==="disabled":k.type!=="disabled"):T.filter((k)=>k.name===X);if(w.length===0){y(X==="all"?`All MCP servers are already ${H?"enabled":"disabled"}`:`MCP server "${X}" not found`);return}for(let k of w)f(k.name);y(X==="all"?`${H?"Enabled":"Disabled"} ${w.length} MCP server(s)`:`MCP server "${X}" ${H?"enabled":"disabled"}`)},P=[Q,X,B,f,y],q[0]=Q,q[1]=B,q[2]=y,q[3]=X,q[4]=f,q[5]=V,q[6]=P;else V=q[5],P=q[6];return bq.useEffect(V,P),null}function nG(G){return G.name!=="ide"}function sG(G){return G.mcp.clients}async function UQ(G,q,Q){if(Q){let X=Q.trim().split(/\s+/);if(X[0]==="no-redirect")return J(Iq,{onComplete:G});if(X[0]==="reconnect"&&X[1])return J(xq,{serverName:X.slice(1).join(" "),onComplete:G});if(X[0]==="enable"||X[0]==="disable")return J(aG,{action:X[0],target:X.length>1?X.slice(1).join(" "):"all",onComplete:G})}return J(Iq,{onComplete:G})}var TG,bq;var rG=Qq(()=>{bG();Sq();PG();gq();p();TG=v(Aq(),1),bq=v(Uq(),1)});rG();export{UQ as call};
@@ -1 +0,0 @@
1
- import{ksa as z}from"./cli-1.0.17-h101c40b.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,72 +0,0 @@
1
- import{Hg as L0,Jg as Nq}from"./cli-1.0.17-m59cbaf4.mjs";import{$F as AZ,$n as X0,ET as UZ,FT as C0,TD as uZ,TT as rZ,UD as l0,XD as dZ,YD as n0,_x as CZ,aG as s0,ao as Lq,by as m0,dm as $Z,gm as h0,hG as mZ,jG as r0,uT as YZ,vT as q0,wT as J0,xT as Q0,zT as kq}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import{jY as y,lY as g0,oY as hZ,pY as u0}from"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import{H0 as S,J0 as A,N0 as V0,lZ as cZ,m1 as bZ}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import"./cli-1.0.17-w335kv69.mjs";import"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import{V3 as Y,W3 as K,X3 as _}from"./cli-1.0.17-dfb76sxr.mjs";import{Y3 as pZ}from"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import{s4 as gZ,u4 as d0}from"./cli-1.0.17-fgbyxz18.mjs";import"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import{b9 as DZ,c9 as y0}from"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{$da as vZ,Bga as Xq,Eaa as p0,Kda as c0,Lda as T,Pda as zZ,Sda as fZ,W_ as SZ,Yda as FZ,aea as xZ,bea as j0,fea as W0,gea as z0,kea as $0,lea as yZ,qaa as PZ,tga as k0,x$ as w0,xda as NZ}from"./cli-1.0.17-ksmypgky.mjs";import{Uga as _Z,Yga as f0}from"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import{lia as iZ,mia as Uq}from"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import{_ia as LZ,bja as P0}from"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import{Cka as K0,Ika as Vq}from"./cli-1.0.17-89p1ntv1.mjs";import{Lka as p,Yka as TZ}from"./cli-1.0.17-1d9ccn16.mjs";import{Bqa as D0,Ima as RZ}from"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as WZ,hsa as _0,ksa as C}from"./cli-1.0.17-h101c40b.mjs";function OZ(q){return SZ(q)!==null}var EZ=C(()=>{w0()});import{basename as M0,join as R0}from"path";function T0(q){return q.type==="Project"&&q.parent===void 0&&xZ(M0(q.path))}function wZ(q,Z){let U=new Set(q.filter(T0).map((Q)=>Q.path));return vZ(Z,(Q)=>U.has(Q))??R0(Z,FZ)}var jZ=C(()=>{j0()});import{mkdir as i0}from"fs/promises";import{basename as a0,join as o0}from"path";function nZ(q){let Z=lZ.c(58),{onSelect:U,onCancel:Q}=q,z=k.use(UZ()),X=RZ(),L=o0(p(),"CLAUDE.md"),b=wZ(z,X),c=a0(b),A0=z.some((J)=>J.path===L),b0=z.some((J)=>J.path===b),I0=[...z.filter(zq).map(Wq),...A0?[]:[{path:L,type:"User",content:"",exists:!1}],...b0?[]:[{path:b,type:"Project",content:"",exists:!1}]],IZ=new Map,N=I0.map((J)=>{let W=PZ(J.path),XZ=J.exists?"":" (new)",JZ=J.parent?(IZ.get(J.parent)??0)+1:0;IZ.set(J.path,JZ);let v0=JZ>0?" ".repeat(JZ-1):"",P;if(J.type==="User"&&!J.isNested&&J.path===L)P="User memory";else if(J.type==="Project"&&!J.isNested&&J.path===b)P="Project memory";else if(JZ>0)P=`${v0}L ${W}${XZ}`;else P=`${W}`;let R,x0=OZ(X);if(J.type==="User"&&!J.isNested)R="Saved in ~/.claudin/CLAUDE.md";else if(J.type==="Project"&&!J.isNested&&J.path===b)R=`${x0?"Checked in at":"Saved in"} ./${c}`;else if(J.parent)R="@-imported";else if(J.isNested)R="dynamically loaded";else R="";return{label:P,value:J.path,description:R}}),$=[],S0=CZ(Qq);if(T()){let J;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))J={label:"Open auto-memory folder",value:`${f}${zZ()}`,description:""},Z[0]=J;else J=Z[0];if($.push(J),MZ.isTeamMemoryEnabled()){let W;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))W={label:"Open team memory folder",value:`${f}${MZ.getTeamMemPath()}`,description:""},Z[1]=W;else W=Z[1];$.push(W)}for(let W of S0.activeAgents)if(W.memory){let XZ=$Z(W.agentType,W.memory);$.push({label:`Open ${DZ.bold(W.agentType)} agent memory`,value:`${f}${XZ}`,description:`${W.memory} scope`})}}N.push(...$);let h;if(Z[2]!==N)h=QZ&&N.some(Jq)?QZ:N[0]?.value||"",Z[2]=N,Z[3]=h;else h=Z[3];let GZ=h,[g,O0]=k.useState(T),[I,E0]=k.useState(uZ),[B]=k.useState(T),V=CZ(Zq),[D,F0]=k.useState(null),u;if(Z[4]!==B)u=()=>{if(!B)return;dZ().then(F0)},Z[4]=B,Z[5]=u;else u=Z[5];let d;if(Z[6]!==V||Z[7]!==B)d=[B,V],Z[6]=V,Z[7]=B,Z[8]=d;else d=Z[8];k.useEffect(u,d);let m;if(Z[9]!==V||Z[10]!==D)m=V?"running":D===null?"":D===0?"never":`last ran ${_Z(new Date(D))}`,Z[9]=V,Z[10]=D,Z[11]=m;else m=Z[11];let l=m,[H,BZ]=k.useState(null),G=H!==null,O=B?1:0,n;if(Z[12]!==g)n=function(){let W=!g;NZ("userSettings",{autoMemoryEnabled:W}),O0(W),LZ("tengu_auto_memory_toggled",{enabled:W})},Z[12]=g,Z[13]=n;else n=Z[13];let HZ=n,s;if(Z[14]!==I)s=function(){let W=!I;NZ("userSettings",{autoDreamEnabled:W}),E0(W),LZ("tengu_auto_dream_toggled",{enabled:W})},Z[14]=I,Z[15]=s;else s=Z[15];let KZ=s;hZ();let r;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))r={context:"Confirmation"},Z[16]=r;else r=Z[16];y("confirm:no",Q,r);let i;if(Z[17]!==H||Z[18]!==KZ||Z[19]!==HZ)i=()=>{if(H===0)HZ();else if(H===1)KZ()},Z[17]=H,Z[18]=KZ,Z[19]=HZ,Z[20]=i;else i=Z[20];let a;if(Z[21]!==G)a={context:"Confirmation",isActive:G},Z[21]=G,Z[22]=a;else a=Z[22];y("confirm:yes",i,a);let o;if(Z[23]!==O)o=()=>{BZ((J)=>J!==null&&J<O?J+1:null)},Z[23]=O,Z[24]=o;else o=Z[24];let t;if(Z[25]!==G)t={context:"Select",isActive:G},Z[25]=G,Z[26]=t;else t=Z[26];y("select:next",o,t);let e;if(Z[27]===Symbol.for("react.memo_cache_sentinel"))e=()=>{BZ(e0)},Z[27]=e;else e=Z[27];let ZZ;if(Z[28]!==G)ZZ={context:"Select",isActive:G},Z[28]=G,Z[29]=ZZ;else ZZ=Z[29];y("select:previous",e,ZZ);let kZ=H===0,VZ=g?"on":"off",E;if(Z[30]!==VZ)E=K(A,{children:["Auto-memory: ",VZ]}),Z[30]=VZ,Z[31]=E;else E=Z[31];let F;if(Z[32]!==kZ||Z[33]!==E)F=Y(AZ,{isFocused:kZ,children:E}),Z[32]=kZ,Z[33]=E,Z[34]=F;else F=Z[34];let v;if(Z[35]!==I||Z[36]!==l||Z[37]!==H||Z[38]!==V||Z[39]!==B)v=B&&Y(AZ,{isFocused:H===1,styled:!1,children:K(A,{color:H===1?"suggestion":void 0,children:["Auto-dream: ",I?"on":"off",l&&K(A,{dimColor:!0,children:[" · ",l]}),!V&&I&&Y(A,{dimColor:!0,children:" · /dream to run"})]})}),Z[35]=I,Z[36]=l,Z[37]=H,Z[38]=V,Z[39]=B,Z[40]=v;else v=Z[40];let x;if(Z[41]!==F||Z[42]!==v)x=K(S,{flexDirection:"column",marginBottom:1,children:[F,v]}),Z[41]=F,Z[42]=v,Z[43]=x;else x=Z[43];let w;if(Z[44]!==U)w=(J)=>{if(J.startsWith(f)){let W=J.slice(f.length);i0(W,{recursive:!0}).catch(t0).then(()=>gZ(W));return}QZ=J,U(J)},Z[44]=U,Z[45]=w;else w=Z[45];let j;if(Z[46]!==O)j=()=>BZ(O),Z[46]=O,Z[47]=j;else j=Z[47];let M;if(Z[48]!==GZ||Z[49]!==N||Z[50]!==Q||Z[51]!==w||Z[52]!==j||Z[53]!==G)M=Y(mZ,{defaultFocusValue:GZ,options:N,isDisabled:G,onChange:w,onCancel:Q,onUpFromFirstItem:j}),Z[48]=GZ,Z[49]=N,Z[50]=Q,Z[51]=w,Z[52]=j,Z[53]=G,Z[54]=M;else M=Z[54];let qZ;if(Z[55]!==x||Z[56]!==M)qZ=K(S,{flexDirection:"column",width:"100%",children:[x,M]}),Z[55]=x,Z[56]=M,Z[57]=qZ;else qZ=Z[57];return qZ}function t0(){}function e0(q){return q!==null&&q>0?q-1:q}function Zq(q){return Object.values(q.tasks).some(qq)}function qq(q){return q.type==="dream"&&q.status==="running"}function Jq(q){return q.value===QZ}function Qq(q){return q.agentDefinitions}function Wq(q){return{...q,exists:!0}}function zq(q){return q.type!=="AutoMem"&&q.type!=="TeamMem"}var lZ,k,MZ,QZ,f="__open_folder__";var sZ=C(()=>{y0();D0();u0();bZ();g0();fZ();P0();l0();n0();m0();h0();d0();rZ();TZ();p0();f0();EZ();c0();r0();s0();jZ();_();lZ=WZ(cZ(),1),k=WZ(pZ(),1),MZ=(yZ(),_0($0))});import{homedir as Gq}from"os";import{relative as Bq}from"path";function aZ(q){let Z=Gq(),U=iZ(),Q=q.startsWith(Z)?"~"+q.slice(Z.length):null,z=q.startsWith(U)?"./"+Bq(U,q):null;if(Q&&z)return Q.length<=z.length?Q:z;return Q||z||q}var Yq;var oZ=C(()=>{bZ();Uq();_();Yq=WZ(cZ(),1)});function tZ(q){return q.replace(Hq,"")}function eZ(q,Z){let U=tZ(q),Q=Z===null?null:tZ(Z),z=Math.round(J0/Kq),X=Q!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",L=Q!==null?`
2
- ## Team memory
3
-
4
- Also tidy the team memory directory: \`${Q}\`
5
-
6
- - Apply the exact same orient → identify → merge → update-index steps inside \`${Q}\` (its index is \`${Q}/${YZ}\`)
7
- - The team index may have its own structure beyond bare index lines — a \`# Team Memory\` header, an intro blockquote, \`## Section\` groupings. **Preserve all of it**: only touch the individual index lines for files you deleted or renamed, exactly as in the private index. Never reformat, reorder, or flatten the team index's sections.
8
- - **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${U}\` and \`${Q}\`, do not merge a pair that spans the two, and do not "promote" a private memory into team — that is a deliberate user decision, not tidy's job.
9
- - Files you change or delete here propagate to the team via automatic sync — another reason to stay strictly conservative.
10
- `:"";return`# Memory Tidy: conservative duplicate merge
11
-
12
- You are tidying the memory directory — a **conservative** pass that merges duplicate memory files and updates the index. This is NOT a dream/consolidation: do not look at transcripts, do not create new memories, do not reorganize by topic, and do not rewrite the content of files that are not duplicates.
13
-
14
- Memory directory: \`${U}\`
15
- ${Q0}
16
- ${L}
17
- ---
18
-
19
- ## Step 1 — Orient
20
-
21
- - Read \`${U}/${YZ}\` to see the current index
22
- - Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${X})
23
-
24
- ## Step 2 — Identify duplicates
25
-
26
- Look for pairs or groups of files that record the **same fact**:
27
-
28
- - Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
29
- - Near-identical \`description\` frontmatter
30
- - Heavily overlapping body content
31
-
32
- Two files that merely **partially overlap** are NOT duplicates: if file A covers facts X+Y and file B covers X+Z, each holds a distinct fact — leave both alone. Only files where one is (nearly) fully redundant with the other qualify.
33
-
34
- If you are not confident two files describe the same fact, they are NOT duplicates — leave both untouched and list them under "ambiguous pairs" in your report.
35
-
36
- ## Step 3 — Merge (conservatively)
37
-
38
- For each confirmed duplicate group:
39
-
40
- 1. Pick the survivor: prefer the file with the more complete frontmatter and richer content; on a tie prefer the older file (check mtime with \`ls -l\` — its name is more likely already referenced elsewhere).
41
- 2. Fold the redundant file's content into the survivor. When the two files **conflict factually**, keep BOTH facts (union) and note the contradiction in your report — never silently pick one side.
42
- 3. Keep the survivor's frontmatter \`type\`; refresh its \`description\` only if the merged content demands it. If a file's frontmatter is malformed, skip that file entirely and note it in the report.
43
- 4. Delete the redundant file with \`rm\`. The user will see a permission prompt for each deletion — that is intentional, it is their chance to veto a merge.
44
-
45
- Hard rules:
46
- - Never merge across the private ↔ team boundary.
47
- - Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
48
- - Never create new memory files, and never touch files outside the memory directories.
49
-
50
- ## Step 4 — Update the index (minimal edits, NOT a rewrite)
51
-
52
- Edit \`${U}/${YZ}\` (and the team index if applicable) **in place, surgically**:
53
-
54
- - Remove only the lines pointing at files you deleted
55
- - Update the survivor's line only if its title/hook changed
56
- - Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
57
- - Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
58
- - The index must stay under ${q0} lines AND under ~${z}KB — it's an index, never write memory content into it
59
-
60
- ## Step 5 — Report
61
-
62
- Finish with a brief summary:
63
-
64
- - **Merged**: which files combined into which survivor (X + Y → Z)
65
- - **Deleted**: files removed
66
- - **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
67
- - **Conflicts noted**: factual contradictions you kept as union
68
- - **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
69
-
70
- If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var Hq,Kq=1024;var Z0=C(()=>{kq();Hq=/[/\\]+$/});function U0(){if(W0())return z0();return null}var Y0=C(()=>{yZ()});function G0(q){return q.trim()==="tidy"?"tidy":null}function B0(q){if(!T())return q("Memory tidy unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDE_CODE_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;return q("Running memory tidy — merging duplicate memories…",{display:"system",shouldQuery:!0,metaMessages:[eZ(zZ(),U0())]}),null}var H0=C(()=>{fZ();Z0();Y0()});import{mkdir as Cq,writeFile as Aq}from"fs/promises";function bq({onDone:q}){let Z=async(Q)=>{try{if(Q.includes(p()))await Cq(p(),{recursive:!0});try{await Aq(Q,"",{encoding:"utf8",flag:"wx"})}catch(c){if(K0(c)!=="EEXIST")throw c}await L0(Q);let z="default",X="";if(process.env.VISUAL)z="$VISUAL",X=process.env.VISUAL;else if(process.env.EDITOR)z="$EDITOR",X=process.env.EDITOR;let L=z!=="default"?`Using ${z}="${X}".`:"",b=L?`> ${L} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";q(`Opened memory file at ${aZ(Q)}
71
-
72
- ${b}`,{display:"system"})}catch(z){k0(z),q(`Error opening memory file: ${z}`)}},U=()=>{q("Cancelled memory editing",{display:"system"})};return Y(X0,{title:"Memory",onCancel:U,color:"remember",children:K(S,{flexDirection:"column",children:[Y(N0.Suspense,{fallback:null,children:Y(nZ,{onSelect:Z,onCancel:U})}),Y(S,{marginTop:1,children:K(A,{dimColor:!0,children:["Learn more: ",Y(V0,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var N0,OJ=async(q,Z,U)=>{if(G0(U)==="tidy")return B0(q);return C0(),await UZ(),Y(bq,{onDone:q})};var Iq=C(()=>{Lq();sZ();oZ();bZ();rZ();TZ();Vq();Xq();Nq();H0();_();N0=WZ(pZ(),1)});Iq();export{OJ as call};
@@ -1,2 +0,0 @@
1
- import"./cli-1.0.17-6hxscz8d.mjs";import{eh as m,fh as Rb,gh as _,hh as Ub}from"./cli-1.0.17-7ngvd609.mjs";import"./cli-1.0.17-rq8fyqe6.mjs";import{$x as v,ZP as t,_P as Wb,_x as W,by as Qb,ex as i,fx as r,gx as Pb}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import{lZ as Nb}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import"./cli-1.0.17-w335kv69.mjs";import"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import{V3 as Y,X3 as V}from"./cli-1.0.17-dfb76sxr.mjs";import{Y3 as Kb}from"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-fgbyxz18.mjs";import{E6 as M,J6 as g,M6 as I,O5 as w,P5 as x,U5 as X,Y6 as Hb,Z5 as A,b7 as p,d7 as Jb,g6 as Bb,q6 as f,r6 as Eb,s6 as $,t6 as Gb}from"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import{b9 as Q,c9 as e}from"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{Hea as u,Wea as bb,Xfa as C,bfa as L,bga as qb,pfa as h,qfa as S,sfa as kb}from"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import{Nia as F,Oia as D,Pia as zb}from"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import{_ia as Z,bja as o}from"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as c,ksa as s}from"./cli-1.0.17-h101c40b.mjs";function Xb(k){let b=a.c(17),{onDone:z}=k,B=W(Ib),q=W(yb),G=W(Zb),J=v(),E;if(b[0]!==B||b[1]!==z)E=function(){Z("tengu_model_command_menu",{action:"cancel"});let N=y(B);z(`Kept model as ${Q.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=E;else E=b[2];let R=E,H;if(b[3]!==G||b[4]!==B||b[5]!==z||b[6]!==J)H=function(N,O){Z("tengu_model_command_menu",{action:N,from_model:B,to_model:N}),J((n)=>({...n,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${Q.bold(y(N))}`;if(O!==void 0)P=P+` with ${Q.bold(O)} effort`;let T=void 0;if(w()){if(A(),!X(N)&&G)J(Yb),T=!1;else if(X(N)&&x()&&G)P=P+" · Fast mode ON",T=!0}if(_(N,T===!0,I()))P=P+" · Billed as extra usage";if(T===!1)P=P+" · Fast mode OFF";z(P)},b[3]=G,b[4]=B,b[5]=z,b[6]=J,b[7]=H;else H=b[7];let U=H,K;if(b[8]!==G||b[9]!==B)K=w()&&G&&X(B)&&x(),b[8]=G,b[9]=B,b[10]=K;else K=b[10];let j;if(b[11]!==R||b[12]!==U||b[13]!==B||b[14]!==q||b[15]!==K)j=Y(m,{initial:B,sessionModel:q,onSelect:U,onCancel:R,isStandaloneCommand:!0,showFastModeNotice:K}),b[11]=R,b[12]=U,b[13]=B,b[14]=q,b[15]=K,b[16]=j;else j=b[16];return j}function Yb(k){return{...k,fastMode:!1}}function Zb(k){return k.fastMode}function yb(k){return k.mainLoopModelForSession}function Ib(k){return k.mainLoopModel}function jb({args:k,onDone:b}){let z=W((G)=>G.fastMode),B=v(),q=k==="default"?null:k;return l.useEffect(()=>{async function G(){if(q&&!$(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&wb(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&&xb(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){J(null);return}if(Tb(q)){J(q);return}try{let{valid:E,error:R}=await t(q);if(E)J(q);else b(R||`Model '${q}' not found`,{display:"system"})}catch(E){b(`Failed to validate model: ${E.message}`,{display:"system"})}}function J(E){B((K)=>({...K,mainLoopModel:E,mainLoopModelForSession:null}));let R=E?Q.dim(" · for this project"):"",H=`Set model to ${Q.bold(y(E))}${R}`,U=void 0;if(w()){if(A(),!X(E)&&z)B((K)=>({...K,fastMode:!1})),U=!1;else if(X(E)&&z)H+=" · Fast mode ON",U=!0}if(_(E,U===!0,I()))H+=" · Billed as extra usage";if(U===!1)H+=" · Fast mode OFF";b(H)}G()},[q,b,B]),null}function Tb(k){return f.includes(k.toLowerCase().trim())}function wb(k){let b=k.toLowerCase();return!i()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function xb(k){let b=k.toLowerCase();return!r()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function Cb(k){let{onDone:b}=k,z=W(_b),B=W(vb),q=W(Ab),G=y(z),J=q!==void 0?` (effort: ${q})`:"",E=u(),H=(E.activeModelForProject?E.activeModelForProjectProfileId===void 0||E.activeModelForProjectProfileId===L()?.id:!1)?Q.dim(" (project)"):"";if(B)b(`Current model: ${Q.bold(y(B))} (session override from plan mode)
2
- Base model: ${G}${H}${J}`);else b(`Current model: ${G}${H}${J}`);return null}function Ab(k){return k.effortValue}function vb(k){return k.mainLoopModelForSession}function _b(k){return k.mainLoopModel}function Ob(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 Vb(){if(!C()?.startsWith("openai:"))return;try{let k=await p();if(k.length===0)return;let b=h();if(Ob(b,k))return;S(k)}catch{}}function y(k){let b=g(k??M());return k===null?`${b} (default)`:b}var a,l,lb=async(k,b,z)=>{if(z=z?.trim()||"",D.includes(z))return Z("tengu_model_command_inline_help",{args:z}),Y(Cb,{onDone:k});if(F.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(jb,{args:z,onDone:k});if(C()?.startsWith("openai:"))Vb();return Y(Xb,{onDone:k})};var cb=s(()=>{e();Rb();zb();o();Qb();bb();Ub();Bb();Eb();Pb();Jb();kb();Hb();Gb();Wb();qb();V();a=c(Nb(),1),l=c(Kb(),1)});cb();export{lb as call};
@@ -1 +0,0 @@
1
- import{A6 as g,B6 as h,C6 as i,D6 as j,E6 as k,F6 as l,G6 as m,H6 as n,I6 as o,J6 as p,K6 as q,L6 as r,M6 as s,N6 as t,O6 as u,P6 as v,Q6 as w,R6 as x,S6 as y,T6 as z,U6 as A,V6 as B,W6 as C,X6 as D,Y6 as E,u6 as a,v6 as b,w6 as c,x6 as d,y6 as e,z6 as f}from"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import"./cli-1.0.17-h101c40b.mjs";E();export{y as resolveSkillModelOverride,t as renderModelSetting,v as renderModelName,p as renderDefaultModelSetting,x as parseUserSpecifiedModel,C as normalizeModelStringForAPI,D as modelRejectsSamplingParams,A as modelDisplayString,s as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,z as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,w as getPublicModelName,u as getPublicModelDisplayName,r as getOpus5PricingSuffix,q as getOpus46PricingSuffix,B as getMarketingNameForModel,e as getMainLoopModel,h as getDefaultSonnetModel,g as getDefaultOpusModel,k as getDefaultMainLoopModelSetting,l as getDefaultMainLoopModel,i as getDefaultHaikuModel,o as getClaudeAiUserDefaultModelDescription,n as getCanonicalName,f as getBestModel,m as firstPartyNameToCanonical};
@@ -1,12 +0,0 @@
1
- import{ara as w,bra as C,cra as bQ,dra as A,kra as r,lra as o,mra as kQ,nra as JQ,ora as W,pra as i,qra as _,rra as BQ,ura as WQ}from"./cli-1.0.17-2jt2w5sh.mjs";import{ksa as b}from"./cli-1.0.17-h101c40b.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 L 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,V=0;for(;;){let Y;try{Y=await R.realpath($)}catch{let X=!1;try{X=(await R.lstat($)).isSymbolicLink()}catch{}if(X){if(++V>40)throw new W(`path ${JSON.stringify(z)} has too many levels of symbolic links`);$=L.resolve(L.dirname($),await R.readlink($));continue}let q=L.dirname($);if(q===$)return z;Q.push(L.basename($)),$=q;continue}return Q.length?L.join(Y,...Q.reverse()):Y}}async function a(z,Q,$){let V=$?.allowOutside??!1,Y=await DQ(L.resolve(z)),X=L.resolve(Y,Q);if(V)return X;let q=await UQ(X);if(q!==Y&&!q.startsWith(Y+L.sep))throw new W(`path ${JSON.stringify(Q)} escapes workdir`);return q}async function m(z,Q){let $=L.dirname(z),V=L.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(X){if(Y)await Y.close().catch(()=>{});throw await R.unlink(V).catch(()=>{}),X}}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(()=>{i()});import*as O from"node:fs/promises";import*as t 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($),X=U.resolve(z.workdir,"skills"),q=[];for(let K of Y.agent.skills)try{let Z=await s(Q,K.skill_id,K.version),H=await Q.beta.skills.versions.retrieve(Z,{skill_id:K.skill_id}),J=U.basename(H.name.trim());if(J===""||J==="."||J==="..")J=K.skill_id;let k=U.resolve(X,J);if(k!==X&&!k.startsWith(X+U.sep)){V.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:H.name});continue}let v=await Q.beta.skills.versions.download(Z,{skill_id:K.skill_id});await O.rm(k,{recursive:!0,force:!0}),await O.mkdir(k,{recursive:!0,mode:B}),q.push(k),await e(v,k),V.info("downloaded skill",{component:"agent-tool-context",skill_id:K.skill_id,version:Z,dest:k})}catch(Z){V.warn("failed to download skill",{component:"agent-tool-context",skill_id:K.skill_id,error:String(Z)})}return async()=>{for(let K of q)await O.rm(K,{recursive:!0,force:!0}).catch((Z)=>{V.warn("failed to clean up skill",{component:"agent-tool-context",dest:K,error:String(Z)})})}}async function s(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 X=Y[0];if(Q===void 0)Q=X;else if(X!==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),t.createWriteStream($));let V=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`);try{let Y=await FQ($,4),X=Y.length>=4&&Y[0]===80&&Y[1]===75&&Y[2]===3&&Y[3]===4,q=X?"unzip":"tar",K=await h(q,X?["-Z1",$]:["-tf",$]);RQ(K),IQ(await h(q,X?["-Z",$]:["-tvf",$]));let Z=GQ(K);await O.mkdir(V,{recursive:!0,mode:B}),await h(q,X?["-oq",$,"-d",V]:["-xf",$,"-C",V]);let H=Z?U.join(V,Z):V;for(let J of await O.readdir(H))await O.rename(U.join(H,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 D 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 u(z,Q){return a(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__`,X=`${Y.slice(0,8)}''${Y.slice(8)}`,q=`{ ${z}
5
- } </dev/null 2>&1; printf '\\n${X}%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,E;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;E=()=>S(new A("bash command aborted")),V.addEventListener("abort",E,{once:!0})})])}finally{if(f)clearTimeout(f);if(E&&V)V.removeEventListener("abort",E);w(this,I,null,"f")}}let K=C(this,y,"f").indexOf(Y);if(K<0)throw new A("bash session terminated");let H=C(this,y,"f").slice(K+Y.length).match(/^(-?\d+)/),J=H?parseInt(H[1],10):-1,k=C(this,y,"f").slice(0,K).replace(uQ,"").replace(/\n+$/,"");if(C(this,x,"f"))k=`[output truncated]
7
- ${k}`;return{output:k,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:X},q)=>{let K=$,Z=_();$=Z.promise;try{await K}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:H,exitCode:J}=await Q.exec(V,{timeoutMs:X??qQ,signal:q?.signal});if(J!==0)throw new W(H||`exit ${J}`);return H}catch(H){if(H instanceof W)throw H;throw Q.close(),Q=void 0,new W(`bash: ${H instanceof Error?H.message:String(H)}`)}}finally{Z.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 u(z,Q),Y;try{let J=await D.stat(V);if(!J.isFile())throw new W(`read: ${Q} is not a regular file`);let k=KQ(z.maxFileBytes);if(k!==null&&J.size>k)throw new W(`read: ${Q} is ${J.size} bytes, exceeds ${k}-byte limit. Use bash (head/tail/sed) to read a slice.`);Y=await D.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[X,q]=$,K=Y.split(`
8
- `),Z=Math.max(0,X-1),H=q>0?q:K.length;return K.slice(Z,H).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 u(z,Q);try{await D.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 X=await u(z,Q),q;try{let H=await D.stat(X);if(!H.isFile())throw new W(`edit: ${Q} is not a regular file`);let J=KQ(z.maxFileBytes);if(J!==null&&H.size>J)throw new W(`edit: ${Q} is ${H.size} bytes, exceeds ${J}-byte limit. Use bash (sed/awk) to edit a large file.`);q=await D.readFile(X,"utf8")}catch(H){if(H instanceof W)throw H;throw new W(`edit: ${j(H,Q)}`)}let K=q.split($).length-1;if(K===0)throw new W(`edit: old_string not found in ${Q}`);let Z;if(Y)Z=q.split($).join(V);else{if(K>1)throw new W(`edit: old_string appears ${K} times in ${Q} (must be unique)`);Z=q.replace($,()=>V)}try{await m(X,Z)}catch(H){throw new W(`edit: write: ${j(H,Q)}`)}return`edited ${Q} (${Y?K: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 u(z,$);if(!z.unrestrictedPaths&&Y.split(/[\\/]/).includes(".."))throw new W('glob: ".." is not permitted in the pattern');let X=z.unrestrictedPaths?V:await D.realpath(V).catch(()=>V),q=[];try{for await(let K of EQ(Y,{cwd:V,withFileTypes:!0,exclude:(Z)=>Z.name===".git"||Z.name==="node_modules"})){if(!K.isFile())continue;let Z=N.join(K.parentPath,K.name);if(!z.unrestrictedPaths){let J;try{J=await D.realpath(Z)}catch{continue}if(!_Q(X,J))continue}let H=0;try{H=(await D.stat(Z)).mtimeMs}catch{}q.push({path:Z,mtime:H})}}catch(K){throw new W(`glob: ${K instanceof Error?K.message:String(K)}`)}if(q.length===0)return"no matches";return q.sort((K,Z)=>Z.mtime-K.mtime),q.slice(0,PQ).map((K)=>K.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 u(z,$);let X=await iQ();return X?hQ(X,Q,Y,V?.signal):pQ(Q,Y,V?.signal)}})}function hQ(z,Q,$,V){return new Promise((Y,X)=>{let q=c.spawn(z,["-n","--no-heading","-e",Q,"--",$],{...V?{signal:V}:{}}),K="",Z="",H=!1;q.stdout.on("data",(J)=>{if(H)return;if(K+=J,K.length>P)H=!0,K=K.slice(0,P),q.kill("SIGKILL")}),q.stderr.on("data",(J)=>Z+=J),q.on("close",(J)=>{if(V?.aborted)return X(new W("grep: aborted"));if(H)return Y(K+`
11
- [output truncated at ${P} bytes]`);if(J===0)return Y(K);if(J===1)return Y("no matches");X(new W(`grep: rg failed: ${Z||`exit ${J}`}`))}),q.on("error",(J)=>{if(V?.aborted)return X(new W("grep: aborted"));X(new W(`grep: rg failed: ${J.message}`))})})}async function pQ(z,Q,$){let V;try{V=new RegExp(z)}catch(Z){throw new W(`grep: invalid regex: ${Z instanceof Error?Z.message:String(Z)}`)}let Y=[],X=P,q=(Z)=>{if(X-=Z.length+1,X<0)return Y.push(`[output truncated at ${P} bytes]`),!1;return Y.push(Z),!0};if((await D.stat(Q).catch(()=>null))?.isFile())await zQ(Q,V,q);else await nQ(Q,"",(Z)=>zQ(N.join(Q,Z),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}),X=0;try{for await(let q of Y){if(X++,q.length>xQ)continue;if(Q.test(q)&&!$(`${z}:${X}:${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 X(q,K){if(K>cQ)return!0;if(V?.aborted)return!1;let Z;try{Z=await D.readdir(N.join(z,q),{withFileTypes:!0})}catch{return!0}for(let H of Z){if(H.name===".git"||H.name==="node_modules")continue;if(Y--<=0)return!1;if(V?.aborted)return!1;let J=q?N.join(q,H.name):H.name;if(H.isDirectory()){if(!await X(J,K+1))return!1}else if(H.isFile()){if(await $(J)===!1)return!1}}return!0}await X(Q,0)}async function iQ(){let z=(process.env.PATH??"").split(N.delimiter);for(let Q of z){let $=N.join(Q,"rg");try{return await D.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,uQ,EQ,cQ=40,lQ=50000;var aQ=b(()=>{bQ();r();i();n();BQ();d();QQ();uQ=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,EQ=D.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()}}});aQ();export{AQ as setupSkills,s as resolveSkillVersion,u 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{Qia as a,Ria as b,Sia as c,Tia as d,Uia as e,Via as f,Wia as g,Xia as h,Yia as i,Zia as j}from"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-h101c40b.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{wi as ZD,xi as Q2,yi as QD}from"./cli-1.0.17-hc0snvws.mjs";import{Bi as l1,Di as W$}from"./cli-1.0.17-y24xrbmn.mjs";import{Cq as e1,Dq as H2,Fk as U1,Gk as e2,Gr as Y$,Hr as n1,Ir as K$,Jr as V1,Kr as ED,Lr as y1,Mq as W2,Mr as K2,Nr as z2,Or as o1,Pr as O2,Qr as j2,Rr as a1,Sr as z$,_q as J2,aR as P2,bR as bD,cR as r1,dR as TD,er as J$,fr as D1,kj as L1,lj as tD,mj as a,mr as kD,nj as m1,oj as d1,pj as p1,qj as eD,rj as f1,sq as $2,tq as $$,uq as c1,vq as i1,wq as _1,xq as Z$,xr as Y2}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import{D2 as D$,z2 as D2}from"./cli-1.0.17-w335kv69.mjs";import{F2 as A1,J2 as qD}from"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import"./cli-1.0.17-dfb76sxr.mjs";import"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import{e4 as Z2,f4 as Q$}from"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-fgbyxz18.mjs";import{N4 as sD,T4 as t2}from"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import{f9 as oD,g9 as aD,h9 as rD,n9 as u1,o9 as gD,p9 as hD}from"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{Hfa as dD,Kfa as pD,Lfa as r2,Rfa as h1,Sfa as cD,Tfa as iD,Vfa as k1,Wfa as lD,Zfa as nD,bga as s2,ega as K1,hga as $D,vfa as DD,wfa as M2}from"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-hb445h5r.mjs";import{bka as b,eka as H1}from"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import{Oka as t,Qka as Y1,Yka as F1}from"./cli-1.0.17-1d9ccn16.mjs";import{Bqa as o2,Cma as g1}from"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import{era as X1,ura as a2}from"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{ksa as y}from"./cli-1.0.17-h101c40b.mjs";function J1(D,$=!0){let Z=e1(D);if(Z.type==="object"&&Z.properties){let Q=Z.properties,W=Array.isArray(Z.required)?Z.required:[],J={};for(let[K,j]of Object.entries(Q))J[K]=J1(j,$);if(Z.properties=J,$)Z.required=W.filter((K)=>(K in J)),Z.additionalProperties=!1;else Z.required=W.filter((K)=>(K in J))}if("items"in Z)if(Array.isArray(Z.items))Z.items=Z.items.map((Q)=>J1(Q,$));else Z.items=J1(Z.items,$);for(let Q of["anyOf","oneOf","allOf"])if(Q in Z&&Array.isArray(Z[Q]))Z[Q]=Z[Q].map((W)=>J1(W,$));return Z}function S1(D){let Z=!a()&&!t(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return D.filter((Q)=>Q.name!=="ToolSearchTool").filter((Q)=>!Q.type||Q.type==="function"||Q.type==="custom").map((Q)=>{let W=Q.description??"";if(Q.input_schema){let j=t1.get(Q.input_schema);if(j&&j.name===Q.name&&j.description===W&&j.strict===Z)return j.result}N2.computes++;let J={...Q.input_schema??{type:"object",properties:{}}};if(Q.name==="Agent"&&J.properties){let j=J.properties;if(!Array.isArray(J.required))J.required=[];let Y=J.required;for(let O of["message","subagent_type"])if(O in j&&!Y.includes(O))Y.push(O)}let K={type:"function",function:{name:Q.name,description:W,parameters:J1(J,Z)}};if(Q.input_schema)t1.set(Q.input_schema,{name:Q.name,description:W,strict:Z,result:K});return K})}var t1,N2;var R1=y(()=>{F1();H2();f1();t1=new WeakMap,N2={computes:0}});function I2(){if(Y1())return;try{return DD().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function WD(){if(K1()?.transport!=="gemini")return;let D=ZD(process.env);if(D&&D!=="access-token")return;if(Y1())return;I2()}var JD=y(()=>{$D();F1();QD();M2()});import{randomUUID as A2}from"crypto";function L2(){return A2()}function YD(D,$){let Z=L2(),Q=Date.now();return b(JSON.stringify({type:"api_call_start",correlationId:Z,provider:D,model:$,timestamp:Q}),{level:"debug"}),{correlationId:Z,startTime:Q}}function KD(D,$,Z,Q,W,J,K,j,Y,O){let X=Date.now()-$,G={type:Q==="error"?"api_call_error":"api_call_end",correlationId:D,model:Z,duration_ms:X,status:Q,tokens_in:W,tokens_out:J,streaming:K};if(j!==void 0)G.first_token_ms=j;if(Y!==void 0)G.total_chunks=Y;if(O)G.error=O;b(JSON.stringify(G),{level:Q==="error"?"error":"debug"})}var zD=y(()=>{H1()});function OD(D){return D.trim().length===0}function U2(D){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test(D)}function _2(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function w2(D){return VD[D]??null}function XD(D){return D in VD}function jD(D,$){let Z=w2(D);if(!Z)return null;return{[Z]:$}}function e(D,$){if($===void 0)return{};try{let Z=JSON.parse($);if(_2(Z))return Z;if(typeof Z==="string"&&!OD(Z))return jD(D,Z)??Z;return Z}catch{if(OD($)||U2($))return{};return jD(D,$)??{}}}var VD;var v1=y(()=>{VD={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function z1(D){if(!D)return{};let $={};for(let[Z,Q]of Object.entries(D)){let W=Z.toLowerCase();if(W.startsWith("x-anthropic")||W.startsWith("anthropic-")||W.startsWith("x-claude")||W==="x-app"||W==="x-client-app"||W==="authorization"||W==="x-api-key"||W==="api-key")continue;$[Z]=Q}return $}function GD(D){let $=D.headers.get("retry-after");return $?` (Retry-After: ${$})`:""}var PD=()=>{};function FD(D){return new Promise(($)=>setTimeout($,D))}function O1(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var B1=()=>{};function f2(D){let $=HD.get(D);if($!==void 0)return $;MD.toolResultComputes++;let Z=R2(D.content,D.is_error);return HD.set(D,Z),Z}function S2(D){if(typeof D==="string")return D;if(D===null||D===void 0)return"{}";if(typeof D!=="object")return JSON.stringify(D);let $=ND.get(D);if($!==void 0)return $;MD.toolUseArgumentsComputes++;let Z=JSON.stringify(D);return ND.set(D,Z),Z}function q1(D){if(!D)return"";if(typeof D==="string")return D;if(Array.isArray(D))return D.map(($)=>$.type==="text"?$.text??"":"").join(`
2
-
3
- `);return String(D)}function R2(D,$){if(typeof D==="string")return $?`Error: ${D}`:D;if(!Array.isArray(D)){let W=JSON.stringify(D??"");return $?`Error: ${W}`:W}let Z=[];for(let W of D){if(W?.type==="text"&&typeof W.text==="string"){Z.push({type:"text",text:W.text});continue}if(W?.type==="image"){let J=W.source;if(J?.type==="url"&&J.url)Z.push({type:"image_url",image_url:{url:J.url}});else if(J?.type==="base64"&&J.media_type&&J.data)Z.push({type:"image_url",image_url:{url:`data:${J.media_type};base64,${J.data}`}});continue}if(typeof W?.text==="string")Z.push({type:"text",text:W.text})}if(Z.length===0)return"";if(Z.length===1&&Z[0].type==="text"){let W=Z[0].text??"";return $?`Error: ${W}`:W}if(Z.every((W)=>W.type==="text")){let W=Z.map((J)=>J.text??"").join(`
4
-
5
- `);return $?`Error: ${W}`:W}if($&&Z[0]?.type==="text")Z[0]={...Z[0],text:`Error: ${Z[0].text??""}`};else if($)Z.unshift({type:"text",text:"Error:"});return Z}function N1(D){if(typeof D==="string")return D;if(!Array.isArray(D))return String(D??"");let $=[];for(let Q of D)switch(Q.type){case"text":$.push({type:"text",text:Q.text??""});break;case"image":{let W=Q.source;if(W?.type==="base64")$.push({type:"image_url",image_url:{url:`data:${W.media_type};base64,${W.data}`}});else if(W?.type==="url")$.push({type:"image_url",image_url:{url:W.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(Q.text)$.push({type:"text",text:Q.text})}if($.length===0)return"";if($.length===1&&$[0].type==="text")return $[0].text??"";if($.every((Q)=>Q.type==="text"))return $.map((Q)=>Q.text??"").join(`
6
-
7
- `);return $}function ID(D,$,Z){let Q=Z?.preserveReasoningContent===!0,W=[],J=new Set,K=new Set;for(let O of D){let G=(O.message??O).content;if(Array.isArray(G)){for(let N of G)if(N.type==="tool_result"&&N.tool_use_id)K.add(N.tool_use_id)}}let j=q1($);if(j)W.push({role:"system",content:j});for(let O=0;O<D.length;O++){let X=D[O],G=O===D.length-1,N=X.message??X,I=N.role??X.role,P=N.content;if(I==="user")if(Array.isArray(P)){let M=P.filter((H)=>H.type==="tool_result"),A=P.filter((H)=>H.type!=="tool_result");for(let H of M){let w=H.tool_use_id??"unknown";if(J.has(w))W.push({role:"tool",tool_call_id:w,content:f2(H)});else b(`Dropping orphan tool_result for ID: ${w} to prevent API error`)}if(A.length>0)W.push({role:"user",content:N1(A)})}else W.push({role:"user",content:N1(P)});else if(I==="assistant")if(Array.isArray(P)){let M=P.filter((F)=>F.type==="tool_use"),A=P.find((F)=>F.type==="thinking"),H=P.filter((F)=>F.type!=="tool_use"&&F.type!=="thinking"),w={role:"assistant",content:(()=>{let F=N1(H);return typeof F==="string"?F:Array.isArray(F)?F.map((L)=>L.text??"").join(""):""})()};if(Q){let F=A?.thinking;if(typeof F==="string"&&F.trim().length>0)w.reasoning_content=F;else w.reasoning_content=""}if(M.length>0){let F=M.map((L)=>{let T=L.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!K.has(T)&&!G)return null;J.add(T);let x={id:T,type:"function",function:{name:L.name??"unknown",arguments:S2(L.input)}};if(L.extra_content)x.extra_content={...L.extra_content};if(a()){let r=L.signature??A?.signature,p=x.extra_content?.google??{};x.extra_content={...x.extra_content,google:{...p,thought_signature:r??"skip_thought_signature_validator"}}}return x}).filter((L)=>L!==null);if(F.length>0)w.tool_calls=F}if(w.content||w.tool_calls?.length)W.push(w)}else{let M={role:"assistant",content:(()=>{let A=N1(P);return typeof A==="string"?A:Array.isArray(A)?A.map((H)=>H.text??"").join(""):""})()};if(M.content)W.push(M)}}let Y=[];for(let O of W){let X=Y[Y.length-1];if(X&&X.role==="tool"&&O.role==="user")Y.push({role:"assistant",content:"[Tool execution interrupted by user]"});let G=Y[Y.length-1];if(G&&G.role===O.role&&O.role!=="tool"&&O.role!=="system"){let N=G.content,I=O.content;if(typeof N==="string"&&typeof I==="string")G.content=N+(N&&I?`
8
- `:"")+I;else{let P=(M)=>{if(!M)return[];if(typeof M==="string")return M?[{type:"text",text:M}]:[];return M};G.content=[...P(N),...P(I)]}if(O.tool_calls?.length)G.tool_calls=[...G.tool_calls??[],...O.tool_calls]}else Y.push(O)}return Y}var HD,ND,MD;var AD=y(()=>{H1();f1();HD=new WeakMap,ND=new WeakMap,MD={toolResultComputes:0,toolUseArgumentsComputes:0}});function UD(D){for(let $ of LD){let Z=D[$];if(typeof Z==="string"&&Z!=="")return Z}return null}function _D(D){for(let $ of LD){let Z=D[$];if(typeof Z==="string"&&Z!=="")return Z}return null}var LD;var E1=y(()=>{LD=["reasoning_content","reasoning","reasoning_text","thinking"]});function wD(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function C1(D,$){if(D.firstTokenTime===null)D.firstTokenTime=Date.now();D.chunkCount++}function fD(D){let $=Date.now(),Z=D.firstTokenTime?$-D.firstTokenTime:null,Q=$-D.startTime;return{totalChunks:D.chunkCount,firstTokenMs:Z,durationMs:Q}}var SD=()=>{};function j1(D){let $=D.trim();if($==="")return"";try{return JSON.parse($)}catch{return D}}function m2(D,$){let Z=0,Q=!1,W=!1;for(let J=$;J<D.length;J++){let K=D[J];if(W){W=!1;continue}if(K==="\\"&&Q){W=!0;continue}if(K==='"'){Q=!Q;continue}if(Q)continue;if(K==="{")Z++;else if(K==="}"){if(Z--,Z===0)return D.slice($,J+1)}}return null}function d2(D,$){let Z=[...$].sort((J,K)=>J[0]-K[0]),Q="",W=0;for(let[J,K]of Z)Q+=D.slice(W,J),W=K;return Q+D.slice(W)}function M1(D){return D.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function p2(D){let $={},Z=D.trim(),Q=Z.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),W=!1;for(let J of D.matchAll(g2)){let K=J[1];if(K)W=!0,$[K]=j1(J[2]??"")}for(let J of D.matchAll(h2)){let K=J[1];if(K)W=!0,$[K]=j1(J[2]??"")}for(let J of D.matchAll(k2)){let K=J[1]?.trim();if(K)W=!0,$[K]=j1(J[2]??"")}return{name:Q&&u2.test(Q)&&(W||Z===Q)?Q:void 0,args:$}}function vD(D,$){let Z=0,Q=$?RD:[x1];for(let W of Q){let J=Math.min(D.length,W.length-1);for(let K=J;K>0;K--)if(W.startsWith(D.slice(D.length-K))){Z=Math.max(Z,K);break}}return Z}function BD(D,$){return($?RD:[x1]).reduce((Q,W)=>{let J=D.indexOf(W);return J===-1?Q:Q===-1?J:Math.min(Q,J)},-1)}function c2(D,$=!1){let Z=[],Q=new Set,W=[],J=(Y,O)=>{let X=`${Y}:${JSON.stringify(O)}`;if(Q.has(X))return;Q.add(X),Z.push({id:`xml_tc_${++v2}`,name:Y,arguments:O})},K=$?[...D.matchAll(y2)].map((Y)=>({range:[Y.index,Y.index+Y[0].length],parsed:p2(Y[1]??"")})):[],j=$?[...D.matchAll(C2)].filter((Y)=>{let O=[Y.index,Y.index+Y[0].length];return K.some((X)=>X.parsed.name&&O[0]<=X.range[0]&&X.range[1]<=O[1])}).map((Y)=>[Y.index,Y.index+Y[0].length]):[];for(let Y of K){let{name:O,args:X}=Y.parsed;if(!O)continue;let G=Y.range;if(!j.some((N)=>N[0]<=G[0]&&G[1]<=N[1]))W.push(G);J(O,X)}W.push(...j);for(let Y of D.matchAll(E2)){let O=Y[1]??"",X=[Y.index,Y.index+Y[0].length],G,N={},I=O.match(x2);if(I){G=I[1];for(let P of O.matchAll(b2)){let M=P[1];if(M)N[M]=j1(P[2]??"")}}else{let P=O.trim(),M=[...O.matchAll(T2)];if(M.length>0&&!P.startsWith("{")){let A=P.split(/[\n<]/,1)[0]?.trim();if(A)G=A;for(let H of M){let w=(H[1]??"").trim();if(w)N[w]=j1(H[2]??"")}}else{let A=P.indexOf("{");if(A!==-1){let H=m2(P,A);if(H)try{let w=JSON.parse(H);if(typeof w.name==="string"){G=w.name;let F=w.arguments;if(typeof F==="string")try{Object.assign(N,JSON.parse(F))}catch{}else if(F&&typeof F==="object")Object.assign(N,F)}}catch{}}}}if(!G)continue;W.push(X),J(G,N)}return{calls:Z,toolCallRanges:W}}function I1(D,$={}){let{calls:Z,toolCallRanges:Q}=c2(D,$.allowHy3??!1),W=$.toolNames?Z.filter((K)=>$.toolNames.has(K.name)):Z;if(W.length===0)return null;return{visibleText:V1(d2(D,Q).trim()).trim(),calls:W}}var v2=0,x1="<tool_call>",B2="<tool_calls:",q2="<tool_call:",RD,E2,C2,y2,x2,b2,T2,g2,h2,k2,u2;var b1=y(()=>{y1();RD=[x1,B2,q2],E2=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,C2=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,y2=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,x2=/<function=([^>\s]+)\s*>/,b2=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,T2=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,g2=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,h2=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,k2=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,u2=/^[A-Za-z_][\w.-]*$/});function i2(D){if(!D)return;return A1(D)}function l2(D){try{let $=JSON.parse(D);return $&&typeof $==="object"&&!Array.isArray($)?D:null}catch{for(let $ of CD)try{let Z=D+$,Q=JSON.parse(Z);if(Q&&typeof Q==="object"&&!Array.isArray(Q))return Z}catch{}return null}}async function*yD(D,$,Z,Q,W){let J=O1(),K=0,j=new Map,Y=!1,O=!1,X=!1,G=ED(),N=null,I=!1,P=!1,M=0,A=wD(),H=!!W&&W.size>0&&!t(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),w=M1($),F=null,L="",T=null;yield{type:"message_start",message:{id:J,type:"message",role:"assistant",content:[],model:$,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let x=D.body?.getReader();if(!x)return;let r=new TextDecoder,p="",Z1=120000,c=Date.now();async function u(){return new Promise((U,S)=>{let v=setTimeout(()=>{let E=Math.round((Date.now()-c)/1000);S(Error(`OpenAI/Gemini SSE stream idle for ${E}s (limit: ${Z1/1000}s). Connection likely dropped.`))},Z1),f;if(Z)f=()=>{clearTimeout(v)},Z.addEventListener("abort",f,{once:!0});x.read().then((E)=>{if(clearTimeout(v),Z&&f)Z.removeEventListener("abort",f);if(E.value)c=Date.now();U(E)},(E)=>{if(clearTimeout(v),Z&&f)Z.removeEventListener("abort",f);S(E)})})}let l=async function*(){if(!Y)return;let U=G.flush();if(U)yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:U}};yield{type:"content_block_stop",index:K},K++,Y=!1},h=async function*(U){if(!U)return;if(O&&!X)yield{type:"content_block_stop",index:K},K++,X=!0;if(!Y)yield{type:"content_block_start",index:K,content_block:{type:"text",text:""}},Y=!0;M+=U.length,yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:U}}},Q1=async function*(U){if(!U)return;if(F!==null){F+=U;return}let S=L+U,v=BD(S,w);if(v!==-1){let f=S.slice(0,v);if(f)yield*h(f);L="",F=S.slice(v)}else{let f=vD(S,w),E=f>0?S.slice(0,S.length-f):S;if(L=f>0?S.slice(S.length-f):"",E)yield*h(E)}},W1=async function*(){if(H){let U=G.flush();if(U)yield*Q1(U)}if(F!==null){let U=F;F=null;let S=I1(U,{allowHy3:w,toolNames:W});if(S){if(S.visibleText)yield*h(S.visibleText);if(Y)yield*l();for(let v of S.calls){let f=K;yield{type:"content_block_start",index:f,content_block:{type:"tool_use",id:v.id,name:v.name,input:{}}},K++,yield{type:"content_block_delta",index:f,delta:{type:"input_json_delta",partial_json:JSON.stringify(e(v.name,JSON.stringify(v.arguments)))}},yield{type:"content_block_stop",index:f}}T="tool_use"}else yield*h(U)}else if(L)yield*h(L),L=""};try{while(!0){let{done:U,value:S}=await u();if(U)break;p+=r.decode(S,{stream:!0});let v=p.split(`
9
- `);p=v.pop()??"";for(let f of v){let E=f.trim();if(!E||E==="data: [DONE]")continue;if(!E.startsWith("data: "))continue;let B;try{B=JSON.parse(E.slice(6))}catch{continue}let n=i2(B.usage);for(let k of B.choices??[]){let d=k.delta,G1=UD(d);if(G1!=null){if(!O)yield{type:"content_block_start",index:K,content_block:{type:"thinking",thinking:""}},O=!0;yield{type:"content_block_delta",index:K,delta:{type:"thinking_delta",thinking:G1}}}if(d.content!=null&&d.content!==""){let z=G.feed(d.content);if(C1(A,d.content),z)if(H)yield*Q1(z);else yield*h(z)}if(d.tool_calls){if(F!==null)yield*h(F),F=null;if(L)yield*h(L),L="";for(let z of d.tool_calls)if(z.id&&z.function?.name){if(O&&!X)yield{type:"content_block_stop",index:K},K++,X=!0;if(Y)yield*l();let V=K,q=z.function.arguments??"",_=XD(z.function.name);if(C1(A,z.function.arguments??""),j.set(z.index,{id:z.id,name:z.function.name,index:V,jsonBuffer:q,normalizeAtStop:_}),yield{type:"content_block_start",index:V,content_block:{type:"tool_use",id:z.id,name:z.function.name,input:{},...z.extra_content?{extra_content:z.extra_content}:{},...z.extra_content?.google?.thought_signature?{signature:z.extra_content.google.thought_signature}:{}}},K++,z.function.arguments&&!_)M+=z.function.arguments.length,yield{type:"content_block_delta",index:V,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}else if(z.function?.arguments){let V=j.get(z.index);if(V){if(z.function.arguments)M+=z.function.arguments.length,V.jsonBuffer+=z.function.arguments;if(V.normalizeAtStop)continue;yield{type:"content_block_delta",index:V.index,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}}}if(k.finish_reason&&!P){if(P=!0,O&&!X)yield{type:"content_block_stop",index:K},K++,X=!0;if(yield*W1(),T)k.finish_reason="tool_calls";if(Y)yield*l();for(let[,V]of j){if(V.normalizeAtStop){let _;if(k.finish_reason==="length")_=V.jsonBuffer;else{let g=l2(V.jsonBuffer);if(g)_=g;else _=JSON.stringify(e(V.name,V.jsonBuffer))}yield{type:"content_block_delta",index:V.index,delta:{type:"input_json_delta",partial_json:_}},yield{type:"content_block_stop",index:V.index};continue}let q="";if(V.jsonBuffer)try{JSON.parse(V.jsonBuffer)}catch{let _=V.jsonBuffer.trimEnd();for(let g of CD)try{JSON.parse(_+g),q=g;break}catch{}}if(q)yield{type:"content_block_delta",index:V.index,delta:{type:"input_json_delta",partial_json:q}};yield{type:"content_block_stop",index:V.index}}let z=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:K,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:`
10
-
11
- [Content blocked by provider safety filter]`}}}if(N=z,yield{type:"message_delta",delta:{stop_reason:z,stop_sequence:null},...n?{usage:n}:{}},n)I=!0}}if(!I&&n&&(B.choices?.length??0)===0&&N!==null)yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:n},I=!0}}}finally{x.releaseLock()}if(!P&&(F!==null||L)){if(O&&!X)yield{type:"content_block_stop",index:K},K++,X=!0;if(yield*W1(),Y)yield*l();N=T??"end_turn",yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null}}}let s=fD(A);if(s.totalChunks>0)b(JSON.stringify({type:"stream_stats",model:$,total_chunks:s.totalChunks,first_token_ms:s.firstTokenMs,duration_ms:s.durationMs}),{level:"debug"});if(!I&&N!==null&&(M>0||(Q??0)>0)){let U=bD($);yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:{input_tokens:Q??0,output_tokens:Math.ceil(M/U),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var CD,T1;var xD=y(()=>{H1();SD();qD();y1();v1();TD();F1();B1();E1();b1();CD=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];T1=class T1{generator;controller=new AbortController;constructor(D){this.generator=D}async*[Symbol.asyncIterator](){yield*this.generator}}});function n2(D){let $=D.toLowerCase();return gD.some((Z)=>$.includes(Z))}function $1(D){try{let $=new URL(D);if($.username)$.username="redacted";if($.password)$.password="redacted";for(let Q of $.searchParams.keys())if(n2(Q))$.searchParams.set(Q,"redacted");let Z=$.toString();return D1(Z,process.env)??Z}catch{return D1(D,process.env)??D}}var uD=y(()=>{kD();hD()});function mD(D){if(!D)return!1;try{let $=new URL(D).host;return $==="api.openai.com"||$.endsWith(".api.openai.com")}catch{return!1}}class V2{defaultHeaders;reasoningEffort;constructor(D,$){this.defaultHeaders=z1(D),this.reasoningEffort=$}create(D,$){let Z=this,Q,W=(async()=>{let J=J2(D.model,D.effortValue),K=J==="low"||J==="medium"||J==="high"||J==="xhigh"||J==="max"?J:Z.reasoningEffort,j=lD({model:D.model,reasoningEffortOverride:K}),Y=await Z._doRequest(j,D,$);Q=Y;let O=new Set((D.tools??[]).map((I)=>I.name).filter((I)=>typeof I==="string"));if(D.stream){let I=Y.url?.includes("/responses"),P=0;for(let M of D.messages){let A=M,H=A.message?A.message.content:A.content;if(H!=null&&typeof H!=="string"&&!Array.isArray(H))continue;P+=r1(H)}if(typeof D.system==="string")P+=P2(D.system);else if(Array.isArray(D.system))P+=r1(D.system);return new T1(j.transport==="codex_responses"||I?j2(Y,j.resolvedModel,$?.signal):yD(Y,j.resolvedModel,$?.signal,P,O))}if(j.transport==="codex_responses"){let I=await O2(Y,$?.signal);return a1(I,j.resolvedModel)}if(Y.url?.includes("/responses")||j.transport==="chat_completions"&&L1()){if((Y.headers.get("content-type")??"").includes("application/json")){let P=await Y.json();if(P&&typeof P==="object"&&(("output"in P)||("incomplete_details"in P)))return a1(P,j.resolvedModel);return Z._convertNonStreamingResponse(P,j.resolvedModel,O)}}if((Y.headers.get("content-type")??"").includes("application/json")){let I=await Y.json();return Z._convertNonStreamingResponse(I,j.resolvedModel,O)}let N=await Y.text().catch(()=>"");throw X1.generate(Y.status,void 0,`OpenAI API error ${Y.status}: unexpected response: ${N.slice(0,500)}`,Y.headers)})();return W.withResponse=async()=>{return{data:await W,response:Q??new Response,request_id:Q?.headers.get("x-request-id")??O1()}},W}async _doRequest(D,$,Z){let Q=k1(D.baseUrl),W=L1();if(W&&D.transport==="codex_responses"){let K=K1(),j=K?.extras?.githubToken??K?.apiKey??"";if(!j)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return o1({request:D,credentials:{apiKey:j,source:"env"},params:$,defaultHeaders:{...this.defaultHeaders,...z1(Z?.headers),...u1,...l1($.messages)},signal:Z?.signal})}if(D.transport==="codex_responses"&&!W){let K=await pD().catch(async(Y)=>{return b(`[codex] access token refresh failed before request: ${Y instanceof Error?Y.message:String(Y)}`,{level:"warn"}),{refreshed:!1,credentials:await dD()}}),j=nD({storedCredentials:K.credentials});if(!j.apiKey){let Y=Y1()?"":", choose Codex OAuth in /provider",O=j.authPath?`${Y} or place a Codex auth.json at ${j.authPath}`:Y,X=D1(D.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${X}. Set CODEX_API_KEY${O}.`)}if(!j.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 o1({request:D,credentials:j,params:$,defaultHeaders:{...this.defaultHeaders,...z1(Z?.headers)},signal:Z?.signal})}return this._doOpenAIRequest(D,$,Z)}async _doOpenAIRequest(D,$,Z){let Q=Y2($.messages),W=ID(Q,$.system,{preserveReasoningContent:m1(D.baseUrl)||p1(D.baseUrl)||d1(D.baseUrl)}),J={model:D.resolvedModel,messages:W,stream:$.stream??!1,store:!1,...mD(D.baseUrl)&&{prompt_cache_key:g1(),prompt_cache_retention:"24h"}},K=typeof $.max_tokens==="number"&&$.max_tokens>0?$.max_tokens:void 0,j=typeof $.max_completion_tokens==="number"?$.max_completion_tokens:void 0;if(K!==void 0)J.max_completion_tokens=K;else if(j!==void 0)J.max_completion_tokens=j;if($.stream&&!h1(D.baseUrl))J.stream_options={include_usage:!0};let Y=L1(),O=tD(),X=h1(D.baseUrl),G=k1(D.baseUrl),N=Y&&G==="copilot",I=Y&&(G==="models"||G==="custom"),P=m1(D.baseUrl),M=p1(D.baseUrl),A=d1(D.baseUrl);if((Y||O||X||P||M||A)&&J.max_completion_tokens!==void 0)J.max_tokens=J.max_completion_tokens,delete J.max_completion_tokens;if(O||a()||P||M||A)delete J.store;if($.temperature!==void 0)J.temperature=$.temperature;if($.top_p!==void 0)J.top_p=$.top_p;if(M){let z=$.thinking?.type,V=z==="disabled"?"disabled":z==="enabled"||z==="adaptive"?"enabled":void 0;if(V)J.thinking={type:V};if(V==="enabled"){let q=D.reasoning?.effort;if(q)J.reasoning_effort=eD(q)}}if(P){let z=D.reasoning?.effort;if(z&&W2(D.resolvedModel))J.thinking={type:"enabled",effort:z,keep:"all"}}if($.tools&&$.tools.length>0){let z=S1($.tools);if(z.length>0){if(J.tools=z,$.tool_choice){let V=$.tool_choice;if(V.type==="auto")J.tool_choice="auto";else if(V.type==="tool"&&V.name)J.tool_choice={type:"function",function:{name:V.name}};else if(V.type==="any")J.tool_choice="required";else if(V.type==="none")J.tool_choice="none"}}}let H={"Content-Type":"application/json",...this.defaultHeaders,...z1(Z?.headers),"User-Agent":Z2()},w=a(),F=K1(),L=await $2(F),T=F?.apiKey??F?.extras?.githubToken??L.accessToken??"",x=!1;try{let{hostname:z}=new URL(D.baseUrl);x=z.endsWith(".azure.com")&&(z.includes("cognitiveservices")||z.includes("openai")||z.includes("services.ai"))}catch{}let r=!1;try{r=D.baseUrl.toLowerCase().includes("bankr")}catch{}if(T){if(x)H["api-key"]=T;else if(r)H["X-API-Key"]=T;else H.Authorization=`Bearer ${T}`;if(L.userAgent)H["User-Agent"]=L.userAgent;if(L.deviceHeaders)Object.assign(H,L.deviceHeaders)}else if(w){let z=await Q2(process.env);if(z.kind!=="none"){if(H.Authorization=`Bearer ${z.credential}`,z.kind!=="api-key"&&"projectId"in z&&z.projectId)H["x-goog-user-project"]=z.projectId}}if(N)Object.assign(H,u1,l1($.messages));else if(I)H.Accept="application/vnd.github+json",H["X-GitHub-Api-Version"]="2022-11-28";let p=(z)=>{if(x){let V=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",q=D.resolvedModel??F?.model??"gpt-4o";if(/\/deployments\//i.test(z))return`${z.replace(/\/+$/,"")}/chat/completions?api-version=${V}`;return`${z.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${q}/chat/completions?api-version=${V}`}return`${z}/chat/completions`},Z1=X?cD(D.baseUrl):[],c=D.baseUrl,u=p(c),l=new Set([c]),h=!1,Q1=(z)=>{for(let V of Z1){if(l.has(V))continue;let q=u;return l.add(V),c=V,u=p(c),b(`[OpenAIShim] self-heal retry reason=${z} method=POST from=${$1(q)} to=${$1(u)} model=${D.resolvedModel}`,{level:"warn"}),!0}return!1},W1=U1(J),s=()=>{W1=U1(J)},U=()=>({method:"POST",headers:H,body:W1,signal:Z?.signal}),S=X?Z1.length+1:0,v=(Y?oD:1)+S,f=(z,V,q)=>{if(Z?.signal?.aborted)throw z;let _=q??i1(z,{url:V}),g=$1(V),o=D1(_.message,process.env)||"Request failed";throw b(`[OpenAIShim] transport failure category=${_.category} retryable=${_.retryable} code=${_.code??"unknown"} method=POST url=${g} model=${D.resolvedModel} message=${o}`,{level:"warn"}),X1.generate(503,void 0,c1(`OpenAI API transport error: ${o}${_.code?` (code=${_.code})`:""}`,_),new Headers)},E=(z,V,q,_,g,o="",R)=>{let C=R??_1({status:z,body:V}),i=$1(g);throw b(`[OpenAIShim] request failed category=${C.category} retryable=${C.retryable} status=${z} method=POST url=${i} model=${D.resolvedModel}`,{level:"warn"}),X1.generate(z,q,c1(`OpenAI API error ${z}: ${V}${o}`,C),_)},B,n=D.baseUrl.includes("nvidia")?"nvidia-nim":D.baseUrl.includes("minimax")?"minimax":D.baseUrl.includes("localhost:11434")||D.baseUrl.includes("localhost:11435")?"ollama":D.baseUrl.includes("anthropic")?"anthropic":"openai",k=sD(),{correlationId:d,startTime:G1}=YD(n,D.resolvedModel);for(let z=0;z<v;z++){try{B=await n1(u,U(),{provider:k})}catch(R){if(Z?.signal?.aborted===!0||typeof DOMException<"u"&&R instanceof DOMException&&R.name==="AbortError"||typeof R==="object"&&R!==null&&"name"in R&&R.name==="AbortError")throw R;let i=i1(R,{url:u});if(X&&i.category==="localhost_resolution_failed"&&Q1("localhost_resolution_failed"))continue;f(R,u,i)}if(B.ok){let R=0,C=0;if(!$.stream)try{let m=await B.clone().json();R=m.usage?.prompt_tokens??0,C=m.usage?.completion_tokens??0}catch{}return KD(d,G1,D.resolvedModel,"success",R,C,!1),B}if(Y&&B.status===429&&z<v-1){await B.text().catch(()=>{});let R=Math.min(aD*2**z,rD);await FD(R*1000);continue}let V=await B.text().catch(()=>"unknown error"),q=Y&&B.status===429?GD(B):"";if(Y&&B.status===400){if(V.includes("/chat/completions")||V.includes("not accessible")){let R=`${D.baseUrl}/responses`,C={model:D.resolvedModel,input:K2($.messages),stream:$.stream??!1,store:!1,...mD(D.baseUrl)&&{prompt_cache_key:g1(),prompt_cache_retention:"24h"}};if(!Array.isArray(C.input)||C.input.length===0)C.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let i=q1($.system);if(i)C.instructions=i;if(J.max_tokens!==void 0)C.max_output_tokens=J.max_tokens;if($.tools&&$.tools.length>0){let P1=z2($.tools);if(P1.length>0)C.tools=P1}let m;try{m=await n1(R,{method:"POST",headers:H,body:U1(C),signal:Z?.signal},{provider:k})}catch(P1){f(P1,R)}if(m.ok)return m;let w1=await m.text().catch(()=>"unknown error"),F2=_1({status:m.status,body:w1}),s1;try{s1=JSON.parse(w1)}catch{}E(m.status,w1,s1,m.headers,R,"",F2)}}let _=_1({status:B.status,body:V});if(X&&_.category==="endpoint_not_found"&&Q1("endpoint_not_found"))continue;let g=Array.isArray(J.tools)&&J.tools.length>0;if(!h&&_.category==="tool_call_incompatible"&&iD({baseUrl:c,hasTools:g})){h=!0,delete J.tools,delete J.tool_choice,s(),b(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${$1(u)} model=${D.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(V)}catch{}E(B.status,V,o,B.headers,u,q,_)}throw X1.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse(D,$,Z){let Q=D.choices?.[0],W=[],J=!1,K=_D(Q?.message??{});if(K)W.push({type:"thinking",thinking:K});let j=Q?.message?.content!==""&&Q?.message?.content!=null?Q?.message?.content:null;if(typeof j==="string"&&j){let X=!!Z&&Z.size>0&&!t(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?I1(j,{allowHy3:M1($),toolNames:Z}):null;if(X){if(X.visibleText)W.push({type:"text",text:X.visibleText});for(let G of X.calls)W.push({type:"tool_use",id:G.id,name:G.name,input:e(G.name,JSON.stringify(G.arguments))});J=!0}else W.push({type:"text",text:V1(j)})}else if(Array.isArray(j)&&j.length>0){let O=[];for(let G of j)if(G&&typeof G==="object"&&G.type==="text"&&typeof G.text==="string")O.push(G.text);let X=O.join(`
12
- `);if(X)W.push({type:"text",text:V1(X)})}if(Q?.message?.tool_calls)for(let O of Q.message.tool_calls){let X=e(O.function.name,O.function.arguments);W.push({type:"tool_use",id:O.id,name:O.function.name,input:X,...O.extra_content?{extra_content:O.extra_content}:{},...O.extra_content?.google?.thought_signature?{signature:O.extra_content.google.thought_signature}:{}})}let Y=J||Q?.finish_reason==="tool_calls"?"tool_use":Q?.finish_reason==="length"?"max_tokens":"end_turn";if(Q?.finish_reason==="content_filter"||Q?.finish_reason==="safety")W.push({type:"text",text:`
13
-
14
- [Content blocked by provider safety filter]`});return{id:D.id??O1(),type:"message",role:"assistant",content:W,model:D.model??$,stop_reason:Y,stop_sequence:null,usage:A1(D.usage)}}}class X2{messages;reasoningEffort;constructor(D,$){this.messages=new V2(D,$),this.reasoningEffort=$}}function O$(D){WD(),D2();let $=new X2({...D.defaultHeaders??{}},D.reasoningEffort);return{beta:$,messages:$.messages}}var G2=y(()=>{a2();r2();H1();F1();QD();JD();D$();t2();J$();kD();zD();e2();TD();Y$();$D();qD();z$();K$();Z$();s2();$$();y1();v1();Q$();W$();hD();PD();B1();AD();f1();E1();xD();o2();R1();b1();uD()});var j$=y(()=>{R1();G2()});j$();export{O$ as createOpenAIShimClient,S1 as convertTools};
@@ -1 +0,0 @@
1
- import{ksa as t}from"./cli-1.0.17-h101c40b.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{ni as e,oi as a}from"./cli-1.0.17-xhvs9ddb.mjs";import{ksa as r}from"./cli-1.0.17-h101c40b.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
@@ -1 +0,0 @@
1
- import"./cli-1.0.17-h101c40b.mjs";var o=()=>null,n=o;export{n as default};
@@ -1 +0,0 @@
1
- import{V2 as a,W2 as b,X2 as c,Y2 as d,Z2 as e,_2 as f}from"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-h101c40b.mjs";f();export{d as parseCommandRaw,b as parseCommand,e as extractCommandArguments,a as ensureInitialized,c as PARSE_ABORTED};
@@ -1 +0,0 @@
1
- import{BY as c,DY as g,EY as m,GY as b,jY as y,lY as Nq,oY as S,pY as Qq,xY as O,yY as Uq,zY as f}from"./cli-1.0.17-at0j3482.mjs";import{H0 as M,J0 as z,N0 as L,b1 as R,fZ as v,kZ as Hq,m1 as Mq}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import{U3 as U,V3 as q,W3 as J,X3 as V}from"./cli-1.0.17-dfb76sxr.mjs";import{Y3 as Jq}from"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{Bea as d,Bga as Bq,Iba as zq,Wea as Xq,caa as F,eaa as qq,oba as h,tga as E,yea as u}from"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import{_ia as _,bja as k}from"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as e,ksa as C}from"./cli-1.0.17-h101c40b.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{le as eG,me as nJ}from"./cli-1.0.17-kxfqzcbd.mjs";import{xg as gJ,yg as CX}from"./cli-1.0.17-erbfjxqt.mjs";import{kh as OX,lh as sX,mh as IX,nh as tX}from"./cli-1.0.17-5g9z2hnd.mjs";import{oh as WX,ph as IG,qh as EX,rh as OG,sh as fJ}from"./cli-1.0.17-6gqj4d8v.mjs";import{th as iJ,uh as hX}from"./cli-1.0.17-esydm78q.mjs";import{yh as wX,zh as $X}from"./cli-1.0.17-7p5c1h67.mjs";import"./cli-1.0.17-0h68yp5q.mjs";import"./cli-1.0.17-jze67k48.mjs";import"./cli-1.0.17-8r1zjpkg.mjs";import"./cli-1.0.17-rq8fyqe6.mjs";import"./cli-1.0.17-kn7c19b9.mjs";import{$n as sG,$x as NX,EC as rG,FC as FJ,Mm as EG,Pm as $G,QR as qY,Rm as KJ,Vo as MJ,WI as pJ,Wo as vX,XI as mX,ZF as hJ,_F as _X,_x as zX,ao as TJ,by as rX,hG as n,hK as KX,iG as VG,sO as LX,tO as UX,uO as kX,vO as qX,xO as QX,yO as oX}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import{XX as SJ,YX as SX,jY as PG,lY as _J,oY as FG,pY as mJ,xY as ZX,yY as aX}from"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import{H0 as C,J0 as H,R0 as RJ,b1 as uJ,l0 as YX,lZ as JG,m1 as XG}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import"./cli-1.0.17-w335kv69.mjs";import"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import{U3 as r,V3 as Z,W3 as F,X3 as x}from"./cli-1.0.17-dfb76sxr.mjs";import{Y3 as tG}from"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-fgbyxz18.mjs";import"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import{b9 as s,c9 as lX}from"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import{Kda as jX,Nca as yJ,Oca as u,Pca as HJ,Sca as bJ,Waa as OJ,Xaa as TX,_ca as gX,i_ as YG,j_ as BJ,uda as IJ}from"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-hb445h5r.mjs";import{Gja as DG,Lja as nX}from"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import{Bqa as dX,Ima as tJ}from"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as i,ksa as e}from"./cli-1.0.17-h101c40b.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{oha as a,pha as b,qha as c,rha as d}from"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-h101c40b.mjs";d();export{c as PERMISSION_MODES,b as INTERNAL_PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
@@ -1 +0,0 @@
1
- import{oe as v,pe as d}from"./cli-1.0.17-hzag9kre.mjs";import{Fg as B,Gg as j,Hg as F,Jg as D}from"./cli-1.0.17-m59cbaf4.mjs";import{Mm as A,Rm as m,SK as y,UK as P,om as U,pm as _,ro as I,sm as g,vo as u}from"./cli-1.0.17-qx980gch.mjs";import"./cli-1.0.17-2c5rzypz.mjs";import"./cli-1.0.17-qadydg9v.mjs";import"./cli-1.0.17-k27bgcpe.mjs";import"./cli-1.0.17-zxmxc807.mjs";import"./cli-1.0.17-yhm1j87y.mjs";import"./cli-1.0.17-yt9x63kq.mjs";import"./cli-1.0.17-tq56x0z7.mjs";import"./cli-1.0.17-a49frejp.mjs";import"./cli-1.0.17-ee1sf1f4.mjs";import"./cli-1.0.17-vjz0mgdc.mjs";import"./cli-1.0.17-s87gh0xy.mjs";import"./cli-1.0.17-mzzfvdfd.mjs";import"./cli-1.0.17-ca7kkyhc.mjs";import"./cli-1.0.17-z313h4h8.mjs";import"./cli-1.0.17-hh90k4js.mjs";import"./cli-1.0.17-0gwvjedx.mjs";import"./cli-1.0.17-zzy8pydb.mjs";import"./cli-1.0.17-qde4391n.mjs";import"./cli-1.0.17-at0j3482.mjs";import"./cli-1.0.17-wp8wyvc5.mjs";import{H0 as V,J0 as G,lZ as T,m1 as c}from"./cli-1.0.17-1w8t10bs.mjs";import"./cli-1.0.17-xvntbm80.mjs";import"./cli-1.0.17-n6v9ztev.mjs";import"./cli-1.0.17-rsrbhcgg.mjs";import"./cli-1.0.17-a77fqcz9.mjs";import"./cli-1.0.17-w335kv69.mjs";import"./cli-1.0.17-mnsjbqs4.mjs";import"./cli-1.0.17-5jrh9pw3.mjs";import"./cli-1.0.17-svhv399t.mjs";import"./cli-1.0.17-awxt5jcy.mjs";import"./cli-1.0.17-f5mwgpmm.mjs";import"./cli-1.0.17-bnex4nm7.mjs";import{V3 as w,W3 as W,X3 as Z}from"./cli-1.0.17-dfb76sxr.mjs";import"./cli-1.0.17-ttnq9eyz.mjs";import"./cli-1.0.17-t3a6qmnj.mjs";import"./cli-1.0.17-xvt8srd0.mjs";import"./cli-1.0.17-4qh79bzg.mjs";import"./cli-1.0.17-fgbyxz18.mjs";import"./cli-1.0.17-bner2z30.mjs";import"./cli-1.0.17-8h47dvj2.mjs";import"./cli-1.0.17-3ba3vg5e.mjs";import"./cli-1.0.17-ea8m8v7k.mjs";import"./cli-1.0.17-23znd3er.mjs";import"./cli-1.0.17-fm4473vw.mjs";import"./cli-1.0.17-ksmypgky.mjs";import"./cli-1.0.17-a6mc44b2.mjs";import"./cli-1.0.17-bheyzxzm.mjs";import"./cli-1.0.17-v42jc8b6.mjs";import"./cli-1.0.17-2yxp2sz6.mjs";import"./cli-1.0.17-142ww3xz.mjs";import"./cli-1.0.17-pzebvptb.mjs";import"./cli-1.0.17-verxvj0s.mjs";import"./cli-1.0.17-hb445h5r.mjs";import"./cli-1.0.17-082vgztb.mjs";import"./cli-1.0.17-926g8p8g.mjs";import"./cli-1.0.17-89p1ntv1.mjs";import"./cli-1.0.17-1d9ccn16.mjs";import{Bqa as h,zpa as R}from"./cli-1.0.17-jktkjeyp.mjs";import"./cli-1.0.17-gy47n7qj.mjs";import"./cli-1.0.17-2jt2w5sh.mjs";import"./cli-1.0.17-zjtvw594.mjs";import"./cli-1.0.17-v39zqb3q.mjs";import"./cli-1.0.17-05v12vep.mjs";import{gsa as C,ksa as N}from"./cli-1.0.17-h101c40b.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{ksa as z}from"./cli-1.0.17-h101c40b.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};