@claudiolabs/claudin 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (910) hide show
  1. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +1 -0
  2. package/dist/chunks/App-1.0.13-ka050dp3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +1 -0
  31. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +3 -0
  32. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +110 -0
  33. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +1 -0
  36. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +1 -0
  37. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +1 -0
  41. package/dist/chunks/branch-1.0.13-encr40nd.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +1 -0
  47. package/dist/chunks/btw-1.0.13-55x872ns.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +4 -0
  52. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +1 -0
  55. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +1 -0
  57. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +2 -0
  58. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +2 -0
  59. package/dist/chunks/cli-1.0.13-14c24kge.mjs +2 -0
  60. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +2 -0
  61. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +3 -0
  62. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +2 -0
  63. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +3 -0
  64. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +4 -0
  65. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +45 -0
  66. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +2 -0
  67. package/dist/chunks/cli-1.0.13-2x789qav.mjs +2 -0
  68. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +1 -0
  69. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +3 -0
  70. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +18 -0
  71. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +4 -0
  72. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +2 -0
  73. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +2 -0
  74. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +2 -0
  75. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +2 -0
  76. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +2 -0
  77. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +15 -0
  78. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +2 -0
  79. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +2 -0
  80. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +2 -0
  81. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +6 -0
  82. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +2 -0
  83. package/dist/chunks/cli-1.0.13-57993qn6.mjs +2 -0
  84. package/dist/chunks/cli-1.0.13-57ez593b.mjs +3 -0
  85. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +4 -0
  86. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +58 -0
  87. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +2 -0
  88. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +2 -0
  89. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +2 -0
  90. package/dist/chunks/cli-1.0.13-696y87my.mjs +18 -0
  91. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +2 -0
  92. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +2 -0
  93. package/dist/chunks/cli-1.0.13-6vb140br.mjs +25 -0
  94. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +2 -0
  95. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +2 -0
  96. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +2 -0
  97. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +2 -0
  98. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +2 -0
  99. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +5 -0
  100. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +2 -0
  101. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +2 -0
  102. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +2 -0
  103. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +6 -0
  104. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +2 -0
  105. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +2 -0
  106. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +2 -0
  107. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +2 -0
  108. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +9 -0
  109. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +25 -0
  110. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +2 -0
  111. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +2 -0
  112. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +2 -0
  113. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +2 -0
  114. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +2 -0
  115. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +9 -0
  116. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +2 -0
  117. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +2 -0
  118. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +15 -0
  119. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +2 -0
  120. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +34 -0
  121. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +3 -0
  122. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +2 -0
  123. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +2 -0
  124. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +2 -0
  125. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +2 -0
  126. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +4 -0
  127. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +2 -0
  128. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +2 -0
  129. package/dist/chunks/cli-1.0.13-e464ab16.mjs +2 -0
  130. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +2 -0
  131. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +2 -0
  132. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +2 -0
  133. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +3 -0
  134. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +12 -0
  135. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +133 -0
  136. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +67 -0
  137. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +2 -0
  138. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +2 -0
  139. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +2 -0
  140. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +2 -0
  141. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +2 -0
  142. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +8 -0
  143. package/dist/chunks/cli-1.0.13-g7daabde.mjs +3 -0
  144. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +2 -0
  145. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +2 -0
  146. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +16 -0
  147. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +2 -0
  148. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +39 -0
  149. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +2 -0
  150. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +12 -0
  151. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +12 -0
  152. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +2 -0
  153. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +2 -0
  154. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +2 -0
  155. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +2 -0
  156. package/dist/chunks/cli-1.0.13-k71bq854.mjs +2 -0
  157. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +2 -0
  158. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +2 -0
  159. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +12 -0
  160. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +2 -0
  161. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +3 -0
  162. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +7 -0
  163. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +2 -0
  164. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +5495 -0
  165. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +2 -0
  166. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +4 -0
  167. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +2 -0
  168. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +59 -0
  169. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +2 -0
  170. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +2 -0
  171. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +2 -0
  172. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +15 -0
  173. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +202 -0
  174. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +2 -0
  175. package/dist/chunks/cli-1.0.13-p7b51har.mjs +2 -0
  176. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +2 -0
  177. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +6 -0
  178. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +2 -0
  179. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +2 -0
  180. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +17 -0
  181. package/dist/chunks/cli-1.0.13-q40za40w.mjs +50 -0
  182. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +2 -0
  183. package/dist/chunks/cli-1.0.13-qx079tft.mjs +2 -0
  184. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +2 -0
  185. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +2 -0
  186. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +2 -0
  187. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +4 -0
  188. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +2 -0
  189. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +2 -0
  190. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +24 -0
  191. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +2 -0
  192. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +2 -0
  193. package/dist/chunks/cli-1.0.13-s15merj9.mjs +2 -0
  194. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +2 -0
  195. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +2 -0
  196. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +24 -0
  197. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +2 -0
  198. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +20 -0
  199. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +2 -0
  200. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +24 -0
  201. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +2 -0
  202. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +2 -0
  203. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +2 -0
  204. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +2 -0
  205. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +2 -0
  206. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +17 -0
  207. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +2 -0
  208. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +2 -0
  209. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +3 -0
  210. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +2 -0
  211. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +2 -0
  212. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +2 -0
  213. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +2 -0
  214. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +2 -0
  215. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +21 -0
  216. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +2 -0
  217. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +2 -0
  218. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +4 -0
  219. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +133 -0
  220. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +2 -0
  221. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +2 -0
  222. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +2 -0
  223. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +2 -0
  224. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +2 -0
  225. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +2 -0
  226. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +2 -0
  227. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +5 -0
  228. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +2 -0
  229. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +2 -0
  230. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +2 -0
  231. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +2 -0
  232. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +6 -0
  233. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +2 -0
  234. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +2 -0
  235. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +4 -0
  236. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +3 -0
  237. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +2 -0
  238. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +2 -0
  239. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +2 -0
  240. package/dist/chunks/cli-1.0.13-xr55511t.mjs +2 -0
  241. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +42 -0
  242. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +18 -0
  243. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +6 -0
  244. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +2 -0
  245. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +4 -0
  246. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +2 -0
  247. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +4 -0
  248. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +4 -0
  249. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +3 -0
  250. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +2 -0
  251. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +2 -0
  252. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +3 -0
  253. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +2 -0
  254. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +2 -0
  255. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +2 -0
  256. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +2 -0
  257. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +2 -0
  258. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +1 -0
  259. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +1 -0
  260. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +3 -0
  261. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +1 -0
  262. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +1 -0
  263. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +1 -0
  264. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +1 -0
  268. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +9 -0
  269. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +1 -0
  272. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.13-e005km58.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +1 -0
  276. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +1 -0
  277. package/dist/chunks/diff-1.0.13-9jypv082.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +1 -0
  281. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +10 -0
  282. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +1 -0
  286. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +1 -0
  287. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +1 -0
  290. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +1 -0
  292. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +1 -0
  295. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +1 -0
  298. package/dist/chunks/git-1.0.13-9196pgzv.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +1 -0
  300. package/dist/chunks/goal-1.0.13-cty957vz.mjs +4 -0
  301. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +1 -0
  303. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +6 -0
  305. package/dist/chunks/help-1.0.13-em333cwb.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +79 -0
  308. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +1 -0
  309. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +1 -0
  312. package/dist/chunks/index-1.0.13-361h9v63.mjs +1 -0
  313. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +1 -0
  314. package/dist/chunks/index-1.0.13-55th4hhq.mjs +1 -0
  315. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +1 -0
  316. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +1 -0
  317. package/dist/chunks/index-1.0.13-792fhv61.mjs +1 -0
  318. package/dist/chunks/index-1.0.13-8k0904bs.mjs +1 -0
  319. package/dist/chunks/index-1.0.13-ace8202d.mjs +2 -0
  320. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +1 -0
  321. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +1 -0
  322. package/dist/chunks/index-1.0.13-ej84k860.mjs +1 -0
  323. package/dist/chunks/index-1.0.13-fnd36467.mjs +2 -0
  324. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +30 -0
  325. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +1 -0
  326. package/dist/chunks/index-1.0.13-j0146ntq.mjs +1 -0
  327. package/dist/chunks/index-1.0.13-jackh0p4.mjs +17 -0
  328. package/dist/chunks/index-1.0.13-kfmh713v.mjs +9 -0
  329. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +1 -0
  330. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +1 -0
  331. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +1 -0
  332. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +5 -0
  333. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +9 -0
  334. package/dist/chunks/index-1.0.13-ykat42gv.mjs +1 -0
  335. package/dist/chunks/init-1.0.13-pyw980be.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +1 -0
  337. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +1 -0
  338. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +870 -0
  339. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +1 -0
  350. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +1 -0
  351. package/dist/chunks/main-1.0.13-h958ytkv.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +4 -0
  354. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +17 -0
  356. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +1 -0
  357. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +72 -0
  358. package/dist/chunks/model-1.0.13-28wkmva5.mjs +2 -0
  359. package/dist/chunks/model-1.0.13-wbne69bf.mjs +1 -0
  360. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +1 -0
  366. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +1 -0
  367. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.13-091a123r.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +3 -0
  370. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +1 -0
  371. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +2 -0
  376. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +1 -0
  378. package/dist/chunks/process-1.0.13-yvqmferw.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +13 -0
  385. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +34 -0
  390. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +1 -0
  396. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +1 -0
  399. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +1 -0
  405. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +1 -0
  409. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +1 -0
  410. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +1 -0
  412. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +1 -0
  415. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +1 -0
  416. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +6 -0
  417. package/dist/chunks/status-1.0.13-t69r10gd.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +1 -0
  425. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +1 -0
  430. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +69 -0
  433. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +4 -0
  435. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +1 -0
  437. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +1 -0
  440. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +1 -0
  441. package/dist/chunks/util-1.0.13-87gxb90q.mjs +1 -0
  442. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +1 -0
  443. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.12-abyv62fr.mjs +0 -1
  454. package/dist/chunks/App-1.0.12-dn7sszp8.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.12-vx8944sv.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.12-ke187zyp.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.12-4evyjnv0.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.12-d9mwxc90.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.12-3jmx6cgy.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.12-3kmzdqzg.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.12-qj1xvjhw.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.12-51vy6wdx.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.12-96frvk0f.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.12-56863ex7.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.12-r6mxvzaa.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.12-79dad11d.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.12-stz0gsem.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.12-zyd4mdh4.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.12-zbfxpy94.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.12-p8zk25w6.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.12-fqnth064.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.12-0qfj43z7.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.12-bnjcb979.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.12-c6fa4qje.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.12-ycm47j1m.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.12-9rp6hs4x.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.12-41jckn7c.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.12-c9n0hbpv.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.12-7fnas2qv.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.12-gv2mp6kz.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.12-fpqr5x3k.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.12-vrw22nhr.mjs +0 -1
  483. package/dist/chunks/agents-1.0.12-b7qmsh41.mjs +0 -3
  484. package/dist/chunks/agents-1.0.12-swx0yj99.mjs +0 -110
  485. package/dist/chunks/api-1.0.12-7ekn0cc8.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.12-bwarrcwq.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.12-85mxf1m6.mjs +0 -1
  488. package/dist/chunks/auth-1.0.12-cefhne6z.mjs +0 -1
  489. package/dist/chunks/auth-1.0.12-snebfssk.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.12-9n08nqfk.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.12-h50vcbqf.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.12-tdh1q45w.mjs +0 -1
  493. package/dist/chunks/branch-1.0.12-863hng5d.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.12-a5nw09de.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.12-x66p8c5q.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.12-0wztb1hd.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.12-038n798h.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.12-9sjcxc3h.mjs +0 -1
  499. package/dist/chunks/btw-1.0.12-k26an2yc.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.12-fpfpe288.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.12-tee370hf.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.12-ch8554yv.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.12-9e5dx6pf.mjs +0 -4
  504. package/dist/chunks/caches-1.0.12-40h57pd6.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.12-9cxdymhn.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.12-9dezcbgf.mjs +0 -1
  507. package/dist/chunks/clear-1.0.12-rhwxvjx8.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.12-33ecg1d7.mjs +0 -1
  509. package/dist/chunks/cli-1.0.12-05z376bz.mjs +0 -2
  510. package/dist/chunks/cli-1.0.12-0hs0n73e.mjs +0 -2
  511. package/dist/chunks/cli-1.0.12-0smh9wwk.mjs +0 -2
  512. package/dist/chunks/cli-1.0.12-0ttcqcck.mjs +0 -133
  513. package/dist/chunks/cli-1.0.12-18q23t16.mjs +0 -2
  514. package/dist/chunks/cli-1.0.12-1bcrzsgk.mjs +0 -45
  515. package/dist/chunks/cli-1.0.12-1cr9ram8.mjs +0 -21
  516. package/dist/chunks/cli-1.0.12-1dt50yfn.mjs +0 -4
  517. package/dist/chunks/cli-1.0.12-1n68xsye.mjs +0 -2
  518. package/dist/chunks/cli-1.0.12-1qc9gpzw.mjs +0 -12
  519. package/dist/chunks/cli-1.0.12-21c23686.mjs +0 -9
  520. package/dist/chunks/cli-1.0.12-22gbc57h.mjs +0 -2
  521. package/dist/chunks/cli-1.0.12-27qnbw76.mjs +0 -2
  522. package/dist/chunks/cli-1.0.12-2kt5mqgg.mjs +0 -2
  523. package/dist/chunks/cli-1.0.12-2nmjd3nj.mjs +0 -2
  524. package/dist/chunks/cli-1.0.12-2yt4jp97.mjs +0 -2
  525. package/dist/chunks/cli-1.0.12-321h968k.mjs +0 -2
  526. package/dist/chunks/cli-1.0.12-352e65vc.mjs +0 -2
  527. package/dist/chunks/cli-1.0.12-37c8ygq5.mjs +0 -6
  528. package/dist/chunks/cli-1.0.12-3fnggb5b.mjs +0 -133
  529. package/dist/chunks/cli-1.0.12-3n5xx9qt.mjs +0 -18
  530. package/dist/chunks/cli-1.0.12-3ncccq9x.mjs +0 -2
  531. package/dist/chunks/cli-1.0.12-3pn1zvqm.mjs +0 -2
  532. package/dist/chunks/cli-1.0.12-3r1201w4.mjs +0 -2
  533. package/dist/chunks/cli-1.0.12-3ya2dc5e.mjs +0 -2
  534. package/dist/chunks/cli-1.0.12-4hwr3sdf.mjs +0 -2
  535. package/dist/chunks/cli-1.0.12-4p7v89wr.mjs +0 -2
  536. package/dist/chunks/cli-1.0.12-57gs15yp.mjs +0 -18
  537. package/dist/chunks/cli-1.0.12-5efdpv3j.mjs +0 -2
  538. package/dist/chunks/cli-1.0.12-5sztdycm.mjs +0 -2
  539. package/dist/chunks/cli-1.0.12-65451rqd.mjs +0 -6
  540. package/dist/chunks/cli-1.0.12-67258wf2.mjs +0 -2
  541. package/dist/chunks/cli-1.0.12-6a3h6ptq.mjs +0 -2
  542. package/dist/chunks/cli-1.0.12-6p5xq1zz.mjs +0 -2
  543. package/dist/chunks/cli-1.0.12-6r2ap1g8.mjs +0 -4
  544. package/dist/chunks/cli-1.0.12-6rebetxb.mjs +0 -2
  545. package/dist/chunks/cli-1.0.12-6s4gq7fa.mjs +0 -2
  546. package/dist/chunks/cli-1.0.12-6tg9g6jd.mjs +0 -18
  547. package/dist/chunks/cli-1.0.12-76954fs2.mjs +0 -2
  548. package/dist/chunks/cli-1.0.12-769ev05r.mjs +0 -2
  549. package/dist/chunks/cli-1.0.12-7gt5bvcm.mjs +0 -16
  550. package/dist/chunks/cli-1.0.12-7ptw0hek.mjs +0 -3
  551. package/dist/chunks/cli-1.0.12-7tv5r0ph.mjs +0 -2
  552. package/dist/chunks/cli-1.0.12-7yabvp9r.mjs +0 -2
  553. package/dist/chunks/cli-1.0.12-7ynhsc1z.mjs +0 -4
  554. package/dist/chunks/cli-1.0.12-824tangf.mjs +0 -2
  555. package/dist/chunks/cli-1.0.12-86r9ty21.mjs +0 -5
  556. package/dist/chunks/cli-1.0.12-8751mzfs.mjs +0 -2
  557. package/dist/chunks/cli-1.0.12-87hs2fpz.mjs +0 -2
  558. package/dist/chunks/cli-1.0.12-88jecwwk.mjs +0 -2
  559. package/dist/chunks/cli-1.0.12-8neq4sr4.mjs +0 -2
  560. package/dist/chunks/cli-1.0.12-8ntn3ny6.mjs +0 -3
  561. package/dist/chunks/cli-1.0.12-8vjn5tt5.mjs +0 -2
  562. package/dist/chunks/cli-1.0.12-939eqyt0.mjs +0 -2
  563. package/dist/chunks/cli-1.0.12-93c97gc0.mjs +0 -7
  564. package/dist/chunks/cli-1.0.12-9xrez673.mjs +0 -6
  565. package/dist/chunks/cli-1.0.12-a3wknc82.mjs +0 -3
  566. package/dist/chunks/cli-1.0.12-a761j1gv.mjs +0 -2
  567. package/dist/chunks/cli-1.0.12-afqp6ccg.mjs +0 -5
  568. package/dist/chunks/cli-1.0.12-anfbb1k6.mjs +0 -199
  569. package/dist/chunks/cli-1.0.12-aqhk0pnq.mjs +0 -2
  570. package/dist/chunks/cli-1.0.12-aqvexw12.mjs +0 -4
  571. package/dist/chunks/cli-1.0.12-ar5q5p8k.mjs +0 -3
  572. package/dist/chunks/cli-1.0.12-arptj6sc.mjs +0 -2
  573. package/dist/chunks/cli-1.0.12-asf0zhhk.mjs +0 -2
  574. package/dist/chunks/cli-1.0.12-aswy8n6q.mjs +0 -2
  575. package/dist/chunks/cli-1.0.12-b0xdgvm3.mjs +0 -2
  576. package/dist/chunks/cli-1.0.12-b2kkbfqv.mjs +0 -2
  577. package/dist/chunks/cli-1.0.12-b54efth7.mjs +0 -3
  578. package/dist/chunks/cli-1.0.12-b55xwv7c.mjs +0 -12
  579. package/dist/chunks/cli-1.0.12-bavasn2m.mjs +0 -2
  580. package/dist/chunks/cli-1.0.12-bhvkmj7j.mjs +0 -2
  581. package/dist/chunks/cli-1.0.12-bphdbsee.mjs +0 -20
  582. package/dist/chunks/cli-1.0.12-bwhry5d9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.12-bxrzeqxy.mjs +0 -2
  584. package/dist/chunks/cli-1.0.12-c3r1a6g5.mjs +0 -24
  585. package/dist/chunks/cli-1.0.12-c8eswgza.mjs +0 -2
  586. package/dist/chunks/cli-1.0.12-cdv6sj7q.mjs +0 -2
  587. package/dist/chunks/cli-1.0.12-ce2kb4jz.mjs +0 -2
  588. package/dist/chunks/cli-1.0.12-ce5a5631.mjs +0 -4
  589. package/dist/chunks/cli-1.0.12-cg6zadcf.mjs +0 -2
  590. package/dist/chunks/cli-1.0.12-ckpmw81j.mjs +0 -2
  591. package/dist/chunks/cli-1.0.12-crspnn4b.mjs +0 -6
  592. package/dist/chunks/cli-1.0.12-cveh4gy6.mjs +0 -34
  593. package/dist/chunks/cli-1.0.12-dcw582gx.mjs +0 -15
  594. package/dist/chunks/cli-1.0.12-ehp5ev2y.mjs +0 -2
  595. package/dist/chunks/cli-1.0.12-eptxz5fr.mjs +0 -2
  596. package/dist/chunks/cli-1.0.12-ets3kmf3.mjs +0 -2
  597. package/dist/chunks/cli-1.0.12-ev21p7g7.mjs +0 -1
  598. package/dist/chunks/cli-1.0.12-evtxsq88.mjs +0 -2
  599. package/dist/chunks/cli-1.0.12-f7s9vrvb.mjs +0 -2
  600. package/dist/chunks/cli-1.0.12-fc7czhyd.mjs +0 -2
  601. package/dist/chunks/cli-1.0.12-fr4x7p5q.mjs +0 -3
  602. package/dist/chunks/cli-1.0.12-fs27jw81.mjs +0 -59
  603. package/dist/chunks/cli-1.0.12-fs365rj0.mjs +0 -2
  604. package/dist/chunks/cli-1.0.12-fsgbmjzn.mjs +0 -2
  605. package/dist/chunks/cli-1.0.12-fttry6vt.mjs +0 -2
  606. package/dist/chunks/cli-1.0.12-g2qcnx8m.mjs +0 -2
  607. package/dist/chunks/cli-1.0.12-g2qsv3tc.mjs +0 -5494
  608. package/dist/chunks/cli-1.0.12-g6jjrjcj.mjs +0 -2
  609. package/dist/chunks/cli-1.0.12-gajn1gbg.mjs +0 -2
  610. package/dist/chunks/cli-1.0.12-gctwj61k.mjs +0 -4
  611. package/dist/chunks/cli-1.0.12-gd18f7hm.mjs +0 -2
  612. package/dist/chunks/cli-1.0.12-gden9vt3.mjs +0 -2
  613. package/dist/chunks/cli-1.0.12-gdjkhny3.mjs +0 -2
  614. package/dist/chunks/cli-1.0.12-geffmp8p.mjs +0 -2
  615. package/dist/chunks/cli-1.0.12-ggdecys5.mjs +0 -2
  616. package/dist/chunks/cli-1.0.12-gnjqhx0t.mjs +0 -3
  617. package/dist/chunks/cli-1.0.12-gvpmx85m.mjs +0 -58
  618. package/dist/chunks/cli-1.0.12-gz6fyqwk.mjs +0 -39
  619. package/dist/chunks/cli-1.0.12-gzdht3by.mjs +0 -2
  620. package/dist/chunks/cli-1.0.12-hcw51twk.mjs +0 -2
  621. package/dist/chunks/cli-1.0.12-hfjvcc88.mjs +0 -2
  622. package/dist/chunks/cli-1.0.12-hg7zn647.mjs +0 -2
  623. package/dist/chunks/cli-1.0.12-hhbfs4k4.mjs +0 -6
  624. package/dist/chunks/cli-1.0.12-hhr93g23.mjs +0 -2
  625. package/dist/chunks/cli-1.0.12-hkmqbg09.mjs +0 -2
  626. package/dist/chunks/cli-1.0.12-hqfw51ap.mjs +0 -4
  627. package/dist/chunks/cli-1.0.12-hs1b7q69.mjs +0 -2
  628. package/dist/chunks/cli-1.0.12-hxmg9ymn.mjs +0 -67
  629. package/dist/chunks/cli-1.0.12-j6jbtppw.mjs +0 -50
  630. package/dist/chunks/cli-1.0.12-jcpeegj0.mjs +0 -2
  631. package/dist/chunks/cli-1.0.12-jfhjds03.mjs +0 -2
  632. package/dist/chunks/cli-1.0.12-jfsy9ha5.mjs +0 -2
  633. package/dist/chunks/cli-1.0.12-jk3cz5bk.mjs +0 -2
  634. package/dist/chunks/cli-1.0.12-jv9bdyr3.mjs +0 -4
  635. package/dist/chunks/cli-1.0.12-jx132j1k.mjs +0 -25
  636. package/dist/chunks/cli-1.0.12-k1be9914.mjs +0 -12
  637. package/dist/chunks/cli-1.0.12-kamdx1jw.mjs +0 -2
  638. package/dist/chunks/cli-1.0.12-krksdpwy.mjs +0 -2
  639. package/dist/chunks/cli-1.0.12-krtzqxr0.mjs +0 -2
  640. package/dist/chunks/cli-1.0.12-kvbcb0np.mjs +0 -2
  641. package/dist/chunks/cli-1.0.12-kyxqyb1j.mjs +0 -2
  642. package/dist/chunks/cli-1.0.12-m46zb45g.mjs +0 -2
  643. package/dist/chunks/cli-1.0.12-m4ayadmp.mjs +0 -12
  644. package/dist/chunks/cli-1.0.12-mg5ma9ym.mjs +0 -15
  645. package/dist/chunks/cli-1.0.12-mx2xvdp9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.12-n1m3pwwf.mjs +0 -2
  647. package/dist/chunks/cli-1.0.12-nanfnkp2.mjs +0 -2
  648. package/dist/chunks/cli-1.0.12-nn3vf2hn.mjs +0 -2
  649. package/dist/chunks/cli-1.0.12-nqhqcsq6.mjs +0 -2
  650. package/dist/chunks/cli-1.0.12-nvvpna9m.mjs +0 -3
  651. package/dist/chunks/cli-1.0.12-p4ezzhhd.mjs +0 -8
  652. package/dist/chunks/cli-1.0.12-pp2g923k.mjs +0 -2
  653. package/dist/chunks/cli-1.0.12-pp47fwxq.mjs +0 -2
  654. package/dist/chunks/cli-1.0.12-pr30kcgz.mjs +0 -2
  655. package/dist/chunks/cli-1.0.12-q0r16q04.mjs +0 -2
  656. package/dist/chunks/cli-1.0.12-q5pm96yt.mjs +0 -2
  657. package/dist/chunks/cli-1.0.12-q6d6aqp0.mjs +0 -2
  658. package/dist/chunks/cli-1.0.12-q6k5vz5c.mjs +0 -15
  659. package/dist/chunks/cli-1.0.12-qawr9s3v.mjs +0 -2
  660. package/dist/chunks/cli-1.0.12-qdw94y1a.mjs +0 -2
  661. package/dist/chunks/cli-1.0.12-r0h1nfgc.mjs +0 -2
  662. package/dist/chunks/cli-1.0.12-r5xssak6.mjs +0 -3
  663. package/dist/chunks/cli-1.0.12-rkm9m5nr.mjs +0 -4
  664. package/dist/chunks/cli-1.0.12-rndzs6hs.mjs +0 -3
  665. package/dist/chunks/cli-1.0.12-rx65fdkz.mjs +0 -2
  666. package/dist/chunks/cli-1.0.12-s5nznhbh.mjs +0 -3
  667. package/dist/chunks/cli-1.0.12-s6we79nr.mjs +0 -17
  668. package/dist/chunks/cli-1.0.12-samztxet.mjs +0 -2
  669. package/dist/chunks/cli-1.0.12-sav2q0qa.mjs +0 -42
  670. package/dist/chunks/cli-1.0.12-t40ecqfd.mjs +0 -2
  671. package/dist/chunks/cli-1.0.12-tj9ktjsh.mjs +0 -24
  672. package/dist/chunks/cli-1.0.12-tj9rj5jy.mjs +0 -2
  673. package/dist/chunks/cli-1.0.12-tjbtefn3.mjs +0 -2
  674. package/dist/chunks/cli-1.0.12-trd4dn34.mjs +0 -2
  675. package/dist/chunks/cli-1.0.12-tv0c63rt.mjs +0 -2
  676. package/dist/chunks/cli-1.0.12-tz4cb805.mjs +0 -2
  677. package/dist/chunks/cli-1.0.12-v4dwzr3x.mjs +0 -17
  678. package/dist/chunks/cli-1.0.12-vaj96q9j.mjs +0 -2
  679. package/dist/chunks/cli-1.0.12-vr2x1cvb.mjs +0 -2
  680. package/dist/chunks/cli-1.0.12-w1kw41q7.mjs +0 -2
  681. package/dist/chunks/cli-1.0.12-w7rfasq3.mjs +0 -9
  682. package/dist/chunks/cli-1.0.12-w8y086m4.mjs +0 -25
  683. package/dist/chunks/cli-1.0.12-wex4dg02.mjs +0 -4
  684. package/dist/chunks/cli-1.0.12-wg1cqvtp.mjs +0 -2
  685. package/dist/chunks/cli-1.0.12-wjsws708.mjs +0 -2
  686. package/dist/chunks/cli-1.0.12-wk1q0n53.mjs +0 -2
  687. package/dist/chunks/cli-1.0.12-wrzpekwj.mjs +0 -2
  688. package/dist/chunks/cli-1.0.12-wvndtz51.mjs +0 -24
  689. package/dist/chunks/cli-1.0.12-wz7n2nsd.mjs +0 -2
  690. package/dist/chunks/cli-1.0.12-x10h3tbg.mjs +0 -2
  691. package/dist/chunks/cli-1.0.12-x4ep25h9.mjs +0 -4
  692. package/dist/chunks/cli-1.0.12-xkytf9yh.mjs +0 -2
  693. package/dist/chunks/cli-1.0.12-xttdsx6k.mjs +0 -2
  694. package/dist/chunks/cli-1.0.12-y1c7c1a1.mjs +0 -2
  695. package/dist/chunks/cli-1.0.12-y84rjfz7.mjs +0 -2
  696. package/dist/chunks/cli-1.0.12-yhv467zj.mjs +0 -2
  697. package/dist/chunks/cli-1.0.12-ynve21xv.mjs +0 -2
  698. package/dist/chunks/cli-1.0.12-ys1t2bxz.mjs +0 -2
  699. package/dist/chunks/cli-1.0.12-yxtwvta2.mjs +0 -2
  700. package/dist/chunks/cli-1.0.12-z3a8jcm9.mjs +0 -3
  701. package/dist/chunks/cli-1.0.12-z3c340m4.mjs +0 -2
  702. package/dist/chunks/cli-1.0.12-z623f1kc.mjs +0 -2
  703. package/dist/chunks/cli-1.0.12-z9h568zf.mjs +0 -2
  704. package/dist/chunks/cli-1.0.12-z9sfhfkz.mjs +0 -2
  705. package/dist/chunks/cli-1.0.12-zeamr7yd.mjs +0 -2
  706. package/dist/chunks/cli-1.0.12-zeyjdjny.mjs +0 -2
  707. package/dist/chunks/cli-1.0.12-zfc8ad9g.mjs +0 -2
  708. package/dist/chunks/cli-1.0.12-zh892bg0.mjs +0 -2
  709. package/dist/chunks/cli-1.0.12-zjxsxtgp.mjs +0 -2
  710. package/dist/chunks/client-1.0.12-byhwssfy.mjs +0 -1
  711. package/dist/chunks/color-1.0.12-r9qemzca.mjs +0 -1
  712. package/dist/chunks/compact-1.0.12-e026vahr.mjs +0 -3
  713. package/dist/chunks/config-1.0.12-bzczt66c.mjs +0 -1
  714. package/dist/chunks/config-1.0.12-spq7sz3g.mjs +0 -1
  715. package/dist/chunks/constants-1.0.12-wfre6b4q.mjs +0 -1
  716. package/dist/chunks/context-1.0.12-062jh3t1.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.12-2a33mwts.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.12-84yx1v9g.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.12-9p7nbsej.mjs +0 -1
  720. package/dist/chunks/copy-1.0.12-p0ehh4km.mjs +0 -9
  721. package/dist/chunks/cost-1.0.12-rp0mbkmr.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.12-wxq374vh.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.12-1xvzax9p.mjs +0 -1
  724. package/dist/chunks/debug-1.0.12-94hz3csj.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.12-xampkk9g.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.12-sjnz496g.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.12-ba7p74yk.mjs +0 -1
  728. package/dist/chunks/detection-1.0.12-a5q568s6.mjs +0 -1
  729. package/dist/chunks/diff-1.0.12-ndfx6mw0.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.12-n0w9na8y.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.12-9s7nqv0g.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.12-zysskqm6.mjs +0 -1
  733. package/dist/chunks/effort-1.0.12-fv5hhe7x.mjs +0 -10
  734. package/dist/chunks/engine-1.0.12-h8g4mgyb.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.12-dgzmkpm2.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.12-sdf1kcja.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.12-8q9ret6b.mjs +0 -1
  738. package/dist/chunks/environments-1.0.12-a3zhfbhz.mjs +0 -1
  739. package/dist/chunks/errors-1.0.12-ct15bef4.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.12-df1dw74e.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.12-xfr44c3a.mjs +0 -1
  742. package/dist/chunks/exit-1.0.12-zvdfr5b8.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.12-6y9xjy1q.mjs +0 -1
  744. package/dist/chunks/export-1.0.12-skd48sxc.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.12-xfmqjtpj.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.12-t1hm20j5.mjs +0 -1
  747. package/dist/chunks/fast-1.0.12-fhft5ey6.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.12-3nxarzk5.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.12-wd3zscn0.mjs +0 -1
  750. package/dist/chunks/git-1.0.12-vdgymgzx.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.12-4srnyf9v.mjs +0 -1
  752. package/dist/chunks/goal-1.0.12-h2359pb4.mjs +0 -4
  753. package/dist/chunks/grove-1.0.12-77sjjjn3.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.12-3n3fqtkt.mjs +0 -1
  755. package/dist/chunks/headless-1.0.12-yp3kbbxc.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.12-s91zbazj.mjs +0 -6
  757. package/dist/chunks/help-1.0.12-0xjr189z.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.12-ct9k5n1p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.12-3j1z9nnx.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.12-70mxcsxh.mjs +0 -1
  761. package/dist/chunks/ide-1.0.12-28njrjbk.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.12-6wgz5kvw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.12-jvjez1dn.mjs +0 -1
  764. package/dist/chunks/index-1.0.12-0da1bb49.mjs +0 -9
  765. package/dist/chunks/index-1.0.12-1e9j7vzg.mjs +0 -5
  766. package/dist/chunks/index-1.0.12-1mdaerd8.mjs +0 -1
  767. package/dist/chunks/index-1.0.12-24pswrth.mjs +0 -1
  768. package/dist/chunks/index-1.0.12-2v2em96v.mjs +0 -2
  769. package/dist/chunks/index-1.0.12-474c1qt4.mjs +0 -1
  770. package/dist/chunks/index-1.0.12-6mn5222v.mjs +0 -1
  771. package/dist/chunks/index-1.0.12-742qmav9.mjs +0 -1
  772. package/dist/chunks/index-1.0.12-7k7nz3zd.mjs +0 -1
  773. package/dist/chunks/index-1.0.12-9j0r9hj8.mjs +0 -1
  774. package/dist/chunks/index-1.0.12-b9j27arj.mjs +0 -1
  775. package/dist/chunks/index-1.0.12-bpttwsys.mjs +0 -9
  776. package/dist/chunks/index-1.0.12-c5e33bnp.mjs +0 -1
  777. package/dist/chunks/index-1.0.12-cqq21e0m.mjs +0 -2
  778. package/dist/chunks/index-1.0.12-cr5bmztw.mjs +0 -1
  779. package/dist/chunks/index-1.0.12-fmffckpa.mjs +0 -1
  780. package/dist/chunks/index-1.0.12-gq7wdwne.mjs +0 -1
  781. package/dist/chunks/index-1.0.12-hdkwtv7r.mjs +0 -30
  782. package/dist/chunks/index-1.0.12-hdncwsmp.mjs +0 -17
  783. package/dist/chunks/index-1.0.12-p087je6g.mjs +0 -1
  784. package/dist/chunks/index-1.0.12-v4fg3ddh.mjs +0 -1
  785. package/dist/chunks/index-1.0.12-vx8y4eyw.mjs +0 -1
  786. package/dist/chunks/index-1.0.12-wbyw0qj6.mjs +0 -1
  787. package/dist/chunks/init-1.0.12-z61mf946.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.12-x85m2bm7.mjs +0 -1
  789. package/dist/chunks/ink-1.0.12-zmy65h90.mjs +0 -1
  790. package/dist/chunks/insights-1.0.12-hmmb2hfq.mjs +0 -870
  791. package/dist/chunks/install-1.0.12-ayp0wk5h.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.12-gp77dd3x.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.12-r3sn5vy9.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.12-p992hkry.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.12-bpa40yg2.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.12-tzqxhe4y.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.12-4z117jz8.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.12-v4exfmej.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.12-33qj54es.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.12-3e1ay1bg.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.12-s7htccwt.mjs +0 -1
  802. package/dist/chunks/log-1.0.12-qerp8m38.mjs +0 -1
  803. package/dist/chunks/main-1.0.12-eegz9vfx.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.12-dsdjxx30.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.12-6dgfh9jp.mjs +0 -17
  806. package/dist/chunks/mcp-1.0.12-j2h3k7hg.mjs +0 -4
  807. package/dist/chunks/mcp-1.0.12-kp37svg1.mjs +0 -1
  808. package/dist/chunks/mcpb-1.0.12-ca16ddb6.mjs +0 -1
  809. package/dist/chunks/memory-1.0.12-0k08f6b4.mjs +0 -72
  810. package/dist/chunks/model-1.0.12-2z9t0e24.mjs +0 -2
  811. package/dist/chunks/model-1.0.12-avtsadm7.mjs +0 -1
  812. package/dist/chunks/node-1.0.12-5zcm6b49.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.12-t7s3r4ha.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.12-y35cxvtm.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.12-hwh89yg3.mjs +0 -1
  816. package/dist/chunks/package-ZZWOLTXM-1.0.12-jrq6q5gh.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.12-1ajk88cn.mjs +0 -1
  818. package/dist/chunks/parser-1.0.12-mnazf4dy.mjs +0 -1
  819. package/dist/chunks/passes-1.0.12-hvk4mc22.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.12-8mr0v1ms.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.12-bhr0jwb3.mjs +0 -3
  822. package/dist/chunks/plan-1.0.12-5bjaadcz.mjs +0 -1
  823. package/dist/chunks/plist-1.0.12-rkjbgan4.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.12-pxgt2afc.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.12-6gcazre9.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.12-m5w6j4w1.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.12-mf4w1185.mjs +0 -2
  828. package/dist/chunks/print-1.0.12-t6h31xzw.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.12-p99c9mr9.mjs +0 -1
  830. package/dist/chunks/process-1.0.12-514yxzk8.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.12-sg75g2bj.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.12-yc9eq6vv.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.12-0s0zhnqk.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.12-yxsmhgt0.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.12-0hkf5v5d.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.12-2s1b0744.mjs +0 -13
  837. package/dist/chunks/provider-1.0.12-br1hwfjc.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.12-1cvn3gk3.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.12-e5hn1s9f.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.12-2b1eehxk.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.12-3w6n3hvp.mjs +0 -34
  842. package/dist/chunks/registry-1.0.12-416j15rh.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.12-cjkaspwe.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.12-kn31ddrr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.12-wgzde32c.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.12-0c89q3s7.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.12-cs8aksk2.mjs +0 -1
  848. package/dist/chunks/rename-1.0.12-2a5n1bm7.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.12-1sgqwxsb.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.12-380zfnph.mjs +0 -1
  851. package/dist/chunks/resume-1.0.12-xfc2cbkb.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.12-r3d180dy.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.12-pfhteve9.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.12-05semed9.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.12-6ty9e1sb.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.12-3s3mg79e.mjs +0 -1
  857. package/dist/chunks/session-1.0.12-xx9k18d5.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.12-k0eh44q5.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.12-289cp1d9.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.12-af0sp63e.mjs +0 -1
  861. package/dist/chunks/settings-1.0.12-1kn5k4w3.mjs +0 -1
  862. package/dist/chunks/setup-1.0.12-sjx27cy2.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.12-s5jc7mhb.mjs +0 -1
  864. package/dist/chunks/skills-1.0.12-rz6jxa0g.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.12-p1sagjpt.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.12-0rynn7sy.mjs +0 -1
  867. package/dist/chunks/state-1.0.12-scv8d1ss.mjs +0 -1
  868. package/dist/chunks/stats-1.0.12-h73ksepe.mjs +0 -6
  869. package/dist/chunks/status-1.0.12-w3s8s4n7.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.12-tytep2cy.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.12-6kt4e9mh.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.12-ezrpv3cr.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.12-yg34czgd.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.12-0b71sedv.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.12-zq525vyn.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.12-z82kcb7p.mjs +0 -1
  877. package/dist/chunks/theme-1.0.12-1n4zhmvg.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.12-vegbsqqh.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.12-m2re0ysp.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.12-7k896ktz.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.12-1t7z9s8n.mjs +0 -1
  882. package/dist/chunks/tools-1.0.12-m1q30sx2.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.12-d1ec8tgn.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.12-gd906rm3.mjs +0 -69
  885. package/dist/chunks/types-1.0.12-bnkcne53.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.12-d94wevag.mjs +0 -4
  887. package/dist/chunks/update-1.0.12-42sky6mj.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.12-dmpc55bj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.12-nmk9n704.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.12-91ksccx0.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.12-dmb5xjpf.mjs +0 -1
  892. package/dist/chunks/usage-1.0.12-tjapt84n.mjs +0 -1
  893. package/dist/chunks/util-1.0.12-10z43mt9.mjs +0 -1
  894. package/dist/chunks/utils-1.0.12-w32argrx.mjs +0 -1
  895. package/dist/chunks/vim-1.0.12-wf8sb0mt.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.12-3dxe0717.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.12-7p840es5.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.12-0ym9ejj5.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.12-c270z4b2.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.12-zeqk2tcs.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.12-kmtt3k2w.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.12-wzaxf903.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.12-w5g65qpt.mjs → cli-1.0.13-4z6c4gzk.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.12-v6h16sq3.mjs → cli-1.0.13-ap2xrh2s.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.12-ecf1es2x.mjs → cli-1.0.13-d9nvpqpw.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.12-2sf9ww39.mjs → cli-1.0.13-n6bzzv7p.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.12-h16hfwe6.mjs → cli-1.0.13-q9et56bj.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.12-xya69wfx.mjs → cli-1.0.13-tzenmc0b.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.12-8yzsm0t1.mjs → cli-1.0.13-v34fp7gq.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.12-c9kgj61k.mjs → cli-1.0.13-wv7skbb9.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{YZ as T,ZZ as X,_Z as I,a0 as Y,b0 as p,o0 as v,p0 as Z,q0 as D}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as P,W3 as V}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as H}from"./cli-1.0.13-gsz0cygn.mjs";import{Hna as W,yqa as F}from"./cli-1.0.13-vwmq6bde.mjs";import{dsa as A,hsa as C}from"./cli-1.0.13-d9nvpqpw.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
