@madarco/agentbox 0.27.1 → 0.28.0-nightly.202607251721

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 (364) hide show
  1. package/CHANGELOG.md +87 -4
  2. package/README.md +7 -3
  3. package/dist/_cloud-attach-XZYF324R.js +26 -0
  4. package/dist/admin-client-NOZ5CCAH.js +15 -0
  5. package/dist/chunk-2VW37PW4.js +1694 -0
  6. package/dist/chunk-2VW37PW4.js.map +1 -0
  7. package/dist/{chunk-HR7NHH5J.js → chunk-3UMM4VJH.js} +808 -57
  8. package/dist/chunk-3UMM4VJH.js.map +1 -0
  9. package/dist/chunk-5U5QOFL5.js +20 -0
  10. package/dist/chunk-5U5QOFL5.js.map +1 -0
  11. package/dist/chunk-6P6D77QP.js +285 -0
  12. package/dist/chunk-6P6D77QP.js.map +1 -0
  13. package/dist/chunk-6V366IZC.js +2892 -0
  14. package/dist/chunk-6V366IZC.js.map +1 -0
  15. package/dist/{chunk-KWOEUFVA.js → chunk-7J6G526Q.js} +6 -14
  16. package/dist/{chunk-KWOEUFVA.js.map → chunk-7J6G526Q.js.map} +1 -1
  17. package/dist/{chunk-IDH5A4RR.js → chunk-AYPAYY5R.js} +17 -4
  18. package/dist/chunk-AYPAYY5R.js.map +1 -0
  19. package/dist/{chunk-JGZSA5ZI.js → chunk-BHJCMTHP.js} +58 -15
  20. package/dist/chunk-BHJCMTHP.js.map +1 -0
  21. package/dist/{chunk-26IKZRTT.js → chunk-BLWAWGFX.js} +297 -1217
  22. package/dist/chunk-BLWAWGFX.js.map +1 -0
  23. package/dist/chunk-CGPUFXET.js +95 -0
  24. package/dist/chunk-CGPUFXET.js.map +1 -0
  25. package/dist/{chunk-SJ75AIA2.js → chunk-D6AODRNA.js} +12 -9
  26. package/dist/{chunk-SJ75AIA2.js.map → chunk-D6AODRNA.js.map} +1 -1
  27. package/dist/chunk-DPJMEG7U.js +11 -0
  28. package/dist/chunk-DPJMEG7U.js.map +1 -0
  29. package/dist/chunk-E2ITEZAQ.js +148 -0
  30. package/dist/chunk-E2ITEZAQ.js.map +1 -0
  31. package/dist/{chunk-JE6UI5YR.js → chunk-NKVCIH6N.js} +89 -223
  32. package/dist/chunk-NKVCIH6N.js.map +1 -0
  33. package/dist/chunk-OEYAVBA6.js +120 -0
  34. package/dist/chunk-OEYAVBA6.js.map +1 -0
  35. package/dist/{chunk-UJEH2NJT.js → chunk-PXYPQ5BO.js} +64 -264
  36. package/dist/chunk-PXYPQ5BO.js.map +1 -0
  37. package/dist/chunk-QESXSSO6.js +670 -0
  38. package/dist/chunk-QESXSSO6.js.map +1 -0
  39. package/dist/{chunk-NEF6MDJO.js → chunk-QJCK2AFX.js} +128 -26
  40. package/dist/chunk-QJCK2AFX.js.map +1 -0
  41. package/dist/chunk-RUJJY23M.js +84 -0
  42. package/dist/chunk-RUJJY23M.js.map +1 -0
  43. package/dist/{chunk-LL7NCMUU.js → chunk-SKNJRYM5.js} +7 -13
  44. package/dist/chunk-SKNJRYM5.js.map +1 -0
  45. package/dist/chunk-WFGAMJ5Q.js +689 -0
  46. package/dist/chunk-WFGAMJ5Q.js.map +1 -0
  47. package/dist/chunk-ZJL56TJD.js +1444 -0
  48. package/dist/chunk-ZJL56TJD.js.map +1 -0
  49. package/dist/{chunk-V5XXJH63.js → chunk-ZXOP4LBG.js} +5 -8
  50. package/dist/chunk-ZXOP4LBG.js.map +1 -0
  51. package/dist/control-plane-2VEM2KCL.js +31 -0
  52. package/dist/custody-client-P6XIXHRG.js +16 -0
  53. package/dist/{dist-TSFVB7AI.js → dist-2SYQI5S2.js} +11 -7
  54. package/dist/dist-2SYQI5S2.js.map +1 -0
  55. package/dist/{dist-KQTMCVME.js → dist-6QZMZEL7.js} +18 -11
  56. package/dist/dist-6QZMZEL7.js.map +1 -0
  57. package/dist/{dist-FTKS2GI4.js → dist-JHMILJUT.js} +10 -6
  58. package/dist/{dist-OO52HARR.js → dist-JOFZOZCY.js} +41 -25
  59. package/dist/{dist-O3LKOIE7.js → dist-KZ2GEEEX.js} +11 -7
  60. package/dist/dist-KZ2GEEEX.js.map +1 -0
  61. package/dist/{dist-Z6L5MM5D.js → dist-Q5NY4CF6.js} +10 -6
  62. package/dist/{dist-U2SVLJUQ.js → dist-SKMNEDVW.js} +8 -2
  63. package/dist/dist-SKMNEDVW.js.map +1 -0
  64. package/dist/dist-SRCKO7ZV.js +197 -0
  65. package/dist/dist-SRCKO7ZV.js.map +1 -0
  66. package/dist/{dist-WVYAURMF.js → dist-UXZQWKY6.js} +10 -6
  67. package/dist/dist-UXZQWKY6.js.map +1 -0
  68. package/dist/env-file-UDUDQMP4.js +11 -0
  69. package/dist/env-file-UDUDQMP4.js.map +1 -0
  70. package/dist/hub-adopt-ZS5CREYF.js +21 -0
  71. package/dist/hub-adopt-ZS5CREYF.js.map +1 -0
  72. package/dist/index.js +2461 -1905
  73. package/dist/index.js.map +1 -1
  74. package/dist/node-postgres-6JUOVUN5.js +3584 -0
  75. package/dist/node-postgres-6JUOVUN5.js.map +1 -0
  76. package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js → prepared-state-75DIZ55S-P6LE4N64.js} +3 -2
  77. package/dist/prepared-state-75DIZ55S-P6LE4N64.js.map +1 -0
  78. package/dist/remote-hub-SJ4XWBA5.js +9 -0
  79. package/dist/remote-hub-SJ4XWBA5.js.map +1 -0
  80. package/dist/sqlite-proxy-53E5D2VM.js +2882 -0
  81. package/dist/sqlite-proxy-53E5D2VM.js.map +1 -0
  82. package/package.json +1 -1
  83. package/runtime/_shared/ctl.cjs +29199 -16813
  84. package/runtime/digitalocean/ctl.cjs +29199 -16813
  85. package/runtime/docker/packages/ctl/dist/bin.cjs +29199 -16813
  86. package/runtime/e2b/ctl.cjs +29199 -16813
  87. package/runtime/hetzner/ctl.cjs +29199 -16813
  88. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  89. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  90. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +5 -5
  91. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
  92. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
  93. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  94. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +2 -2
  95. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  96. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +2 -2
  97. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  98. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +2 -2
  99. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  100. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +2 -2
  101. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  102. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +2 -2
  103. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +2 -2
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +2 -2
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +2 -2
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +2 -2
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  112. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +4 -4
  113. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  114. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +2 -2
  115. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  116. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +2 -2
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js +2 -2
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js +2 -2
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +2 -2
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +2 -2
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +2 -2
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +2 -2
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js +2 -2
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +2 -2
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +2 -2
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +2 -2
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +2 -2
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +2 -2
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +2 -2
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +2 -2
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +2 -2
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +2 -2
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +2 -2
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +2 -2
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  159. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +4 -2
  160. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  161. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  162. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  163. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  164. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  165. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  166. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  167. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  168. package/runtime/hub/apps/hub/.next/server/chunks/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +3 -0
  169. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_0gvv4ct._.js +4 -0
  170. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_0pn9b49._.js +4 -0
  171. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_145bz8z._.js +9 -0
  172. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_14y990b._.js +3 -0
  173. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_1nl4l3q._.js +3 -0
  174. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_sqlite-proxy_index_05v_j5r.js +15 -0
  175. package/runtime/hub/apps/hub/.next/server/chunks/{[externals]__12m3qoa._.js → [externals]__0f3aqcx._.js} +2 -2
  176. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-9g1s8._.js +3 -0
  177. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-pvfxg._.js +3 -0
  178. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01amzh6._.js +3 -0
  179. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02q799_._.js +3 -0
  180. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03k22rl._.js +3 -0
  181. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04tqk-j._.js +3 -0
  182. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05ovf1y._.js +3 -0
  183. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05s-_x7._.js +3 -0
  184. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07dnyfi._.js +3 -0
  185. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07zk6qo._.js +3 -0
  186. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_59yi6._.js +3 -0
  187. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ajlo3d._.js +3 -0
  188. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0b5s54n._.js +3 -0
  189. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c4fiez._.js +3 -0
  190. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c9iff1._.js +3 -0
  191. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +5 -5
  192. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dh6lzr._.js +3 -0
  193. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ey83ai._.js +3 -0
  194. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h6vdvr._.js +3 -0
  195. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lup7p4._.js +3 -0
  196. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0luxuu4._.js +3 -0
  197. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nl2u6u._.js +3 -0
  198. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nonp-6._.js +3 -0
  199. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0oplozy._.js +3 -0
  200. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p-6wgd._.js +3 -0
  201. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0rcnwbw._.js +3 -0
  202. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tuz1am._.js +3 -0
  203. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +1 -1
  204. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10ry4ss._.js +3 -0
  205. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11hv164._.js +3 -0
  206. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__154_i13._.js +3 -0
  207. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17676rc._.js +3 -0
  208. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bg1alc._.js +3 -0
  209. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cvqb1d._.js +3 -0
  210. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60gbz._.js +3 -0
  211. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dm0jmw._.js +6 -0
  212. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dv_b1t._.js +3 -0
  213. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fzxip4._.js +3 -0
  214. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4oj-e._.js +3 -0
  215. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i4gq_2._.js +3 -0
  216. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v1p7in._.js +3 -0
  217. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9_her._.js +4 -0
  218. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x1jkpb._.js +3 -0
  219. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yd8n5l._.js +3 -0
  220. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20t_rs8._.js +3 -0
  221. package/runtime/hub/apps/hub/.next/server/chunks/_033w048._.js +1 -1
  222. package/runtime/hub/apps/hub/.next/server/chunks/_06f2faq._.js +1 -1
  223. package/runtime/hub/apps/hub/.next/server/chunks/{_0760z6y._.js → _0907rw0._.js} +15 -15
  224. package/runtime/hub/apps/hub/.next/server/chunks/_0f3molr._.js +1 -1
  225. package/runtime/hub/apps/hub/.next/server/chunks/_0lgs9kd._.js +1 -1
  226. package/runtime/hub/apps/hub/.next/server/chunks/_0pyhcqe._.js +1 -1
  227. package/runtime/hub/apps/hub/.next/server/chunks/_1-42ili._.js +1 -1
  228. package/runtime/hub/apps/hub/.next/server/chunks/_11__3wi._.js +1 -1
  229. package/runtime/hub/apps/hub/.next/server/chunks/_12flzuh._.js +1 -1
  230. package/runtime/hub/apps/hub/.next/server/chunks/_1bng7w9._.js +1 -1
  231. package/runtime/hub/apps/hub/.next/server/chunks/_1rpkqst._.js +1 -1
  232. package/runtime/hub/apps/hub/.next/server/chunks/_1wt72m1._.js +1 -1
  233. package/runtime/hub/apps/hub/.next/server/chunks/_1x3l5t8._.js +1 -1
  234. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +62 -31
  235. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +1 -1
  236. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_1uccfbf._.js +1 -1
  237. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +1 -1
  238. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +1 -1
  239. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +1 -1
  240. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +1 -1
  241. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +1 -1
  242. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +1 -1
  243. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +1 -1
  244. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +1 -1
  245. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0ebuy19._.js +3 -0
  246. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0wxhi0-._.js +3 -0
  247. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0xe4ick._.js +9 -0
  248. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_14oaveu._.js +4 -0
  249. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_sqlite-proxy_index_1a6wfdg.js +15 -0
  250. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0-pm2yl._.js +3 -0
  251. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +1 -1
  252. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +1 -1
  253. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +1 -1
  254. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +1 -1
  255. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +1 -1
  256. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0m1yf2b._.js +4 -0
  257. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0wv-3zo._.js +3 -0
  258. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +1 -1
  259. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +2 -2
  260. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +1 -1
  261. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{_0ro6vh6._.js → _0r2xlss._.js} +3 -3
  262. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +1 -1
  263. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +2 -25
  264. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  265. package/runtime/hub/apps/hub/.next/server/middleware.js +1 -1
  266. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  267. package/runtime/hub/apps/hub/.next/static/chunks/{2xc1sm79a6tsb.js → 2gsrna76i1d80.js} +1 -1
  268. package/runtime/hub/apps/hub/attach-helper.cjs +191 -0
  269. package/runtime/hub/apps/hub/{auth-DC44GQZY.js → auth-IRNNO3IK.js} +2 -2
  270. package/runtime/hub/apps/hub/{auth-config-LALRDYDO.js → auth-config-WJHIMGUE.js} +4 -2
  271. package/runtime/hub/apps/hub/{chunk-YJ5MJOXK.js → chunk-4LYVBRBC.js} +2094 -220
  272. package/runtime/hub/apps/hub/chunk-6AVSKCZJ.js +669 -0
  273. package/runtime/hub/apps/hub/{chunk-QSMPSV5Z.js → chunk-A5Y7LJMU.js} +57 -14
  274. package/runtime/hub/apps/hub/chunk-EDRFXO2M.js +35 -0
  275. package/runtime/hub/apps/hub/chunk-F2JI4GMX.js +2891 -0
  276. package/runtime/hub/apps/hub/{chunk-EHBJKZCL.js → chunk-O3K3ZGFF.js} +500 -35
  277. package/runtime/hub/apps/hub/chunk-RII6IKNJ.js +688 -0
  278. package/runtime/hub/apps/hub/{chunk-RXYOWSSN.js → chunk-RMEUA6PA.js} +120 -14
  279. package/runtime/hub/apps/hub/{chunk-3FJNKSNZ.js → chunk-SCHQR5KR.js} +3 -1
  280. package/runtime/hub/apps/hub/{dist-6FPPUSWZ.js → dist-2GEAA7QA.js} +15 -3
  281. package/runtime/hub/apps/hub/{dist-JG45OFT2.js → dist-36O6F6M3.js} +39 -24
  282. package/runtime/hub/apps/hub/{dist-3I7KUI6W.js → dist-IWLEL2TO.js} +21 -24
  283. package/runtime/hub/apps/hub/{dist-G6TXUSPZ.js → dist-NYKIT5W5.js} +10 -11
  284. package/runtime/hub/apps/hub/{dist-EQV4L7KP.js → dist-QB2IJ7OD.js} +7 -1
  285. package/runtime/hub/apps/hub/{dist-LYDHYTP2.js → dist-RBBXXGLI.js} +129 -26
  286. package/runtime/hub/apps/hub/{dist-GTVVXCBP.js → dist-RRJN2U5P.js} +10 -14
  287. package/runtime/hub/apps/hub/{dist-DX6IYMAH.js → dist-UWXGDCK4.js} +14 -11
  288. package/runtime/hub/apps/hub/{hub-token-COBZGSLS.js → hub-token-6USIMBPQ.js} +2 -2
  289. package/runtime/hub/apps/hub/hub-worker-SOFWVTWU.js +215 -0
  290. package/runtime/hub/apps/hub/node-postgres-DIU2H5VP.js +3583 -0
  291. package/runtime/hub/apps/hub/package.json +5 -2
  292. package/runtime/hub/apps/hub/{prepared-state-75DIZ55S-2IFNUHHM.js → prepared-state-75DIZ55S-P5FHEORG.js} +1 -1
  293. package/runtime/hub/apps/hub/server.js +247 -66
  294. package/runtime/hub/apps/hub/sqlite-proxy-VJS3HIOV.js +2881 -0
  295. package/runtime/relay/bin.cjs +694 -13
  296. package/runtime/vercel/ctl.cjs +29199 -16813
  297. package/dist/_cloud-attach-WDGM6FL5.js +0 -19
  298. package/dist/chunk-26IKZRTT.js.map +0 -1
  299. package/dist/chunk-HR7NHH5J.js.map +0 -1
  300. package/dist/chunk-IDH5A4RR.js.map +0 -1
  301. package/dist/chunk-JE6UI5YR.js.map +0 -1
  302. package/dist/chunk-JGZSA5ZI.js.map +0 -1
  303. package/dist/chunk-LL7NCMUU.js.map +0 -1
  304. package/dist/chunk-NEF6MDJO.js.map +0 -1
  305. package/dist/chunk-UJEH2NJT.js.map +0 -1
  306. package/dist/chunk-V5XXJH63.js.map +0 -1
  307. package/dist/dist-KQTMCVME.js.map +0 -1
  308. package/dist/dist-O3LKOIE7.js.map +0 -1
  309. package/dist/dist-TSFVB7AI.js.map +0 -1
  310. package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +0 -3
  311. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +0 -3
  312. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +0 -3
  313. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +0 -3
  314. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a7djvw._.js +0 -3
  315. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +0 -3
  316. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +0 -3
  317. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ql4fjo._.js +0 -3
  318. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0szd4sh._.js +0 -3
  319. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +0 -3
  320. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vs8fma._.js +0 -3
  321. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w9ud8u._.js +0 -3
  322. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xh14bo._.js +0 -3
  323. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yhb0gc._.js +0 -3
  324. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-0flwc._.js +0 -3
  325. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13ioh5z._.js +0 -3
  326. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +0 -3
  327. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +0 -3
  328. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +0 -3
  329. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19pc87s._.js +0 -3
  330. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +0 -3
  331. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a50b07._.js +0 -3
  332. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +0 -3
  333. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +0 -3
  334. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +0 -3
  335. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d6mtlk._.js +0 -3
  336. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dn_3i1._.js +0 -3
  337. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1e4z_-v._.js +0 -3
  338. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +0 -3
  339. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +0 -3
  340. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4xycg._.js +0 -3
  341. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +0 -3
  342. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1js2jdv._.js +0 -3
  343. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1md9kdw._.js +0 -3
  344. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +0 -3
  345. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +0 -6
  346. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +0 -3
  347. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q5bqse._.js +0 -3
  348. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +0 -3
  349. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thipug._.js +0 -3
  350. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9om6g._.js +0 -3
  351. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +0 -3
  352. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +0 -3
  353. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_20c820g._.js +0 -3
  354. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0j0tjwn._.js +0 -3
  355. /package/dist/{_cloud-attach-WDGM6FL5.js.map → _cloud-attach-XZYF324R.js.map} +0 -0
  356. /package/dist/{dist-FTKS2GI4.js.map → admin-client-NOZ5CCAH.js.map} +0 -0
  357. /package/dist/{dist-OO52HARR.js.map → control-plane-2VEM2KCL.js.map} +0 -0
  358. /package/dist/{dist-U2SVLJUQ.js.map → custody-client-P6XIXHRG.js.map} +0 -0
  359. /package/dist/{dist-WVYAURMF.js.map → dist-JHMILJUT.js.map} +0 -0
  360. /package/dist/{dist-Z6L5MM5D.js.map → dist-JOFZOZCY.js.map} +0 -0
  361. /package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js.map → dist-Q5NY4CF6.js.map} +0 -0
  362. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → B4bEtdig9I9joQFHDOjX3}/_buildManifest.js +0 -0
  363. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → B4bEtdig9I9joQFHDOjX3}/_clientMiddlewareManifest.js +0 -0
  364. /package/runtime/hub/apps/hub/.next/static/{PWF2iHQOg9-rRyfqVDLrh → B4bEtdig9I9joQFHDOjX3}/_ssgManifest.js +0 -0
