@qitqode/qitqode-android-arm64 0.2.7 → 0.2.9

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 (387) hide show
  1. package/bundle/{chunk-ga6wc979.js → chunk-03zpnwk2.js} +1 -1
  2. package/bundle/{chunk-qdvnscxm.js → chunk-0a4pmkc9.js} +1 -1
  3. package/bundle/chunk-0aqdzyar.js +2 -0
  4. package/bundle/{chunk-drnj1a14.js → chunk-0egrckx0.js} +1 -1
  5. package/bundle/{chunk-aqcpk2vg.js → chunk-0eh3yc6e.js} +1 -1
  6. package/bundle/{chunk-14d301ze.js → chunk-0mh600tv.js} +1 -1
  7. package/bundle/{chunk-yd94wz5v.js → chunk-0s4cp6q2.js} +1 -1
  8. package/bundle/{chunk-368jx5dp.js → chunk-0tcggtwv.js} +1 -1
  9. package/bundle/{chunk-0qpqd7nz.js → chunk-0tm6589k.js} +2 -2
  10. package/bundle/{chunk-0gsw04hw.js → chunk-0w19vmd7.js} +2 -2
  11. package/bundle/{chunk-j6xmgn63.js → chunk-0z1keh2w.js} +1 -1
  12. package/bundle/{chunk-djqxbnwc.js → chunk-13jq2ygc.js} +1 -1
  13. package/bundle/{chunk-znmbfx70.js → chunk-1a6q1f5n.js} +1 -1
  14. package/bundle/{chunk-w43kmnm9.js → chunk-1acn5me8.js} +357 -357
  15. package/bundle/{chunk-aa2n02qk.js → chunk-1bxfzd6r.js} +2 -2
  16. package/bundle/{chunk-hrtze4c5.js → chunk-1har4t9a.js} +1 -1
  17. package/bundle/{chunk-33jcxsbe.js → chunk-1p9s5jj1.js} +1 -1
  18. package/bundle/{chunk-p40z6510.js → chunk-1v0khv7p.js} +1 -1
  19. package/bundle/{chunk-eeq0krp7.js → chunk-27saej0r.js} +2 -2
  20. package/bundle/{chunk-ppy0jy6j.js → chunk-29gwtcey.js} +1 -1
  21. package/bundle/{chunk-yjqww6ag.js → chunk-29q89bge.js} +2 -2
  22. package/bundle/chunk-2a5gjgvp.js +2 -0
  23. package/bundle/{chunk-bn71wqqf.js → chunk-2caaqmec.js} +1 -1
  24. package/bundle/{chunk-hhk2sp5n.js → chunk-2kh0tg92.js} +1 -1
  25. package/bundle/{chunk-bd505nsd.js → chunk-2nheahmq.js} +1 -1
  26. package/bundle/{chunk-42q8vj0w.js → chunk-2phyc1c0.js} +1 -1
  27. package/bundle/chunk-2pkfphgb.js +2 -0
  28. package/bundle/{chunk-4fy08jcj.js → chunk-2vaphpz0.js} +1 -1
  29. package/bundle/{chunk-qbrj9wzd.js → chunk-30wp95w1.js} +1 -1
  30. package/bundle/chunk-32fpqd0n.js +2 -0
  31. package/bundle/{chunk-yxttz5z5.js → chunk-35fj1sfm.js} +1 -1
  32. package/bundle/{chunk-1vpx7szf.js → chunk-3bb4aqh9.js} +1 -1
  33. package/bundle/chunk-3f2cjzb4.js +2 -0
  34. package/bundle/chunk-3qvap1kv.js +2 -0
  35. package/bundle/{chunk-c8prg3jx.js → chunk-3va85mbe.js} +2 -2
  36. package/bundle/{chunk-wvb17w0z.js → chunk-3z2zn8rj.js} +1 -1
  37. package/bundle/{chunk-84pjdenq.js → chunk-42hvspe7.js} +1 -1
  38. package/bundle/chunk-452tk6v3.js +2 -0
  39. package/bundle/{chunk-w3zhy5vq.js → chunk-48gap82w.js} +1 -1
  40. package/bundle/{chunk-4ftjx7ss.js → chunk-4gqb1hps.js} +1 -1
  41. package/bundle/{chunk-gww0skmn.js → chunk-4pmvxnkj.js} +1 -1
  42. package/bundle/chunk-4y9wbfd2.js +8 -0
  43. package/bundle/chunk-50qgz5ka.js +2 -0
  44. package/bundle/{chunk-4zhrg3rv.js → chunk-52xvhxek.js} +1 -1
  45. package/bundle/chunk-539cw9r0.js +2 -0
  46. package/bundle/{chunk-nfzpegqx.js → chunk-53jstmdp.js} +1 -1
  47. package/bundle/{chunk-8hmt3avx.js → chunk-56wq8cqj.js} +1 -1
  48. package/bundle/{chunk-mbbxedsq.js → chunk-59csnjc3.js} +2 -2
  49. package/bundle/chunk-5b0xyq5z.js +2 -0
  50. package/bundle/{chunk-0ggvqmnm.js → chunk-5bv63rqj.js} +1 -1
  51. package/bundle/{chunk-vfb72vdy.js → chunk-5cw8235e.js} +1 -1
  52. package/bundle/chunk-5j4nxpdy.js +2 -0
  53. package/bundle/chunk-5nxgk6hw.js +2 -0
  54. package/bundle/chunk-5qkvhr6y.js +2 -0
  55. package/bundle/{chunk-5zh91zk2.js → chunk-5r7c6vvx.js} +1 -1
  56. package/bundle/{chunk-c6cajbyj.js → chunk-5wx962mw.js} +1 -1
  57. package/bundle/{chunk-7sq5dyv1.js → chunk-5xkp27b1.js} +1 -1
  58. package/bundle/chunk-6dpdkzrk.js +2 -0
  59. package/bundle/chunk-6p6m5956.js +3 -0
  60. package/bundle/{chunk-n4qxj391.js → chunk-6ps30qax.js} +1 -1
  61. package/bundle/{chunk-kmzpeq8k.js → chunk-6tqbnxar.js} +1 -1
  62. package/bundle/{chunk-b6eypnbj.js → chunk-6vnqbejg.js} +1 -1
  63. package/bundle/{chunk-ghap1n1m.js → chunk-702bt91p.js} +4 -4
  64. package/bundle/{chunk-2c26kxp4.js → chunk-705qkpra.js} +1 -1
  65. package/bundle/{chunk-2pex3ak9.js → chunk-72crs18f.js} +1 -1
  66. package/bundle/chunk-76c400ze.js +2 -0
  67. package/bundle/{chunk-mghnkwp8.js → chunk-7adsab4h.js} +1 -1
  68. package/bundle/{chunk-n0g4983e.js → chunk-7bxxc4a3.js} +1 -1
  69. package/bundle/chunk-7g59hc61.js +2 -0
  70. package/bundle/{chunk-52rdms56.js → chunk-7jy53zqy.js} +1 -1
  71. package/bundle/chunk-7p88j56s.js +2 -0
  72. package/bundle/{chunk-5b3v1x2c.js → chunk-7pckez5z.js} +2 -2
  73. package/bundle/{chunk-q6p92zyn.js → chunk-7r92d7v9.js} +1 -1
  74. package/bundle/{chunk-t4b2fm7z.js → chunk-7thhd7ds.js} +1 -1
  75. package/bundle/chunk-7trngc9g.js +2 -0
  76. package/bundle/{chunk-4fvbexr8.js → chunk-85wh85pk.js} +1 -1
  77. package/bundle/chunk-8cebbmtf.js +2 -0
  78. package/bundle/chunk-8j1xcdmd.js +2 -0
  79. package/bundle/{chunk-ntpn0w9m.js → chunk-8jmb5bd4.js} +2 -2
  80. package/bundle/{chunk-pf3nqf00.js → chunk-8ysp6vf8.js} +1 -1
  81. package/bundle/{chunk-3k7016c2.js → chunk-8yzghzjq.js} +1 -1
  82. package/bundle/chunk-90r2z49k.js +2 -0
  83. package/bundle/{chunk-amp6mvbp.js → chunk-92r1gw2j.js} +1 -1
  84. package/bundle/{chunk-ktp2b4t4.js → chunk-94mjwy22.js} +1 -1
  85. package/bundle/{chunk-y5q9v80n.js → chunk-9bw6bx5c.js} +1 -1
  86. package/bundle/{chunk-f84hw65n.js → chunk-9cf2ktyh.js} +1 -1
  87. package/bundle/{chunk-x55h5qdc.js → chunk-a1z8rnq7.js} +3 -3
  88. package/bundle/{chunk-c3szabpf.js → chunk-a48mx917.js} +2 -2
  89. package/bundle/{chunk-prbxhnza.js → chunk-a8bjcvda.js} +1 -1
  90. package/bundle/chunk-aenrd7dk.js +2 -0
  91. package/bundle/{chunk-dw70wds9.js → chunk-afr8m0q1.js} +1 -1
  92. package/bundle/{chunk-7p6mxch0.js → chunk-ag8wxwwz.js} +1 -1
  93. package/bundle/{chunk-22qetqnp.js → chunk-ahmy80vb.js} +1 -1
  94. package/bundle/chunk-avn12jkt.js +2 -0
  95. package/bundle/{chunk-tc9xbn1t.js → chunk-ax64ngf2.js} +1 -1
  96. package/bundle/{chunk-0crgymtr.js → chunk-az3nss5m.js} +2 -2
  97. package/bundle/{chunk-73xryfgn.js → chunk-b5ym419d.js} +2 -2
  98. package/bundle/{chunk-dt1wwt7m.js → chunk-b7sr9rn3.js} +1 -1
  99. package/bundle/{chunk-9qzwmt76.js → chunk-bc2krtaf.js} +1 -1
  100. package/bundle/{chunk-jxkrhrp0.js → chunk-bhg69t69.js} +1 -1
  101. package/bundle/{chunk-ns8xnkjb.js → chunk-bkfafcbw.js} +1 -1
  102. package/bundle/{chunk-tkzctbxq.js → chunk-bnw744ej.js} +2 -2
  103. package/bundle/{chunk-twvmjsxf.js → chunk-bpfq8fz4.js} +1 -1
  104. package/bundle/chunk-brk6bge4.js +3 -0
  105. package/bundle/{chunk-s06t769q.js → chunk-bwadggys.js} +1 -1
  106. package/bundle/{chunk-spzd8rev.js → chunk-c76cjhn0.js} +1 -1
  107. package/bundle/{chunk-abv0fskc.js → chunk-c987bemn.js} +1 -1
  108. package/bundle/{chunk-705xnxbc.js → chunk-ccf4pgkr.js} +1 -1
  109. package/bundle/chunk-ce5e7j62.js +2 -0
  110. package/bundle/{chunk-2bjfz4fb.js → chunk-cf9m9m9q.js} +1 -1
  111. package/bundle/{chunk-z7kswv9r.js → chunk-cfwz1hgr.js} +3 -3
  112. package/bundle/{chunk-dgva3y5v.js → chunk-cghz0855.js} +1 -1
  113. package/bundle/{chunk-a76w2jwm.js → chunk-cr5tknvb.js} +1 -1
  114. package/bundle/chunk-cw1gwjx9.js +2 -0
  115. package/bundle/chunk-czw30fjs.js +2 -0
  116. package/bundle/{chunk-x80d0zh7.js → chunk-d30k7dpf.js} +1 -1
  117. package/bundle/{chunk-x9fyt3vx.js → chunk-d839fr0w.js} +1 -1
  118. package/bundle/{chunk-q87fw8dk.js → chunk-dcv6wj9x.js} +1 -1
  119. package/bundle/{chunk-4byvnx78.js → chunk-dgcannw0.js} +1 -1
  120. package/bundle/{chunk-4rpgwgx9.js → chunk-dhvx9p54.js} +1 -1
  121. package/bundle/{chunk-z744mz4w.js → chunk-dt3bsmfe.js} +2 -2
  122. package/bundle/chunk-dtcvqrmn.js +2 -0
  123. package/bundle/chunk-dwhsvpag.js +2 -0
  124. package/bundle/{chunk-4j76bf4j.js → chunk-dwkrqtbc.js} +1 -1
  125. package/bundle/{chunk-vzrc2fmt.js → chunk-dwqvcdmf.js} +1 -1
  126. package/bundle/chunk-e0hfpdje.js +2 -0
  127. package/bundle/{chunk-ajp53ksp.js → chunk-e0hha3be.js} +1 -1
  128. package/bundle/{chunk-f2pv705d.js → chunk-e0vrxetq.js} +1 -1
  129. package/bundle/{chunk-59kk0mce.js → chunk-e2wfj86b.js} +1 -1
  130. package/bundle/chunk-e5jk67xh.js +2 -0
  131. package/bundle/{chunk-ae7b11np.js → chunk-eacpc64g.js} +2 -2
  132. package/bundle/{chunk-hqjc4wgg.js → chunk-eewe7tx1.js} +2 -2
  133. package/bundle/{chunk-etv6c77a.js → chunk-eg1m81ax.js} +1 -1
  134. package/bundle/chunk-eg4pq4hv.js +2 -0
  135. package/bundle/{chunk-9xxnwb33.js → chunk-ejhhrece.js} +3 -3
  136. package/bundle/chunk-ew3yz97p.js +2 -0
  137. package/bundle/{chunk-19pspc1p.js → chunk-f2v4g7t1.js} +1 -1
  138. package/bundle/chunk-f2yfyhh8.js +2 -0
  139. package/bundle/{chunk-vp3yf46q.js → chunk-fa8pwdwv.js} +1 -1
  140. package/bundle/{chunk-vhzx5bxd.js → chunk-fd8x2nb4.js} +1 -1
  141. package/bundle/{chunk-dz3bec8g.js → chunk-fej5x648.js} +1 -1
  142. package/bundle/{chunk-0tqmm8b8.js → chunk-fh3d0wce.js} +1 -1
  143. package/bundle/{chunk-twd6r7nf.js → chunk-fjftb2sz.js} +1 -1
  144. package/bundle/{chunk-xhh70g8j.js → chunk-fs1vb39f.js} +2 -2
  145. package/bundle/{chunk-9g9katgy.js → chunk-ftvvm4r5.js} +2 -2
  146. package/bundle/chunk-fv5mrdyc.js +5 -0
  147. package/bundle/{chunk-gdew7bwm.js → chunk-fveaq0pb.js} +1 -1
  148. package/bundle/{chunk-ptwex14s.js → chunk-fw1f47de.js} +1 -1
  149. package/bundle/{chunk-y2t5pmqw.js → chunk-g26redah.js} +1 -1
  150. package/bundle/{chunk-acd72413.js → chunk-g3n465ee.js} +1 -1
  151. package/bundle/{chunk-hfefq104.js → chunk-g4tyaj0m.js} +1 -1
  152. package/bundle/{chunk-a610qd3x.js → chunk-g6y2c5az.js} +1 -1
  153. package/bundle/{chunk-tezrgfc6.js → chunk-g7v6sp3c.js} +2 -2
  154. package/bundle/{chunk-4bewbvvr.js → chunk-g878zd6e.js} +1 -1
  155. package/bundle/{chunk-na1wr2qf.js → chunk-g9nwqwqp.js} +1 -1
  156. package/bundle/chunk-gbvm6dpv.js +2 -0
  157. package/bundle/{chunk-xcxqt8ag.js → chunk-ggncq8w8.js} +1 -1
  158. package/bundle/chunk-gkbx6edf.js +2 -0
  159. package/bundle/{chunk-skxg3s8z.js → chunk-gq9hb2e8.js} +1 -1
  160. package/bundle/{chunk-gwrnxcdn.js → chunk-gsg6zn7e.js} +1 -1
  161. package/bundle/{chunk-v3nmnm57.js → chunk-gswhjd1h.js} +2 -2
  162. package/bundle/{chunk-4jpab7ag.js → chunk-gznt3dv8.js} +1 -1
  163. package/bundle/{chunk-defj5zs6.js → chunk-h1bvqstw.js} +1 -1
  164. package/bundle/chunk-h5w91zr4.js +2 -0
  165. package/bundle/{chunk-qp3hxqg5.js → chunk-h8mfbbjh.js} +1 -1
  166. package/bundle/chunk-hmpb3c21.js +2 -0
  167. package/bundle/chunk-hq7s4f75.js +2 -0
  168. package/bundle/{chunk-6gqs1k7m.js → chunk-hz02vrqs.js} +1 -1
  169. package/bundle/{chunk-3xdmxm5t.js → chunk-j10a984e.js} +1 -1
  170. package/bundle/chunk-j1h64m65.js +2 -0
  171. package/bundle/chunk-j32rr7rt.js +2 -0
  172. package/bundle/chunk-j871xzr7.js +2 -0
  173. package/bundle/{chunk-kfj37631.js → chunk-jmmtcr2r.js} +1 -1
  174. package/bundle/{chunk-h7658zxy.js → chunk-jpn9zfj5.js} +1 -1
  175. package/bundle/{chunk-wgt1tqw9.js → chunk-jqj1ay7x.js} +1 -1
  176. package/bundle/{chunk-e4g4mvak.js → chunk-jr80q31w.js} +1 -1
  177. package/bundle/{chunk-9a6p1gdn.js → chunk-k1qd8ecm.js} +7 -7
  178. package/bundle/{chunk-8jvfqh3b.js → chunk-k3m7jfdh.js} +1 -1
  179. package/bundle/{chunk-gbxf6e5d.js → chunk-k6981ysw.js} +3 -3
  180. package/bundle/{chunk-k6zwfstj.js → chunk-kckr30tf.js} +1 -1
  181. package/bundle/{chunk-8rfqv5he.js → chunk-kgv68cpb.js} +1 -1
  182. package/bundle/{chunk-55way0em.js → chunk-kveztc6k.js} +1 -1
  183. package/bundle/chunk-kx88qekb.js +2 -0
  184. package/bundle/chunk-m4g4djss.js +2 -0
  185. package/bundle/{chunk-nbckdba0.js → chunk-m4r8sepw.js} +1 -1
  186. package/bundle/{chunk-6ychs4wx.js → chunk-m7tmgvh6.js} +1 -1
  187. package/bundle/{chunk-npzx3yd5.js → chunk-maa21rh9.js} +1 -1
  188. package/bundle/{chunk-egkhynj5.js → chunk-makegrxs.js} +1 -1
  189. package/bundle/{chunk-438faz6b.js → chunk-mr17tppa.js} +1 -1
  190. package/bundle/{chunk-4ngmjk8j.js → chunk-mrq35ftw.js} +1 -1
  191. package/bundle/{chunk-9aafddkw.js → chunk-mt2by7rx.js} +1 -1
  192. package/bundle/{chunk-yzpc5kj2.js → chunk-mv7q6ach.js} +1 -1
  193. package/bundle/chunk-mwkms65j.js +3 -0
  194. package/bundle/chunk-n61e0znt.js +2 -0
  195. package/bundle/{chunk-kry4vcrf.js → chunk-n6tqtk6h.js} +2 -2
  196. package/bundle/{chunk-k3g28tbw.js → chunk-nas631g2.js} +1 -1
  197. package/bundle/chunk-ndd4cn3z.js +2 -0
  198. package/bundle/{chunk-dd4qnh8s.js → chunk-nsp1za8t.js} +1 -1
  199. package/bundle/chunk-nsw5x43k.js +2 -0
  200. package/bundle/{chunk-bk7f59fn.js → chunk-ntr0ezf2.js} +1 -1
  201. package/bundle/{chunk-cth373se.js → chunk-p2fte9vz.js} +2 -2
  202. package/bundle/chunk-p5b5ekhh.js +2 -0
  203. package/bundle/chunk-pf23nw4z.js +2 -0
  204. package/bundle/{chunk-whw18cn9.js → chunk-phf37x1c.js} +1 -1
  205. package/bundle/{chunk-r73e8gsp.js → chunk-phpxxd48.js} +1 -1
  206. package/bundle/{chunk-1ay97v74.js → chunk-pqg1wjb5.js} +1 -1
  207. package/bundle/chunk-pw3cv89g.js +2 -0
  208. package/bundle/{chunk-0am156m5.js → chunk-qbnt4ynd.js} +1 -1
  209. package/bundle/{chunk-mjrqhbp2.js → chunk-qgek59e6.js} +1 -1
  210. package/bundle/{chunk-v9w88wpy.js → chunk-qgkb6n8k.js} +1 -1
  211. package/bundle/{chunk-2c41dncf.js → chunk-qk1jkc0n.js} +1 -1
  212. package/bundle/{chunk-wb1d3mqw.js → chunk-qk5vy2pr.js} +1 -1
  213. package/bundle/{chunk-r4kg0z96.js → chunk-qsme16gk.js} +1 -1
  214. package/bundle/{chunk-d1tb1jd0.js → chunk-qwmae3vk.js} +1 -1
  215. package/bundle/chunk-rdk62809.js +2 -0
  216. package/bundle/{chunk-5r05d901.js → chunk-rdreeyv0.js} +2 -2
  217. package/bundle/chunk-rew6r516.js +2 -0
  218. package/bundle/{chunk-0bgssfvq.js → chunk-rjcz4kbm.js} +1 -1
  219. package/bundle/chunk-rmsqb6r4.js +10 -0
  220. package/bundle/{chunk-qph2c2v7.js → chunk-rva2ekrt.js} +1 -1
  221. package/bundle/{chunk-7z96r2px.js → chunk-rwnwjm82.js} +1 -1
  222. package/bundle/{chunk-ts2k13g0.js → chunk-rwwvy89t.js} +1 -1
  223. package/bundle/{chunk-tz3s8dvy.js → chunk-rye1yjnr.js} +1 -1
  224. package/bundle/{chunk-t9qyzzsz.js → chunk-ryrxgn6d.js} +1 -1
  225. package/bundle/{chunk-wjz42325.js → chunk-s2tc3qs0.js} +2 -2
  226. package/bundle/{chunk-p847g35y.js → chunk-s5aefff0.js} +1 -1
  227. package/bundle/{chunk-msh249db.js → chunk-sa0rrreh.js} +2 -2
  228. package/bundle/{chunk-dbpkq7ba.js → chunk-sbjymf20.js} +2 -2
  229. package/bundle/{chunk-n5p7cn4w.js → chunk-scnbt714.js} +1 -1
  230. package/bundle/chunk-skgr9ypq.js +2 -0
  231. package/bundle/{chunk-rhrcgvb8.js → chunk-sm1g81cv.js} +1 -1
  232. package/bundle/chunk-sv40pwe2.js +2 -0
  233. package/bundle/{chunk-qprbef09.js → chunk-sy9w1t2y.js} +1 -1
  234. package/bundle/{chunk-bd84t3fb.js → chunk-sz0favtz.js} +1 -1
  235. package/bundle/{chunk-xb3sxa6f.js → chunk-t18ka1e7.js} +1 -1
  236. package/bundle/{chunk-va2qfh0x.js → chunk-t3w43rft.js} +1 -1
  237. package/bundle/{chunk-n9twhc5d.js → chunk-t6zz47zk.js} +1 -1
  238. package/bundle/{chunk-wd8hbven.js → chunk-t8fjgkp8.js} +1 -1
  239. package/bundle/chunk-tax3ecy5.js +2 -0
  240. package/bundle/{chunk-6r48fje7.js → chunk-tbx741en.js} +1 -1
  241. package/bundle/chunk-tfhpjmny.js +2 -0
  242. package/bundle/{chunk-2cjfezfr.js → chunk-tk4z6r09.js} +1 -1
  243. package/bundle/chunk-tnete6ye.js +2 -0
  244. package/bundle/{chunk-2y87m7pe.js → chunk-tpyq7ycb.js} +1 -1
  245. package/bundle/chunk-tr0rm1ka.js +2 -0
  246. package/bundle/{chunk-nftbj8g9.js → chunk-trstb8ee.js} +1 -1
  247. package/bundle/{chunk-77h8tytk.js → chunk-ty14zznd.js} +1 -1
  248. package/bundle/chunk-v5h5wxw5.js +2 -0
  249. package/bundle/chunk-v6141yq1.js +2 -0
  250. package/bundle/{chunk-vjn54xj5.js → chunk-vbfej8ds.js} +2 -2
  251. package/bundle/{chunk-5nhwqg7c.js → chunk-vd8cmdpv.js} +1 -1
  252. package/bundle/{chunk-76h0f86f.js → chunk-vgt3artc.js} +1 -1
  253. package/bundle/chunk-vjs69r6x.js +2 -0
  254. package/bundle/{chunk-yy7r3t3w.js → chunk-vkkz40je.js} +1 -1
  255. package/bundle/chunk-vmhar83s.js +2 -0
  256. package/bundle/{chunk-zp5sr5nx.js → chunk-vph4w4yy.js} +1 -1
  257. package/bundle/chunk-vpjyk76v.js +2 -0
  258. package/bundle/chunk-vqvnw12p.js +2 -0
  259. package/bundle/{chunk-0g0jpw0z.js → chunk-vr8nwzp0.js} +1 -1
  260. package/bundle/{chunk-nrk29616.js → chunk-vs3s49jw.js} +1 -1
  261. package/bundle/{chunk-v0c3k797.js → chunk-vsqvnxbz.js} +1 -1
  262. package/bundle/{chunk-rqedtjz9.js → chunk-w0nc0gcx.js} +1 -1
  263. package/bundle/chunk-w0sztk4y.js +2 -0
  264. package/bundle/chunk-w6bb320d.js +2 -0
  265. package/bundle/{chunk-t8sy5sgx.js → chunk-w7a33cwa.js} +2 -2
  266. package/bundle/{chunk-agqss9ga.js → chunk-wb47k8ah.js} +2 -2
  267. package/bundle/{chunk-rfzra502.js → chunk-wd8f9r4k.js} +1 -1
  268. package/bundle/{chunk-hwsqqkrv.js → chunk-wgkcyqn1.js} +2 -2
  269. package/bundle/{chunk-dy2k5rdx.js → chunk-wm9nh9nb.js} +2 -2
  270. package/bundle/{chunk-6nxebcf8.js → chunk-wn63q3xp.js} +1 -1
  271. package/bundle/{chunk-z6kcnpsj.js → chunk-wqk1v8t0.js} +2 -2
  272. package/bundle/chunk-wqw6yjrg.js +2 -0
  273. package/bundle/{chunk-q3pt4p9f.js → chunk-wr6rnxr5.js} +1 -1
  274. package/bundle/chunk-ws08rxge.js +2 -0
  275. package/bundle/{chunk-dw7yrk1g.js → chunk-wtt5wms9.js} +1 -1
  276. package/bundle/{chunk-93pmbdz7.js → chunk-wtxh5m6j.js} +6 -6
  277. package/bundle/{chunk-q6mcnq9p.js → chunk-wwvek9zf.js} +1 -1
  278. package/bundle/chunk-wz3dvc3g.js +2 -0
  279. package/bundle/chunk-x2pmqvdc.js +2 -0
  280. package/bundle/chunk-x4wfq39v.js +2 -0
  281. package/bundle/chunk-x7a3kqe5.js +2 -0
  282. package/bundle/chunk-xb22grz6.js +2 -0
  283. package/bundle/{chunk-3623jvcm.js → chunk-xy8arehp.js} +1 -1
  284. package/bundle/{chunk-16srrzjr.js → chunk-y31f8k5f.js} +1 -1
  285. package/bundle/chunk-y3eeva80.js +2 -0
  286. package/bundle/{chunk-mhxyv9c8.js → chunk-y3gy62q5.js} +1 -1
  287. package/bundle/chunk-yb6m08zj.js +2 -0
  288. package/bundle/{chunk-b79z8f94.js → chunk-ybcqkgs7.js} +1 -1
  289. package/bundle/{chunk-95am490c.js → chunk-ydgst3h8.js} +2 -2
  290. package/bundle/{chunk-twfvrafb.js → chunk-ykpj10nz.js} +1 -1
  291. package/bundle/{chunk-e0zb6sw6.js → chunk-ynf17943.js} +1 -1
  292. package/bundle/{chunk-01e3v1xz.js → chunk-z0kbyr00.js} +2 -2
  293. package/bundle/{chunk-4vzjdmts.js → chunk-zfrftgcy.js} +1 -1
  294. package/bundle/chunk-zj1jc1xt.js +2 -0
  295. package/bundle/{chunk-9sv53kb4.js → chunk-zm0m0504.js} +1 -1
  296. package/bundle/chunk-zq32jhj1.js +2 -0
  297. package/bundle/{chunk-gdj7mqrd.js → chunk-zqdjk4rf.js} +1 -1
  298. package/bundle/{chunk-7x2q1w0f.js → chunk-zsg29gba.js} +1 -1
  299. package/bundle/{chunk-1c0yp2gv.js → chunk-zwhmg9dj.js} +1 -1
  300. package/bundle/chunk-zxwjxszn.js +2 -0
  301. package/bundle/index.js +3 -3
  302. package/bundle/parser.worker.js +2 -2
  303. package/bundle/worker.js +1 -1
  304. package/package.json +1 -1
  305. package/bundle/chunk-0dzpjk7x.js +0 -2
  306. package/bundle/chunk-12fwmmcp.js +0 -2
  307. package/bundle/chunk-1a95ysv3.js +0 -2
  308. package/bundle/chunk-1akh8pk2.js +0 -2
  309. package/bundle/chunk-2d2a92kj.js +0 -2
  310. package/bundle/chunk-2qrvkef8.js +0 -2
  311. package/bundle/chunk-2tppw8j9.js +0 -2
  312. package/bundle/chunk-3ft1dn9j.js +0 -2
  313. package/bundle/chunk-3rgct4bd.js +0 -11
  314. package/bundle/chunk-4656qm05.js +0 -2
  315. package/bundle/chunk-46knch5z.js +0 -2
  316. package/bundle/chunk-4sgy87h5.js +0 -2
  317. package/bundle/chunk-54hktc8h.js +0 -2
  318. package/bundle/chunk-59m55866.js +0 -2
  319. package/bundle/chunk-5js5nw7r.js +0 -2
  320. package/bundle/chunk-61jn7908.js +0 -2
  321. package/bundle/chunk-61txdqz1.js +0 -2
  322. package/bundle/chunk-668g9wkg.js +0 -2
  323. package/bundle/chunk-6frhjpmt.js +0 -2
  324. package/bundle/chunk-6k14c8x1.js +0 -5
  325. package/bundle/chunk-6r1jpj0h.js +0 -2
  326. package/bundle/chunk-73fn4dqd.js +0 -2
  327. package/bundle/chunk-78j2c2je.js +0 -2
  328. package/bundle/chunk-78jt24ht.js +0 -2
  329. package/bundle/chunk-7j2vpavd.js +0 -2
  330. package/bundle/chunk-7nkxgm72.js +0 -2
  331. package/bundle/chunk-859pkecc.js +0 -2
  332. package/bundle/chunk-8p249svd.js +0 -2
  333. package/bundle/chunk-8rqbx4jw.js +0 -2
  334. package/bundle/chunk-8s3krfsm.js +0 -2
  335. package/bundle/chunk-9wbe0dkx.js +0 -2
  336. package/bundle/chunk-aj5z8qd5.js +0 -2
  337. package/bundle/chunk-b0c2mvc0.js +0 -2
  338. package/bundle/chunk-bbwcsdy9.js +0 -2
  339. package/bundle/chunk-bbzjdbb9.js +0 -2
  340. package/bundle/chunk-bh4s1yct.js +0 -2
  341. package/bundle/chunk-crqcppwq.js +0 -2
  342. package/bundle/chunk-d09zpgj1.js +0 -2
  343. package/bundle/chunk-dexcptaz.js +0 -3
  344. package/bundle/chunk-dgqkak21.js +0 -2
  345. package/bundle/chunk-dhgvh7c3.js +0 -2
  346. package/bundle/chunk-dmd101ja.js +0 -2
  347. package/bundle/chunk-dwb39jdf.js +0 -2
  348. package/bundle/chunk-dx4zxex7.js +0 -2
  349. package/bundle/chunk-e2pqvscp.js +0 -2
  350. package/bundle/chunk-efe6kj3d.js +0 -2
  351. package/bundle/chunk-emac0dss.js +0 -2
  352. package/bundle/chunk-encfnt6w.js +0 -2
  353. package/bundle/chunk-fg2nyz2x.js +0 -2
  354. package/bundle/chunk-ge19ff9d.js +0 -2
  355. package/bundle/chunk-gt0q07xq.js +0 -2
  356. package/bundle/chunk-h4dnjfr2.js +0 -2
  357. package/bundle/chunk-h8fx619t.js +0 -2
  358. package/bundle/chunk-jnvb3s7f.js +0 -2
  359. package/bundle/chunk-jrq2xw6e.js +0 -2
  360. package/bundle/chunk-jwckmhjm.js +0 -2
  361. package/bundle/chunk-jz27ypm5.js +0 -2
  362. package/bundle/chunk-jzrs878d.js +0 -2
  363. package/bundle/chunk-jzx700tb.js +0 -2
  364. package/bundle/chunk-k1x8469r.js +0 -3
  365. package/bundle/chunk-m483jvn8.js +0 -2
  366. package/bundle/chunk-makecdh6.js +0 -8
  367. package/bundle/chunk-menbcmkq.js +0 -2
  368. package/bundle/chunk-np8h66t0.js +0 -2
  369. package/bundle/chunk-nwwmns3w.js +0 -2
  370. package/bundle/chunk-pe5dpzec.js +0 -2
  371. package/bundle/chunk-q8f6a074.js +0 -2
  372. package/bundle/chunk-qqaevt32.js +0 -2
  373. package/bundle/chunk-qzpvz708.js +0 -2
  374. package/bundle/chunk-reyjr2e0.js +0 -2
  375. package/bundle/chunk-t178njgb.js +0 -2
  376. package/bundle/chunk-tjpev5t6.js +0 -2
  377. package/bundle/chunk-tzq7wjgv.js +0 -3
  378. package/bundle/chunk-v1s16wwd.js +0 -2
  379. package/bundle/chunk-v6b29nx4.js +0 -2
  380. package/bundle/chunk-v6rgd1j5.js +0 -2
  381. package/bundle/chunk-v9dnetq8.js +0 -2
  382. package/bundle/chunk-vd5mpvcc.js +0 -2
  383. package/bundle/chunk-wwct4z7j.js +0 -2
  384. package/bundle/chunk-xr9wz961.js +0 -2
  385. package/bundle/chunk-zfegnt1e.js +0 -2
  386. package/bundle/chunk-zg7kesbp.js +0 -2
  387. package/bundle/chunk-zy06fe4r.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{X as s,Y as t,_ as a}from"./chunk-nr2j8ytn.js";import{$ as o}from"./chunk-gww0skmn.js";import{Qd as i}from"./chunk-yy7r3t3w.js";import{be as n}from"./chunk-f4mnp6xd.js";import{eg as J}from"./chunk-s06t769q.js";import{lg as f}from"./chunk-q6p92zyn.js";import"./chunk-yd94wz5v.js";import"./chunk-4ngmjk8j.js";import"./chunk-dd4qnh8s.js";import"./chunk-tzq7wjgv.js";import"./chunk-nfg7nt13.js";import"./chunk-v9w88wpy.js";import"./chunk-q87fw8dk.js";import{Ch as p,rh as l}from"./chunk-w43kmnm9.js";import"./chunk-nrk29616.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-wd8hbven.js";import"./chunk-drnj1a14.js";import{Uk as g}from"./chunk-9a6p1gdn.js";import"./chunk-jxkrhrp0.js";import"./chunk-6k14c8x1.js";import"./chunk-5r05d901.js";import"./chunk-3rgct4bd.js";import"./chunk-5b3v1x2c.js";import"./chunk-gbxf6e5d.js";import"./chunk-msh249db.js";import"./chunk-95am490c.js";import"./chunk-kmzpeq8k.js";import"./chunk-0gsw04hw.js";import"./chunk-hqjc4wgg.js";import{Ap as b}from"./chunk-makecdh6.js";import"./chunk-dy2k5rdx.js";import"./chunk-n5p7cn4w.js";import"./chunk-cqtkxwd8.js";import"./chunk-mhxyv9c8.js";import"./chunk-0crgymtr.js";import"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-va2qfh0x.js";import"./chunk-ae7b11np.js";import"./chunk-eeq0krp7.js";import"./chunk-73xryfgn.js";import"./chunk-yjqww6ag.js";import"./chunk-z6kcnpsj.js";import{ct as d}from"./chunk-ts2k13g0.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-z744mz4w.js";import"./chunk-vjn54xj5.js";import"./chunk-0qpqd7nz.js";import"./chunk-gdew7bwm.js";import"./chunk-v3nmnm57.js";import"./chunk-hwsqqkrv.js";import{lu as I,uu as D}from"./chunk-mbbxedsq.js";import{Fu as x}from"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import"./chunk-tezrgfc6.js";import"./chunk-wjz42325.js";import"./chunk-kry4vcrf.js";import"./chunk-f2pv705d.js";import q from"path";import{pathToFileURL as Kj}from"url";import{EOL as T}from"os";function G(j){let M=j.state;return{input:M.input,metadata:"metadata"in M?M.metadata:{},part:j}}function z(j){let M=j.description?J.Style.TEXT_DIM+` ${j.description}`+J.Style.TEXT_NORMAL:"";J.println(J.Style.TEXT_NORMAL+j.icon,J.Style.TEXT_NORMAL+j.title+M)}function h(j,M){if(J.empty(),z(j),!M?.trim())return;J.println(M),J.empty()}function u(j){let M=j.state,X="input"in M?M.input:void 0,Z=("title"in M&&M.title?M.title:void 0)||(X&&typeof X==="object"&&Object.keys(X).length>0?JSON.stringify(X):"Unknown");z({icon:"\u2699",title:`${j.tool} ${Z}`})}function e(j){let M=j.path??"",X=`${j.kind} "${j.pattern}"`,Z=M?`in ${E(M)}`:"",H=j.count===void 0?Z:`${Z}${Z?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;z({icon:"\u2731",title:X,...H&&{description:H}})}function Mj(j){e({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function Nj(j){e({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Vj(j){let M=E(j.input.filePath),X=Object.entries(j.input).filter(([H,C])=>{if(H==="filePath")return!1;return typeof C==="string"||typeof C==="number"||typeof C==="boolean"}),Z=X.length?`[${X.map(([H,C])=>`${H}=${C}`).join(", ")}]`:void 0;z({icon:"\u2192",title:`Read ${M}`,...Z&&{description:Z}})}function Xj(j){h({icon:"\u2190",title:`Write ${E(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Yj(j){z({icon:"%",title:`WebFetch ${j.input.url}`})}function Zj(j){let M=E(j.input.filePath),X=j.metadata.diff;h({icon:"\u2190",title:`Edit ${M}`},X)}function _j(j){z({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function $j(j){z({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function c(j){let M=j.part.state.input?.operation??j.part.state.input,X=j.part.state.status,Z=typeof M?.subagent_type==="string"&&M.subagent_type.trim().length>0?M.subagent_type:"unknown",H=d.titlecase(Z),C=typeof M?.description==="string"&&M.description.trim().length>0?M.description:void 0,w=X==="error"?"\u2717":X==="running"?"\u2022":"\u2713",L=C??`${H} Task`;z({icon:w,title:L,description:C?`${H} Agent`:void 0})}function Gj(j){z({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Hj(j){let M=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;h({icon:"$",title:`${j.input.command}`},M)}function E(j){if(!j)return"";if(q.isAbsolute(j))return q.relative(process.cwd(),j)||".";return j}var Dj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let M=[...j.message,...j["--"]||[]].join(" "),X=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{J.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Z=[];if(j.file){let N=Array.isArray(j.file)?j.file:[j.file];for(let Y of N){let V=q.resolve(process.cwd(),Y);if(!await x.exists(V))J.error(`File not found: ${Y}`),process.exit(1);let W=await x.isDir(V)?"application/x-directory":"text/plain";Z.push({type:"file",url:Kj(V).href,filename:q.basename(V),mime:W})}}if(!process.stdin.isTTY)M+=`