+ export{u as Qh,M as Rh};
@@ -0,0 +1,2 @@
1
+ import{Qh as Vq,Rh as fq}from"./cli-1.0.13-p43t5py0.mjs";import{WX as Pq,XX as mq,jY as o,kY as pq,qY as Qq,sY as Uq,tY as Hq}from"./cli-1.0.13-3f0zqjp8.mjs";import{G0 as M,I0 as g,kZ as Sq,l1 as Wq}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as Z,V3 as F,W3 as Jq}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as _q}from"./cli-1.0.13-gsz0cygn.mjs";import{Dga as s,Ega as jq}from"./cli-1.0.13-x4xwa6y3.mjs";import{dsa as Lq,hsa as wq}from"./cli-1.0.13-d9nvpqpw.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
+ export{lq as oh,oq as ph,sq as qh,aq as rh,Tq as sh};
@@ -0,0 +1,2 @@
1
+ import{hsa as q}from"./cli-1.0.13-d9nvpqpw.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
+ export{x as ke,y as le,w as me};
@@ -0,0 +1,6 @@
1
+ import{Hh as e,Ih as qq,Jh as Jq,Kh as _q}from"./cli-1.0.13-e9q9245e.mjs";import{Lh as Zq,Mh as Pq}from"./cli-1.0.13-5sq4jbf1.mjs";import{Az as j,Bz as y,Fz as x}from"./cli-1.0.13-kr3d94dn.mjs";import{G0 as F,I0 as K,l1 as Iq}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as Y,V3 as L,W3 as Qq}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as m}from"./cli-1.0.13-gsz0cygn.mjs";import{Pca as r,V_ as w,X_ as h,Xca as Vq,c$ as f,f_ as I,g_ as t,u$ as Uq}from"./cli-1.0.13-p1nsb8ay.mjs";import{Gga as Xq,Hga as Mq,Vga as Eq}from"./cli-1.0.13-x4xwa6y3.mjs";import{dsa as R,hsa as D}from"./cli-1.0.13-d9nvpqpw.mjs";function p(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,V=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:V,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var u=D(()=>{x();b=R(m(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),V=q.join(`
2
+ `),X=J.join(`
3
+ `);O.useEffect(()=>{let v=!1;M(!0);async function G(){let N=V?V.split(`
4
+ `):[],_=X?X.split(`
5
+ `):[],E=(await Promise.all(_.map((B)=>h(B)))).flat(),P=w(E).filter((B)=>!N.includes(B)).sort((B,C)=>S(B).localeCompare(S(C))),k=w([...N,...P]),Yq=await Promise.all(k.map(async(B)=>{let[C,g,Aq]=await Promise.all([j(B),y(B),f(B)]);return{root:B,name:S(B),branch:Aq,files:C?p(C,g):[],hunks:g}}));if(!v)z(Yq),Z(k),M(!1)}return G().catch(()=>{if(!v)z([]),Z([]),M(!1)}),()=>{v=!0}},[V,X,U]);let W=O.useCallback(()=>H((v)=>v+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=D(()=>{Uq();x();u();O=R(m(),1)});import{basename as c}from"path";function n(q,J,$){if(q===0)return"";return J.join("")+($?vq:a)}function d(q){return{name:q,dirs:new Map,files:[]}}function Gq(q){let J=d("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=d(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function l(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>c(X.path).localeCompare(c(W.path))),V=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],v=W.name,G=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;v=`${v}/${P.name}`,G=`${G}/${P.name}`,W=P}let N=X===U.length-1&&!V,_=`${Q}\x00${G}`,E=z.has(_);if(A.push({kind:"dir",key:_,label:v,depth:$,collapsed:E,guides:n($,M,N)}),!E){let P=$>=1?[...M,N?Bq:a]:M;l(W,G,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],v=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:n($,M,v)})}}function Nq(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${r(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}l(Gq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var a="│ ",vq="└ ",Bq=" ";var i=D(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return T[Math.abs(J)%T.length]}function o(q){let J=T.length;return T[(q%J+J)%J]}var T;var s=D(()=>{T=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function $q(){let q=Zq();return{enabled:q,fileIcon:(J)=>q?Jq(J):"",folderIcon:(J)=>q?J?qq:e:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var zq=D(()=>{t();_q();Pq()});import{basename as Lq}from"path";function Dq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function JJ(q){return q.flatMap((J)=>J.files)}function ZJ({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo($q,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Dq(M,J,$),V=[];for(let X=U;X<H;X++){let W=q[X];V.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),V,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let N=J?`${z.pointer} `:" ",_=q.collapsed?I.triangleRight:I.triangleDown;return L(K,{dimColor:!J,bold:J,children:[`${N}${_} `,z.repoIcon&&Y(K,{color:o(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let N=q.collapsed?I.triangleRight:I.triangleDown,_=z.folderIcon(!q.collapsed),E=_?`${_} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=Mq(q.label,P);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${N} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),V=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,v=Math.max(4,$-U-X.length-(V?2:0)-W-1),G=Xq(Lq(q.file.path),v);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,V,Q&&!J?Y(K,{color:Q,children:G}):G]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq;var Tq=D(()=>{t();Iq();Eq();s();i();zq();Qq();Wq=R(m(),1)});
6
+ export{wq as eg,Hq as fg,$q as gg,zq as hg,hq as ig,s as jg,Nq as kg,i as lg,JJ as mg,ZJ as ng,Tq as og};
@@ -0,0 +1,2 @@
1
+ import{G0 as Y,I0 as u,kZ as u2,l1 as e2,tZ as Z}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as t,V3 as o,W3 as U}from"./cli-1.0.13-afdk25h0.mjs";import{gba as X,iba as j}from"./cli-1.0.13-p1nsb8ay.mjs";import{dsa as s}from"./cli-1.0.13-d9nvpqpw.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.13"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.13"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.0.13"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.0.13"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as ba};
@@ -0,0 +1,2 @@
1
+ import{Zd as Jq,be as Tq}from"./cli-1.0.13-3767t4yj.mjs";import{ie as zq,je as bq}from"./cli-1.0.13-vd01re4x.mjs";import{$n as n,AL as _q,EL as a,HL as l,LL as t,QL as e,SL as Rq,XH as u,YH as fq,ZL as qq,ao as yq,bM as Fq,gG as r,hG as Gq,lL as S,oL as Nq,rM as D,uM as Cq,zL as s}from"./cli-1.0.13-kr3d94dn.mjs";import{G0 as F,I0 as C,aZ as i,bZ as Kq,kZ as Bq,l1 as Oq}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as v,V3 as R,W3 as p}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as Lq}from"./cli-1.0.13-gsz0cygn.mjs";import{Baa as vq,eaa as x,j_ as g,k_ as Zq,qga as m,w$ as o,w_ as $,x$ as Hq,y_ as Xq,yga as wq}from"./cli-1.0.13-p1nsb8ay.mjs";import{_ja as B,bka as Yq}from"./cli-1.0.13-4dp5a597.mjs";import{Aka as h,Fka as Wq,xka as P}from"./cli-1.0.13-mazxedqg.mjs";import{dsa as d,hsa as Vq}from"./cli-1.0.13-d9nvpqpw.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Pd,Yz as Qd,Dq as Rd};
@@ -0,0 +1,17 @@
1
+ import{r7 as x,x7 as K}from"./cli-1.0.13-h5mwwv8w.mjs";import{Hda as J,xda as w}from"./cli-1.0.13-p1nsb8ay.mjs";import{Kha as I,yha as v}from"./cli-1.0.13-k4znag0a.mjs";import{Lka as q,Vka as G}from"./cli-1.0.13-6b6kn6sd.mjs";import{hsa as z}from"./cli-1.0.13-d9nvpqpw.mjs";function W(b){return b.type==="advisor_tool_result"||b.type==="server_tool_use"&&b.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let b=j();return k()&&!N()&&b.baseModel&&b.advisorModel?{baseModel:b.baseModel,advisorModel:b.advisorModel}:void 0}function Z(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function $(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(b){let h=b.iterations;if(!h)return[];return h.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as TU,k as UU,N as VU,X as WU,Z as XU,$ as YU,B as ZU,D as _U,F as $U,O as aV};
@@ -0,0 +1,50 @@
1
+ import{Fc as zc,Gc as on}from"./cli-1.0.13-dg21ms7f.mjs";import{Hc as Vh,Ic as jt,Jc as Vt,Kc as Oc,Mc as jn}from"./cli-1.0.13-z8vs7cc1.mjs";import{Nc as ft,Qc as Dn}from"./cli-1.0.13-a8t9066b.mjs";import{$H as xn,AG as zu,BG as Ru,CG as rn,Np as Mu,Op as Tu,Pp as Uu,Qp as Eu,Rp as nc,Sp as Ct,Tp as Xh,Up as Pu,Vp as Bu,Wp as Ln,XH as eh,Xp as Nh,YF as Xt,YH as jc,ZF as sh,Zp as ou,_H as In,_p as ac,_x as bc,aq as pu,ay as Pn,dq as ku,eq as An,fq as Lu,gG as S,gq as Qu,hG as Dc,hq as Nu,hx as Cc,iG as Bn,iq as Ju,ix as lc,jq as at,jx as rc,kq as Ah,kx as wc,lq as gn,lr as yc,lx as En,mq as Jh,mr as Un,oq as Gu,pq as mc,rq as Su,xG as bu,yG as ln,zG as Ou}from"./cli-1.0.13-kr3d94dn.mjs";import{iY as D,kY as Mn,wY as uc,xY as Tn}from"./cli-1.0.13-3f0zqjp8.mjs";import{G0 as F,I0 as y,l1 as Eh}from"./cli-1.0.13-mv57kk3c.mjs";import{A2 as oh,B2 as cc,C2 as ph,o2 as Ph,p2 as Bh,q2 as Ih,r2 as xh,s2 as Dh,t2 as xc,w2 as jh}from"./cli-1.0.13-93twxc7q.mjs";import{T3 as yt,U3 as n,V3 as z,W3 as Tt}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as Qt}from"./cli-1.0.13-gsz0cygn.mjs";import{s4 as Pt,t4 as qu}from"./cli-1.0.13-2z8q1mtz.mjs";import{D6 as Dt,J4 as Uh,L4 as Ic,V6 as Wn}from"./cli-1.0.13-h5mwwv8w.mjs";import{$ea as xt,Afa as bh,Bfa as ru,Cfa as wu,Dfa as Cn,Efa as Lh,Ffa as gu,Gfa as Qh,Ifa as Xu,Kfa as hc,Lfa as pt,Uea as tc,Vea as $t,Wea as Hn,Xea as ot,Yea as x,_ea as B,_fa as Kn,bfa as Jt,cfa as Fh,dfa as ut,efa as ct,f_ as qt,g_ as Sn,ifa as nt,jfa as _h,lfa as kh,pfa as Th,ufa as Oh,vfa as yu,wfa as Cu,xfa as Ut,yfa as zh,zfa as lu}from"./cli-1.0.13-p1nsb8ay.mjs";import{Nka as o,Vka as Et}from"./cli-1.0.13-6b6kn6sd.mjs";import{dsa as Lt,esa as Gn,hsa as I}from"./cli-1.0.13-d9nvpqpw.mjs";function pc(t,h=Ch,u){let a=x().find((w)=>w.provider==="openai"&&w.extras?.githubToken!==void 0);if(a){if(!ct(a.id,{provider:"openai",name:a.name,baseUrl:u||a.baseUrl,model:a.model||h,apiKey:t,extras:{...a.extras,githubToken:t}}))return{mode:"failed"};return nt(a.id),{mode:"updated"}}if(!ut({provider:"openai",name:"GitHub Copilot",baseUrl:u||oc,model:h,apiKey:t,extras:{githubToken:t}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function vh({onDone:t,onBack:h,onChangeAPIKey:u}){let a=jh()?.trim()?"already-authed":"menu",[C,w]=j.useState(a),[f,A]=j.useState(null),[$,R]=j.useState(""),[X,J]=j.useState(0),[Q,H]=j.useState(null),V=j.useCallback(async(i,Z=Ch,mt,N)=>{let P=oh(i,mt,N?.enterpriseDomain);if(!P.success){A(P.warning??"Could not save token to secure storage."),w("error");return}if(pc(i,Z,N?.baseUrl).mode==="failed"){A("Could not save the GitHub Copilot provider profile."),w("error");return}Uh(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),O=j.useCallback(async(i)=>{w("device-busy"),A(null),H(null);try{let Z=await Bh({domain:i});H({user_code:Z.user_code,verification_uri:Z.verification_uri}),await xh(Z.verification_uri);let mt=await Ih(Z.device_code,{initialInterval:Z.interval,timeoutSeconds:Z.expires_in,domain:i}),N=await Dh(mt,{domain:i});await V(N.token,Ch,mt,{baseUrl:N.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:i})}catch(Z){A(Z instanceof Error?Z.message:String(Z)),w("error")}},[V]);if(C==="already-authed")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot"}),n(y,{children:"You are already signed in to GitHub Copilot."}),n(y,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),n(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"back"}],onChange:(Z)=>{if(Z==="sign-in-again"){O();return}if(Z==="enterprise"){w("enterprise-domain");return}if(h){h();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="enterprise-domain")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Enterprise sign-in"}),n(y,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:">"}),n(Xt,{value:$,onChange:R,onSubmit:()=>{let Z=Ph($);if(!Z){O();return}O(Z)},onExit:()=>w(a),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:X,onChangeCursorOffset:J})]}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(C==="error"&&f)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"red",children:f}),n(S,{options:[{label:h?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(Z)=>{if(Z==="back"){if(h){h();return}w("menu"),A(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="device-busy")return z(F,{flexDirection:"column",gap:1,children:[n(y,{children:"GitHub Copilot sign-in"}),Q?z(yt,{children:[z(y,{children:["Enter code ",n(y,{bold:!0,children:Q.user_code})," at"," ",Q.verification_uri]}),n(y,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):n(y,{dimColor:!0,children:"Requesting device code from GitHub..."}),n(eh,{})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot setup"}),n(y,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),n(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(i)=>{if(i==="cancel"){if(h){h();return}t("GitHub onboard cancelled",{display:"system"});return}if(i==="enterprise"){w("enterprise-domain");return}O()}})]})}var j,Ch="github:copilot",oc="https://api.githubcopilot.com";var tu=I(()=>{Dc();jc();sh();Eh();xc();ph();Ic();Th();Tt();j=Lt(Qt(),1)});function uu(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function Nt(t,h){return h.some((u)=>t.includes(u))}function tn(t){return!Nt(uu(t),hu)}function hn(t){return t.find(tn)??null}function lh(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function un(t){return(t.quantizationLevel??t.name).toLowerCase()}function cn(t,h,u){if(t===null)return u.push("unknown size"),0;if(h==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(h==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function nn(t,h,u){let a=un(t);if(a.includes("q4"))return u.push("efficient Q4 quantization"),h==="latency"?8:4;if(a.includes("q5"))return u.push("balanced Q5 quantization"),h==="latency"?6:5;if(a.includes("q8"))return u.push("higher quality Q8 quantization"),h==="latency"?2:5;return 0}function an(t,h,u){if(h.score!==t.score)return h.score-t.score;let a=lh(t)??Number.POSITIVE_INFINITY,C=lh(h)??Number.POSITIVE_INFINITY;if(u==="latency")return a-C;if(u==="coding")return C-a;let w=14;return Math.abs(a-w)-Math.abs(C-w)}function rh(t,h){return t.map((u)=>{let a=uu(u),C=[],w=0;if(Nt(a,hu))w-=40,C.push("not a chat-first model");if(Nt(a,sc))w+=h==="coding"?24:h==="balanced"?10:4,C.push("coding-oriented model family");if(Nt(a,ec))w+=h==="latency"?4:h==="coding"?6:8,C.push("strong general-purpose model family");if(Nt(a,vc))w+=h==="latency"?2:6,C.push("chat/instruct tuned");if(a.includes("vision")||a.includes("vl"))w-=2,C.push("vision model adds extra overhead");w+=cn(lh(u),h,C),w+=nn(u,h,C);let f=C.slice(0,3).join(", ");return{...u,score:w,reasons:C,summary:f}}).sort((u,a)=>an(u,a,h))}function cu(t,h){return hn(rh(t,h))}var sc,ec,vc,hu;var nu=I(()=>{sc=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],ec=["llama","qwen","mistral","gemma","phi","deepseek"],vc=["instruct","chat","assistant"],hu=["embed","embedding","rerank","bge","whisper"]});function yn(t){let h=t.toLowerCase();return mn.some((u)=>h.includes(u))}function wh(t){try{let h=new URL(t);if(h.username)h.username="redacted";if(h.password)h.password="redacted";for(let u of h.searchParams.keys())if(yn(u))h.searchParams.set(u,"redacted");return h.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var mn;var au=I(()=>{mn=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function wn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URL(`${Oh}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",zh()),u.searchParams.append("redirect_uri",h),u.searchParams.append("scope",yu),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Cu),u.toString()}function bn(){return`<!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Codex Login Complete</title>
6
+ <style>
7
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
+ h1 { margin: 0 0 12px; font-size: 22px; }
9
+ p { margin: 0 0 10px; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>Codex login complete</h1>
14
+ <p>You can return to Claudin now.</p>
15
+ <p>Claudin will finish activating your new Codex OAuth login.</p>
16
+ </body>
17
+ </html>`}function On(t){return`<!doctype html>
18
+ <html lang="en">
19
+ <head>
20
+ <meta charset="utf-8" />
21
+ <title>Codex Login Failed</title>
22
+ <style>
23
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
+ h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
+ p { margin: 0 0 10px; }
26
+ </style>
27
+ </head>
28
+ <body>
29
+ <h1>Codex login failed</h1>
30
+ <p>${ru(t)}</p>
31
+ <p>You can close this window and try again in Claudin.</p>
32
+ </body>
33
+ </html>`}function mu(){return`<!doctype html>
34
+ <html lang="en">
35
+ <head>
36
+ <meta charset="utf-8" />
37
+ <title>Codex Login Cancelled</title>
38
+ <style>
39
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
+ h1 { margin: 0 0 12px; font-size: 22px; }
41
+ p { margin: 0 0 10px; }
42
+ </style>
43
+ </head>
44
+ <body>
45
+ <h1>Codex login cancelled</h1>
46
+ <p>You can close this window and retry in Claudin.</p>
47
+ </body>
48
+ </html>`}async function zn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:h,client_id:zh(),code_verifier:t.codeVerifier}),a=await fetch(`${Oh}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!a.ok){let R=await a.text().catch(()=>"");throw Error(R.trim()?`Codex OAuth token exchange failed (${a.status}): ${R.trim()}`:`Codex OAuth token exchange failed with status ${a.status}.`)}let C=await a.json(),w=Ut(C.access_token),f=Ut(C.refresh_token);if(!w||!f)throw Error("Codex OAuth completed, but the token response was missing credentials.");let A=Ut(C.id_token);return{apiKey:A?await wu(A).catch(()=>{return}):void 0,accessToken:w,refreshToken:f,idToken:A,accountId:bh(A)??bh(w)}}class Rh{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let h=Ou(),u=lu(),a=new bu("/auth/callback");this.authCodeListener=a,this.port=null;try{let C=await a.start(u);this.port=C;let w=Ru(),f=await zu(h),A=wn({port:C,codeChallenge:f,state:w});try{let $=await a.waitForAuthorization(w,async()=>{await t(A)}),R=new AbortController;this.tokenExchangeAbortController=R;let X;try{X=await zn({authorizationCode:$,codeVerifier:h,port:C,signal:R.signal})}finally{if(this.tokenExchangeAbortController===R)this.tokenExchangeAbortController=null}if(this.authCodeListener!==a)throw this.buildCancellationError();return a.handleSuccessRedirect([],(J)=>{J.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),J.end(bn())}),X}catch($){let R=this.authCodeListener===a?$:this.buildCancellationError();if(a.hasPendingResponse()){let X=R instanceof Error&&R.message==="Codex OAuth flow was cancelled.";a.handleErrorRedirect((J)=>{J.writeHead(X?200:400,{"Content-Type":"text/html; charset=utf-8"}),J.end(X?mu():On(R instanceof Error?R.message:String(R)))})}throw R}finally{this.cleanup()}}catch(C){let w=C instanceof Error?C.message:String(C);if(w.includes("EADDRINUSE")||w.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw C}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((h)=>{h.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),h.end(mu())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var Au=I(()=>{ln();rn();Cn()});function Rn(){return new Rh}function $u(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Rn,a=t.deps?.openBrowser??Pt,C=t.deps?.saveCodexCredentials??gu,w=t.deps?.isBareMode??o,[f,A]=Bt.useState({state:"starting"});return Bt.useEffect(()=>{if(w()){A({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startOAuthFlow(async(X)=>{if($)return;A({state:"waiting",authUrl:X,browserOpened:null});let J=await a(X);if($)return;A({state:"waiting",authUrl:X,browserOpened:J})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=C({apiKey:X.apiKey,accessToken:X.accessToken,refreshToken:X.refreshToken,idToken:X.idToken,accountId:X.accountId,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;A({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,w,h,a,C]),f}var Bt;var fu=I(()=>{Au();qu();Xu();Et();Bt=Lt(Qt(),1)});function du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ku()}}function _u(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function fn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Fn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Qu,{method:"POST",headers:du(),body:new URLSearchParams({client_id:Ah(),scope:Ju}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`xAI device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=at(C.device_code),f=at(C.user_code),A=at(C.verification_uri);if(!w||!f||!A)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:at(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:Zu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Vu/1000}}async function _n(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??fn,C=h?.now??(()=>Date.now()),w=_u(t.expires_in,Zu),f=C()+w,A=Math.max(_u(t.interval,Vu),Xn);while(C()<f){if(h?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let $=await u(Lu,{method:"POST",headers:du(),body:new URLSearchParams({grant_type:Nu,client_id:Ah(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=at(Q.access_token),V=at(Q.refresh_token);if(!H||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600;return{accessToken:H,refreshToken:V,idToken:at(Q.id_token),expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+qn,$n),await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(R.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`xAI device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("xAI device authorization timed out.")}class gh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Fn({signal:h.signal});return await t(u),await _n(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Vu=5000,Xn=1000,qn=5000,$n=60000,Zu=300000,Fu=3000;var Yu=I(()=>{An();gn()});function kn(){return new gh}function Hu(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??kn,a=t.deps?.saveXaiCredentials??Gu,C=t.deps?.isBareMode??o,[w,f]=It.useState({state:"starting"});return It.useEffect(()=>{if(C()){f({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let A=!1,$=u();return $.startDeviceFlow(async(R)=>{if(A)return;f({state:"waiting",userCode:R.user_code,verificationUri:R.verification_uri,verificationUriComplete:R.verification_uri_complete})}).then(async(R)=>{if(A)return;await h(R,(J)=>{let Q=a({accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,expiresAt:R.expiresAt,profileId:J?.profileId});if(!Q.success)throw Error(Q.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(A)return;f({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{A=!0,$.cleanup()}},[u,C,h,a]),w}var It;var Ku=I(()=>{Yu();Et();Su();It=Lt(Qt(),1)});async function Du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":Eu,...await Bu()}}function iu(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function Vn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Zn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Mu,{method:"POST",headers:await Du(),body:new URLSearchParams({client_id:Xh()}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`Kimi device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=Ct(C.device_code),f=Ct(C.user_code),A=Ct(C.verification_uri);if(!w||!f||!A)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:Ct(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:xu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Iu/1000}}async function dn(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??Vn,C=h?.now??(()=>Date.now()),w=iu(t.expires_in,xu),f=C()+w,A=Math.max(iu(t.interval,Iu),Qn);while(C()<f){if(h?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let $=await u(Tu,{method:"POST",headers:await Du(),body:new URLSearchParams({grant_type:Uu,client_id:Xh(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=Ct(Q.access_token),V=Ct(Q.refresh_token);if(!H||!V)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:900;return{accessToken:H,refreshToken:V,expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+Nn,Jn),await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(R.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`Kimi device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("Kimi device authorization timed out.")}class qh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Zn({signal:h.signal});return await t(u),await dn(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var Iu=5000,Qn=1000,Nn=5000,Jn=60000,xu=1800000,Wu=3000;var ju=I(()=>{Ln();Pu()});function Yn(){return new qh}function su(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Yn,a=t.deps?.saveKimiCredentials??ou,C=t.deps?.isBareMode??o,[w,f]=lt.useState({state:"starting"}),A=lt.useRef(!1);return lt.useEffect(()=>{if(C()){f({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startDeviceFlow(async(X)=>{if($)return;f({state:"waiting",userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=a({accessToken:X.accessToken,refreshToken:X.refreshToken,expiresAt:X.expiresAt,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;f({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,C,h,a]),lt.useEffect(()=>{if(w.state!=="waiting")return;if(A.current)return;let $=w.verificationUriComplete??w.verificationUri;if(!$)return;A.current=!0,Pt($).catch(()=>{})},[w]),w}var lt;var eu=I(()=>{ju();qu();Et();pu();lt=Lt(Qt(),1)});function ca(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function na(t){let h=ot(t);return{name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""}}function aa(t){let h={};for(let u of t.split(/\r?\n/)){let a=u.trim();if(!a)continue;let C=a.indexOf(":");if(C<=0)continue;let w=a.slice(0,C).trim(),f=a.slice(C+1).trim();if(w&&f)h[w]=f}return h}function ma(t){if(!t)return"";return Object.entries(t).map(([h,u])=>`${h}: ${u}`).join(`
49
+ `)}function ya(t,h){let u={},a=t.awsRegion?.trim();if(a)u.awsRegion=a;let C=t.gcpProject?.trim();if(C)u.gcpProject=C;let w=t.gcpRegion?.trim();if(w)u.gcpRegion=w;let f=t.azureResource?.trim();if(f)u.azureResource=f;let A=aa(h);if(Object.keys(A).length>0)u.customHeaders=A;return Object.keys(u).length>0?u:void 0}function la(t,h){let u=h?" (active)":"",a=t.apiKey?"key set":"no key",C=t.provider==="anthropic"?"anthropic":"openai-compatible",w=tc(t.model),f=w.length<=3?w.join(", "):`${w[0]}, ${w[1]} + ${w.length-2} more`;return`${C} · ${t.baseUrl} · ${f} · ${a}${u}`}function ra(t,h){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${wh(h)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function wa(t,h){if(t.state==="unreachable")return`Could not reach Ollama at ${wh(h)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let u=t.probeModel??"the selected model",a=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${a} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function fh(t,h){if(!h)return;return t.find((u)=>u.id===h)}function vu(t,h){return Boolean(t&&h&&t.id===h)}function ba(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===Zh&&!u.apiKey)}function Oa(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===pt&&!u.apiKey)}function za(t,h){return t.find((u)=>u.provider==="anthropic"&&u.baseUrl===h&&!u.apiKey)}function Ra({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=$u({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Codex OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Codex OAuth"}),n(y,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),a.state==="starting"?n(y,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):a.browserOpened===!1?z(yt,{children:[n(y,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),n(y,{children:a.authUrl})]}):a.browserOpened===!0?z(yt,{children:[n(y,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),n(y,{children:a.authUrl})]}):n(y,{dimColor:!0,children:"Opening your browser..."}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Aa({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=Hu({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"xAI OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from xAI..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t);let a=su({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from Kimi..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Vm({mode:t,onDone:h}){let u=bc(),[a,C]=g.useState([]),[w,f]=g.useState(),[A,$]=g.useState(),[R,X]=g.useState(!1),[J,Q]=g.useState(),H=g.useRef(0),[V,O]=g.useState(t==="first-run"?"select-preset":"menu"),[wt,i]=g.useState(null),[Z,mt]=g.useState("openai"),[N,P]=g.useState(()=>na("ollama")),[Zt,dt]=g.useState({}),[dh,st]=g.useState(""),[Rc,Ac]=g.useState(0),[gc,Xc]=g.useState(0),[et,Yh]=g.useState(null),[bt,Ft]=g.useState(0),[Ot,p]=g.useState(0),[qc,s]=g.useState(0),[Gh,Y]=g.useState(),[zt,_]=g.useState(),[$c,fc]=g.useState(),[Sh,Yt]=g.useState(!1),[_t,kt]=g.useState(),[e,Gt]=g.useState({state:"idle"}),[v,St]=g.useState({state:"idle"}),[tt,vt]=g.useState({state:"idle"}),[Fc,_c]=g.useState(!0),[kc,E]=g.useState(!1),th=g.useRef(!1),[hh,uh]=g.useState(()=>Vt()),[Hh,Lc]=g.useState(()=>Oc());g.useEffect(()=>{queueMicrotask(()=>{let c=x(),m=B()?.id;C(c),f(m),$(xt()),Q(Fh()),X(Jt()),_c(!1)})},[]);let Rt=rt[Ot]??rt[0],Ht=Rt.key,Qc=N[Ht],ch=a.length>0,Kt=ch,Kh=g.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:J?`Currently: ${a.find((c)=>c.id===J)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!Kt},{value:"activate-project",label:"Set active provider (Project)",description:A?`Currently: ${a.find((c)=>c.id===A)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!Kt},...R?[{value:"clear-project-override",label:"Clear project provider override",description:A?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!ch},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Kt},...Sh?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Kt,ch,Sh,hh,J,A,a]),nh=g.useCallback(()=>{if(o()){H.current+=1,Yt(!1),kt(void 0);return}let c=++H.current;(async()=>{let m=await Lh();if(c!==H.current)return;Yt(Boolean(m?.apiKey||m?.accessToken||m?.refreshToken||m?.idToken)),kt(m?.profileId)})()},[]);g.useEffect(()=>{return nh(),()=>{H.current+=1}},[nh]),g.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Gt({state:"loading"}),(async()=>{let m=await wc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)Gt({state:"unavailable",message:wa(m,N.baseUrl)});return}let l=rh(m.models,"balanced"),r=cu(m.models,"balanced");if(!c)Gt({state:"ready",defaultValue:r?.name??l[0]?.name,options:l.map((b)=>({label:b.name,value:b.name,description:b.summary}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return St({state:"loading"}),(async()=>{let m=await rc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)St({state:"unavailable",message:ra(m,N.baseUrl)});return}if(!c)St({state:"ready",defaultValue:m.models[0],options:m.models.map((l)=>({label:l,value:l}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-openai-model")return;let c=!1;return vt({state:"loading"}),(async()=>{let m=await Cc({baseUrl:N.baseUrl,apiKey:N.apiKey||void 0});if(c)return;if(!m||m.length===0){vt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:l,defaultValue:r}=lc(m,N.model);vt({state:"ready",options:l,defaultValue:r})})(),()=>{c=!0}},[N.baseUrl,N.apiKey,V]);function K(){if(th.current)return;th.current=!0,queueMicrotask(()=>{let c=x();C(c),f(B()?.id),$(xt()),Q(Fh()),X(Jt()),nh(),th.current=!1})}function At(){return null}function ah(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function mh(c){if(c?.accessToken&&c.accountId)return null;let m=await Lh();if(!m)return"stored Codex OAuth credentials could not be loaded";if(!m.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function Wh(){yc()}async function Nc(c){let m="provider";E(!0),Y("Activating provider...");try{await new Promise((ht)=>queueMicrotask(ht));let l=Jt(),r=nt(c);if(!r){_("Could not change active provider."),E(!1),L();return}let b=l?B()??r:r,q=$t(b.model)||Dt();if(!l)u((ht)=>({...ht,mainLoopModel:q,mainLoopModelForSession:null}));m=r.name;let k=At(),d=vu(r,_t),T=d?await mh():null;K();let U=l&&b.id!==r.id?` (project override still active — this project keeps using ${b.name}; use "Clear project provider override" to apply the new default here)`:"",W=d?ah({prefix:`Active provider: ${r.name}${U}`,activationWarning:T,warnings:[T,k?`could not clear startup provider override (${k})`:null].filter((ht)=>Boolean(ht))}):k?`Active provider: ${r.name}${U}. Warning: could not clear startup provider override (${k}).`:`Active provider: ${r.name}${U}`;Y(W),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:q,message:`Provider switched to ${r.name} (${q})`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish activating ${m}: ${r}`),L()}}async function Jc(){E(!0),Y("Clearing project provider override...");try{await new Promise((m)=>queueMicrotask(m)),_h(null),K();let c=B();if(c){let m=$t(c.model)||Dt();ft(),u((l)=>({...l,mainLoopModel:m,mainLoopModelForSession:null})),Y(`Project override cleared. Using global default: ${c.name}.`),E(!1),h({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:m,message:`Project override cleared — using ${c.name} (${m})`}),L()}else Y("Project provider override cleared. No global default set."),E(!1),h({action:"saved",message:"Project provider override cleared. No global default set."}),L()}catch(c){K(),Y(void 0),E(!1);let m=c instanceof Error?c.message:String(c);_(`Could not clear project provider override: ${m}`),L()}}async function Vc(c){let m="provider";E(!0),Y("Setting provider for this project...");try{await new Promise((W)=>queueMicrotask(W));let l=xt(),r=_h(c);if(!r){_("Could not set project provider override."),E(!1),L();return}let b=$t(r.model)||Dt();if(l===r.id)ft();u((W)=>({...W,mainLoopModel:b,mainLoopModelForSession:null})),m=r.name;let q=At(),k=vu(r,_t),d=k?await mh():null;K();let T=`Active provider for this project: ${r.name}. Other projects keep the global default.`,U=k?ah({prefix:T,activationWarning:d,warnings:[d,q?`could not clear startup provider override (${q})`:null].filter((W)=>Boolean(W))}):q?`${T} Warning: could not clear startup provider override (${q}).`:T;Y(U),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:b,message:`Provider switched to ${r.name} (${b}) for this project`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish setting ${m} for this project: ${r}`),L()}}function L(){fc("done"),O("menu")}function Wt(c){h({action:"cancelled",message:c})}function ih(c){let m=ot(c),l={name:m.name,baseUrl:m.baseUrl,model:m.model,apiKey:m.apiKey??""};if(i(null),mt(m.provider??"openai"),P(l),dt({}),st(""),Yh(c),p(0),Ft(0),s(l.name.length),_(void 0),c==="ollama"){Gt({state:"loading"}),O("select-ollama-model");return}if(c==="atomic-chat"){St({state:"loading"}),O("select-atomic-chat-model");return}if(c==="anthropic"){O("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){O("cloud-extras");return}O("form")}function Zc(c){let m=a.find((r)=>r.id===c);if(!m)return;let l=ca(m);i(c),mt(m.provider??"openai"),P(l),dt({awsRegion:m.extras?.awsRegion,gcpProject:m.extras?.gcpProject,gcpRegion:m.extras?.gcpRegion,azureResource:m.extras?.azureResource}),st(ma(m.extras?.customHeaders)),Yh(null),p(0),Ft(0),s(l.name.length),_(void 0),O("form")}function it(c=N){let m=ya(Zt,dh),l={provider:Z,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:m},r=wt?ct(wt,l):ut(l,{makeActive:!0});if(!r){_("Could not save provider. Fill all required fields.");return}let b=B()?.id===r.id;if(b)ft(),u((U)=>({...U,mainLoopModel:$t(r.model),mainLoopModelForSession:null}));let q=b?At():null;K();let k=!wt&&Jt()&&!b,d=k?B()?.name??"override target":null,T=wt?`Updated provider: ${r.name}`:k?`Added provider: ${r.name} (now global default — project keeps using ${d}; use "Clear project provider override" to apply here)`:`Added provider: ${r.name} (now active)`;if(Y(q?`${T}. Warning: could not clear startup provider override (${q}).`:T),t==="first-run"){h({action:"saved",activeProfileId:r.id,message:`Provider configured: ${r.name}`});return}i(null),p(0),_(void 0),L()}function dc(){if(v.state==="loading"||v.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),n(y,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(v.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Atomic Chat setup"}),n(y,{dimColor:!0,children:v.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),n(y,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),n(S,{options:v.options,defaultValue:v.defaultValue,defaultFocusValue:v.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,v.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function Yc(){if(e.state==="loading"||e.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Ollama"}),n(y,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(e.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Ollama setup"}),n(y,{dimColor:!0,children:e.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Ollama model"}),n(y,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),n(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function gt(c){let m=rt.findIndex((l)=>l.key===c);p(m<0?0:m),s(N[c].length),_(void 0),O("form")}function Gc(){if(tt.state==="loading"||tt.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Fetching models"}),n(y,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),n(y,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(tt.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:tt.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(l)=>{if(l==="manual"){gt("model");return}gt("apiKey")},onCancel:()=>gt("apiKey"),visibleOptionCount:2})]});let c=[...tt.options,{value:$h,label:"Enter a model id manually",description:"Type an id the provider did not list"}],m=tt.defaultValue??$h;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),n(S,{options:c,defaultValue:m,defaultFocusValue:m,inlineDescriptions:!0,visibleOptionCount:Math.min(8,c.length),onChange:(l)=>{if(l===$h){gt("model");return}let r={...N,model:l};P(r),Mh(r)},onCancel:()=>gt("apiKey")}),n(y,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Mh(c){if(et==="anthropic"||et==="custom"){P(c),O("custom-headers");return}it(c)}function Sc(c){let m=c.trim();if(!Rt.optional&&m.length===0){_(`${Rt.label} is required.`);return}let l={...N,[Ht]:m};if(P(l),_(void 0),Ot<rt.length-1){let r=Ot+1,b=rt[r]?.key??"name";if(b==="model"&&!pn.has(Z)&&l.baseUrl.trim().length>0){O("select-openai-model");return}p(r),s(l[b].length);return}Mh(l)}function Hc(){if(_(void 0),Ot>0){let c=Ot-1,m=rt[c]?.key??"name";p(c),s(N[m].length);return}if(t==="first-run"){O("select-preset");return}L()}D("confirm:no",Hc,{context:"Settings",isActive:V==="form"}),D("confirm:no",()=>gt("model"),{context:"Settings",isActive:V==="select-openai-model"&&(tt.state==="loading"||tt.state==="idle")});function Kc(){if(_(void 0),bt>0){Ft(bt-1);return}O("select-preset")}D("confirm:no",Kc,{context:"Settings",isActive:V==="cloud-extras"}),D("confirm:no",()=>O("form"),{context:"Settings",isActive:V==="custom-headers"}),D("confirm:no",()=>O("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"||V==="kimi-auth-choice"}),D("confirm:no",()=>O("kimi-auth-choice"),{context:"Settings",isActive:V==="kimi-oauth"});function Wc(){let c=!o(),m=[...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),n(y,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),n(S,{options:m,onChange:(l)=>{if(l==="skip"){Wt("Provider setup skipped");return}if(l==="codex-oauth"){O("codex-oauth");return}if(l==="xai-oauth"){O("xai-oauth");return}if(l==="moonshotai"){O("kimi-auth-choice");return}if(l==="github-onboard"){O("github-onboard");return}if(l==="import-legacy"){(async()=>{let r=await Vh({force:!0});uh(Vt()),K();let b=jt(r);if(r.errors.length>0){_(b);return}let q=B();if(t==="first-run"&&q){h({action:"saved",activeProfileId:q.id,activeProviderName:q.name,activeProviderModel:q.model,message:b});return}if(Y(b),_(void 0),t==="manage")L()})();return}ih(l)},onCancel:()=>{if(t==="first-run"){Wt("Provider setup skipped");return}L()},visibleOptionCount:Math.min(13,m.length)})]})}function ic(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("anthropic-oauth");return}if(c==="apiKey"){O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Mc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("kimi-oauth");return}if(c==="apiKey"){ih("moonshotai");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Tc(){let c=(xn(),Gn(In)).ConsoleOAuthFlow;return n(F,{flexDirection:"column",gap:1,children:n(c,{mode:"login",onDone:()=>{let m=ot("anthropic"),l={provider:"anthropic",name:m.name,baseUrl:m.baseUrl,model:m.model},r=za(x(),m.baseUrl),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("OAuth completed, but the Anthropic profile could not be saved."),O("select-preset");return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("OAuth completed, but the Anthropic profile could not be set as the startup provider."),O("select-preset");return}let k=`Anthropic OAuth configured: ${q.name}`;if(K(),t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}})})}function Uc(){let c=et;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let m=Ca[c],l=m[bt]??m[0],r=Zt[l.key]??"";function b(q){let k=q.trim();if(k.length===0){_(`${l.label} is required.`);return}let d={...Zt,[l.key]:k};if(dt(d),_(void 0),bt<m.length-1){Ft(bt+1);return}Ft(0),O("form")}return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),n(y,{dimColor:!0,children:l.helpText}),z(y,{dimColor:!0,children:["Step ",bt+1," of ",m.length,": ",l.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:r,onChange:(q)=>dt((k)=>({...k,[l.key]:q})),onSubmit:b,focus:!0,showCursor:!0,placeholder:`${l.placeholder}${qt.ellipsis}`,columns:80,cursorOffset:Rc,onChangeCursorOffset:Ac})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ec(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Custom headers (optional)"}),z(y,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",n(y,{children:"Header: Value"}),". Leave empty to skip."]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:dh,onChange:st,onSubmit:()=>it(N),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:gc,onChangeCursorOffset:Xc})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function Pc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:wt?"Edit provider profile":"Create provider profile"}),n(y,{dimColor:!0,children:Rt.helpText}),z(y,{dimColor:!0,children:["Provider type:"," ",Z==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),z(y,{dimColor:!0,children:["Step ",Ot+1," of ",rt.length,": ",Rt.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:Qc,onChange:(c)=>P((m)=>({...m,[Ht]:c})),onSubmit:Sc,focus:!0,showCursor:!0,placeholder:`${Rt.placeholder}${qt.ellipsis}`,mask:Ht==="apiKey"?"*":void 0,columns:80,cursorOffset:qc,onChangeCursorOffset:s})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Bc(){let c=a.length>0,m=c;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Provider manager"}),n(y,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),Gh&&n(y,{children:Gh}),n(F,{flexDirection:"column",children:a.length===0?n(y,{dimColor:!0,children:"No provider profiles configured yet."}):a.map((l)=>z(y,{dimColor:!0,children:["- ",l.name,": ",la(l,l.id===w)]},l.id))}),n(S,{options:Kh,onChange:(l)=>{switch(_(void 0),l){case"add":O("select-preset");break;case"import-legacy":{(async()=>{let r=await Vh({force:!0});if(uh(Vt()),K(),r.errors.length>0)_(jt(r));else Y(jt(r))})();break}case"activate":if(m)O("select-active");break;case"activate-project":if(m)O("select-active-project");break;case"clear-project-override":Jc();break;case"edit":if(c)O("select-edit");break;case"delete":if(m)O("select-delete");break;case"logout-codex-oauth":{let r=Qh();if(!r.success){_(r.warning??"Could not clear Codex OAuth credentials.");break}Yt(!1),kt(void 0);let b=fh(x(),_t),q=null;if(b){let k=kh(b.id);if(!k.removed){_("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),K();break}Wh(),q=k.activeProfileId?At():null}K(),Y(q?`Codex OAuth logged out. Warning: could not clear startup provider override (${q}).`:"Codex OAuth logged out.");break}default:Wt("Provider manager closed");break}},onCancel:()=>Wt("Provider manager closed"),defaultFocusValue:$c,visibleOptionCount:Kh.length})]})}function Mt(c,m,l){let r=a.map((b)=>{let q=[];if(b.id===w)q.push("active");if(A&&b.id===A)q.push("this project");if(J&&b.id===J)q.push("global default");let k=q.length>0?` (${q.join(", ")})`:"";return{value:b.id,label:`${b.name}${k}`,description:`${b.provider==="anthropic"?"anthropic":"openai-compatible"} · ${b.baseUrl} · ${b.model}`}});if(r.length===0)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(y,{dimColor:!0,children:m}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>L(),onCancel:()=>L(),visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(S,{options:r,onChange:l,onCancel:()=>L(),visibleOptionCount:Math.min(10,Math.max(2,r.length))})]})}let G;switch(V){case"select-preset":G=Wc();break;case"select-ollama-model":G=Yc();break;case"select-openai-model":G=Gc();break;case"select-atomic-chat-model":G=dc();break;case"codex-oauth":G=n(Ra,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:sn,baseUrl:hc,model:en,apiKey:""},r=fh(x(),_t),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Codex OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Codex OAuth login finished, but the provider could not be set as the startup provider."),L();return}m({profileId:b.id});let k=At(),d=await mh(c);Yt(!0),kt(b.id),K();let T=[d,k?`could not clear startup provider override (${k})`:null].filter((W)=>Boolean(W)),U=ah({prefix:"Codex OAuth configured",activationWarning:d,warnings:T});if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:U});return}Y(U),_(void 0),L()}});break;case"xai-oauth":G=n(Aa,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:vn,baseUrl:pt,model:ta,apiKey:""},r=Oa(x(),Jh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("xAI OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("xAI OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"kimi-auth-choice":G=Mc();break;case"kimi-oauth":G=n(ga,{onBack:()=>O("kimi-auth-choice"),onConfigured:async(c,m)=>{let l={provider:"openai",name:ha,baseUrl:Zh,model:ua,apiKey:""},r=ba(x(),Nh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Kimi Code OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="Kimi Code configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"github-onboard":G=n(vh,{onDone:(c)=>{if(c)Y(c),_(void 0);K(),L()},onBack:()=>O("select-preset"),onChangeAPIKey:K});break;case"anthropic-auth-choice":G=ic();break;case"anthropic-oauth":G=Tc();break;case"cloud-extras":G=Uc();break;case"custom-headers":G=Ec();break;case"form":G=Pc();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Nc(c)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(c)=>{Vc(c)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(c)=>{Zc(c)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(c)=>{let m=a.find((W)=>W.id===c),l=m?.provider==="openai"&&m?.extras?.githubToken!==void 0,r=fh(a,_t)?.id===c,b=Jh()?.profileId,q=m?.provider==="openai"&&m.baseUrl===pt&&!m.apiKey&&b===c,k=Nh()?.profileId,d=m?.provider==="openai"&&m.baseUrl===Zh&&!m.apiKey&&k===c,T=B()?.id===c,U=kh(c);if(!U.removed)_("Could not delete provider.");else{let W=[];if(r){let M=Qh();if(!M.success)W.push(M.warning??"could not clear Codex OAuth credentials");else kt(void 0);Wh()}if(l){let M=cc();if(!M.success)W.push(M.warning??"could not clear GitHub Copilot token")}if(q){let M=mc();if(!M.success)W.push(M.warning??"could not clear xAI OAuth credentials")}if(d){let M=ac();if(!M.success)W.push(M.warning??"could not clear Kimi Code OAuth credentials")}let ht=U.activeProfileId?At():null;if(ht)W.push(`could not clear startup provider override (${ht})`);if(K(),T){let M=B();if(M)ft(),u((yh)=>({...yh,mainLoopModel:$t(M.model),mainLoopModelForSession:null}));else ft(),u((yh)=>({...yh,mainLoopModel:null,mainLoopModelForSession:null}))}Y(W.length>0?`Provider deleted. Warning: ${W.join("; ")}.`:"Provider deleted")}L()});break;case"menu":default:G=Bc();break}return z(uc,{color:"permission",children:[n(zc,{enabled:Hh,onDismiss:(c)=>{uh(Vt()),Lc(!1),K();let m=B();if(c==="migrated"&&t==="first-run"&&m)h({action:"saved",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:m.model})}}),Hh?null:Fc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Loading providers..."}),n(y,{dimColor:!0,children:"Reading provider profiles from disk."})]}):kc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Activating provider..."}),n(y,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var g,rt,$h="\x00__manual__",pn,sn="Codex OAuth",en="codexplan",vn="xAI / Grok (OAuth)",ta="grok-4",ha="Moonshot AI",ua,Zh="https://api.kimi.com/coding/v1",Ca;var Xa=I(()=>{Sn();tu();Kn();Eh();Mn();Pn();Dn();Xu();Et();Hn();Wn();Un();Th();ph();En();nu();au();Bn();Tn();on();sh();fu();Ku();eu();Su();pu();Pu();jn();Tt();g=Lt(Qt(),1),rt=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],pn=new Set(["anthropic","bedrock","vertex","foundry"]),ua=nc;Ca={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
+ export{wh as Ac,au as Bc,aa as Cc,Vm as Dc,Xa as Ec};
@@ -0,0 +1,2 @@
1
+ import{Vra as p,Wra as a}from"./cli-1.0.13-9bh8f53y.mjs";import{fsa as i}from"./cli-1.0.13-d9nvpqpw.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as n9};
@@ -0,0 +1,2 @@
1
+ import{kd as z,ld as K}from"./cli-1.0.13-gd9e7w43.mjs";import{uK as w,wK as J}from"./cli-1.0.13-kr3d94dn.mjs";import{X3 as H}from"./cli-1.0.13-gsz0cygn.mjs";import{dsa as E,hsa as G}from"./cli-1.0.13-d9nvpqpw.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
+ export{V as gd,N as hd};
@@ -0,0 +1,2 @@
1
+ import{ST as z,_r as _}from"./cli-1.0.13-kr3d94dn.mjs";import{e4 as f}from"./cli-1.0.13-zvemnxrj.mjs";import{E8 as A,S4 as K,z7 as k}from"./cli-1.0.13-h5mwwv8w.mjs";import{Hda as v,Tea as x,Xaa as W,t_ as L,u$ as T}from"./cli-1.0.13-p1nsb8ay.mjs";import{Kha as H}from"./cli-1.0.13-k4znag0a.mjs";import{bia as b,dia as Q,eia as q,fia as V}from"./cli-1.0.13-fb695nhr.mjs";import{Wia as w}from"./cli-1.0.13-y6y32j2s.mjs";import{_ia as O}from"./cli-1.0.13-vbby2x4m.mjs";import{Fka as U}from"./cli-1.0.13-mazxedqg.mjs";import{uma as X,yqa as B}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as G}from"./cli-1.0.13-d9nvpqpw.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
2
+ export{Y as Id};
@@ -0,0 +1,2 @@
1
+ import{q4 as m}from"./cli-1.0.13-tyhtztew.mjs";import{E8 as $,m8 as K}from"./cli-1.0.13-h5mwwv8w.mjs";import{Tea as Y,Uda as X,vea as Q,yea as J,yga as Z}from"./cli-1.0.13-p1nsb8ay.mjs";import{Wia as W}from"./cli-1.0.13-y6y32j2s.mjs";import{hsa as V}from"./cli-1.0.13-d9nvpqpw.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
2
+ export{y as Li,G as Mi,U as Ni,w as Oi};
@@ -0,0 +1,2 @@
1
+ import{hsa as b}from"./cli-1.0.13-d9nvpqpw.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as if,k as jf,q as kf,w as lf,g as mf};
@@ -0,0 +1,4 @@
1
+ import{No as IJ,Po as cJ,SR as UJ,UK as DJ,VK as BJ,WK as lJ,Zi as pJ,pS as jJ,qS as $V}from"./cli-1.0.13-kr3d94dn.mjs";import{D$ as NJ,H$ as gJ,Hda as uJ,T_ as WJ,Tea as hJ,Y_ as l,qga as G,u$ as mJ,x_ as c,xda as m,y_ as fJ,yea as YJ,yga as dJ}from"./cli-1.0.13-p1nsb8ay.mjs";import{iia as U,jia as PJ}from"./cli-1.0.13-kq0mvqax.mjs";import{Xia as f,_ia as SJ}from"./cli-1.0.13-vbby2x4m.mjs";import{Mja as VJ,Qja as bJ,_ja as Q,bka as kJ}from"./cli-1.0.13-4dp5a597.mjs";import{Fka as yJ,yka as JJ}from"./cli-1.0.13-mazxedqg.mjs";import{vma as qJ,wma as zJ}from"./cli-1.0.13-vwmq6bde.mjs";import{dsa as wJ,hsa as _J}from"./cli-1.0.13-d9nvpqpw.mjs";class p{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new p;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await c(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
2
+ `).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=c(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
+ `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let $=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();cJ();uJ();zJ();KJ=wJ(pJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
+ export{p as di,MJ as ei,jV as fi,vV as gi,RV as hi,GV as ii,AJ as ji,CV as ki,LV as li,ZV as mi};
@@ -0,0 +1,2 @@
1
+ import{$n as g,ao as k,gG as h,iG as I}from"./cli-1.0.13-kr3d94dn.mjs";import{I0 as s,kZ as S,l1 as _}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as c,V3 as m,W3 as T}from"./cli-1.0.13-afdk25h0.mjs";import{Tea as P,vea as b}from"./cli-1.0.13-p1nsb8ay.mjs";import{dsa as D}from"./cli-1.0.13-d9nvpqpw.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
+ export{E as B};
@@ -0,0 +1,2 @@
1
+ import{PR as R,_J as Y,pm as W,sm as P,uk as Q,vk as I}from"./cli-1.0.13-kr3d94dn.mjs";import{Bga as B,Cga as f}from"./cli-1.0.13-x4xwa6y3.mjs";import{Mia as F,qia as H,ria as J}from"./cli-1.0.13-kq0mvqax.mjs";import{yqa as $,zma as v}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as Z}from"./cli-1.0.13-d9nvpqpw.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -0,0 +1,24 @@
1
+ import{KX as T,VX as c}from"./cli-1.0.13-w7jh58qt.mjs";import{k2 as w,n2 as n}from"./cli-1.0.13-19k4k5jx.mjs";import{v_ as M,w$ as y,x$ as g,x_ as X,y_ as f}from"./cli-1.0.13-p1nsb8ay.mjs";import{Dja as K,Eja as v,Ija as m,_ja as Z,bja as R,bka as h,dja as F}from"./cli-1.0.13-4dp5a597.mjs";import{Dka as W,Fka as D,yka as Y}from"./cli-1.0.13-mazxedqg.mjs";import{Ika as E,Vka as S}from"./cli-1.0.13-6b6kn6sd.mjs";import{Dma as A,Fma as N,yqa as j,zma as k}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as H}from"./cli-1.0.13-d9nvpqpw.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${J}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${J}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
+ export{O as pX,i as qX,e as rX,qq as sX,_ as tX,Uq as uX,Bq as vX,C as wX,Mq as xX,I as yX,Aq as zX,d as AX,r as BX,t as CX};
@@ -0,0 +1,2 @@
1
+ import{ne as _,pe as v}from"./cli-1.0.13-xg86t5j7.mjs";import{Qe as Z,Re as P}from"./cli-1.0.13-jkahzkac.mjs";import{Yx as X,ay as K,ky as Y,my as A}from"./cli-1.0.13-kr3d94dn.mjs";import{eY as V,hY as C}from"./cli-1.0.13-3f0zqjp8.mjs";import{U3 as H,W3 as Q}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as W}from"./cli-1.0.13-gsz0cygn.mjs";import{Bga as L,Cga as U}from"./cli-1.0.13-x4xwa6y3.mjs";import{dsa as B,hsa as M}from"./cli-1.0.13-d9nvpqpw.mjs";function x({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>_(H(X,{children:H(x,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();P();C();A();K();v();Q();J=B(W(),1)});
2
+ export{l as tc,j as uc};
@@ -0,0 +1,2 @@
1
+ import{Zr as Hq,_r as pq,yz as Uq,zz as mq}from"./cli-1.0.13-kr3d94dn.mjs";import{c4 as Bq,e4 as dq}from"./cli-1.0.13-zvemnxrj.mjs";import{E8 as gq,M4 as Wq,R4 as jq,S4 as Sq,e8 as c,i8 as S,y7 as Nq,z7 as yq}from"./cli-1.0.13-h5mwwv8w.mjs";import{$$ as Gq,baa as Pq,bea as Yq,cea as Dq,dea as k,fea as Xq,iea as Lq,q$ as M,u$ as $q}from"./cli-1.0.13-p1nsb8ay.mjs";import{bia as N,dia as bq,eia as E,fia as Cq}from"./cli-1.0.13-fb695nhr.mjs";import{Oia as Kq,Pia as Qq,Qia as Vq,Via as Zq,Wia as Rq}from"./cli-1.0.13-y6y32j2s.mjs";import{Xia as _,_ia as e}from"./cli-1.0.13-vbby2x4m.mjs";import{Dja as m,Ija as Eq,_ja as Y,bja as Fq,bka as Jq,dja as $J}from"./cli-1.0.13-4dp5a597.mjs";import{Eka as P,Fka as qq,yka as C}from"./cli-1.0.13-mazxedqg.mjs";import{Kra as kq,sra as z}from"./cli-1.0.13-696y87my.mjs";import{gsa as ZJ,hsa as d,isa as Tq}from"./cli-1.0.13-d9nvpqpw.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.13-y42xe571.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
2
+ export{vq as p,NJ as q,BJ as r,Mq as s,HJ as t,UJ as u,OJ as v,wJ as w};
@@ -0,0 +1,2 @@
1
+ import{hsa as M}from"./cli-1.0.13-d9nvpqpw.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
+ export{V as zi,W as Ai,X as Bi,Z as Ci,Y as Di};
@@ -0,0 +1,2 @@
1
+ import{r_ as B,t_ as p}from"./cli-1.0.13-p1nsb8ay.mjs";import{Xia as C,_ia as y}from"./cli-1.0.13-vbby2x4m.mjs";import{Eja as T,Ija as x,_ja as V,bka as M}from"./cli-1.0.13-4dp5a597.mjs";import{Fka as c,yka as L}from"./cli-1.0.13-mazxedqg.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
+ export{E as Wb,I as Xb};
@@ -0,0 +1,2 @@
1
+ import{k3 as y,o3 as V}from"./cli-1.0.13-tp2w17kc.mjs";import{gba as q,iba as Q,w_ as p,y_ as K}from"./cli-1.0.13-p1nsb8ay.mjs";import{hsa as J}from"./cli-1.0.13-d9nvpqpw.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
+ export{j as _2,D as $2,P as a3,w as b3,E as c3,Y as d3,F as e3,G as f3,Z as g3};