@qitqode/qitqode-android-arm64 0.2.14 → 0.2.16

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 (414) hide show
  1. package/bun +2 -2
  2. package/bundle/{chunk-wrzn87w0.js → chunk-098mr0zz.js} +1 -1
  3. package/bundle/{chunk-j15wejz0.js → chunk-0catm9vq.js} +1 -1
  4. package/bundle/{chunk-kdqhwa65.js → chunk-0cqs1qkh.js} +1 -1
  5. package/bundle/{chunk-d10qre1b.js → chunk-0f3ncvfe.js} +1 -1
  6. package/bundle/{chunk-583d91xq.js → chunk-0gqwvt8w.js} +2 -2
  7. package/bundle/chunk-0mb55ytc.js +2 -0
  8. package/bundle/{chunk-9zsp3qkh.js → chunk-0n2ncnwz.js} +1 -1
  9. package/bundle/chunk-0y0hm0m5.js +2 -0
  10. package/bundle/chunk-120e8yr1.js +2 -0
  11. package/bundle/{chunk-spcdwmy4.js → chunk-1aneepm5.js} +1 -1
  12. package/bundle/chunk-1dxm8yev.js +2 -0
  13. package/bundle/{chunk-96sra8g8.js → chunk-1jg7cybp.js} +1 -1
  14. package/bundle/{chunk-ngygp66y.js → chunk-1k5nfw7g.js} +1 -1
  15. package/bundle/{chunk-fmcg649e.js → chunk-1kksj8cn.js} +1 -1
  16. package/bundle/chunk-1pgpv979.js +2 -0
  17. package/bundle/{chunk-szfqmkj6.js → chunk-1xsjkf4c.js} +1 -1
  18. package/bundle/{chunk-zx63mepv.js → chunk-1yetxft4.js} +1 -1
  19. package/bundle/chunk-23zh9s18.js +2 -0
  20. package/bundle/{chunk-8qpfphdz.js → chunk-24pf9s68.js} +1 -1
  21. package/bundle/chunk-2a0zf12g.js +2 -0
  22. package/bundle/chunk-2b8x31p3.js +2 -0
  23. package/bundle/chunk-2cvmdss3.js +2 -0
  24. package/bundle/{chunk-bm8azfnt.js → chunk-2kvghwar.js} +1 -1
  25. package/bundle/{chunk-ch7s512a.js → chunk-2nkjwqpm.js} +1 -1
  26. package/bundle/chunk-2qbsg6dp.js +2 -0
  27. package/bundle/{chunk-9ttebtcf.js → chunk-2rvs18fx.js} +1 -1
  28. package/bundle/{chunk-rxt6gktt.js → chunk-2thbax1j.js} +1 -1
  29. package/bundle/{chunk-6y0wgz2j.js → chunk-2zxygnx4.js} +1 -1
  30. package/bundle/{chunk-zgwasq3p.js → chunk-36kg3v3k.js} +1 -1
  31. package/bundle/{chunk-1gdt9q05.js → chunk-37hh7eee.js} +1 -1
  32. package/bundle/chunk-39mwv068.js +2 -0
  33. package/bundle/{chunk-set1f1wr.js → chunk-39z0qxkt.js} +1 -1
  34. package/bundle/{chunk-p0852vfn.js → chunk-3dfy9k0t.js} +2 -2
  35. package/bundle/{chunk-et3tgx7t.js → chunk-3e26pryk.js} +1 -1
  36. package/bundle/{chunk-vzkdzhn0.js → chunk-3eddms0g.js} +1 -1
  37. package/bundle/chunk-3re79hkf.js +2 -0
  38. package/bundle/{chunk-sy76e7nr.js → chunk-3vjs8aht.js} +1 -1
  39. package/bundle/{chunk-k769v1ds.js → chunk-3z7r4c0p.js} +1 -1
  40. package/bundle/chunk-40pe0tde.js +11 -0
  41. package/bundle/{chunk-0ejx0yqx.js → chunk-47nber5v.js} +1 -1
  42. package/bundle/{chunk-bga4kqd1.js → chunk-491f4ab9.js} +2 -2
  43. package/bundle/{chunk-3152y1q9.js → chunk-4bp91rza.js} +1 -1
  44. package/bundle/{chunk-pdcxmr6x.js → chunk-4dy64hgp.js} +1 -1
  45. package/bundle/{chunk-0mztgsxp.js → chunk-4fqwg54p.js} +1 -1
  46. package/bundle/{chunk-2w3n0q9m.js → chunk-4gv7nsdd.js} +2 -2
  47. package/bundle/{chunk-2ascwm7j.js → chunk-4nw19yab.js} +1 -1
  48. package/bundle/chunk-51fyaa6r.js +2 -0
  49. package/bundle/{chunk-9znfb8f2.js → chunk-52f62kr0.js} +2 -2
  50. package/bundle/chunk-52n4tdeh.js +5 -0
  51. package/bundle/{chunk-x4jnyj09.js → chunk-543jma8r.js} +1 -1
  52. package/bundle/chunk-58q03ah1.js +2 -0
  53. package/bundle/{chunk-hrcqbadm.js → chunk-5fhy0wb0.js} +1 -1
  54. package/bundle/{chunk-8zpsgfb6.js → chunk-5fym1zr2.js} +1 -1
  55. package/bundle/{chunk-a3g8de96.js → chunk-5k5jdayv.js} +1 -1
  56. package/bundle/chunk-5nmqgqj2.js +2 -0
  57. package/bundle/{chunk-psmwrvqs.js → chunk-5t69v8jg.js} +2 -2
  58. package/bundle/{chunk-7w571q26.js → chunk-5vtbg7pj.js} +1 -1
  59. package/bundle/{chunk-g738e799.js → chunk-5xmtzs15.js} +2 -2
  60. package/bundle/chunk-5ydg5ny1.js +2 -0
  61. package/bundle/{chunk-v5me0cj9.js → chunk-5z5rk3ng.js} +1 -1
  62. package/bundle/{chunk-5dvy83ms.js → chunk-62mb6wxm.js} +2 -2
  63. package/bundle/chunk-62mytrwv.js +2 -0
  64. package/bundle/{chunk-edvfqxfr.js → chunk-6396bg4p.js} +1 -1
  65. package/bundle/chunk-63bccmze.js +2 -0
  66. package/bundle/{chunk-1ypzf18e.js → chunk-64x1vtdq.js} +1 -1
  67. package/bundle/{chunk-9mabvb06.js → chunk-6kx4atkt.js} +1 -1
  68. package/bundle/{chunk-dmb0ez0m.js → chunk-6r7vm4xc.js} +3 -3
  69. package/bundle/{chunk-tcyzj3rz.js → chunk-6rggm6tm.js} +1 -1
  70. package/bundle/{chunk-fp2xgnjn.js → chunk-6vpc1y3w.js} +2 -2
  71. package/bundle/{chunk-71jmhvef.js → chunk-6vxddv5w.js} +2 -2
  72. package/bundle/chunk-6ynaebaw.js +2 -0
  73. package/bundle/{chunk-ep4drmt9.js → chunk-700jhn67.js} +1 -1
  74. package/bundle/{chunk-fdmz0502.js → chunk-76jbys6j.js} +2 -2
  75. package/bundle/chunk-782y3dm8.js +2 -0
  76. package/bundle/{chunk-d7h1dp0h.js → chunk-89g9wzc2.js} +1 -1
  77. package/bundle/chunk-8q50bha4.js +2 -0
  78. package/bundle/chunk-8v6qbhm1.js +2 -0
  79. package/bundle/chunk-955jtenj.js +2 -0
  80. package/bundle/chunk-95yzwxpf.js +2 -0
  81. package/bundle/{chunk-2w79k0mh.js → chunk-96281xfb.js} +2 -2
  82. package/bundle/{chunk-bdcd2mcb.js → chunk-96657nrr.js} +2 -2
  83. package/bundle/chunk-99ansgsj.js +2 -0
  84. package/bundle/{chunk-3c73rngn.js → chunk-9dd2krfn.js} +1 -1
  85. package/bundle/chunk-9exxjnxc.js +2 -0
  86. package/bundle/{chunk-eqsank84.js → chunk-9ge1mkfs.js} +1 -1
  87. package/bundle/{chunk-4r7fbkcm.js → chunk-9mmaja9n.js} +1 -1
  88. package/bundle/{chunk-mjkwd1sz.js → chunk-9rd7q5e9.js} +1 -1
  89. package/bundle/{chunk-6cztstry.js → chunk-9skj2w9e.js} +2 -2
  90. package/bundle/{chunk-nb4xtk1n.js → chunk-9tdbts1r.js} +1 -1
  91. package/bundle/{chunk-sg9enzsp.js → chunk-9tfm1dk2.js} +2 -2
  92. package/bundle/{chunk-z6qyx227.js → chunk-9xaea8h1.js} +1 -1
  93. package/bundle/{chunk-meehnnv9.js → chunk-a0c6w901.js} +2 -2
  94. package/bundle/chunk-a2tp2f6s.js +2 -0
  95. package/bundle/{chunk-69htq8kq.js → chunk-a3ynq3h7.js} +1 -1
  96. package/bundle/chunk-a4y0wjtq.js +3 -0
  97. package/bundle/{chunk-6dd2dx69.js → chunk-afagt413.js} +2 -2
  98. package/bundle/{chunk-px69995t.js → chunk-afzx47y2.js} +1 -1
  99. package/bundle/chunk-ag3s3t7x.js +2 -0
  100. package/bundle/{chunk-n7zd97hy.js → chunk-ajdn1n77.js} +2 -2
  101. package/bundle/chunk-arwm1qxm.js +2 -0
  102. package/bundle/{chunk-adws0hhk.js → chunk-awt3q88j.js} +2 -2
  103. package/bundle/{chunk-qn1fhqyw.js → chunk-az2pxgx6.js} +2 -2
  104. package/bundle/chunk-b0gq0s8a.js +2 -0
  105. package/bundle/{chunk-48rg4yhk.js → chunk-b2zfr7jz.js} +2 -2
  106. package/bundle/{chunk-mbmaeq0a.js → chunk-b63733cw.js} +1 -1
  107. package/bundle/chunk-b7430vg8.js +2 -0
  108. package/bundle/{chunk-07b4pkk6.js → chunk-b7dw5ged.js} +1 -1
  109. package/bundle/{chunk-prz2fkn9.js → chunk-b83qf145.js} +1 -1
  110. package/bundle/{chunk-veptx3fk.js → chunk-b8w33ck9.js} +1 -1
  111. package/bundle/{chunk-674pexjx.js → chunk-bd21p9zz.js} +2 -2
  112. package/bundle/chunk-be2z0tr4.js +2 -0
  113. package/bundle/{chunk-x0de4z05.js → chunk-bkqemdv8.js} +2 -2
  114. package/bundle/chunk-bq585t67.js +2 -0
  115. package/bundle/chunk-bts3gw8w.js +2 -0
  116. package/bundle/{chunk-qz20b42s.js → chunk-c0sr83np.js} +1 -1
  117. package/bundle/{chunk-zh7e6kqs.js → chunk-c4tdfar1.js} +1 -1
  118. package/bundle/chunk-c6ege2yp.js +2 -0
  119. package/bundle/{chunk-00ft63qn.js → chunk-chs4bkgh.js} +1 -1
  120. package/bundle/{chunk-8b9z8j3z.js → chunk-cm426ssg.js} +1 -1
  121. package/bundle/{chunk-crqycrs4.js → chunk-d4y5hyjg.js} +2 -2
  122. package/bundle/chunk-de0edzjs.js +2 -0
  123. package/bundle/{chunk-4hvenszg.js → chunk-der5kj1b.js} +1 -1
  124. package/bundle/{chunk-6d4xc6br.js → chunk-dhykktcp.js} +1 -1
  125. package/bundle/{chunk-8jkqyf9n.js → chunk-dm7hfb7f.js} +2 -2
  126. package/bundle/chunk-dntnvfdz.js +2 -0
  127. package/bundle/{chunk-q1dmxn63.js → chunk-dptvy1zn.js} +2 -2
  128. package/bundle/{chunk-2k2szpze.js → chunk-dqt8rrey.js} +1 -1
  129. package/bundle/{chunk-ky3fhz9z.js → chunk-dr003xka.js} +1 -1
  130. package/bundle/chunk-dtyzk0j7.js +2 -0
  131. package/bundle/{chunk-qrztx1b4.js → chunk-dwza14dk.js} +2 -2
  132. package/bundle/chunk-e3tmbywr.js +2 -0
  133. package/bundle/{chunk-ej0yzstw.js → chunk-e4nap6v9.js} +2 -2
  134. package/bundle/{chunk-5h1s0akp.js → chunk-e7x8v549.js} +1 -1
  135. package/bundle/{chunk-1e75j4m1.js → chunk-e826jvr2.js} +2 -2
  136. package/bundle/{chunk-9z7y4x7q.js → chunk-edm4c812.js} +1 -1
  137. package/bundle/{chunk-ws720v4j.js → chunk-eearwfay.js} +1 -1
  138. package/bundle/{chunk-gkf7x1yj.js → chunk-ekavngf7.js} +1 -1
  139. package/bundle/chunk-em637k9q.js +2 -0
  140. package/bundle/{chunk-8gkz5550.js → chunk-epncmz5t.js} +1 -1
  141. package/bundle/chunk-eytpz91c.js +8 -0
  142. package/bundle/chunk-f4qcwbx0.js +2 -0
  143. package/bundle/{chunk-a8askx4y.js → chunk-f6gd8809.js} +1 -1
  144. package/bundle/{chunk-e8s4mp5n.js → chunk-fcbmedh3.js} +2 -2
  145. package/bundle/{chunk-4ycg2c6f.js → chunk-fg5f3a8a.js} +2 -2
  146. package/bundle/chunk-fj7jcv7m.js +2 -0
  147. package/bundle/{chunk-47jkx37s.js → chunk-ft4msj4z.js} +3 -3
  148. package/bundle/chunk-fyntc5hj.js +2 -0
  149. package/bundle/chunk-fyt4yaq7.js +2 -0
  150. package/bundle/chunk-g4hcxhfs.js +2 -0
  151. package/bundle/{chunk-c5cyt23k.js → chunk-g7twcprm.js} +2 -2
  152. package/bundle/{chunk-9amnqaeq.js → chunk-g8844pb4.js} +1 -1
  153. package/bundle/{chunk-w136zswr.js → chunk-ganwjd6s.js} +3 -3
  154. package/bundle/chunk-gdew108b.js +2 -0
  155. package/bundle/chunk-gdy74wte.js +2 -0
  156. package/bundle/{chunk-7a4sb6q7.js → chunk-gse0cgqc.js} +1 -1
  157. package/bundle/{chunk-z0dj15g9.js → chunk-gsjgbm0d.js} +1 -1
  158. package/bundle/{chunk-a1mbach4.js → chunk-gt10s0ks.js} +1 -1
  159. package/bundle/{chunk-qpk7jp6t.js → chunk-gxpx2nd8.js} +1 -1
  160. package/bundle/{chunk-4p9fny77.js → chunk-gxq2fwnc.js} +1 -1
  161. package/bundle/chunk-gz90qgcn.js +2 -0
  162. package/bundle/chunk-gzz78dnm.js +2 -0
  163. package/bundle/{chunk-840mmmzz.js → chunk-h3yazfmh.js} +4 -4
  164. package/bundle/{chunk-d4faz5xa.js → chunk-h429rzqp.js} +1 -1
  165. package/bundle/{chunk-f0dp1tf9.js → chunk-h5y0pwwc.js} +1 -1
  166. package/bundle/{chunk-62gefpwn.js → chunk-h6b6acrv.js} +2 -2
  167. package/bundle/{chunk-19rs84t8.js → chunk-h8bq75er.js} +1 -1
  168. package/bundle/{chunk-99df6wvm.js → chunk-ha147mdc.js} +1 -1
  169. package/bundle/{chunk-xdcwx384.js → chunk-ha1w0xzh.js} +1 -1
  170. package/bundle/{chunk-5341jv20.js → chunk-ha294vpj.js} +1 -1
  171. package/bundle/chunk-hfrjkgyk.js +2 -0
  172. package/bundle/chunk-hjpt1n6g.js +2 -0
  173. package/bundle/{chunk-bzh71a92.js → chunk-hvdre0mb.js} +1 -1
  174. package/bundle/{chunk-86sfzgnf.js → chunk-hxf2a10r.js} +1 -1
  175. package/bundle/{chunk-4ppw719f.js → chunk-j09qf4zh.js} +1 -1
  176. package/bundle/chunk-j0jayfyn.js +35 -0
  177. package/bundle/{chunk-ffz334ab.js → chunk-j5b0yc0f.js} +1 -1
  178. package/bundle/{chunk-n6pn4f3r.js → chunk-j767byd1.js} +1 -1
  179. package/bundle/chunk-j794z99k.js +2 -0
  180. package/bundle/{chunk-y1v7mf1a.js → chunk-j95mkzwg.js} +123 -123
  181. package/bundle/{chunk-rn3je2hv.js → chunk-jcznttek.js} +1 -1
  182. package/bundle/{chunk-4v29ayke.js → chunk-jgw20mxx.js} +1 -1
  183. package/bundle/{chunk-175720ws.js → chunk-jhdpwndc.js} +2 -2
  184. package/bundle/{chunk-9gxyt2ay.js → chunk-jkqa49xc.js} +2 -2
  185. package/bundle/{chunk-sb3cgb4v.js → chunk-jmg64erz.js} +1 -1
  186. package/bundle/chunk-jpw7z507.js +2 -0
  187. package/bundle/{chunk-3cs1qf8x.js → chunk-jr622341.js} +1 -1
  188. package/bundle/{chunk-qpggztkq.js → chunk-jv69hdp0.js} +2 -2
  189. package/bundle/chunk-jx9c90ft.js +2 -0
  190. package/bundle/{chunk-fpzkyzny.js → chunk-kevhkmn2.js} +2 -2
  191. package/bundle/{chunk-bxnsrggq.js → chunk-khpjjjsb.js} +1 -1
  192. package/bundle/chunk-kkfrys0w.js +2 -0
  193. package/bundle/chunk-kkq2vwm6.js +2 -0
  194. package/bundle/{chunk-qqsj69m2.js → chunk-km1tyeyy.js} +1 -1
  195. package/bundle/chunk-kp0w1p79.js +2 -0
  196. package/bundle/chunk-kr7t73tg.js +3 -0
  197. package/bundle/chunk-kt7q9620.js +2 -0
  198. package/bundle/{chunk-8a9sj8gp.js → chunk-kzcb1pt4.js} +1 -1
  199. package/bundle/{chunk-jwv6fda1.js → chunk-m0f6cf9n.js} +2 -2
  200. package/bundle/chunk-m30bgt2t.js +2 -0
  201. package/bundle/chunk-m318f9es.js +2 -0
  202. package/bundle/{chunk-1mfdmm2t.js → chunk-m5r6zq6v.js} +1 -1
  203. package/bundle/chunk-m6g6za7b.js +2 -0
  204. package/bundle/chunk-m8djypsy.js +11 -0
  205. package/bundle/chunk-ma0vvbvy.js +2 -0
  206. package/bundle/chunk-mha4n5md.js +2 -0
  207. package/bundle/{chunk-s9epttpy.js → chunk-mhq2a5ms.js} +1 -1
  208. package/bundle/chunk-mp9qhnxg.js +2 -0
  209. package/bundle/{chunk-gd0j16gn.js → chunk-mqdvthkm.js} +1 -1
  210. package/bundle/{chunk-69k7cdtv.js → chunk-mqe1qa6t.js} +2 -2
  211. package/bundle/{chunk-j45p2v4a.js → chunk-mz6swd88.js} +3 -3
  212. package/bundle/{chunk-0m4gvjcv.js → chunk-n25t4j9w.js} +2 -2
  213. package/bundle/{chunk-hx13a8es.js → chunk-n7ewvphw.js} +3 -3
  214. package/bundle/chunk-n9wre9wx.js +2 -0
  215. package/bundle/chunk-ncbj74tk.js +3 -0
  216. package/bundle/{chunk-06tgmvh6.js → chunk-ne3z7yye.js} +2 -2
  217. package/bundle/chunk-nnyvn2pm.js +2 -0
  218. package/bundle/chunk-nyhx3822.js +2 -0
  219. package/bundle/{chunk-zjyaze0d.js → chunk-p54bzjtv.js} +1 -1
  220. package/bundle/{chunk-dvp0r93q.js → chunk-p5d5qyzq.js} +1 -1
  221. package/bundle/{chunk-m8kjtp60.js → chunk-p6mxxem5.js} +1 -1
  222. package/bundle/{chunk-fd04358e.js → chunk-p76c9s6g.js} +310 -309
  223. package/bundle/chunk-p8etcskm.js +2 -0
  224. package/bundle/{chunk-b350g18y.js → chunk-pf4gwr34.js} +2 -2
  225. package/bundle/{chunk-wf0n1cs9.js → chunk-pf61zhms.js} +1 -1
  226. package/bundle/{chunk-sh03ka27.js → chunk-pfx8ts02.js} +1 -1
  227. package/bundle/{chunk-e611m0p4.js → chunk-phvp9h7w.js} +1 -1
  228. package/bundle/chunk-pv71d7f3.js +2 -0
  229. package/bundle/{chunk-6wmtbebc.js → chunk-pwcmc8j7.js} +1 -1
  230. package/bundle/{chunk-g77kddrs.js → chunk-pyt4xpze.js} +2 -2
  231. package/bundle/{chunk-1bq15kf0.js → chunk-q0pd8bac.js} +2 -2
  232. package/bundle/{chunk-yg9n2a2d.js → chunk-q12dtxep.js} +1 -1
  233. package/bundle/{chunk-v1axkp21.js → chunk-q2j2dm96.js} +2 -2
  234. package/bundle/{chunk-rx9eh3db.js → chunk-qf1hh45g.js} +3 -3
  235. package/bundle/{chunk-p4xqfkbh.js → chunk-qqjspfqw.js} +1 -1
  236. package/bundle/{chunk-9kc2th5c.js → chunk-qvnsgyfk.js} +2 -2
  237. package/bundle/{chunk-rqap90xh.js → chunk-qz35c4xy.js} +2 -2
  238. package/bundle/{chunk-bemyyen3.js → chunk-r3z77rjn.js} +1 -1
  239. package/bundle/{chunk-chnr7pe5.js → chunk-r7mcn9ey.js} +1 -1
  240. package/bundle/{chunk-nzz7gzg2.js → chunk-rmpgmjtd.js} +1 -1
  241. package/bundle/{chunk-k0chq88p.js → chunk-rpt3rm31.js} +1 -1
  242. package/bundle/chunk-rteaec1s.js +2 -0
  243. package/bundle/chunk-rxwcah73.js +2 -0
  244. package/bundle/{chunk-s0gmxpxm.js → chunk-s1gy4hnw.js} +2 -2
  245. package/bundle/{chunk-4s1n38ds.js → chunk-s2ma1nz3.js} +2 -2
  246. package/bundle/chunk-s3gjc4m0.js +2 -0
  247. package/bundle/{chunk-6yshpz0z.js → chunk-s5taq9jy.js} +2 -2
  248. package/bundle/{chunk-5mf4qrye.js → chunk-s7017cak.js} +2 -2
  249. package/bundle/{chunk-6pt6nqwk.js → chunk-s9bn800b.js} +1 -1
  250. package/bundle/{chunk-73a7ts8r.js → chunk-sa3rjs2s.js} +1 -1
  251. package/bundle/{chunk-wfpnv00c.js → chunk-sprbs7aj.js} +2 -2
  252. package/bundle/{chunk-10q04xh5.js → chunk-sq2z7keb.js} +1 -1
  253. package/bundle/{chunk-w8nj5ph5.js → chunk-sqrx9csx.js} +1 -1
  254. package/bundle/{chunk-art8gejd.js → chunk-srf4jqcj.js} +1 -1
  255. package/bundle/{chunk-ffyj5nsg.js → chunk-ssp3nw24.js} +2 -2
  256. package/bundle/{chunk-6kch0q2d.js → chunk-svnhycdw.js} +2 -2
  257. package/bundle/chunk-swm990q6.js +2 -0
  258. package/bundle/chunk-sy42ayp2.js +2 -0
  259. package/bundle/{chunk-5rvvfgfy.js → chunk-t3kxce69.js} +2 -2
  260. package/bundle/chunk-t7mvej98.js +2 -0
  261. package/bundle/{chunk-6j53vtzd.js → chunk-t8pmy758.js} +1 -1
  262. package/bundle/{chunk-v7v0krrj.js → chunk-t9srpmte.js} +1 -1
  263. package/bundle/{chunk-358wdvj7.js → chunk-tatecas7.js} +2 -2
  264. package/bundle/chunk-teagh4hx.js +2 -0
  265. package/bundle/{chunk-avksqxan.js → chunk-tf40p520.js} +1 -1
  266. package/bundle/{chunk-y5ydtbpd.js → chunk-tpgksx59.js} +1 -1
  267. package/bundle/{chunk-02tmc2st.js → chunk-tr4cze2c.js} +1 -1
  268. package/bundle/chunk-tv4cp6f9.js +2 -0
  269. package/bundle/chunk-tw618904.js +2 -0
  270. package/bundle/{chunk-zpjtse0z.js → chunk-v1bqh3m6.js} +176 -176
  271. package/bundle/{chunk-j46bxb1b.js → chunk-v3bfzxxg.js} +1 -1
  272. package/bundle/{chunk-vr13f6b5.js → chunk-v5gf0wx6.js} +2 -2
  273. package/bundle/{chunk-d385e2qt.js → chunk-v6mnbwtz.js} +1 -1
  274. package/bundle/{chunk-bq6cvf16.js → chunk-v93gr6n9.js} +2 -2
  275. package/bundle/chunk-vdpffam0.js +2 -0
  276. package/bundle/chunk-ve5w7nkb.js +2 -0
  277. package/bundle/chunk-vey57h4x.js +30 -0
  278. package/bundle/{chunk-pwq2f75j.js → chunk-vf492zs6.js} +1 -1
  279. package/bundle/{chunk-fkq0v5qv.js → chunk-vg9ec44m.js} +2 -2
  280. package/bundle/{chunk-61b81z2h.js → chunk-vh3n53qq.js} +1 -1
  281. package/bundle/{chunk-bmdqb48f.js → chunk-vk8gxf4y.js} +1 -1
  282. package/bundle/{chunk-rd08wx37.js → chunk-vr222v2n.js} +2 -2
  283. package/bundle/chunk-vrpca62q.js +2 -0
  284. package/bundle/{chunk-x3dzzq0t.js → chunk-w5fx69cw.js} +1 -1
  285. package/bundle/{chunk-05bkxat0.js → chunk-w9w59zjv.js} +2 -2
  286. package/bundle/{chunk-xmf59618.js → chunk-wbz79hns.js} +1 -1
  287. package/bundle/{chunk-gfvq78gy.js → chunk-wdrfzx4m.js} +1 -1
  288. package/bundle/{chunk-j3agzs13.js → chunk-wf18y499.js} +2 -2
  289. package/bundle/chunk-wvvygzz2.js +2 -0
  290. package/bundle/{chunk-w4fr00s7.js → chunk-wyxc99aa.js} +2 -2
  291. package/bundle/{chunk-5q98z8ck.js → chunk-x2mbre12.js} +2 -2
  292. package/bundle/{chunk-2d61z24r.js → chunk-x8rr2f15.js} +1 -1
  293. package/bundle/{chunk-7s9msscb.js → chunk-xpmgqa5n.js} +1 -1
  294. package/bundle/{chunk-rws2tsdv.js → chunk-xrwsttb7.js} +1 -1
  295. package/bundle/{chunk-wmj3xndt.js → chunk-xz6psr05.js} +1 -1
  296. package/bundle/{chunk-4xqwt6dr.js → chunk-xzshjp04.js} +2 -2
  297. package/bundle/chunk-y27gwnx9.js +2 -0
  298. package/bundle/chunk-y2ms7q84.js +2 -0
  299. package/bundle/{chunk-1pft3sar.js → chunk-y8bjb32m.js} +1 -1
  300. package/bundle/{chunk-h036zy9e.js → chunk-ya7wrt5f.js} +2 -2
  301. package/bundle/{chunk-ahgb3r1c.js → chunk-ycjz7y1x.js} +2 -2
  302. package/bundle/{chunk-10kj86va.js → chunk-ykqx1z0b.js} +1 -1
  303. package/bundle/chunk-yq4vck53.js +2 -0
  304. package/bundle/{chunk-j2snkw45.js → chunk-yxsc90ba.js} +2 -2
  305. package/bundle/{chunk-5cwy8y78.js → chunk-yy5qqab3.js} +2 -2
  306. package/bundle/{chunk-86reb44c.js → chunk-z38am71w.js} +1 -1
  307. package/bundle/{chunk-pwrwb7mn.js → chunk-z6mqdbj1.js} +1 -1
  308. package/bundle/{chunk-nyxn7npc.js → chunk-z87ew6d3.js} +1 -1
  309. package/bundle/{chunk-m6967jtv.js → chunk-z9k4506p.js} +2 -2
  310. package/bundle/{chunk-hf39qx6t.js → chunk-zezz8xfw.js} +2 -2
  311. package/bundle/{chunk-ffx0cr44.js → chunk-zg72kz2k.js} +2 -2
  312. package/bundle/chunk-zkxc41ek.js +2 -0
  313. package/bundle/{chunk-tz1bzrnh.js → chunk-zssy3srh.js} +1 -1
  314. package/bundle/{chunk-ae1g5y4r.js → chunk-zyz4na64.js} +1 -1
  315. package/bundle/{chunk-e18hshcg.js → chunk-zzsetq5f.js} +1 -1
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/worker.js +1 -1
  319. package/package.json +1 -1
  320. package/bundle/chunk-00r3he5x.js +0 -2
  321. package/bundle/chunk-0ks20gz1.js +0 -2
  322. package/bundle/chunk-1a08ffyd.js +0 -2
  323. package/bundle/chunk-1r7anzk5.js +0 -2
  324. package/bundle/chunk-26e51217.js +0 -2
  325. package/bundle/chunk-2g4kxtz0.js +0 -2
  326. package/bundle/chunk-2jzay8a9.js +0 -2
  327. package/bundle/chunk-2q78bdtj.js +0 -2
  328. package/bundle/chunk-30rghawe.js +0 -2
  329. package/bundle/chunk-31a47ptm.js +0 -10
  330. package/bundle/chunk-33mzqyyb.js +0 -3
  331. package/bundle/chunk-34yk99ep.js +0 -2
  332. package/bundle/chunk-3dajnr1w.js +0 -2
  333. package/bundle/chunk-3ege6krg.js +0 -2
  334. package/bundle/chunk-43vpxggb.js +0 -2
  335. package/bundle/chunk-49y7zg15.js +0 -2
  336. package/bundle/chunk-5qhsfjzq.js +0 -3
  337. package/bundle/chunk-5xxn06g0.js +0 -2
  338. package/bundle/chunk-7cp30q0t.js +0 -2
  339. package/bundle/chunk-7xc73qb1.js +0 -2
  340. package/bundle/chunk-8gz8fk6r.js +0 -2
  341. package/bundle/chunk-8ht7cq3h.js +0 -2
  342. package/bundle/chunk-8qv0119d.js +0 -2
  343. package/bundle/chunk-9m0eawt5.js +0 -2
  344. package/bundle/chunk-9thgxbze.js +0 -2
  345. package/bundle/chunk-a32y70fe.js +0 -2
  346. package/bundle/chunk-avzaqy6a.js +0 -2
  347. package/bundle/chunk-az12tp53.js +0 -2
  348. package/bundle/chunk-b5dpzcc7.js +0 -2
  349. package/bundle/chunk-bcgtqx3g.js +0 -2
  350. package/bundle/chunk-bde5d507.js +0 -2
  351. package/bundle/chunk-bzzggc3s.js +0 -2
  352. package/bundle/chunk-c8qx439t.js +0 -2
  353. package/bundle/chunk-ckw51fn6.js +0 -2
  354. package/bundle/chunk-denp0wrq.js +0 -2
  355. package/bundle/chunk-depxzjer.js +0 -2
  356. package/bundle/chunk-dhvqpcf3.js +0 -2
  357. package/bundle/chunk-dkqqswbv.js +0 -2
  358. package/bundle/chunk-dn0437c1.js +0 -5
  359. package/bundle/chunk-e5t7jsxa.js +0 -2
  360. package/bundle/chunk-eb811dt2.js +0 -2
  361. package/bundle/chunk-fbz2xv2w.js +0 -2
  362. package/bundle/chunk-gbvcb4k1.js +0 -2
  363. package/bundle/chunk-gdtnqzbp.js +0 -2
  364. package/bundle/chunk-gkfvhh28.js +0 -2
  365. package/bundle/chunk-gnh8c49b.js +0 -2
  366. package/bundle/chunk-gvf6ek9f.js +0 -2
  367. package/bundle/chunk-gvx5hmhk.js +0 -2
  368. package/bundle/chunk-hham7r33.js +0 -2
  369. package/bundle/chunk-hsjbe5zy.js +0 -2
  370. package/bundle/chunk-j1bv93m4.js +0 -31
  371. package/bundle/chunk-jvvctqjd.js +0 -8
  372. package/bundle/chunk-jvx7jtm4.js +0 -3
  373. package/bundle/chunk-k6gdmqff.js +0 -2
  374. package/bundle/chunk-kzkb4648.js +0 -2
  375. package/bundle/chunk-m2540waa.js +0 -2
  376. package/bundle/chunk-mscvm1rm.js +0 -2
  377. package/bundle/chunk-mw3hh526.js +0 -2
  378. package/bundle/chunk-n3nsrk5n.js +0 -2
  379. package/bundle/chunk-n9nmc4q4.js +0 -2
  380. package/bundle/chunk-nj4as8vy.js +0 -2
  381. package/bundle/chunk-nrzca9yd.js +0 -2
  382. package/bundle/chunk-nxm6gpyv.js +0 -2
  383. package/bundle/chunk-pp10epga.js +0 -8
  384. package/bundle/chunk-qbjqkezn.js +0 -2
  385. package/bundle/chunk-qhtp1xvx.js +0 -2
  386. package/bundle/chunk-qkztgpay.js +0 -2
  387. package/bundle/chunk-rnf3dy0y.js +0 -2
  388. package/bundle/chunk-rry4kq85.js +0 -2
  389. package/bundle/chunk-ryfj80q6.js +0 -2
  390. package/bundle/chunk-snx49w8h.js +0 -2
  391. package/bundle/chunk-t21mdqbb.js +0 -2
  392. package/bundle/chunk-tn2yyqeb.js +0 -2
  393. package/bundle/chunk-ttebf3nt.js +0 -2
  394. package/bundle/chunk-twpfh0mx.js +0 -2
  395. package/bundle/chunk-tzf6d5qy.js +0 -2
  396. package/bundle/chunk-v2mq09wx.js +0 -2
  397. package/bundle/chunk-v59a02aj.js +0 -2
  398. package/bundle/chunk-vnstr4g1.js +0 -2
  399. package/bundle/chunk-vxr4rzt0.js +0 -2
  400. package/bundle/chunk-w0h9rczg.js +0 -2
  401. package/bundle/chunk-w214dwws.js +0 -2
  402. package/bundle/chunk-w8344et5.js +0 -2
  403. package/bundle/chunk-weyg78et.js +0 -2
  404. package/bundle/chunk-xchj8gna.js +0 -2
  405. package/bundle/chunk-y18ptwk2.js +0 -2
  406. package/bundle/chunk-y3dpyz2d.js +0 -2
  407. package/bundle/chunk-ykvgmje9.js +0 -35
  408. package/bundle/chunk-yvjecrjy.js +0 -2
  409. package/bundle/chunk-yw2x6by6.js +0 -2
  410. package/bundle/chunk-z0r4syk8.js +0 -2
  411. package/bundle/chunk-z7c00g63.js +0 -2
  412. package/bundle/chunk-znr0saas.js +0 -2
  413. package/bundle/chunk-zqqt7v17.js +0 -2
  414. package/bundle/chunk-zwrgh1hc.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Vd as n,Yd as p,Zd as e,_d as i,be as m,ce as c}from"./chunk-p0852vfn.js";import{gI as o,nC as s}from"./chunk-9kc2th5c.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