2
+ import{X as s,Y as t,_ as a}from"./chunk-nr2j8ytn.js";import{$ as o}from"./chunk-4pmvxnkj.js";import{Qd as i}from"./chunk-vkkz40je.js";import{be as n}from"./chunk-f4mnp6xd.js";import{eg as J}from"./chunk-bwadggys.js";import{lg as f}from"./chunk-7r92d7v9.js";import"./chunk-0s4cp6q2.js";import"./chunk-mrq35ftw.js";import"./chunk-nsp1za8t.js";import"./chunk-brk6bge4.js";import"./chunk-nfg7nt13.js";import"./chunk-qgkb6n8k.js";import"./chunk-dcv6wj9x.js";import{Ch as p,rh as l}from"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import{Uk as g}from"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import{bo as b}from"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import{Fr as d}from"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import{Os as I,Xs as D}from"./chunk-59csnjc3.js";import{gt as x}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";import q from"path";import{pathToFileURL as Kj}from"url";import{EOL as T}from"os";function G(j){let M=j.state;return{input:M.input,metadata:"metadata"in M?M.metadata:{},part:j}}function z(j){let M=j.description?J.Style.TEXT_DIM+` ${j.description}`+J.Style.TEXT_NORMAL:"";J.println(J.Style.TEXT_NORMAL+j.icon,J.Style.TEXT_NORMAL+j.title+M)}function h(j,M){if(J.empty(),z(j),!M?.trim())return;J.println(M),J.empty()}function u(j){let M=j.state,X="input"in M?M.input:void 0,Z=("title"in M&&M.title?M.title:void 0)||(X&&typeof X==="object"&&Object.keys(X).length>0?JSON.stringify(X):"Unknown");z({icon:"\u2699",title:`${j.tool} ${Z}`})}function e(j){let M=j.path??"",X=`${j.kind} "${j.pattern}"`,Z=M?`in ${E(M)}`:"",H=j.count===void 0?Z:`${Z}${Z?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;z({icon:"\u2731",title:X,...H&&{description:H}})}function Mj(j){e({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function Nj(j){e({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Vj(j){let M=E(j.input.filePath),X=Object.entries(j.input).filter(([H,C])=>{if(H==="filePath")return!1;return typeof C==="string"||typeof C==="number"||typeof C==="boolean"}),Z=X.length?`[${X.map(([H,C])=>`${H}=${C}`).join(", ")}]`:void 0;z({icon:"\u2192",title:`Read ${M}`,...Z&&{description:Z}})}function Xj(j){h({icon:"\u2190",title:`Write ${E(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Yj(j){z({icon:"%",title:`WebFetch ${j.input.url}`})}function Zj(j){let M=E(j.input.filePath),X=j.metadata.diff;h({icon:"\u2190",title:`Edit ${M}`},X)}function _j(j){z({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function $j(j){z({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function c(j){let M=j.part.state.input?.operation??j.part.state.input,X=j.part.state.status,Z=typeof M?.subagent_type==="string"&&M.subagent_type.trim().length>0?M.subagent_type:"unknown",H=d.titlecase(Z),C=typeof M?.description==="string"&&M.description.trim().length>0?M.description:void 0,w=X==="error"?"\u2717":X==="running"?"\u2022":"\u2713",L=C??`${H} Task`;z({icon:w,title:L,description:C?`${H} Agent`:void 0})}function Gj(j){z({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Hj(j){let M=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;h({icon:"$",title:`${j.input.command}`},M)}function E(j){if(!j)return"";if(q.isAbsolute(j))return q.relative(process.cwd(),j)||".";return j}var Dj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let M=[...j.message,...j["--"]||[]].join(" "),X=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{J.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Z=[];if(j.file){let N=Array.isArray(j.file)?j.file:[j.file];for(let Y of N){let V=q.resolve(process.cwd(),Y);if(!await x.exists(V))J.error(`File not found: ${Y}`),process.exit(1);let W=await x.isDir(V)?"application/x-directory":"text/plain";Z.push({type:"file",url:Kj(V).href,filename:q.basename(V),mime:W})}}if(!process.stdin.isTTY)M+=`
3
3
  `+await Bun.stdin.text();if(M.trim().length===0&&!j.command)J.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)J.error("--fork requires --continue or --session"),process.exit(1);let H=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function C(){if(j.title===void 0)return;if(j.title!=="")return j.title;return M.slice(0,50)+(M.length>50?"...":"")}async function w(N){let Y=j.continue?(await N.session.list()).data?.find((_)=>!_.parentID)?.id:j.session;if(Y&&j.fork)return(await N.session.fork({sessionID:Y})).data?.id;if(Y)return Y;let V=C();return(await N.session.create({title:V,permission:H})).data?.id}async function L(N,Y){let V=await N.config.get();if(!V.data)return;if(V.data.share!=="auto"&&!I.QITQODE_AUTO_SHARE&&!j.share)return;let W=await N.session.share({sessionID:Y}).catch((_)=>{if(_ instanceof Error&&_.message.includes("disabled"))J.println(J.Style.TEXT_DANGER_BOLD+"! "+_.message);return{error:_}});if(!W.error&&"data"in W&&W.data?.share?.url)J.println(J.Style.TEXT_INFO_BOLD+"~ "+W.data.share.url)}async function v(N){function Y(B){try{if(B.tool==="bash")return Hj(G(B));if(B.tool==="glob")return Mj(G(B));if(B.tool==="grep")return Nj(G(B));if(B.tool==="read")return Vj(G(B));if(B.tool==="write")return Xj(G(B));if(B.tool==="webfetch")return Yj(G(B));if(B.tool==="edit")return Zj(G(B));if(B.tool==="codesearch")return _j(G(B));if(B.tool==="websearch")return $j(G(B));if(B.tool==="actor")return c(G(B));if(B.tool==="skill")return Gj(G(B));return u(B)}catch{return u(B)}}function V(B,F){if(j.format==="json")return process.stdout.write(JSON.stringify({type:B,timestamp:Date.now(),sessionID:S,...F})+T),!0;return!1}let W=await N.event.subscribe(),_;async function r(B,F){let A=new Map,Q=D.create({service:"cli.run"}),O=W.stream[Symbol.asyncIterator](),Jj=B.completion.then(()=>"DONE");try{while(!0){let y=await Promise.race([O.next(),Jj]);if(y==="DONE")break;if(y.done)break;let $=y.value;if(F.onEvent($),B.onEvent($),Q.debug("event received",{type:$.type}),$.type==="message.updated"&&$.properties.info.role==="assistant"&&j.format!=="json"&&A.get("start")!==!0)J.empty(),J.println(`> ${$.properties.info.agent} \xB7 ${$.properties.info.modelID}`),J.empty(),A.set("start",!0);if($.type==="message.part.updated"){let K=$.properties.part;if(K.sessionID!==S)continue;if(K.type==="tool"&&(K.state.status==="completed"||K.state.status==="error")){if(V("tool_use",{part:K}))continue;if(K.state.status==="completed"){Y(K);continue}z({icon:"\u2717",title:`${K.tool} failed`}),J.error(K.state.error)}if(K.type==="tool"&&K.tool==="actor"&&K.state.status==="running"&&j.format!=="json"){if(A.get(K.id)===!0)continue;c(G(K)),A.set(K.id,!0)}if(K.type==="step-start"){if(V("step_start",{part:K}))continue}if(K.type==="step-finish"){if(V("step_finish",{part:K}))continue}if(K.type==="text"&&K.time?.end){if(V("text",{part:K}))continue;let R=K.text.trim();if(!R)continue;if(!process.stdout.isTTY){process.stdout.write(R+T);continue}J.empty(),J.println(R),J.empty()}if(K.type==="reasoning"&&K.time?.end&&j.thinking){if(V("reasoning",{part:K}))continue;let R=K.text.trim();if(!R)continue;let k=`Thinking: ${R}`;if(process.stdout.isTTY){J.empty(),J.println(`${J.Style.TEXT_DIM}\x1B[3m${k}\x1B[0m${J.Style.TEXT_NORMAL}`),J.empty();continue}process.stdout.write(k+T)}}if($.type==="session.error"){let K=$.properties;if(K.sessionID!==S||!K.error)continue;let R=String(K.error.name);if("data"in K.error&&K.error.data&&"message"in K.error.data)R=String(K.error.data.message);if(_=_?_+T+R:R,V("error",{error:K.error}))continue;J.error(R)}if($.type==="permission.asked"){let K=$.properties;if(K.sessionID!==S)continue;if(j["dangerously-skip-permissions"])await N.permission.reply({requestID:K.id,reply:"once"});else J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL+`permission requested: ${K.permission} (${K.patterns.join(", ")}); auto-rejecting`),await N.permission.reply({requestID:K.id,reply:"reject"})}}}finally{F.fail(Error("QitQode event stream closed before connecting")),B.stop(),await O.return?.(void 0).catch(()=>{})}}let jj=await(async()=>{if(!j.agent)return;let B=j.agent;if(j.attach){let A=await N.app.agents(void 0,{throwOnError:!0}).then((O)=>O.data??[]).catch(()=>{return});if(!A){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let Q=A.find((O)=>O.name===B);if(!Q){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if(Q.mode==="subagent"){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B}let F=await p.runPromise(l.Service.use((A)=>A.get(B)));if(!F){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if(F.mode==="subagent"){J.println(J.Style.TEXT_WARNING_BOLD+"!",J.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B})(),m=a(jj),S=await w(N);if(!S)J.error("Session not found"),process.exit(1);await L(N,S);let Bj=D.create({service:"cli.run.poll"}),P=t({sessionID:S,query:async()=>{try{return(await N.session.status()).data?.[S]}catch(B){throw Bj.debug("session.status query failed",{error:B}),B}}}),U=s();r(P,U).catch((B)=>{console.error(B),process.exit(1)});try{await U.wait()}catch(B){throw P.stop(),B}if(j.command)await N.session.command({sessionID:S,agent:m,model:j.model,command:j.command,arguments:M,variant:j.variant});else{let B=j.model?g.parseModel(j.model):void 0;await N.session.prompt({sessionID:S,agent:m,model:B,variant:j.variant,parts:[...Z,{type:"text",text:M}]})}P.markStarted()}if(j.attach){let N=o({password:j.password}),Y=b({baseUrl:j.attach,directory:X,headers:N});return await v(Y)}await i(process.cwd(),async()=>{let Y=b({baseUrl:"http://qitqode.internal",fetch:async(V,W)=>{let _=new Request(V,W);return f.Default().app.fetch(_)}});await v(Y)})}});export{Dj as RunCommand};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$z as xa,AA as hb,BA as ib,CA as jb,DA as kb,GA as lb,HA as mb,IA as nb,JA as ob,KA as pb,LA as qb,MA as rb,NA as sb,OA as tb,PA as ub,QA as vb,RA as wb,SA as xb,TA as yb,UA as zb,VA as Ab,WA as Bb,XA as Cb,YA as Db,ZA as Eb,_A as Fb,_z as va,aA as Ia,bA as Ma,cA as Na,eA as Oa,fA as Pa,gA as Qa,hA as Ra,iA as Sa,jA as Ta,kA as Ua,lA as Va,mA as Wa,nA as Ya,oA as Za,pA as _a,qA as $a,rA as ab,sA as bb,tA as cb,uA as db,vA as eb,yA as fb,zA as gb}from"./chunk-t8sy5sgx.js";import{AG as T,AM as Aa,CB as i,CF as H,CP as La,DL as ta,DM as Ba,EI as U,EJ as ea,EK as pa,FM as Ca,FP as Xa,GI as V,HI as W,HL as ua,IK as qa,IL as wa,IM as Da,JI as X,JK as ra,KB as j,LC as t,MI as Y,MJ as fa,NB as k,NF as I,OD as z,OJ as ga,PJ as ha,PM as Ea,QB as l,RI as Z,SJ as ia,SM as Fa,TB as m,UI as _,UM as Ga,VI as $,VJ as ja,YI as aa,ZB as n,ZC as u,_B as o,_D as A,aB as a,bG as J,cB as b,cE as B,cG as K,dB as c,dE as C,eK as ka,gG as L,gK as la,hD as v,hK as ma,hM as ya,iC as p,iG as M,iJ as ba,jD as w,jE as D,jF as E,kB as d,kC as q,kG as N,kJ as ca,lB as e,lG as O,mB as f,mG as P,nB as g,oB as h,oC as r,oJ as da,oK as na,qD as x,qF as F,rG as Q,rP as Ha,sK as oa,sP as Ja,vL as sa,vP as Ka,wG as R,xF as G,xG as S,yC as s,yD as y,zM as za}from"./chunk-tezrgfc6.js";import"./chunk-f2pv705d.js";export{e as pipe,b as identity,g as hole,f as flow,c as cast,d as absurd,o as Utils,Fb as Unify,Ba as UndefinedOr,Eb as Types,Db as TxSubscriptionRef,Cb as TxSemaphore,tb as TxRef,Bb as TxReentrantLock,zb as TxQueue,Ab as TxPubSub,yb as TxPriorityQueue,xb as TxHashSet,wb as TxHashMap,vb as TxDeferred,ub as TxChunk,w as Tuple,sb as Trie,D as Tracer,rb as Terminal,ma as Take,hb as SynchronizedRef,qb as Symbol,pb as SubscriptionRef,Aa as Struct,O as String,sa as Stream,ob as Stdio,oa as Sink,la as Semaphore,ib as ScopedRef,nb as ScopedCache,I as Scope,mb as SchemaUtils,aa as SchemaTransformation,lb as SchemaRepresentation,Ca as SchemaParser,Z as SchemaIssue,_ as SchemaGetter,ba as SchemaAST,Ha as Schema,C as Scheduler,R as Schedule,kb as Runtime,v as Result,jb as Resource,gb as RequestResolver,S as Request,V as RegExp,H as References,fb as Ref,q as Reducer,Y as Redacted,l as Redactable,y as Record,ra as RcRef,qa as RcMap,eb as Random,ka as Queue,Q as Pull,ja as PubSub,Ta as PrimaryKey,i as Predicate,db as Pool,da as PlatformError,a as Pipeable,ua as Path,cb as PartitionedSemaphore,bb as Ordering,s as Order,t as Option,Ga as Optic,N as Number,ab as NonEmptyIterable,$a as Newtype,ia as MutableRef,ha as MutableList,_a as MutableHashSet,pa as MutableHashMap,T as Metric,Za as Match,Ya as ManagedRuntime,Xa as Logger,Ka as LogLevel,Wa as LayerMap,J as Layer,ga as Latch,Fa as JsonSchema,Da as JsonPointer,Ea as JsonPatch,x as Iterable,n as Inspectable,za as HashSet,Ua as HashRing,ya as HashMap,j as Hash,Va as HKT,Sa as Graph,h as Function,m as Formatter,B as Filter,ta as FileSystem,Ra as FiberSet,Qa as FiberMap,Pa as FiberHandle,fa as Fiber,F as Exit,K as ExecutionPlan,Oa as ErrorReporter,r as Equivalence,k as Equal,X as Encoding,U as Effect,A as Duration,Na as Differ,G as Deferred,W as DateTime,L as Data,P as Cron,u as Context,Ma as Console,Ja as ConfigProvider,La as Config,p as Combiner,M as Clock,ea as Chunk,Ia as ChannelSchema,na as Channel,E as Cause,xa as Cache,ca as Brand,wa as Boolean,va as BigInt,$ as BigDecimal,z as Array};
2
+ import{$y as fb,Az as Eb,By as va,Bz as Fb,Cy as xa,Dy as Ia,Ey as Ma,Fy as Na,Hy as Oa,Iy as Pa,Jy as Qa,Ky as Ra,Ly as Sa,My as Ta,Ny as Ua,Oy as Va,Py as Wa,Qy as Ya,Ry as Za,Sy as _a,Ty as $a,Uy as ab,Vy as bb,Wy as cb,Xy as db,Yy as eb,az as gb,bz as hb,cz as ib,dz as jb,ez as kb,hz as lb,iz as mb,jz as nb,kz as ob,lz as pb,mz as qb,nz as rb,oz as sb,pz as tb,qz as ub,rz as vb,sz as wb,tz as xb,uz as yb,vz as zb,wz as Ab,xz as Bb,yz as Cb,zz as Db}from"./chunk-w7a33cwa.js";import{$A as s,$B as y,AA as n,AB as u,BA as o,BC as A,Dz as a,EE as J,FC as B,FE as K,Fz as b,GC as C,Gz as c,HI as ka,JE as L,JI as la,KB as v,KI as ma,KK as ya,LA as p,LE as M,LH as ba,MB as w,MC as D,MD as E,NA as q,NE as N,NH as ca,Nz as d,OE as O,Oz as e,PE as P,Pz as f,Qz as g,RA as r,RH as da,RI as na,Rz as h,TB as x,TD as F,UE as Q,UN as Ha,VI as oa,VN as Ja,YJ as sa,YN as Ka,ZE as R,_D as G,_E as S,aL as za,bF as T,bL as Aa,dA as i,dE as H,dO as La,eK as ta,eL as Ba,fH as U,fI as ea,fJ as pa,gL as Ca,gO as Xa,hH as V,iH as W,iK as ua,jJ as qa,jK as wa,jL as Da,kH as X,kJ as ra,lA as j,mB as t,nH as Y,nI as fa,oA as k,oE as I,pC as z,pI as ga,qI as ha,qL as Ea,rA as l,sH as Z,tI as ia,tL as Fa,uA as m,vH as _,vL as Ga,wH as $,wI as ja,zH as aa}from"./chunk-g7v6sp3c.js";import"./chunk-e0vrxetq.js";export{e as pipe,b as identity,g as hole,f as flow,c as cast,d as absurd,o as Utils,Fb as Unify,Ba as UndefinedOr,Eb as Types,Db as TxSubscriptionRef,Cb as TxSemaphore,tb as TxRef,Bb as TxReentrantLock,zb as TxQueue,Ab as TxPubSub,yb as TxPriorityQueue,xb as TxHashSet,wb as TxHashMap,vb as TxDeferred,ub as TxChunk,w as Tuple,sb as Trie,D as Tracer,rb as Terminal,ma as Take,hb as SynchronizedRef,qb as Symbol,pb as SubscriptionRef,Aa as Struct,O as String,sa as Stream,ob as Stdio,oa as Sink,la as Semaphore,ib as ScopedRef,nb as ScopedCache,I as Scope,mb as SchemaUtils,aa as SchemaTransformation,lb as SchemaRepresentation,Ca as SchemaParser,Z as SchemaIssue,_ as SchemaGetter,ba as SchemaAST,Ha as Schema,C as Scheduler,R as Schedule,kb as Runtime,v as Result,jb as Resource,gb as RequestResolver,S as Request,V as RegExp,H as References,fb as Ref,q as Reducer,Y as Redacted,l as Redactable,y as Record,ra as RcRef,qa as RcMap,eb as Random,ka as Queue,Q as Pull,ja as PubSub,Ta as PrimaryKey,i as Predicate,db as Pool,da as PlatformError,a as Pipeable,ua as Path,cb as PartitionedSemaphore,bb as Ordering,s as Order,t as Option,Ga as Optic,N as Number,ab as NonEmptyIterable,$a as Newtype,ia as MutableRef,ha as MutableList,_a as MutableHashSet,pa as MutableHashMap,T as Metric,Za as Match,Ya as ManagedRuntime,Xa as Logger,Ka as LogLevel,Wa as LayerMap,J as Layer,ga as Latch,Fa as JsonSchema,Da as JsonPointer,Ea as JsonPatch,x as Iterable,n as Inspectable,za as HashSet,Ua as HashRing,ya as HashMap,j as Hash,Va as HKT,Sa as Graph,h as Function,m as Formatter,B as Filter,ta as FileSystem,Ra as FiberSet,Qa as FiberMap,Pa as FiberHandle,fa as Fiber,F as Exit,K as ExecutionPlan,Oa as ErrorReporter,r as Equivalence,k as Equal,X as Encoding,U as Effect,A as Duration,Na as Differ,G as Deferred,W as DateTime,L as Data,P as Cron,u as Context,Ma as Console,Ja as ConfigProvider,La as Config,p as Combiner,M as Clock,ea as Chunk,Ia as ChannelSchema,na as Channel,E as Cause,xa as Cache,ca as Brand,wa as Boolean,va as BigInt,$ as BigDecimal,z as Array};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{lg as E}from"./chunk-7r92d7v9.js";import"./chunk-0s4cp6q2.js";import"./chunk-mrq35ftw.js";import"./chunk-nsp1za8t.js";import"./chunk-brk6bge4.js";import"./chunk-nfg7nt13.js";import"./chunk-qgkb6n8k.js";import"./chunk-dcv6wj9x.js";import"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{xO as z}from"./chunk-e0vrxetq.js";var J={command:"generate",handler:async()=>{let A=await E.openapi();for(let q of Object.values(A.paths))for(let y of["get","post","put","delete","patch"]){let k=q[y];if(!k?.operationId)continue;k["x-codeSamples"]=[{lang:"js",source:['import { createQitQodeClient } from "@qitqode/sdk"',"","const client = createQitQodeClient()",`await client.${k.operationId}({`," ...","})"].join(`
3
+ `)}]}let F=JSON.stringify(A,null,2),B=await import("./chunk-cfwz1hgr.js"),C=await import("./chunk-5wx962mw.js"),D=await import("./chunk-2vaphpz0.js"),G=await(B.format??B.default?.format)(F,{parser:"json",plugins:[C.default??C,D.default??D],printWidth:120});await new Promise((q,y)=>{process.stdout.write(G,(k)=>{if(k)y(k);else q()})})}};export{J as GenerateCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-e0vrxetq.js";var e="./libopentui-xtk56e94.so";export{e as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{TP as $}from"./chunk-f2pv705d.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
- export{L1 as RP};
2
+ import{uO as $}from"./chunk-e0vrxetq.js";var Aq=$((Eq)=>{Object.defineProperty(Eq,"__esModule",{value:!0});Eq._globalThis=void 0;Eq._globalThis=typeof globalThis==="object"?globalThis:global});var yq=$((O)=>{var VZ=O&&O.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),NZ=O&&O.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))VZ(z,q,J)};Object.defineProperty(O,"__esModule",{value:!0});NZ(Aq(),O)});var Pq=$((K)=>{var kZ=K&&K.__createBinding||(Object.create?function(q,z,J,Z){if(Z===void 0)Z=J;Object.defineProperty(q,Z,{enumerable:!0,get:function(){return z[J]}})}:function(q,z,J,Z){if(Z===void 0)Z=J;q[Z]=z[J]}),bZ=K&&K.__exportStar||function(q,z){for(var J in q)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(z,J))kZ(z,q,J)};Object.defineProperty(K,"__esModule",{value:!0});bZ(yq(),K)});var v=$((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.VERSION=void 0;Mq.VERSION="1.9.0"});var Lq=$((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isCompatible=mq._makeCompatibilityCheck=void 0;var RZ=v(),vq=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function uq(q){let z=new Set([q]),J=new Set,Z=q.match(vq);if(!Z)return()=>!1;let Q={major:+Z[1],minor:+Z[2],patch:+Z[3],prerelease:Z[4]};if(Q.prerelease!=null)return function(Y){return Y===q};function H(F){return J.add(F),!1}function X(F){return z.add(F),!0}return function(Y){if(z.has(Y))return!0;if(J.has(Y))return!1;let h=Y.match(vq);if(!h)return H(Y);let G={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};if(G.prerelease!=null)return H(Y);if(Q.major!==G.major)return H(Y);if(Q.major===0){if(Q.minor===G.minor&&Q.patch<=G.patch)return X(Y);return H(Y)}if(Q.minor<=G.minor)return X(Y);return H(Y)}}mq._makeCompatibilityCheck=uq;mq.isCompatible=uq(RZ.VERSION)});var B=$((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.unregisterGlobal=xq.getGlobal=xq.registerGlobal=void 0;var TZ=Pq(),U=v(),AZ=Lq(),yZ=U.VERSION.split(".")[0],I=Symbol.for(`opentelemetry.js.api.${yZ}`),V=TZ._globalThis;function PZ(q,z,J,Z=!1){var Q;let H=V[I]=(Q=V[I])!==null&&Q!==void 0?Q:{version:U.VERSION};if(!Z&&H[q]){let X=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${q}`);return J.error(X.stack||X.message),!1}if(H.version!==U.VERSION){let X=Error(`@opentelemetry/api: Registration of version v${H.version} for ${q} does not match previously registered API v${U.VERSION}`);return J.error(X.stack||X.message),!1}return H[q]=z,J.debug(`@opentelemetry/api: Registered a global for ${q} v${U.VERSION}.`),!0}xq.registerGlobal=PZ;function MZ(q){var z,J;let Z=(z=V[I])===null||z===void 0?void 0:z.version;if(!Z||!(0,AZ.isCompatible)(Z))return;return(J=V[I])===null||J===void 0?void 0:J[q]}xq.getGlobal=MZ;function SZ(q,z){z.debug(`@opentelemetry/api: Unregistering a global for ${q} v${U.VERSION}.`);let J=V[I];if(J)delete J[q]}xq.unregisterGlobal=SZ});var iq=$((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.DiagComponentLogger=void 0;var mZ=B();class cq{constructor(q){this._namespace=q.namespace||"DiagComponentLogger"}debug(...q){return N("debug",this._namespace,q)}error(...q){return N("error",this._namespace,q)}info(...q){return N("info",this._namespace,q)}warn(...q){return N("warn",this._namespace,q)}verbose(...q){return N("verbose",this._namespace,q)}}lq.DiagComponentLogger=cq;function N(q,z,J){let Z=(0,mZ.getGlobal)("diag");if(!Z)return;return J.unshift(z),Z[q](...J)}});var E=$((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.DiagLogLevel=void 0;var dZ;(function(q){q[q.NONE=0]="NONE",q[q.ERROR=30]="ERROR",q[q.WARN=50]="WARN",q[q.INFO=60]="INFO",q[q.DEBUG=70]="DEBUG",q[q.VERBOSE=80]="VERBOSE",q[q.ALL=9999]="ALL"})(dZ=nq.DiagLogLevel||(nq.DiagLogLevel={}))});var rq=$((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.createLogLevelDiagLogger=void 0;var w=E();function LZ(q,z){if(q<w.DiagLogLevel.NONE)q=w.DiagLogLevel.NONE;else if(q>w.DiagLogLevel.ALL)q=w.DiagLogLevel.ALL;z=z||{};function J(Z,Q){let H=z[Z];if(typeof H==="function"&&q>=Q)return H.bind(z);return function(){}}return{error:J("error",w.DiagLogLevel.ERROR),warn:J("warn",w.DiagLogLevel.WARN),info:J("info",w.DiagLogLevel.INFO),debug:J("debug",w.DiagLogLevel.DEBUG),verbose:J("verbose",w.DiagLogLevel.VERBOSE)}}pq.createLogLevelDiagLogger=LZ});var f=$((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.DiagAPI=void 0;var xZ=iq(),_Z=rq(),oq=E(),T=B(),cZ="diag";class m{constructor(){function q(Z){return function(...Q){let H=(0,T.getGlobal)("diag");if(!H)return;return H[Z](...Q)}}let z=this,J=(Z,Q={logLevel:oq.DiagLogLevel.INFO})=>{var H,X,F;if(Z===z){let G=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return z.error((H=G.stack)!==null&&H!==void 0?H:G.message),!1}if(typeof Q==="number")Q={logLevel:Q};let Y=(0,T.getGlobal)("diag"),h=(0,_Z.createLogLevelDiagLogger)((X=Q.logLevel)!==null&&X!==void 0?X:oq.DiagLogLevel.INFO,Z);if(Y&&!Q.suppressOverrideMessage){let G=(F=Error().stack)!==null&&F!==void 0?F:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${G}`),h.warn(`Current logger will overwrite one already registered from ${G}`)}return(0,T.registerGlobal)("diag",h,z,!0)};z.setLogger=J,z.disable=()=>{(0,T.unregisterGlobal)(cZ,z)},z.createComponentLogger=(Z)=>{return new xZ.DiagComponentLogger(Z)},z.verbose=q("verbose"),z.debug=q("debug"),z.info=q("info"),z.warn=q("warn"),z.error=q("error")}static instance(){if(!this._instance)this._instance=new m;return this._instance}}tq.DiagAPI=m});var zz=$((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.BaggageImpl=void 0;class j{constructor(q){this._entries=q?new Map(q):new Map}getEntry(q){let z=this._entries.get(q);if(!z)return;return Object.assign({},z)}getAllEntries(){return Array.from(this._entries.entries()).map(([q,z])=>[q,z])}setEntry(q,z){let J=new j(this._entries);return J._entries.set(q,z),J}removeEntry(q){let z=new j(this._entries);return z._entries.delete(q),z}removeEntries(...q){let z=new j(this._entries);for(let J of q)z._entries.delete(J);return z}clear(){return new j}}eq.BaggageImpl=j});var $z=$((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.baggageEntryMetadataSymbol=void 0;Jz.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var d=$((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.baggageEntryMetadataFromString=Qz.createBaggage=void 0;var lZ=f(),gZ=zz(),iZ=$z(),nZ=lZ.DiagAPI.instance();function pZ(q={}){return new gZ.BaggageImpl(new Map(Object.entries(q)))}Qz.createBaggage=pZ;function sZ(q){if(typeof q!=="string")nZ.error(`Cannot create baggage metadata from unknown type: ${typeof q}`),q="";return{__TYPE__:iZ.baggageEntryMetadataSymbol,toString(){return q}}}Qz.baggageEntryMetadataFromString=sZ});var k=$((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.ROOT_CONTEXT=Hz.createContextKey=void 0;function oZ(q){return Symbol.for(q)}Hz.createContextKey=oZ;class A{constructor(q){let z=this;z._currentContext=q?new Map(q):new Map,z.getValue=(J)=>z._currentContext.get(J),z.setValue=(J,Z)=>{let Q=new A(z._currentContext);return Q._currentContext.set(J,Z),Q},z.deleteValue=(J)=>{let Z=new A(z._currentContext);return Z._currentContext.delete(J),Z}}}Hz.ROOT_CONTEXT=new A});var hz=$((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DiagConsoleLogger=void 0;var L=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Yz{constructor(){function q(z){return function(...J){if(console){let Z=console[z];if(typeof Z!=="function")Z=console.log;if(typeof Z==="function")return Z.apply(console,J)}}}for(let z=0;z<L.length;z++)this[L[z].n]=q(L[z].c)}}Fz.DiagConsoleLogger=Yz});var s=$((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.createNoopMeter=wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=wz.NOOP_OBSERVABLE_GAUGE_METRIC=wz.NOOP_OBSERVABLE_COUNTER_METRIC=wz.NOOP_UP_DOWN_COUNTER_METRIC=wz.NOOP_HISTOGRAM_METRIC=wz.NOOP_GAUGE_METRIC=wz.NOOP_COUNTER_METRIC=wz.NOOP_METER=wz.NoopObservableUpDownCounterMetric=wz.NoopObservableGaugeMetric=wz.NoopObservableCounterMetric=wz.NoopObservableMetric=wz.NoopHistogramMetric=wz.NoopGaugeMetric=wz.NoopUpDownCounterMetric=wz.NoopCounterMetric=wz.NoopMetric=wz.NoopMeter=void 0;class x{constructor(){}createGauge(q,z){return wz.NOOP_GAUGE_METRIC}createHistogram(q,z){return wz.NOOP_HISTOGRAM_METRIC}createCounter(q,z){return wz.NOOP_COUNTER_METRIC}createUpDownCounter(q,z){return wz.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(q,z){return wz.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(q,z){return wz.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(q,z){return wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(q,z){}removeBatchObservableCallback(q){}}wz.NoopMeter=x;class D{}wz.NoopMetric=D;class _ extends D{add(q,z){}}wz.NoopCounterMetric=_;class c extends D{add(q,z){}}wz.NoopUpDownCounterMetric=c;class l extends D{record(q,z){}}wz.NoopGaugeMetric=l;class g extends D{record(q,z){}}wz.NoopHistogramMetric=g;class b{addCallback(q){}removeCallback(q){}}wz.NoopObservableMetric=b;class i extends b{}wz.NoopObservableCounterMetric=i;class n extends b{}wz.NoopObservableGaugeMetric=n;class p extends b{}wz.NoopObservableUpDownCounterMetric=p;wz.NOOP_METER=new x;wz.NOOP_COUNTER_METRIC=new _;wz.NOOP_GAUGE_METRIC=new l;wz.NOOP_HISTOGRAM_METRIC=new g;wz.NOOP_UP_DOWN_COUNTER_METRIC=new c;wz.NOOP_OBSERVABLE_COUNTER_METRIC=new i;wz.NOOP_OBSERVABLE_GAUGE_METRIC=new n;wz.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new p;function aZ(){return wz.NOOP_METER}wz.createNoopMeter=aZ});var Nz=$((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.ValueType=void 0;var Y0;(function(q){q[q.INT=0]="INT",q[q.DOUBLE=1]="DOUBLE"})(Y0=Vz.ValueType||(Vz.ValueType={}))});var o=$((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.defaultTextMapSetter=kz.defaultTextMapGetter=void 0;kz.defaultTextMapGetter={get(q,z){if(q==null)return;return q[z]},keys(q){if(q==null)return[];return Object.keys(q)}};kz.defaultTextMapSetter={set(q,z,J){if(q==null)return;q[z]=J}}});var Az=$((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.NoopContextManager=void 0;var G0=k();class Rz{active(){return G0.ROOT_CONTEXT}with(q,z,J,...Z){return z.call(J,...Z)}bind(q,z){return z}enable(){return this}disable(){return this}}Ez.NoopContextManager=Rz});var R=$((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.ContextAPI=void 0;var h0=Az(),t=B(),yz=f(),a="context",w0=new h0.NoopContextManager;class e{constructor(){}static getInstance(){if(!this._instance)this._instance=new e;return this._instance}setGlobalContextManager(q){return(0,t.registerGlobal)(a,q,yz.DiagAPI.instance())}active(){return this._getContextManager().active()}with(q,z,J,...Z){return this._getContextManager().with(q,z,J,...Z)}bind(q,z){return this._getContextManager().bind(q,z)}_getContextManager(){return(0,t.getGlobal)(a)||w0}disable(){this._getContextManager().disable(),(0,t.unregisterGlobal)(a,yz.DiagAPI.instance())}}Pz.ContextAPI=e});var zq=$((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.TraceFlags=void 0;var O0;(function(q){q[q.NONE=0]="NONE",q[q.SAMPLED=1]="SAMPLED"})(O0=Sz.TraceFlags||(Sz.TraceFlags={}))});var y=$((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.INVALID_SPAN_CONTEXT=vz.INVALID_TRACEID=vz.INVALID_SPANID=void 0;var K0=zq();vz.INVALID_SPANID="0000000000000000";vz.INVALID_TRACEID="00000000000000000000000000000000";vz.INVALID_SPAN_CONTEXT={traceId:vz.INVALID_TRACEID,spanId:vz.INVALID_SPANID,traceFlags:K0.TraceFlags.NONE}});var P=$((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.NonRecordingSpan=void 0;var B0=y();class Lz{constructor(q=B0.INVALID_SPAN_CONTEXT){this._spanContext=q}spanContext(){return this._spanContext}setAttribute(q,z){return this}setAttributes(q){return this}addEvent(q,z){return this}addLink(q){return this}addLinks(q){return this}setStatus(q){return this}updateName(q){return this}end(q){}isRecording(){return!1}recordException(q,z){}}xz.NonRecordingSpan=Lz});var $q=$((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.getSpanContext=lz.setSpanContext=lz.deleteSpan=lz.setSpan=lz.getActiveSpan=lz.getSpan=void 0;var f0=k(),U0=P(),j0=R(),Jq=(0,f0.createContextKey)("OpenTelemetry Context Key SPAN");function Zq(q){return q.getValue(Jq)||void 0}lz.getSpan=Zq;function D0(){return Zq(j0.ContextAPI.getInstance().active())}lz.getActiveSpan=D0;function cz(q,z){return q.setValue(Jq,z)}lz.setSpan=cz;function C0(q){return q.deleteValue(Jq)}lz.deleteSpan=C0;function I0(q,z){return cz(q,new U0.NonRecordingSpan(z))}lz.setSpanContext=I0;function V0(q){var z;return(z=Zq(q))===null||z===void 0?void 0:z.spanContext()}lz.getSpanContext=V0});var M=$((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.wrapSpanContext=sz.isSpanContextValid=sz.isValidSpanId=sz.isValidTraceId=void 0;var iz=y(),T0=P(),A0=/^([0-9a-f]{32})$/i,y0=/^[0-9a-f]{16}$/i;function nz(q){return A0.test(q)&&q!==iz.INVALID_TRACEID}sz.isValidTraceId=nz;function pz(q){return y0.test(q)&&q!==iz.INVALID_SPANID}sz.isValidSpanId=pz;function P0(q){return nz(q.traceId)&&pz(q.spanId)}sz.isSpanContextValid=P0;function M0(q){return new T0.NonRecordingSpan(q)}sz.wrapSpanContext=M0});var Hq=$((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.NoopTracer=void 0;var m0=R(),oz=$q(),Qq=P(),d0=M(),Wq=m0.ContextAPI.getInstance();class tz{startSpan(q,z,J=Wq.active()){if(Boolean(z===null||z===void 0?void 0:z.root))return new Qq.NonRecordingSpan;let Q=J&&(0,oz.getSpanContext)(J);if(L0(Q)&&(0,d0.isSpanContextValid)(Q))return new Qq.NonRecordingSpan(Q);else return new Qq.NonRecordingSpan}startActiveSpan(q,z,J,Z){let Q,H,X;if(arguments.length<2)return;else if(arguments.length===2)X=z;else if(arguments.length===3)Q=z,X=J;else Q=z,H=J,X=Z;let F=H!==null&&H!==void 0?H:Wq.active(),Y=this.startSpan(q,Q,F),h=(0,oz.setSpan)(F,Y);return Wq.with(h,X,void 0,Y)}}az.NoopTracer=tz;function L0(q){return typeof q==="object"&&typeof q.spanId==="string"&&typeof q.traceId==="string"&&typeof q.traceFlags==="number"}});var Xq=$((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.ProxyTracer=void 0;var x0=Hq(),_0=new x0.NoopTracer;class qJ{constructor(q,z,J,Z){this._provider=q,this.name=z,this.version=J,this.options=Z}startSpan(q,z,J){return this._getTracer().startSpan(q,z,J)}startActiveSpan(q,z,J,Z){let Q=this._getTracer();return Reflect.apply(Q.startActiveSpan,Q,arguments)}_getTracer(){if(this._delegate)return this._delegate;let q=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!q)return _0;return this._delegate=q,this._delegate}}zJ.ProxyTracer=qJ});var WJ=$(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.NoopTracerProvider=void 0;var c0=Hq();class ZJ{getTracer(q,z,J){return new c0.NoopTracer}}$J.NoopTracerProvider=ZJ});var Yq=$((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.ProxyTracerProvider=void 0;var l0=Xq(),g0=WJ(),i0=new g0.NoopTracerProvider;class HJ{getTracer(q,z,J){var Z;return(Z=this.getDelegateTracer(q,z,J))!==null&&Z!==void 0?Z:new l0.ProxyTracer(this,q,z,J)}getDelegate(){var q;return(q=this._delegate)!==null&&q!==void 0?q:i0}setDelegate(q){this._delegate=q}getDelegateTracer(q,z,J){var Z;return(Z=this._delegate)===null||Z===void 0?void 0:Z.getTracer(q,z,J)}}XJ.ProxyTracerProvider=HJ});var GJ=$((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.SamplingDecision=void 0;var n0;(function(q){q[q.NOT_RECORD=0]="NOT_RECORD",q[q.RECORD=1]="RECORD",q[q.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(n0=FJ.SamplingDecision||(FJ.SamplingDecision={}))});var wJ=$((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.SpanKind=void 0;var p0;(function(q){q[q.INTERNAL=0]="INTERNAL",q[q.SERVER=1]="SERVER",q[q.CLIENT=2]="CLIENT",q[q.PRODUCER=3]="PRODUCER",q[q.CONSUMER=4]="CONSUMER"})(p0=hJ.SpanKind||(hJ.SpanKind={}))});var KJ=$((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.SpanStatusCode=void 0;var s0;(function(q){q[q.UNSET=0]="UNSET",q[q.OK=1]="OK",q[q.ERROR=2]="ERROR"})(s0=OJ.SpanStatusCode||(OJ.SpanStatusCode={}))});var UJ=$((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0});BJ.validateValue=BJ.validateKey=void 0;var wq="[_0-9a-z-*/]",r0=`[a-z]${wq}{0,255}`,o0=`[a-z0-9]${wq}{0,240}@[a-z]${wq}{0,13}`,t0=new RegExp(`^(?:${r0}|${o0})$`),a0=/^[ -~]{0,255}[!-~]$/,e0=/,|=/;function q1(q){return t0.test(q)}BJ.validateKey=q1;function z1(q){return a0.test(q)&&!e0.test(q)}BJ.validateValue=z1});var kJ=$((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.TraceStateImpl=void 0;var jJ=UJ(),DJ=32,Z1=512,CJ=",",IJ="=";class Oq{constructor(q){if(this._internalState=new Map,q)this._parse(q)}set(q,z){let J=this._clone();if(J._internalState.has(q))J._internalState.delete(q);return J._internalState.set(q,z),J}unset(q){let z=this._clone();return z._internalState.delete(q),z}get(q){return this._internalState.get(q)}serialize(){return this._keys().reduce((q,z)=>{return q.push(z+IJ+this.get(z)),q},[]).join(CJ)}_parse(q){if(q.length>Z1)return;if(this._internalState=q.split(CJ).reverse().reduce((z,J)=>{let Z=J.trim(),Q=Z.indexOf(IJ);if(Q!==-1){let H=Z.slice(0,Q),X=Z.slice(Q+1,J.length);if((0,jJ.validateKey)(H)&&(0,jJ.validateValue)(X))z.set(H,X)}return z},new Map),this._internalState.size>DJ)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,DJ))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let q=new Oq;return q._internalState=new Map(this._internalState),q}}VJ.TraceStateImpl=Oq});var EJ=$((bJ)=>{Object.defineProperty(bJ,"__esModule",{value:!0});bJ.createTraceState=void 0;var $1=kJ();function Q1(q){return new $1.TraceStateImpl(q)}bJ.createTraceState=Q1});var yJ=$((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.context=void 0;var W1=R();TJ.context=W1.ContextAPI.getInstance()});var SJ=$((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.diag=void 0;var H1=f();PJ.diag=H1.DiagAPI.instance()});var mJ=$((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.NOOP_METER_PROVIDER=vJ.NoopMeterProvider=void 0;var X1=s();class Kq{getMeter(q,z,J){return X1.NOOP_METER}}vJ.NoopMeterProvider=Kq;vJ.NOOP_METER_PROVIDER=new Kq});var _J=$((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.MetricsAPI=void 0;var F1=mJ(),Bq=B(),dJ=f(),fq="metrics";class Uq{constructor(){}static getInstance(){if(!this._instance)this._instance=new Uq;return this._instance}setGlobalMeterProvider(q){return(0,Bq.registerGlobal)(fq,q,dJ.DiagAPI.instance())}getMeterProvider(){return(0,Bq.getGlobal)(fq)||F1.NOOP_METER_PROVIDER}getMeter(q,z,J){return this.getMeterProvider().getMeter(q,z,J)}disable(){(0,Bq.unregisterGlobal)(fq,dJ.DiagAPI.instance())}}LJ.MetricsAPI=Uq});var gJ=$((cJ)=>{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.metrics=void 0;var G1=_J();cJ.metrics=G1.MetricsAPI.getInstance()});var sJ=$((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.NoopTextMapPropagator=void 0;class iJ{inject(q,z){}extract(q,z){return q}fields(){return[]}}nJ.NoopTextMapPropagator=iJ});var aJ=$((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.deleteBaggage=oJ.setBaggage=oJ.getActiveBaggage=oJ.getBaggage=void 0;var h1=R(),w1=k(),jq=(0,w1.createContextKey)("OpenTelemetry Baggage Key");function rJ(q){return q.getValue(jq)||void 0}oJ.getBaggage=rJ;function O1(){return rJ(h1.ContextAPI.getInstance().active())}oJ.getActiveBaggage=O1;function K1(q,z){return q.setValue(jq,z)}oJ.setBaggage=K1;function B1(q){return q.deleteValue(jq)}oJ.deleteBaggage=B1});var ZZ=$((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.PropagationAPI=void 0;var Dq=B(),D1=sJ(),eJ=o(),S=aJ(),C1=d(),qZ=f(),Cq="propagation",I1=new D1.NoopTextMapPropagator;class Iq{constructor(){this.createBaggage=C1.createBaggage,this.getBaggage=S.getBaggage,this.getActiveBaggage=S.getActiveBaggage,this.setBaggage=S.setBaggage,this.deleteBaggage=S.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new Iq;return this._instance}setGlobalPropagator(q){return(0,Dq.registerGlobal)(Cq,q,qZ.DiagAPI.instance())}inject(q,z,J=eJ.defaultTextMapSetter){return this._getGlobalPropagator().inject(q,z,J)}extract(q,z,J=eJ.defaultTextMapGetter){return this._getGlobalPropagator().extract(q,z,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,Dq.unregisterGlobal)(Cq,qZ.DiagAPI.instance())}_getGlobalPropagator(){return(0,Dq.getGlobal)(Cq)||I1}}zZ.PropagationAPI=Iq});var WZ=$(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.propagation=void 0;var V1=ZZ();$Z.propagation=V1.PropagationAPI.getInstance()});var hZ=$((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.TraceAPI=void 0;var Vq=B(),HZ=Yq(),XZ=M(),C=$q(),YZ=f(),Nq="trace";class kq{constructor(){this._proxyTracerProvider=new HZ.ProxyTracerProvider,this.wrapSpanContext=XZ.wrapSpanContext,this.isSpanContextValid=XZ.isSpanContextValid,this.deleteSpan=C.deleteSpan,this.getSpan=C.getSpan,this.getActiveSpan=C.getActiveSpan,this.getSpanContext=C.getSpanContext,this.setSpan=C.setSpan,this.setSpanContext=C.setSpanContext}static getInstance(){if(!this._instance)this._instance=new kq;return this._instance}setGlobalTracerProvider(q){let z=(0,Vq.registerGlobal)(Nq,this._proxyTracerProvider,YZ.DiagAPI.instance());if(z)this._proxyTracerProvider.setDelegate(q);return z}getTracerProvider(){return(0,Vq.getGlobal)(Nq)||this._proxyTracerProvider}getTracer(q,z){return this.getTracerProvider().getTracer(q,z)}disable(){(0,Vq.unregisterGlobal)(Nq,YZ.DiagAPI.instance()),this._proxyTracerProvider=new HZ.ProxyTracerProvider}}FZ.TraceAPI=kq});var KZ=$((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.trace=void 0;var N1=hZ();wZ.trace=N1.TraceAPI.getInstance()});var L1=$((W)=>{Object.defineProperty(W,"__esModule",{value:!0});W.trace=W.propagation=W.metrics=W.diag=W.context=W.INVALID_SPAN_CONTEXT=W.INVALID_TRACEID=W.INVALID_SPANID=W.isValidSpanId=W.isValidTraceId=W.isSpanContextValid=W.createTraceState=W.TraceFlags=W.SpanStatusCode=W.SpanKind=W.SamplingDecision=W.ProxyTracerProvider=W.ProxyTracer=W.defaultTextMapSetter=W.defaultTextMapGetter=W.ValueType=W.createNoopMeter=W.DiagLogLevel=W.DiagConsoleLogger=W.ROOT_CONTEXT=W.createContextKey=W.baggageEntryMetadataFromString=void 0;var k1=d();Object.defineProperty(W,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return k1.baggageEntryMetadataFromString}});var BZ=k();Object.defineProperty(W,"createContextKey",{enumerable:!0,get:function(){return BZ.createContextKey}});Object.defineProperty(W,"ROOT_CONTEXT",{enumerable:!0,get:function(){return BZ.ROOT_CONTEXT}});var b1=hz();Object.defineProperty(W,"DiagConsoleLogger",{enumerable:!0,get:function(){return b1.DiagConsoleLogger}});var R1=E();Object.defineProperty(W,"DiagLogLevel",{enumerable:!0,get:function(){return R1.DiagLogLevel}});var E1=s();Object.defineProperty(W,"createNoopMeter",{enumerable:!0,get:function(){return E1.createNoopMeter}});var T1=Nz();Object.defineProperty(W,"ValueType",{enumerable:!0,get:function(){return T1.ValueType}});var fZ=o();Object.defineProperty(W,"defaultTextMapGetter",{enumerable:!0,get:function(){return fZ.defaultTextMapGetter}});Object.defineProperty(W,"defaultTextMapSetter",{enumerable:!0,get:function(){return fZ.defaultTextMapSetter}});var A1=Xq();Object.defineProperty(W,"ProxyTracer",{enumerable:!0,get:function(){return A1.ProxyTracer}});var y1=Yq();Object.defineProperty(W,"ProxyTracerProvider",{enumerable:!0,get:function(){return y1.ProxyTracerProvider}});var P1=GJ();Object.defineProperty(W,"SamplingDecision",{enumerable:!0,get:function(){return P1.SamplingDecision}});var M1=wJ();Object.defineProperty(W,"SpanKind",{enumerable:!0,get:function(){return M1.SpanKind}});var S1=KJ();Object.defineProperty(W,"SpanStatusCode",{enumerable:!0,get:function(){return S1.SpanStatusCode}});var v1=zq();Object.defineProperty(W,"TraceFlags",{enumerable:!0,get:function(){return v1.TraceFlags}});var u1=EJ();Object.defineProperty(W,"createTraceState",{enumerable:!0,get:function(){return u1.createTraceState}});var bq=M();Object.defineProperty(W,"isSpanContextValid",{enumerable:!0,get:function(){return bq.isSpanContextValid}});Object.defineProperty(W,"isValidTraceId",{enumerable:!0,get:function(){return bq.isValidTraceId}});Object.defineProperty(W,"isValidSpanId",{enumerable:!0,get:function(){return bq.isValidSpanId}});var Rq=y();Object.defineProperty(W,"INVALID_SPANID",{enumerable:!0,get:function(){return Rq.INVALID_SPANID}});Object.defineProperty(W,"INVALID_TRACEID",{enumerable:!0,get:function(){return Rq.INVALID_TRACEID}});Object.defineProperty(W,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return Rq.INVALID_SPAN_CONTEXT}});var UZ=yJ();Object.defineProperty(W,"context",{enumerable:!0,get:function(){return UZ.context}});var jZ=SJ();Object.defineProperty(W,"diag",{enumerable:!0,get:function(){return jZ.diag}});var DZ=gJ();Object.defineProperty(W,"metrics",{enumerable:!0,get:function(){return DZ.metrics}});var CZ=WZ();Object.defineProperty(W,"propagation",{enumerable:!0,get:function(){return CZ.propagation}});var IZ=KZ();Object.defineProperty(W,"trace",{enumerable:!0,get:function(){return IZ.trace}});W.default={context:UZ.context,diag:jZ.diag,metrics:DZ.metrics,propagation:CZ.propagation,trace:IZ.trace}});
3
+ export{L1 as sO};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$d as J,Rd as y,Td as T,Ud as t,Vd as O,Wd as l,Yd as v,Zd as Q,_d as X}from"./chunk-hhk2sp5n.js";import"./chunk-4zhrg3rv.js";import{be as w}from"./chunk-f4mnp6xd.js";import{eg as f}from"./chunk-s06t769q.js";import{Ch as q,Sg as Y,Tg as mt,Ug as pt,Vg as st,Wg as et,Xg as ft,Yg as E,kh as Mt}from"./chunk-w43kmnm9.js";import"./chunk-nrk29616.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-wd8hbven.js";import"./chunk-drnj1a14.js";import{Ej as L,el as F,xj as nt}from"./chunk-9a6p1gdn.js";import"./chunk-jxkrhrp0.js";import{Ol as $}from"./chunk-6k14c8x1.js";import"./chunk-5r05d901.js";import"./chunk-3rgct4bd.js";import"./chunk-5b3v1x2c.js";import{Lo as P,Mo as h}from"./chunk-gbxf6e5d.js";import"./chunk-msh249db.js";import"./chunk-95am490c.js";import"./chunk-kmzpeq8k.js";import"./chunk-0gsw04hw.js";import"./chunk-hqjc4wgg.js";import"./chunk-makecdh6.js";import"./chunk-dy2k5rdx.js";import"./chunk-n5p7cn4w.js";import"./chunk-cqtkxwd8.js";import"./chunk-mhxyv9c8.js";import"./chunk-0crgymtr.js";import"./chunk-cth373se.js";import"./chunk-xcxqt8ag.js";import"./chunk-va2qfh0x.js";import"./chunk-ae7b11np.js";import"./chunk-eeq0krp7.js";import"./chunk-73xryfgn.js";import"./chunk-yjqww6ag.js";import"./chunk-z6kcnpsj.js";import"./chunk-ts2k13g0.js";import"./chunk-01e3v1xz.js";import"./chunk-dbpkq7ba.js";import"./chunk-z744mz4w.js";import"./chunk-vjn54xj5.js";import"./chunk-0qpqd7nz.js";import"./chunk-gdew7bwm.js";import{Dt as g}from"./chunk-v3nmnm57.js";import"./chunk-hwsqqkrv.js";import"./chunk-mbbxedsq.js";import{Fu as D,Ku as A}from"./chunk-aa2n02qk.js";import"./chunk-k1x8469r.js";import"./chunk-c3szabpf.js";import"./chunk-c8prg3jx.js";import"./chunk-t8sy5sgx.js";import{EI as a}from"./chunk-tezrgfc6.js";import"./chunk-wjz42325.js";import"./chunk-kry4vcrf.js";import{SP as ut}from"./chunk-f2pv705d.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qitqode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qitqode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
2
+ import{$d as J,Rd as y,Td as T,Ud as t,Vd as O,Wd as l,Yd as v,Zd as Q,_d as X}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{be as w}from"./chunk-f4mnp6xd.js";import{eg as f}from"./chunk-bwadggys.js";import{Ch as q,Sg as Y,Tg as mt,Ug as pt,Vg as st,Wg as et,Xg as ft,Yg as E,kh as Mt}from"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import{Ej as L,el as F,xj as nt}from"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import{Ol as $}from"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import{mn as P,nn as h}from"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import{es as g}from"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import{gt as D,lt as A}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import{fH as a}from"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{tO as ut}from"./chunk-e0vrxetq.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qitqode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qitqode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
3
3
  `+c.error;else s="\u2717",d="failed",M=`
4
4
  `+c.error;let _=p.type==="remote"?L.redactString(p.url):L.redactCommand(p.command).join(" ");t.info(`${s} ${m} ${f.Style.TEXT_DIM}${d} ${U(o,m)}${M}
5
5
  ${f.Style.TEXT_DIM}${_}`)}l(`${i.length} server(s)`)}})}});var dt=w({command:"auth [name]",describe:"authenticate with an OAuth-enabled MCP server",builder:(o)=>o.positional("name",{describe:"name of the MCP server",type:"string"}).command(ct),async handler(o){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP OAuth Authentication");let{config:e,auth:r}=await S(),i=e.mcp??{},m=C(e);if(m.length===0){t.warn("No OAuth-capable MCP servers configured"),t.info("Remote MCP servers support OAuth by default. Add a remote server in qitqode.json:"),t.info(`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-e0vrxetq.js";var A="./tree-sitter-zig-e78zbjpm.wasm";export{A as default};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Dh as H}from"./chunk-nrk29616.js";import{Kp as k,Lp as X,Op as O,Pp as b,Qp as F,Tp as h,Up as C,dq as T}from"./chunk-makecdh6.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{Dh as H}from"./chunk-vs3s49jw.js";import{Go as T,lo as k,mo as X,po as O,qo as b,ro as F,uo as h,vo as C}from"./chunk-4y9wbfd2.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(`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ar as g,Cr as h,Dr as i,Er as j,Fr as k,Gr as l,Ir as m,Jr as n,yr as e,zr as f}from"./chunk-rwwvy89t.js";import{Or as d}from"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import{zs as c}from"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import{Xs as b}from"./chunk-59csnjc3.js";import{gt as a}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-e0vrxetq.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};