@qitqode/qitqode-android-arm64 0.2.11 → 0.2.14

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 (410) hide show
  1. package/bundle/{chunk-p5p4jh9s.js → chunk-00ft63qn.js} +1 -1
  2. package/bundle/chunk-00r3he5x.js +2 -0
  3. package/bundle/{chunk-bh1zbz62.js → chunk-02tmc2st.js} +1 -1
  4. package/bundle/{chunk-k8zbhj2p.js → chunk-05bkxat0.js} +2 -2
  5. package/bundle/{chunk-wspbjh74.js → chunk-06tgmvh6.js} +2 -2
  6. package/bundle/{chunk-s3hbwksw.js → chunk-07b4pkk6.js} +1 -1
  7. package/bundle/{chunk-fzxqn4j0.js → chunk-0ejx0yqx.js} +1 -1
  8. package/bundle/chunk-0ks20gz1.js +2 -0
  9. package/bundle/{chunk-wdy0fsp8.js → chunk-0m4gvjcv.js} +2 -2
  10. package/bundle/{chunk-jf4zyy7r.js → chunk-0mztgsxp.js} +1 -1
  11. package/bundle/{chunk-075gkea2.js → chunk-10kj86va.js} +1 -1
  12. package/bundle/{chunk-y8tx9x5b.js → chunk-10q04xh5.js} +1 -1
  13. package/bundle/{chunk-pdcj2rfz.js → chunk-175720ws.js} +2 -2
  14. package/bundle/{chunk-r1936yb5.js → chunk-19rs84t8.js} +1 -1
  15. package/bundle/{chunk-bwzbcwff.js → chunk-1a08ffyd.js} +1 -1
  16. package/bundle/{chunk-vbcekkw2.js → chunk-1bq15kf0.js} +2 -2
  17. package/bundle/{chunk-rvev3cy6.js → chunk-1e75j4m1.js} +2 -2
  18. package/bundle/{chunk-n4fwztya.js → chunk-1gdt9q05.js} +1 -1
  19. package/bundle/{chunk-wp0xd7at.js → chunk-1mfdmm2t.js} +1 -1
  20. package/bundle/{chunk-eya9c81t.js → chunk-1pft3sar.js} +1 -1
  21. package/bundle/chunk-1r7anzk5.js +2 -0
  22. package/bundle/{chunk-zr1cvkpb.js → chunk-1ypzf18e.js} +1 -1
  23. package/bundle/chunk-26e51217.js +2 -0
  24. package/bundle/{chunk-tyk97q7c.js → chunk-2ascwm7j.js} +1 -1
  25. package/bundle/{chunk-jfe9f2wv.js → chunk-2d61z24r.js} +1 -1
  26. package/bundle/chunk-2g4kxtz0.js +2 -0
  27. package/bundle/chunk-2jzay8a9.js +2 -0
  28. package/bundle/{chunk-fqvsxg00.js → chunk-2k2szpze.js} +1 -1
  29. package/bundle/chunk-2q78bdtj.js +2 -0
  30. package/bundle/{chunk-c53ev0da.js → chunk-2w3n0q9m.js} +2 -2
  31. package/bundle/{chunk-seda5sfd.js → chunk-2w79k0mh.js} +2 -2
  32. package/bundle/chunk-30rghawe.js +2 -0
  33. package/bundle/{chunk-j7d3v0x2.js → chunk-3152y1q9.js} +1 -1
  34. package/bundle/chunk-31a47ptm.js +10 -0
  35. package/bundle/chunk-33mzqyyb.js +3 -0
  36. package/bundle/chunk-34yk99ep.js +2 -0
  37. package/bundle/{chunk-xf1y0sc6.js → chunk-358wdvj7.js} +2 -2
  38. package/bundle/{chunk-zr89enb8.js → chunk-3c73rngn.js} +1 -1
  39. package/bundle/{chunk-h8yf5e2e.js → chunk-3cs1qf8x.js} +1 -1
  40. package/bundle/chunk-3dajnr1w.js +2 -0
  41. package/bundle/chunk-3ege6krg.js +2 -0
  42. package/bundle/chunk-43vpxggb.js +2 -0
  43. package/bundle/{chunk-5qydhr42.js → chunk-47jkx37s.js} +3 -3
  44. package/bundle/{chunk-wqkvsj5y.js → chunk-48rg4yhk.js} +2 -2
  45. package/bundle/chunk-49y7zg15.js +2 -0
  46. package/bundle/{chunk-e5cds19n.js → chunk-4hvenszg.js} +1 -1
  47. package/bundle/{chunk-9d2mtevw.js → chunk-4p9fny77.js} +1 -1
  48. package/bundle/{chunk-sbj816s8.js → chunk-4ppw719f.js} +1 -1
  49. package/bundle/{chunk-ghdegwnr.js → chunk-4r7fbkcm.js} +1 -1
  50. package/bundle/{chunk-r4qpsa4e.js → chunk-4s1n38ds.js} +2 -2
  51. package/bundle/{chunk-ya6r72ng.js → chunk-4v29ayke.js} +1 -1
  52. package/bundle/{chunk-yvtbt12y.js → chunk-4xqwt6dr.js} +2 -2
  53. package/bundle/{chunk-89b6ttzs.js → chunk-4ycg2c6f.js} +2 -2
  54. package/bundle/{chunk-b79bb2g3.js → chunk-5341jv20.js} +1 -1
  55. package/bundle/{chunk-1dnvdeat.js → chunk-583d91xq.js} +2 -2
  56. package/bundle/{chunk-t7s475b2.js → chunk-5cwy8y78.js} +2 -2
  57. package/bundle/{chunk-x28chfpz.js → chunk-5dvy83ms.js} +2 -2
  58. package/bundle/{chunk-fd6qxjtf.js → chunk-5h1s0akp.js} +1 -1
  59. package/bundle/{chunk-ztjrm8m0.js → chunk-5mf4qrye.js} +2 -2
  60. package/bundle/{chunk-hav9pgf3.js → chunk-5q98z8ck.js} +2 -2
  61. package/bundle/chunk-5qhsfjzq.js +3 -0
  62. package/bundle/{chunk-rpc0he6b.js → chunk-5rvvfgfy.js} +2 -2
  63. package/bundle/chunk-5xxn06g0.js +2 -0
  64. package/bundle/{chunk-tqnf1p88.js → chunk-61b81z2h.js} +1 -1
  65. package/bundle/{chunk-y24yxs9g.js → chunk-62gefpwn.js} +2 -2
  66. package/bundle/{chunk-2h8b0csf.js → chunk-674pexjx.js} +2 -2
  67. package/bundle/{chunk-4805mxf7.js → chunk-69htq8kq.js} +1 -1
  68. package/bundle/{chunk-2ts74cgq.js → chunk-69k7cdtv.js} +2 -2
  69. package/bundle/{chunk-vhh80d5j.js → chunk-6cztstry.js} +2 -2
  70. package/bundle/{chunk-78e76m4h.js → chunk-6d4xc6br.js} +1 -1
  71. package/bundle/{chunk-78yvbv9b.js → chunk-6dd2dx69.js} +2 -2
  72. package/bundle/{chunk-eftk07r3.js → chunk-6j53vtzd.js} +1 -1
  73. package/bundle/{chunk-yg0rs4g1.js → chunk-6kch0q2d.js} +2 -2
  74. package/bundle/{chunk-akrcbxfa.js → chunk-6pt6nqwk.js} +1 -1
  75. package/bundle/{chunk-rkmg0gbq.js → chunk-6wmtbebc.js} +1 -1
  76. package/bundle/{chunk-kr975sx0.js → chunk-6y0wgz2j.js} +1 -1
  77. package/bundle/{chunk-datctfgt.js → chunk-6yshpz0z.js} +2 -2
  78. package/bundle/{chunk-3hawwbw6.js → chunk-71jmhvef.js} +2 -2
  79. package/bundle/{chunk-1pd943m9.js → chunk-73a7ts8r.js} +1 -1
  80. package/bundle/{chunk-vf75j9wd.js → chunk-7a4sb6q7.js} +1 -1
  81. package/bundle/chunk-7cp30q0t.js +2 -0
  82. package/bundle/{chunk-611wfdn3.js → chunk-7s9msscb.js} +1 -1
  83. package/bundle/{chunk-r9ng8xx5.js → chunk-7w571q26.js} +1 -1
  84. package/bundle/chunk-7xc73qb1.js +2 -0
  85. package/bundle/{chunk-k5swnh8m.js → chunk-840mmmzz.js} +4 -4
  86. package/bundle/{chunk-jcn8bg31.js → chunk-86reb44c.js} +1 -1
  87. package/bundle/{chunk-48y4n9ne.js → chunk-86sfzgnf.js} +1 -1
  88. package/bundle/{chunk-bw0951fs.js → chunk-8a9sj8gp.js} +1 -1
  89. package/bundle/{chunk-wzfb19t6.js → chunk-8b9z8j3z.js} +1 -1
  90. package/bundle/{chunk-9d8meavf.js → chunk-8gkz5550.js} +1 -1
  91. package/bundle/chunk-8gz8fk6r.js +2 -0
  92. package/bundle/chunk-8ht7cq3h.js +2 -0
  93. package/bundle/{chunk-r6055kk0.js → chunk-8jkqyf9n.js} +2 -2
  94. package/bundle/{chunk-pfd8gzy4.js → chunk-8qpfphdz.js} +1 -1
  95. package/bundle/chunk-8qv0119d.js +2 -0
  96. package/bundle/{chunk-k558fr15.js → chunk-8zpsgfb6.js} +1 -1
  97. package/bundle/{chunk-tpw1ewqn.js → chunk-96sra8g8.js} +1 -1
  98. package/bundle/{chunk-wkepvmgt.js → chunk-99df6wvm.js} +1 -1
  99. package/bundle/{chunk-t3e19wdp.js → chunk-9amnqaeq.js} +1 -1
  100. package/bundle/{chunk-3tf7xfw5.js → chunk-9gxyt2ay.js} +2 -2
  101. package/bundle/{chunk-tz60e15h.js → chunk-9kc2th5c.js} +2 -2
  102. package/bundle/chunk-9m0eawt5.js +2 -0
  103. package/bundle/{chunk-ph46s66y.js → chunk-9mabvb06.js} +1 -1
  104. package/bundle/chunk-9thgxbze.js +2 -0
  105. package/bundle/{chunk-n230jbn9.js → chunk-9ttebtcf.js} +1 -1
  106. package/bundle/{chunk-ncvr75f6.js → chunk-9z7y4x7q.js} +1 -1
  107. package/bundle/{chunk-1p39y33b.js → chunk-9znfb8f2.js} +2 -2
  108. package/bundle/chunk-9zsp3qkh.js +2 -0
  109. package/bundle/{chunk-wpkr3vzf.js → chunk-a1mbach4.js} +1 -1
  110. package/bundle/chunk-a32y70fe.js +2 -0
  111. package/bundle/{chunk-32x2901e.js → chunk-a3g8de96.js} +1 -1
  112. package/bundle/{chunk-9gs4en9v.js → chunk-a8askx4y.js} +1 -1
  113. package/bundle/{chunk-y8bxvp3c.js → chunk-adws0hhk.js} +2 -2
  114. package/bundle/{chunk-22wa8zty.js → chunk-ae1g5y4r.js} +1 -1
  115. package/bundle/{chunk-ajgwyrcf.js → chunk-ahgb3r1c.js} +2 -2
  116. package/bundle/{chunk-6p848y99.js → chunk-art8gejd.js} +1 -1
  117. package/bundle/{chunk-q8qx38kz.js → chunk-avksqxan.js} +1 -1
  118. package/bundle/chunk-avzaqy6a.js +2 -0
  119. package/bundle/chunk-az12tp53.js +2 -0
  120. package/bundle/{chunk-yhr7s8qm.js → chunk-b350g18y.js} +2 -2
  121. package/bundle/chunk-b5dpzcc7.js +2 -0
  122. package/bundle/chunk-bcgtqx3g.js +2 -0
  123. package/bundle/{chunk-y565z8n2.js → chunk-bdcd2mcb.js} +2 -2
  124. package/bundle/chunk-bde5d507.js +2 -0
  125. package/bundle/{chunk-1rsabv4p.js → chunk-bemyyen3.js} +1 -1
  126. package/bundle/{chunk-xmt17jd4.js → chunk-bga4kqd1.js} +2 -2
  127. package/bundle/{chunk-46ewdxgh.js → chunk-bm8azfnt.js} +1 -1
  128. package/bundle/{chunk-92xxg12q.js → chunk-bmdqb48f.js} +1 -1
  129. package/bundle/{chunk-rxh160jr.js → chunk-bq6cvf16.js} +2 -2
  130. package/bundle/{chunk-cydpdkx7.js → chunk-bxnsrggq.js} +1 -1
  131. package/bundle/{chunk-n2ytaxyn.js → chunk-bzh71a92.js} +1 -1
  132. package/bundle/chunk-bzzggc3s.js +2 -0
  133. package/bundle/{chunk-hts68y73.js → chunk-c5cyt23k.js} +2 -2
  134. package/bundle/chunk-c8qx439t.js +2 -0
  135. package/bundle/{chunk-v5j3ypfv.js → chunk-ch7s512a.js} +1 -1
  136. package/bundle/{chunk-a2pd7nt5.js → chunk-chnr7pe5.js} +1 -1
  137. package/bundle/chunk-ckw51fn6.js +2 -0
  138. package/bundle/{chunk-7wshaze9.js → chunk-crqycrs4.js} +2 -2
  139. package/bundle/{chunk-qsgpbt4t.js → chunk-d10qre1b.js} +1 -1
  140. package/bundle/{chunk-8rc7cvex.js → chunk-d385e2qt.js} +1 -1
  141. package/bundle/{chunk-6xx66mr1.js → chunk-d4faz5xa.js} +1 -1
  142. package/bundle/{chunk-09n24ztn.js → chunk-d7h1dp0h.js} +1 -1
  143. package/bundle/chunk-denp0wrq.js +2 -0
  144. package/bundle/chunk-depxzjer.js +2 -0
  145. package/bundle/chunk-dhvqpcf3.js +2 -0
  146. package/bundle/chunk-dkqqswbv.js +2 -0
  147. package/bundle/{chunk-2vsqsxe1.js → chunk-dmb0ez0m.js} +3 -3
  148. package/bundle/chunk-dn0437c1.js +5 -0
  149. package/bundle/{chunk-xfsccqsm.js → chunk-dvp0r93q.js} +1 -1
  150. package/bundle/{chunk-43x9n8rp.js → chunk-e18hshcg.js} +1 -1
  151. package/bundle/chunk-e5t7jsxa.js +2 -0
  152. package/bundle/{chunk-vm8htc6d.js → chunk-e611m0p4.js} +1 -1
  153. package/bundle/{chunk-zj5snrsa.js → chunk-e8s4mp5n.js} +2 -2
  154. package/bundle/chunk-eb811dt2.js +2 -0
  155. package/bundle/{chunk-50knjq36.js → chunk-edvfqxfr.js} +1 -1
  156. package/bundle/{chunk-cg7zeppb.js → chunk-ej0yzstw.js} +2 -2
  157. package/bundle/{chunk-fsagyvkz.js → chunk-ep4drmt9.js} +1 -1
  158. package/bundle/{chunk-bzz2expb.js → chunk-eqsank84.js} +1 -1
  159. package/bundle/{chunk-czfjmrrq.js → chunk-et3tgx7t.js} +1 -1
  160. package/bundle/{chunk-vamwvx0x.js → chunk-f0dp1tf9.js} +1 -1
  161. package/bundle/chunk-fbz2xv2w.js +2 -0
  162. package/bundle/{chunk-88hmeyf5.js → chunk-fd04358e.js} +375 -305
  163. package/bundle/{chunk-c5n49vrd.js → chunk-fdmz0502.js} +2 -2
  164. package/bundle/{chunk-mnxcykeq.js → chunk-ffx0cr44.js} +2 -2
  165. package/bundle/{chunk-t076hwsv.js → chunk-ffyj5nsg.js} +2 -2
  166. package/bundle/{chunk-fqvrxy41.js → chunk-ffz334ab.js} +1 -1
  167. package/bundle/{chunk-dzw0j790.js → chunk-fkq0v5qv.js} +2 -2
  168. package/bundle/{chunk-mp5m0acf.js → chunk-fmcg649e.js} +1 -1
  169. package/bundle/{chunk-84qx54nf.js → chunk-fp2xgnjn.js} +2 -2
  170. package/bundle/{chunk-k4ajben7.js → chunk-fpzkyzny.js} +2 -2
  171. package/bundle/{chunk-bqqxvagz.js → chunk-g738e799.js} +2 -2
  172. package/bundle/{chunk-g83d3a0t.js → chunk-g77kddrs.js} +2 -2
  173. package/bundle/chunk-gbvcb4k1.js +2 -0
  174. package/bundle/{chunk-d39e4fa8.js → chunk-gd0j16gn.js} +1 -1
  175. package/bundle/chunk-gdtnqzbp.js +2 -0
  176. package/bundle/{chunk-j5dnzqjy.js → chunk-gfvq78gy.js} +1 -1
  177. package/bundle/{chunk-hntsg7q4.js → chunk-gkf7x1yj.js} +1 -1
  178. package/bundle/chunk-gkfvhh28.js +2 -0
  179. package/bundle/chunk-gnh8c49b.js +2 -0
  180. package/bundle/chunk-gvf6ek9f.js +2 -0
  181. package/bundle/chunk-gvx5hmhk.js +2 -0
  182. package/bundle/{chunk-s3zmxfz2.js → chunk-h036zy9e.js} +2 -2
  183. package/bundle/{chunk-0tya4pqb.js → chunk-hf39qx6t.js} +2 -2
  184. package/bundle/chunk-hham7r33.js +2 -0
  185. package/bundle/{chunk-wpx2vmf5.js → chunk-hrcqbadm.js} +1 -1
  186. package/bundle/chunk-hsjbe5zy.js +2 -0
  187. package/bundle/{chunk-jh2za7y4.js → chunk-hx13a8es.js} +3 -3
  188. package/bundle/{chunk-42gd2vx4.js → chunk-j15wejz0.js} +1 -1
  189. package/bundle/{chunk-vyf77kq1.js → chunk-j1bv93m4.js} +12 -10
  190. package/bundle/{chunk-y7cqyeve.js → chunk-j2snkw45.js} +2 -2
  191. package/bundle/{chunk-krk24aqm.js → chunk-j3agzs13.js} +2 -2
  192. package/bundle/{chunk-51vn4f06.js → chunk-j45p2v4a.js} +3 -3
  193. package/bundle/{chunk-7jvx29js.js → chunk-j46bxb1b.js} +1 -1
  194. package/bundle/{chunk-e9vh8d52.js → chunk-jvvctqjd.js} +2 -2
  195. package/bundle/chunk-jvx7jtm4.js +3 -0
  196. package/bundle/{chunk-ex47pb9n.js → chunk-jwv6fda1.js} +2 -2
  197. package/bundle/{chunk-5mgmq6yz.js → chunk-k0chq88p.js} +1 -1
  198. package/bundle/chunk-k6gdmqff.js +2 -0
  199. package/bundle/{chunk-8t17w67q.js → chunk-k769v1ds.js} +1 -1
  200. package/bundle/{chunk-zqzh5hp3.js → chunk-kdqhwa65.js} +1 -1
  201. package/bundle/{chunk-k56zj08h.js → chunk-ky3fhz9z.js} +1 -1
  202. package/bundle/chunk-kzkb4648.js +2 -0
  203. package/bundle/chunk-m2540waa.js +2 -0
  204. package/bundle/{chunk-49we3vy1.js → chunk-m6967jtv.js} +2 -2
  205. package/bundle/{chunk-71h3pmnn.js → chunk-m8kjtp60.js} +1 -1
  206. package/bundle/{chunk-q65qzc9w.js → chunk-mbmaeq0a.js} +1 -1
  207. package/bundle/{chunk-sjtq9bbb.js → chunk-meehnnv9.js} +2 -2
  208. package/bundle/{chunk-vnz9n9z0.js → chunk-mjkwd1sz.js} +1 -1
  209. package/bundle/chunk-mscvm1rm.js +2 -0
  210. package/bundle/chunk-mw3hh526.js +2 -0
  211. package/bundle/chunk-n3nsrk5n.js +2 -0
  212. package/bundle/{chunk-n9969djm.js → chunk-n6pn4f3r.js} +1 -1
  213. package/bundle/{chunk-w32xhz0x.js → chunk-n7zd97hy.js} +2 -2
  214. package/bundle/chunk-n9nmc4q4.js +2 -0
  215. package/bundle/{chunk-d1j8frtq.js → chunk-nb4xtk1n.js} +1 -1
  216. package/bundle/{chunk-pkm3w0ks.js → chunk-ngygp66y.js} +1 -1
  217. package/bundle/chunk-nj4as8vy.js +2 -0
  218. package/bundle/chunk-nrzca9yd.js +2 -0
  219. package/bundle/chunk-nxm6gpyv.js +2 -0
  220. package/bundle/{chunk-pcmsxhrb.js → chunk-nyxn7npc.js} +1 -1
  221. package/bundle/{chunk-k232ny9m.js → chunk-nzz7gzg2.js} +1 -1
  222. package/bundle/{chunk-csmdhh7r.js → chunk-p0852vfn.js} +2 -2
  223. package/bundle/{chunk-nwkp2f8e.js → chunk-p4xqfkbh.js} +1 -1
  224. package/bundle/{chunk-4ngvj758.js → chunk-pdcxmr6x.js} +1 -1
  225. package/bundle/{chunk-bxc3z38f.js → chunk-pp10epga.js} +2 -2
  226. package/bundle/{chunk-gz8k40ty.js → chunk-prz2fkn9.js} +1 -1
  227. package/bundle/{chunk-h6kmpgak.js → chunk-psmwrvqs.js} +2 -2
  228. package/bundle/{chunk-4d9s7cgr.js → chunk-pwq2f75j.js} +1 -1
  229. package/bundle/{chunk-hama2v6a.js → chunk-pwrwb7mn.js} +1 -1
  230. package/bundle/{chunk-1yh1f9yj.js → chunk-px69995t.js} +1 -1
  231. package/bundle/{chunk-1tdy73ha.js → chunk-q1dmxn63.js} +2 -2
  232. package/bundle/chunk-qbjqkezn.js +2 -0
  233. package/bundle/chunk-qhtp1xvx.js +2 -0
  234. package/bundle/chunk-qkztgpay.js +2 -0
  235. package/bundle/{chunk-aykvrqrp.js → chunk-qn1fhqyw.js} +2 -2
  236. package/bundle/{chunk-44685nzw.js → chunk-qpggztkq.js} +2 -2
  237. package/bundle/{chunk-sxtfssjv.js → chunk-qpk7jp6t.js} +1 -1
  238. package/bundle/{chunk-nvvja3ch.js → chunk-qqsj69m2.js} +1 -1
  239. package/bundle/{chunk-4c6d1wy1.js → chunk-qrztx1b4.js} +2 -2
  240. package/bundle/{chunk-e7a50j2w.js → chunk-qz20b42s.js} +1 -1
  241. package/bundle/{chunk-jt7g0r2j.js → chunk-rd08wx37.js} +2 -2
  242. package/bundle/{chunk-cm7yp259.js → chunk-rn3je2hv.js} +1 -1
  243. package/bundle/chunk-rnf3dy0y.js +2 -0
  244. package/bundle/{chunk-3amgvg81.js → chunk-rqap90xh.js} +2 -2
  245. package/bundle/chunk-rry4kq85.js +2 -0
  246. package/bundle/{chunk-rx29zmw2.js → chunk-rws2tsdv.js} +1 -1
  247. package/bundle/{chunk-bd66q24j.js → chunk-rx9eh3db.js} +3 -3
  248. package/bundle/{chunk-g7jwp73v.js → chunk-rxt6gktt.js} +1 -1
  249. package/bundle/chunk-ryfj80q6.js +2 -0
  250. package/bundle/{chunk-gfer8ch3.js → chunk-s0gmxpxm.js} +2 -2
  251. package/bundle/{chunk-vrt8wd3r.js → chunk-s9epttpy.js} +1 -1
  252. package/bundle/{chunk-95tec4gm.js → chunk-sb3cgb4v.js} +1 -1
  253. package/bundle/{chunk-7x4g7h04.js → chunk-set1f1wr.js} +1 -1
  254. package/bundle/{chunk-xphzr4wg.js → chunk-sg9enzsp.js} +2 -2
  255. package/bundle/{chunk-9svh74gt.js → chunk-sh03ka27.js} +1 -1
  256. package/bundle/chunk-snx49w8h.js +2 -0
  257. package/bundle/{chunk-zjfdptdj.js → chunk-spcdwmy4.js} +1 -1
  258. package/bundle/{chunk-a4cmpa56.js → chunk-sy76e7nr.js} +1 -1
  259. package/bundle/{chunk-bffm0wv9.js → chunk-szfqmkj6.js} +1 -1
  260. package/bundle/chunk-t21mdqbb.js +2 -0
  261. package/bundle/{chunk-n5dxwryh.js → chunk-tcyzj3rz.js} +1 -1
  262. package/bundle/chunk-tn2yyqeb.js +2 -0
  263. package/bundle/chunk-ttebf3nt.js +2 -0
  264. package/bundle/chunk-twpfh0mx.js +2 -0
  265. package/bundle/{chunk-fnmq42y5.js → chunk-tz1bzrnh.js} +1 -1
  266. package/bundle/chunk-tzf6d5qy.js +2 -0
  267. package/bundle/{chunk-8y03p2md.js → chunk-v1axkp21.js} +2 -2
  268. package/bundle/chunk-v2mq09wx.js +2 -0
  269. package/bundle/chunk-v59a02aj.js +2 -0
  270. package/bundle/{chunk-8rbbt1s8.js → chunk-v5me0cj9.js} +1 -1
  271. package/bundle/{chunk-49brdmgp.js → chunk-v7v0krrj.js} +1 -1
  272. package/bundle/{chunk-96nmxprr.js → chunk-veptx3fk.js} +1 -1
  273. package/bundle/chunk-vnstr4g1.js +2 -0
  274. package/bundle/{chunk-kxdw2vtq.js → chunk-vr13f6b5.js} +2 -2
  275. package/bundle/chunk-vxr4rzt0.js +2 -0
  276. package/bundle/{chunk-m8phqgxp.js → chunk-vzkdzhn0.js} +1 -1
  277. package/bundle/chunk-w0h9rczg.js +2 -0
  278. package/bundle/{chunk-qtdxy2q1.js → chunk-w136zswr.js} +3 -3
  279. package/bundle/chunk-w214dwws.js +2 -0
  280. package/bundle/{chunk-s6vhscvd.js → chunk-w4fr00s7.js} +2 -2
  281. package/bundle/chunk-w8344et5.js +2 -0
  282. package/bundle/{chunk-b274mb6v.js → chunk-w8nj5ph5.js} +1 -1
  283. package/bundle/chunk-weyg78et.js +2 -0
  284. package/bundle/{chunk-8z65v9c9.js → chunk-wf0n1cs9.js} +1 -1
  285. package/bundle/{chunk-cshsqavb.js → chunk-wfpnv00c.js} +2 -2
  286. package/bundle/{chunk-1h9sc0gy.js → chunk-wmj3xndt.js} +1 -1
  287. package/bundle/{chunk-e6ckxkj8.js → chunk-wrzn87w0.js} +1 -1
  288. package/bundle/{chunk-98z5pfvj.js → chunk-ws720v4j.js} +1 -1
  289. package/bundle/{chunk-63t0rhc9.js → chunk-x0de4z05.js} +2 -2
  290. package/bundle/{chunk-d6qs2pbx.js → chunk-x3dzzq0t.js} +1 -1
  291. package/bundle/{chunk-zskjqrmc.js → chunk-x4jnyj09.js} +1 -1
  292. package/bundle/chunk-xchj8gna.js +2 -0
  293. package/bundle/{chunk-s81ck6bw.js → chunk-xdcwx384.js} +1 -1
  294. package/bundle/{chunk-kt982884.js → chunk-xmf59618.js} +1 -1
  295. package/bundle/chunk-y18ptwk2.js +2 -0
  296. package/bundle/{chunk-ep92grvg.js → chunk-y1v7mf1a.js} +9 -9
  297. package/bundle/chunk-y3dpyz2d.js +2 -0
  298. package/bundle/{chunk-ccghr6pm.js → chunk-y5ydtbpd.js} +1 -1
  299. package/bundle/{chunk-tzwm08yc.js → chunk-yg9n2a2d.js} +1 -1
  300. package/bundle/chunk-ykvgmje9.js +35 -0
  301. package/bundle/chunk-yvjecrjy.js +2 -0
  302. package/bundle/chunk-yw2x6by6.js +2 -0
  303. package/bundle/{chunk-8qbhnwej.js → chunk-z0dj15g9.js} +1 -1
  304. package/bundle/chunk-z0r4syk8.js +2 -0
  305. package/bundle/{chunk-k4d8gwxe.js → chunk-z6qyx227.js} +1 -1
  306. package/bundle/chunk-z7c00g63.js +2 -0
  307. package/bundle/{chunk-pnmadk2h.js → chunk-zgwasq3p.js} +1 -1
  308. package/bundle/{chunk-mazakqr7.js → chunk-zh7e6kqs.js} +1 -1
  309. package/bundle/{chunk-4q14whpc.js → chunk-zjyaze0d.js} +1 -1
  310. package/bundle/chunk-znr0saas.js +2 -0
  311. package/bundle/{chunk-43eqr0ds.js → chunk-zpjtse0z.js} +184 -184
  312. package/bundle/chunk-zqqt7v17.js +2 -0
  313. package/bundle/chunk-zwrgh1hc.js +2 -0
  314. package/bundle/{chunk-8gn7r4kb.js → chunk-zx63mepv.js} +1 -1
  315. package/bundle/index.js +3 -3
  316. package/bundle/parser.worker.js +2 -2
  317. package/bundle/worker.js +1 -1
  318. package/package.json +3 -3
  319. package/bundle/chunk-06j0gaen.js +0 -2
  320. package/bundle/chunk-0bn86djg.js +0 -3
  321. package/bundle/chunk-0mm40z8g.js +0 -2
  322. package/bundle/chunk-1mqfhw0f.js +0 -2
  323. package/bundle/chunk-28kte9rt.js +0 -2
  324. package/bundle/chunk-2dhjehxe.js +0 -2
  325. package/bundle/chunk-2nnfxbd2.js +0 -2
  326. package/bundle/chunk-2w5zmgpb.js +0 -2
  327. package/bundle/chunk-34qt3fqj.js +0 -2
  328. package/bundle/chunk-3p0xvt47.js +0 -2
  329. package/bundle/chunk-3pzx5ret.js +0 -2
  330. package/bundle/chunk-3y4rmqmm.js +0 -2
  331. package/bundle/chunk-486874bd.js +0 -2
  332. package/bundle/chunk-4bcbvfsw.js +0 -2
  333. package/bundle/chunk-4t1ysdag.js +0 -2
  334. package/bundle/chunk-5q7a4h2w.js +0 -2
  335. package/bundle/chunk-63vamhf7.js +0 -2
  336. package/bundle/chunk-6hhv3n7c.js +0 -2
  337. package/bundle/chunk-7a9kfb2n.js +0 -2
  338. package/bundle/chunk-7b5vney6.js +0 -2
  339. package/bundle/chunk-7x9m1smk.js +0 -2
  340. package/bundle/chunk-82mnr6sf.js +0 -2
  341. package/bundle/chunk-8bea2r6p.js +0 -2
  342. package/bundle/chunk-8h6mhzhg.js +0 -2
  343. package/bundle/chunk-8n1cmvr7.js +0 -2
  344. package/bundle/chunk-955zj1y6.js +0 -2
  345. package/bundle/chunk-95vp9bvk.js +0 -2
  346. package/bundle/chunk-9wzxnwv7.js +0 -2
  347. package/bundle/chunk-9zve998d.js +0 -2
  348. package/bundle/chunk-a9bkr9x4.js +0 -2
  349. package/bundle/chunk-ac5vzpzt.js +0 -2
  350. package/bundle/chunk-c1exgasy.js +0 -2
  351. package/bundle/chunk-cgxzmkkf.js +0 -2
  352. package/bundle/chunk-cs3cbfm8.js +0 -2
  353. package/bundle/chunk-d29te4c1.js +0 -2
  354. package/bundle/chunk-d6q42p18.js +0 -2
  355. package/bundle/chunk-dfbexagg.js +0 -2
  356. package/bundle/chunk-dfkcp43a.js +0 -2
  357. package/bundle/chunk-dps1p1g1.js +0 -2
  358. package/bundle/chunk-e1fzgez5.js +0 -2
  359. package/bundle/chunk-egcvm4x2.js +0 -3
  360. package/bundle/chunk-ek3b08ed.js +0 -2
  361. package/bundle/chunk-f78yth0b.js +0 -2
  362. package/bundle/chunk-gamnnfna.js +0 -2
  363. package/bundle/chunk-gjxhz1a6.js +0 -2
  364. package/bundle/chunk-gpm39v12.js +0 -2
  365. package/bundle/chunk-gr8emzzx.js +0 -2
  366. package/bundle/chunk-gt6h68pk.js +0 -2
  367. package/bundle/chunk-hj588j4f.js +0 -2
  368. package/bundle/chunk-hqtex91e.js +0 -2
  369. package/bundle/chunk-jmgpr5th.js +0 -2
  370. package/bundle/chunk-jt79yt0t.js +0 -2
  371. package/bundle/chunk-jtz5re73.js +0 -2
  372. package/bundle/chunk-k4bj677f.js +0 -3
  373. package/bundle/chunk-kw5z5awx.js +0 -2
  374. package/bundle/chunk-mp42gb6q.js +0 -2
  375. package/bundle/chunk-mq0733qh.js +0 -2
  376. package/bundle/chunk-mrcsatmn.js +0 -2
  377. package/bundle/chunk-n24yx79r.js +0 -5
  378. package/bundle/chunk-ng2g9kkk.js +0 -2
  379. package/bundle/chunk-ngfhfyjs.js +0 -2
  380. package/bundle/chunk-nwygsfhk.js +0 -35
  381. package/bundle/chunk-p0dnmrqp.js +0 -2
  382. package/bundle/chunk-p6h2ydcp.js +0 -2
  383. package/bundle/chunk-qhakedgs.js +0 -2
  384. package/bundle/chunk-r18zetwf.js +0 -2
  385. package/bundle/chunk-r6rgrz25.js +0 -2
  386. package/bundle/chunk-rk4vp09j.js +0 -2
  387. package/bundle/chunk-s4jp4zce.js +0 -2
  388. package/bundle/chunk-sec9y622.js +0 -2
  389. package/bundle/chunk-sn7q178t.js +0 -2
  390. package/bundle/chunk-st0h54dm.js +0 -2
  391. package/bundle/chunk-sz75fx13.js +0 -2
  392. package/bundle/chunk-tefh2cgk.js +0 -2
  393. package/bundle/chunk-tfez99qv.js +0 -2
  394. package/bundle/chunk-tjk1hymv.js +0 -2
  395. package/bundle/chunk-v1098rqc.js +0 -2
  396. package/bundle/chunk-v30ezr68.js +0 -11
  397. package/bundle/chunk-v5wn741w.js +0 -2
  398. package/bundle/chunk-vp6ttkct.js +0 -2
  399. package/bundle/chunk-vpcsmwsb.js +0 -2
  400. package/bundle/chunk-x23s1s8k.js +0 -2
  401. package/bundle/chunk-xr6js4ek.js +0 -2
  402. package/bundle/chunk-y078gb3n.js +0 -2
  403. package/bundle/chunk-yewjnqee.js +0 -2
  404. package/bundle/chunk-ykk9e9as.js +0 -2
  405. package/bundle/chunk-yqn88gjf.js +0 -2
  406. package/bundle/chunk-yrxg3dex.js +0 -2
  407. package/bundle/chunk-z1xeqrgd.js +0 -2
  408. package/bundle/chunk-z5j46dem.js +0 -2
  409. package/bundle/chunk-zq0hpja9.js +0 -2
  410. package/bundle/chunk-zv89qwjc.js +0 -2
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wf as a}from"./chunk-51vn4f06.js";import"./chunk-9svh74gt.js";export default a();
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-34qt3fqj.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -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-nvvja3ch.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-c5n49vrd.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hg as r}from"./chunk-r4qpsa4e.js";import{UQ as o}from"./chunk-9svh74gt.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-vrt8wd3r.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-pcmsxhrb.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{dl as a,el as b,fl as c,gl as d,hl as e,il as f,jl as g,kl as h,ll as i}from"./chunk-xf1y0sc6.js";import"./chunk-5qydhr42.js";import"./chunk-s3zmxfz2.js";import"./chunk-j7d3v0x2.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{i as stopRefresh,h as startRefresh,g as refresh,d as readModelCatalogResponse,f as get,c as Provider,b as Model,a as MODEL_CATALOG_MAX_BYTES,e as Data};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{kv as a,lv as b,mv as c,nv as d,ov as e,pv as f,qv as g,rv as h}from"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{g as redactValue,e as init,f as flush,d as file,b as enabled,h as create,a as Level,c as Default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{lp as a,mp as b,np as c,op as d,pp as e,qp as f,rp as g,sp as h,tp as i}from"./chunk-4c6d1wy1.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ld as a}from"./chunk-mp5m0acf.js";import"./chunk-8t17w67q.js";import"./chunk-9svh74gt.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var t="./highlights-ghv9g403.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{vo as a,wo as b,xo as c,yo as d,zo as e}from"./chunk-v30ezr68.js";import"./chunk-9svh74gt.js";export{e as drizzle,b as SQLiteBunTransaction,a as SQLiteBunSession,d as SQLiteBunDatabase,c as PreparedQuery};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{dg as a,eg as b,fg as c,gg as d,hg as e}from"./chunk-bqqxvagz.js";import"./chunk-1dnvdeat.js";import"./chunk-zj5snrsa.js";import"./chunk-3tf7xfw5.js";import"./chunk-egcvm4x2.js";import"./chunk-nfg7nt13.js";import"./chunk-r4qpsa4e.js";import"./chunk-seda5sfd.js";import"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.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{Kf as l}from"./chunk-z1xeqrgd.js";import"./chunk-4d9s7cgr.js";import{Fg as q}from"./chunk-egcvm4x2.js";import"./chunk-nfg7nt13.js";import"./chunk-r4qpsa4e.js";import{UQ as C}from"./chunk-9svh74gt.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-zjfdptdj.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Nd as a}from"./chunk-jcn8bg31.js";import"./chunk-8t17w67q.js";import"./chunk-9svh74gt.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ih as f,Jh as q,Kh as w,Lh as x}from"./chunk-4q14whpc.js";import"./chunk-9svh74gt.js";export{w as applyModuleEvalRuntimeOptions,q as applyBaseRuntimeOptions,x as QuickJSWASMModule,f as QuickJSModuleCallbacks};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var h="./tree-sitter-typescript-zxjzwt75.wasm";export{h as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-zq0hpja9.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";function o(){return(e,n)=>e.toJsonSchema(n)}export{o as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{oe as a,pe as b,qe as c,re as d,se as e,te as f,ue as g,ve as h,we as i,xe as j,ye as k}from"./chunk-ajgwyrcf.js";import"./chunk-gfer8ch3.js";import"./chunk-wqkvsj5y.js";import"./chunk-9svh74gt.js";export{c as providerConfigFromInit,d as httpRequest,j as getInstanceMetadataEndpoint,k as fromInstanceMetadata,h as fromContainerMetadata,i as Endpoint,f as ENV_CMDS_RELATIVE_URI,e as ENV_CMDS_FULL_URI,g as ENV_CMDS_AUTH_TOKEN,a as DEFAULT_TIMEOUT,b as DEFAULT_MAX_RETRIES};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var l="./tree-sitter-javascript-nd0q4pe9.wasm";export{l as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cr as h}from"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.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,3 +0,0 @@
1
- // @bun
2
- import{UQ as o}from"./chunk-9svh74gt.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-075gkea2.js")).default();break;case"zod":a=(await import("./chunk-c1exgasy.js")).default();break;default:a=(await import("./chunk-yewjnqee.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 Fg,d as Gg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hv as a,Iv as b}from"./chunk-mnxcykeq.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{a as Path,b as Global};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ah as b}from"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-9svh74gt.js";export{b as QuickJSAsyncWASMModule};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var G="./tree-sitter-bash-hq5s6fxb.wasm";export{G as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hg as o}from"./chunk-r4qpsa4e.js";import{UQ as n}from"./chunk-9svh74gt.js";async function a(){try{let{toJsonSchema:t}=await import("./chunk-n230jbn9.js");return t}catch{throw new o("@valibot/to-json-schema")}}export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var e="./libopentui-c48jzvfh.so";export{e as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var a="./highlights-x6tmsnaa.scm";export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ae as b,Be as c,Ce as d,De as e,Ee as f,Fe as g,ze as a}from"./chunk-7x4g7h04.js";import"./chunk-qtdxy2q1.js";import"./chunk-gfer8ch3.js";import"./chunk-wqkvsj5y.js";import"./chunk-9svh74gt.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{ke as a}from"./chunk-d6qs2pbx.js";import"./chunk-qtdxy2q1.js";import"./chunk-gfer8ch3.js";import"./chunk-wqkvsj5y.js";import"./chunk-9svh74gt.js";export{a as fromIni};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kd as a}from"./chunk-8rbbt1s8.js";import"./chunk-8t17w67q.js";import"./chunk-9svh74gt.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var t="./injections-73j83es3.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var t=Object.fromEntries([]);export{t as modules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{EQ as a,FQ as b,GQ as c,HQ as d,IQ as e,JQ as f,KQ as g,LQ as h,MQ as i,NQ as j}from"./chunk-0tya4pqb.js";import"./chunk-9svh74gt.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{hg as E}from"./chunk-bqqxvagz.js";import"./chunk-1dnvdeat.js";import"./chunk-zj5snrsa.js";import"./chunk-3tf7xfw5.js";import"./chunk-egcvm4x2.js";import"./chunk-nfg7nt13.js";import"./chunk-r4qpsa4e.js";import"./chunk-seda5sfd.js";import"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import{UQ as z}from"./chunk-9svh74gt.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-2vsqsxe1.js"),C=await import("./chunk-akrcbxfa.js"),D=await import("./chunk-j5dnzqjy.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"./chunk-9svh74gt.js";var F="./tree-sitter-markdown-411r6y9b.wasm";export{F as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Id as a,Jd as b}from"./chunk-3amgvg81.js";import"./chunk-j7d3v0x2.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{a as read,b as copy};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{de as b}from"./chunk-b274mb6v.js";import{ag as t}from"./chunk-h6kmpgak.js";import{yh as u}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{Qk as y,Xj as m}from"./chunk-ep92grvg.js";import{ml as v}from"./chunk-xf1y0sc6.js";import{Kl as a}from"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import{CJ as s}from"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";import{EOL as f}from"os";var M=b({command:"models [provider]",describe:"list all available models",builder:(r)=>{return r.positional("provider",{describe:"provider ID to filter models by",type:"string",array:!1}).option("verbose",{describe:"use more verbose model output (includes metadata like costs)",type:"boolean"}).option("refresh",{describe:"refresh the models cache from models.dev",type:"boolean"})},handler:async(r)=>{if(r.refresh)await v.refresh(!0),t.println(t.Style.TEXT_SUCCESS_BOLD+"Models cache refreshed"+t.Style.TEXT_NORMAL);await a.provide({directory:process.cwd(),async fn(){await u.runPromise(s.gen(function*(){let n=yield*(yield*y.Service).list(),l=(e,o)=>{let i=n[e],d=Object.entries(i.models).sort(([c],[p])=>c.localeCompare(p));for(let[c,p]of d)if(process.stdout.write(`${e}/${c}`),process.stdout.write(f),o)process.stdout.write(JSON.stringify(p,null,2)),process.stdout.write(f)};if(r.provider){let e=m.make(r.provider);if(!n[e]){yield*s.sync(()=>t.error(`Provider not found: ${r.provider}`));return}yield*s.sync(()=>l(e,r.verbose));return}let h=Object.keys(n).sort((e,o)=>{let i=e.startsWith("opencode"),d=o.startsWith("opencode");if(i&&!d)return-1;if(!i&&d)return 1;return e.localeCompare(o)});yield*s.sync(()=>{for(let e of h)l(m.make(e),r.verbose)})}))}})}});export{M as ModelsCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var t="./tree-sitter-3jzf13jk.wasm";export{t as default};
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{Ql as no,Rl as Vt,Sl as oo,Tl as qt,Vl as Qt,Wl as Dt}from"./chunk-5qydhr42.js";import{$l as sr,$m as fn,$n as ki,Am as Xr,An as Bi,Bm as Yr,Bn as Lo,Cm as vr,Cn as Go,Dm as x,Dn as Qi,Em as zr,En as Di,Fm as kr,Fn as Ii,Gm as Vr,Gn as li,Hm as qr,Hn as Li,Im as wr,In as di,Jm as Fr,Jn as Gi,Km as cr,Kn as Ji,Lm as jr,Ln as Ci,Mm as br,Mn as Hi,Nm as hr,Nn as Mi,Om as ar,On as xi,Pm as ni,Pn as Ki,Qm as oi,Qn as Ri,Rm as ri,Rn as Ei,Sm as ii,Sn as Si,Tm as ti,Tn as Wi,Um as ei,Un as Pi,Vm as mi,Vn as Ui,Wm as yi,Wn as Zi,Xl as Nr,Xm as fi,Xn as Xi,Yl as pr,Ym as gi,Yn as Yi,Zl as Sn,Zm as j,Zn as vi,_l as Wn,_m as D,_n as zi,am as Ar,an as yn,ao as Vi,bm as Tr,bn as vo,bo as qi,cn as ui,co as wi,dm as Or,dn as Y,do as Fi,em as $r,en as _o,eo as ci,fm as Br,fn as Pn,fo as ji,gm as Qr,gn as No,go as bi,hm as Dr,hn as po,ho as hi,im as Ir,in as so,io as ai,jm as lr,jn as Ao,jo as nt,km as Lr,kn as To,ko as ot,lm as dr,ln as Oo,lo as rt,mm as Gr,mn as $o,mo as it,nm as Jr,nn as _i,no as tt,om as Cr,on as Bo,oo as et,pm as Hr,pn as Qo,po as mt,qm as Mr,qn as Do,qo as yt,rm as xr,rn as Ni,ro as jo,sm as Kr,sn as Io,so as ft,tm as Rr,tn as pi,to as gt,um as Er,un as lo,uo as ut,vm as Sr,vn as si,wm as Wr,wn as Ai,xm as Pr,xn as Ti,ym as Ur,yn as Oi,zm as Zr,zn as $i,zo as Zt}from"./chunk-v30ezr68.js";import{ep as hn,ip as an}from"./chunk-krk24aqm.js";import{jp as vt}from"./chunk-j7d3v0x2.js";import{kp as Mo}from"./chunk-3hawwbw6.js";import{Ts as Yn,Us as ro,Vs as sn,Ws as xt,Xs as Wt,Zs as Kt}from"./chunk-1p39y33b.js";import{_s as Et}from"./chunk-yg0rs4g1.js";import{$t as un}from"./chunk-wp0xd7at.js";import{yu as eo}from"./chunk-c5n49vrd.js";import{Cu as Wo}from"./chunk-r6055kk0.js";import{jv as nn,sv as V}from"./chunk-x28chfpz.js";import{Dv as go,Iv as Bn,vv as Bt,yv as wo,zv as q}from"./chunk-mnxcykeq.js";import{Jv as b}from"./chunk-0bn86djg.js";import{GB as Hn,UB as Kn,yB as An}from"./chunk-cshsqavb.js";import{$G as a,CJ as r,FM as $t,GL as Xo,JD as wn,KK as dn,LG as Ot,XD as Dn,hG as So,oG as kn,pQ as s,vG as _n}from"./chunk-tz60e15h.js";import{SQ as $n}from"./chunk-9svh74gt.js";var Fo={};$n(Fo,{run:()=>bt});var mn={time_created:j().notNull().$default(()=>Date.now()),time_updated:j().notNull().$onUpdate(()=>Date.now())};var C=yn("project",{id:D().$type().primaryKey(),worktree:D().notNull(),vcs:D(),name:D(),icon_url:D(),icon_color:D(),...mn,time_initialized:j(),sandboxes:D({mode:"json"}).notNull().$type(),commands:D({mode:"json"}).$type()});var gn=yn("session",{id:D().$type().primaryKey(),project_id:D().$type().notNull().references(()=>C.id,{onDelete:"cascade"}),workspace_id:D().$type(),parent_id:D().$type(),context_from:D().$type(),context_watermark:D().$type(),slug:D().notNull(),directory:D().notNull(),title:D().notNull(),version:D().notNull(),share_url:D(),summary_additions:j(),summary_deletions:j(),summary_files:j(),summary_diffs:D({mode:"json"}).$type(),revert:D({mode:"json"}).$type(),permission:D({mode:"json"}).$type(),...mn,time_compacting:j(),time_archived:j(),last_checkpoint_message_id:D().$type()},(n)=>[fn("session_project_idx").on(n.project_id),fn("session_workspace_idx").on(n.workspace_id),fn("session_parent_idx").on(n.parent_id),fn("session_context_from_idx").on(n.context_from)]),fo=yn("message",{id:D().$type().primaryKey(),session_id:D().$type().notNull().references(()=>gn.id,{onDelete:"cascade"}),agent_id:D().notNull().default("main"),...mn,data:D({mode:"json"}).notNull().$type()},(n)=>[fn("message_session_time_created_id_idx").on(n.session_id,n.time_created,n.id),fn("message_session_agent_idx").on(n.session_id,n.agent_id,n.id)]),zo=yn("part",{id:D().$type().primaryKey(),message_id:D().$type().notNull().references(()=>fo.id,{onDelete:"cascade"}),session_id:D().$type().notNull(),...mn,data:D({mode:"json"}).notNull().$type()},(n)=>[fn("part_message_id_id_idx").on(n.message_id,n.id),fn("part_session_idx").on(n.session_id)]),ko=yn("todo",{session_id:D().$type().notNull().references(()=>gn.id,{onDelete:"cascade"}),content:D().notNull(),status:D().notNull(),position:j().notNull(),...mn},(n)=>[vo({columns:[n.session_id,n.position]}),fn("todo_session_idx").on(n.session_id)]),Vo=yn("permission",{project_id:D().primaryKey().references(()=>C.id,{onDelete:"cascade"}),...mn,data:D({mode:"json"}).notNull().$type()});var qo=yn("session_share",{session_id:D().primaryKey().references(()=>gn.id,{onDelete:"cascade"}),id:D().notNull(),secret:D().notNull(),url:D().notNull(),...mn});import k from"path";var X=V.create({service:"json-migration"});async function bt(n,o){let i=k.join(Bn.Path.data,"storage");if(!await go.exists(i))return X.info("storage directory does not exist, skipping migration"),{projects:0,sessions:0,messages:0,parts:0,todos:0,permissions:0,shares:0,errors:[]};X.info("starting json to sqlite migration",{storageDir:i});let _=performance.now();n.run("PRAGMA journal_mode = WAL"),n.run("PRAGMA synchronous = OFF"),n.run("PRAGMA cache_size = 10000"),n.run("PRAGMA temp_store = MEMORY");let e={projects:0,sessions:0,messages:0,parts:0,todos:0,permissions:0,shares:0,errors:[]},T={sessions:0,todos:0,permissions:0,shares:0},p=e.errors,O=1000,H=Date.now();async function E(g){return wo.scan(g,{cwd:i,absolute:!0})}async function K(g,G,M){let I=M-G,A=Array(I);for(let P=0;P<I;P++)A[P]=go.readJson(g[G+P]);let J=await Promise.allSettled(A),Z=Array(I);for(let P=0;P<J.length;P++){let w=J[P];if(w.status==="fulfilled"){Z[P]=w.value;continue}p.push(`failed to read ${g[G+P]}: ${w.reason}`)}return Z}function R(g,G,M){if(g.length===0)return 0;try{return n.insert(G).values(g).onConflictDoNothing().run(),g.length}catch(I){return p.push(`failed to migrate ${M} batch: ${I}`),0}}X.info("scanning files...");let[S,B,l,d,u,N,m]=await Promise.all([E("project/*.json"),E("session/*/*.json"),E("message/*/*.json"),E("part/*/*.json"),E("todo/*.json"),E("permission/*.json"),E("session_share/*.json")]);X.info("file scan complete",{projects:S.length,sessions:B.length,messages:l.length,parts:d.length,todos:u.length,permissions:N.length,shares:m.length});let f=Math.max(1,S.length+B.length+l.length+d.length+u.length+N.length+m.length),t=o?.progress,y=0,Q=(g,G)=>{y=Math.min(f,y+G),t?.({current:y,total:f,label:g})};t?.({current:y,total:f,label:"starting"}),n.run("BEGIN TRANSACTION");let L=new Set,$=[];for(let g=0;g<S.length;g+=O){let G=Math.min(g+O,S.length),M=await K(S,g,G);$.length=0;for(let I=0;I<M.length;I++){let A=M[I];if(!A)continue;let J=k.basename(S[g+I],".json");L.add(J),$.push({id:J,worktree:A.worktree??"/",vcs:A.vcs,name:A.name??void 0,icon_url:A.icon?.url,icon_color:A.icon?.color,time_created:A.time?.created??H,time_updated:A.time?.updated??H,time_initialized:A.time?.initialized,sandboxes:A.sandboxes??[],commands:A.commands})}e.projects+=R($,C,"project"),Q("projects",G-g)}X.info("migrated projects",{count:e.projects,duration:Math.round(performance.now()-_)});let U=B.map((g)=>k.basename(k.dirname(g))),z=new Set,en=[];for(let g=0;g<B.length;g+=O){let G=Math.min(g+O,B.length),M=await K(B,g,G);en.length=0;for(let I=0;I<M.length;I++){let A=M[I];if(!A)continue;let J=k.basename(B[g+I],".json"),Z=U[g+I];if(!L.has(Z)){T.sessions++;continue}z.add(J),en.push({id:J,project_id:Z,parent_id:A.parentID??null,slug:A.slug??"",directory:A.directory??"",title:A.title??"",version:A.version??"",share_url:A.share?.url??null,summary_additions:A.summary?.additions??null,summary_deletions:A.summary?.deletions??null,summary_files:A.summary?.files??null,summary_diffs:A.summary?.diffs??null,revert:A.revert??null,permission:A.permission??null,time_created:A.time?.created??H,time_updated:A.time?.updated??H,time_compacting:A.time?.compacting??null,time_archived:A.time?.archived??null})}e.sessions+=R(en,gn,"session"),Q("sessions",G-g)}if(X.info("migrated sessions",{count:e.sessions}),T.sessions>0)X.warn("skipped orphaned sessions",{count:T.sessions});let Nn=[],W=[],Fn=new Map;for(let g of l){let G=k.basename(k.dirname(g));if(!z.has(G))continue;Nn.push(g),W.push(G)}for(let g=0;g<Nn.length;g+=O){let G=Math.min(g+O,Nn.length),M=await K(Nn,g,G),I=Array(M.length),A=0;for(let J=0;J<M.length;J++){let Z=M[J];if(!Z)continue;let P=Nn[g+J],w=k.basename(P,".json"),En=W[g+J];Fn.set(w,En);let In=Z;delete In.id,delete In.sessionID,I[A++]={id:w,session_id:En,time_created:Z.time?.created??H,time_updated:Z.time?.updated??H,data:In}}I.length=A,e.messages+=R(I,fo,"message"),Q("messages",G-g)}X.info("migrated messages",{count:e.messages});for(let g=0;g<d.length;g+=O){let G=Math.min(g+O,d.length),M=await K(d,g,G),I=Array(M.length),A=0;for(let J=0;J<M.length;J++){let Z=M[J];if(!Z)continue;let P=d[g+J],w=k.basename(P,".json"),En=k.basename(k.dirname(P)),In=Fn.get(En);if(!In){p.push(`part missing message session: ${P}`);continue}if(!z.has(In))continue;let bn=Z;delete bn.id,delete bn.messageID,delete bn.sessionID,I[A++]={id:w,message_id:En,session_id:In,time_created:Z.time?.created??H,time_updated:Z.time?.updated??H,data:bn}}I.length=A,e.parts+=R(I,zo,"part"),Q("parts",G-g)}X.info("migrated parts",{count:e.parts});let On=u.map((g)=>k.basename(g,".json"));for(let g=0;g<u.length;g+=O){let G=Math.min(g+O,u.length),M=await K(u,g,G),I=[];for(let A=0;A<M.length;A++){let J=M[A];if(!J)continue;let Z=On[g+A];if(!z.has(Z)){T.todos++;continue}if(!Array.isArray(J)){p.push(`todo not an array: ${u[g+A]}`);continue}for(let P=0;P<J.length;P++){let w=J[P];if(!w?.content||!w?.status)continue;I.push({session_id:Z,content:w.content,status:w.status,position:P,time_created:H,time_updated:H})}}e.todos+=R(I,ko,"todo"),Q("todos",G-g)}if(X.info("migrated todos",{count:e.todos}),T.todos>0)X.warn("skipped orphaned todos",{count:T.todos});let cn=N.map((g)=>k.basename(g,".json")),Rn=[];for(let g=0;g<N.length;g+=O){let G=Math.min(g+O,N.length),M=await K(N,g,G);Rn.length=0;for(let I=0;I<M.length;I++){let A=M[I];if(!A)continue;let J=cn[g+I];if(!L.has(J)){T.permissions++;continue}Rn.push({project_id:J,data:A})}e.permissions+=R(Rn,Vo,"permission"),Q("permissions",G-g)}if(X.info("migrated permissions",{count:e.permissions}),T.permissions>0)X.warn("skipped orphaned permissions",{count:T.permissions});let jn=m.map((g)=>k.basename(g,".json")),Gn=[];for(let g=0;g<m.length;g+=O){let G=Math.min(g+O,m.length),M=await K(m,g,G);Gn.length=0;for(let I=0;I<M.length;I++){let A=M[I];if(!A)continue;let J=jn[g+I];if(!z.has(J)){T.shares++;continue}if(!A?.id||!A?.secret||!A?.url){p.push(`session_share missing id/secret/url: ${m[g+I]}`);continue}Gn.push({session_id:J,id:A.id,secret:A.secret,url:A.url})}e.shares+=R(Gn,qo,"session_share"),Q("shares",G-g)}if(X.info("migrated session shares",{count:e.shares}),T.shares>0)X.warn("skipped orphaned session shares",{count:T.shares});if(n.run("COMMIT"),X.info("json migration complete",{projects:e.projects,sessions:e.sessions,messages:e.messages,parts:e.parts,todos:e.todos,permissions:e.permissions,shares:e.shares,errorCount:e.errors.length,duration:Math.round(performance.now()-_)}),e.errors.length>0)X.warn("migration errors",{errors:e.errors.slice(0,20)});return t?.({current:f,total:f,label:"complete"}),e}var Ln={};$n(Ln,{use:()=>Me,transaction:()=>Ke,textDecoder:()=>mi,sumDistinct:()=>ir,sum:()=>rr,sql:()=>x,relationsOrderToSQL:()=>tt,relationsFilterToSQL:()=>it,relationToSQL:()=>mt,relationExtrasToSQL:()=>et,processRelations:()=>Wi,placeholder:()=>kr,param:()=>vr,orderSelectedFields:()=>jr,orderByOperators:()=>Vi,or:()=>No,operators:()=>ki,notLike:()=>si,notInArray:()=>_i,notIlike:()=>Ti,notExists:()=>Ni,notBetween:()=>pi,not:()=>po,noopMapper:()=>Xr,noopEncoder:()=>Zr,noopDecoder:()=>Ur,ne:()=>_o,name:()=>Wr,min:()=>er,max:()=>tr,mapUpdateSet:()=>hr,mapResultRow:()=>cr,mapRelationalRow:()=>wi,mapColumnsInSQLToAlias:()=>xi,mapColumnsInAliasedSQLToAlias:()=>Mi,lte:()=>Oo,lt:()=>To,like:()=>lo,l2Distance:()=>mr,l1Distance:()=>yr,jaccardDistance:()=>_r,isWithEnum:()=>fi,isView:()=>wr,isTable:()=>dr,isSQLWrapper:()=>Kr,isNull:()=>Bo,isNotNull:()=>Qo,isDriverValueEncoder:()=>Pr,isConfig:()=>ei,is:()=>Sn,innerProduct:()=>fr,inArray:()=>$o,ilike:()=>Ai,haveSameKeys:()=>br,hasOwnEntityKind:()=>pr,hammingDistance:()=>ur,gte:()=>Ao,gt:()=>so,getViewSelectedFields:()=>oi,getViewName:()=>Fr,getTableUniqueName:()=>Jr,getTableName:()=>Gr,getTableLikeName:()=>ii,getTableColumns:()=>ni,getTableAsAliasSQL:()=>yt,getOriginalColumnFromAlias:()=>Ki,getOrderByOperators:()=>qi,getColumns:()=>ri,getColumnTable:()=>sr,getColumnNameAndConfig:()=>ti,getChannelPath:()=>zt,fillPlaceholders:()=>Vr,fieldSelectionToSQL:()=>rt,extractTablesFromSchema:()=>ai,extractExtendedColumnType:()=>Ar,exists:()=>Do,eq:()=>Y,entityKind:()=>Nr,effect:()=>xe,desc:()=>Go,defineRelationsPart:()=>ot,defineRelations:()=>nt,createRelationsHelper:()=>hi,countDistinct:()=>ao,count:()=>uo,cosineDistance:()=>gr,close:()=>He,buildRelationsParts:()=>Ui,buildRelations:()=>Pi,bindIfParam:()=>ui,between:()=>Io,avgDistinct:()=>or,avg:()=>nr,assertUnreachable:()=>yi,asc:()=>Lo,arrayOverlaps:()=>Bi,arrayContains:()=>Oi,arrayContained:()=>$i,applyMixins:()=>ar,and:()=>Pn,aliasedTableColumn:()=>Hi,aliasedTable:()=>Gi,aliasedRelation:()=>Ci,aliasedColumn:()=>Ji,WithSubquery:()=>Hr,ViewSelectionAliasProxyHandler:()=>Ii,ViewBaseConfig:()=>Mr,View:()=>qr,TransactionRollbackError:()=>Si,TableSchema:()=>Or,TableColumns:()=>$r,TableAliasProxyHandler:()=>li,Table:()=>Lr,Subquery:()=>Cr,StringChunk:()=>Rr,SQL:()=>Er,RelationsHelperStatic:()=>bi,RelationsBuilderTable:()=>Fi,RelationsBuilderJunctionColumn:()=>ji,RelationsBuilderColumn:()=>ci,RelationTableAliasProxyHandler:()=>di,Relation:()=>Zi,QueryPromise:()=>Qi,Placeholder:()=>zr,Path:()=>Po,Param:()=>Yr,OriginalName:()=>Qr,One:()=>Xi,NotFoundError:()=>Ce,NoopLogger:()=>ut,Name:()=>Sr,Many:()=>Yi,IsAlias:()=>Ir,FakePrimitiveParam:()=>xr,ExtraConfigColumns:()=>Br,ExtraConfigBuilder:()=>lr,DrizzleQueryError:()=>Ei,DrizzleError:()=>Ri,DefaultLogger:()=>gt,Count:()=>zi,ConsoleLogWriter:()=>ft,ColumnTableAliasProxyHandler:()=>Di,ColumnBuilder:()=>Tr,ColumnAliasProxyHandler:()=>Li,Column:()=>Wn,Client:()=>Mn,CONSTANTS:()=>gi,BaseName:()=>Dr,AggregatedField:()=>vi});import ht from"crypto";import co,{existsSync as at,readdirSync as ne}from"fs";import{join as oe}from"path";function bo(n){if(co.existsSync(`${n.migrationsFolder}/meta/_journal.json`))throw Error('We detected that you have old drizzle-kit migration folders. You must upgrade drizzle-kit and run "drizzle-kit up"');let o=n.migrationsFolder,i=[],_=ne(o).map((e)=>({path:oe(o,e,"migration.sql"),name:e})).filter((e)=>at(e.path));_.sort((e,T)=>e.name.localeCompare(T.name));for(let e of _){let T=e.path,p=e.name.slice(0,14),O=co.readFileSync(T).toString(),H=O.split("--> statement-breakpoint").map((K)=>{return K}),E=jo(p);i.push({sql:H,bps:!0,folderMillis:E,hash:ht.createHash("sha256").update(O).digest("hex"),name:e.name})}return i}function ho(n,o){if(Array.isArray(o)||"migrationsJournal"in o){let _=Array.isArray(o)?o:o.migrationsJournal,e=Array.isArray(o)?void 0:o.migrationsTable,T=_.map((p)=>({sql:p.sql.split("--> statement-breakpoint"),folderMillis:p.timestamp,hash:"",bps:!0,name:p.name}));return n.dialect.migrate(T,n.session,{migrationsTable:e})}let i=bo(o);return n.dialect.migrate(i,n.session,o)}function uo(n){return x`count(${n||x.raw("*")})`.mapWith(Number)}function ao(n){return x`count(distinct ${n})`.mapWith(Number)}function nr(n){return x`avg(${n})`.mapWith(String)}function or(n){return x`avg(distinct ${n})`.mapWith(String)}function rr(n){return x`sum(${n})`.mapWith(String)}function ir(n){return x`sum(distinct ${n})`.mapWith(String)}function tr(n){return x`max(${n})`.mapWith(Sn(n,Wn)?n:String)}function er(n){return x`min(${n})`.mapWith(Sn(n,Wn)?n:String)}function Jn(n){return JSON.stringify(n)}function mr(n,o){if(Array.isArray(o))return x`${n} <-> ${Jn(o)}`;return x`${n} <-> ${o}`}function yr(n,o){if(Array.isArray(o))return x`${n} <+> ${Jn(o)}`;return x`${n} <+> ${o}`}function fr(n,o){if(Array.isArray(o))return x`${n} <#> ${Jn(o)}`;return x`${n} <#> ${o}`}function gr(n,o){if(Array.isArray(o))return x`${n} <=> ${Jn(o)}`;return x`${n} <=> ${o}`}function ur(n,o){if(Array.isArray(o))return x`${n} <~> ${Jn(o)}`;return x`${n} <~> ${o}`}function _r(n,o){if(Array.isArray(o))return x`${n} <%> ${Jn(o)}`;return x`${n} <%> ${o}`}import to from"path";var vn={};$n(vn,{workspaceID:()=>Be,useEffect:()=>Ie,use:()=>De,make:()=>Qe,invalidate:()=>Le,has:()=>le,get:()=>Eo,directory:()=>io,context:()=>Ro,bind:()=>$e});import{EventEmitter as re}from"events";var Un=new re;var Jo=new Set;function _t(n){return Jo.add(n),()=>{Jo.delete(n)}}async function Co(n){await Promise.allSettled([...Jo].map((o)=>o(n)))}function Zn(n){return n()}var Ct={};$n(Ct,{setInitialized:()=>_e,list:()=>ge,layer:()=>Jt,get:()=>ue,fromRow:()=>pn,defaultLayer:()=>Ko,UpdateInput:()=>fe,Service:()=>Cn,Info:()=>dt,Event:()=>Gt});import*as c from"fs/promises";import*as It from"os";import*as Qn from"path";var ie=s.String.pipe(s.brand("ProjectID")),F=ie.pipe(hn((n)=>({global:n.make("global"),zod:b.string().pipe(b.custom())})));import*as ln from"fs/promises";import*as h from"path";import*as st from"crypto";async function Ho(n){let o=h.resolve(n);while(!0){let i=h.join(o,".git"),_=await ln.stat(i).catch(()=>null);if(_){if(_.isDirectory())return i;let p=(await ln.readFile(i,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(!p)return null;let O=h.isAbsolute(p[1])?p[1]:h.resolve(o,p[1]);return h.resolve(O,"../..")}let e=h.dirname(o);if(e===o)return null;o=e}}async function Nt(n){let o=await ln.readFile(n,"utf-8").catch(()=>null);if(o===null)return null;return o.trim()||null}async function pt(n){let o=await Nt(n);if(o)return o;let i=st.randomUUID();try{return await ln.writeFile(n,i,{flag:"wx"}),i}catch(_){if(_.code!=="EEXIST")throw _;let e=await Nt(n);if(e)return e;throw Error(`Project ID file was concurrently created but is empty: ${n}`)}}async function At(n){let o=await Ho(n);if(o){let _=h.join(o,"qitqode-project-id");return F.make(await pt(_))}let i=h.join(n,".qitqode-project-id");return F.make(await pt(i))}async function ee(n){let o=await Ho(n);if(!o)return;let i=Qn.join(n,".qitqode-project-id"),_=Qn.join(o,"qitqode-project-id"),e=(O)=>c.access(O).then(()=>!0).catch(()=>!1);if(await e(i)){if(!await e(_)){let O=await c.readFile(i,"utf-8");await c.writeFile(_,O)}await c.unlink(i).catch(()=>{})}let T=Qn.join(o,"info","exclude");if(await c.mkdir(Qn.dirname(T),{recursive:!0}),!(await c.readFile(T,"utf-8").catch(()=>"")).includes(".qitqode-project-id"))await c.appendFile(T,`
3
- .qitqode-project-id
4
- `)}var Tt=V.create({service:"project"}),me=262144,xo=s.Literal("git"),lt=s.Struct({url:s.optional(s.String),override:s.optional(s.String),color:s.optional(s.String)}),Lt=s.Struct({start:s.optional(s.String.annotate({description:"Startup script to run when creating a new workspace (worktree)"}))}),ye=s.Struct({created:s.Number,updated:s.Number,initialized:s.optional(s.Number)}),dt=s.Struct({id:F,worktree:s.String,vcs:s.optional(xo),name:s.optional(s.String),icon:s.optional(lt),commands:s.optional(Lt),time:ye,sandboxes:s.Array(s.String)}).annotate({identifier:"Project"}).pipe(hn((n)=>({zod:an(n)}))),Gt={Updated:Dt.define("project.updated",dt.zod)};function pn(n){let o=n.icon_url||n.icon_color?{url:n.icon_url??void 0,color:n.icon_color??void 0}:void 0;return{id:n.id,worktree:n.worktree,vcs:n.vcs?s.decodeUnknownSync(xo)(n.vcs):void 0,name:n.name??void 0,icon:o,time:{created:n.time_created,updated:n.time_updated,initialized:n.time_initialized??void 0},sandboxes:n.sandboxes,commands:n.commands??void 0}}var fe=b.object({projectID:F.zod,name:b.string().optional(),icon:an(lt).optional(),commands:an(Lt).optional()});class Cn extends Dn.Service()("@qitqode/Project"){}var Jt=a.effect(Cn,r.gen(function*(){let n=yield*q.Service,o=yield*$t.Path,i=yield*no.ChildProcessSpawner,_=r.fnUntraced(function*(t,y){return yield*Qt(i,t,y)},r.catch(()=>r.succeed({code:1,text:"",stderr:""}))),e=(t)=>r.sync(()=>Ln.use(t)),T=(t)=>r.sync(()=>Un.emit("event",{directory:"global",project:t.id,payload:{type:Gt.Updated.type,properties:t}})),p=s.decodeUnknownSync(s.optional(xo))(nn.QITQODE_FAKE_VCS),O=(t,y)=>{if(!y)return t;if(y=y.replace(/[\r\n]+$/,""),!y)return t;if(y=q.windowsPath(y),o.isAbsolute(y))return o.normalize(y);return o.resolve(t,y)},H=yield*Ot.Scope,E=r.fn("Project.fromDirectory")(function*(t){Tt.info("fromDirectory",{directory:t});let y=yield*r.gen(function*(){if(nn.QITQODE_DISABLE_GIT)return{id:F.global,worktree:t,sandbox:t,vcs:p};let z=(yield*n.up({targets:[".git"],start:t}).pipe(r.orDie))[0];if(!z)return{id:F.global,worktree:"/",sandbox:"/",vcs:p};let en=o.dirname(z),Nn=process.env.HOME??process.env.USERPROFILE??It.homedir();if(en===Nn||Qn.parse(en).root===en)return Tt.warn("ignoring .git at home or filesystem root, snapshots disabled",{dotgit:z}),{id:F.global,worktree:t,sandbox:t,vcs:p};let W=en,Fn=yield*r.sync(()=>Mo("git")),On;if(!Fn)return{id:On??F.global,worktree:W,sandbox:W,vcs:p};let cn=yield*_(["rev-parse","--git-common-dir"],{cwd:W});if(cn.code!==0)return{id:On??F.global,worktree:W,sandbox:W,vcs:p};let Rn=(()=>{let Gn=O(W,cn.text.trim());return Gn===W?W:o.dirname(Gn)})();if(On==null)yield*r.promise(()=>ee(W)),On=yield*r.promise(()=>At(W));let jn=yield*_(["rev-parse","--show-toplevel"],{cwd:W});if(jn.code!==0)return{id:On,worktree:W,sandbox:W,vcs:p};return W=O(W,jn.text.trim()),{id:On,sandbox:W,worktree:Rn,vcs:"git"}}),Q=yield*e((U)=>U.select().from(C).where(Y(C.id,y.id)).get()),L=Q?pn(Q):{id:y.id,worktree:y.worktree,vcs:y.vcs,sandboxes:[],time:{created:Date.now(),updated:Date.now()}};if(nn.QITQODE_EXPERIMENTAL_ICON_DISCOVERY)yield*K(L).pipe(r.ignore,r.forkIn(H));let $={...L,worktree:y.worktree,vcs:y.vcs,time:{...L.time,updated:Date.now()}};if(y.sandbox!==$.worktree&&!$.sandboxes.includes(y.sandbox))$.sandboxes.push(y.sandbox);if($.sandboxes=yield*r.forEach($.sandboxes,(U)=>n.exists(U).pipe(r.orDie,r.map((z)=>z?U:void 0)),{concurrency:16}).pipe(r.map((U)=>U.filter((z)=>z!==void 0))),yield*e((U)=>U.insert(C).values({id:$.id,worktree:$.worktree,vcs:$.vcs??null,name:$.name,icon_url:$.icon?.url,icon_color:$.icon?.color,time_created:$.time.created,time_updated:$.time.updated,time_initialized:$.time.initialized,sandboxes:$.sandboxes,commands:$.commands}).onConflictDoUpdate({target:C.id,set:{worktree:$.worktree,vcs:$.vcs??null,name:$.name,icon_url:$.icon?.url,icon_color:$.icon?.color,time_updated:$.time.updated,time_initialized:$.time.initialized,sandboxes:$.sandboxes,commands:$.commands}}).run()),y.id!==F.global)yield*e((U)=>U.update(gn).set({project_id:y.id}).where(Pn(Y(gn.project_id,F.global),Y(gn.directory,y.worktree))).run());return yield*T($),{project:$,sandbox:y.sandbox}}),K=r.fn("Project.discover")(function*(t){if(t.vcs!=="git")return;if(t.icon?.override)return;if(t.icon?.url)return;let Q=(yield*n.glob("**/favicon.{ico,png,svg,jpg,jpeg,webp}",{cwd:t.worktree,absolute:!0,include:"file"}).pipe(r.orDie)).sort((Nn,W)=>Nn.length-W.length)[0];if(!Q)return;let L=yield*n.stat(Q).pipe(r.orDie);if(Number(L.size)>me)return;let $=yield*n.readFile(Q).pipe(r.orDie),U=Buffer.from($).toString("base64"),en=`data:${q.mimeType(Q)};base64,${U}`;yield*B({projectID:t.id,icon:{url:en}})}),R=r.fn("Project.list")(function*(){return yield*e((t)=>t.select().from(C).all().map(pn))}),S=r.fn("Project.get")(function*(t){let y=yield*e((Q)=>Q.select().from(C).where(Y(C.id,t)).get());return y?pn(y):void 0}),B=r.fn("Project.update")(function*(t){let y=yield*e((L)=>L.update(C).set({name:t.name,icon_url:t.icon?.url,icon_color:t.icon?.color,commands:t.commands,time_updated:Date.now()}).where(Y(C.id,t.projectID)).returning().get());if(!y)throw Error(`Project not found: ${t.projectID}`);let Q=pn(y);return yield*T(Q),Q}),l=r.fn("Project.initGit")(function*(t){if(t.project.vcs==="git")return t.project;if(!(yield*r.sync(()=>Mo("git"))))throw Error("Git is not installed");let y=yield*_(["init","--quiet"],{cwd:t.directory});if(y.code!==0)throw Error(y.stderr.trim()||y.text.trim()||"Failed to initialize git repository");let{project:Q}=yield*E(t.directory);return Q}),d=r.fn("Project.setInitialized")(function*(t){yield*e((y)=>y.update(C).set({time_initialized:Date.now()}).where(Y(C.id,t)).run())}),u=r.fn("Project.sandboxes")(function*(t){let y=yield*e((L)=>L.select().from(C).where(Y(C.id,t)).get());if(!y)return[];let Q=pn(y);return yield*r.forEach(Q.sandboxes,(L)=>n.isDir(L).pipe(r.orDie,r.map(($)=>$?L:void 0)),{concurrency:16}).pipe(r.map((L)=>L.filter(($)=>$!==void 0)))}),N=r.fnUntraced(function*(t,y){let Q=yield*e((L)=>L.update(C).set({sandboxes:y,time_updated:Date.now()}).where(Y(C.id,t)).returning().get());if(!Q)throw Error(`Project not found: ${t}`);yield*T(pn(Q))}),m=r.fn("Project.addSandbox")(function*(t,y){let Q=yield*e(($)=>$.select().from(C).where(Y(C.id,t)).get());if(!Q)throw Error(`Project not found: ${t}`);let L=[...Q.sandboxes];if(!L.includes(y))L.push(y);yield*N(t,L)}),f=r.fn("Project.removeSandbox")(function*(t,y){let Q=yield*e(($)=>$.select().from(C).where(Y(C.id,t)).get());if(!Q)throw Error(`Project not found: ${t}`);let L=Q.sandboxes.filter(($)=>$!==y);yield*N(t,L)});return Cn.of({fromDirectory:E,discover:K,list:R,get:S,update:B,initGit:l,setInitialized:d,sandboxes:u,addSandbox:m,removeSandbox:f})})),Ko=Jt.pipe(a.provide(oo),a.provide(q.defaultLayer),a.provide(Bt.layer));function ge(){return Ln.use((n)=>n.select().from(C).all().map((o)=>pn(o)))}function ue(n){let o=Ln.use((i)=>i.select().from(C).where(Y(C.id,n)).get());if(!o)return;return pn(o)}function _e(n){Ln.use((o)=>o.update(C).set({time_initialized:Date.now()}).where(Y(C.id,n)).run())}import{parse as Ne}from"path";var rn=un.create("instance");xt(()=>rn.use());var tn=new Map,pe=Kt(Cn,Ko),se=new Set(["/etc","/proc","/sys","/dev","/boot","/root","/var","/private/etc","/private/var"]);function Ae(n){if(n===Ne(n).root)return"filesystem root is not a valid project directory";for(let o of se)if(n===o||q.contains(o,n))return"target is a protected system directory";return null}function Te(n){let o=Ae(n);if(o)throw Error("Access denied: "+o)}var Xn={all:void 0};function Ht(n){return Zn(async()=>{let o=n.project&&n.worktree?{directory:n.directory,worktree:n.worktree,project:n.project}:await pe.runPromise((i)=>i.fromDirectory(n.directory)).then(({project:i,sandbox:_})=>({directory:n.directory,worktree:_,project:i}));return await rn.provide(o,async()=>{await n.init?.()}),o})}function Mt(n,o){let i=o.catch((_)=>{if(tn.get(n)===i)tn.delete(n);throw _});return tn.set(n,i),i}var on={async provide(n){let o=q.resolve(n.directory);Te(o);let i=tn.get(o);if(!i)V.Default.info("creating instance",{directory:o}),i=Mt(o,Ht({directory:o,init:n.init}));let _=await i;return rn.provide(_,async()=>{return n.fn()})},get current(){return rn.use()},get directory(){return rn.use().directory},get worktree(){return rn.use().worktree},get project(){return rn.use().project},containsPath(n,o){let i=o??on;if(q.contains(i.directory,n))return!0;if(i.worktree==="/")return!1;return q.contains(i.worktree,n)},bind(n){let o=rn.use();return(...i)=>rn.provide(o,()=>n(...i))},restore(n,o){return rn.provide(n,o)},async reload(n){let o=q.resolve(n.directory);V.Default.info("reloading instance",{directory:o}),await Co(o),tn.delete(o);let i=Mt(o,Ht({...n,directory:o}));return Un.emit("event",{directory:o,project:n.project?.id,workspace:sn.workspaceID,payload:{type:"server.instance.disposed",properties:{directory:o}}}),await i},async dispose(){let{directory:n,project:o}=on;V.Default.info("disposing instance",{directory:n}),await Co(n),tn.delete(n),Un.emit("event",{directory:n,project:o.id,workspace:sn.workspaceID,payload:{type:"server.instance.disposed",properties:{directory:n}}})},async disposeAll(){if(Xn.all)return Xn.all;return Xn.all=Zn(async()=>{V.Default.info("disposing all instances");let n=[...tn.entries()];for(let[o,i]of n){if(tn.get(o)!==i)continue;let _=await i.catch((e)=>{V.Default.warn("instance dispose failed",{key:o,error:e});return});if(!_){if(tn.get(o)===i)tn.delete(o);continue}if(tn.get(o)!==i)continue;await rn.provide(_,async()=>{await on.dispose()})}}).finally(()=>{Xn.all=void 0}),Xn.all}};var Rt="~qitqode/InstanceState",$e=(n)=>{try{return on.bind(n)}catch(_){if(!(_ instanceof un.NotFound))throw _}let o=dn.getCurrent(),i=o?Dn.getReferenceUnsafe(o.context,Yn):void 0;if(!i)return n;return(..._)=>on.restore(i,()=>n(..._))},Ro=r.gen(function*(){return(yield*Yn)??on.current}),Be=r.gen(function*(){return(yield*ro)??sn.workspaceID}),io=r.map(Ro,(n)=>n.directory),Qe=(n)=>r.gen(function*(){let o=yield*Hn.make({capacity:Number.POSITIVE_INFINITY,lookup:()=>r.gen(function*(){return yield*n(yield*Ro)})}),i=_t((_)=>r.runPromise(Hn.invalidate(o,_).pipe(r.provide(Et))));return yield*r.addFinalizer(()=>r.sync(i)),{[Rt]:Rt,cache:o}}),Eo=(n)=>r.gen(function*(){return yield*Hn.get(n.cache,yield*io)}),De=(n,o)=>r.map(Eo(n),o),Ie=(n,o)=>r.flatMap(Eo(n),o),le=(n)=>r.gen(function*(){return yield*Hn.has(n.cache,yield*io)}),Le=(n)=>r.gen(function*(){return yield*Hn.invalidate(n.cache,yield*io)});var Pt={};$n(Pt,{make:()=>de});function St(n,o,i){if(n&&o!==void 0)return sn.restore(o,()=>on.restore(n,i));if(n)return on.restore(n,i);if(o!==void 0)return sn.restore(o,i);return i()}function de(){return r.gen(function*(){let n=yield*r.context(),i=(yield*Yn)??(()=>{try{return on.current}catch(p){if(!(p instanceof un.NotFound))throw p}})(),_=(yield*ro)??sn.workspaceID,e=(p)=>Wt(p,{instance:i,workspace:_}),T=(p)=>e(p).pipe(r.provide(n));return{promise:(p)=>St(i,_,()=>r.runPromise(T(p))),fork:(p)=>St(i,_,()=>r.runFork(T(p)))}})}var Ut={};$n(Ut,{make:()=>Ge,Cancelled:()=>zn});class zn extends s.TaggedErrorClass()("RunnerCancelled",{}){}var Ge=(n,o)=>{let i=An.makeUnsafe({_tag:"Idle"}),_=o?.onIdle??r.void,e=o?.onBusy??r.void,T=o?.onInterrupt,p=0,O=()=>An.getUnsafe(i),H=()=>{return p+=1,p},E=(m,f)=>kn.isFailure(f)&&So.hasInterruptsOnly(f.cause)?_n.fail(m,new zn).pipe(r.asVoid):_n.done(m,f).pipe(r.asVoid),K=()=>An.modify(i,(m)=>[m._tag==="Idle"?_:r.void,m]).pipe(r.flatten),R=(m,f,t)=>An.modify(i,(y)=>[r.gen(function*(){if(y._tag==="Running"&&y.run.id===m)yield*_;yield*E(f,t)}),y._tag==="Running"&&y.run.id===m?{_tag:"Idle"}:y]).pipe(r.flatten),S=(m,f)=>r.gen(function*(){let t=H(),y=yield*m.pipe(r.onExit((Q)=>R(t,f,Q)),r.forkIn(n));return{id:t,done:f,fiber:y}}),B=(m)=>An.modifyEffect(i,r.fnUntraced(function*(f){if(f._tag==="Shell"&&f.shell.id===m)return[_,{_tag:"Idle"}];if(f._tag==="ShellThenRun"&&f.shell.id===m){let t=yield*S(f.run.work,f.run.done);return[r.void,{_tag:"Running",run:t}]}return[r.void,f]})).pipe(r.flatten),l=(m)=>dn.interrupt(m.fiber),d=(m)=>An.modifyEffect(i,r.fnUntraced(function*(f){switch(f._tag){case"Running":case"ShellThenRun":if(o?.onReentryWarn)yield*o.onReentryWarn({label:o.label??"(unlabeled)",existingRunId:f.run.id});return[_n.await(f.run.done),f];case"Shell":{let t={id:H(),done:yield*_n.make(),work:m};return[_n.await(t.done),{_tag:"ShellThenRun",shell:f.shell,run:t}]}case"Idle":{let t=yield*_n.make(),y=yield*S(m,t);return[_n.await(t),{_tag:"Running",run:y}]}}})).pipe(r.flatten,r.catch((f)=>f instanceof zn?T??r.die(f):r.fail(f))),u=(m)=>An.modifyEffect(i,r.fnUntraced(function*(f){if(f._tag!=="Idle")return[r.sync(()=>{if(o?.busy)o.busy();throw Error("Runner is busy")}),f];yield*e;let t=H(),y=yield*m.pipe(r.ensuring(B(t)),r.forkChild),Q={id:t,fiber:y};return[r.gen(function*(){let L=yield*dn.await(y);if(kn.isSuccess(L))return L.value;if(So.hasInterruptsOnly(L.cause)&&T)return yield*T;return yield*r.failCause(L.cause)}),{_tag:"Shell",shell:Q}]})).pipe(r.flatten),N=An.modify(i,(m)=>{switch(m._tag){case"Idle":return[r.void,m];case"Running":return[r.gen(function*(){yield*dn.interrupt(m.run.fiber);let f=yield*dn.await(m.run.fiber);yield*E(m.run.done,f),yield*_n.await(m.run.done).pipe(r.exit,r.asVoid),yield*K()}),{_tag:"Idle"}];case"Shell":return[r.gen(function*(){yield*l(m.shell),yield*K()}),{_tag:"Idle"}];case"ShellThenRun":return[r.gen(function*(){yield*_n.fail(m.run.done,new zn).pipe(r.asVoid),yield*l(m.shell),yield*K()}),{_tag:"Idle"}]}}).pipe(r.flatten);return{get state(){return O()},get busy(){return O()._tag!=="Idle"},ensureRunning:d,startShell:u,cancel:N}};import{Database as Je}from"bun:sqlite";function Xt(n){let o=new Je(n,{create:!0});return Zt({client:o})}var Ce=eo.create("NotFoundError",b.object({message:b.string()})),Yt=V.create({service:"db"});function zt(){if(["latest","beta","prod"].includes(Wo)||nn.QITQODE_DISABLE_CHANNEL_DB)return to.join(Bn.Path.data,"qitqode.db");let n=Wo.replace(/[^a-zA-Z0-9._-]/g,"-");return to.join(Bn.Path.data,`qitqode-${n}.db`)}var Po=Zn(()=>{if(nn.QITQODE_DB){if(nn.QITQODE_DB===":memory:"||to.isAbsolute(nn.QITQODE_DB))return nn.QITQODE_DB;return to.join(Bn.Path.data,nn.QITQODE_DB)}return zt()}),Mn=vt(()=>{Yt.info("opening database",{path:Po});let n=Xt(Po);n.run("PRAGMA journal_mode = WAL"),n.run("PRAGMA synchronous = NORMAL"),n.run("PRAGMA busy_timeout = 5000"),n.run("PRAGMA cache_size = -64000"),n.run("PRAGMA foreign_keys = ON"),n.run("PRAGMA wal_checkpoint(PASSIVE)");let o=[{sql:"CREATE TABLE `project` (\n\t`id` text PRIMARY KEY,\n\t`worktree` text NOT NULL,\n\t`vcs` text,\n\t`name` text,\n\t`icon_url` text,\n\t`icon_color` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`time_initialized` integer,\n\t`sandboxes` text NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `message` (\n\t`id` text PRIMARY KEY,\n\t`session_id` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_message_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `part` (\n\t`id` text PRIMARY KEY,\n\t`message_id` text NOT NULL,\n\t`session_id` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_part_message_id_message_id_fk` FOREIGN KEY (`message_id`) REFERENCES `message`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `permission` (\n\t`project_id` text PRIMARY KEY,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_permission_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `session` (\n\t`id` text PRIMARY KEY,\n\t`project_id` text NOT NULL,\n\t`parent_id` text,\n\t`slug` text NOT NULL,\n\t`directory` text NOT NULL,\n\t`title` text NOT NULL,\n\t`version` text NOT NULL,\n\t`share_url` text,\n\t`summary_additions` integer,\n\t`summary_deletions` integer,\n\t`summary_files` integer,\n\t`summary_diffs` text,\n\t`revert` text,\n\t`permission` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`time_compacting` integer,\n\t`time_archived` integer,\n\tCONSTRAINT `fk_session_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `todo` (\n\t`session_id` text NOT NULL,\n\t`content` text NOT NULL,\n\t`status` text NOT NULL,\n\t`priority` text NOT NULL,\n\t`position` integer NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `todo_pk` PRIMARY KEY(`session_id`, `position`),\n\tCONSTRAINT `fk_todo_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `session_share` (\n\t`session_id` text PRIMARY KEY,\n\t`id` text NOT NULL,\n\t`secret` text NOT NULL,\n\t`url` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `fk_session_share_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE INDEX `message_session_idx` ON `message` (`session_id`);--> statement-breakpoint\nCREATE INDEX `part_message_idx` ON `part` (`message_id`);--> statement-breakpoint\nCREATE INDEX `part_session_idx` ON `part` (`session_id`);--> statement-breakpoint\nCREATE INDEX `session_project_idx` ON `session` (`project_id`);--> statement-breakpoint\nCREATE INDEX `session_parent_idx` ON `session` (`parent_id`);--> statement-breakpoint\nCREATE INDEX `todo_session_idx` ON `todo` (`session_id`);",timestamp:1769552633000,name:"20260127222353_familiar_lady_ursula"},{sql:"ALTER TABLE `project` ADD `commands` text;",timestamp:1770830228000,name:"20260211171708_add_project_commands"},{sql:"CREATE TABLE `control_account` (\n\t`email` text NOT NULL,\n\t`url` text NOT NULL,\n\t`access_token` text NOT NULL,\n\t`refresh_token` text NOT NULL,\n\t`token_expiry` integer,\n\t`active` integer NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `control_account_pk` PRIMARY KEY(`email`, `url`)\n);\n",timestamp:1770993676000,name:"20260213144116_wakeful_the_professor"},{sql:"CREATE TABLE `workspace` (\n\t`id` text PRIMARY KEY,\n\t`branch` text,\n\t`project_id` text NOT NULL,\n\t`config` text NOT NULL,\n\tCONSTRAINT `fk_workspace_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n",timestamp:1772056728000,name:"20260225215848_workspace"},{sql:"ALTER TABLE `session` ADD `workspace_id` text;--> statement-breakpoint\nCREATE INDEX `session_workspace_idx` ON `session` (`workspace_id`);",timestamp:1772228279000,name:"20260227213759_add_session_workspace_id"},{sql:"CREATE TABLE `account` (\n\t`id` text PRIMARY KEY,\n\t`email` text NOT NULL,\n\t`url` text NOT NULL,\n\t`access_token` text NOT NULL,\n\t`refresh_token` text NOT NULL,\n\t`token_expiry` integer,\n\t`selected_org_id` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `account_state` (\n\t`id` integer PRIMARY KEY NOT NULL,\n\t`active_account_id` text,\n\tFOREIGN KEY (`active_account_id`) REFERENCES `account`(`id`) ON UPDATE no action ON DELETE set null\n);\n",timestamp:1772310750000,name:"20260228203230_blue_harpoon"},{sql:"ALTER TABLE `workspace` ADD `type` text NOT NULL;--> statement-breakpoint\nALTER TABLE `workspace` ADD `name` text;--> statement-breakpoint\nALTER TABLE `workspace` ADD `directory` text;--> statement-breakpoint\nALTER TABLE `workspace` ADD `extra` text;--> statement-breakpoint\nALTER TABLE `workspace` DROP COLUMN `config`;",timestamp:1772579546000,name:"20260303231226_add_workspace_fields"},{sql:"ALTER TABLE `account_state` ADD `active_org_id` text;--> statement-breakpoint\nUPDATE `account_state` SET `active_org_id` = (SELECT `selected_org_id` FROM `account` WHERE `account`.`id` = `account_state`.`active_account_id`);--> statement-breakpoint\nALTER TABLE `account` DROP COLUMN `selected_org_id`;\n",timestamp:1773097200000,name:"20260309230000_move_org_to_state"},{sql:"DROP INDEX IF EXISTS `message_session_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `part_message_idx`;--> statement-breakpoint\nCREATE INDEX `message_session_time_created_id_idx` ON `message` (`session_id`,`time_created`,`id`);--> statement-breakpoint\nCREATE INDEX `part_message_id_id_idx` ON `part` (`message_id`,`id`);",timestamp:1773290071000,name:"20260312043431_session_message_cursor"},{sql:"CREATE TABLE `event_sequence` (\n\t`aggregate_id` text PRIMARY KEY,\n\t`seq` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `event` (\n\t`id` text PRIMARY KEY,\n\t`aggregate_id` text NOT NULL,\n\t`seq` integer NOT NULL,\n\t`type` text NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_event_aggregate_id_event_sequence_aggregate_id_fk` FOREIGN KEY (`aggregate_id`) REFERENCES `event_sequence`(`aggregate_id`) ON DELETE CASCADE\n);\n",timestamp:1774309702000,name:"20260323234822_events"},{sql:"PRAGMA foreign_keys=OFF;--> statement-breakpoint\nCREATE TABLE `__new_workspace` (\n\t`id` text PRIMARY KEY,\n\t`type` text NOT NULL,\n\t`name` text DEFAULT '' NOT NULL,\n\t`branch` text,\n\t`directory` text,\n\t`extra` text,\n\t`project_id` text NOT NULL,\n\tCONSTRAINT `fk_workspace_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nINSERT INTO `__new_workspace`(`id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id`) SELECT `id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id` FROM `workspace`;--> statement-breakpoint\nDROP TABLE `workspace`;--> statement-breakpoint\nALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint\nPRAGMA foreign_keys=ON;",timestamp:1775843113000,name:"20260410174513_workspace-name"},{sql:"CREATE TABLE `session_entry` (\n\t`id` text PRIMARY KEY,\n\t`session_id` text NOT NULL,\n\t`type` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_session_entry_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE INDEX `session_entry_session_idx` ON `session_entry` (`session_id`);--> statement-breakpoint\nCREATE INDEX `session_entry_session_type_idx` ON `session_entry` (`session_id`,`type`);--> statement-breakpoint\nCREATE INDEX `session_entry_time_created_idx` ON `session_entry` (`time_created`);",timestamp:1776103196000,name:"20260413175956_chief_energizer"},{sql:"ALTER TABLE `session` ADD `context_from` text;--> statement-breakpoint\nALTER TABLE `session` ADD `context_watermark` text;--> statement-breakpoint\nCREATE INDEX `session_context_from_idx` ON `session` (`context_from`);\n",timestamp:1776873600000,name:"20260422160000_context_inheritance"},{sql:"CREATE TABLE `task_registry` (\n `id` text PRIMARY KEY,\n `parent_session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `status` text NOT NULL,\n `agent` text NOT NULL,\n `description` text NOT NULL,\n `context_mode` text NOT NULL,\n `background` integer NOT NULL,\n `last_turn_time` integer NOT NULL,\n `turn_count` integer NOT NULL DEFAULT 0,\n `error` text,\n `time_completed` integer,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `task_registry_parent_idx` ON `task_registry` (`parent_session_id`);--> statement-breakpoint\nCREATE INDEX `task_registry_status_idx` ON `task_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `task_registry_status_last_turn_idx` ON `task_registry` (`status`, `last_turn_time`);\n",timestamp:1776877200000,name:"20260422170000_task_registry"},{sql:"DROP INDEX IF EXISTS `session_entry_session_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `session_entry_session_type_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `session_entry_time_created_idx`;--> statement-breakpoint\nDROP TABLE IF EXISTS `session_entry`;\n",timestamp:1776956061000,name:"20260423145421_remove_session_entry"},{sql:"DROP INDEX IF EXISTS `task_registry_parent_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `task_registry_status_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `task_registry_status_last_turn_idx`;--> statement-breakpoint\nALTER TABLE `task_registry` RENAME TO `actor_registry`;--> statement-breakpoint\nCREATE INDEX `actor_registry_parent_idx` ON `actor_registry` (`parent_session_id`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_idx` ON `actor_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_last_turn_idx` ON `actor_registry` (`status`, `last_turn_time`);\n",timestamp:1778803200000,name:"20260515000000_actor_rename"},{sql:"CREATE TABLE `memory_fts` (\n `path` text PRIMARY KEY NOT NULL,\n `scope` text NOT NULL,\n `scope_id` text DEFAULT '' NOT NULL,\n `type` text NOT NULL,\n `body` text NOT NULL,\n `fingerprint` text NOT NULL,\n `last_indexed_at` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE INDEX `memory_fts_scope_idx` ON `memory_fts` (`scope`, `scope_id`);\n--> statement-breakpoint\nCREATE INDEX `memory_fts_type_idx` ON `memory_fts` (`type`);\n--> statement-breakpoint\nCREATE VIRTUAL TABLE `memory_fts_idx` USING fts5(\n body,\n content='memory_fts',\n content_rowid='rowid',\n tokenize='unicode61 remove_diacritics 1'\n);\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.rowid;\nEND;\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.rowid;\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n",timestamp:1778806800000,name:"20260515010000_memory_fts"},{sql:"CREATE TABLE `task` (\n `id` text NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `parent_task_id` text,\n `kind` text NOT NULL DEFAULT 'user',\n `status` text NOT NULL,\n `focus` integer NOT NULL DEFAULT 0,\n `summary` text NOT NULL,\n `created_at` integer NOT NULL,\n `last_event_at` integer NOT NULL,\n `ended_at` integer,\n `cleanup_after` integer,\n PRIMARY KEY (`session_id`, `id`)\n);--> statement-breakpoint\nCREATE INDEX `task_session_idx` ON `task` (`session_id`);--> statement-breakpoint\nCREATE INDEX `task_parent_idx` ON `task` (`session_id`, `parent_task_id`);--> statement-breakpoint\nCREATE INDEX `task_status_idx` ON `task` (`status`);--> statement-breakpoint\nCREATE INDEX `task_kind_idx` ON `task` (`kind`);--> statement-breakpoint\nCREATE UNIQUE INDEX `task_focus_per_session_idx` ON `task` (`session_id`) WHERE focus = 1;--> statement-breakpoint\nCREATE TABLE `task_event` (\n `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `task_id` text NOT NULL,\n `at` integer NOT NULL,\n `kind` text NOT NULL,\n `summary` text,\n FOREIGN KEY (`session_id`, `task_id`) REFERENCES `task`(`session_id`, `id`) ON DELETE CASCADE\n);--> statement-breakpoint\nCREATE INDEX `task_event_task_idx` ON `task_event` (`session_id`, `task_id`, `at`);\n",timestamp:1778810400000,name:"20260515020000_user_task"},{sql:"ALTER TABLE `session` ADD `last_checkpoint_message_id` text;\n",timestamp:1779148800000,name:"20260519000000_last_checkpoint_message_id"},{sql:"ALTER TABLE `message` ADD `agent_id` text;--> statement-breakpoint\nCREATE INDEX `message_session_agent_idx` ON `message` (`session_id`,`agent_id`,`id`);\n",timestamp:1779321600000,name:"20260521000000_message_agent_id"},{sql:"DROP TABLE `actor_registry`;--> statement-breakpoint\nCREATE TABLE `actor_registry` (\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `actor_id` text NOT NULL,\n `mode` text NOT NULL,\n `parent_actor_id` text,\n `status` text NOT NULL,\n `agent` text NOT NULL,\n `description` text NOT NULL,\n `context_mode` text NOT NULL,\n `context_watermark` text,\n `background` integer NOT NULL,\n `tools` text,\n `last_turn_time` integer NOT NULL,\n `turn_count` integer NOT NULL DEFAULT 0,\n `error` text,\n `time_completed` integer,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n PRIMARY KEY (`session_id`, `actor_id`)\n);--> statement-breakpoint\nCREATE INDEX `actor_registry_session_agent_idx` ON `actor_registry` (`session_id`, `agent`);--> statement-breakpoint\nCREATE INDEX `actor_registry_session_parent_idx` ON `actor_registry` (`session_id`, `parent_actor_id`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_idx` ON `actor_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_last_turn_idx` ON `actor_registry` (`status`, `last_turn_time`);\n",timestamp:1779321660000,name:"20260521000100_actor_registry_v6"},{sql:"DROP TRIGGER IF EXISTS `memory_fts_ai`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_ad`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_au`;--> statement-breakpoint\nDROP TABLE IF EXISTS `memory_fts_idx`;--> statement-breakpoint\nDROP TABLE IF EXISTS `memory_fts`;--> statement-breakpoint\nCREATE TABLE `memory_fts` (\n `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,\n `path` text NOT NULL UNIQUE,\n `scope` text NOT NULL,\n `scope_id` text DEFAULT '' NOT NULL,\n `type` text NOT NULL,\n `body` text NOT NULL,\n `fingerprint` text NOT NULL,\n `last_indexed_at` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `memory_fts_scope_idx` ON `memory_fts` (`scope`, `scope_id`);--> statement-breakpoint\nCREATE INDEX `memory_fts_type_idx` ON `memory_fts` (`type`);--> statement-breakpoint\nCREATE VIRTUAL TABLE `memory_fts_idx` USING fts5(\n body,\n content='memory_fts',\n content_rowid='id',\n tokenize='unicode61 remove_diacritics 1'\n);--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.id;\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.id;\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;\n",timestamp:1779325200000,name:"20260521010000_memory_fts_v6"},{sql:"-- Fix v6.1 trigger pattern: external content FTS5 vtab requires the 'delete'\n-- magic command to remove OLD body's tokens, NOT a plain DELETE FROM the vtab.\n-- The previous DELETE FROM pattern was contentless-mode syntax misapplied to\n-- external-content mode, leaving stale tokens accumulating until vtab corrupts.\nDROP TRIGGER IF EXISTS `memory_fts_ai`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_ad`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_au`;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(`memory_fts_idx`, rowid, body) VALUES('delete', OLD.id, OLD.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(`memory_fts_idx`, rowid, body) VALUES('delete', OLD.id, OLD.body);\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;\n",timestamp:1779328800000,name:"20260521020000_memory_fts_triggers"},{sql:"UPDATE `message` SET `agent_id` = 'main' WHERE `agent_id` IS NULL;--> statement-breakpoint\nCREATE TABLE `message_new` (\n `id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `agent_id` text NOT NULL DEFAULT 'main',\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `data` text NOT NULL\n);--> statement-breakpoint\nINSERT INTO `message_new` SELECT `id`, `session_id`, COALESCE(`agent_id`, 'main'), `time_created`, `time_updated`, `data` FROM `message`;--> statement-breakpoint\nDROP TABLE `message`;--> statement-breakpoint\nALTER TABLE `message_new` RENAME TO `message`;--> statement-breakpoint\nCREATE INDEX `message_session_time_created_id_idx` ON `message` (`session_id`,`time_created`,`id`);--> statement-breakpoint\nCREATE INDEX `message_session_agent_idx` ON `message` (`session_id`,`agent_id`,`id`);\n",timestamp:1779753600000,name:"20260526000000_agent_id_main"},{sql:"ALTER TABLE `actor_registry` ADD COLUMN `last_outcome` text;--> statement-breakpoint\nALTER TABLE `actor_registry` ADD COLUMN `lifecycle` text NOT NULL DEFAULT 'ephemeral';--> statement-breakpoint\nALTER TABLE `actor_registry` RENAME COLUMN `error` TO `last_error`;--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'success' WHERE `status` = 'completed';--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'failure' WHERE `status` = 'failed';--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'cancelled' WHERE `status` = 'cancelled';--> statement-breakpoint\nUPDATE `actor_registry` SET `status` = 'idle' WHERE `status` IN ('completed','failed','cancelled');--> statement-breakpoint\nUPDATE `actor_registry` SET `lifecycle` = CASE `mode` WHEN 'peer' THEN 'persistent' WHEN 'main' THEN 'persistent' ELSE 'ephemeral' END;\n",timestamp:1779840000000,name:"20260527000000_actor_lifecycle"},{sql:"CREATE TABLE `inbox` (\n `id` text PRIMARY KEY NOT NULL,\n `receiver_session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `receiver_actor_id` text NOT NULL,\n `sender_session_id` text,\n `sender_actor_id` text,\n `type` text NOT NULL DEFAULT 'text',\n `content` text NOT NULL,\n `created_at` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `inbox_receiver_idx` ON `inbox` (`receiver_session_id`,`receiver_actor_id`,`id`);--> statement-breakpoint\nCREATE INDEX `inbox_created_idx` ON `inbox` (`created_at`);\n",timestamp:1779840060000,name:"20260527000100_inbox"},{sql:"-- todo: drop priority column\nALTER TABLE `todo` DROP COLUMN `priority`;\n--> statement-breakpoint\n\n-- task: drop focus-dependent index before dropping its column\nDROP INDEX `task_focus_per_session_idx`;\n--> statement-breakpoint\nDROP INDEX `task_kind_idx`;\n--> statement-breakpoint\nALTER TABLE `task` DROP COLUMN `focus`;\n--> statement-breakpoint\nALTER TABLE `task` DROP COLUMN `kind`;\n--> statement-breakpoint\n\n-- migrate status values: proposed/active -> open\nUPDATE `task` SET `status` = 'open' WHERE `status` IN ('proposed', 'active');\n",timestamp:1780012800000,name:"20260529000000_task_todo_redesign"},{sql:"ALTER TABLE `task` ADD COLUMN `owner` text;\n",timestamp:1780444800000,name:"20260603000000_task_in_progress_owner"},{sql:"CREATE TABLE `workflow_run` (\n `id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `name` text NOT NULL,\n `status` text NOT NULL,\n `running` integer NOT NULL DEFAULT 0,\n `succeeded` integer NOT NULL DEFAULT 0,\n `failed` integer NOT NULL DEFAULT 0,\n `current_phase` text,\n `parent_actor_id` text,\n `args` text,\n `error` text,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `workflow_run_session_idx` ON `workflow_run` (`session_id`);--> statement-breakpoint\nCREATE INDEX `workflow_run_status_idx` ON `workflow_run` (`status`);\n",timestamp:1780444800000,name:"20260603000000_workflow_run"},{sql:"ALTER TABLE `workflow_run` ADD COLUMN `script_sha` text;\n",timestamp:1780531200000,name:"20260604000000_workflow_script_sha"},{sql:"CREATE TABLE `claude_import` (\n `source_uuid` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL,\n `source_path` text NOT NULL,\n `source_mtime` integer NOT NULL,\n `time_imported` integer NOT NULL\n);\n",timestamp:1780876800000,name:"20260608000000_claude_import"},{sql:"ALTER TABLE `claude_import` ADD `message_ids` text;\n",timestamp:1780880400000,name:"20260608010000_claude_import_message_ids"},{sql:"CREATE TABLE `history_fts` (\n `part_id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL,\n `message_id` text NOT NULL,\n `project_id` text NOT NULL,\n `kind` text NOT NULL,\n `tool_name` text,\n `body` text NOT NULL,\n `time_created` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `history_fts_session_idx` ON `history_fts` (`session_id`, `time_created`);--> statement-breakpoint\nCREATE INDEX `history_fts_project_idx` ON `history_fts` (`project_id`, `time_created`);--> statement-breakpoint\nCREATE INDEX `history_fts_message_idx` ON `history_fts` (`message_id`);--> statement-breakpoint\nCREATE VIRTUAL TABLE `history_fts_idx` USING fts5(\n body,\n content='history_fts',\n content_rowid='rowid',\n tokenize='unicode61 remove_diacritics 1'\n);--> statement-breakpoint\nCREATE TRIGGER `history_fts_ai` AFTER INSERT ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `history_fts_ad` AFTER DELETE ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(`history_fts_idx`, rowid, body) VALUES('delete', OLD.rowid, OLD.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `history_fts_au` AFTER UPDATE ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(`history_fts_idx`, rowid, body) VALUES('delete', OLD.rowid, OLD.body);\n INSERT INTO `history_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n",timestamp:1780963200000,name:"20260609000000_history_fts"},{sql:"ALTER TABLE `workflow_run` ADD COLUMN `agent_timeout_ms` integer;\n",timestamp:1781046000000,name:"20260609230000_workflow_agent_timeout"},{sql:"CREATE TABLE `external_import` (\n `source` text NOT NULL,\n `source_key` text NOT NULL,\n `session_id` text NOT NULL,\n `source_path` text NOT NULL,\n `source_mtime` integer NOT NULL,\n `time_imported` integer NOT NULL,\n `message_ids` text,\n PRIMARY KEY (`source`, `source_key`)\n);\n\nINSERT INTO `external_import` (`source`, `source_key`, `session_id`, `source_path`, `source_mtime`, `time_imported`, `message_ids`)\nSELECT 'cc', `source_uuid`, `session_id`, `source_path`, `source_mtime`, `time_imported`, `message_ids`\nFROM `claude_import`;\n\nDROP TABLE `claude_import`;\n",timestamp:1781222400000,name:"20260612000000_external_import"}];if(o.length>0){if(Yt.info("applying migrations",{count:o.length,mode:"bundled"}),nn.QITQODE_SKIP_MIGRATIONS)for(let i of o)i.sql="select 1;";ho(n,o)}return n});function He(){Mn().$client.close(),Mn.reset()}var Vn=un.create("database");function Me(n){try{return n(Vn.use().tx)}catch(o){if(o instanceof un.NotFound){let i=[],_=Vn.provide({effects:i,tx:Mn()},()=>n(Mn()));for(let e of i)e();return _}throw o}}function xe(n){let o=vn.bind(n);try{Vn.use().effects.push(o)}catch{o()}}function Ke(n,o){try{return n(Vn.use().tx)}catch(i){if(i instanceof un.NotFound){let _=[],e=vn.bind((p)=>Vn.provide({tx:p,effects:_},()=>n(p))),T=Mn().transaction(e,{behavior:o?.behavior});for(let p of _)p();return T}throw i}}var jt={};$n(jt,{layer:()=>ct,defaultLayer:()=>we,Service:()=>yo,NotFoundError:()=>Yo});import v from"path";var xn={};$n(xn,{layer:()=>wt,defaultLayer:()=>Se,Service:()=>mo,Git:()=>xn});var Re=["--no-optional-locks","-c","core.autocrlf=false","-c","core.fsmonitor=false","-c","core.longpaths=true","-c","core.symlinks=true","-c","core.quotepath=false"],qn=(n)=>n.text().trim(),Uo=(n)=>n.split("\x00").filter(Boolean),Ee=(n)=>({exitCode:1,text:()=>"",stdout:Buffer.alloc(0),stderr:Buffer.from(n instanceof Error?n.message:String(n))}),kt=(n)=>{if(n==="??")return"added";if(n.includes("U"))return"modified";if(n.includes("A")&&!n.includes("D"))return"added";if(n.includes("D")&&!n.includes("A"))return"deleted";return"modified"};class mo extends Dn.Service()("@qitqode/Git"){}var wt=a.effect(mo,r.gen(function*(){let n=yield*no.ChildProcessSpawner,o=r.fn("Git.run")(function*(u,N){let m=Vt.make("git",[...Re,...u],{cwd:N.cwd,env:N.env,extendEnv:!0,stdin:"ignore",stdout:"pipe",stderr:"pipe"}),f=yield*qt(n,m);return{exitCode:f.code,text:()=>f.text,stdout:Buffer.from(f.text),stderr:Buffer.from(f.stderr)}},r.scoped,r.catch((u)=>r.succeed(Ee(u)))),i=r.fn("Git.text")(function*(u,N){return(yield*o(u,N)).text()}),_=r.fn("Git.lines")(function*(u,N){return(yield*i(u,N)).split(/\r?\n/).map((m)=>m.trim()).filter(Boolean)}),e=r.fnUntraced(function*(u){return yield*_(["for-each-ref","--format=%(refname:short)","refs/heads"],{cwd:u})}),T=r.fnUntraced(function*(u,N){let m=yield*o(["config","init.defaultBranch"],{cwd:u}),f=qn(m);if(!f||!N.includes(f))return;return{name:f,ref:f}}),p=r.fnUntraced(function*(u){let N=yield*_(["remote"],{cwd:u});if(N.includes("origin"))return"origin";if(N.length===1)return N[0];if(N.includes("upstream"))return"upstream";return N[0]}),O=r.fn("Git.branch")(function*(u){let N=yield*o(["symbolic-ref","--quiet","--short","HEAD"],{cwd:u});if(N.exitCode!==0)return;return qn(N)||void 0}),H=r.fn("Git.prefix")(function*(u){let N=yield*o(["rev-parse","--show-prefix"],{cwd:u});if(N.exitCode!==0)return"";return qn(N)}),E=r.fn("Git.defaultBranch")(function*(u){let N=yield*p(u);if(N){let t=yield*o(["symbolic-ref",`refs/remotes/${N}/HEAD`],{cwd:u});if(t.exitCode===0){let y=qn(t).replace(/^refs\/remotes\//,""),Q=y.startsWith(`${N}/`)?y.slice(`${N}/`.length):"";if(Q)return{name:Q,ref:y}}}let m=yield*e(u),f=yield*T(u,m);if(f)return f;if(m.includes("main"))return{name:"main",ref:"main"};if(m.includes("master"))return{name:"master",ref:"master"}}),K=r.fn("Git.hasHead")(function*(u){return(yield*o(["rev-parse","--verify","HEAD"],{cwd:u})).exitCode===0}),R=r.fn("Git.mergeBase")(function*(u,N,m="HEAD"){let f=yield*o(["merge-base",N,m],{cwd:u});if(f.exitCode!==0)return;return qn(f)||void 0}),S=r.fn("Git.show")(function*(u,N,m,f=""){let t=f?`${f}${m}`:m,y=yield*o(["show",`${N}:${t}`],{cwd:u});if(y.exitCode!==0)return"";if(y.stdout.includes(0))return"";return y.text()}),B=r.fn("Git.status")(function*(u){return Uo(yield*i(["status","--porcelain=v1","--untracked-files=all","--no-renames","-z","--","."],{cwd:u})).flatMap((N)=>{let m=N.slice(3);if(!m)return[];let f=N.slice(0,2);return[{file:m,code:f,status:kt(f)}]})}),l=r.fn("Git.diff")(function*(u,N){let m=Uo(yield*i(["diff","--no-ext-diff","--no-renames","--name-status","-z",N,"--","."],{cwd:u}));return m.flatMap((f,t)=>{if(t%2!==0)return[];let y=m[t+1];if(!f||!y)return[];return[{file:y,code:f,status:kt(f)}]})}),d=r.fn("Git.stats")(function*(u,N){return Uo(yield*i(["diff","--no-ext-diff","--no-renames","--numstat","-z",N,"--","."],{cwd:u})).flatMap((m)=>{let f=m.indexOf("\t"),t=m.indexOf("\t",f+1);if(f===-1||t===-1)return[];let y=m.slice(t+1);if(!y)return[];let Q=m.slice(0,f),L=m.slice(f+1,t),$=Q==="-"?0:Number.parseInt(Q||"0",10),U=L==="-"?0:Number.parseInt(L||"0",10);return[{file:y,additions:Number.isFinite($)?$:0,deletions:Number.isFinite(U)?U:0}]})});return mo.of({run:o,branch:O,prefix:H,defaultBranch:E,hasHead:K,mergeBase:R,show:S,status:B,diff:l,stats:d})})),Se=wt.pipe(a.provide(oo));var Tn=V.create({service:"storage"}),Yo=eo.create("NotFoundError",b.object({message:b.string()})),We=s.Struct({path:s.optional(s.Struct({root:s.optional(s.String)}))}),Pe=s.Struct({id:s.String}),Ue=s.Struct({id:s.String}),Ze=s.Struct({additions:s.Number,deletions:s.Number}),Xe=s.Struct({id:s.String,projectID:s.String,summary:s.Struct({diffs:s.Array(Ze)})}),Ye=s.decodeUnknownOption(We),ve=s.decodeUnknownOption(Pe),ze=s.decodeUnknownOption(Ue),ke=s.decodeUnknownOption(Xe);class yo extends Dn.Service()("@qitqode/Storage"){}function Ve(n,o){return v.join(n,...o)+".json"}function Zo(n){if(!n||typeof n!=="object")return!1;if("code"in n&&n.code==="ENOENT")return!0;if("reason"in n&&n.reason&&typeof n.reason==="object"&&"_tag"in n.reason)return n.reason._tag==="NotFound";return!1}function qe(n){let o=Number.parseInt(n,10);return Number.isNaN(o)?0:o}var Ft=[r.fn("Storage.migration.1")(function*(n,o,i){let _=v.resolve(n,"../project");if(!(yield*o.isDir(_)))return;let e=yield*o.glob("*",{cwd:_,include:"all"});for(let T of e){let p=v.join(_,T);if(!(yield*o.isDir(p)))continue;Tn.info(`migrating project ${T}`);let O=T,H="/";if(O!=="global"){for(let R of yield*o.glob("storage/session/message/*/*.json",{cwd:p,absolute:!0})){let S=Ye(yield*o.readJson(R),{onExcessProperty:"preserve"}),B=wn.isSome(S)?S.value.path?.root:void 0;if(!B)continue;H=B;break}if(!H)continue;if(!(yield*o.isDir(H)))continue;let E=yield*i.run(["rev-list","--max-parents=0","--all"],{cwd:H}),[K]=E.text().split(`
5
- `).filter(Boolean).map((R)=>R.trim()).toSorted();if(!K)continue;O=K,yield*o.writeWithDirs(v.join(n,"project",O+".json"),JSON.stringify({id:K,vcs:"git",worktree:H,time:{created:Date.now(),initialized:Date.now()}},null,2)),Tn.info(`migrating sessions for project ${O}`);for(let R of yield*o.glob("storage/session/info/*.json",{cwd:p,absolute:!0})){let S=v.join(n,"session",O,v.basename(R));Tn.info("copying",{sessionFile:R,dest:S});let B=yield*o.readJson(R),l=ve(B,{onExcessProperty:"preserve"});if(yield*o.writeWithDirs(S,JSON.stringify(B,null,2)),wn.isNone(l))continue;Tn.info(`migrating messages for session ${l.value.id}`);for(let d of yield*o.glob(`storage/session/message/${l.value.id}/*.json`,{cwd:p,absolute:!0})){let u=v.join(n,"message",l.value.id,v.basename(d));Tn.info("copying",{msgFile:d,dest:u});let N=yield*o.readJson(d),m=ze(N,{onExcessProperty:"preserve"});if(yield*o.writeWithDirs(u,JSON.stringify(N,null,2)),wn.isNone(m))continue;Tn.info(`migrating parts for message ${m.value.id}`);for(let f of yield*o.glob(`storage/session/part/${l.value.id}/${m.value.id}/*.json`,{cwd:p,absolute:!0})){let t=v.join(n,"part",m.value.id,v.basename(f)),y=yield*o.readJson(f);Tn.info("copying",{partFile:f,dest:t}),yield*o.writeWithDirs(t,JSON.stringify(y,null,2))}}}}}}),r.fn("Storage.migration.2")(function*(n,o){for(let i of yield*o.glob("session/*/*.json",{cwd:n,absolute:!0})){let _=yield*o.readJson(i),e=ke(_,{onExcessProperty:"preserve"});if(wn.isNone(e))continue;let T=e.value.summary.diffs;yield*o.writeWithDirs(v.join(n,"session_diff",e.value.id+".json"),JSON.stringify(T,null,2)),yield*o.writeWithDirs(v.join(n,"session",e.value.projectID,e.value.id+".json"),JSON.stringify({..._,summary:{additions:T.reduce((p,O)=>p+O.additions,0),deletions:T.reduce((p,O)=>p+O.deletions,0)}},null,2))}})],ct=a.effect(yo,r.gen(function*(){let n=yield*q.Service,o=yield*xn.Service,i=yield*Xo.make({lookup:()=>Kn.make(),idleTimeToLive:0}),_=yield*r.cached(r.gen(function*(){let B=v.join(Bn.Path.data,"storage"),l=v.join(B,"migration"),d=yield*n.readFileString(l).pipe(r.map(qe),r.catchIf(Zo,()=>r.succeed(0)),r.orElseSucceed(()=>0));for(let u=d;u<Ft.length;u++){Tn.info("running migration",{index:u});let N=Ft[u],m=yield*r.exit(N(B,n,o));if(kn.isFailure(m)){Tn.error("failed to run migration",{index:u,cause:m.cause});break}yield*n.writeWithDirs(l,String(u+1))}return{dir:B}})),e=(B)=>r.fail(new Yo({message:`Resource not found: ${B}`})),T=(B,l)=>l.pipe(r.catchIf(Zo,()=>e(B))),p=r.fnUntraced(function*(B,l){yield*n.writeWithDirs(B,JSON.stringify(l,null,2))}),O=(B,l)=>r.scoped(r.gen(function*(){let d=Ve((yield*_).dir,B);return yield*l(d,yield*Xo.get(i,d))})),H=r.fn("Storage.remove")(function*(B){yield*O(B,(l,d)=>Kn.withWriteLock(d,n.remove(l).pipe(r.catchIf(Zo,()=>r.void))))}),E=(B)=>r.gen(function*(){return yield*O(B,(d,u)=>Kn.withReadLock(u,T(d,n.readJson(d))))}),K=(B,l)=>r.gen(function*(){return yield*O(B,(u,N)=>Kn.withWriteLock(N,r.gen(function*(){let m=yield*T(u,n.readJson(u));return l(m),yield*p(u,m),m})))}),R=(B,l)=>r.gen(function*(){yield*O(B,(d,u)=>Kn.withWriteLock(u,p(d,l)))}),S=r.fn("Storage.list")(function*(B){let l=(yield*_).dir,d=v.join(l,...B);return(yield*n.glob("**/*",{cwd:d,include:"file"}).pipe(r.catch(()=>r.succeed([])))).map((N)=>[...B,...N.slice(0,-5).split(v.sep)]).toSorted((N,m)=>N.join("/").localeCompare(m.join("/")))});return yo.of({remove:H,read:E,update:K,write:R,list:S})})),we=ct.pipe(a.provide(q.defaultLayer),a.provide(xn.defaultLayer));export{Un as nl,_t as ol,Zn as pl,mn as ql,C as rl,gn as sl,fo as tl,zo as ul,ko as vl,Vo as wl,qo as xl,Fo as yl,uo as zl,Ln as Al,xn as Bl,Yo as Cl,jt as Dl,F as El,Ho as Fl,At as Gl,_e as Hl,Ct as Il,Ae as Jl,on as Kl,vn as Ll,de as Ml,Pt as Nl,Ut as Ol};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Al as u,Cl as v,Dl as w,yl as s,zl as t}from"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import{Bn as q,Cn as r,Dm as a,dn as b,en as c,fn as d,gn as e,hn as f,in as g,jn as h,kn as i,ln as j,mn as k,on as l,pn as m,qn as n,sn as o,un as p}from"./chunk-v30ezr68.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.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{tg as a,ug as b,vg as c}from"./chunk-1dnvdeat.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";export{b as run,a as encodeDir,c as ClaudeImport};
@@ -1,35 +0,0 @@
1
- // @bun
2
- import{yh as F}from"./chunk-88hmeyf5.js";import{$k as Y}from"./chunk-ep92grvg.js";import{au as y}from"./chunk-wp0xd7at.js";import{Au as W}from"./chunk-bwzbcwff.js";import{Dv as K}from"./chunk-mnxcykeq.js";import{CJ as x}from"./chunk-tz60e15h.js";import{EOL as A}from"os";import B from"path";var z=W.tiers().map((b)=>({label:b.label,providerID:b.providerID,modelID:b.modelID})),$=Object.fromEntries(W.tiers().map((b)=>[`${b.providerID}/${b.modelID}`,b.label]));function w(b){return new Map((b??[]).map((q)=>[q.id,q]))}function j(b,q,C){return(b instanceof Map?b.get(q):Array.isArray(b)?b.find((Q)=>Q.id===q):void 0)?.models[C]}function H(b,q,C){let J=`${q}/${C}`;if($[J])return $[J];return j(b,q,C)?.name??C}function f(b,q){let C=W.tiers().find((J)=>J.providerID===b&&J.modelID===q);return C?W.TIER_RATINGS[C.id]:void 0}async function c(b){return F.runPromise(Y.Service.use((q)=>x.gen(function*(){let C=yield*q.get(b),J=yield*q.messages({sessionID:C.id,agentID:"*"});return{info:C,messages:J}})))}function m(){let b=Y.list({limit:1}).next();return b.done?void 0:b.value}function n(b,q){return`session-${b.slice(0,8)}.${q==="markdown"?"md":"json"}`}function h(b,q){return B.resolve(b,q)}async function o(b,q,C){let J=h(b,q);return await K.write(J,C),J}function G(b,q,C){return C.trim()?`[redacted:${b}:${q}]`:C}function U(b,q,C){if(!C)return C;return Object.keys(C).length?{redacted:`${b}:${q}`}:C}function X(b,q){return{...q,value:G("file-text",b,q.value)}}function N(b,q){return q?.map((C,J)=>({...C,file:G(`${b}-file`,String(J),C.file),patch:G(`${b}-patch`,String(J),C.patch)}))}function E(b){if(!b.source)return b.source;if(b.source.type==="symbol")return{...b.source,path:G("file-path",b.id,b.source.path),name:G("file-symbol",b.id,b.source.name),text:X(b.id,b.source.text)};if(b.source.type==="resource")return{...b.source,clientName:G("file-client",b.id,b.source.clientName),uri:G("file-uri",b.id,b.source.uri),text:X(b.id,b.source.text)};return{...b.source,path:G("file-path",b.id,b.source.path),text:X(b.id,b.source.text)}}function O(b){return{...b,url:G("file-url",b.id,b.url),filename:b.filename===void 0?void 0:G("file-name",b.id,b.filename),source:E(b)}}function L(b){switch(b.type){case"text":return{...b,text:G("text",b.id,b.text),metadata:U("text-metadata",b.id,b.metadata)};case"reasoning":return{...b,text:G("reasoning",b.id,b.text),metadata:U("reasoning-metadata",b.id,b.metadata)};case"file":return O(b);case"subtask":return{...b,prompt:G("subtask-prompt",b.id,b.prompt),description:G("subtask-description",b.id,b.description),command:b.command===void 0?void 0:G("subtask-command",b.id,b.command)};case"tool":return{...b,metadata:U("tool-metadata",b.id,b.metadata),state:b.state.status==="pending"?{...b.state,input:U("tool-input",b.id,b.state.input)??b.state.input,raw:G("tool-raw",b.id,b.state.raw)}:b.state.status==="running"?{...b.state,input:U("tool-input",b.id,b.state.input)??b.state.input,title:b.state.title===void 0?void 0:G("tool-title",b.id,b.state.title),metadata:U("tool-state-metadata",b.id,b.state.metadata)}:b.state.status==="completed"?{...b.state,input:U("tool-input",b.id,b.state.input)??b.state.input,output:G("tool-output",b.id,b.state.output),title:G("tool-title",b.id,b.state.title),metadata:U("tool-state-metadata",b.id,b.state.metadata)??b.state.metadata,attachments:b.state.attachments?.map(O)}:{...b.state,input:U("tool-input",b.id,b.state.input)??b.state.input,error:G("tool-error",b.id,b.state.error),metadata:U("tool-state-metadata",b.id,b.state.metadata)}};case"patch":return{...b,hash:G("patch",b.id,b.hash),files:b.files.map((q,C)=>G("patch-file",`${b.id}-${C}`,q))};case"snapshot":return{...b,snapshot:G("snapshot",b.id,b.snapshot)};case"step-start":case"step-finish":return{...b,snapshot:b.snapshot===void 0?void 0:G("snapshot",b.id,b.snapshot)};case"agent":return{...b,source:!b.source?b.source:{...b.source,value:G("agent-source",b.id,b.source.value)}};default:return b}}function d(b){return{info:{...b.info,title:G("session-title",b.info.id,b.info.title),directory:G("session-directory",b.info.id,b.info.directory),summary:!b.info.summary?b.info.summary:{...b.info.summary,diffs:N("session-diff",b.info.summary.diffs)},revert:!b.info.revert?b.info.revert:{...b.info.revert,snapshot:b.info.revert.snapshot===void 0?void 0:G("revert-snapshot",b.info.id,b.info.revert.snapshot),diff:b.info.revert.diff===void 0?void 0:G("revert-diff",b.info.id,b.info.revert.diff)}},messages:b.messages.map((q)=>({info:q.info.role==="user"?{...q.info,system:q.info.system===void 0?void 0:G("system",q.info.id,q.info.system),summary:!q.info.summary?q.info.summary:{...q.info.summary,title:q.info.summary.title===void 0?void 0:G("summary-title",q.info.id,q.info.summary.title),body:q.info.summary.body===void 0?void 0:G("summary-body",q.info.id,q.info.summary.body),diffs:N("message-diff",q.info.summary.diffs)}}:{...q.info,path:{cwd:G("cwd",q.info.id,q.info.path.cwd),root:G("root",q.info.id,q.info.path.root)}},parts:q.parts.map(L)}))}}function i(b,q,C){let J=w(C.providers),Q=`# ${b.title}
3
-
4
- `;Q+=`**Session ID:** ${b.id}
5
- `,Q+=`**Created:** ${new Date(b.time.created).toLocaleString()}
6
- `,Q+=`**Updated:** ${new Date(b.time.updated).toLocaleString()}
7
-
8
- `,Q+=`---
9
-
10
- `;for(let V of q)Q+=R(V.info,V.parts,C,J),Q+=`---
11
-
12
- `;return Q}function R(b,q,C,J){let Q=b.role==="user"?`## User
13
-
14
- `:S(b,C.assistantMetadata,J??C.providers);for(let V of q)Q+=P(V,C);return Q}function S(b,q,C){if(!q)return`## Assistant
15
-
16
- `;let J=b.time.completed&&b.time.created?((b.time.completed-b.time.created)/1000).toFixed(1)+"s":"",Q=H(C,b.providerID,b.modelID);return`## Assistant (${y.titlecase(b.agent)} \xB7 ${Q}${J?` \xB7 ${J}`:""})
17
-
18
- `}function P(b,q){if(b.type==="text"&&!b.synthetic)return`${b.text}
19
-
20
- `;if(b.type==="reasoning")return q.thinking?`_Thinking:_
21
-
22
- ${b.text}
23
-
24
- `:"";if(b.type!=="tool")return"";let C=(Q,V="")=>{let M=Math.max(0,...Array.from(Q.matchAll(/`+/g),(_)=>_[0].length)),Z="`".repeat(Math.max(3,M+1));return`${Z}${V}
25
- ${Q}
26
- ${Z}
27
- `},J=`**Tool: ${b.tool}**
28
- `;if(q.toolDetails&&b.state.input)J+=`
29
- **Input:**
30
- ${C(JSON.stringify(b.state.input,null,2),"json")}`;if(q.toolDetails&&b.state.status==="completed"&&b.state.output)J+=`
31
- **Output:**
32
- ${C(b.state.output)}`;if(q.toolDetails&&b.state.status==="error"&&b.state.error)J+=`
33
- **Error:**
34
- ${C(b.state.error)}`;return J+A}
35
- export{z as J,$ as K,w as L,H as M,f as N,c as O,m as P,n as Q,o as R,d as S,i as T};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var A="./tree-sitter-zig-e78zbjpm.wasm";export{A as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ge as a}from"./chunk-ya6r72ng.js";import"./chunk-qtdxy2q1.js";import"./chunk-gfer8ch3.js";import"./chunk-wqkvsj5y.js";import"./chunk-9svh74gt.js";export{a as fromProcess};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$q as c,Zq as a,_q as b,ar as d,br as e,cr as f}from"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Of as a}from"./chunk-ztjrm8m0.js";import"./chunk-8y03p2md.js";import"./chunk-9svh74gt.js";export default a();
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jg as a}from"./chunk-seda5sfd.js";import{_g as t,yh as c}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import{Jv as i}from"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.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};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-tjk1hymv.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-gpm39v12.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-vpcsmwsb.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ag as j,Bg as k,Cg as l,Dg as m,Eg as n,zg as i}from"./chunk-3tf7xfw5.js";import"./chunk-aykvrqrp.js";import{Aq as a,Bq as b,Cq as c,Dq as d,Eq as e,Fq as f,Jq as g,Kq as h}from"./chunk-bxc3z38f.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-9svh74gt.js";export{f as resolveDevicePoll,h as refreshAccessToken,g as probeToken,l as loginDevice,n as loginBrowser,m as login,b as isReplitEnv,j as isNearExpiry,c as getConfig,i as getCallbackUri,k as fetchQreditsBalance,a as checkoutApiKey,d as ForgewiseError,e as DeviceFlowUnsupportedError};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-1mqfhw0f.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Md as a}from"./chunk-q65qzc9w.js";import"./chunk-8t17w67q.js";import"./chunk-9svh74gt.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ne as a}from"./chunk-y8bxvp3c.js";import"./chunk-2ts74cgq.js";import"./chunk-qtdxy2q1.js";import"./chunk-gfer8ch3.js";import"./chunk-wqkvsj5y.js";import"./chunk-9svh74gt.js";export{a as fromHttp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{UQ as t}from"./chunk-9svh74gt.js";var e=await import("./chunk-4bcbvfsw.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-9svh74gt.js";var L="./opentui-c5en9p2g.dll";export{L as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{a,b,c,d,e,f,g}from"./chunk-78e76m4h.js";import"./chunk-kr975sx0.js";import"./chunk-cm7yp259.js";import"./chunk-ncvr75f6.js";import"./chunk-csmdhh7r.js";import"./chunk-cg7zeppb.js";import"./chunk-b274mb6v.js";import"./chunk-h6kmpgak.js";import"./chunk-3tf7xfw5.js";import"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import"./chunk-x28chfpz.js";import"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";export{f as statusEffect,a as resolveApiKeyFlag,e as logoutEffect,d as loginEffect,c as interactiveLogin,b as apiKeyLoginEffect,g as AuthCommand};