@@ -0,0 +1,669 @@
1
+ import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
2
+ import {
3
+ Column,
4
+ ColumnBuilder,
5
+ Table,
6
+ TableName,
7
+ entityKind,
8
+ getColumnNameAndConfig,
9
+ sql,
10
+ textDecoder
11
+ } from "./chunk-F2JI4GMX.js";
12
+
13
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
14
+ var ForeignKeyBuilder = class {
15
+ static [entityKind] = "SQLiteForeignKeyBuilder";
16
+ /** @internal */
17
+ reference;
18
+ /** @internal */
19
+ _onUpdate;
20
+ /** @internal */
21
+ _onDelete;
22
+ constructor(config, actions) {
23
+ this.reference = () => {
24
+ const { name, columns, foreignColumns } = config();
25
+ return { name, columns, foreignTable: foreignColumns[0].table, foreignColumns };
26
+ };
27
+ if (actions) {
28
+ this._onUpdate = actions.onUpdate;
29
+ this._onDelete = actions.onDelete;
30
+ }
31
+ }
32
+ onUpdate(action) {
33
+ this._onUpdate = action;
34
+ return this;
35
+ }
36
+ onDelete(action) {
37
+ this._onDelete = action;
38
+ return this;
39
+ }
40
+ /** @internal */
41
+ build(table) {
42
+ return new ForeignKey(table, this);
43
+ }
44
+ };
45
+ var ForeignKey = class {
46
+ constructor(table, builder) {
47
+ this.table = table;
48
+ this.reference = builder.reference;
49
+ this.onUpdate = builder._onUpdate;
50
+ this.onDelete = builder._onDelete;
51
+ }
52
+ static [entityKind] = "SQLiteForeignKey";
53
+ reference;
54
+ onUpdate;
55
+ onDelete;
56
+ getName() {
57
+ const { name, columns, foreignColumns } = this.reference();
58
+ const columnNames = columns.map((column) => column.name);
59
+ const foreignColumnNames = foreignColumns.map((column) => column.name);
60
+ const chunks = [
61
+ this.table[TableName],
62
+ ...columnNames,
63
+ foreignColumns[0].table[TableName],
64
+ ...foreignColumnNames
65
+ ];
66
+ return name ?? `${chunks.join("_")}_fk`;
67
+ }
68
+ };
69
+
70
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
71
+ function uniqueKeyName(table, columns) {
72
+ return `${table[TableName]}_${columns.join("_")}_unique`;
73
+ }
74
+ var UniqueConstraintBuilder = class {
75
+ constructor(columns, name) {
76
+ this.name = name;
77
+ this.columns = columns;
78
+ }
79
+ static [entityKind] = "SQLiteUniqueConstraintBuilder";
80
+ /** @internal */
81
+ columns;
82
+ /** @internal */
83
+ build(table) {
84
+ return new UniqueConstraint(table, this.columns, this.name);
85
+ }
86
+ };
87
+ var UniqueOnConstraintBuilder = class {
88
+ static [entityKind] = "SQLiteUniqueOnConstraintBuilder";
89
+ /** @internal */
90
+ name;
91
+ constructor(name) {
92
+ this.name = name;
93
+ }
94
+ on(...columns) {
95
+ return new UniqueConstraintBuilder(columns, this.name);
96
+ }
97
+ };
98
+ var UniqueConstraint = class {
99
+ constructor(table, columns, name) {
100
+ this.table = table;
101
+ this.columns = columns;
102
+ this.name = name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));
103
+ }
104
+ static [entityKind] = "SQLiteUniqueConstraint";
105
+ columns;
106
+ name;
107
+ getName() {
108
+ return this.name;
109
+ }
110
+ };
111
+
112
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/common.js
113
+ var SQLiteColumnBuilder = class extends ColumnBuilder {
114
+ static [entityKind] = "SQLiteColumnBuilder";
115
+ foreignKeyConfigs = [];
116
+ references(ref, actions = {}) {
117
+ this.foreignKeyConfigs.push({ ref, actions });
118
+ return this;
119
+ }
120
+ unique(name) {
121
+ this.config.isUnique = true;
122
+ this.config.uniqueName = name;
123
+ return this;
124
+ }
125
+ generatedAlwaysAs(as, config) {
126
+ this.config.generated = {
127
+ as,
128
+ type: "always",
129
+ mode: config?.mode ?? "virtual"
130
+ };
131
+ return this;
132
+ }
133
+ /** @internal */
134
+ buildForeignKeys(column, table) {
135
+ return this.foreignKeyConfigs.map(({ ref, actions }) => {
136
+ return ((ref2, actions2) => {
137
+ const builder = new ForeignKeyBuilder(() => {
138
+ const foreignColumn = ref2();
139
+ return { columns: [column], foreignColumns: [foreignColumn] };
140
+ });
141
+ if (actions2.onUpdate) {
142
+ builder.onUpdate(actions2.onUpdate);
143
+ }
144
+ if (actions2.onDelete) {
145
+ builder.onDelete(actions2.onDelete);
146
+ }
147
+ return builder.build(table);
148
+ })(ref, actions);
149
+ });
150
+ }
151
+ };
152
+ var SQLiteColumn = class extends Column {
153
+ constructor(table, config) {
154
+ if (!config.uniqueName) {
155
+ config.uniqueName = uniqueKeyName(table, [config.name]);
156
+ }
157
+ super(table, config);
158
+ this.table = table;
159
+ }
160
+ static [entityKind] = "SQLiteColumn";
161
+ };
162
+
163
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/integer.js
164
+ var SQLiteBaseIntegerBuilder = class extends SQLiteColumnBuilder {
165
+ static [entityKind] = "SQLiteBaseIntegerBuilder";
166
+ constructor(name, dataType, columnType) {
167
+ super(name, dataType, columnType);
168
+ this.config.autoIncrement = false;
169
+ }
170
+ primaryKey(config) {
171
+ if (config?.autoIncrement) {
172
+ this.config.autoIncrement = true;
173
+ }
174
+ this.config.hasDefault = true;
175
+ return super.primaryKey();
176
+ }
177
+ };
178
+ var SQLiteBaseInteger = class extends SQLiteColumn {
179
+ static [entityKind] = "SQLiteBaseInteger";
180
+ autoIncrement = this.config.autoIncrement;
181
+ getSQLType() {
182
+ return "integer";
183
+ }
184
+ };
185
+ var SQLiteIntegerBuilder = class extends SQLiteBaseIntegerBuilder {
186
+ static [entityKind] = "SQLiteIntegerBuilder";
187
+ constructor(name) {
188
+ super(name, "number", "SQLiteInteger");
189
+ }
190
+ build(table) {
191
+ return new SQLiteInteger(
192
+ table,
193
+ this.config
194
+ );
195
+ }
196
+ };
197
+ var SQLiteInteger = class extends SQLiteBaseInteger {
198
+ static [entityKind] = "SQLiteInteger";
199
+ };
200
+ var SQLiteTimestampBuilder = class extends SQLiteBaseIntegerBuilder {
201
+ static [entityKind] = "SQLiteTimestampBuilder";
202
+ constructor(name, mode) {
203
+ super(name, "date", "SQLiteTimestamp");
204
+ this.config.mode = mode;
205
+ }
206
+ /**
207
+ * @deprecated Use `default()` with your own expression instead.
208
+ *
209
+ * Adds `DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer))` to the column, which is the current epoch timestamp in milliseconds.
210
+ */
211
+ defaultNow() {
212
+ return this.default(sql`(cast((julianday('now') - 2440587.5)*86400000 as integer))`);
213
+ }
214
+ build(table) {
215
+ return new SQLiteTimestamp(
216
+ table,
217
+ this.config
218
+ );
219
+ }
220
+ };
221
+ var SQLiteTimestamp = class extends SQLiteBaseInteger {
222
+ static [entityKind] = "SQLiteTimestamp";
223
+ mode = this.config.mode;
224
+ mapFromDriverValue(value) {
225
+ if (this.config.mode === "timestamp") {
226
+ return new Date(value * 1e3);
227
+ }
228
+ return new Date(value);
229
+ }
230
+ mapToDriverValue(value) {
231
+ const unix = value.getTime();
232
+ if (this.config.mode === "timestamp") {
233
+ return Math.floor(unix / 1e3);
234
+ }
235
+ return unix;
236
+ }
237
+ };
238
+ var SQLiteBooleanBuilder = class extends SQLiteBaseIntegerBuilder {
239
+ static [entityKind] = "SQLiteBooleanBuilder";
240
+ constructor(name, mode) {
241
+ super(name, "boolean", "SQLiteBoolean");
242
+ this.config.mode = mode;
243
+ }
244
+ build(table) {
245
+ return new SQLiteBoolean(
246
+ table,
247
+ this.config
248
+ );
249
+ }
250
+ };
251
+ var SQLiteBoolean = class extends SQLiteBaseInteger {
252
+ static [entityKind] = "SQLiteBoolean";
253
+ mode = this.config.mode;
254
+ mapFromDriverValue(value) {
255
+ return Number(value) === 1;
256
+ }
257
+ mapToDriverValue(value) {
258
+ return value ? 1 : 0;
259
+ }
260
+ };
261
+ function integer(a, b) {
262
+ const { name, config } = getColumnNameAndConfig(a, b);
263
+ if (config?.mode === "timestamp" || config?.mode === "timestamp_ms") {
264
+ return new SQLiteTimestampBuilder(name, config.mode);
265
+ }
266
+ if (config?.mode === "boolean") {
267
+ return new SQLiteBooleanBuilder(name, config.mode);
268
+ }
269
+ return new SQLiteIntegerBuilder(name);
270
+ }
271
+
272
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/text.js
273
+ var SQLiteTextBuilder = class extends SQLiteColumnBuilder {
274
+ static [entityKind] = "SQLiteTextBuilder";
275
+ constructor(name, config) {
276
+ super(name, "string", "SQLiteText");
277
+ this.config.enumValues = config.enum;
278
+ this.config.length = config.length;
279
+ }
280
+ /** @internal */
281
+ build(table) {
282
+ return new SQLiteText(
283
+ table,
284
+ this.config
285
+ );
286
+ }
287
+ };
288
+ var SQLiteText = class extends SQLiteColumn {
289
+ static [entityKind] = "SQLiteText";
290
+ enumValues = this.config.enumValues;
291
+ length = this.config.length;
292
+ constructor(table, config) {
293
+ super(table, config);
294
+ }
295
+ getSQLType() {
296
+ return `text${this.config.length ? `(${this.config.length})` : ""}`;
297
+ }
298
+ };
299
+ var SQLiteTextJsonBuilder = class extends SQLiteColumnBuilder {
300
+ static [entityKind] = "SQLiteTextJsonBuilder";
301
+ constructor(name) {
302
+ super(name, "json", "SQLiteTextJson");
303
+ }
304
+ /** @internal */
305
+ build(table) {
306
+ return new SQLiteTextJson(
307
+ table,
308
+ this.config
309
+ );
310
+ }
311
+ };
312
+ var SQLiteTextJson = class extends SQLiteColumn {
313
+ static [entityKind] = "SQLiteTextJson";
314
+ getSQLType() {
315
+ return "text";
316
+ }
317
+ mapFromDriverValue(value) {
318
+ return JSON.parse(value);
319
+ }
320
+ mapToDriverValue(value) {
321
+ return JSON.stringify(value);
322
+ }
323
+ };
324
+ function text(a, b = {}) {
325
+ const { name, config } = getColumnNameAndConfig(a, b);
326
+ if (config.mode === "json") {
327
+ return new SQLiteTextJsonBuilder(name);
328
+ }
329
+ return new SQLiteTextBuilder(name, config);
330
+ }
331
+
332
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/blob.js
333
+ var SQLiteBigIntBuilder = class extends SQLiteColumnBuilder {
334
+ static [entityKind] = "SQLiteBigIntBuilder";
335
+ constructor(name) {
336
+ super(name, "bigint", "SQLiteBigInt");
337
+ }
338
+ /** @internal */
339
+ build(table) {
340
+ return new SQLiteBigInt(table, this.config);
341
+ }
342
+ };
343
+ var SQLiteBigInt = class extends SQLiteColumn {
344
+ static [entityKind] = "SQLiteBigInt";
345
+ getSQLType() {
346
+ return "blob";
347
+ }
348
+ mapFromDriverValue(value) {
349
+ if (typeof Buffer !== "undefined" && Buffer.from) {
350
+ const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
351
+ return BigInt(buf.toString("utf8"));
352
+ }
353
+ return BigInt(textDecoder.decode(value));
354
+ }
355
+ mapToDriverValue(value) {
356
+ return Buffer.from(value.toString());
357
+ }
358
+ };
359
+ var SQLiteBlobJsonBuilder = class extends SQLiteColumnBuilder {
360
+ static [entityKind] = "SQLiteBlobJsonBuilder";
361
+ constructor(name) {
362
+ super(name, "json", "SQLiteBlobJson");
363
+ }
364
+ /** @internal */
365
+ build(table) {
366
+ return new SQLiteBlobJson(
367
+ table,
368
+ this.config
369
+ );
370
+ }
371
+ };
372
+ var SQLiteBlobJson = class extends SQLiteColumn {
373
+ static [entityKind] = "SQLiteBlobJson";
374
+ getSQLType() {
375
+ return "blob";
376
+ }
377
+ mapFromDriverValue(value) {
378
+ if (typeof Buffer !== "undefined" && Buffer.from) {
379
+ const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
380
+ return JSON.parse(buf.toString("utf8"));
381
+ }
382
+ return JSON.parse(textDecoder.decode(value));
383
+ }
384
+ mapToDriverValue(value) {
385
+ return Buffer.from(JSON.stringify(value));
386
+ }
387
+ };
388
+ var SQLiteBlobBufferBuilder = class extends SQLiteColumnBuilder {
389
+ static [entityKind] = "SQLiteBlobBufferBuilder";
390
+ constructor(name) {
391
+ super(name, "buffer", "SQLiteBlobBuffer");
392
+ }
393
+ /** @internal */
394
+ build(table) {
395
+ return new SQLiteBlobBuffer(table, this.config);
396
+ }
397
+ };
398
+ var SQLiteBlobBuffer = class extends SQLiteColumn {
399
+ static [entityKind] = "SQLiteBlobBuffer";
400
+ mapFromDriverValue(value) {
401
+ if (Buffer.isBuffer(value)) {
402
+ return value;
403
+ }
404
+ return Buffer.from(value);
405
+ }
406
+ getSQLType() {
407
+ return "blob";
408
+ }
409
+ };
410
+ function blob(a, b) {
411
+ const { name, config } = getColumnNameAndConfig(a, b);
412
+ if (config?.mode === "json") {
413
+ return new SQLiteBlobJsonBuilder(name);
414
+ }
415
+ if (config?.mode === "bigint") {
416
+ return new SQLiteBigIntBuilder(name);
417
+ }
418
+ return new SQLiteBlobBufferBuilder(name);
419
+ }
420
+
421
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/custom.js
422
+ var SQLiteCustomColumnBuilder = class extends SQLiteColumnBuilder {
423
+ static [entityKind] = "SQLiteCustomColumnBuilder";
424
+ constructor(name, fieldConfig, customTypeParams) {
425
+ super(name, "custom", "SQLiteCustomColumn");
426
+ this.config.fieldConfig = fieldConfig;
427
+ this.config.customTypeParams = customTypeParams;
428
+ }
429
+ /** @internal */
430
+ build(table) {
431
+ return new SQLiteCustomColumn(
432
+ table,
433
+ this.config
434
+ );
435
+ }
436
+ };
437
+ var SQLiteCustomColumn = class extends SQLiteColumn {
438
+ static [entityKind] = "SQLiteCustomColumn";
439
+ sqlName;
440
+ mapTo;
441
+ mapFrom;
442
+ constructor(table, config) {
443
+ super(table, config);
444
+ this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
445
+ this.mapTo = config.customTypeParams.toDriver;
446
+ this.mapFrom = config.customTypeParams.fromDriver;
447
+ }
448
+ getSQLType() {
449
+ return this.sqlName;
450
+ }
451
+ mapFromDriverValue(value) {
452
+ return typeof this.mapFrom === "function" ? this.mapFrom(value) : value;
453
+ }
454
+ mapToDriverValue(value) {
455
+ return typeof this.mapTo === "function" ? this.mapTo(value) : value;
456
+ }
457
+ };
458
+ function customType(customTypeParams) {
459
+ return (a, b) => {
460
+ const { name, config } = getColumnNameAndConfig(a, b);
461
+ return new SQLiteCustomColumnBuilder(
462
+ name,
463
+ config,
464
+ customTypeParams
465
+ );
466
+ };
467
+ }
468
+
469
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
470
+ var SQLiteNumericBuilder = class extends SQLiteColumnBuilder {
471
+ static [entityKind] = "SQLiteNumericBuilder";
472
+ constructor(name) {
473
+ super(name, "string", "SQLiteNumeric");
474
+ }
475
+ /** @internal */
476
+ build(table) {
477
+ return new SQLiteNumeric(
478
+ table,
479
+ this.config
480
+ );
481
+ }
482
+ };
483
+ var SQLiteNumeric = class extends SQLiteColumn {
484
+ static [entityKind] = "SQLiteNumeric";
485
+ mapFromDriverValue(value) {
486
+ if (typeof value === "string") return value;
487
+ return String(value);
488
+ }
489
+ getSQLType() {
490
+ return "numeric";
491
+ }
492
+ };
493
+ var SQLiteNumericNumberBuilder = class extends SQLiteColumnBuilder {
494
+ static [entityKind] = "SQLiteNumericNumberBuilder";
495
+ constructor(name) {
496
+ super(name, "number", "SQLiteNumericNumber");
497
+ }
498
+ /** @internal */
499
+ build(table) {
500
+ return new SQLiteNumericNumber(
501
+ table,
502
+ this.config
503
+ );
504
+ }
505
+ };
506
+ var SQLiteNumericNumber = class extends SQLiteColumn {
507
+ static [entityKind] = "SQLiteNumericNumber";
508
+ mapFromDriverValue(value) {
509
+ if (typeof value === "number") return value;
510
+ return Number(value);
511
+ }
512
+ mapToDriverValue = String;
513
+ getSQLType() {
514
+ return "numeric";
515
+ }
516
+ };
517
+ var SQLiteNumericBigIntBuilder = class extends SQLiteColumnBuilder {
518
+ static [entityKind] = "SQLiteNumericBigIntBuilder";
519
+ constructor(name) {
520
+ super(name, "bigint", "SQLiteNumericBigInt");
521
+ }
522
+ /** @internal */
523
+ build(table) {
524
+ return new SQLiteNumericBigInt(
525
+ table,
526
+ this.config
527
+ );
528
+ }
529
+ };
530
+ var SQLiteNumericBigInt = class extends SQLiteColumn {
531
+ static [entityKind] = "SQLiteNumericBigInt";
532
+ mapFromDriverValue = BigInt;
533
+ mapToDriverValue = String;
534
+ getSQLType() {
535
+ return "numeric";
536
+ }
537
+ };
538
+ function numeric(a, b) {
539
+ const { name, config } = getColumnNameAndConfig(a, b);
540
+ const mode = config?.mode;
541
+ return mode === "number" ? new SQLiteNumericNumberBuilder(name) : mode === "bigint" ? new SQLiteNumericBigIntBuilder(name) : new SQLiteNumericBuilder(name);
542
+ }
543
+
544
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/real.js
545
+ var SQLiteRealBuilder = class extends SQLiteColumnBuilder {
546
+ static [entityKind] = "SQLiteRealBuilder";
547
+ constructor(name) {
548
+ super(name, "number", "SQLiteReal");
549
+ }
550
+ /** @internal */
551
+ build(table) {
552
+ return new SQLiteReal(table, this.config);
553
+ }
554
+ };
555
+ var SQLiteReal = class extends SQLiteColumn {
556
+ static [entityKind] = "SQLiteReal";
557
+ getSQLType() {
558
+ return "real";
559
+ }
560
+ };
561
+ function real(name) {
562
+ return new SQLiteRealBuilder(name ?? "");
563
+ }
564
+
565
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/columns/all.js
566
+ function getSQLiteColumnBuilders() {
567
+ return {
568
+ blob,
569
+ customType,
570
+ integer,
571
+ numeric,
572
+ real,
573
+ text
574
+ };
575
+ }
576
+
577
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/table.js
578
+ var InlineForeignKeys = /* @__PURE__ */ Symbol.for("drizzle:SQLiteInlineForeignKeys");
579
+ var SQLiteTable = class extends Table {
580
+ static [entityKind] = "SQLiteTable";
581
+ /** @internal */
582
+ static Symbol = Object.assign({}, Table.Symbol, {
583
+ InlineForeignKeys
584
+ });
585
+ /** @internal */
586
+ [Table.Symbol.Columns];
587
+ /** @internal */
588
+ [InlineForeignKeys] = [];
589
+ /** @internal */
590
+ [Table.Symbol.ExtraConfigBuilder] = void 0;
591
+ };
592
+ function sqliteTableBase(name, columns, extraConfig, schema, baseName = name) {
593
+ const rawTable = new SQLiteTable(name, schema, baseName);
594
+ const parsedColumns = typeof columns === "function" ? columns(getSQLiteColumnBuilders()) : columns;
595
+ const builtColumns = Object.fromEntries(
596
+ Object.entries(parsedColumns).map(([name2, colBuilderBase]) => {
597
+ const colBuilder = colBuilderBase;
598
+ colBuilder.setName(name2);
599
+ const column = colBuilder.build(rawTable);
600
+ rawTable[InlineForeignKeys].push(...colBuilder.buildForeignKeys(column, rawTable));
601
+ return [name2, column];
602
+ })
603
+ );
604
+ const table = Object.assign(rawTable, builtColumns);
605
+ table[Table.Symbol.Columns] = builtColumns;
606
+ table[Table.Symbol.ExtraConfigColumns] = builtColumns;
607
+ if (extraConfig) {
608
+ table[SQLiteTable.Symbol.ExtraConfigBuilder] = extraConfig;
609
+ }
610
+ return table;
611
+ }
612
+ var sqliteTable = (name, columns, extraConfig) => {
613
+ return sqliteTableBase(name, columns, extraConfig);
614
+ };
615
+
616
+ // ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+pg@8.20.0_kysely@0.29.2_pg@8.22.0/node_modules/drizzle-orm/sqlite-core/indexes.js
617
+ var IndexBuilderOn = class {
618
+ constructor(name, unique) {
619
+ this.name = name;
620
+ this.unique = unique;
621
+ }
622
+ static [entityKind] = "SQLiteIndexBuilderOn";
623
+ on(...columns) {
624
+ return new IndexBuilder(this.name, columns, this.unique);
625
+ }
626
+ };
627
+ var IndexBuilder = class {
628
+ static [entityKind] = "SQLiteIndexBuilder";
629
+ /** @internal */
630
+ config;
631
+ constructor(name, columns, unique) {
632
+ this.config = {
633
+ name,
634
+ columns,
635
+ unique,
636
+ where: void 0
637
+ };
638
+ }
639
+ /**
640
+ * Condition for partial index.
641
+ */
642
+ where(condition) {
643
+ this.config.where = condition;
644
+ return this;
645
+ }
646
+ /** @internal */
647
+ build(table) {
648
+ return new Index(this.config, table);
649
+ }
650
+ };
651
+ var Index = class {
652
+ static [entityKind] = "SQLiteIndex";
653
+ config;
654
+ constructor(config, table) {
655
+ this.config = { ...config, table };
656
+ }
657
+ };
658
+ function index(name) {
659
+ return new IndexBuilderOn(name, false);
660
+ }
661
+
662
+ export {
663
+ SQLiteColumn,
664
+ integer,
665
+ text,
666
+ SQLiteTable,
667
+ sqliteTable,
668
+ index
669
+ };