@qitqode/qitqode-android-arm64 0.2.2 → 0.2.3

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 (427) hide show
  1. package/bun +0 -0
  2. package/bundle/{chunk-2hv2c8d5.js → chunk-0428v6mw.js} +1 -1
  3. package/bundle/{chunk-0f3ft9dh.js → chunk-05ck7acg.js} +1 -1
  4. package/bundle/{chunk-3888asr7.js → chunk-083wpv6r.js} +1 -1
  5. package/bundle/{chunk-j5ymkhry.js → chunk-0cnwsf8p.js} +1 -1
  6. package/bundle/{chunk-7z884mz2.js → chunk-0nbteyb0.js} +2 -2
  7. package/bundle/chunk-0nqf1k20.js +2 -0
  8. package/bundle/chunk-0ppnq3a4.js +2 -0
  9. package/bundle/{chunk-6kf4vw2g.js → chunk-0qd3567w.js} +1 -1
  10. package/bundle/{chunk-jw114bbt.js → chunk-0smnwqk6.js} +2 -2
  11. package/bundle/chunk-0te0vcdn.js +2 -0
  12. package/bundle/{chunk-xmjntwjc.js → chunk-0vakk88p.js} +2 -2
  13. package/bundle/{chunk-45fyv9f1.js → chunk-0vxnkstz.js} +2 -2
  14. package/bundle/{chunk-q4fn41ex.js → chunk-0xrb12s8.js} +2 -2
  15. package/bundle/chunk-11h06z17.js +2 -0
  16. package/bundle/chunk-16w710kf.js +3 -0
  17. package/bundle/{chunk-6dfjtzqb.js → chunk-21rq4592.js} +2 -2
  18. package/bundle/{chunk-y3dfk6n5.js → chunk-24rkf2gk.js} +1 -1
  19. package/bundle/{chunk-rdwma0de.js → chunk-24ygjbpf.js} +2 -2
  20. package/bundle/chunk-262s2yz2.js +2 -0
  21. package/bundle/chunk-28yv4fqe.js +2 -0
  22. package/bundle/{chunk-3tmq81kq.js → chunk-2drzgtv3.js} +2 -2
  23. package/bundle/{chunk-xd3xc1vv.js → chunk-2md6sx8d.js} +1 -1
  24. package/bundle/{chunk-v9rg0a8g.js → chunk-313zqzc1.js} +1 -1
  25. package/bundle/{chunk-zfd70p01.js → chunk-32j0q58h.js} +1 -1
  26. package/bundle/chunk-34a52hyr.js +2 -0
  27. package/bundle/{chunk-86jsqc7d.js → chunk-39z96pc6.js} +3 -3
  28. package/bundle/{chunk-t1475j9f.js → chunk-3atcc483.js} +1 -1
  29. package/bundle/{chunk-e6wp96vm.js → chunk-3jf3jhrs.js} +1 -1
  30. package/bundle/{chunk-4sxg9cgr.js → chunk-3kpse7zy.js} +1 -1
  31. package/bundle/chunk-3n3gb3vd.js +2 -0
  32. package/bundle/chunk-3sq60y9f.js +2 -0
  33. package/bundle/{chunk-2qwmrp16.js → chunk-3vvd7j14.js} +1 -1
  34. package/bundle/chunk-4086z5ys.js +2 -0
  35. package/bundle/{chunk-rcyzqa3g.js → chunk-450fef7h.js} +2 -2
  36. package/bundle/{chunk-kxjrrdj0.js → chunk-45a4n21f.js} +1 -1
  37. package/bundle/{chunk-xny5ecn0.js → chunk-47k5jy1p.js} +2 -2
  38. package/bundle/{chunk-6f8qqbac.js → chunk-47z3x3dp.js} +166 -205
  39. package/bundle/{chunk-0gab4v98.js → chunk-48r70n4s.js} +1 -1
  40. package/bundle/chunk-49mbnqvc.js +2 -0
  41. package/bundle/{chunk-ssdw9zre.js → chunk-49xhybc2.js} +1 -1
  42. package/bundle/{chunk-t9zbp2qw.js → chunk-4agaj51z.js} +1 -1
  43. package/bundle/{chunk-mrn44msr.js → chunk-4dnntf9k.js} +2 -2
  44. package/bundle/chunk-4fr6kae9.js +2 -0
  45. package/bundle/chunk-4websxrs.js +2 -0
  46. package/bundle/chunk-516w1nc4.js +2 -0
  47. package/bundle/chunk-52w60e1f.js +2 -0
  48. package/bundle/chunk-535nm66j.js +2 -0
  49. package/bundle/{chunk-1p6jjrea.js → chunk-55fcmswd.js} +2 -2
  50. package/bundle/{chunk-n7kqdqkh.js → chunk-55ykn8nz.js} +4 -4
  51. package/bundle/chunk-565855py.js +2 -0
  52. package/bundle/chunk-56v352f8.js +2 -0
  53. package/bundle/chunk-5bjtq8t2.js +2 -0
  54. package/bundle/{chunk-as845ya4.js → chunk-5c2438af.js} +1 -1
  55. package/bundle/chunk-5kpxpm8e.js +2 -0
  56. package/bundle/chunk-5nm5s0h2.js +2 -0
  57. package/bundle/{chunk-07s30fpb.js → chunk-5nrc5rhh.js} +1 -1
  58. package/bundle/{chunk-jwph7tpc.js → chunk-5pwv2p3s.js} +1 -1
  59. package/bundle/{chunk-q5abwn50.js → chunk-5pzs51sp.js} +1 -1
  60. package/bundle/{chunk-r0s28gnb.js → chunk-5tky3csh.js} +1 -1
  61. package/bundle/{chunk-yajd975f.js → chunk-5w76kdjr.js} +1 -1
  62. package/bundle/{chunk-wcqfr8vr.js → chunk-5ysbwr4x.js} +1 -1
  63. package/bundle/{chunk-85xh72hk.js → chunk-5zkj5xv9.js} +2 -2
  64. package/bundle/{chunk-fgn83bs7.js → chunk-65bmsp2t.js} +1 -1
  65. package/bundle/chunk-65t9b9eq.js +3 -0
  66. package/bundle/{chunk-9jrxrjzt.js → chunk-68v3b6ns.js} +2 -2
  67. package/bundle/{chunk-7ntw4rrn.js → chunk-6ar91jvd.js} +1 -1
  68. package/bundle/{chunk-bbbh69ys.js → chunk-6evh2ke8.js} +1 -1
  69. package/bundle/chunk-6gpf2bjs.js +2 -0
  70. package/bundle/{chunk-a2dz9nqh.js → chunk-6m9jb0s9.js} +2 -2
  71. package/bundle/{chunk-yvjke593.js → chunk-6scf311w.js} +1 -1
  72. package/bundle/{chunk-e374shb8.js → chunk-6tstcwxp.js} +2 -2
  73. package/bundle/{chunk-5wwd40t3.js → chunk-70q8qcb2.js} +1 -1
  74. package/bundle/{chunk-pfkm3j8g.js → chunk-73r8bjjz.js} +2 -2
  75. package/bundle/{chunk-9bm9z52r.js → chunk-78pt314g.js} +1 -1
  76. package/bundle/{chunk-hs3vfhar.js → chunk-7bcm7gg1.js} +1 -1
  77. package/bundle/chunk-7bgzcpdw.js +2 -0
  78. package/bundle/{chunk-ezfzb8qc.js → chunk-7g66qc1v.js} +2 -2
  79. package/bundle/{chunk-fd7fmvyw.js → chunk-7hvf9dgx.js} +1 -1
  80. package/bundle/chunk-7kjvcbwa.js +2 -0
  81. package/bundle/chunk-7knnz5f1.js +2 -0
  82. package/bundle/{chunk-6j339s7a.js → chunk-7mppvhv9.js} +2 -2
  83. package/bundle/{chunk-kmwy6c9g.js → chunk-7vmx8bg9.js} +2 -2
  84. package/bundle/{chunk-7njz51r4.js → chunk-7x6yrtzn.js} +1 -1
  85. package/bundle/{chunk-skv9ww0s.js → chunk-804vmbcd.js} +1 -1
  86. package/bundle/{chunk-7zc04q43.js → chunk-88q0mtgp.js} +2 -2
  87. package/bundle/chunk-8jma2btf.js +2 -0
  88. package/bundle/{chunk-dbztxdea.js → chunk-8mm92zn2.js} +2 -2
  89. package/bundle/{chunk-kdcnder5.js → chunk-8wwdrwf2.js} +1 -1
  90. package/bundle/{chunk-4fk46ngj.js → chunk-920z7g7j.js} +1 -1
  91. package/bundle/chunk-93e0w75z.js +2 -0
  92. package/bundle/{chunk-pzefsndd.js → chunk-953pqp3w.js} +1 -1
  93. package/bundle/chunk-96wwns35.js +2 -0
  94. package/bundle/chunk-97gp818s.js +2 -0
  95. package/bundle/chunk-9epf2zbh.js +2 -0
  96. package/bundle/chunk-9fyz4sxa.js +2 -0
  97. package/bundle/{chunk-4hd3v58j.js → chunk-9hz56z6a.js} +1 -1
  98. package/bundle/{chunk-rk2bk4s7.js → chunk-9zm6r55d.js} +2 -2
  99. package/bundle/chunk-a7wmadf1.js +2 -0
  100. package/bundle/{chunk-w7em72p8.js → chunk-ac7482n2.js} +2 -2
  101. package/bundle/chunk-agv04nt7.js +2 -0
  102. package/bundle/{chunk-cbmwhvxw.js → chunk-at22twxx.js} +2 -2
  103. package/bundle/{chunk-frsd6e1h.js → chunk-avefgbjg.js} +2 -2
  104. package/bundle/chunk-azpnrnv9.js +8251 -0
  105. package/bundle/{chunk-z2h1gxyx.js → chunk-bbng1cea.js} +1 -1
  106. package/bundle/{chunk-5az84brc.js → chunk-bd21p9zz.js} +2 -2
  107. package/bundle/chunk-be7smmar.js +2 -0
  108. package/bundle/{chunk-y4e7e42x.js → chunk-bne5w117.js} +4 -4
  109. package/bundle/{chunk-j3jqk62r.js → chunk-bqn6bqws.js} +1 -1
  110. package/bundle/{chunk-yhsnmpzv.js → chunk-brws2aht.js} +1 -1
  111. package/bundle/chunk-bryx5cx9.js +2 -0
  112. package/bundle/{chunk-vtw0wwch.js → chunk-bvf2dcq4.js} +3 -3
  113. package/bundle/{chunk-tge53d52.js → chunk-bwbqkfv0.js} +1 -1
  114. package/bundle/chunk-c13rrw41.js +2 -0
  115. package/bundle/chunk-c2kkv619.js +2 -0
  116. package/bundle/{chunk-64c8q9zg.js → chunk-c36p881g.js} +3 -3
  117. package/bundle/chunk-c5xj1y5v.js +2 -0
  118. package/bundle/chunk-c74cxhjb.js +2 -0
  119. package/bundle/chunk-cejyed1j.js +2 -0
  120. package/bundle/chunk-ckpm4dvv.js +2 -0
  121. package/bundle/{chunk-732yr6qq.js → chunk-cmb62jkt.js} +2 -2
  122. package/bundle/chunk-ct8twng1.js +2 -0
  123. package/bundle/{chunk-1q1cddy4.js → chunk-cz5vta94.js} +1 -1
  124. package/bundle/{chunk-fpm2vgz6.js → chunk-d0x5pbkm.js} +1 -1
  125. package/bundle/chunk-d38y7bvh.js +2 -0
  126. package/bundle/chunk-d6hxsfm6.js +2 -0
  127. package/bundle/{chunk-29zm623f.js → chunk-d6jhs818.js} +2 -2
  128. package/bundle/chunk-descb9jz.js +2 -0
  129. package/bundle/{chunk-mswx4k75.js → chunk-dnnkq5y4.js} +2 -2
  130. package/bundle/{chunk-6pcmv8vs.js → chunk-dnsh1v42.js} +2 -2
  131. package/bundle/{chunk-vk88jj60.js → chunk-dqp4nmxs.js} +1 -1
  132. package/bundle/chunk-dvr2b9r1.js +2 -0
  133. package/bundle/{chunk-s0ty36qg.js → chunk-dxdggn90.js} +1 -1
  134. package/bundle/{chunk-w30b563s.js → chunk-e8p92vz4.js} +2 -2
  135. package/bundle/chunk-ea5fktnn.js +2 -0
  136. package/bundle/{chunk-t1jgx17a.js → chunk-eg3syjtv.js} +2 -2
  137. package/bundle/{chunk-2a9rzgk6.js → chunk-ehb4hd9c.js} +1 -1
  138. package/bundle/{chunk-9jsgs71h.js → chunk-ejqzcdcx.js} +1 -1
  139. package/bundle/chunk-enmsp09e.js +3 -0
  140. package/bundle/chunk-epgcsjfp.js +2 -0
  141. package/bundle/{chunk-5t0w9ecw.js → chunk-et3804wr.js} +1 -1
  142. package/bundle/{chunk-yd8bzhv6.js → chunk-ezrqhqkp.js} +1 -1
  143. package/bundle/chunk-f0t7rryn.js +3 -0
  144. package/bundle/{chunk-p635phfw.js → chunk-f31yvp20.js} +1 -1
  145. package/bundle/chunk-f4mf6tpp.js +2 -0
  146. package/bundle/chunk-f97k17t8.js +2 -0
  147. package/bundle/{chunk-yx1h0b5v.js → chunk-faee8zgc.js} +1 -1
  148. package/bundle/{chunk-p9mj4zyk.js → chunk-ff548b0j.js} +2 -2
  149. package/bundle/{chunk-bgng3rdj.js → chunk-fhqfqd5v.js} +2 -2
  150. package/bundle/{chunk-zek5c15t.js → chunk-fjbv3jht.js} +1 -1
  151. package/bundle/{chunk-epa576pa.js → chunk-fsahzvd5.js} +3 -3
  152. package/bundle/chunk-g06a4chw.js +2 -0
  153. package/bundle/{chunk-hq9bgnqb.js → chunk-g22e4gw7.js} +1 -1
  154. package/bundle/{chunk-s0ptrw0z.js → chunk-g3wvtyw3.js} +1 -1
  155. package/bundle/{chunk-x4pdpka8.js → chunk-g42krp0z.js} +1 -1
  156. package/bundle/chunk-g4ehhdzp.js +2 -0
  157. package/bundle/{chunk-a9y27zd2.js → chunk-gbkz04ke.js} +1 -1
  158. package/bundle/chunk-gd6qpdjw.js +2 -0
  159. package/bundle/chunk-gehn9fd9.js +2 -0
  160. package/bundle/{chunk-0zxwjsvz.js → chunk-ggxzf22k.js} +1 -1
  161. package/bundle/{chunk-kzvvvj79.js → chunk-gszvgz76.js} +2 -2
  162. package/bundle/{chunk-g3kd4957.js → chunk-gy21fw82.js} +2 -2
  163. package/bundle/{chunk-cbf1y12x.js → chunk-h62chdmw.js} +1 -1
  164. package/bundle/{chunk-et5dnymk.js → chunk-h823m51m.js} +2 -2
  165. package/bundle/{chunk-5js6a6gf.js → chunk-h99tj1e4.js} +1 -1
  166. package/bundle/{chunk-c1g8n10t.js → chunk-ha1w0xzh.js} +1 -1
  167. package/bundle/chunk-ha8b2n4x.js +2 -0
  168. package/bundle/{chunk-rpfhgncs.js → chunk-has2rz35.js} +1 -1
  169. package/bundle/chunk-hbyrwmne.js +2 -0
  170. package/bundle/chunk-hhax4mxw.js +2 -0
  171. package/bundle/{chunk-087tnr8a.js → chunk-hwrrrbqd.js} +1 -1
  172. package/bundle/chunk-hzrxmdqm.js +2 -0
  173. package/bundle/{chunk-yd2emszh.js → chunk-j0bwa5dk.js} +2 -2
  174. package/bundle/{chunk-9b4aqcde.js → chunk-j164q40b.js} +2 -2
  175. package/bundle/{chunk-qhnpq5gb.js → chunk-j8fcfhr2.js} +2 -2
  176. package/bundle/{chunk-9ea1n338.js → chunk-j9h1sp4g.js} +2 -2
  177. package/bundle/{chunk-yrfq22a5.js → chunk-jg1ccs3j.js} +1 -1
  178. package/bundle/{chunk-d307vb2d.js → chunk-jqk3v8d6.js} +1 -1
  179. package/bundle/chunk-jrwnz64e.js +3 -0
  180. package/bundle/chunk-jvkzdap1.js +2 -0
  181. package/bundle/chunk-jvybgsz5.js +5 -0
  182. package/bundle/{chunk-pp9neaaz.js → chunk-jww55nk9.js} +1 -1
  183. package/bundle/{chunk-fvy24yhq.js → chunk-k1nh5sd2.js} +1 -1
  184. package/bundle/{chunk-wfggztm4.js → chunk-k4gsktts.js} +1 -1
  185. package/bundle/{chunk-qaz100ht.js → chunk-k5q9px67.js} +1 -1
  186. package/bundle/chunk-kg8fcv91.js +2 -0
  187. package/bundle/chunk-kgptyf7n.js +3 -0
  188. package/bundle/{chunk-b50t4jc5.js → chunk-khzzmyk2.js} +1 -1
  189. package/bundle/chunk-kjjjrjnb.js +2 -0
  190. package/bundle/{chunk-jvjq554f.js → chunk-ksme3gj1.js} +1 -1
  191. package/bundle/chunk-m5cfmhwh.js +2 -0
  192. package/bundle/{chunk-4v61ysex.js → chunk-m5dm7a1t.js} +1 -1
  193. package/bundle/{chunk-yr35q7q1.js → chunk-m7ganre7.js} +1 -1
  194. package/bundle/chunk-m7qxxbns.js +2 -0
  195. package/bundle/{chunk-y287zwkr.js → chunk-mh19kwzw.js} +1 -1
  196. package/bundle/{chunk-7my2231h.js → chunk-mhhtf0v3.js} +1 -1
  197. package/bundle/{chunk-grw4gg9j.js → chunk-mjjaezwq.js} +2 -2
  198. package/bundle/{chunk-03mbn7nj.js → chunk-mmjgf680.js} +2 -2
  199. package/bundle/{chunk-jv4th87b.js → chunk-mn9end71.js} +1 -1
  200. package/bundle/{chunk-543pt030.js → chunk-msdypt5f.js} +2 -2
  201. package/bundle/chunk-n0b0dfqk.js +2 -0
  202. package/bundle/{chunk-3h49k2ck.js → chunk-n23d0q00.js} +1 -1
  203. package/bundle/{chunk-mpe8zxc0.js → chunk-n78f8hfk.js} +1 -1
  204. package/bundle/chunk-n8wg5h5p.js +2 -0
  205. package/bundle/{chunk-9s785py4.js → chunk-nbd13scz.js} +1 -1
  206. package/bundle/{chunk-sjreby6e.js → chunk-nftgx6bz.js} +1 -1
  207. package/bundle/{chunk-gr4bctqj.js → chunk-nj1ntakd.js} +2 -2
  208. package/bundle/{chunk-wdaf713t.js → chunk-nrat6ncm.js} +1 -1
  209. package/bundle/{chunk-rm5ntsvn.js → chunk-nty5z2cj.js} +1 -1
  210. package/bundle/chunk-nvwzam7a.js +2 -0
  211. package/bundle/{chunk-rp8asmq7.js → chunk-p169ee92.js} +1 -1
  212. package/bundle/chunk-p27a88vp.js +7 -0
  213. package/bundle/{chunk-h10wjk96.js → chunk-p3rd2q47.js} +2 -2
  214. package/bundle/{chunk-fbm6qczy.js → chunk-p4027t94.js} +1 -1
  215. package/bundle/{chunk-94qhpkfx.js → chunk-p54bzjtv.js} +1 -1
  216. package/bundle/{chunk-cp39f96a.js → chunk-p5be5ddp.js} +1 -1
  217. package/bundle/{chunk-ngvp6zc2.js → chunk-p6crzjtf.js} +2 -2
  218. package/bundle/chunk-p6hcj3kv.js +2 -0
  219. package/bundle/{chunk-p4ewy9xh.js → chunk-pb30kkbs.js} +6 -6
  220. package/bundle/chunk-pexmns0j.js +2 -0
  221. package/bundle/{chunk-my3cswnp.js → chunk-ph8hn1wt.js} +2 -2
  222. package/bundle/{chunk-99148b1k.js → chunk-pmg53fdd.js} +1 -1
  223. package/bundle/{chunk-wf4x5cjc.js → chunk-pr7z5dj8.js} +1 -1
  224. package/bundle/chunk-pt603np4.js +2 -0
  225. package/bundle/{chunk-4mvg7jt1.js → chunk-ptqk1j2r.js} +1 -1
  226. package/bundle/{chunk-a92hh67a.js → chunk-pxm4qvqk.js} +2 -2
  227. package/bundle/{chunk-3qfpw8f6.js → chunk-qey1efpx.js} +1 -1
  228. package/bundle/chunk-qk5bfcv8.js +2 -0
  229. package/bundle/{chunk-91z7azf7.js → chunk-qktzz0sy.js} +1 -1
  230. package/bundle/{chunk-ks1cs80p.js → chunk-qnvsqnz5.js} +2 -2
  231. package/bundle/{chunk-bcx2vkv4.js → chunk-qp1n7kwe.js} +1 -1
  232. package/bundle/{chunk-zcp0wx4j.js → chunk-qqrc1h5b.js} +2 -2
  233. package/bundle/{chunk-vyh300ac.js → chunk-qqxrvyx0.js} +2 -2
  234. package/bundle/chunk-qr06byhp.js +2 -0
  235. package/bundle/{chunk-8v6x712g.js → chunk-qrxqfp59.js} +2 -2
  236. package/bundle/{chunk-gtjn3yc4.js → chunk-qxcyz5hc.js} +2 -2
  237. package/bundle/{chunk-a550vst5.js → chunk-qznr1emx.js} +9 -9
  238. package/bundle/{chunk-tj3rem3q.js → chunk-r5zy4za0.js} +2 -2
  239. package/bundle/chunk-r7sq3maz.js +2 -0
  240. package/bundle/{chunk-f83wv08n.js → chunk-r9w0thdk.js} +1 -1
  241. package/bundle/chunk-rmgs9nmj.js +2 -0
  242. package/bundle/{chunk-p887g1xj.js → chunk-rn83r0js.js} +1 -1
  243. package/bundle/{chunk-8d6e4jg7.js → chunk-rp9r3cvt.js} +2 -2
  244. package/bundle/{chunk-n90eh3e7.js → chunk-rrv0n73b.js} +1 -1
  245. package/bundle/chunk-rscfes01.js +2 -0
  246. package/bundle/chunk-rytavefg.js +2 -0
  247. package/bundle/{chunk-g7k6ecb2.js → chunk-s2gg38y0.js} +1 -1
  248. package/bundle/{chunk-yz0pwv2m.js → chunk-s4vx9x1v.js} +1 -1
  249. package/bundle/{chunk-x2cavpa9.js → chunk-sfw5qddj.js} +1 -1
  250. package/bundle/chunk-sh9vjnsh.js +2 -0
  251. package/bundle/{chunk-6avjq7my.js → chunk-smznrv7k.js} +1 -1
  252. package/bundle/chunk-snbw69t6.js +2 -0
  253. package/bundle/chunk-st0c5wwc.js +2 -0
  254. package/bundle/{chunk-vqss3e48.js → chunk-t0761rhq.js} +2 -2
  255. package/bundle/{chunk-vqpfpmha.js → chunk-t239rvej.js} +2 -2
  256. package/bundle/{chunk-bggybm9k.js → chunk-t8c4cs6z.js} +1 -1
  257. package/bundle/chunk-tdyvps17.js +35 -0
  258. package/bundle/chunk-teb3k2sf.js +2 -0
  259. package/bundle/{chunk-ve3np791.js → chunk-tg226j37.js} +1 -1
  260. package/bundle/{chunk-73fz0cf4.js → chunk-tkrwcjkr.js} +2 -2
  261. package/bundle/{chunk-v5z6sx6j.js → chunk-tm34qp8j.js} +1 -1
  262. package/bundle/chunk-tr6rdr6h.js +4 -0
  263. package/bundle/chunk-ts798jvf.js +2 -0
  264. package/bundle/chunk-tx5aj02v.js +2 -0
  265. package/bundle/{chunk-3jms025t.js → chunk-tza09w2q.js} +1 -1
  266. package/bundle/chunk-v1t51rrq.js +2 -0
  267. package/bundle/{chunk-7ab3yw9j.js → chunk-v6h3nes1.js} +2 -2
  268. package/bundle/{chunk-e586sjb0.js → chunk-vcygx6hs.js} +2 -2
  269. package/bundle/{chunk-h2bmss2m.js → chunk-vdxar0ct.js} +1 -1
  270. package/bundle/{chunk-86yk21g4.js → chunk-venprxdp.js} +1 -1
  271. package/bundle/{chunk-ywkvq7zb.js → chunk-vf492zs6.js} +1 -1
  272. package/bundle/chunk-vh9ptqn0.js +2 -0
  273. package/bundle/{chunk-w79jzf8w.js → chunk-vnrjk2be.js} +1 -1
  274. package/bundle/{chunk-8q5ns61h.js → chunk-vshycswk.js} +1 -1
  275. package/bundle/{chunk-8e6gx3gg.js → chunk-vsz4s6zt.js} +1 -1
  276. package/bundle/{chunk-vhe92p7a.js → chunk-vygkwwjd.js} +2 -2
  277. package/bundle/{chunk-9rxyq6f9.js → chunk-w46g7kdq.js} +2 -2
  278. package/bundle/{chunk-q128vfc6.js → chunk-w4brava0.js} +1 -1
  279. package/bundle/{chunk-drwqag0f.js → chunk-w4synhfg.js} +1 -1
  280. package/bundle/chunk-w72rctxz.js +2 -0
  281. package/bundle/{chunk-mxhb5adq.js → chunk-w9gzfsy7.js} +2 -2
  282. package/bundle/chunk-wbw9zv3h.js +2 -0
  283. package/bundle/{chunk-q46pzk9z.js → chunk-wg55bwqh.js} +2 -2
  284. package/bundle/{chunk-1sfcxdbw.js → chunk-wkg3c643.js} +2 -2
  285. package/bundle/{chunk-2bgqy6z7.js → chunk-wwdpw27v.js} +1 -1
  286. package/bundle/{chunk-km1n4ttr.js → chunk-wy3a4cab.js} +1 -1
  287. package/bundle/{chunk-tczbhj0e.js → chunk-wyj8cpx5.js} +1 -1
  288. package/bundle/chunk-x6mw98c2.js +2 -0
  289. package/bundle/chunk-x9ptmxt7.js +2 -0
  290. package/bundle/{chunk-8rh0femq.js → chunk-xdd3553a.js} +1 -1
  291. package/bundle/{chunk-2jpmxt4v.js → chunk-xdteq9bd.js} +1 -1
  292. package/bundle/{chunk-9y15zjxa.js → chunk-xe69cnsk.js} +1 -1
  293. package/bundle/{chunk-s77qktcn.js → chunk-xq2kcar4.js} +2 -2
  294. package/bundle/{chunk-bk3z400e.js → chunk-y0527cg0.js} +1 -1
  295. package/bundle/{chunk-hrw5rmj1.js → chunk-y29ejqg2.js} +1 -1
  296. package/bundle/{chunk-42r7z6sq.js → chunk-y67kaj0b.js} +1 -1
  297. package/bundle/chunk-y6p57wgh.js +2 -0
  298. package/bundle/chunk-y6xs8v17.js +2 -0
  299. package/bundle/{chunk-zdzxsyxs.js → chunk-y7hgevfv.js} +2 -2
  300. package/bundle/{chunk-k1gddnkm.js → chunk-ybane1en.js} +1 -1
  301. package/bundle/{chunk-k6cbfrzc.js → chunk-yhj01dz9.js} +2 -2
  302. package/bundle/{chunk-2xqqkf86.js → chunk-ypdt9mmr.js} +2 -2
  303. package/bundle/chunk-yvn8dmah.js +2 -0
  304. package/bundle/{chunk-vm1ek7yf.js → chunk-yz25607t.js} +1 -1
  305. package/bundle/{chunk-ypcc3cnb.js → chunk-z1932c3f.js} +1 -1
  306. package/bundle/chunk-z3xsfpc6.js +2 -0
  307. package/bundle/chunk-z4kjxtjq.js +2 -0
  308. package/bundle/{chunk-6ypafpg8.js → chunk-z6sbjvtv.js} +1 -1
  309. package/bundle/chunk-z8mj4z6e.js +2 -0
  310. package/bundle/{chunk-ta7mfkms.js → chunk-zc0cdvcv.js} +2 -2
  311. package/bundle/chunk-zgv1e250.js +2 -0
  312. package/bundle/chunk-zn5pw733.js +2 -0
  313. package/bundle/{chunk-ywdtp534.js → chunk-ztyy3ga3.js} +2 -2
  314. package/bundle/chunk-zxwvnmea.js +2 -0
  315. package/bundle/index.js +3 -3
  316. package/bundle/parser.worker.js +2 -2
  317. package/bundle/qffi-compat.so +0 -0
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-0cdtq1r3.js +0 -2
  322. package/bundle/chunk-0ych0f5w.js +0 -2
  323. package/bundle/chunk-0yjdatm6.js +0 -3
  324. package/bundle/chunk-0ykeedfm.js +0 -2
  325. package/bundle/chunk-22hr3ndh.js +0 -2
  326. package/bundle/chunk-23tyxyyj.js +0 -2
  327. package/bundle/chunk-2517cev8.js +0 -2
  328. package/bundle/chunk-28g1ndpx.js +0 -2
  329. package/bundle/chunk-2avxtbv3.js +0 -2
  330. package/bundle/chunk-2faah8w1.js +0 -2
  331. package/bundle/chunk-2qk0k2eb.js +0 -2
  332. package/bundle/chunk-3c3xzz0g.js +0 -3
  333. package/bundle/chunk-42wdfks8.js +0 -2
  334. package/bundle/chunk-44y6dffe.js +0 -2
  335. package/bundle/chunk-4f19vqxf.js +0 -2
  336. package/bundle/chunk-4m3k1atq.js +0 -2
  337. package/bundle/chunk-4n2ytddp.js +0 -2
  338. package/bundle/chunk-4yg42p6y.js +0 -2
  339. package/bundle/chunk-4zx3ze68.js +0 -2
  340. package/bundle/chunk-637sjdzq.js +0 -2
  341. package/bundle/chunk-6h8f89tt.js +0 -2
  342. package/bundle/chunk-6sjj203r.js +0 -2
  343. package/bundle/chunk-79aka9xe.js +0 -2
  344. package/bundle/chunk-7nqdhe7x.js +0 -2
  345. package/bundle/chunk-7q003wdd.js +0 -4
  346. package/bundle/chunk-7x88b2n2.js +0 -2
  347. package/bundle/chunk-8apeexas.js +0 -3
  348. package/bundle/chunk-8mthftwc.js +0 -2
  349. package/bundle/chunk-8wdara3b.js +0 -2
  350. package/bundle/chunk-8xhzpnph.js +0 -2
  351. package/bundle/chunk-96sqbyvf.js +0 -2
  352. package/bundle/chunk-9akz8w0d.js +0 -2
  353. package/bundle/chunk-9etpppyv.js +0 -3
  354. package/bundle/chunk-9pnpmtb2.js +0 -2
  355. package/bundle/chunk-a5pbvp1f.js +0 -7
  356. package/bundle/chunk-a7p0x4sw.js +0 -2
  357. package/bundle/chunk-ae0a496j.js +0 -2
  358. package/bundle/chunk-aq1j9y18.js +0 -2
  359. package/bundle/chunk-aq8nz9hp.js +0 -2
  360. package/bundle/chunk-b4zy78be.js +0 -2
  361. package/bundle/chunk-basjzwqp.js +0 -2
  362. package/bundle/chunk-bhetpmgq.js +0 -3
  363. package/bundle/chunk-bm7xpjh6.js +0 -2
  364. package/bundle/chunk-c1bw1q75.js +0 -2
  365. package/bundle/chunk-c2k556rk.js +0 -2
  366. package/bundle/chunk-c47vp7ne.js +0 -2
  367. package/bundle/chunk-cbhgf058.js +0 -2
  368. package/bundle/chunk-d41mg7at.js +0 -2
  369. package/bundle/chunk-d50kpss6.js +0 -2
  370. package/bundle/chunk-day0rb5p.js +0 -2
  371. package/bundle/chunk-dp7cww4v.js +0 -2
  372. package/bundle/chunk-dy31mchw.js +0 -3
  373. package/bundle/chunk-e5rda9mx.js +0 -2
  374. package/bundle/chunk-e999xtfj.js +0 -2
  375. package/bundle/chunk-ehfxypks.js +0 -7610
  376. package/bundle/chunk-eyr0vf92.js +0 -2
  377. package/bundle/chunk-gbmmbhy4.js +0 -2
  378. package/bundle/chunk-gp877cq5.js +0 -2
  379. package/bundle/chunk-h4f582d6.js +0 -2
  380. package/bundle/chunk-h57c6ne3.js +0 -2
  381. package/bundle/chunk-hk8vvc10.js +0 -2
  382. package/bundle/chunk-hnrqhcgq.js +0 -2
  383. package/bundle/chunk-hwavzxdm.js +0 -2
  384. package/bundle/chunk-hwnc2sa5.js +0 -2
  385. package/bundle/chunk-hy86wfad.js +0 -2
  386. package/bundle/chunk-j17421hz.js +0 -2
  387. package/bundle/chunk-j2gvpa15.js +0 -2
  388. package/bundle/chunk-j7n8khk7.js +0 -2
  389. package/bundle/chunk-jkh98wby.js +0 -2
  390. package/bundle/chunk-k5a652s4.js +0 -2
  391. package/bundle/chunk-k6w32q2p.js +0 -2
  392. package/bundle/chunk-kghwk0yh.js +0 -2
  393. package/bundle/chunk-kh8de8re.js +0 -2
  394. package/bundle/chunk-mce8aa9y.js +0 -2
  395. package/bundle/chunk-me1ja46g.js +0 -2
  396. package/bundle/chunk-mgadsp7r.js +0 -2
  397. package/bundle/chunk-n0k0pp4k.js +0 -2
  398. package/bundle/chunk-n393nnh5.js +0 -2
  399. package/bundle/chunk-n5vyed7w.js +0 -2
  400. package/bundle/chunk-pasm65wq.js +0 -2
  401. package/bundle/chunk-phpmxjf8.js +0 -2
  402. package/bundle/chunk-q2q3dmg3.js +0 -2
  403. package/bundle/chunk-qvzvxsjw.js +0 -2
  404. package/bundle/chunk-racrb1b3.js +0 -2
  405. package/bundle/chunk-s0c0t6qr.js +0 -5
  406. package/bundle/chunk-sghy9s7m.js +0 -2
  407. package/bundle/chunk-skpkjnyy.js +0 -2
  408. package/bundle/chunk-skxhg212.js +0 -2
  409. package/bundle/chunk-snt4kwab.js +0 -2
  410. package/bundle/chunk-sq47t8f1.js +0 -2
  411. package/bundle/chunk-sqhgnvvs.js +0 -2
  412. package/bundle/chunk-t114r59h.js +0 -2
  413. package/bundle/chunk-t1f56k0j.js +0 -2
  414. package/bundle/chunk-t69jx6fz.js +0 -2
  415. package/bundle/chunk-tsb3jsx4.js +0 -2
  416. package/bundle/chunk-ttpbpzbh.js +0 -2
  417. package/bundle/chunk-v667egp5.js +0 -2
  418. package/bundle/chunk-vrv67tt0.js +0 -2
  419. package/bundle/chunk-wcx7hc2p.js +0 -635
  420. package/bundle/chunk-wv8qx8sa.js +0 -2
  421. package/bundle/chunk-xxrtr6sd.js +0 -2
  422. package/bundle/chunk-y2ptjam9.js +0 -3
  423. package/bundle/chunk-y6h35v4a.js +0 -2
  424. package/bundle/chunk-y72p79v2.js +0 -2
  425. package/bundle/chunk-y8eggnrr.js +0 -2
  426. package/bundle/chunk-y9q0f9qz.js +0 -2
  427. package/bundle/chunk-yck5h49c.js +0 -2
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ed as d}from"./chunk-0yjdatm6.js";import{Rd as f}from"./chunk-yajd975f.js";import{Uf as e}from"./chunk-t1jgx17a.js";import{Zg as l}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{bk as m,tl as u}from"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var v=f({command:"usage [sessionID]",describe:"show per-turn token/cost breakdown for a session (debug/verification tool)",builder:(o)=>{return o.positional("sessionID",{describe:"session ID to inspect (default: most recently updated session)",type:"string"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"}).option("limit",{describe:"number of most recent turns to show (default: all)",type:"number"})},handler:async(o)=>{await d(process.cwd(),async()=>{let a=o.sessionID?m.make(o.sessionID):[...u.list({roots:!1,limit:1})][0]?.id;if(!a)e.error("No sessions found"),process.exit(1);let p=(await l.runPromise(u.Service.use((s)=>s.messages({sessionID:a,agentID:"*"})))).filter((s)=>s.info.role==="assistant").map((s)=>{let t=s.info,c=s.parts.filter((n)=>n.type==="step-finish");return{messageID:t.id,provider:t.providerID,model:t.modelID,finish:t.finish,cost:t.cost??0,tokens:t.tokens??{input:0,output:0,reasoning:0,cache:{read:0,write:0}},steps:c.map((n)=>({cost:n.cost,tokens:n.tokens}))}}),r=o.limit?p.slice(-o.limit):p;if(r.length===0){e.println("No assistant turns found for this session");return}if(o.format==="json"){console.log(JSON.stringify({sessionID:a,turns:r},null,2));return}e.println(`Session ${a} \u2014 ${r.length} turn(s)`),e.println("");for(let s of r){let t=s.tokens,c=t.input+t.cache.read+t.cache.write,n=t.output+t.reasoning;if(e.println(`${s.messageID} ${s.provider}/${s.model} finish=${s.finish??"-"}`),e.println(` tokens input=${t.input} cache.read=${t.cache.read} cache.write=${t.cache.write} output=${t.output} reasoning=${t.reasoning} (in=${c} out=${n})`),e.println(` cost $${s.cost.toFixed(6)}`),s.steps.length>1)e.println(` steps ${s.steps.length}`),s.steps.forEach((i,g)=>{e.println(` [${g}] input=${i.tokens.input} output=${i.tokens.output} cache.read=${i.tokens.cache.read} cache.write=${i.tokens.cache.write} reasoning=${i.tokens.reasoning} cost=$${i.cost.toFixed(6)}`)});e.println("")}let h=r.reduce((s,t)=>s+t.cost,0);e.println(`Total cost for shown turns: $${h.toFixed(6)}`),e.println("(source: Session.getUsage(), same numbers persisted to the message record \u2014 see session.usage log tag)")})}});export{v as UsageCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{zg as r}from"./chunk-rcyzqa3g.js";import{PO as o}from"./chunk-f83wv08n.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-1q1cddy4.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-x4pdpka8.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var t="./injections-73j83es3.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var e="./libopentui-c48jzvfh.so";export{e as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{le as a,me as b,ne as c,oe as d,pe as e,qe as f,re as g}from"./chunk-0zxwjsvz.js";import"./chunk-y4e7e42x.js";import"./chunk-yd2emszh.js";import"./chunk-3tmq81kq.js";import"./chunk-f83wv08n.js";export{g as fromEnv,c as ENV_SESSION,b as ENV_SECRET,a as ENV_KEY,d as ENV_EXPIRATION,e as ENV_CREDENTIAL_SCOPE,f as ENV_ACCOUNT_ID};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var t="./tree-sitter-3jzf13jk.wasm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xd as a}from"./chunk-zfd70p01.js";import"./chunk-tczbhj0e.js";import"./chunk-f83wv08n.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var k="./opentui-drfwd3v7.dll";export{k as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var t="./highlights-r812a2qc.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var G="./tree-sitter-bash-hq5s6fxb.wasm";export{G as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{KO as a}from"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";export default a();
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{Dt as O}from"./chunk-cbmwhvxw.js";import{Et as p}from"./chunk-9etpppyv.js";import{vO as X}from"./chunk-ks1cs80p.js";import{NO as l}from"./chunk-f83wv08n.js";var Gq={};l(Gq,{redactValue:()=>D,init:()=>$q,flush:()=>Yq,file:()=>Jq,enabled:()=>qq,create:()=>I,Level:()=>r,Default:()=>Hq});import U from"path";import K from"fs/promises";import{createWriteStream as g}from"fs";var Vq="https://qortex.forgewise.tech/api/v1/qortex/streamTier",Mq=new URL("https://qortex.forgewise.tech/api/v1/qortex/streamTier").origin,f="https://qortex.forgewise.tech/api/v1/qortex/streamTier".replace(/\/streamTier$/,""),Nq={name:"QitQode",family:"qlex",npm:"@qitqode/qlex-provider",limit:{context:200000,output:16384},capabilities:{temperature:!0,reasoning:!1,attachment:!0,toolcall:!0,input:{text:!0,audio:!1,image:!0,video:!1,pdf:!1},output:{text:!0,audio:!1,image:!1,video:!1,pdf:!1},interleaved:!1},release_date:"2025-07-06"};function M(q){return q.replace(/provider\s+'[^']*'\s*(?:stream\s+)?(?:failed|error)?\s*:?\s*/gi,"").replace(/\b(?:anthropic|openai|google|vertex\s*ai|bedrock|azure|x\.?ai|mistral|deepseek|cohere|groq|together(?:\.ai)?|openrouter|fireworks|perplexity|meta)\b/gi,"").replace(/\b(?:gpt|claude|gemini|grok|llama|qwen|sonnet|opus|haiku|o[0-9])[-\w.]*/gi,"").replace(/\s+/g," ").replace(/^[\s:;,.\-]+/,"").replace(/[\s.]+$/,"").trim()}var Q="The model's reply was cut off before it finished.";function _(q){if(q?.continued===!0)return`${Q} The text that arrived was kept and QitQode asked the model to carry on from it. Send the message again only if the continuation missed what you needed.`;if(q?.textKept===!1)return`${Q} None of it arrived, so there was nothing to keep and nothing to carry on from. This is usually a temporary upstream fault \u2014 send the message again.`;if(q?.textKept===!0)return`${Q} The text that arrived was kept, but the rest could not be recovered automatically. Send the message again if you need the missing part.`;return`${Q} Any text that arrived was kept, but the rest could not be recovered automatically. Send the message again if you need the missing part.`}var Zq={notLoggedIn:"Not logged in to QitQode. Run `qitqode auth login` to sign in with your Forgewise account.",rateLimit:"Rate limit exceeded. Please wait a moment before sending more requests.",insufficientBalance:(q)=>{let H=q?M(q):"";return`Insufficient qredits${H?`: ${H}`:""}. Add qredits at qitqode.com to continue.`},invalidCredentials:(q)=>{let H=q?M(q):"";return`Your QitQode sign-in has ended${H?` (${H})`:""}. Renewing it automatically didn't work, so signing in again is the only step left.`},accountNotLinked:(q)=>{let H=q?M(q):"";return`This credential isn't linked to a QitQode account${H?` (${H})`:""}, so there is no wallet to read. Sign in with your Forgewise account, or use a key issued to that account.`},gatewayUnavailable:(q)=>{let H=q?M(q):"";return`The QitQode model gateway is unavailable${H?` (${H})`:""}. Your sign-in is still valid \u2014 the model backend isn't reachable through its trusted gateway yet. This is a server-side configuration issue, not a login problem.`},streamFailed:(q)=>{let H=q?M(q):"";return`The QitQode model stream failed${H?`: ${H}`:""}.`},streamCutOff:(q)=>_(q),streamFailedAfterRetries:(q)=>_(q),outputBudgetExhausted:()=>"The model ran out of output room before it could finish. QitQode will retry once with more headroom when the tier allows it.",emptyOutput:()=>"The model used its output budget without producing visible text. QitQode did not receive an answer and no charge is implied.",requestRejected:(q,H)=>{let $=q?M(q):"",W=H?M(H):"";return`QitQode built an invalid request and the server rejected it${W?` (field: ${W})`:""}${$?`: ${$}`:""}. This is a problem with the request QitQode sent \u2014 not your sign-in, and not a gateway outage. Sending the same thing again will fail the same way.`},requestNotSent:(q)=>{let H=q?M(q):"";return`QitQode did not send this request${H?`: ${H}`:""}. Nothing was sent and no qredits were spent. This is a problem inside QitQode \u2014 not your sign-in, and not a gateway outage.`},requestTooLargeRecovering:(q)=>{let H=q?M(q):"";return`This request was too large to send${H?` (${H})`:""}, so QitQode removed some earlier conversation detail and is trying once more. Your sign-in is fine and the service is reachable.`},requestTooLargeIrreducible:(q)=>{let H=q?M(q):"";return`This request is too large for the service to accept${H?` (${H})`:""}, and QitQode couldn't make it smaller without losing your current request. Try removing large pasted text or attachments from your message, or start a new session. This isn't a sign-in problem or a service outage.`},requestTooLargeAfterReduction:(q)=>{let H=q?M(q):"";return`This request was still too large for the service after QitQode removed earlier conversation detail${H?` (${H})`:""}, so it stopped rather than retrying again. Start a new session, or send a shorter message with fewer attachments. This isn't a sign-in problem or a service outage.`},insufficientBalanceFallback:"Insufficient qredits.",insufficientBalanceCliSuffix:" Visit qitqode.com to add qredits.",invalidCredentialsFallback:"Your QitQode sign-in has ended and couldn't be renewed automatically. Sign in again.",apiKeyPrompt:"Paste your Qortex API key:",apiKeyPlaceholder:"qortex-...",loginMenuForgewise:"Sign in with Forgewise account",loginMenuApiKey:"Paste a Qortex API key",waitingForgewise:"\u23F3 Waiting for Forgewise sign-in in your browser\u2026"};function J(q){let H=process.env[q]?.toLowerCase();return H==="true"||H==="1"}function S(q){let H=process.env[q]?.toLowerCase();return H==="false"||H==="0"}function N(q){let H=process.env[q];if(!H)return;let $=Number(H);return Number.isInteger($)&&$>0?$:void 0}var R=J("QITQODE_EXPERIMENTAL"),k=J("QITQODE_DISABLE_CLAUDE_CODE"),C=J("QITQODE_DISABLE_EXTERNAL_SKILLS"),i=C||k||J("QITQODE_DISABLE_CLAUDE_CODE_SKILLS"),s=process.env.QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT,c={OTEL_EXPORTER_OTLP_ENDPOINT:process.env.OTEL_EXPORTER_OTLP_ENDPOINT,OTEL_EXPORTER_OTLP_HEADERS:process.env.OTEL_EXPORTER_OTLP_HEADERS,QITQODE_AUTO_SHARE:J("QITQODE_AUTO_SHARE"),QITQODE_AUTO_HEAP_SNAPSHOT:J("QITQODE_AUTO_HEAP_SNAPSHOT"),QITQODE_GIT_BASH_PATH:process.env.QITQODE_GIT_BASH_PATH,QITQODE_CONFIG:process.env.QITQODE_CONFIG,QITQODE_CONFIG_CONTENT:process.env.QITQODE_CONFIG_CONTENT,get QITQODE_BACKEND_URL(){return process.env.QITQODE_BACKEND_URL??f},get QITQODE_QLEX_MAX_REQUEST_BYTES(){return N("QITQODE_QLEX_MAX_REQUEST_BYTES")},QITQODE_DISABLE_AUTOUPDATE:J("QITQODE_DISABLE_AUTOUPDATE"),QITQODE_DISABLE_LOG_ROTATION:J("QITQODE_DISABLE_LOG_ROTATION"),QITQODE_ALWAYS_NOTIFY_UPDATE:J("QITQODE_ALWAYS_NOTIFY_UPDATE"),QITQODE_DISABLE_PRUNE:J("QITQODE_DISABLE_PRUNE"),QITQODE_DISABLE_TERMINAL_TITLE:J("QITQODE_DISABLE_TERMINAL_TITLE"),QITQODE_SHOW_TTFD:J("QITQODE_SHOW_TTFD"),QITQODE_PERMISSION:process.env.QITQODE_PERMISSION,QITQODE_DISABLE_DEFAULT_PLUGINS:J("QITQODE_DISABLE_DEFAULT_PLUGINS"),QITQODE_DISABLE_LSP_DOWNLOAD:!0,QITQODE_ENABLE_EXPERIMENTAL_MODELS:J("QITQODE_ENABLE_EXPERIMENTAL_MODELS"),QITQODE_DISABLE_AUTOCOMPACT:J("QITQODE_DISABLE_AUTOCOMPACT"),QITQODE_DISABLE_MODELS_FETCH:J("QITQODE_DISABLE_MODELS_FETCH"),QITQODE_DISABLE_MOUSE:J("QITQODE_DISABLE_MOUSE"),QITQODE_OUTPUT_LENGTH_CONTINUATION_LIMIT:N("QITQODE_OUTPUT_LENGTH_CONTINUATION_LIMIT")??3,QITQODE_INVALID_OUTPUT_CONTINUATION_LIMIT:N("QITQODE_INVALID_OUTPUT_CONTINUATION_LIMIT")??2,QITQODE_TEXT_NGRAM_N:N("QITQODE_TEXT_NGRAM_N")??6,QITQODE_TEXT_REPEAT_THRESHOLD:N("QITQODE_TEXT_REPEAT_THRESHOLD")??3,QITQODE_TEXT_WINDOW_TOKENS:N("QITQODE_TEXT_WINDOW_TOKENS")??500,QITQODE_MAX_PROMPT_IMAGES:N("QITQODE_MAX_PROMPT_IMAGES")??4,QITQODE_MAX_PROMPT_IMAGE_SIZE:N("QITQODE_MAX_PROMPT_IMAGE_SIZE")??393216,QITQODE_DISABLE_PROVIDER_ENV:J("QITQODE_DISABLE_PROVIDER_ENV"),QITQODE_DISABLE_CLAUDE_CODE:k,get QITQODE_DISABLE_CLAUDE_CODE_MCP(){return k||J("QITQODE_DISABLE_CLAUDE_CODE_MCP")},QITQODE_DISABLE_CLAUDE_CODE_PROMPT:k||J("QITQODE_DISABLE_CLAUDE_CODE_PROMPT"),QITQODE_DISABLE_CLAUDE_CODE_COMMANDS:J("QITQODE_DISABLE_CLAUDE_CODE_COMMANDS"),QITQODE_DISABLE_CLAUDE_CODE_SKILLS:i,QITQODE_DISABLE_EXTERNAL_SKILLS:C,QITQODE_DISABLE_CODEX_SKILLS:C||J("QITQODE_DISABLE_CODEX_SKILLS"),QITQODE_DISABLE_OPENCODE_SKILLS:C||J("QITQODE_DISABLE_OPENCODE_SKILLS"),QITQODE_FAKE_VCS:process.env.QITQODE_FAKE_VCS,QITQODE_DISABLE_GIT:J("QITQODE_DISABLE_GIT"),get QITQODE_SERVER_PASSWORD(){return process.env.QITQODE_SERVER_PASSWORD},get QITQODE_SERVER_USERNAME(){return process.env.QITQODE_SERVER_USERNAME},QITQODE_ENABLE_QUESTION_TOOL:J("QITQODE_ENABLE_QUESTION_TOOL"),QITQODE_EXPERIMENTAL:R,QITQODE_EXPERIMENTAL_FILEWATCHER:X.boolean("QITQODE_EXPERIMENTAL_FILEWATCHER").pipe(X.withDefault(!1)),QITQODE_EXPERIMENTAL_DISABLE_FILEWATCHER:X.boolean("QITQODE_EXPERIMENTAL_DISABLE_FILEWATCHER").pipe(X.withDefault(!1)),QITQODE_EXPERIMENTAL_ICON_DISCOVERY:R||J("QITQODE_EXPERIMENTAL_ICON_DISCOVERY"),QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT:s===void 0?process.platform==="win32":J("QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT"),QITQODE_ENABLE_EXA:J("QITQODE_ENABLE_EXA")||R||J("QITQODE_EXPERIMENTAL_EXA"),QITQODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS:N("QITQODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS"),QITQODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX:N("QITQODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX"),QITQODE_EXPERIMENTAL_OXFMT:R||J("QITQODE_EXPERIMENTAL_OXFMT"),QITQODE_EXPERIMENTAL_LSP_TY:J("QITQODE_EXPERIMENTAL_LSP_TY"),QITQODE_EXPERIMENTAL_LSP_TOOL:R||J("QITQODE_EXPERIMENTAL_LSP_TOOL"),QITQODE_EXPERIMENTAL_WORKFLOW_TOOL:!S("QITQODE_EXPERIMENTAL_WORKFLOW_TOOL"),QITQODE_EXPERIMENTAL_MARKDOWN:!S("QITQODE_EXPERIMENTAL_MARKDOWN"),QITQODE_MODELS_URL:process.env.QITQODE_MODELS_URL,QITQODE_MODELS_PATH:process.env.QITQODE_MODELS_PATH,QITQODE_DB:process.env.QITQODE_DB,QITQODE_DISABLE_CHANNEL_DB:!S("QITQODE_DISABLE_CHANNEL_DB"),QITQODE_SKIP_MIGRATIONS:J("QITQODE_SKIP_MIGRATIONS"),QITQODE_STRICT_CONFIG_DEPS:J("QITQODE_STRICT_CONFIG_DEPS"),QITQODE_WORKSPACE_ID:process.env.QITQODE_WORKSPACE_ID,QITQODE_EXPERIMENTAL_HTTPAPI:J("QITQODE_EXPERIMENTAL_HTTPAPI"),QITQODE_EXPERIMENTAL_WORKSPACES:R||J("QITQODE_EXPERIMENTAL_WORKSPACES"),get QITQODE_DISABLE_COMPOSE_SKILLS(){return J("QITQODE_DISABLE_COMPOSE_SKILLS")},get QITQODE_DISABLE_BUILTIN_SKILLS(){return J("QITQODE_DISABLE_BUILTIN_SKILLS")},get QITQODE_DISABLE_PROJECT_CONFIG(){return J("QITQODE_DISABLE_PROJECT_CONFIG")},get QITQODE_TUI_CONFIG(){return process.env.QITQODE_TUI_CONFIG},get QITQODE_CONFIG_DIR(){return process.env.QITQODE_CONFIG_DIR},get QITQODE_HOME(){return process.env.QITQODE_HOME},get QITQODE_PURE(){return J("QITQODE_PURE")},get QITQODE_PLUGIN_META_FILE(){return process.env.QITQODE_PLUGIN_META_FILE},get QITQODE_CLIENT(){return process.env.QITQODE_CLIENT??"cli"}};var r=p.enum(["DEBUG","INFO","WARN","ERROR"]).meta({ref:"LogLevel",description:"Log level"}),v={DEBUG:0,INFO:1,WARN:2,ERROR:3},t=10,a=52428800,e=209715200,d="INFO";function F(q){return v[q]>=v[d]}function qq(q){return F(q)}var E=new Map,Hq=I({service:"default"}),G="";function Jq(){return G}var z,T=0,m=!0,w=(q)=>{return process.stderr.write(q),q.length};function y(){return new Date().toISOString().split(".")[0].replace(/:/g,"")}async function $q(q){if(q.level)d=q.level;if(m=q.rotate??!c.QITQODE_DISABLE_LOG_ROTATION,n(O.Path.log),q.print)return;if(G=U.join(O.Path.log,q.dev?"dev.log":y()+".log"),q.dev){let H=await K.stat(G).catch(()=>null);if(H&&H.size>0)await K.rename(G,`${G}.${y()}`).catch(()=>{})}else await K.truncate(G).catch(()=>{});z=g(G,{flags:"a"}),T=0,w=(H)=>{return h=h.then(async()=>{if(T+=Buffer.byteLength(H),m&&T>=a)T=Buffer.byteLength(H),await jq();await new Promise(($)=>{if(!z){$();return}z.write(H,()=>$())})}).catch(()=>{}),H.length}}var h=Promise.resolve();async function Yq(){await h}async function jq(){let q=z,H=`${G}.${y()}`;for(let $=2;await K.stat(H).then(()=>!0,()=>!1);$++)H=`${G}.${y()}.${$}`;if(await K.rename(G,H).catch(()=>{}),z=g(G,{flags:"a"}),q)q.end();n(O.Path.log)}async function n(q){let H=await K.readdir(q).catch(()=>[]),W=(await Promise.all(H.filter((Y)=>Y.includes(".log")&&U.join(q,Y)!==G).map(async(Y)=>{let Z=await K.stat(U.join(q,Y)).catch(()=>null);return Z?.isFile()?{name:Y,size:Z.size}:null}))).flatMap((Y)=>Y?[Y]:[]).sort((Y,Z)=>Y.name<Z.name?-1:Y.name>Z.name?1:0),j=W.reduce((Y,Z)=>Y+Z.size,0),P=W.length,B=W.filter((Y)=>{if(P<=t&&j<=e)return!1;return j-=Y.size,P-=1,!0});await Promise.all(B.map((Y)=>K.unlink(U.join(q,Y.name)).catch(()=>{})))}var Pq=/token|secret|password|passwd|credential|api[_-]?key|authorization|cookie|set-cookie/i;function D(q,H){if(Pq.test(q)&&H!==void 0&&H!==null)return"[REDACTED]";return H}var A=10240;function Wq(q){try{let H=JSON.stringify(q,function($,W){return $?D($,W):W});if(typeof H==="string"&&H.length>A)return H.slice(0,A)+`\u2026[truncated ${H.length-A} chars]`;return H}catch{return"[unserializable]"}}function o(q,H=0){let $=q.message;return q.cause instanceof Error&&H<10?$+" Caused by: "+o(q.cause,H+1):$}var u=Date.now();function I(q){q=q||{};let H=q.service;if(H&&typeof H==="string"){let j=E.get(H);if(j)return j}function $(j,P){let B=Object.entries({...q,...P}).filter(([x,V])=>V!==void 0&&V!==null).map(([x,V])=>{let b=`${x}=`;if(V instanceof Error)return b+o(V);let L=D(x,V);if(L!==V)return b+L;if(typeof V==="object"&&V!==null)return b+Wq(V);return b+V}).join(" "),Y=new Date,Z=Y.getTime()-u;return u=Y.getTime(),[Y.toISOString().split(".")[0],"+"+Z+"ms",B,j].filter(Boolean).join(" ")+`
3
- `}let W={debug(j,P){if(F("DEBUG"))w("DEBUG "+$(j,P))},info(j,P){if(F("INFO"))w("INFO "+$(j,P))},error(j,P){if(F("ERROR"))w("ERROR "+$(j,P))},warn(j,P){if(F("WARN"))w("WARN "+$(j,P))},tag(j,P){if(q)q[j]=P;return W},clone(){return I({...q})},time(j,P){let B=Date.now();W.info(j,{status:"started",...P});function Y(){W.info(j,{status:"completed",duration:Date.now()-B,...P})}return{stop:Y,[Symbol.dispose](){Y()}}}};if(H&&typeof H==="string")E.set(H,W);return W}
4
- export{Vq as _s,Mq as $s,f as at,Nq as bt,M as ct,Zq as dt,c as et,r as ft,qq as gt,Hq as ht,Jq as it,$q as jt,Yq as kt,D as lt,I as mt,Gq as nt};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{PO as t}from"./chunk-f83wv08n.js";var e=await import("./chunk-6h8f89tt.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Rd as q}from"./chunk-yajd975f.js";import{Uf as v}from"./chunk-t1jgx17a.js";import{Zg as S}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import{Vl as Q,cm as H}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import{cs as K}from"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var P=q({command:"pr <number>",describe:"fetch and checkout a GitHub PR branch, then run qitqode",builder:(Y)=>Y.positional("number",{type:"number",describe:"PR number to checkout",demandOption:!0}),async handler(Y){await H.provide({directory:process.cwd(),async fn(){if(H.project.vcs!=="git")v.error("Could not find git repository. Please run this command from a git repository."),process.exit(1);let J=Y.number,Z=`pr/${J}`;if(v.println(`Fetching and checking out PR #${J}...`),(await K.run(["gh","pr","checkout",`${J}`,"--branch",Z,"--force"],{nothrow:!0})).code!==0)v.error(`Failed to checkout PR #${J}. Make sure you have gh CLI installed and authenticated.`),process.exit(1);let _=await K.text(["gh","pr","view",`${J}`,"--json","headRepository,headRepositoryOwner,isCrossRepository,headRefName,body"],{nothrow:!0}),V;if(_.code===0){let j=_.text;if(j.trim()){let z=JSON.parse(j);if(z&&z.isCrossRepository&&z.headRepository&&z.headRepositoryOwner){let L=z.headRepositoryOwner.login,W=z.headRepository.name,C=L;if(!(await S.runPromise(Q.Service.use((F)=>F.run(["remote"],{cwd:H.worktree}))).then((F)=>F.text().trim())).split(`
3
- `).includes(C))await S.runPromise(Q.Service.use((F)=>F.run(["remote","add",C,`https://github.com/${L}/${W}.git`],{cwd:H.worktree}))),v.println(`Added fork remote: ${C}`);let X=z.headRefName;await S.runPromise(Q.Service.use((F)=>F.run(["branch",`--set-upstream-to=${C}/${X}`,Z],{cwd:H.worktree})))}if(z&&z.body){let L=z.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/);if(L){let W=L[0];v.println(`Found qitqode session: ${W}`),v.println("Importing session...");let C=await K.text(["qitqode","import",W],{nothrow:!0});if(C.code===0){let X=C.text.trim().match(/Imported session: ([a-zA-Z0-9_-]+)/);if(X)V=X[1],v.println(`Session imported: ${V}`)}}}}}v.println(`Successfully checked out PR #${J} as branch '${Z}'`),v.println(),v.println("Starting qitqode..."),v.println();let D=V?["-s",V]:[],$=await K.spawn(["qitqode",...D],{stdin:"inherit",stdout:"inherit",stderr:"inherit",cwd:process.cwd()}).exited;if($!==0)throw Error(`qitqode exited with code ${$}`)}})}});export{P as PrCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{yq as a,zq as b}from"./chunk-fd7fmvyw.js";import"./chunk-f83wv08n.js";export{a as generateSecret,b as generateCodeChallengeFromVerifier};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";function n(){return(e)=>JSON.parse(JSON.stringify(e.Type()))}export{n as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var L="./libopentui-430t0qv0.dylib";export{L as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ed as j}from"./chunk-0yjdatm6.js";import{Rd as Q}from"./chunk-yajd975f.js";import{Uf as M}from"./chunk-t1jgx17a.js";import{ng as N}from"./chunk-et5dnymk.js";import{Zg as $}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{bk as J,tl as X}from"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import{fo as _}from"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import{Vr as Z}from"./chunk-h2bmss2m.js";import{cs as E}from"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import{et as Y}from"./chunk-7q003wdd.js";import{yt as V}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";import{EOL as L}from"os";import k from"path";function P(){let q=["-R","-S"];if(process.platform!=="win32")return["less",...q];let z=_("less");if(z){if(V.stat(z)?.size)return[z,...q]}if(Y.QITQODE_GIT_BASH_PATH){let G=k.join(Y.QITQODE_GIT_BASH_PATH,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}let B=_("git");if(B){let G=k.join(B,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}return["cmd","/c","more"]}var g=Q({command:"session",describe:"manage sessions",builder:(q)=>q.command(T).command(D).command(v).demandCommand(),async handler(){}}),v=Q({command:"import-claude",describe:"import Claude Code sessions (~/.claude/projects) into qitqode",builder:(q)=>q.option("force",{describe:"re-sync every session, ignoring the mtime cache",type:"boolean",default:!1}),handler:async(q)=>{let z=await N.run({force:q.force});M.println(`Claude import: scanned ${z.scanned}, imported ${z.imported}, resynced ${z.resynced}, skipped ${z.skipped}`+(z.errors.length?`, errors ${z.errors.length}`:""));for(let B of z.errors)M.error(B)}}),D=Q({command:"delete <sessionID>",describe:"delete a session",builder:(q)=>{return q.positional("sessionID",{describe:"session ID to delete",type:"string",demandOption:!0})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=J.make(q.sessionID);try{await $.runPromise(X.Service.use((B)=>B.get(z)))}catch{M.error(`Session not found: ${q.sessionID}`),process.exit(1)}await $.runPromise(X.Service.use((B)=>B.remove(z))),M.println(M.Style.TEXT_SUCCESS_BOLD+`Session ${q.sessionID} deleted`+M.Style.TEXT_NORMAL)})}}),T=Q({command:"list",describe:"list sessions",builder:(q)=>{return q.option("max-count",{alias:"n",describe:"limit to N most recent sessions",type:"number"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=[...X.list({roots:!0,limit:q.maxCount})];if(z.length===0)return;let B;if(q.format==="json")B=f(z);else B=b(z);if(process.stdout.isTTY&&!q.maxCount&&q.format==="table"){let H=E.spawn(P(),{stdin:"pipe",stdout:"inherit",stderr:"inherit"});if(!H.stdin){console.log(B);return}H.stdin.write(B),H.stdin.end(),await H.exited}else console.log(B)})}});function b(q){let z=[],B=Math.max(20,...q.map((K)=>K.id.length)),G=Math.max(25,...q.map((K)=>K.title.length)),H=`Session ID${" ".repeat(B-10)} Title${" ".repeat(G-5)} Updated`;z.push(H),z.push("\u2500".repeat(H.length));for(let K of q){let A=Z.truncate(K.title,G),R=Z.todayTimeOrDateTime(K.time.updated),w=`${K.id.padEnd(B)} ${A.padEnd(G)} ${R}`;z.push(w)}return z.join(L)}function f(q){let z=q.map((B)=>({id:B.id,title:B.title,updated:B.time.updated,created:B.time.created,projectId:B.projectID,directory:B.directory}));return JSON.stringify(z,null,2)}export{T as SessionListCommand,v as SessionImportClaudeCommand,D as SessionDeleteCommand,g as SessionCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var e="./libopentui-xtk56e94.so";export{e as default};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{au as o}from"./chunk-9ea1n338.js";var e=o;
3
- export{e as Et};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{A as g,u as a,v as b,w as c,x as d,y as e,z as f}from"./chunk-sjreby6e.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-73fz0cf4.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
@@ -1,7 +0,0 @@
1
- // @bun
2
- import{I}from"./chunk-a9y27zd2.js";import{J as i,L as r}from"./chunk-7z884mz2.js";import{wd as c}from"./chunk-tge53d52.js";import{xd as g}from"./chunk-zfd70p01.js";import{yd as y}from"./chunk-j5ymkhry.js";import{zd as k}from"./chunk-xd3xc1vv.js";import{Ad as A}from"./chunk-tczbhj0e.js";import{Fd as w,Gd as u,Id as W,Jd as L,Kd as T,Md as p,Nd as o,Od as b,Pd as P}from"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Rd as z}from"./chunk-yajd975f.js";import{Uf as Y}from"./chunk-t1jgx17a.js";import{Zg as M}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Oj as R,fl as a,ul as s}from"./chunk-a550vst5.js";import{Gl as V}from"./chunk-e374shb8.js";import{cm as n}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import{cs as l}from"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import{Bs as d}from"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import{Dt as v}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import{xH as O}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{PO as H1}from"./chunk-f83wv08n.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-bm7xpjh6.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(v.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=l.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(d(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
3
- 1. Bearer token (AWS_BEARER_TOKEN_BEDROCK or /connect)
4
- 2. AWS credential chain (profile, access keys, IAM roles, EKS IRSA)
5
-
6
- Configure via qitqode.json options (profile, region, endpoint) or
7
- AWS environment variables (AWS_PROFILE, AWS_REGION, AWS_ACCESS_KEY_ID, AWS_WEB_IDENTITY_TOKEN_FILE).`);if(K==="opencode")W.info("Create an api key at https://opencode.ai/auth");if(K==="vercel")W.info("You can create an api key at https://vercel.link/ai-gateway-token");if(["cloudflare","cloudflare-ai-gateway"].includes(K))W.info("Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway");let $1=await t();await D(K,{type:"api",key:$1}),T("Done")}})}}),F1=z({command:"logout",describe:"log out from a configured provider",async handler($){Y.empty();let B=await M.runPromise(O.gen(function*(){let Z=yield*R.Service;return Object.entries(yield*Z.all())}));if(L("Remove credential"),B.length===0){W.error("No credentials found");return}let J=await V.get(),X=await b({message:"Select provider",options:B.map(([Z,j])=>({label:(J[Z]?.name||Z)+Y.Style.TEXT_DIM+" ("+j.type+")",value:Z}))});if(w(X))throw new Y.CancelledError;let H=X;await M.runPromise(O.gen(function*(){yield*(yield*R.Service).remove(H)})),T("Logout successful")}}),K1=z({command:"whoami",describe:"show current logged-in user info",async handler($){Y.empty(),L("Current auth"),W.info("Run `qitqode auth list` to see all authenticated providers."),T("")}});export{G1 as resolvePluginProviders,K1 as ProvidersWhoamiCommand,F1 as ProvidersLogoutCommand,_1 as ProvidersLoginCommand,Y1 as ProvidersListCommand,l1 as ProvidersCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var a="./highlights-x6tmsnaa.scm";export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fo as a}from"./chunk-zdzxsyxs.js";import"./chunk-732yr6qq.js";import"./chunk-cbmwhvxw.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{a as which};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var q="./tree-sitter-powershell-ryb2ffqs.wasm";export{q as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var l="./tree-sitter-javascript-nd0q4pe9.wasm";export{l as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{of as h}from"./chunk-mxhb5adq.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-f83wv08n.js";var v=(q)=>{return h({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...q||{}})},x=v();export{x as unified,v as createUnified};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{sq as a}from"./chunk-mswx4k75.js";import"./chunk-f83wv08n.js";export default a();
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{PO as o}from"./chunk-f83wv08n.js";var i=(t)=>`standard-openapi: ${t}`,s=new Map,r=async(t)=>{let e=s.get(t);if(e)return e;let a;switch(t){case"valibot":a=(await import("./chunk-v9rg0a8g.js")).default();break;case"zod":a=(await import("./chunk-qvzvxsjw.js")).default();break;default:a=(await import("./chunk-sqhgnvvs.js")).default()}return s.set(t,a),a},d=async(t,e={})=>{let a=await r(t["~standard"].vendor),{components:n={},options:c}=e;return{schema:await a(t,{components:n,options:c}),components:Object.keys(n).length>0?n:void 0}};
3
- export{i as xg,d as yg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var t=Object.fromEntries([]);export{t as modules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ud as a,vd as b}from"./chunk-frsd6e1h.js";import"./chunk-b50t4jc5.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{a as read,b as copy};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{zg as o}from"./chunk-rcyzqa3g.js";import{PO as n}from"./chunk-f83wv08n.js";async function a(){try{let{toJsonSchema:t}=await import("./chunk-pzefsndd.js");return t}catch{throw new o("@valibot/to-json-schema")}}export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$f as e,Xf as a,Yf as b,Zf as c,_f as d}from"./chunk-7ab3yw9j.js";import"./chunk-et5dnymk.js";import"./chunk-dbztxdea.js";import"./chunk-543pt030.js";import"./chunk-bhetpmgq.js";import"./chunk-nfg7nt13.js";import"./chunk-rcyzqa3g.js";import"./chunk-h10wjk96.js";import"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Sl as s,Tl as t,Ul as u,Wl as v,Xl as w}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import{Em as a,Rm as b,Sm as c,Tm as d,Um as e,Vm as f,Wm as g,Xm as h,Ym as i,Zm as j,_m as k,an as l,bn as m,cn as n,en as o,gn as p,nn as q,on as r}from"./chunk-y287zwkr.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{a as sql,e as or,f as not,c as ne,j as lte,i as lt,p as like,l as isNull,m as isNotNull,k as inArray,h as gte,g as gt,n as exists,b as eq,r as desc,t as count,o as between,q as asc,d as and,w as Storage,v as NotFoundError,s as JsonMigration,u as Database};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-f83wv08n.js";var n="./highlights-hk7bwhj4.scm";export{n as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Yd as a}from"./chunk-yvjke593.js";import"./chunk-y4e7e42x.js";import"./chunk-yd2emszh.js";import"./chunk-3tmq81kq.js";import"./chunk-f83wv08n.js";export{a as fromIni};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wd as a}from"./chunk-tge53d52.js";import"./chunk-tczbhj0e.js";import"./chunk-f83wv08n.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{PO as t}from"./chunk-f83wv08n.js";var e=await import("./chunk-9akz8w0d.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{$f as E}from"./chunk-7ab3yw9j.js";import"./chunk-et5dnymk.js";import"./chunk-dbztxdea.js";import"./chunk-543pt030.js";import"./chunk-bhetpmgq.js";import"./chunk-nfg7nt13.js";import"./chunk-rcyzqa3g.js";import"./chunk-h10wjk96.js";import"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{PO as z}from"./chunk-f83wv08n.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-86jsqc7d.js"),C=await import("./chunk-6ypafpg8.js"),D=await import("./chunk-fvy24yhq.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};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ed as b}from"./chunk-0yjdatm6.js";import{Rd as f}from"./chunk-yajd975f.js";import{Zg as S}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{tl as v}from"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import{Ml as U,Ul as R,cm as k}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import{Vr as Z}from"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var i=f({command:"stats",describe:"show token usage and cost statistics",builder:(z)=>{return z.option("days",{describe:"show stats for the last N days (default: all time)",type:"number"}).option("tools",{describe:"number of tools to show (default: all)",type:"number"}).option("models",{describe:"show model statistics (default: hidden). Pass a number to show top N, otherwise shows all"}).option("project",{describe:"filter by project (default: all projects, empty string: current project)",type:"string"})},handler:async(z)=>{await b(process.cwd(),async()=>{let E=await y(z.days,z.project),_;if(z.models===!0)_=1/0;else if(typeof z.models==="number")_=z.models;u(E,z.tools,_)})}});async function w(){return k.project}async function p(){return R.use((E)=>E.select().from(U).all()).map((E)=>v.fromRow(E))}async function y(z,E){let _=await p(),L=86400000,J=(()=>{if(z===void 0)return 0;if(z===0){let V=new Date;return V.setHours(0,0,0,0),V.getTime()}return Date.now()-z*86400000})(),K=(()=>{if(z===void 0)return;if(z===0)return 1;return z})(),Y=J>0?_.filter((V)=>V.time.updated>=J):_;if(E!==void 0)if(E===""){let V=await w();Y=Y.filter((F)=>F.projectID===V.id)}else Y=Y.filter((V)=>V.projectID===E);let G={totalSessions:Y.length,totalMessages:0,totalCost:0,totalTokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}},toolUsage:{},modelUsage:{},dateRange:{earliest:Date.now(),latest:Date.now()},days:0,costPerDay:0,tokensPerSession:0,medianTokensPerSession:0};if(Y.length>1000)console.log(`Large dataset detected (${Y.length} sessions). This may take a while...`);if(Y.length===0)return G.days=K??0,G;let C=Date.now(),x=0,X=[],h=20;for(let V=0;V<Y.length;V+=h){let D=Y.slice(V,V+h).map(async(Q)=>{let W=await S.runPromise(v.Service.use((O)=>O.messages({sessionID:Q.id,agentID:"*"}))),N=0,H={input:0,output:0,reasoning:0,cache:{read:0,write:0}},j={},A={};for(let O of W){if(O.info.role==="assistant"){N+=O.info.cost||0;let B=`${O.info.providerID}/${O.info.modelID}`;if(!A[B])A[B]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};if(A[B].messages++,A[B].cost+=O.info.cost||0,O.info.tokens)H.input+=O.info.tokens.input||0,H.output+=O.info.tokens.output||0,H.reasoning+=O.info.tokens.reasoning||0,H.cache.read+=O.info.tokens.cache?.read||0,H.cache.write+=O.info.tokens.cache?.write||0,A[B].tokens.input+=O.info.tokens.input||0,A[B].tokens.output+=(O.info.tokens.output||0)+(O.info.tokens.reasoning||0),A[B].tokens.cache.read+=O.info.tokens.cache?.read||0,A[B].tokens.cache.write+=O.info.tokens.cache?.write||0}for(let B of O.parts)if(B.type==="tool"&&B.tool)j[B.tool]=(j[B.tool]||0)+1}return{messageCount:W.length,sessionCost:N,sessionTokens:H,sessionTotalTokens:H.input+H.output+H.reasoning+H.cache.read+H.cache.write,sessionToolUsage:j,sessionModelUsage:A,earliestTime:J>0?Q.time.updated:Q.time.created,latestTime:Q.time.updated}}),M=await Promise.all(D);for(let Q of M){C=Math.min(C,Q.earliestTime),x=Math.max(x,Q.latestTime),X.push(Q.sessionTotalTokens),G.totalMessages+=Q.messageCount,G.totalCost+=Q.sessionCost,G.totalTokens.input+=Q.sessionTokens.input,G.totalTokens.output+=Q.sessionTokens.output,G.totalTokens.reasoning+=Q.sessionTokens.reasoning,G.totalTokens.cache.read+=Q.sessionTokens.cache.read,G.totalTokens.cache.write+=Q.sessionTokens.cache.write;for(let[W,N]of Object.entries(Q.sessionToolUsage))G.toolUsage[W]=(G.toolUsage[W]||0)+N;for(let[W,N]of Object.entries(Q.sessionModelUsage)){if(!G.modelUsage[W])G.modelUsage[W]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};G.modelUsage[W].messages+=N.messages,G.modelUsage[W].tokens.input+=N.tokens.input,G.modelUsage[W].tokens.output+=N.tokens.output,G.modelUsage[W].tokens.cache.read+=N.tokens.cache.read,G.modelUsage[W].tokens.cache.write+=N.tokens.cache.write,G.modelUsage[W].cost+=N.cost}}}let $=Math.max(1,Math.ceil((x-C)/86400000)),q=K??$;G.dateRange={earliest:C,latest:x},G.days=q,G.costPerDay=G.totalCost/q;let I=G.totalTokens.input+G.totalTokens.output+G.totalTokens.reasoning+G.totalTokens.cache.read+G.totalTokens.cache.write;G.tokensPerSession=Y.length>0?I/Y.length:0,X.sort((V,F)=>V-F);let P=Math.floor(X.length/2);return G.medianTokensPerSession=X.length===0?0:X.length%2===0?(X[P-1]+X[P])/2:X[P],G}function u(z,E,_){function J(x,X){let $=55-x.length-X.length,q=Math.max(0,$);return`\u2502${x}${" ".repeat(q)}${X} \u2502`}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 OVERVIEW \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"),console.log(J("Sessions",z.totalSessions.toLocaleString())),console.log(J("Messages",z.totalMessages.toLocaleString())),console.log(J("Days",z.days.toString())),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 COST & TOKENS \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let K=isNaN(z.totalCost)?0:z.totalCost,Y=isNaN(z.costPerDay)?0:z.costPerDay,G=isNaN(z.tokensPerSession)?0:z.tokensPerSession;console.log(J("Total Cost",`$${K.toFixed(2)}`)),console.log(J("Avg Cost/Day",`$${Y.toFixed(2)}`)),console.log(J("Avg Tokens/Session",Z.number(Math.round(G))));let C=isNaN(z.medianTokensPerSession)?0:z.medianTokensPerSession;if(console.log(J("Median Tokens/Session",Z.number(Math.round(C)))),console.log(J("Input",Z.number(z.totalTokens.input))),console.log(J("Output",Z.number(z.totalTokens.output))),console.log(J("Cache Read",Z.number(z.totalTokens.cache.read))),console.log(J("Cache Write",Z.number(z.totalTokens.cache.write))),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),_!==void 0&&Object.keys(z.modelUsage).length>0){let x=Object.entries(z.modelUsage).sort(([,h],[,$])=>$.messages-h.messages),X=_===1/0?x:x.slice(0,_);console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 MODEL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(let[h,$]of X)console.log(`\u2502 ${h.padEnd(54)} \u2502`),console.log(J(" Messages",$.messages.toLocaleString())),console.log(J(" Input Tokens",Z.number($.tokens.input))),console.log(J(" Output Tokens",Z.number($.tokens.output))),console.log(J(" Cache Read",Z.number($.tokens.cache.read))),console.log(J(" Cache Write",Z.number($.tokens.cache.write))),console.log(J(" Cost",`$${$.cost.toFixed(4)}`)),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");process.stdout.write("\x1B[1A"),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}if(console.log(),Object.keys(z.toolUsage).length>0){let x=Object.entries(z.toolUsage).sort(([,q],[,I])=>I-q),X=E?x.slice(0,E):x;console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 TOOL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let h=Math.max(...X.map(([,q])=>q)),$=Object.values(z.toolUsage).reduce((q,I)=>q+I,0);for(let[q,I]of X){let P=Math.max(1,Math.floor(I/h*20)),V="\u2588".repeat(P),F=(I/$*100).toFixed(1),D=18,W=` ${(q.length>18?q.substring(0,16)+"..":q).padEnd(18)} ${V.padEnd(20)} ${I.toString().padStart(3)} (${F.padStart(4)}%)`,N=Math.max(0,56-W.length-1);console.log(`\u2502${W}${" ".repeat(N)} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}console.log()}export{u as displayStats,y as aggregateSessionStats,i as StatsCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Bg as a}from"./chunk-h10wjk96.js";import{Og as t,Zg as c}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-a550vst5.js";import"./chunk-e374shb8.js";import"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import"./chunk-cbmwhvxw.js";import{Et as i}from"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};