2
+ import{$d as i,Wd as n,Zd as p,_d as e,ce as m,de as c}from"./chunk-3dfy9k0t.js";import{MJ as o,TD as s}from"./chunk-qvnsgyfk.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
3
3
  export{u as i,g as j,y as k,x as l,V as m};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Re as K}from"./chunk-w136zswr.js";import{Gf as A}from"./chunk-48rg4yhk.js";import{uP as w}from"./chunk-sh03ka27.js";var i=w(A(),1);var t=w(A(),1);import{exec as T}from"child_process";import{promisify as y}from"util";var x=w(K(),1),_=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let u=new Date;if(new Date(n.Expiration)<u)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let o={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return x.setCredentialFeature(o,"CREDENTIALS_PROCESS","w"),o};var E=async(c,n,e)=>{let s=n[c];if(n[c]){let o=s.credential_process;if(o!==void 0){let u=y(t.externalDataInterceptor?.getTokenRecord?.().exec??T);try{let{stdout:r}=await u(o),S;try{S=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return _(c,S,n)}catch(r){throw new t.CredentialsProviderError(r.message,{logger:e})}}else throw new t.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new t.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var C=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await i.parseKnownFiles(c);return E(i.getProfileName({profile:c.profile??n?.profile}),e,c.logger)};export{C as Ie};
2
+ import{Se as K}from"./chunk-ganwjd6s.js";import{Hf as A}from"./chunk-b2zfr7jz.js";import{_Q as w}from"./chunk-pfx8ts02.js";var i=w(A(),1);var t=w(A(),1);import{exec as T}from"child_process";import{promisify as y}from"util";var x=w(K(),1),_=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let u=new Date;if(new Date(n.Expiration)<u)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let o={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return x.setCredentialFeature(o,"CREDENTIALS_PROCESS","w"),o};var E=async(c,n,e)=>{let s=n[c];if(n[c]){let o=s.credential_process;if(o!==void 0){let u=y(t.externalDataInterceptor?.getTokenRecord?.().exec??T);try{let{stdout:r}=await u(o),S;try{S=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return _(c,S,n)}catch(r){throw new t.CredentialsProviderError(r.message,{logger:e})}}else throw new t.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new t.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var C=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await i.parseKnownFiles(c);return E(i.getProfileName({profile:c.profile??n?.profile}),e,c.logger)};export{C as Je};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{If as i}from"./chunk-48rg4yhk.js";import{vP as f}from"./chunk-sh03ka27.js";var o=f((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.fromString=e.fromArrayBuffer=void 0;var n=i();Object.defineProperty(e,"fromArrayBuffer",{enumerable:!0,get:function(){return n.fromArrayBuffer}});Object.defineProperty(e,"fromString",{enumerable:!0,get:function(){return n.fromString}})});var E=f((m)=>{var u=o(),y=(r)=>{let t=u.fromString(r,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},b=(r)=>{if(typeof r==="string")return y(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},c=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};m.fromUtf8=y;m.toUint8Array=b;m.toUtf8=c});
3
- export{E as zf};
2
+ import{Jf as i}from"./chunk-b2zfr7jz.js";import{$Q as f}from"./chunk-pfx8ts02.js";var o=f((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.fromString=e.fromArrayBuffer=void 0;var n=i();Object.defineProperty(e,"fromArrayBuffer",{enumerable:!0,get:function(){return n.fromArrayBuffer}});Object.defineProperty(e,"fromString",{enumerable:!0,get:function(){return n.fromString}})});var E=f((m)=>{var u=o(),y=(r)=>{let t=u.fromString(r,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},b=(r)=>{if(typeof r==="string")return y(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},c=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};m.fromUtf8=y;m.toUint8Array=b;m.toUtf8=c});
3
+ export{E as Af};
@@ -1,9 +1,9 @@
1
1
  // @bun
2
- import{Bh as H}from"./chunk-qn1fhqyw.js";import{Bp as T,gp as k,hp as X,kp as O,lp as b,mp as F,pp as h,qp as C}from"./chunk-pp10epga.js";import w from"http";var B="/callback",U=[51737,51738],K=new Set;function _(f){return f.replace(/[&<>\"']/g,(y)=>{switch(y){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#39;"}})}function z(f){return`http://127.0.0.1:${f}${B}`}async function S(f){return new Promise((y,N)=>{let J=w.createServer();J.listen(f,"127.0.0.1",()=>{J.close(()=>y(f))}),J.on("error",N)})}async function E(){for(let f of U){if(K.has(f))continue;K.add(f);try{return await S(f)}catch{K.delete(f)}}throw new X(`Could not bind to any loopback port (tried ${U.join(", ")}). Free one of those ports and retry.`)}function R(f,y,N,J){return new Promise((Q,x)=>{let V=()=>K.delete(f),m=w.createServer(($,Y)=>{try{let Z=new URL($.url??"/",`http://localhost:${f}`);if(Z.pathname!==B){Y.writeHead(404),Y.end();return}let W=Z.searchParams.get("code"),D=Z.searchParams.get("state"),M=Z.searchParams.get("error"),q=Z.searchParams.get("error_description");if(M){let L=`${_(M)}${q?": "+_(q):""}`;Y.writeHead(200,{"Content-Type":"text/html"}),Y.end(`<html><body style="font-family:sans-serif;padding:2rem"><h2>Authorization failed</h2><p>${L}</p><p>You can close this tab.</p></body></html>`),m.close(),x(new X(`Authorization error: ${M}${q?" \u2014 "+q:""}`));return}if(!W||D!==y){Y.writeHead(400),Y.end("Invalid request");return}Y.writeHead(200,{"Content-Type":"text/html"}),Y.end('<html><body style="font-family:sans-serif;padding:2rem"><h2>Signed in! You can close this tab.</h2><p>Return to your terminal to continue.</p></body></html>'),m.close(),Q({code:W})}catch(Z){m.close(),x(Z)}});if(N?.aborted){V(),x(new X("Login cancelled"));return}let G=()=>{V(),m.close(()=>x(new X("Login cancelled")))};if(N?.addEventListener("abort",G,{once:!0}),N?.aborted){G();return}m.listen(f,"127.0.0.1",()=>{V(),J?.()}),m.on("error",($)=>{V(),x($)})})}function I(f,y){return new Promise((N,J)=>{if(y?.aborted){J(new X("Login cancelled"));return}let Q,x=()=>{clearTimeout(Q),y?.removeEventListener("abort",x),J(new X("Login cancelled"))};if(Q=setTimeout(()=>{y?.removeEventListener("abort",x),N()},f),y?.addEventListener("abort",x,{once:!0}),y?.aborted)x()})}function j(f,y=300000){if(!f)return!1;return Date.now()>=f-y}async function A(f){if(f.method==="api-key")return T({});let{issuer:y}=await k();return T({issuer:y,accessToken:f.key})}var d=300000;async function P(){let{issuer:f,clientId:y}=await k(),{verifier:N,challenge:J,state:Q}=O(),x=await E(),V=z(x),m=b({issuer:f,clientId:y,redirectUri:V,challenge:J,state:Q});return{issuer:f,clientId:y,verifier:N,port:x,redirectUri:V,authorizeStr:m,state:Q}}async function p(f){let{issuer:y,clientId:N}=await k(),{deviceCode:J,info:Q,intervalMs:x}=await h({issuer:y,clientId:N,signal:f.signal});if(f.onCode(Q),f.tryOpen){let m=Q.verificationUriComplete??Q.verificationUri;H(m)}let V=x;while(Date.now()<Q.expiresAt){await I(V,f.signal);let m=await C({issuer:y,clientId:N,deviceCode:J,currentIntervalMs:V,signal:f.signal});if(m.kind==="success")return m.profile;V=m.intervalMs}throw new X("The sign-in code expired before it was approved. Try again.")}async function g(){let{issuer:f,clientId:y,verifier:N,port:J,redirectUri:Q,authorizeStr:x,state:V}=await P();process.stdout.write(`
2
+ import{Ch as H}from"./chunk-az2pxgx6.js";import{Kq as k,Lq as X,Oq as O,Pq as b,Qq as F,Tq as h,Uq as C,fr as T}from"./chunk-40pe0tde.js";import w from"http";var B="/callback",U=[51737,51738],K=new Set;function _(f){return f.replace(/[&<>\"']/g,(y)=>{switch(y){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#39;"}})}function z(f){return`http://127.0.0.1:${f}${B}`}async function S(f){return new Promise((y,N)=>{let J=w.createServer();J.listen(f,"127.0.0.1",()=>{J.close(()=>y(f))}),J.on("error",N)})}async function E(){for(let f of U){if(K.has(f))continue;K.add(f);try{return await S(f)}catch{K.delete(f)}}throw new X(`Could not bind to any loopback port (tried ${U.join(", ")}). Free one of those ports and retry.`)}function R(f,y,N,J){return new Promise((Q,x)=>{let V=()=>K.delete(f),m=w.createServer(($,Y)=>{try{let Z=new URL($.url??"/",`http://localhost:${f}`);if(Z.pathname!==B){Y.writeHead(404),Y.end();return}let W=Z.searchParams.get("code"),D=Z.searchParams.get("state"),M=Z.searchParams.get("error"),q=Z.searchParams.get("error_description");if(M){let L=`${_(M)}${q?": "+_(q):""}`;Y.writeHead(200,{"Content-Type":"text/html"}),Y.end(`<html><body style="font-family:sans-serif;padding:2rem"><h2>Authorization failed</h2><p>${L}</p><p>You can close this tab.</p></body></html>`),m.close(),x(new X(`Authorization error: ${M}${q?" \u2014 "+q:""}`));return}if(!W||D!==y){Y.writeHead(400),Y.end("Invalid request");return}Y.writeHead(200,{"Content-Type":"text/html"}),Y.end('<html><body style="font-family:sans-serif;padding:2rem"><h2>Signed in! You can close this tab.</h2><p>Return to your terminal to continue.</p></body></html>'),m.close(),Q({code:W})}catch(Z){m.close(),x(Z)}});if(N?.aborted){V(),x(new X("Login cancelled"));return}let G=()=>{V(),m.close(()=>x(new X("Login cancelled")))};if(N?.addEventListener("abort",G,{once:!0}),N?.aborted){G();return}m.listen(f,"127.0.0.1",()=>{V(),J?.()}),m.on("error",($)=>{V(),x($)})})}function I(f,y){return new Promise((N,J)=>{if(y?.aborted){J(new X("Login cancelled"));return}let Q,x=()=>{clearTimeout(Q),y?.removeEventListener("abort",x),J(new X("Login cancelled"))};if(Q=setTimeout(()=>{y?.removeEventListener("abort",x),N()},f),y?.addEventListener("abort",x,{once:!0}),y?.aborted)x()})}function j(f,y=300000){if(!f)return!1;return Date.now()>=f-y}async function A(f){if(f.method==="api-key")return T({});let{issuer:y}=await k();return T({issuer:y,accessToken:f.key})}var d=300000;async function P(){let{issuer:f,clientId:y}=await k(),{verifier:N,challenge:J,state:Q}=O(),x=await E(),V=z(x),m=b({issuer:f,clientId:y,redirectUri:V,challenge:J,state:Q});return{issuer:f,clientId:y,verifier:N,port:x,redirectUri:V,authorizeStr:m,state:Q}}async function p(f){let{issuer:y,clientId:N}=await k(),{deviceCode:J,info:Q,intervalMs:x}=await h({issuer:y,clientId:N,signal:f.signal});if(f.onCode(Q),f.tryOpen){let m=Q.verificationUriComplete??Q.verificationUri;H(m)}let V=x;while(Date.now()<Q.expiresAt){await I(V,f.signal);let m=await C({issuer:y,clientId:N,deviceCode:J,currentIntervalMs:V,signal:f.signal});if(m.kind==="success")return m.profile;V=m.intervalMs}throw new X("The sign-in code expired before it was approved. Try again.")}async function g(){let{issuer:f,clientId:y,verifier:N,port:J,redirectUri:Q,authorizeStr:x,state:V}=await P();process.stdout.write(`
3
3
  `),process.stdout.write(` Opening Forgewise sign-in in your browser...
4
4
  `),process.stdout.write(" Sign-in URL: "+x+`
5
5
  `),process.stdout.write(`
6
6
  `),process.stdout.write(` Waiting for the browser to complete sign-in... (ctrl+c to cancel)
7
7
  `);let{code:m}=await R(J,V,void 0,()=>{H(x)});return process.stdout.write(`
8
8
  Exchanging authorization code...
9
- `),F({issuer:f,clientId:y,code:m,redirectUri:Q,verifier:N})}async function v(f={}){if(f.signal?.aborted)throw new X("Login cancelled");let{issuer:y,clientId:N,verifier:J,port:Q,redirectUri:x,authorizeStr:V,state:m}=await P(),G=()=>{if(f.onUrl?.(V),f.tryOpen!==!1)H(V)},$=new AbortController,Y=()=>$.abort();f.signal?.addEventListener("abort",Y,{once:!0});let Z=!1,W=setTimeout(()=>{Z=!0,$.abort()},d);try{let{code:D}=await R(Q,m,$.signal,G);return await F({issuer:y,clientId:N,code:D,redirectUri:x,verifier:J,signal:$.signal})}catch(D){if(Z)throw new X("Sign-in timed out. Run login again to retry.");throw D}finally{clearTimeout(W),f.signal?.removeEventListener("abort",Y)}}export{z as Bg,j as Cg,A as Dg,p as Eg,g as Fg,v as Gg};
9
+ `),F({issuer:f,clientId:y,code:m,redirectUri:Q,verifier:N})}async function v(f={}){if(f.signal?.aborted)throw new X("Login cancelled");let{issuer:y,clientId:N,verifier:J,port:Q,redirectUri:x,authorizeStr:V,state:m}=await P(),G=()=>{if(f.onUrl?.(V),f.tryOpen!==!1)H(V)},$=new AbortController,Y=()=>$.abort();f.signal?.addEventListener("abort",Y,{once:!0});let Z=!1,W=setTimeout(()=>{Z=!0,$.abort()},d);try{let{code:D}=await R(Q,m,$.signal,G);return await F({issuer:y,clientId:N,code:D,redirectUri:x,verifier:J,signal:$.signal})}catch(D){if(Z)throw new X("Sign-in timed out. Run login again to retry.");throw D}finally{clearTimeout(W),f.signal?.removeEventListener("abort",Y)}}export{z as Cg,j as Dg,A as Eg,p as Fg,g as Gg,v as Hg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-sh03ka27.js";var e={"ui.sessionReview.title":"Altera\xE7\xF5es da sess\xE3o","ui.sessionReview.title.lastTurn":"Altera\xE7\xF5es do \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir arquivo","ui.sessionReview.selection.line":"linha {{line}}","ui.sessionReview.selection.lines":"linhas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir tudo","ui.sessionReview.collapseAll":"Recolher tudo","ui.sessionReview.change.added":"Adicionado","ui.sessionReview.change.removed":"Removido","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Carregando...","ui.sessionReview.image.placeholder":"Imagem","ui.sessionReview.largeDiff.title":"Diff grande demais para renderizar","ui.sessionReview.largeDiff.meta":"Limite: {{limit}} linhas alteradas. Atual: {{current}} linhas alteradas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar mesmo assim","ui.fileMedia.kind.image":"imagem","ui.fileMedia.kind.audio":"\xE1udio","ui.fileMedia.state.removed":"Removido: {{kind}}","ui.fileMedia.state.loading":"Carregando {{kind}}...","ui.fileMedia.state.error":"Erro ao carregar {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} indispon\xEDvel","ui.fileMedia.binary.title":"Arquivo bin\xE1rio","ui.fileMedia.binary.description.path":"N\xE3o \xE9 poss\xEDvel exibir {{path}} porque \xE9 um arquivo bin\xE1rio.","ui.fileMedia.binary.description.default":"N\xE3o \xE9 poss\xEDvel exibir o arquivo porque ele \xE9 bin\xE1rio.","ui.lineComment.label.prefix":"Comentar em ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando em ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Adicionar coment\xE1rio","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar passos","ui.sessionTurn.steps.hide":"Ocultar passos","ui.sessionTurn.summary.response":"Resposta","ui.sessionTurn.diff.showMore":"Mostrar mais altera\xE7\xF5es ({{count}})","ui.sessionTurn.retry.retrying":"tentando novamente","ui.sessionTurn.retry.inSeconds":"em {{seconds}}s","ui.sessionTurn.retry.attempt":"tentativa #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentativa #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 muito sobrecarregado agora","ui.sessionTurn.error.freeUsageExceeded":"Limite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"Adicionar cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabalho","ui.sessionTurn.status.planning":"Planejando pr\xF3ximos passos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Pesquisando no c\xF3digo","ui.sessionTurn.status.searchingWeb":"Pesquisando na web","ui.sessionTurn.status.makingEdits":"Fazendo edi\xE7\xF5es","ui.sessionTurn.status.runningCommands":"Executando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Organizando pensamentos","ui.sessionTurn.status.consideringNextSteps":"Considerando pr\xF3ximos passos","ui.messagePart.questions.dismissed":"Perguntas descartadas","ui.messagePart.compaction":"Sess\xE3o compactada","ui.messagePart.context.read.one":"{{count}} leitura","ui.messagePart.context.read.other":"{{count}} leituras","ui.messagePart.context.search.one":"{{count}} pesquisa","ui.messagePart.context.search.other":"{{count}} pesquisas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Erro","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escrever","ui.messagePart.option.typeOwnAnswer":"Digite sua pr\xF3pria resposta","ui.messagePart.review.title":"Revise suas respostas","ui.list.loading":"Carregando","ui.list.empty":"Nenhum resultado","ui.list.clearFilter":"Limpar filtro","ui.list.emptyWithFilter.prefix":"Nenhum resultado para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nova mensagem","ui.textField.copyToClipboard":"Copiar para \xE1rea de transfer\xEAncia","ui.textField.copyLink":"Copiar link","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Visualiza\xE7\xE3o de imagem","ui.scrollView.ariaLabel":"conte\xFAdo rol\xE1vel","ui.tool.read":"Ler","ui.tool.loaded":"Carregado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Buscar Web","ui.tool.websearch":"Pesquisa na Web","ui.tool.codesearch":"Pesquisa de C\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Tarefas","ui.tool.todos.read":"Ler tarefas","ui.tool.questions":"Perguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"arquivo","ui.common.file.other":"arquivos","ui.common.question.one":"pergunta","ui.common.question.other":"perguntas","ui.common.add":"Adicionar","ui.common.back":"Voltar","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Fechar","ui.common.next":"Pr\xF3ximo","ui.common.submit":"Enviar","ui.permission.deny":"Negar","ui.permission.allowAlways":"Permitir sempre","ui.permission.allowOnce":"Permitir uma vez","ui.message.expand":"Expandir mensagem","ui.message.collapse":"Recolher mensagem","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensagem","ui.message.forkMessage":"Bifurcar para nova sess\xE3o","ui.message.revertMessage":"Redefinir para este ponto","ui.message.copyResponse":"Copiar resposta","ui.message.copied":"Copiado!","ui.message.interrupted":"Interrompido","ui.message.queued":"Na fila","ui.message.attachment.alt":"anexo","ui.patch.action.deleted":"Exclu\xEDdo","ui.patch.action.created":"Criado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Patch aplicado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sem resposta)","ui.question.review.notAnswered":"(n\xE3o respondida)","ui.question.multiHint":"Selecione todas que se aplicam","ui.question.singleHint":"Selecione uma resposta","ui.question.custom.placeholder":"Digite sua resposta...","ui.fileSearch.placeholder":"Localizar","ui.fileSearch.previousMatch":"Ocorr\xEAncia anterior","ui.fileSearch.nextMatch":"Pr\xF3xima ocorr\xEAncia","ui.fileSearch.close":"Fechar busca","ui.tool.task":"Tarefa","ui.tool.skill":"Habilidade","ui.basicTool.called":"Chamou `{{tool}}`","ui.toolErrorCard.failed":"Falhou","ui.toolErrorCard.copyError":"Copiar erro","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-pfx8ts02.js";var e={"ui.sessionReview.title":"Altera\xE7\xF5es da sess\xE3o","ui.sessionReview.title.lastTurn":"Altera\xE7\xF5es do \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir arquivo","ui.sessionReview.selection.line":"linha {{line}}","ui.sessionReview.selection.lines":"linhas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir tudo","ui.sessionReview.collapseAll":"Recolher tudo","ui.sessionReview.change.added":"Adicionado","ui.sessionReview.change.removed":"Removido","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Carregando...","ui.sessionReview.image.placeholder":"Imagem","ui.sessionReview.largeDiff.title":"Diff grande demais para renderizar","ui.sessionReview.largeDiff.meta":"Limite: {{limit}} linhas alteradas. Atual: {{current}} linhas alteradas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar mesmo assim","ui.fileMedia.kind.image":"imagem","ui.fileMedia.kind.audio":"\xE1udio","ui.fileMedia.state.removed":"Removido: {{kind}}","ui.fileMedia.state.loading":"Carregando {{kind}}...","ui.fileMedia.state.error":"Erro ao carregar {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} indispon\xEDvel","ui.fileMedia.binary.title":"Arquivo bin\xE1rio","ui.fileMedia.binary.description.path":"N\xE3o \xE9 poss\xEDvel exibir {{path}} porque \xE9 um arquivo bin\xE1rio.","ui.fileMedia.binary.description.default":"N\xE3o \xE9 poss\xEDvel exibir o arquivo porque ele \xE9 bin\xE1rio.","ui.lineComment.label.prefix":"Comentar em ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando em ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Adicionar coment\xE1rio","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar passos","ui.sessionTurn.steps.hide":"Ocultar passos","ui.sessionTurn.summary.response":"Resposta","ui.sessionTurn.diff.showMore":"Mostrar mais altera\xE7\xF5es ({{count}})","ui.sessionTurn.retry.retrying":"tentando novamente","ui.sessionTurn.retry.inSeconds":"em {{seconds}}s","ui.sessionTurn.retry.attempt":"tentativa #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - tentativa #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 muito sobrecarregado agora","ui.sessionTurn.error.freeUsageExceeded":"Limite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"Adicionar cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabalho","ui.sessionTurn.status.planning":"Planejando pr\xF3ximos passos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Pesquisando no c\xF3digo","ui.sessionTurn.status.searchingWeb":"Pesquisando na web","ui.sessionTurn.status.makingEdits":"Fazendo edi\xE7\xF5es","ui.sessionTurn.status.runningCommands":"Executando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Organizando pensamentos","ui.sessionTurn.status.consideringNextSteps":"Considerando pr\xF3ximos passos","ui.messagePart.questions.dismissed":"Perguntas descartadas","ui.messagePart.compaction":"Sess\xE3o compactada","ui.messagePart.context.read.one":"{{count}} leitura","ui.messagePart.context.read.other":"{{count}} leituras","ui.messagePart.context.search.one":"{{count}} pesquisa","ui.messagePart.context.search.other":"{{count}} pesquisas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Erro","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escrever","ui.messagePart.option.typeOwnAnswer":"Digite sua pr\xF3pria resposta","ui.messagePart.review.title":"Revise suas respostas","ui.list.loading":"Carregando","ui.list.empty":"Nenhum resultado","ui.list.clearFilter":"Limpar filtro","ui.list.emptyWithFilter.prefix":"Nenhum resultado para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nova mensagem","ui.textField.copyToClipboard":"Copiar para \xE1rea de transfer\xEAncia","ui.textField.copyLink":"Copiar link","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Visualiza\xE7\xE3o de imagem","ui.scrollView.ariaLabel":"conte\xFAdo rol\xE1vel","ui.tool.read":"Ler","ui.tool.loaded":"Carregado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Buscar Web","ui.tool.websearch":"Pesquisa na Web","ui.tool.codesearch":"Pesquisa de C\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Tarefas","ui.tool.todos.read":"Ler tarefas","ui.tool.questions":"Perguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"arquivo","ui.common.file.other":"arquivos","ui.common.question.one":"pergunta","ui.common.question.other":"perguntas","ui.common.add":"Adicionar","ui.common.back":"Voltar","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Fechar","ui.common.next":"Pr\xF3ximo","ui.common.submit":"Enviar","ui.permission.deny":"Negar","ui.permission.allowAlways":"Permitir sempre","ui.permission.allowOnce":"Permitir uma vez","ui.message.expand":"Expandir mensagem","ui.message.collapse":"Recolher mensagem","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensagem","ui.message.forkMessage":"Bifurcar para nova sess\xE3o","ui.message.revertMessage":"Redefinir para este ponto","ui.message.copyResponse":"Copiar resposta","ui.message.copied":"Copiado!","ui.message.interrupted":"Interrompido","ui.message.queued":"Na fila","ui.message.attachment.alt":"anexo","ui.patch.action.deleted":"Exclu\xEDdo","ui.patch.action.created":"Criado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Patch aplicado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sem resposta)","ui.question.review.notAnswered":"(n\xE3o respondida)","ui.question.multiHint":"Selecione todas que se aplicam","ui.question.singleHint":"Selecione uma resposta","ui.question.custom.placeholder":"Digite sua resposta...","ui.fileSearch.placeholder":"Localizar","ui.fileSearch.previousMatch":"Ocorr\xEAncia anterior","ui.fileSearch.nextMatch":"Pr\xF3xima ocorr\xEAncia","ui.fileSearch.close":"Fechar busca","ui.tool.task":"Tarefa","ui.tool.skill":"Habilidade","ui.basicTool.called":"Chamou `{{tool}}`","ui.toolErrorCard.failed":"Falhou","ui.toolErrorCard.copyError":"Copiar erro","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ao as c,Bo as d,Co as e,yo as a,zo as b}from"./chunk-m8djypsy.js";import"./chunk-pfx8ts02.js";export{e as drizzle,b as SQLiteBunTransaction,a as SQLiteBunSession,d as SQLiteBunDatabase,c as PreparedQuery};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import x from"crypto";function B(q=43){let w=x.randomBytes(q);return z(w)}function C(q){let w=x.createHash("sha256").update(q).digest();return z(w)}function z(q){return q.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}
3
- export{B as jr,C as kr};
3
+ export{B as Ps,C as Qs};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ct as A}from"./chunk-fdmz0502.js";import{et as B}from"./chunk-1a08ffyd.js";import{Ht as O,It as Q,Jt as X}from"./chunk-6yshpz0z.js";function W(j,z){return typeof j==="object"&&j!==null&&"_tag"in j&&j._tag===z}function f(j){let z=O(j),J=typeof j==="object"&&j!==null&&"name"in j&&typeof j.name==="string"?j.name:z?.errorName,K=typeof j==="object"&&j!==null&&"data"in j&&typeof j.data==="object"&&j.data!==null&&"message"in j.data&&typeof j.data.message==="string"?j.data.message:void 0;if(J==="UnknownError"||z){let v=z??Q(j,J??"UnknownError"),G=K&&!K.startsWith("{")?K:"QitQode could not explain this failure.",L=v?` [${v.errorName}, error id ${v.errorID}${v.logFile?`; log: ${v.logFile}`:""}]`:"";return G+L}if(A.hasName(j,"MCPFailed"))return`MCP server "${j.data?.name}" failed. Note, qitqode does not support MCP authentication yet.`;if(W(j,"AccountServiceError")||W(j,"AccountTransportError"))return j.message??"";if(A.hasName(j,"ProviderModelNotFoundError")){let v=j.data,G=Array.isArray(v?.suggestions)?v.suggestions:[];return[`Model not found: ${v?.providerID}/${v?.modelID}`,...G.length?["Did you mean: "+G.join(", ")]:[],"Try: `qitqode models` to list available models","Or check your config (qitqode.json) provider/model names"].join(`
2
+ import{Iu as A}from"./chunk-76jbys6j.js";import{Ku as B}from"./chunk-9exxjnxc.js";import{lv as O,mv as Q,nv as X}from"./chunk-s5taq9jy.js";function W(j,z){return typeof j==="object"&&j!==null&&"_tag"in j&&j._tag===z}function f(j){let z=O(j),J=typeof j==="object"&&j!==null&&"name"in j&&typeof j.name==="string"?j.name:z?.errorName,K=typeof j==="object"&&j!==null&&"data"in j&&typeof j.data==="object"&&j.data!==null&&"message"in j.data&&typeof j.data.message==="string"?j.data.message:void 0;if(J==="UnknownError"||z){let v=z??Q(j,J??"UnknownError"),G=K&&!K.startsWith("{")?K:"QitQode could not explain this failure.",L=v?` [${v.errorName}, error id ${v.errorID}${v.logFile?`; log: ${v.logFile}`:""}]`:"";return G+L}if(A.hasName(j,"MCPFailed"))return`MCP server "${j.data?.name}" failed. Note, qitqode does not support MCP authentication yet.`;if(W(j,"AccountServiceError")||W(j,"AccountTransportError"))return j.message??"";if(A.hasName(j,"ProviderModelNotFoundError")){let v=j.data,G=Array.isArray(v?.suggestions)?v.suggestions:[];return[`Model not found: ${v?.providerID}/${v?.modelID}`,...G.length?["Did you mean: "+G.join(", ")]:[],"Try: `qitqode models` to list available models","Or check your config (qitqode.json) provider/model names"].join(`
3
3
  `)}if(A.hasName(j,"ProviderInitError"))return`Failed to initialize provider "${j.data?.providerID}". Check credentials and configuration.`;if(A.hasName(j,"ConfigJsonError")){let v=j.data;return`Config file at ${v?.path} is not valid JSON(C)`+(v?.message?`: ${v.message}`:"")}if(A.hasName(j,"ConfigDirectoryTypoError")){let v=j.data;return`Directory "${v?.dir}" in ${v?.path} is not valid. Rename the directory to "${v?.suggestion}" or remove it. This is a common typo.`}if(A.hasName(j,"ConfigFrontmatterError"))return j.data?.message??"";if(A.hasName(j,"ConfigInvalidError")){let v=j.data,G=v?.path,L=v?.message,Y=Array.isArray(v?.issues)?v.issues:[];return[`Configuration is invalid${G&&G!=="config"?` at ${G}`:""}`+(L?`: ${L}`:""),...Y.map((V)=>"\u21B3 "+V.message+" "+V.path.join("."))].join(`
4
4
  `)}if(A.hasName(j,"UICancelledError"))return"";let H=typeof j==="object"&&j!==null&&"name"in j?j.name:void 0;if(H==="QlexNotLoggedInError")return B.copy().notLoggedIn;if(H==="QlexInsufficientBalanceError")return(j.message??B.copy().insufficientBalanceFallback)+B.copy().insufficientBalanceCliSuffix;if(H==="QlexRateLimitError")return B.copy().rateLimit;if(H==="BackendInsufficientBalanceError")return(j.message??B.copy().insufficientBalanceFallback)+B.copy().insufficientBalanceCliSuffix;if(H==="BackendRateLimitError")return j.message??B.copy().rateLimit;if(H==="QlexInvalidCredentialsError")return j.message??B.copy().invalidCredentialsFallback}function q(j){let z=O(j)??Q(j);return`${X(j)}${z?` [${z.errorName}, error id ${z.errorID}; log: ${z.logFile}]`:""}`}function U({onlyFirst:j=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",j?void 0:"g")}var Z=U();function _(j){if(typeof j!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof j}\``);return j.replace(Z,"")}
5
- export{_ as Sf,f as Tf,q as Uf};
5
+ export{_ as Tf,f as Uf,q as Vf};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-pfx8ts02.js";var k="./opentui-drfwd3v7.dll";export{k as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{$g as D,Ah as x,lh as E}from"./chunk-fd04358e.js";import{Ml as w}from"./chunk-dn0437c1.js";import{Yt as z}from"./chunk-5dvy83ms.js";var H=z.create({service:"cli.bootstrap"});async function P(F,G){return w.provide({directory:F,init:()=>x.runPromise(D),fn:async()=>{try{return await G()}finally{await x.runPromise(E.Service.use((q)=>q.drainWriters())).catch((q)=>H.warn("checkpoint drain failed",{error:String(q)})),await w.dispose()}}})}
3
- export{P as Ud};
2
+ import{Bh as x,ah as D,mh as E}from"./chunk-p76c9s6g.js";import{Nl as w}from"./chunk-52n4tdeh.js";import{Cv as z}from"./chunk-62mb6wxm.js";var H=z.create({service:"cli.bootstrap"});async function P(F,G){return w.provide({directory:F,init:()=>x.runPromise(D),fn:async()=>{try{return await G()}finally{await x.runPromise(E.Service.use((q)=>q.drainWriters())).catch((q)=>H.warn("checkpoint drain failed",{error:String(q)})),await w.dispose()}}})}
3
+ export{P as Vd};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-sh03ka27.js";var{create:Zr,defineProperty:xt,getOwnPropertyDescriptor:Xr,getOwnPropertyNames:Yr,getPrototypeOf:es}=Object,ts=Object.prototype.hasOwnProperty,A=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Xt=(e,s)=>{for(var n in s)xt(e,n,{get:s[n],enumerable:!0})},rs=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of Yr(s))!ts.call(e,c)&&c!==n&&xt(e,c,{get:()=>s[c],enumerable:!(o=Xr(s,c))||o.enumerable});return e},xe=(e,s,n)=>(n=e!=null?Zr(es(e)):{},rs(s||!e||!e.__esModule?xt(n,"default",{value:e,enumerable:!0}):n,e)),ss=A((e,s)=>{var n=String,o=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};s.exports=o(),s.exports.createColors=o}),Yt=A(()=>{}),kt=A((e,s)=>{var n=ss(),o=Yt(),c=class i extends Error{constructor(h,p,m,u,r,t){super(h),this.name="CssSyntaxError",this.reason=h,r&&(this.file=r),u&&(this.source=u),t&&(this.plugin=t),typeof p<"u"&&typeof m<"u"&&(typeof p=="number"?(this.line=p,this.column=m):(this.line=p.line,this.column=p.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(h){if(!this.source)return"";let p=this.source;h==null&&(h=n.isColorSupported);let m=(l)=>l,u=(l)=>l,r=(l)=>l;if(h){let{bold:l,gray:w,red:y}=n.createColors(!0);u=(v)=>l(y(v)),m=(v)=>w(v),o&&(r=(v)=>o(v))}let t=p.split(/\r?\n/),f=Math.max(this.line-3,0),a=Math.min(this.line+2,t.length),d=String(a).length;return t.slice(f,a).map((l,w)=>{let y=f+1+w,v=" "+(" "+y).slice(-d)+" | ";if(y===this.line){if(l.length>160){let x=20,b=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),O=l.slice(b,T),k=m(v.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return u(">")+m(v)+r(O)+`
2
+ import"./chunk-pfx8ts02.js";var{create:Zr,defineProperty:xt,getOwnPropertyDescriptor:Xr,getOwnPropertyNames:Yr,getPrototypeOf:es}=Object,ts=Object.prototype.hasOwnProperty,A=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),Xt=(e,s)=>{for(var n in s)xt(e,n,{get:s[n],enumerable:!0})},rs=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of Yr(s))!ts.call(e,c)&&c!==n&&xt(e,c,{get:()=>s[c],enumerable:!(o=Xr(s,c))||o.enumerable});return e},xe=(e,s,n)=>(n=e!=null?Zr(es(e)):{},rs(s||!e||!e.__esModule?xt(n,"default",{value:e,enumerable:!0}):n,e)),ss=A((e,s)=>{var n=String,o=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};s.exports=o(),s.exports.createColors=o}),Yt=A(()=>{}),kt=A((e,s)=>{var n=ss(),o=Yt(),c=class i extends Error{constructor(h,p,m,u,r,t){super(h),this.name="CssSyntaxError",this.reason=h,r&&(this.file=r),u&&(this.source=u),t&&(this.plugin=t),typeof p<"u"&&typeof m<"u"&&(typeof p=="number"?(this.line=p,this.column=m):(this.line=p.line,this.column=p.column,this.endLine=m.line,this.endColumn=m.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(h){if(!this.source)return"";let p=this.source;h==null&&(h=n.isColorSupported);let m=(l)=>l,u=(l)=>l,r=(l)=>l;if(h){let{bold:l,gray:w,red:y}=n.createColors(!0);u=(v)=>l(y(v)),m=(v)=>w(v),o&&(r=(v)=>o(v))}let t=p.split(/\r?\n/),f=Math.max(this.line-3,0),a=Math.min(this.line+2,t.length),d=String(a).length;return t.slice(f,a).map((l,w)=>{let y=f+1+w,v=" "+(" "+y).slice(-d)+" | ";if(y===this.line){if(l.length>160){let x=20,b=Math.max(0,this.column-x),T=Math.max(this.column+x,this.endColumn+x),O=l.slice(b,T),k=m(v.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return u(">")+m(v)+r(O)+`
3
3
  `+k+u("^")}let g=m(v.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+m(v)+r(l)+`
4
4
  `+g+u("^")}return" "+m(v)+r(l)}).join(`
5
5
  `)}toString(){let h=this.showSourceCode();return h&&(h=`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-pfx8ts02.js";var t="./highlights-ghv9g403.scm";export{t as default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ks as a,Ls as b,Ms as c}from"./chunk-yxsc90ba.js";import"./chunk-vk8gxf4y.js";import"./chunk-pfx8ts02.js";export{a as openApp,c as default,b as apps};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{dn as E,en as c,fn as M,gn as i}from"./chunk-jwv6fda1.js";import{Dn as e,En as _0,Fn as I,Gn as O0,in as g,kn as n,ln as k,on as d,pn as u}from"./chunk-hx13a8es.js";import{Nn as r}from"./chunk-j3agzs13.js";import{kt as G,pt as y}from"./chunk-8jkqyf9n.js";import{Gt as s}from"./chunk-6yshpz0z.js";import{Pt as X,Yt as o}from"./chunk-5dvy83ms.js";import{du as x,hu as K,mu as T}from"./chunk-ffx0cr44.js";import{nu as j}from"./chunk-33mzqyyb.js";import{BC as v,FF as L,VO as A,gI as w,oJ as f}from"./chunk-9kc2th5c.js";import{wP as p}from"./chunk-sh03ka27.js";var F={};p(F,{waitForDependencies:()=>M0,layer:()=>V0,get:()=>R0,defaultLayer:()=>W0,TuiConfig:()=>F,Service:()=>z,Info:()=>Z0});import l from"path";var J={};p(J,{Keybinds:()=>B0,ConfigKeybinds:()=>J});var _=(O,Z)=>A.String.pipe(A.optional,A.withDecodingDefault(w.succeed(O))).annotate({description:Z}),j0=process.platform==="win32"?"ctrl+z,ctrl+-,super+z":"ctrl+-,super+z",w0=A.Struct({leader:_("ctrl+x","Leader key for keybind combinations"),app_exit:_("ctrl+c,ctrl+d,<leader>q","Exit the application"),editor_open:_("<leader>e","Open external editor"),theme_list:_("<leader>t","List available themes"),sidebar_toggle:_("<leader>b","Toggle sidebar"),scrollbar_toggle:_("none","Toggle session scrollbar"),status_view:_("<leader>s","View status"),session_export:_("<leader>x","Export session to editor"),session_new:_("<leader>n","Create a new session"),session_list:_("<leader>l","List all sessions"),session_timeline:_("<leader>g","Show session timeline"),session_fork:_("none","Fork session from message"),session_rename:_("ctrl+r","Rename session"),session_delete:_("ctrl+d","Delete session"),stash_delete:_("ctrl+d","Delete stash entry"),model_provider_list:_("ctrl+a","Open provider list from model dialog"),model_favorite_toggle:_("ctrl+f","Toggle model favorite status"),session_share:_("none","Share current session"),session_unshare:_("none","Unshare current session"),session_interrupt:_("escape","Interrupt current session"),session_compact:_("<leader>c","Compact the session"),messages_page_up:_("pageup,ctrl+alt+b","Scroll messages up by one page"),messages_page_down:_("pagedown,ctrl+alt+f","Scroll messages down by one page"),messages_line_up:_("ctrl+alt+y","Scroll messages up by one line"),messages_line_down:_("ctrl+alt+e","Scroll messages down by one line"),messages_half_page_up:_("ctrl+alt+u","Scroll messages up by half page"),messages_half_page_down:_("ctrl+alt+d","Scroll messages down by half page"),messages_first:_("ctrl+g,home","Navigate to first message"),messages_last:_("ctrl+alt+g,end","Navigate to last message"),messages_next:_("none","Navigate to next message"),messages_previous:_("none","Navigate to previous message"),messages_last_user:_("none","Navigate to last user message"),messages_copy:_("<leader>y","Copy message"),messages_undo:_("<leader>u","Undo message"),messages_redo:_("<leader>r","Redo message"),messages_toggle_conceal:_("<leader>h","Toggle code block concealment in messages"),tool_details:_("none","Toggle tool details visibility"),model_list:_("<leader>m","List available models"),model_cycle_recent:_("f2","Next recently used model"),model_cycle_recent_reverse:_("shift+f2","Previous recently used model"),model_cycle_favorite:_("none","Next favorite model"),model_cycle_favorite_reverse:_("none","Previous favorite model"),command_list:_("ctrl+p","List available commands"),agent_list:_("<leader>a","List agents"),agent_cycle:_("ctrl+space","Next agent"),agent_cycle_reverse:_("none","Previous agent"),variant_cycle:_("ctrl+t","Cycle model variants"),variant_list:_("none","List model variants"),input_clear:_("ctrl+c","Clear input field"),input_paste:_("super+v,ctrl+v","Paste from clipboard"),input_submit:_("return","Submit input"),input_newline:_("shift+return,ctrl+return,alt+return,ctrl+j","Insert newline in input"),input_move_left:_("left,ctrl+b","Move cursor left in input"),input_move_right:_("right,ctrl+f","Move cursor right in input"),input_move_up:_("up","Move cursor up in input"),input_move_down:_("down","Move cursor down in input"),input_select_left:_("shift+left","Select left in input"),input_select_right:_("shift+right","Select right in input"),input_select_up:_("shift+up","Select up in input"),input_select_down:_("shift+down","Select down in input"),input_line_home:_("ctrl+a","Move to start of line in input"),input_line_end:_("ctrl+e","Move to end of line in input"),input_select_line_home:_("ctrl+shift+a","Select to start of line in input"),input_select_line_end:_("ctrl+shift+e","Select to end of line in input"),input_visual_line_home:_("alt+a","Move to start of visual line in input"),input_visual_line_end:_("alt+e","Move to end of visual line in input"),input_select_visual_line_home:_("alt+shift+a","Select to start of visual line in input"),input_select_visual_line_end:_("alt+shift+e","Select to end of visual line in input"),input_buffer_home:_("home","Move to start of buffer in input"),input_buffer_end:_("end","Move to end of buffer in input"),input_select_buffer_home:_("shift+home","Select to start of buffer in input"),input_select_buffer_end:_("shift+end","Select to end of buffer in input"),input_delete_line:_("ctrl+shift+d","Delete line in input"),input_delete_to_line_end:_("ctrl+k","Delete to end of line in input"),input_delete_to_line_start:_("ctrl+u","Delete to start of line in input"),input_backspace:_("backspace,shift+backspace","Backspace in input"),input_delete:_("ctrl+d,delete,shift+delete","Delete character in input"),input_undo:_(j0,"Undo in input"),input_redo:_("ctrl+.,super+shift+z","Redo in input"),input_word_forward:_("alt+f,alt+right,ctrl+right","Move word forward in input"),input_word_backward:_("alt+b,alt+left,ctrl+left","Move word backward in input"),input_select_word_forward:_("alt+shift+f,alt+shift+right","Select word forward in input"),input_select_word_backward:_("alt+shift+b,alt+shift+left","Select word backward in input"),input_delete_word_forward:_("alt+d,alt+delete,ctrl+delete","Delete word forward in input"),input_delete_word_backward:_("ctrl+w,ctrl+backspace,alt+backspace","Delete word backward in input"),history_previous:_("up","Previous history item"),history_next:_("down","Next history item"),session_child_first:_("<leader>down","Go to first child session"),session_child_cycle:_("<leader>right","Go to next child session"),session_child_cycle_reverse:_("<leader>left","Go to previous child session"),session_parent:_("<leader>up","Go to parent session"),session_main:_("<leader>escape","Back to the main conversation"),terminal_suspend:_("ctrl+z","Suspend terminal"),terminal_title_toggle:_("none","Toggle terminal title"),tips_toggle:_("<leader>h","Toggle tips on home screen"),plugin_manager:_("none","Open plugin manager dialog"),display_thinking:_("none","Toggle thinking blocks visibility")}).annotate({identifier:"KeybindsConfig"}),B0=r(w0);var K0=j.object(Object.fromEntries(Object.keys(J.Keybinds.shape).map((O)=>[O,j.string().optional()]))).strict(),R=j.object({scroll_speed:j.number().min(0.001).optional().describe("TUI scroll speed"),scroll_acceleration:j.object({enabled:j.boolean().describe("Enable scroll acceleration")}).optional().describe("Scroll acceleration settings"),diff_style:j.enum(["auto","stacked"]).optional().describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),mouse:j.boolean().optional().describe("Enable or disable mouse capture (default: true on desktop, false on Android/Termux)"),accessible:j.boolean().optional().describe("Screen-reader friendly mode: linear main-screen rendering, no mouse capture, reduced motion, no sound (default: false)"),reduce_motion:j.boolean().optional().describe("Disable spinners and other animations, showing static text instead (default: false)"),sound:j.boolean().optional().describe("Enable or disable sound cues (default: true)"),announcements:j.enum(["quiet","normal","verbose"]).optional().describe("Verbosity of accessible-mode screen-reader announcements: 'quiet' announces only turn boundaries, errors, and stops; 'normal' adds tool-start lines; 'verbose' adds tool-completion lines (default: normal). Errors are always announced.")}),P=j.object({$schema:j.string().optional(),theme:j.string().optional(),keybinds:K0.optional(),plugin:M.Spec.zod.array().optional(),plugin_enabled:j.record(j.string(),j.boolean()).optional()}).extend(R.shape).strict();var D=o.create({service:"tui.migrate"}),X0="https://qitqode.com/tui.json",Y0=P.shape.theme.optional(),b=j.record(j.string(),j.unknown()).optional(),H0=j.object({scroll_speed:R.shape.scroll_speed.catch(void 0),scroll_acceleration:R.shape.scroll_acceleration.catch(void 0),diff_style:R.shape.diff_style.catch(void 0)}).strip();async function t(O){let Z=await G0(O);for(let V of Z){let $=await K.readText(V).catch((m)=>{D.warn("failed to read config for tui migration",{path:V,error:m});return});if(!$)continue;let Q=[],B=g($,Q,{allowTrailingComma:!0});if(Q.length||!B||typeof B!=="object"||Array.isArray(B))continue;let W=Y0.safeParse("theme"in B?B.theme:void 0),Y=b.safeParse("keybinds"in B?B.keybinds:void 0),N=b.safeParse("tui"in B?B.tui:void 0),H={theme:W.success?W.data:void 0,keybinds:Y.success?Y.data:void 0,tui:N.success?N.data:void 0},S=H.tui?J0(H.tui):void 0;if(H.theme===void 0&&H.keybinds===void 0&&!S)continue;let U=l.join(l.dirname(V),"tui.json");if(await K.exists(U))continue;let C={$schema:X0};if(H.theme!==void 0)C.theme=H.theme;if(H.keybinds!==void 0)C.keybinds=H.keybinds;if(S)Object.assign(C,S);if(!await K.write(U,JSON.stringify(C,null,2)).then(()=>!0).catch((m)=>{return D.warn("failed to write tui migration target",{from:V,to:U,error:m}),!1}))continue;if(!await D0(V,$)){D.warn("tui config migrated but source file was not stripped",{from:V,to:U});continue}D.info("migrated tui config",{from:V,to:U})}}function J0(O){let Z=H0.parse(O);if(Z.scroll_speed===void 0&&Z.diff_style===void 0&&Z.scroll_acceleration===void 0)return;return Z}async function D0(O,Z){let V=O+".tui-migration.bak";if(!(await K.exists(V)?!0:await K.write(V,Z).then(()=>!0).catch((W)=>{return D.warn("failed to backup source config during tui migration",{path:O,backup:V,error:W}),!1})))return!1;let B=["theme","keybinds","tui"].reduce((W,Y)=>{let N=n(W,[Y],void 0,{formattingOptions:{insertSpaces:!0,tabSize:2}});if(!N.length)return W;return k(W,N)},Z);return K.write(O,B).then(()=>{return D.info("stripped tui keys from server config",{path:O,backup:V}),!0}).catch((W)=>{return D.warn("failed to strip legacy tui keys from server config",{path:O,backup:V,error:W}),!1})}async function G0(O){let Z=[...I(T.Path.config,"qitqode"),...await K.findUp(["qitqode.json","qitqode.jsonc"],O.cwd,void 0,{rootFirst:!0})];for(let $ of G(O.directories))Z.push(...I($,"qitqode"));if(X.QITQODE_CONFIG)Z.push(X.QITQODE_CONFIG);return(await Promise.all(G(Z).map(async($)=>{return await K.exists($)?$:void 0}))).filter(($)=>!!$)}var a=v.Reference("CurrentWorkingDirectory",{defaultValue:()=>process.cwd()});var h=o.create({service:"tui.config"}),Z0=P;class z extends v.Service()("@qitqode/TuiConfig"){}function I0(O,Z){if(K.contains(Z.directory,O))return"local";return"global"}function N0(O){let Z={...O};if(!("tui"in Z))return Z;if(!s(Z.tui))return delete Z.tui,Z;let V=Z.tui;return delete Z.tui,{...V,...Z}}async function U0(O,Z){if(!O.plugin)return O;for(let V=0;V<O.plugin.length;V++)O.plugin[V]=await M.resolvePluginSpec(O.plugin[V],Z);return O}async function q(O,Z,V){let $=await z0(Z);if(O.result=y(O.result,$),!$.plugin?.length)return;let Q=I0(Z,V),B=M.deduplicatePluginOrigins([...O.result.plugin_origins??[],...$.plugin.map((W)=>({spec:W,scope:Q,source:Z}))]);O.result.plugin=B.map((W)=>W.spec),O.result.plugin_origins=B}var A0=w.fn("TuiConfig.loadState")(function*(O){let Z=yield*_0(O.directory);yield*w.promise(()=>t({directories:Z,cwd:O.directory}));let V=X.QITQODE_DISABLE_PROJECT_CONFIG?[]:yield*e("tui",O.directory),$={result:{}};for(let W of I(T.Path.config,"tui"))yield*w.promise(()=>q($,W,O)).pipe(w.orDie);if(X.QITQODE_TUI_CONFIG){let W=X.QITQODE_TUI_CONFIG;yield*w.promise(()=>q($,W,O)).pipe(w.orDie),h.debug("loaded custom tui config",{path:W})}for(let W of V)yield*w.promise(()=>q($,W,O)).pipe(w.orDie);let Q=G(Z).filter((W)=>W.endsWith(".qitqode")||W===X.QITQODE_CONFIG_DIR);for(let W of Q){if(!W.endsWith(".qitqode")&&W!==X.QITQODE_CONFIG_DIR)continue;for(let Y of I(W,"tui"))yield*w.promise(()=>q($,Y,O)).pipe(w.orDie)}let B={...$.result.keybinds??{}};if(process.platform==="win32")B.terminal_suspend="none",B.input_undo??=G(["ctrl+z",...J.Keybinds.shape.input_undo.parse(void 0).split(",")]).join(",");return $.result.keybinds=J.Keybinds.parse(B),{config:$.result,dirs:$.result.plugin?.length?Q:[]}}),V0=L.effect(z,w.gen(function*(){let O=yield*a,Z=yield*u.Service,V=yield*x.Service,$=yield*A0({directory:O}),Q=yield*w.forEach($.dirs,(Y)=>i.install({fs:V,npm:Z,dir:Y}).pipe(w.forkScoped),{concurrency:"unbounded"}),B=w.fn("TuiConfig.get")(()=>w.succeed($.config)),W=w.fn("TuiConfig.waitForDependencies")(()=>w.forEach(Q,f.join,{concurrency:"unbounded"}).pipe(w.ignore(),w.asVoid));return z.of({get:B,waitForDependencies:W})}).pipe(w.withSpan("TuiConfig.layer"))),W0=V0.pipe(L.provide(u.defaultLayer),L.provide(x.defaultLayer)),{runPromise:$0}=d(z,W0);async function M0(){await $0((O)=>O.waitForDependencies())}async function R0(){return $0((O)=>O.get())}async function z0(O){let Z=await O0(O);if(!Z)return{};return C0(Z,O).catch((V)=>{return h.warn("failed to load tui config",{path:O,error:V}),{}})}async function C0(O,Z){return c.substitute({text:O,type:"path",path:Z,missing:"empty"}).then((V)=>E.jsonc(V,Z)).then((V)=>{if(!s(V))return{};return E.schema(Z0,N0(V),Z)}).then((V)=>U0(V,Z)).catch((V)=>{return h.warn("invalid tui config",{path:Z,error:V}),{}})}
2
+ import{Do as E,Eo as c,Fo as M,Go as i}from"./chunk-m0f6cf9n.js";import{Io as g,Ko as n,Lo as k,Oo as d,Po as u,bp as e,cp as _0,dp as I,ep as O0}from"./chunk-n7ewvphw.js";import{lp as r}from"./chunk-wf18y499.js";import{Qu as G,Vu as y}from"./chunk-dm7hfb7f.js";import{kv as s}from"./chunk-s5taq9jy.js";import{Cv as o,tv as X}from"./chunk-62mb6wxm.js";import{Jv as x,Nv as K,Sv as T}from"./chunk-zg72kz2k.js";import{Tv as j}from"./chunk-kr7t73tg.js";import{MJ as w,UK as f,fE as v,jH as L,zQ as A}from"./chunk-qvnsgyfk.js";import{aR as p}from"./chunk-pfx8ts02.js";var F={};p(F,{waitForDependencies:()=>M0,layer:()=>V0,get:()=>R0,defaultLayer:()=>W0,TuiConfig:()=>F,Service:()=>z,Info:()=>Z0});import l from"path";var J={};p(J,{Keybinds:()=>B0,ConfigKeybinds:()=>J});var _=(O,Z)=>A.String.pipe(A.optional,A.withDecodingDefault(w.succeed(O))).annotate({description:Z}),j0=process.platform==="win32"?"ctrl+z,ctrl+-,super+z":"ctrl+-,super+z",w0=A.Struct({leader:_("ctrl+x","Leader key for keybind combinations"),app_exit:_("ctrl+c,ctrl+d,<leader>q","Exit the application"),editor_open:_("<leader>e","Open external editor"),theme_list:_("<leader>t","List available themes"),sidebar_toggle:_("<leader>b","Toggle sidebar"),scrollbar_toggle:_("none","Toggle session scrollbar"),status_view:_("<leader>s","View status"),session_export:_("<leader>x","Export session to editor"),session_new:_("<leader>n","Create a new session"),session_list:_("<leader>l","List all sessions"),session_timeline:_("<leader>g","Show session timeline"),session_fork:_("none","Fork session from message"),session_rename:_("ctrl+r","Rename session"),session_delete:_("ctrl+d","Delete session"),stash_delete:_("ctrl+d","Delete stash entry"),model_provider_list:_("ctrl+a","Open provider list from model dialog"),model_favorite_toggle:_("ctrl+f","Toggle model favorite status"),session_share:_("none","Share current session"),session_unshare:_("none","Unshare current session"),session_interrupt:_("escape","Interrupt current session"),session_compact:_("<leader>c","Compact the session"),messages_page_up:_("pageup,ctrl+alt+b","Scroll messages up by one page"),messages_page_down:_("pagedown,ctrl+alt+f","Scroll messages down by one page"),messages_line_up:_("ctrl+alt+y","Scroll messages up by one line"),messages_line_down:_("ctrl+alt+e","Scroll messages down by one line"),messages_half_page_up:_("ctrl+alt+u","Scroll messages up by half page"),messages_half_page_down:_("ctrl+alt+d","Scroll messages down by half page"),messages_first:_("ctrl+g,home","Navigate to first message"),messages_last:_("ctrl+alt+g,end","Navigate to last message"),messages_next:_("none","Navigate to next message"),messages_previous:_("none","Navigate to previous message"),messages_last_user:_("none","Navigate to last user message"),messages_copy:_("<leader>y","Copy message"),messages_undo:_("<leader>u","Undo message"),messages_redo:_("<leader>r","Redo message"),messages_toggle_conceal:_("<leader>h","Toggle code block concealment in messages"),tool_details:_("none","Toggle tool details visibility"),model_list:_("<leader>m","List available models"),model_cycle_recent:_("f2","Next recently used model"),model_cycle_recent_reverse:_("shift+f2","Previous recently used model"),model_cycle_favorite:_("none","Next favorite model"),model_cycle_favorite_reverse:_("none","Previous favorite model"),command_list:_("ctrl+p","List available commands"),agent_list:_("<leader>a","List agents"),agent_cycle:_("ctrl+space","Next agent"),agent_cycle_reverse:_("none","Previous agent"),variant_cycle:_("ctrl+t","Cycle model variants"),variant_list:_("none","List model variants"),input_clear:_("ctrl+c","Clear input field"),input_paste:_("super+v,ctrl+v","Paste from clipboard"),input_submit:_("return","Submit input"),input_newline:_("shift+return,ctrl+return,alt+return,ctrl+j","Insert newline in input"),input_move_left:_("left,ctrl+b","Move cursor left in input"),input_move_right:_("right,ctrl+f","Move cursor right in input"),input_move_up:_("up","Move cursor up in input"),input_move_down:_("down","Move cursor down in input"),input_select_left:_("shift+left","Select left in input"),input_select_right:_("shift+right","Select right in input"),input_select_up:_("shift+up","Select up in input"),input_select_down:_("shift+down","Select down in input"),input_line_home:_("ctrl+a","Move to start of line in input"),input_line_end:_("ctrl+e","Move to end of line in input"),input_select_line_home:_("ctrl+shift+a","Select to start of line in input"),input_select_line_end:_("ctrl+shift+e","Select to end of line in input"),input_visual_line_home:_("alt+a","Move to start of visual line in input"),input_visual_line_end:_("alt+e","Move to end of visual line in input"),input_select_visual_line_home:_("alt+shift+a","Select to start of visual line in input"),input_select_visual_line_end:_("alt+shift+e","Select to end of visual line in input"),input_buffer_home:_("home","Move to start of buffer in input"),input_buffer_end:_("end","Move to end of buffer in input"),input_select_buffer_home:_("shift+home","Select to start of buffer in input"),input_select_buffer_end:_("shift+end","Select to end of buffer in input"),input_delete_line:_("ctrl+shift+d","Delete line in input"),input_delete_to_line_end:_("ctrl+k","Delete to end of line in input"),input_delete_to_line_start:_("ctrl+u","Delete to start of line in input"),input_backspace:_("backspace,shift+backspace","Backspace in input"),input_delete:_("ctrl+d,delete,shift+delete","Delete character in input"),input_undo:_(j0,"Undo in input"),input_redo:_("ctrl+.,super+shift+z","Redo in input"),input_word_forward:_("alt+f,alt+right,ctrl+right","Move word forward in input"),input_word_backward:_("alt+b,alt+left,ctrl+left","Move word backward in input"),input_select_word_forward:_("alt+shift+f,alt+shift+right","Select word forward in input"),input_select_word_backward:_("alt+shift+b,alt+shift+left","Select word backward in input"),input_delete_word_forward:_("alt+d,alt+delete,ctrl+delete","Delete word forward in input"),input_delete_word_backward:_("ctrl+w,ctrl+backspace,alt+backspace","Delete word backward in input"),history_previous:_("up","Previous history item"),history_next:_("down","Next history item"),session_child_first:_("<leader>down","Go to first child session"),session_child_cycle:_("<leader>right","Go to next child session"),session_child_cycle_reverse:_("<leader>left","Go to previous child session"),session_parent:_("<leader>up","Go to parent session"),session_main:_("<leader>escape","Back to the main conversation"),terminal_suspend:_("ctrl+z","Suspend terminal"),terminal_title_toggle:_("none","Toggle terminal title"),tips_toggle:_("<leader>h","Toggle tips on home screen"),plugin_manager:_("none","Open plugin manager dialog"),display_thinking:_("none","Toggle thinking blocks visibility")}).annotate({identifier:"KeybindsConfig"}),B0=r(w0);var K0=j.object(Object.fromEntries(Object.keys(J.Keybinds.shape).map((O)=>[O,j.string().optional()]))).strict(),R=j.object({scroll_speed:j.number().min(0.001).optional().describe("TUI scroll speed"),scroll_acceleration:j.object({enabled:j.boolean().describe("Enable scroll acceleration")}).optional().describe("Scroll acceleration settings"),diff_style:j.enum(["auto","stacked"]).optional().describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),mouse:j.boolean().optional().describe("Enable or disable mouse capture (default: true on desktop, false on Android/Termux)"),accessible:j.boolean().optional().describe("Screen-reader friendly mode: linear main-screen rendering, no mouse capture, reduced motion, no sound (default: false)"),reduce_motion:j.boolean().optional().describe("Disable spinners and other animations, showing static text instead (default: false)"),sound:j.boolean().optional().describe("Enable or disable sound cues (default: true)"),announcements:j.enum(["quiet","normal","verbose"]).optional().describe("Verbosity of accessible-mode screen-reader announcements: 'quiet' announces only turn boundaries, errors, and stops; 'normal' adds tool-start lines; 'verbose' adds tool-completion lines (default: normal). Errors are always announced.")}),P=j.object({$schema:j.string().optional(),theme:j.string().optional(),keybinds:K0.optional(),plugin:M.Spec.zod.array().optional(),plugin_enabled:j.record(j.string(),j.boolean()).optional()}).extend(R.shape).strict();var D=o.create({service:"tui.migrate"}),X0="https://qitqode.com/tui.json",Y0=P.shape.theme.optional(),b=j.record(j.string(),j.unknown()).optional(),H0=j.object({scroll_speed:R.shape.scroll_speed.catch(void 0),scroll_acceleration:R.shape.scroll_acceleration.catch(void 0),diff_style:R.shape.diff_style.catch(void 0)}).strip();async function t(O){let Z=await G0(O);for(let V of Z){let $=await K.readText(V).catch((m)=>{D.warn("failed to read config for tui migration",{path:V,error:m});return});if(!$)continue;let Q=[],B=g($,Q,{allowTrailingComma:!0});if(Q.length||!B||typeof B!=="object"||Array.isArray(B))continue;let W=Y0.safeParse("theme"in B?B.theme:void 0),Y=b.safeParse("keybinds"in B?B.keybinds:void 0),N=b.safeParse("tui"in B?B.tui:void 0),H={theme:W.success?W.data:void 0,keybinds:Y.success?Y.data:void 0,tui:N.success?N.data:void 0},S=H.tui?J0(H.tui):void 0;if(H.theme===void 0&&H.keybinds===void 0&&!S)continue;let U=l.join(l.dirname(V),"tui.json");if(await K.exists(U))continue;let C={$schema:X0};if(H.theme!==void 0)C.theme=H.theme;if(H.keybinds!==void 0)C.keybinds=H.keybinds;if(S)Object.assign(C,S);if(!await K.write(U,JSON.stringify(C,null,2)).then(()=>!0).catch((m)=>{return D.warn("failed to write tui migration target",{from:V,to:U,error:m}),!1}))continue;if(!await D0(V,$)){D.warn("tui config migrated but source file was not stripped",{from:V,to:U});continue}D.info("migrated tui config",{from:V,to:U})}}function J0(O){let Z=H0.parse(O);if(Z.scroll_speed===void 0&&Z.diff_style===void 0&&Z.scroll_acceleration===void 0)return;return Z}async function D0(O,Z){let V=O+".tui-migration.bak";if(!(await K.exists(V)?!0:await K.write(V,Z).then(()=>!0).catch((W)=>{return D.warn("failed to backup source config during tui migration",{path:O,backup:V,error:W}),!1})))return!1;let B=["theme","keybinds","tui"].reduce((W,Y)=>{let N=n(W,[Y],void 0,{formattingOptions:{insertSpaces:!0,tabSize:2}});if(!N.length)return W;return k(W,N)},Z);return K.write(O,B).then(()=>{return D.info("stripped tui keys from server config",{path:O,backup:V}),!0}).catch((W)=>{return D.warn("failed to strip legacy tui keys from server config",{path:O,backup:V,error:W}),!1})}async function G0(O){let Z=[...I(T.Path.config,"qitqode"),...await K.findUp(["qitqode.json","qitqode.jsonc"],O.cwd,void 0,{rootFirst:!0})];for(let $ of G(O.directories))Z.push(...I($,"qitqode"));if(X.QITQODE_CONFIG)Z.push(X.QITQODE_CONFIG);return(await Promise.all(G(Z).map(async($)=>{return await K.exists($)?$:void 0}))).filter(($)=>!!$)}var a=v.Reference("CurrentWorkingDirectory",{defaultValue:()=>process.cwd()});var h=o.create({service:"tui.config"}),Z0=P;class z extends v.Service()("@qitqode/TuiConfig"){}function I0(O,Z){if(K.contains(Z.directory,O))return"local";return"global"}function N0(O){let Z={...O};if(!("tui"in Z))return Z;if(!s(Z.tui))return delete Z.tui,Z;let V=Z.tui;return delete Z.tui,{...V,...Z}}async function U0(O,Z){if(!O.plugin)return O;for(let V=0;V<O.plugin.length;V++)O.plugin[V]=await M.resolvePluginSpec(O.plugin[V],Z);return O}async function q(O,Z,V){let $=await z0(Z);if(O.result=y(O.result,$),!$.plugin?.length)return;let Q=I0(Z,V),B=M.deduplicatePluginOrigins([...O.result.plugin_origins??[],...$.plugin.map((W)=>({spec:W,scope:Q,source:Z}))]);O.result.plugin=B.map((W)=>W.spec),O.result.plugin_origins=B}var A0=w.fn("TuiConfig.loadState")(function*(O){let Z=yield*_0(O.directory);yield*w.promise(()=>t({directories:Z,cwd:O.directory}));let V=X.QITQODE_DISABLE_PROJECT_CONFIG?[]:yield*e("tui",O.directory),$={result:{}};for(let W of I(T.Path.config,"tui"))yield*w.promise(()=>q($,W,O)).pipe(w.orDie);if(X.QITQODE_TUI_CONFIG){let W=X.QITQODE_TUI_CONFIG;yield*w.promise(()=>q($,W,O)).pipe(w.orDie),h.debug("loaded custom tui config",{path:W})}for(let W of V)yield*w.promise(()=>q($,W,O)).pipe(w.orDie);let Q=G(Z).filter((W)=>W.endsWith(".qitqode")||W===X.QITQODE_CONFIG_DIR);for(let W of Q){if(!W.endsWith(".qitqode")&&W!==X.QITQODE_CONFIG_DIR)continue;for(let Y of I(W,"tui"))yield*w.promise(()=>q($,Y,O)).pipe(w.orDie)}let B={...$.result.keybinds??{}};if(process.platform==="win32")B.terminal_suspend="none",B.input_undo??=G(["ctrl+z",...J.Keybinds.shape.input_undo.parse(void 0).split(",")]).join(",");return $.result.keybinds=J.Keybinds.parse(B),{config:$.result,dirs:$.result.plugin?.length?Q:[]}}),V0=L.effect(z,w.gen(function*(){let O=yield*a,Z=yield*u.Service,V=yield*x.Service,$=yield*A0({directory:O}),Q=yield*w.forEach($.dirs,(Y)=>i.install({fs:V,npm:Z,dir:Y}).pipe(w.forkScoped),{concurrency:"unbounded"}),B=w.fn("TuiConfig.get")(()=>w.succeed($.config)),W=w.fn("TuiConfig.waitForDependencies")(()=>w.forEach(Q,f.join,{concurrency:"unbounded"}).pipe(w.ignore(),w.asVoid));return z.of({get:B,waitForDependencies:W})}).pipe(w.withSpan("TuiConfig.layer"))),W0=V0.pipe(L.provide(u.defaultLayer),L.provide(x.defaultLayer)),{runPromise:$0}=d(z,W0);async function M0(){await $0((O)=>O.waitForDependencies())}async function R0(){return $0((O)=>O.get())}async function z0(O){let Z=await O0(O);if(!Z)return{};return C0(Z,O).catch((V)=>{return h.warn("failed to load tui config",{path:O,error:V}),{}})}async function C0(O,Z){return c.substitute({text:O,type:"path",path:Z,missing:"empty"}).then((V)=>E.jsonc(V,Z)).then((V)=>{if(!s(V))return{};return E.schema(Z0,N0(V),Z)}).then((V)=>U0(V,Z)).catch((V)=>{return h.warn("invalid tui config",{path:Z,error:V}),{}})}
3
3
  export{Z0 as u,z as v,V0 as w,W0 as x,M0 as y,R0 as z,F as A};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$d as D,Zd as q,_d as K,ce as L,de as N}from"./chunk-3dfy9k0t.js";import"./chunk-e4nap6v9.js";import{dg as B}from"./chunk-5t69v8jg.js";import{Bh as G}from"./chunk-p76c9s6g.js";import"./chunk-az2pxgx6.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-vr222v2n.js";import"./chunk-6vpc1y3w.js";import"./chunk-j95mkzwg.js";import{fl as C}from"./chunk-tatecas7.js";import"./chunk-52n4tdeh.js";import"./chunk-ft4msj4z.js";import"./chunk-m8djypsy.js";import"./chunk-m0f6cf9n.js";import"./chunk-n7ewvphw.js";import"./chunk-ya7wrt5f.js";import"./chunk-wf18y499.js";import"./chunk-4bp91rza.js";import"./chunk-6vxddv5w.js";import"./chunk-dwza14dk.js";import"./chunk-vey57h4x.js";import"./chunk-40pe0tde.js";import"./chunk-d4y5hyjg.js";import"./chunk-q0pd8bac.js";import"./chunk-4dy64hgp.js";import"./chunk-cqtkxwd8.js";import"./chunk-gt10s0ks.js";import"./chunk-z9k4506p.js";import"./chunk-yxsc90ba.js";import"./chunk-vk8gxf4y.js";import"./chunk-jr622341.js";import"./chunk-xzshjp04.js";import"./chunk-pyt4xpze.js";import"./chunk-52f62kr0.js";import"./chunk-svnhycdw.js";import"./chunk-9skj2w9e.js";import"./chunk-m5r6zq6v.js";import"./chunk-vg9ec44m.js";import"./chunk-e826jvr2.js";import"./chunk-4gv7nsdd.js";import"./chunk-afagt413.js";import"./chunk-76jbys6j.js";import"./chunk-9exxjnxc.js";import{Lu as J}from"./chunk-dm7hfb7f.js";import"./chunk-s5taq9jy.js";import"./chunk-62mb6wxm.js";import"./chunk-zg72kz2k.js";import"./chunk-kr7t73tg.js";import"./chunk-9tfm1dk2.js";import"./chunk-x2mbre12.js";import"./chunk-sprbs7aj.js";import"./chunk-qvnsgyfk.js";import"./chunk-zezz8xfw.js";import"./chunk-bkqemdv8.js";import"./chunk-pfx8ts02.js";var X={command:"upgrade [target]",describe:"upgrade qitqode to the latest or a specific version",builder:(z)=>{return z.positional("target",{describe:"version to upgrade to, for ex '0.1.48' or 'v0.1.48'",type:"string"}).option("method",{alias:"m",describe:"installation method to use",type:"string",choices:["curl","npm","pnpm","bun","brew","choco","scoop"]})},handler:async(z)=>{B.empty(),B.println(B.logo(" ")),B.empty(),K("Upgrade");let O=await G.runPromise(C.Service.use((j)=>j.method())),E=z.method??O;if(E==="unknown"){if(q.error(`qitqode is installed to ${process.execPath} and may be managed by a package manager`),!await N({message:"Install anyways?",options:[{label:"Yes",value:!0},{label:"No",value:!1}],initialValue:!1})){D("Done");return}}q.info("Using method: "+E);let F=z.target?z.target.replace(/^v/,""):await G.runPromise(C.Service.use((j)=>j.latest()));if(J===F){q.warn(`qitqode upgrade skipped: ${F} is already installed`),D("Done");return}q.info(`From ${J} \u2192 ${F}`);let H=L();H.start("Upgrading...");let x=await G.runPromise(C.Service.use((j)=>j.upgrade(E,F))).catch((j)=>j);if(x){if(H.stop("Upgrade failed",1),x instanceof C.UpgradeFailedError)if(E==="choco"&&x.stderr.includes("not running from an elevated command shell"))q.error("Please run the terminal as Administrator and try again");else q.error(x.stderr);else if(x instanceof Error)q.error(x.message);D("Done");return}H.stop("Upgrade complete"),D("Done")}};export{X as UpgradeCommand};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{pw as o}from"./chunk-9tfm1dk2.js";var e=o;
3
+ export{e as Tv};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{wg as a,xg as b,yg as c}from"./chunk-0gqwvt8w.js";import"./chunk-j95mkzwg.js";import"./chunk-tatecas7.js";import"./chunk-52n4tdeh.js";import"./chunk-ft4msj4z.js";import"./chunk-m8djypsy.js";import"./chunk-m0f6cf9n.js";import"./chunk-n7ewvphw.js";import"./chunk-ya7wrt5f.js";import"./chunk-wf18y499.js";import"./chunk-4bp91rza.js";import"./chunk-6vxddv5w.js";import"./chunk-dwza14dk.js";import"./chunk-vey57h4x.js";import"./chunk-40pe0tde.js";import"./chunk-d4y5hyjg.js";import"./chunk-q0pd8bac.js";import"./chunk-4dy64hgp.js";import"./chunk-cqtkxwd8.js";import"./chunk-gt10s0ks.js";import"./chunk-z9k4506p.js";import"./chunk-yxsc90ba.js";import"./chunk-vk8gxf4y.js";import"./chunk-jr622341.js";import"./chunk-52f62kr0.js";import"./chunk-svnhycdw.js";import"./chunk-9skj2w9e.js";import"./chunk-m5r6zq6v.js";import"./chunk-vg9ec44m.js";import"./chunk-e826jvr2.js";import"./chunk-4gv7nsdd.js";import"./chunk-afagt413.js";import"./chunk-76jbys6j.js";import"./chunk-9exxjnxc.js";import"./chunk-dm7hfb7f.js";import"./chunk-s5taq9jy.js";import"./chunk-62mb6wxm.js";import"./chunk-zg72kz2k.js";import"./chunk-kr7t73tg.js";import"./chunk-9tfm1dk2.js";import"./chunk-x2mbre12.js";import"./chunk-sprbs7aj.js";import"./chunk-qvnsgyfk.js";import"./chunk-bkqemdv8.js";import"./chunk-pfx8ts02.js";export{b as run,a as encodeDir,c as ClaudeImport};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Je as Qb}from"./chunk-ffyj5nsg.js";import{Ne as Xb}from"./chunk-0m4gvjcv.js";import{Oe as Wb}from"./chunk-69k7cdtv.js";import{Pe as Jb,Qe as Kb,Re as Lb}from"./chunk-w136zswr.js";import{Se as Db}from"./chunk-s0gmxpxm.js";import{Ef as bb,Ff as jb,Gf as kb,Hf as wb,If as Bb}from"./chunk-48rg4yhk.js";import"./chunk-sh03ka27.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
2
+ import{Ke as Qb}from"./chunk-ssp3nw24.js";import{Oe as Xb}from"./chunk-n25t4j9w.js";import{Pe as Wb}from"./chunk-mqe1qa6t.js";import{Qe as Jb,Re as Kb,Se as Lb}from"./chunk-ganwjd6s.js";import{Te as Db}from"./chunk-s1gy4hnw.js";import{Ff as bb,Gf as jb,Hf as kb,If as wb,Jf as Bb}from"./chunk-b2zfr7jz.js";import"./chunk-pfx8ts02.js";var K=Lb(),V=Kb(),D=jb(),J=kb(),H=wb(),M=Db(),G=Jb(),P=bb(),E=Qb(),Z=Bb(),m=Wb(),Yb=Xb(),Zb=async(b,j,k)=>{return{operation:D.getSmithyContext(j).operation,region:await D.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Hb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:b.region},propertiesExtractor:(j,k)=>({signingProperties:{config:j,context:k}})}}function Gb(b){return{schemeId:"smithy.api#noAuth"}}var zb=(b)=>{let j=[];switch(b.operation){case"GetRoleCredentials":{j.push(Gb());break}default:j.push(Hb(b))}return j},Fb=(b)=>{let j=E.resolveAwsSdkSigV4Config(b);return Object.assign(j,{authSchemePreference:D.normalizeProvider(b.authSchemePreference??[])})},Ib=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Nb={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ub="3.997.14",Vb={version:Ub},z="ref",W=-1,N=!0,S="isSet",a="PartitionResult",U="booleanEquals",A="getAttr",h={[z]:"Endpoint"},v={[z]:a},Y={},p=[{[z]:"Region"}],u={conditions:[[S,[h]],[S,p],["aws.partition",p,a],[U,[{[z]:"UseFIPS"},N]],[U,[{[z]:"UseDualStack"},N]],[U,[{fn:A,argv:[v,"supportsDualStack"]},N]],[U,[{fn:A,argv:[v,"supportsFIPS"]},N]],["stringEquals",[{fn:A,argv:[v,"name"]},"aws-us-gov"]]],results:[[W],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[h,Y],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Y],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Y],[W,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Y],[W,"Invalid Configuration: Missing Region"]]},Mb=2,B=1e8,qb=new Int32Array([-1,1,-1,0,13,3,1,4,B+12,2,5,B+12,3,8,6,4,7,B+11,5,B+9,B+10,4,11,9,6,10,B+8,7,B+6,B+7,5,12,B+5,6,B+4,B+5,3,B+1,14,4,B+2,B+3]),Tb=H.BinaryDecisionDiagram.from(qb,Mb,u.conditions,u.results),yb=new H.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ob=(b,j={})=>{return yb.get(b,()=>H.decideEndpoint(Tb,{endpointParams:b,logger:j.logger}))};H.customEndpointFunctions.aws=K.awsEndpointFunctions;class X extends D.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,X.prototype)}}class l extends X{name="InvalidRequestException";$fault="client";constructor(b){super({name:"InvalidRequestException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class x extends X{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,x.prototype)}}class C extends X{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,C.prototype)}}class $ extends X{name="UnauthorizedException";$fault="client";constructor(b){super({name:"UnauthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}var Rb="AccessTokenType",Ab="GetRoleCredentials",vb="GetRoleCredentialsRequest",Pb="GetRoleCredentialsResponse",Eb="InvalidRequestException",lb="RoleCredentials",xb="ResourceNotFoundException",Cb="SecretAccessKeyType",$b="SessionTokenType",_b="TooManyRequestsException",db="UnauthorizedException",mb="accountId",Sb="accessKeyId",hb="accessToken",pb="account_id",q="client",T="error",ub="expiration",sb="http",y="httpError",ab="httpHeader",s="httpQuery",O="message",rb="roleCredentials",gb="roleName",fb="role_name",r="smithy.ts.sdk.synthetic.com.amazonaws.sso",cb="secretAccessKey",tb="sessionToken",eb="x-amz-sso_bearer_token",L="com.amazonaws.sso",g=P.TypeRegistry.for(r),ib=[-3,r,"SSOServiceException",0,[],[]];g.registerError(ib,X);var F=P.TypeRegistry.for(L),nb=[-3,L,Eb,{[T]:q,[y]:400},[O],[0]];F.registerError(nb,l);var ob=[-3,L,xb,{[T]:q,[y]:404},[O],[0]];F.registerError(ob,x);var bj=[-3,L,_b,{[T]:q,[y]:429},[O],[0]];F.registerError(bj,C);var jj=[-3,L,db,{[T]:q,[y]:401},[O],[0]];F.registerError(jj,$);var kj=[g,F],wj=[0,L,Rb,8,0],Bj=[0,L,Cb,8,0],Dj=[0,L,$b,8,0],Jj=[3,L,vb,0,[gb,mb,hb],[[0,{[s]:fb}],[0,{[s]:pb}],[()=>wj,{[ab]:eb}]],3],Kj=[3,L,Pb,0,[rb],[[()=>Lj,0]]],Lj=[3,L,lb,0,[Sb,cb,tb,ub],[0,[()=>Bj,0],[()=>Dj,0],1]],Qj=[9,L,Ab,{[sb]:["GET","/federation/credentials",200]},()=>Jj,()=>Kj],Wj=(b)=>{return{apiVersion:"2019-06-10",base64Decoder:b?.base64Decoder??Z.fromBase64,base64Encoder:b?.base64Encoder??Z.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??Ob,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??zb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(j)=>j.getIdentityProvider("aws.auth#sigv4"),signer:new E.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(j)=>j.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new V.NoAuthSigner}],logger:b?.logger??new D.NoOpLogger,protocol:b?.protocol??Yb.AwsRestJsonProtocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:kj,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:b?.serviceId??"SSO",urlParser:b?.urlParser??M.parseUrl,utf8Decoder:b?.utf8Decoder??Z.fromUtf8,utf8Encoder:b?.utf8Encoder??Z.toUtf8}},Xj=(b)=>{D.emitWarningIfUnsupportedVersion(process.version);let j=J.resolveDefaultsModeConfig(b),k=()=>j().then(D.loadConfigsForDefaultMode),Q=Wj(b);K.emitWarningIfUnsupportedVersion(process.version);let w={profile:b?.profile,logger:Q.logger};return{...Q,...b,runtime:"node",defaultsMode:j,authSchemePreference:b?.authSchemePreference??J.loadConfig(E.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,w),bodyLengthChecker:b?.bodyLengthChecker??Z.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??K.createDefaultUserAgentProvider({serviceId:Q.serviceId,clientVersion:Vb.version}),maxAttempts:b?.maxAttempts??J.loadConfig(G.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??J.loadConfig(J.NODE_REGION_CONFIG_OPTIONS,{...J.NODE_REGION_CONFIG_FILE_OPTIONS,...w}),requestHandler:m.NodeHttpHandler.create(b?.requestHandler??k),retryMode:b?.retryMode??J.loadConfig({...G.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await k()).retryMode||G.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??Z.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??m.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??J.loadConfig(J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,w),useFipsEndpoint:b?.useFipsEndpoint??J.loadConfig(J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,w),userAgentAppId:b?.userAgentAppId??J.loadConfig(K.NODE_APP_ID_CONFIG_OPTIONS,w)}},Yj=(b)=>{let{httpAuthSchemes:j,httpAuthSchemeProvider:k,credentials:Q}=b;return{setHttpAuthScheme(w){let I=j.findIndex((R)=>R.schemeId===w.schemeId);if(I===-1)j.push(w);else j.splice(I,1,w)},httpAuthSchemes(){return j},setHttpAuthSchemeProvider(w){k=w},httpAuthSchemeProvider(){return k},setCredentials(w){Q=w},credentials(){return Q}}},Zj=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},Hj=(b,j)=>{let k=Object.assign(K.getAwsRegionExtensionConfiguration(b),D.getDefaultExtensionConfiguration(b),M.getHttpHandlerExtensionConfiguration(b),Yj(b));return j.forEach((Q)=>Q.configure(k)),Object.assign(b,K.resolveAwsRegionExtensionConfiguration(k),D.resolveDefaultRuntimeConfig(k),M.resolveHttpHandlerRuntimeConfig(k),Zj(k))};class _ extends D.Client{config;constructor(...[b]){let j=Xj(b||{});super(j);this.initConfig=j;let k=Ib(j),Q=K.resolveUserAgentConfig(k),w=G.resolveRetryConfig(Q),I=J.resolveRegionConfig(w),R=K.resolveHostHeaderConfig(I),e=H.resolveEndpointConfig(R),i=Fb(e),n=Hj(i,b?.extensions||[]);this.config=n,this.middlewareStack.use(P.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(K.getUserAgentPlugin(this.config)),this.middlewareStack.use(G.getRetryPlugin(this.config)),this.middlewareStack.use(M.getContentLengthPlugin(this.config)),this.middlewareStack.use(K.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K.getLoggerPlugin(this.config)),this.middlewareStack.use(K.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(V.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Zb,identityProviderConfigProvider:async(o)=>new V.DefaultIdentityProviderConfig({"aws.auth#sigv4":o.credentials})})),this.middlewareStack.use(V.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends D.Command.classBuilder().ep(Nb).m(function(b,j,k,Q){return[H.getEndpointPlugin(k,b.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(Qj).build(){}var Gj={GetRoleCredentialsCommand:d};class f extends _{}D.createAggregatedClient(Gj,f);var{Command:zj,Client:Fj}=D;var c=d;var t=_;export{t as SSOClient,c as GetRoleCredentialsCommand};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{in as D,jn as m,mn as R,nn as X,rn as v,tn as x,un as S}from"./chunk-hx13a8es.js";import{Jn as A,Nn as L}from"./chunk-j3agzs13.js";import{Gt as U}from"./chunk-6yshpz0z.js";import{cu as P,hu as F}from"./chunk-ffx0cr44.js";import{UE as s,VO as B,gI as k}from"./chunk-9kc2th5c.js";import{wP as E}from"./chunk-sh03ka27.js";var V={};E(V,{schema:()=>c,jsonc:()=>g,ConfigParse:()=>V});function g($,T){let J=[],j=D($,J,{allowTrailingComma:!0});if(J.length){let C=$.split(`
2
+ import{Io as D,Jo as m,Mo as R,No as X,Ro as v,To as x,Uo as S}from"./chunk-n7ewvphw.js";import{hp as A,lp as L}from"./chunk-wf18y499.js";import{kv as U}from"./chunk-s5taq9jy.js";import{Iv as P,Nv as F}from"./chunk-zg72kz2k.js";import{MJ as k,yG as s,zQ as B}from"./chunk-qvnsgyfk.js";import{aR as E}from"./chunk-pfx8ts02.js";var V={};E(V,{schema:()=>c,jsonc:()=>g,ConfigParse:()=>V});function g($,T){let J=[],j=D($,J,{allowTrailingComma:!0});if(J.length){let C=$.split(`
3
3
  `),y=J.map((H)=>{let I=$.substring(0,H.offset).split(`
4
4
  `),Q=I.length,Z=I[I.length-1].length+1,K=C[Q-1],z=`${m(H.error)} at line ${Q}, column ${Z}`;if(!K)return z;return`${z}
5
5
  Line ${Q}: ${K}
@@ -11,4 +11,4 @@ ${$}
11
11
  ${y}
12
12
  --- End ---`})}return j}function c($,T,J){let j=$.safeParse(T);if(j.success)return j.data;throw new X({path:J,issues:j.error.issues})}var Y={};E(Y,{substitute:()=>u,ConfigVariable:()=>Y});import G from"path";import h from"os";function a($){return $.type==="path"?$.path:$.source}function n($){return $.type==="path"?G.dirname($.path):$.dir}async function u($){let T=$.missing??"error",J=$.text.replace(/\{env:([^}]+)\}/g,(Q,Z)=>{return process.env[Z]||""}),j=Array.from(J.matchAll(/\{file:[^}]+\}/g));if(!j.length)return J;let C=n($),y=a($),H="",I=0;for(let Q of j){let Z=Q[0],K=Q.index;H+=J.slice(I,K);let z=J.lastIndexOf(`
13
13
  `,K-1)+1;if(J.slice(z,K).trimStart().startsWith("//")){H+=Z,I=K+Z.length;continue}let W=Z.replace(/^\{file:/,"").replace(/\}$/,"");if(W.startsWith("~/"))W=G.join(h.homedir(),W.slice(2));let N=G.isAbsolute(W)?W:G.resolve(C,W),d=(await F.readText(N).catch((O)=>{if(T==="empty")return"";let r=`bad file reference: "${Z}"`;if(O.code==="ENOENT")throw new X({path:y,message:r+` ${N} does not exist`},{cause:O});throw new X({path:y,message:r},{cause:O})})).trim();H+=JSON.stringify(d).slice(1,-1),I=K+Z.length}return H+=J.slice(I),H}var w={};E(w,{resolvePluginSpec:()=>e,pluginSpecifier:()=>b,pluginOptions:()=>t,load:()=>p,deduplicatePluginOrigins:()=>i,Spec:()=>l,Options:()=>o,ConfigPlugin:()=>w});import{pathToFileURL as q}from"url";import _ from"path";var o=B.Record(B.String,B.Unknown).pipe(A(($)=>({zod:L($)}))),l=B.Union([B.String,B.mutable(B.Tuple([B.String,o]))]).pipe(A(($)=>({zod:L($)})));async function p($){let T=[];for(let J of await P.scan("{plugin,plugins}/*.{ts,js}",{cwd:$,absolute:!0,dot:!0,symlink:!0}))T.push(q(J).href);return T}function b($){return Array.isArray($)?$[0]:$}function t($){return Array.isArray($)?$[1]:void 0}async function e($,T){let J=b($);if(!x(J))return $;let j=_.dirname(T),C=(()=>{if(J.startsWith("file://"))return J;if(_.isAbsolute(J)||/^[A-Za-z]:[\\/]/.test(J))return q(J).href;return q(_.resolve(j,J)).href})(),y=await S(C).catch(()=>C);if(Array.isArray($))return[y,$[1]];return y}function i($){let T=new Set,J=[];for(let j of $.toReversed()){let C=b(j.spec),y=C.startsWith("file://")?C:v(C).pkg;if(T.has(y))continue;T.add(y),J.push(j)}return J.toReversed()}var M={};E(M,{install:()=>T$,declaresDependencies:()=>f,ConfigDependencies:()=>M});import $$ from"path";var J$=["dependencies","devDependencies","optionalDependencies","peerDependencies"];function f($){if(!U($))return!1;return J$.some((T)=>{let J=$[T];return U(J)&&Object.keys(J).length>0})}var T$=k.fn("Config.installDependencies")(function*($){let T=yield*$.fs.readJson($$.join($.dir,"package.json")).pipe(k.exit),J=s.isSuccess(T)?T.value:void 0;if(!f(J))return;yield*$.npm.install($.dir)});
14
- export{V as dn,Y as en,w as fn,M as gn};
14
+ export{V as Do,Y as Eo,w as Fo,M as Go};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{du as e,eu as f,fu as g,hu as h,iu as i,ju as j,ku as k,lu as l,nu as m,ou as n}from"./chunk-m5r6zq6v.js";import{tu as d}from"./chunk-vg9ec44m.js";import"./chunk-e826jvr2.js";import{ev as c}from"./chunk-dm7hfb7f.js";import"./chunk-s5taq9jy.js";import{Cv as b}from"./chunk-62mb6wxm.js";import{Nv as a}from"./chunk-zg72kz2k.js";import"./chunk-kr7t73tg.js";import"./chunk-9tfm1dk2.js";import"./chunk-x2mbre12.js";import"./chunk-sprbs7aj.js";import"./chunk-qvnsgyfk.js";import"./chunk-pfx8ts02.js";export{h as getEnvInfo,c as Wildcard,n as Token,m as Rpc,d as Process,b as Log,l as Lock,k as Locale,j as LocalContext,i as Keybind,a as Filesystem,g as EffectUtil,f as Color,e as Archive};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Of as k}from"./chunk-vf492zs6.js";import{Lg as f}from"./chunk-s2ma1nz3.js";function z(){return async(l,b)=>k(await f(l,b.options),b)}export{z as Nf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ns as x}from"./chunk-fkq0v5qv.js";import{Bt as q,Ct as H,ft as K,gt as j,ut as V}from"./chunk-8jkqyf9n.js";import{hu as M,mu as I}from"./chunk-ffx0cr44.js";import{$E as v,gI as _}from"./chunk-9kc2th5c.js";import{wP as a}from"./chunk-sh03ka27.js";var U={};a(U,{validateArchiveMetadata:()=>P,validateArchiveEntries:()=>g,replaceDirectoryAtomically:()=>C,extractZip:()=>p,assertArchiveDestinationSafe:()=>T});import m from"path";import c from"fs/promises";function g(o,r){let n=m.resolve(r);for(let e of o){let t=e.trim().replaceAll("\\","/");if(!t)continue;if(t.includes("\x00")||m.posix.isAbsolute(t)||/^[a-z]:\//i.test(t))throw Error(`Unsafe archive entry: ${e}`);if(t.split("/").includes(".."))throw Error(`Unsafe archive entry: ${e}`);let s=m.resolve(n,...t.split("/"));if(s!==n&&!s.startsWith(`${n}${m.sep}`))throw Error(`Unsafe archive entry: ${e}`)}}function P(o){for(let r of o.split(/\r?\n/))if(/^[bclps]/.test(r))throw Error("Archive contains an unsafe special entry")}async function u(o){let r=await c.readdir(o,{withFileTypes:!0});await Promise.all(r.map(async(n)=>{let e=m.join(o,n.name);if(n.isSymbolicLink())throw Error(`Archive contains a symbolic link: ${n.name}`);if(n.isDirectory())await u(e)}))}async function b(o){return c.lstat(o).catch((r)=>{if(r.code==="ENOENT")return;throw r})}async function T(o){let r=m.resolve(o),n=m.parse(r),e=n.root;for(let t of r.slice(n.root.length).split(m.sep).filter(Boolean)){e=m.join(e,t);let s=await b(e);if(!s)return;if(s.isSymbolicLink())throw Error(`Archive destination contains a symbolic link: ${e}`)}}async function C(o,r){let n=m.resolve(r);await T(n);let e=await b(n);if(e&&!e.isDirectory())throw Error("Archive destination must be a directory");let t=m.join(m.dirname(n),`.qitqode-backup-${crypto.randomUUID()}`);if(e)await c.rename(n,t);try{await c.rename(o,n)}catch(s){if(e)await c.rename(t,n);throw s}if(e)await c.rm(t,{recursive:!0,force:!0})}async function p(o,r){let n=m.resolve(o),e=m.resolve(r),t=await x(process.platform==="win32"?["tar","-tf",n]:["unzip","-Z1",n]);g(t.stdout.toString().split(/\r?\n/),e);let s=await x(process.platform==="win32"?["tar","-tvf",n]:["unzip","-Z","-l",n]);P(s.stdout.toString()),await T(m.dirname(e)),await c.mkdir(m.dirname(e),{recursive:!0}),await T(m.dirname(e));let f=await c.mkdtemp(m.join(m.dirname(e),".qitqode-extract-"));try{if(process.platform==="win32"){let w=n.replace(/'/g,"''"),R=f.replace(/'/g,"''"),S=`$global:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path '${w}' -DestinationPath '${R}' -Force`;await x(["powershell","-NoProfile","-NonInteractive","-Command",S])}else await x(["unzip","-o","-q",n,"-d",f]);await u(f),await C(f,e)}finally{await c.rm(f,{recursive:!0,force:!0})}}var $={};a($,{isValidHex:()=>J,hexToRgb:()=>F,hexToAnsiBold:()=>y});function J(o){if(!o)return!1;return/^#[0-9a-fA-F]{6}$/.test(o)}function F(o){let r=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),e=parseInt(o.slice(5,7),16);return{r,g:n,b:e}}function y(o){if(!J(o))return;let{r,g:n,b:e}=F(o);return`\x1B[38;2;${r};${n};${e}m\x1B[1m`}var Q={};a(Q,{awaitDeferred:()=>k});function k(o,r){return _.ensuring(v.await(o),_.sync(r))}import d from"os";import oo from"path";var i;async function A(){if(i)return i;let o=oo.join(I.Path.data,"installation_id"),r=await M.readText(o).catch(()=>{return});if(r&&r.trim())return i=r.trim(),i;return i=crypto.randomUUID(),await M.write(o,i),i}function ro(){if(process.env.USER)return process.env.USER;if(process.env.USERNAME)return process.env.USERNAME;return d.userInfo().username}function no(){return Intl.DateTimeFormat().resolvedOptions().locale}function eo(){return Intl.DateTimeFormat().resolvedOptions().timeZone}async function to(){let o=d.cpus();return{os:{platform:d.platform(),arch:d.arch(),release:d.release(),hostname:d.hostname()},cpu:{model:o[0]?.model??"unknown",count:o.length},memory:{total_bytes:d.totalmem()},user:{username:ro(),homedir:d.homedir()},runtime:{bun_version:Bun.version,node_version:process.versions.node,pid:process.pid,timezone:eo(),locale:no()},paths:{cwd:process.cwd(),data:I.Path.data,config:I.Path.config},qitqode:{version:K,channel:j,installation_id:await A(),run_id:q,process_role:H}}}var W={};a(W,{toString:()=>mo,parse:()=>co,match:()=>so,fromParsedKey:()=>fo});function so(o,r){if(!o)return!1;let n={...o,super:o.super??!1},e={...r,super:r.super??!1};return V(n,e)}function fo(o,r=!1){return{name:o.name===" "?"space":o.name,ctrl:o.ctrl,meta:o.meta,shift:o.shift,super:o.super??!1,leader:r}}function mo(o){if(!o)return"";let r=[];if(o.ctrl)r.push("ctrl");if(o.meta)r.push("alt");if(o.super)r.push("super");if(o.shift)r.push("shift");if(o.name)if(o.name==="delete")r.push("del");else r.push(o.name);let n=r.join("+");if(o.leader)n=n?`<leader> ${n}`:"<leader>";return n}function co(o){if(o==="none")return[];return o.split(",").map((r)=>{let e=r.replace(/<leader>/g,"leader+").toLowerCase().split("+"),t={ctrl:!1,meta:!1,shift:!1,leader:!1,name:""};for(let s of e)switch(s){case"ctrl":t.ctrl=!0;break;case"alt":case"meta":case"option":t.meta=!0;break;case"super":t.super=!0;break;case"shift":t.shift=!0;break;case"leader":t.leader=!0;break;case"esc":t.name="escape";break;default:t.name=s;break}return t})}var B={};a(B,{create:()=>io,NotFound:()=>O});import{AsyncLocalStorage as ao}from"async_hooks";class O extends Error{name;constructor(o){super(`No context found for ${o}`);this.name=o}}function io(o){let r=new ao;return{use(){let n=r.getStore();if(!n)throw new O(o);return n},provide(n,e){return r.run(n,e)}}}var X={};a(X,{truncateMiddle:()=>To,truncate:()=>Ro,todayTimeOrDateTime:()=>xo,titlecase:()=>wo,time:()=>N,pluralize:()=>Mo,number:()=>Io,duration:()=>Eo,datetime:()=>G});function wo(o){return o.replace(/\b\w/g,(r)=>r.toUpperCase())}function N(o){return new Date(o).toLocaleTimeString(void 0,{timeStyle:"short"})}function G(o){let r=new Date(o),n=N(o),e=r.toLocaleDateString();return`${n} \xB7 ${e}`}function xo(o){let r=new Date(o),n=new Date;if(r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate())return N(o);else return G(o)}function Io(o){if(o>=1e6)return(o/1e6).toFixed(1)+"M";else if(o>=1000)return(o/1000).toFixed(1)+"K";return o.toString()}function Eo(o){if(o<1000)return`${o}ms`;if(o<60000)return`${(o/1000).toFixed(1)}s`;if(o<3600000){let e=Math.floor(o/60000),t=Math.floor(o%60000/1000);return`${e}m ${t}s`}if(o<86400000){let e=Math.floor(o/3600000),t=Math.floor(o%3600000/60000);return`${e}h ${t}m`}let r=Math.floor(o%86400000/3600000);return`${Math.floor(o/86400000)}d ${r}h`}function Ro(o,r){if(r<=0)return"";if(o.length<=r)return o;return o.slice(0,r-1)+"\u2026"}function To(o,r=35){if(r<=0)return"";if(o.length<=r)return o;let n="\u2026",e=Math.ceil((r-n.length)/2),t=Math.floor((r-n.length)/2);return o.slice(0,e)+n+(t>0?o.slice(-t):"")}function Mo(o,r,n){return(o===1?r:n).replace("{}",o.toString())}var h={};a(h,{write:()=>Oo,read:()=>_o});var E=new Map;function Y(o){if(!E.has(o))E.set(o,{readers:0,writer:!1,waitingReaders:[],waitingWriters:[]});return E.get(o)}function So(o){let r=E.get(o);if(!r||r.writer||r.readers>0)return;if(r.waitingWriters.length>0){r.waitingWriters.shift()();return}while(r.waitingReaders.length>0)r.waitingReaders.shift()();if(r.readers===0&&!r.writer&&r.waitingReaders.length===0&&r.waitingWriters.length===0)E.delete(o)}function L(o){return new Promise((r)=>{let n=()=>{o.acquire();let e=!1;r({[Symbol.dispose]:()=>{if(e)return;e=!0,o.release(),So(o.key)}})};if(o.available())n();else o.waiting.push(n)})}async function _o(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.waitingWriters.length===0,acquire:()=>r.readers++,release:()=>r.readers--,waiting:r.waitingReaders})}async function Oo(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.readers===0,acquire:()=>{r.writer=!0},release:()=>{r.writer=!1},waiting:r.waitingWriters})}var z={};a(z,{listen:()=>No,emit:()=>go,client:()=>Po});function No(o){onmessage=async(r)=>{let n=JSON.parse(r.data);if(n.type==="rpc.request")try{let e=await o[n.method](n.input);postMessage(JSON.stringify({type:"rpc.result",result:e,id:n.id}))}catch(e){postMessage(JSON.stringify({type:"rpc.result",error:e instanceof Error?e.message:String(e),id:n.id}))}}}function go(o,r){postMessage(JSON.stringify({type:"rpc.event",event:o,data:r}))}function Po(o){let r=new Map,n=new Map,e=0;return o.onmessage=async(t)=>{let s=JSON.parse(t.data);if(s.type==="rpc.result"){let f=r.get(s.id);if(f)if(r.delete(s.id),"error"in s)f.reject(Error(typeof s.error==="string"?s.error:"RPC call failed"));else f.resolve(s.result)}if(s.type==="rpc.event"){let f=n.get(s.event);if(f)for(let w of f)w(s.data)}},{call(t,s){let f=e++;return new Promise((w,R)=>{r.set(f,{resolve:w,reject:R});try{o.postMessage(JSON.stringify({type:"rpc.request",method:t,input:s,id:f}))}catch(S){r.delete(f),R(S)}})},on(t,s){let f=n.get(t);if(!f)f=new Set,n.set(t,f);return f.add(s),()=>{f.delete(s)}}}}var D={};a(D,{estimate:()=>Z});function Z(o){return Math.max(0,Math.round((o||"").length/4))}export{U as zs,$ as As,Q as Bs,A as Cs,to as Ds,W as Es,B as Fs,X as Gs,h as Hs,Po as Is,z as Js,D as Ks};
2
+ import{ru as x}from"./chunk-vg9ec44m.js";import{Lu as K,Mu as j,_u as V,fv as q,gv as H}from"./chunk-dm7hfb7f.js";import{Nv as M,Sv as I}from"./chunk-zg72kz2k.js";import{FG as v,MJ as _}from"./chunk-qvnsgyfk.js";import{aR as a}from"./chunk-pfx8ts02.js";var U={};a(U,{validateArchiveMetadata:()=>P,validateArchiveEntries:()=>g,replaceDirectoryAtomically:()=>C,extractZip:()=>p,assertArchiveDestinationSafe:()=>T});import m from"path";import c from"fs/promises";function g(o,r){let n=m.resolve(r);for(let e of o){let t=e.trim().replaceAll("\\","/");if(!t)continue;if(t.includes("\x00")||m.posix.isAbsolute(t)||/^[a-z]:\//i.test(t))throw Error(`Unsafe archive entry: ${e}`);if(t.split("/").includes(".."))throw Error(`Unsafe archive entry: ${e}`);let s=m.resolve(n,...t.split("/"));if(s!==n&&!s.startsWith(`${n}${m.sep}`))throw Error(`Unsafe archive entry: ${e}`)}}function P(o){for(let r of o.split(/\r?\n/))if(/^[bclps]/.test(r))throw Error("Archive contains an unsafe special entry")}async function u(o){let r=await c.readdir(o,{withFileTypes:!0});await Promise.all(r.map(async(n)=>{let e=m.join(o,n.name);if(n.isSymbolicLink())throw Error(`Archive contains a symbolic link: ${n.name}`);if(n.isDirectory())await u(e)}))}async function b(o){return c.lstat(o).catch((r)=>{if(r.code==="ENOENT")return;throw r})}async function T(o){let r=m.resolve(o),n=m.parse(r),e=n.root;for(let t of r.slice(n.root.length).split(m.sep).filter(Boolean)){e=m.join(e,t);let s=await b(e);if(!s)return;if(s.isSymbolicLink())throw Error(`Archive destination contains a symbolic link: ${e}`)}}async function C(o,r){let n=m.resolve(r);await T(n);let e=await b(n);if(e&&!e.isDirectory())throw Error("Archive destination must be a directory");let t=m.join(m.dirname(n),`.qitqode-backup-${crypto.randomUUID()}`);if(e)await c.rename(n,t);try{await c.rename(o,n)}catch(s){if(e)await c.rename(t,n);throw s}if(e)await c.rm(t,{recursive:!0,force:!0})}async function p(o,r){let n=m.resolve(o),e=m.resolve(r),t=await x(process.platform==="win32"?["tar","-tf",n]:["unzip","-Z1",n]);g(t.stdout.toString().split(/\r?\n/),e);let s=await x(process.platform==="win32"?["tar","-tvf",n]:["unzip","-Z","-l",n]);P(s.stdout.toString()),await T(m.dirname(e)),await c.mkdir(m.dirname(e),{recursive:!0}),await T(m.dirname(e));let f=await c.mkdtemp(m.join(m.dirname(e),".qitqode-extract-"));try{if(process.platform==="win32"){let w=n.replace(/'/g,"''"),R=f.replace(/'/g,"''"),S=`$global:ProgressPreference = 'SilentlyContinue'; Expand-Archive -Path '${w}' -DestinationPath '${R}' -Force`;await x(["powershell","-NoProfile","-NonInteractive","-Command",S])}else await x(["unzip","-o","-q",n,"-d",f]);await u(f),await C(f,e)}finally{await c.rm(f,{recursive:!0,force:!0})}}var $={};a($,{isValidHex:()=>J,hexToRgb:()=>F,hexToAnsiBold:()=>y});function J(o){if(!o)return!1;return/^#[0-9a-fA-F]{6}$/.test(o)}function F(o){let r=parseInt(o.slice(1,3),16),n=parseInt(o.slice(3,5),16),e=parseInt(o.slice(5,7),16);return{r,g:n,b:e}}function y(o){if(!J(o))return;let{r,g:n,b:e}=F(o);return`\x1B[38;2;${r};${n};${e}m\x1B[1m`}var Q={};a(Q,{awaitDeferred:()=>k});function k(o,r){return _.ensuring(v.await(o),_.sync(r))}import d from"os";import oo from"path";var i;async function A(){if(i)return i;let o=oo.join(I.Path.data,"installation_id"),r=await M.readText(o).catch(()=>{return});if(r&&r.trim())return i=r.trim(),i;return i=crypto.randomUUID(),await M.write(o,i),i}function ro(){if(process.env.USER)return process.env.USER;if(process.env.USERNAME)return process.env.USERNAME;return d.userInfo().username}function no(){return Intl.DateTimeFormat().resolvedOptions().locale}function eo(){return Intl.DateTimeFormat().resolvedOptions().timeZone}async function to(){let o=d.cpus();return{os:{platform:d.platform(),arch:d.arch(),release:d.release(),hostname:d.hostname()},cpu:{model:o[0]?.model??"unknown",count:o.length},memory:{total_bytes:d.totalmem()},user:{username:ro(),homedir:d.homedir()},runtime:{bun_version:Bun.version,node_version:process.versions.node,pid:process.pid,timezone:eo(),locale:no()},paths:{cwd:process.cwd(),data:I.Path.data,config:I.Path.config},qitqode:{version:K,channel:j,installation_id:await A(),run_id:q,process_role:H}}}var W={};a(W,{toString:()=>mo,parse:()=>co,match:()=>so,fromParsedKey:()=>fo});function so(o,r){if(!o)return!1;let n={...o,super:o.super??!1},e={...r,super:r.super??!1};return V(n,e)}function fo(o,r=!1){return{name:o.name===" "?"space":o.name,ctrl:o.ctrl,meta:o.meta,shift:o.shift,super:o.super??!1,leader:r}}function mo(o){if(!o)return"";let r=[];if(o.ctrl)r.push("ctrl");if(o.meta)r.push("alt");if(o.super)r.push("super");if(o.shift)r.push("shift");if(o.name)if(o.name==="delete")r.push("del");else r.push(o.name);let n=r.join("+");if(o.leader)n=n?`<leader> ${n}`:"<leader>";return n}function co(o){if(o==="none")return[];return o.split(",").map((r)=>{let e=r.replace(/<leader>/g,"leader+").toLowerCase().split("+"),t={ctrl:!1,meta:!1,shift:!1,leader:!1,name:""};for(let s of e)switch(s){case"ctrl":t.ctrl=!0;break;case"alt":case"meta":case"option":t.meta=!0;break;case"super":t.super=!0;break;case"shift":t.shift=!0;break;case"leader":t.leader=!0;break;case"esc":t.name="escape";break;default:t.name=s;break}return t})}var B={};a(B,{create:()=>io,NotFound:()=>O});import{AsyncLocalStorage as ao}from"async_hooks";class O extends Error{name;constructor(o){super(`No context found for ${o}`);this.name=o}}function io(o){let r=new ao;return{use(){let n=r.getStore();if(!n)throw new O(o);return n},provide(n,e){return r.run(n,e)}}}var X={};a(X,{truncateMiddle:()=>To,truncate:()=>Ro,todayTimeOrDateTime:()=>xo,titlecase:()=>wo,time:()=>N,pluralize:()=>Mo,number:()=>Io,duration:()=>Eo,datetime:()=>G});function wo(o){return o.replace(/\b\w/g,(r)=>r.toUpperCase())}function N(o){return new Date(o).toLocaleTimeString(void 0,{timeStyle:"short"})}function G(o){let r=new Date(o),n=N(o),e=r.toLocaleDateString();return`${n} \xB7 ${e}`}function xo(o){let r=new Date(o),n=new Date;if(r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate())return N(o);else return G(o)}function Io(o){if(o>=1e6)return(o/1e6).toFixed(1)+"M";else if(o>=1000)return(o/1000).toFixed(1)+"K";return o.toString()}function Eo(o){if(o<1000)return`${o}ms`;if(o<60000)return`${(o/1000).toFixed(1)}s`;if(o<3600000){let e=Math.floor(o/60000),t=Math.floor(o%60000/1000);return`${e}m ${t}s`}if(o<86400000){let e=Math.floor(o/3600000),t=Math.floor(o%3600000/60000);return`${e}h ${t}m`}let r=Math.floor(o%86400000/3600000);return`${Math.floor(o/86400000)}d ${r}h`}function Ro(o,r){if(r<=0)return"";if(o.length<=r)return o;return o.slice(0,r-1)+"\u2026"}function To(o,r=35){if(r<=0)return"";if(o.length<=r)return o;let n="\u2026",e=Math.ceil((r-n.length)/2),t=Math.floor((r-n.length)/2);return o.slice(0,e)+n+(t>0?o.slice(-t):"")}function Mo(o,r,n){return(o===1?r:n).replace("{}",o.toString())}var h={};a(h,{write:()=>Oo,read:()=>_o});var E=new Map;function Y(o){if(!E.has(o))E.set(o,{readers:0,writer:!1,waitingReaders:[],waitingWriters:[]});return E.get(o)}function So(o){let r=E.get(o);if(!r||r.writer||r.readers>0)return;if(r.waitingWriters.length>0){r.waitingWriters.shift()();return}while(r.waitingReaders.length>0)r.waitingReaders.shift()();if(r.readers===0&&!r.writer&&r.waitingReaders.length===0&&r.waitingWriters.length===0)E.delete(o)}function L(o){return new Promise((r)=>{let n=()=>{o.acquire();let e=!1;r({[Symbol.dispose]:()=>{if(e)return;e=!0,o.release(),So(o.key)}})};if(o.available())n();else o.waiting.push(n)})}async function _o(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.waitingWriters.length===0,acquire:()=>r.readers++,release:()=>r.readers--,waiting:r.waitingReaders})}async function Oo(o){let r=Y(o);return L({key:o,available:()=>!r.writer&&r.readers===0,acquire:()=>{r.writer=!0},release:()=>{r.writer=!1},waiting:r.waitingWriters})}var z={};a(z,{listen:()=>No,emit:()=>go,client:()=>Po});function No(o){onmessage=async(r)=>{let n=JSON.parse(r.data);if(n.type==="rpc.request")try{let e=await o[n.method](n.input);postMessage(JSON.stringify({type:"rpc.result",result:e,id:n.id}))}catch(e){postMessage(JSON.stringify({type:"rpc.result",error:e instanceof Error?e.message:String(e),id:n.id}))}}}function go(o,r){postMessage(JSON.stringify({type:"rpc.event",event:o,data:r}))}function Po(o){let r=new Map,n=new Map,e=0;return o.onmessage=async(t)=>{let s=JSON.parse(t.data);if(s.type==="rpc.result"){let f=r.get(s.id);if(f)if(r.delete(s.id),"error"in s)f.reject(Error(typeof s.error==="string"?s.error:"RPC call failed"));else f.resolve(s.result)}if(s.type==="rpc.event"){let f=n.get(s.event);if(f)for(let w of f)w(s.data)}},{call(t,s){let f=e++;return new Promise((w,R)=>{r.set(f,{resolve:w,reject:R});try{o.postMessage(JSON.stringify({type:"rpc.request",method:t,input:s,id:f}))}catch(S){r.delete(f),R(S)}})},on(t,s){let f=n.get(t);if(!f)f=new Set,n.set(t,f);return f.add(s),()=>{f.delete(s)}}}}var D={};a(D,{estimate:()=>Z});function Z(o){return Math.max(0,Math.round((o||"").length/4))}export{U as du,$ as eu,Q as fu,A as gu,to as hu,W as iu,B as ju,X as ku,h as lu,Po as mu,z as nu,D as ou};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{zf as a}from"./chunk-mz6swd88.js";import"./chunk-pfx8ts02.js";export default a();