@keystrokehq/platform 0.1.1 → 0.1.2

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 (321) hide show
  1. package/dist/{awk2-LA3USKJP-CKefzQCd.mjs → awk2-LA3USKJP-C4BD4eVg.mjs} +2 -2
  2. package/dist/{awk2-LA3USKJP-CKefzQCd.mjs.map → awk2-LA3USKJP-C4BD4eVg.mjs.map} +1 -1
  3. package/dist/{awk2-LA3USKJP-BNV-PUu0.cjs → awk2-LA3USKJP-Ddh1vPYe.cjs} +2 -2
  4. package/dist/{awk2-LA3USKJP-BNV-PUu0.cjs.map → awk2-LA3USKJP-Ddh1vPYe.cjs.map} +1 -1
  5. package/dist/{base64-C2AIWVNC-Ca8wsOx8.cjs → base64-C2AIWVNC-BaiY8WTm.cjs} +2 -2
  6. package/dist/{base64-C2AIWVNC-Ca8wsOx8.cjs.map → base64-C2AIWVNC-BaiY8WTm.cjs.map} +1 -1
  7. package/dist/{base64-C2AIWVNC-Bw6COidZ.mjs → base64-C2AIWVNC-ChQw62cb.mjs} +2 -2
  8. package/dist/{base64-C2AIWVNC-Bw6COidZ.mjs.map → base64-C2AIWVNC-ChQw62cb.mjs.map} +1 -1
  9. package/dist/{bash-YZ33HQZQ-DafyaX5Y.cjs → bash-YZ33HQZQ-CSOYNHWg.cjs} +2 -2
  10. package/dist/{bash-YZ33HQZQ-DafyaX5Y.cjs.map → bash-YZ33HQZQ-CSOYNHWg.cjs.map} +1 -1
  11. package/dist/{bash-YZ33HQZQ-DcfJU6Ux.mjs → bash-YZ33HQZQ-Y0B3uk-_.mjs} +2 -2
  12. package/dist/{bash-YZ33HQZQ-DcfJU6Ux.mjs.map → bash-YZ33HQZQ-Y0B3uk-_.mjs.map} +1 -1
  13. package/dist/{cat-TSFMZVYS-CoIsiESf.cjs → cat-TSFMZVYS-DA84HtAp.cjs} +3 -3
  14. package/dist/{cat-TSFMZVYS-CoIsiESf.cjs.map → cat-TSFMZVYS-DA84HtAp.cjs.map} +1 -1
  15. package/dist/{cat-TSFMZVYS-CH5_fwTr.mjs → cat-TSFMZVYS-xDkdXP7N.mjs} +3 -3
  16. package/dist/{cat-TSFMZVYS-CH5_fwTr.mjs.map → cat-TSFMZVYS-xDkdXP7N.mjs.map} +1 -1
  17. package/dist/{chunk-5H5SCKJM-B8_eAK5q.cjs → chunk-5H5SCKJM-CH5cUv3d.cjs} +2 -2
  18. package/dist/{chunk-5H5SCKJM-B8_eAK5q.cjs.map → chunk-5H5SCKJM-CH5cUv3d.cjs.map} +1 -1
  19. package/dist/{chunk-5H5SCKJM-7YDw0nlX.mjs → chunk-5H5SCKJM-CS7KORUE.mjs} +2 -2
  20. package/dist/{chunk-5H5SCKJM-7YDw0nlX.mjs.map → chunk-5H5SCKJM-CS7KORUE.mjs.map} +1 -1
  21. package/dist/{chunk-AQ6FYS2X-j91QPdH4.cjs → chunk-AQ6FYS2X-BHfS6zKK.cjs} +2 -2
  22. package/dist/{chunk-AQ6FYS2X-j91QPdH4.cjs.map → chunk-AQ6FYS2X-BHfS6zKK.cjs.map} +1 -1
  23. package/dist/{chunk-AQ6FYS2X-BC0cOnb9.mjs → chunk-AQ6FYS2X-CmF-1vT3.mjs} +2 -2
  24. package/dist/{chunk-AQ6FYS2X-BC0cOnb9.mjs.map → chunk-AQ6FYS2X-CmF-1vT3.mjs.map} +1 -1
  25. package/dist/{chunk-CHFEPBH4-TM0eBc-8.cjs → chunk-CHFEPBH4-BeM01F0F.cjs} +2 -2
  26. package/dist/{chunk-CHFEPBH4-TM0eBc-8.cjs.map → chunk-CHFEPBH4-BeM01F0F.cjs.map} +1 -1
  27. package/dist/{chunk-CHFEPBH4-5WV6pMBA.mjs → chunk-CHFEPBH4-C7eTbJVK.mjs} +2 -2
  28. package/dist/{chunk-CHFEPBH4-5WV6pMBA.mjs.map → chunk-CHFEPBH4-C7eTbJVK.mjs.map} +1 -1
  29. package/dist/{chunk-EBAPSGAO-BGEWfN_e.mjs → chunk-EBAPSGAO-BZyQwwNU.mjs} +2 -2
  30. package/dist/{chunk-EBAPSGAO-BGEWfN_e.mjs.map → chunk-EBAPSGAO-BZyQwwNU.mjs.map} +1 -1
  31. package/dist/{chunk-EBAPSGAO-X4NT2DxA.cjs → chunk-EBAPSGAO-fp1lOUs3.cjs} +2 -2
  32. package/dist/{chunk-EBAPSGAO-X4NT2DxA.cjs.map → chunk-EBAPSGAO-fp1lOUs3.cjs.map} +1 -1
  33. package/dist/{chunk-LEKBROJD-BPVzbmRh.cjs → chunk-LEKBROJD-CC4SPOIA.cjs} +2 -2
  34. package/dist/{chunk-LEKBROJD-BPVzbmRh.cjs.map → chunk-LEKBROJD-CC4SPOIA.cjs.map} +1 -1
  35. package/dist/{chunk-LEKBROJD-DTQWQf0a.mjs → chunk-LEKBROJD-DgEXP_ty.mjs} +2 -2
  36. package/dist/{chunk-LEKBROJD-DTQWQf0a.mjs.map → chunk-LEKBROJD-DgEXP_ty.mjs.map} +1 -1
  37. package/dist/{chunk-VPADYNBD-qbL_T5Uh.cjs → chunk-VPADYNBD-CuU1_5VT.cjs} +2 -2
  38. package/dist/{chunk-VPADYNBD-qbL_T5Uh.cjs.map → chunk-VPADYNBD-CuU1_5VT.cjs.map} +1 -1
  39. package/dist/{chunk-VPADYNBD-DTef7dIx.mjs → chunk-VPADYNBD-DypZmvfB.mjs} +2 -2
  40. package/dist/{chunk-VPADYNBD-DTef7dIx.mjs.map → chunk-VPADYNBD-DypZmvfB.mjs.map} +1 -1
  41. package/dist/{chunk-YCLFEX4T-DS2ZbXdJ.mjs → chunk-YCLFEX4T-B5a3ihBC.mjs} +2 -2
  42. package/dist/{chunk-YCLFEX4T-DS2ZbXdJ.mjs.map → chunk-YCLFEX4T-B5a3ihBC.mjs.map} +1 -1
  43. package/dist/{chunk-YCLFEX4T-B5mxliVb.cjs → chunk-YCLFEX4T-D4AWfbT8.cjs} +2 -2
  44. package/dist/{chunk-YCLFEX4T-B5mxliVb.cjs.map → chunk-YCLFEX4T-D4AWfbT8.cjs.map} +1 -1
  45. package/dist/{column-XT6UFXNQ-DxJuuCZO.mjs → column-XT6UFXNQ-B3nI2VCJ.mjs} +2 -2
  46. package/dist/{column-XT6UFXNQ-DxJuuCZO.mjs.map → column-XT6UFXNQ-B3nI2VCJ.mjs.map} +1 -1
  47. package/dist/{column-XT6UFXNQ-CjqSbReY.cjs → column-XT6UFXNQ-D-31htgy.cjs} +2 -2
  48. package/dist/{column-XT6UFXNQ-CjqSbReY.cjs.map → column-XT6UFXNQ-D-31htgy.cjs.map} +1 -1
  49. package/dist/{comm-VV2LDX2J-Ct7AXc22.cjs → comm-VV2LDX2J-CSfuzlYr.cjs} +2 -2
  50. package/dist/{comm-VV2LDX2J-Ct7AXc22.cjs.map → comm-VV2LDX2J-CSfuzlYr.cjs.map} +1 -1
  51. package/dist/{comm-VV2LDX2J-CRUrgndw.mjs → comm-VV2LDX2J-DpNYwHST.mjs} +2 -2
  52. package/dist/{comm-VV2LDX2J-CRUrgndw.mjs.map → comm-VV2LDX2J-DpNYwHST.mjs.map} +1 -1
  53. package/dist/{config-CH-0zvAi.d.cts → config-Ck1BY0Ga.d.mts} +28 -6
  54. package/dist/{config-CJZBcsy6.d.mts → config-PWJeAlTn.d.cts} +26 -8
  55. package/dist/config.cjs +2 -3
  56. package/dist/config.cjs.map +1 -1
  57. package/dist/config.d.cts +1 -2
  58. package/dist/config.d.mts +1 -2
  59. package/dist/config.mjs +1 -2
  60. package/dist/config.mjs.map +1 -1
  61. package/dist/{cp-BISAAS7A-BEWIC1ep.mjs → cp-BISAAS7A-BHfTBk1S.mjs} +2 -2
  62. package/dist/{cp-BISAAS7A-BEWIC1ep.mjs.map → cp-BISAAS7A-BHfTBk1S.mjs.map} +1 -1
  63. package/dist/{cp-BISAAS7A-BTlFdjse.cjs → cp-BISAAS7A-CPlXYVs4.cjs} +2 -2
  64. package/dist/{cp-BISAAS7A-BTlFdjse.cjs.map → cp-BISAAS7A-CPlXYVs4.cjs.map} +1 -1
  65. package/dist/{cut-OKARJCCV-Cq3QNcN-.mjs → cut-OKARJCCV-CgfLOcVz.mjs} +3 -3
  66. package/dist/{cut-OKARJCCV-Cq3QNcN-.mjs.map → cut-OKARJCCV-CgfLOcVz.mjs.map} +1 -1
  67. package/dist/{cut-OKARJCCV-LemaM014.cjs → cut-OKARJCCV-Ci0PtEgB.cjs} +3 -3
  68. package/dist/{cut-OKARJCCV-LemaM014.cjs.map → cut-OKARJCCV-Ci0PtEgB.cjs.map} +1 -1
  69. package/dist/{diff-MWJFIG7X-dQTRnWAk.mjs → diff-MWJFIG7X-CJdAnnog.mjs} +2 -2
  70. package/dist/{diff-MWJFIG7X-dQTRnWAk.mjs.map → diff-MWJFIG7X-CJdAnnog.mjs.map} +1 -1
  71. package/dist/{diff-MWJFIG7X-CM3vdBmY.cjs → diff-MWJFIG7X-F82OACp-.cjs} +2 -2
  72. package/dist/{diff-MWJFIG7X-CM3vdBmY.cjs.map → diff-MWJFIG7X-F82OACp-.cjs.map} +1 -1
  73. package/dist/{dist-dELW1gaR.mjs → dist-B1hOOWjl.mjs} +273 -74
  74. package/dist/dist-B1hOOWjl.mjs.map +1 -0
  75. package/dist/{dist-COpoWBp6.cjs → dist-DvjFaP47.cjs} +283 -131
  76. package/dist/dist-DvjFaP47.cjs.map +1 -0
  77. package/dist/{du-572XNP42-3RIhvC5P.cjs → du-572XNP42-BnHmg4U2.cjs} +2 -2
  78. package/dist/{du-572XNP42-3RIhvC5P.cjs.map → du-572XNP42-BnHmg4U2.cjs.map} +1 -1
  79. package/dist/{du-572XNP42-CyPYCo2M.mjs → du-572XNP42-D6bH6wn1.mjs} +2 -2
  80. package/dist/{du-572XNP42-CyPYCo2M.mjs.map → du-572XNP42-D6bH6wn1.mjs.map} +1 -1
  81. package/dist/{env-36M5BO7M-D_8C_5X5.cjs → env-36M5BO7M-BxusWRsf.cjs} +2 -2
  82. package/dist/{env-36M5BO7M-D_8C_5X5.cjs.map → env-36M5BO7M-BxusWRsf.cjs.map} +1 -1
  83. package/dist/{env-36M5BO7M-Ds8s_D_j.mjs → env-36M5BO7M-a702Fh7w.mjs} +2 -2
  84. package/dist/{env-36M5BO7M-Ds8s_D_j.mjs.map → env-36M5BO7M-a702Fh7w.mjs.map} +1 -1
  85. package/dist/{expand-JSPG6VOP-3UquG3Wf.mjs → expand-JSPG6VOP-BbtpP_uq.mjs} +2 -2
  86. package/dist/{expand-JSPG6VOP-3UquG3Wf.mjs.map → expand-JSPG6VOP-BbtpP_uq.mjs.map} +1 -1
  87. package/dist/{expand-JSPG6VOP-BDy27RvB.cjs → expand-JSPG6VOP-DjHywCfM.cjs} +2 -2
  88. package/dist/{expand-JSPG6VOP-BDy27RvB.cjs.map → expand-JSPG6VOP-DjHywCfM.cjs.map} +1 -1
  89. package/dist/{expr-5JAACS4X-B-xIQg5e.mjs → expr-5JAACS4X-Cp_dIjlS.mjs} +2 -2
  90. package/dist/{expr-5JAACS4X-B-xIQg5e.mjs.map → expr-5JAACS4X-Cp_dIjlS.mjs.map} +1 -1
  91. package/dist/{expr-5JAACS4X-z-ugAUQD.cjs → expr-5JAACS4X-Df3xFZ4w.cjs} +2 -2
  92. package/dist/{expr-5JAACS4X-z-ugAUQD.cjs.map → expr-5JAACS4X-Df3xFZ4w.cjs.map} +1 -1
  93. package/dist/{find-INTH3OLC-D6LkPRVn.cjs → find-INTH3OLC-B5hj2iWq.cjs} +3 -3
  94. package/dist/{find-INTH3OLC-D6LkPRVn.cjs.map → find-INTH3OLC-B5hj2iWq.cjs.map} +1 -1
  95. package/dist/{find-INTH3OLC-C0oDj6Aa.mjs → find-INTH3OLC-DorC8D7k.mjs} +3 -3
  96. package/dist/{find-INTH3OLC-C0oDj6Aa.mjs.map → find-INTH3OLC-DorC8D7k.mjs.map} +1 -1
  97. package/dist/{fold-4TQNYMSW-BNAAhi3M.mjs → fold-4TQNYMSW-DOzlyQla.mjs} +2 -2
  98. package/dist/{fold-4TQNYMSW-BNAAhi3M.mjs.map → fold-4TQNYMSW-DOzlyQla.mjs.map} +1 -1
  99. package/dist/{fold-4TQNYMSW-C4KhiKXo.cjs → fold-4TQNYMSW-DU7ysgn3.cjs} +2 -2
  100. package/dist/{fold-4TQNYMSW-C4KhiKXo.cjs.map → fold-4TQNYMSW-DU7ysgn3.cjs.map} +1 -1
  101. package/dist/{grep-V3LQVMRQ-T3Pk0g-u.mjs → grep-V3LQVMRQ-C7va-nQQ.mjs} +4 -4
  102. package/dist/{grep-V3LQVMRQ-T3Pk0g-u.mjs.map → grep-V3LQVMRQ-C7va-nQQ.mjs.map} +1 -1
  103. package/dist/{grep-V3LQVMRQ-Ds_E1Mcg.cjs → grep-V3LQVMRQ-CnT0y0-P.cjs} +4 -4
  104. package/dist/{grep-V3LQVMRQ-Ds_E1Mcg.cjs.map → grep-V3LQVMRQ-CnT0y0-P.cjs.map} +1 -1
  105. package/dist/{gzip-O5ASJAFY-CQEhgQhi.mjs → gzip-O5ASJAFY-D25F69KM.mjs} +2 -2
  106. package/dist/{gzip-O5ASJAFY-CQEhgQhi.mjs.map → gzip-O5ASJAFY-D25F69KM.mjs.map} +1 -1
  107. package/dist/{gzip-O5ASJAFY-MdBB0FQ4.cjs → gzip-O5ASJAFY-Dwnbh7Hd.cjs} +2 -2
  108. package/dist/{gzip-O5ASJAFY-MdBB0FQ4.cjs.map → gzip-O5ASJAFY-Dwnbh7Hd.cjs.map} +1 -1
  109. package/dist/{head-442HYESI-_I53Pnb1.cjs → head-442HYESI-Dh7Qcjzs.cjs} +2 -2
  110. package/dist/{head-442HYESI-_I53Pnb1.cjs.map → head-442HYESI-Dh7Qcjzs.cjs.map} +1 -1
  111. package/dist/{head-442HYESI-C9ip0oZ6.mjs → head-442HYESI-W6FegHpm.mjs} +2 -2
  112. package/dist/{head-442HYESI-C9ip0oZ6.mjs.map → head-442HYESI-W6FegHpm.mjs.map} +1 -1
  113. package/dist/{help-HZ6M2CKN-7klk39e-.mjs → help-HZ6M2CKN-B2mT_z-L.mjs} +2 -2
  114. package/dist/{help-HZ6M2CKN-7klk39e-.mjs.map → help-HZ6M2CKN-B2mT_z-L.mjs.map} +1 -1
  115. package/dist/{help-HZ6M2CKN-C_gwqv6N.cjs → help-HZ6M2CKN-pRM3zbwR.cjs} +2 -2
  116. package/dist/{help-HZ6M2CKN-C_gwqv6N.cjs.map → help-HZ6M2CKN-pRM3zbwR.cjs.map} +1 -1
  117. package/dist/{html-to-markdown-JW4MSQZO-CxCkv6Mj.cjs → html-to-markdown-JW4MSQZO-CD4oQKoL.cjs} +3 -3
  118. package/dist/{html-to-markdown-JW4MSQZO-CxCkv6Mj.cjs.map → html-to-markdown-JW4MSQZO-CD4oQKoL.cjs.map} +1 -1
  119. package/dist/{html-to-markdown-JW4MSQZO-DAeOlJb4.mjs → html-to-markdown-JW4MSQZO-VzjAEp3C.mjs} +2 -2
  120. package/dist/{html-to-markdown-JW4MSQZO-DAeOlJb4.mjs.map → html-to-markdown-JW4MSQZO-VzjAEp3C.mjs.map} +1 -1
  121. package/dist/{join-TBRGI3LQ-C1FTmc74.mjs → join-TBRGI3LQ-CC2R6oH8.mjs} +2 -2
  122. package/dist/{join-TBRGI3LQ-C1FTmc74.mjs.map → join-TBRGI3LQ-CC2R6oH8.mjs.map} +1 -1
  123. package/dist/{join-TBRGI3LQ-C-dsbt1O.cjs → join-TBRGI3LQ-DR2e5mf6.cjs} +2 -2
  124. package/dist/{join-TBRGI3LQ-C-dsbt1O.cjs.map → join-TBRGI3LQ-DR2e5mf6.cjs.map} +1 -1
  125. package/dist/{jq-4XLYLOS5-DwRPL82B.cjs → jq-4XLYLOS5-CKdOTiVR.cjs} +4 -4
  126. package/dist/{jq-4XLYLOS5-DwRPL82B.cjs.map → jq-4XLYLOS5-CKdOTiVR.cjs.map} +1 -1
  127. package/dist/{jq-4XLYLOS5-f2AdWe3I.mjs → jq-4XLYLOS5-QOU61AvR.mjs} +4 -4
  128. package/dist/{jq-4XLYLOS5-f2AdWe3I.mjs.map → jq-4XLYLOS5-QOU61AvR.mjs.map} +1 -1
  129. package/dist/{js-exec-N5KEZBH7-C-U_T49T.cjs → js-exec-N5KEZBH7-8xgWmlL7.cjs} +4 -4
  130. package/dist/{js-exec-N5KEZBH7-C-U_T49T.cjs.map → js-exec-N5KEZBH7-8xgWmlL7.cjs.map} +1 -1
  131. package/dist/{js-exec-N5KEZBH7-J0fE5u49.mjs → js-exec-N5KEZBH7-CrHAJDpT.mjs} +3 -3
  132. package/dist/{js-exec-N5KEZBH7-J0fE5u49.mjs.map → js-exec-N5KEZBH7-CrHAJDpT.mjs.map} +1 -1
  133. package/dist/{lib-DE8ataza.cjs → lib-DLRZ2u6t.cjs} +2 -2
  134. package/dist/{lib-DE8ataza.cjs.map → lib-DLRZ2u6t.cjs.map} +1 -1
  135. package/dist/{lib-xIAY37Rj.mjs → lib-DecFXHrv.mjs} +2 -2
  136. package/dist/{lib-xIAY37Rj.mjs.map → lib-DecFXHrv.mjs.map} +1 -1
  137. package/dist/{ln-4LGSXXGD-lLnmqTxq.cjs → ln-4LGSXXGD-DxTw2TAq.cjs} +2 -2
  138. package/dist/{ln-4LGSXXGD-lLnmqTxq.cjs.map → ln-4LGSXXGD-DxTw2TAq.cjs.map} +1 -1
  139. package/dist/{ln-4LGSXXGD-BgxP6RU_.mjs → ln-4LGSXXGD-Or1qYweN.mjs} +2 -2
  140. package/dist/{ln-4LGSXXGD-BgxP6RU_.mjs.map → ln-4LGSXXGD-Or1qYweN.mjs.map} +1 -1
  141. package/dist/{ls-ZJGQER7M-C8j4Tvbv.mjs → ls-ZJGQER7M-BnKqqleV.mjs} +2 -2
  142. package/dist/{ls-ZJGQER7M-C8j4Tvbv.mjs.map → ls-ZJGQER7M-BnKqqleV.mjs.map} +1 -1
  143. package/dist/{ls-ZJGQER7M-BYVAD1YO.cjs → ls-ZJGQER7M-CynOwieQ.cjs} +2 -2
  144. package/dist/{ls-ZJGQER7M-BYVAD1YO.cjs.map → ls-ZJGQER7M-CynOwieQ.cjs.map} +1 -1
  145. package/dist/{lzma-C-qU8rCo.cjs → lzma-YuGttxCP.cjs} +2 -2
  146. package/dist/{lzma-C-qU8rCo.cjs.map → lzma-YuGttxCP.cjs.map} +1 -1
  147. package/dist/{md5sum-SPU24VSG-BXWbsDvm.cjs → md5sum-SPU24VSG-8_h79vAu.cjs} +3 -3
  148. package/dist/{md5sum-SPU24VSG-BXWbsDvm.cjs.map → md5sum-SPU24VSG-8_h79vAu.cjs.map} +1 -1
  149. package/dist/{md5sum-SPU24VSG-BVd8_jGG.mjs → md5sum-SPU24VSG-BusAHdrK.mjs} +3 -3
  150. package/dist/{md5sum-SPU24VSG-BVd8_jGG.mjs.map → md5sum-SPU24VSG-BusAHdrK.mjs.map} +1 -1
  151. package/dist/{mkdir-MEPGZOB6-Jxa36lH-.mjs → mkdir-MEPGZOB6-BnYYgVxv.mjs} +2 -2
  152. package/dist/{mkdir-MEPGZOB6-Jxa36lH-.mjs.map → mkdir-MEPGZOB6-BnYYgVxv.mjs.map} +1 -1
  153. package/dist/{mkdir-MEPGZOB6-BY2rSz4n.cjs → mkdir-MEPGZOB6-Z0WHNFtR.cjs} +2 -2
  154. package/dist/{mkdir-MEPGZOB6-BY2rSz4n.cjs.map → mkdir-MEPGZOB6-Z0WHNFtR.cjs.map} +1 -1
  155. package/dist/{mv-W5BIQ646-C6iMhYnr.mjs → mv-W5BIQ646-CDQ60965.mjs} +2 -2
  156. package/dist/{mv-W5BIQ646-C6iMhYnr.mjs.map → mv-W5BIQ646-CDQ60965.mjs.map} +1 -1
  157. package/dist/{mv-W5BIQ646-DmAtW345.cjs → mv-W5BIQ646-tAPnueJb.cjs} +2 -2
  158. package/dist/{mv-W5BIQ646-DmAtW345.cjs.map → mv-W5BIQ646-tAPnueJb.cjs.map} +1 -1
  159. package/dist/{nl-WSDW7I4O-DqGjVldy.cjs → nl-WSDW7I4O-BfBF-iiF.cjs} +2 -2
  160. package/dist/{nl-WSDW7I4O-DqGjVldy.cjs.map → nl-WSDW7I4O-BfBF-iiF.cjs.map} +1 -1
  161. package/dist/{nl-WSDW7I4O-BTmNrRjW.mjs → nl-WSDW7I4O-C8m5GQ1G.mjs} +2 -2
  162. package/dist/{nl-WSDW7I4O-BTmNrRjW.mjs.map → nl-WSDW7I4O-C8m5GQ1G.mjs.map} +1 -1
  163. package/dist/{od-WOKFDJTP-BNpft7pj.cjs → od-WOKFDJTP-CHXPdcv9.cjs} +2 -2
  164. package/dist/{od-WOKFDJTP-BNpft7pj.cjs.map → od-WOKFDJTP-CHXPdcv9.cjs.map} +1 -1
  165. package/dist/{od-WOKFDJTP-nBx_t02N.mjs → od-WOKFDJTP-KIq-UMwl.mjs} +2 -2
  166. package/dist/{od-WOKFDJTP-nBx_t02N.mjs.map → od-WOKFDJTP-KIq-UMwl.mjs.map} +1 -1
  167. package/dist/{paste-7JC6S4DX-C-0O4u2q.cjs → paste-7JC6S4DX-Bs8ByIXb.cjs} +2 -2
  168. package/dist/{paste-7JC6S4DX-C-0O4u2q.cjs.map → paste-7JC6S4DX-Bs8ByIXb.cjs.map} +1 -1
  169. package/dist/{paste-7JC6S4DX-KVzg2jll.mjs → paste-7JC6S4DX-u6xdoWS3.mjs} +2 -2
  170. package/dist/{paste-7JC6S4DX-KVzg2jll.mjs.map → paste-7JC6S4DX-u6xdoWS3.mjs.map} +1 -1
  171. package/dist/platform-database.cjs +13 -3
  172. package/dist/platform-database.d.cts +1 -1
  173. package/dist/platform-database.d.mts +1 -1
  174. package/dist/platform-database.mjs +1 -1
  175. package/dist/{printf-TWGXF445-RWHVX5FV.cjs → printf-TWGXF445-B0tOxQT6.cjs} +3 -3
  176. package/dist/{printf-TWGXF445-RWHVX5FV.cjs.map → printf-TWGXF445-B0tOxQT6.cjs.map} +1 -1
  177. package/dist/{printf-TWGXF445-Dj6F3iWo.mjs → printf-TWGXF445-CtvDPfv-.mjs} +2 -2
  178. package/dist/{printf-TWGXF445-Dj6F3iWo.mjs.map → printf-TWGXF445-CtvDPfv-.mjs.map} +1 -1
  179. package/dist/{python3-POMOR4OA-CBslj-gJ.mjs → python3-POMOR4OA-CYRVTFwe.mjs} +3 -3
  180. package/dist/{python3-POMOR4OA-CBslj-gJ.mjs.map → python3-POMOR4OA-CYRVTFwe.mjs.map} +1 -1
  181. package/dist/{python3-POMOR4OA-BuqCCpBS.cjs → python3-POMOR4OA-DYjQ3ccZ.cjs} +4 -4
  182. package/dist/{python3-POMOR4OA-BuqCCpBS.cjs.map → python3-POMOR4OA-DYjQ3ccZ.cjs.map} +1 -1
  183. package/dist/{rev-5EHFX4EJ-Dcpld4RG.mjs → rev-5EHFX4EJ-C41ieMgj.mjs} +2 -2
  184. package/dist/{rev-5EHFX4EJ-Dcpld4RG.mjs.map → rev-5EHFX4EJ-C41ieMgj.mjs.map} +1 -1
  185. package/dist/{rev-5EHFX4EJ-gMcdZInq.cjs → rev-5EHFX4EJ-Cgya-Fo0.cjs} +2 -2
  186. package/dist/{rev-5EHFX4EJ-gMcdZInq.cjs.map → rev-5EHFX4EJ-Cgya-Fo0.cjs.map} +1 -1
  187. package/dist/{rg-S4FXYXWB-CfvW0egS.cjs → rg-S4FXYXWB-ByK2CLxu.cjs} +3 -3
  188. package/dist/{rg-S4FXYXWB-CfvW0egS.cjs.map → rg-S4FXYXWB-ByK2CLxu.cjs.map} +1 -1
  189. package/dist/{rg-S4FXYXWB-CCi5yOZW.mjs → rg-S4FXYXWB-DixtanJa.mjs} +3 -3
  190. package/dist/{rg-S4FXYXWB-CCi5yOZW.mjs.map → rg-S4FXYXWB-DixtanJa.mjs.map} +1 -1
  191. package/dist/{rm-SSGETQVQ-bPTxcRcX.cjs → rm-SSGETQVQ-BSLrKStW.cjs} +2 -2
  192. package/dist/{rm-SSGETQVQ-bPTxcRcX.cjs.map → rm-SSGETQVQ-BSLrKStW.cjs.map} +1 -1
  193. package/dist/{rm-SSGETQVQ-DOU8kqH1.mjs → rm-SSGETQVQ-CkwXZzCb.mjs} +2 -2
  194. package/dist/{rm-SSGETQVQ-DOU8kqH1.mjs.map → rm-SSGETQVQ-CkwXZzCb.mjs.map} +1 -1
  195. package/dist/{rmdir-OC4ZLPYA-BTIoCXcX.mjs → rmdir-OC4ZLPYA-DmK6bDKx.mjs} +2 -2
  196. package/dist/{rmdir-OC4ZLPYA-BTIoCXcX.mjs.map → rmdir-OC4ZLPYA-DmK6bDKx.mjs.map} +1 -1
  197. package/dist/{rmdir-OC4ZLPYA-BuPVwHWE.cjs → rmdir-OC4ZLPYA-DrF3bZoQ.cjs} +2 -2
  198. package/dist/{rmdir-OC4ZLPYA-BuPVwHWE.cjs.map → rmdir-OC4ZLPYA-DrF3bZoQ.cjs.map} +1 -1
  199. package/dist/run.cjs +1 -1
  200. package/dist/run.mjs +1 -1
  201. package/dist/{sed-S5UIK574-CedHHKip.cjs → sed-S5UIK574-B3Klx8N4.cjs} +2 -2
  202. package/dist/{sed-S5UIK574-CedHHKip.cjs.map → sed-S5UIK574-B3Klx8N4.cjs.map} +1 -1
  203. package/dist/{sed-S5UIK574-Z6_JbTpH.mjs → sed-S5UIK574-tnYwSWkL.mjs} +2 -2
  204. package/dist/{sed-S5UIK574-Z6_JbTpH.mjs.map → sed-S5UIK574-tnYwSWkL.mjs.map} +1 -1
  205. package/dist/{sha1sum-2PTOAFR6-DE6FG5_u.mjs → sha1sum-2PTOAFR6-BP6dQ8V1.mjs} +3 -3
  206. package/dist/{sha1sum-2PTOAFR6-DE6FG5_u.mjs.map → sha1sum-2PTOAFR6-BP6dQ8V1.mjs.map} +1 -1
  207. package/dist/{sha1sum-2PTOAFR6-CkkcLEco.cjs → sha1sum-2PTOAFR6-Bl7iC2ql.cjs} +3 -3
  208. package/dist/{sha1sum-2PTOAFR6-CkkcLEco.cjs.map → sha1sum-2PTOAFR6-Bl7iC2ql.cjs.map} +1 -1
  209. package/dist/{sha256sum-NS7D3IXX-C6E752Cf.mjs → sha256sum-NS7D3IXX-BJzrJC0M.mjs} +3 -3
  210. package/dist/{sha256sum-NS7D3IXX-C6E752Cf.mjs.map → sha256sum-NS7D3IXX-BJzrJC0M.mjs.map} +1 -1
  211. package/dist/{sha256sum-NS7D3IXX-Czd21v8R.cjs → sha256sum-NS7D3IXX-DdD-z8yU.cjs} +3 -3
  212. package/dist/{sha256sum-NS7D3IXX-Czd21v8R.cjs.map → sha256sum-NS7D3IXX-DdD-z8yU.cjs.map} +1 -1
  213. package/dist/{sleep-X22JJINO-7H7IWY2o.mjs → sleep-X22JJINO-D3SDAJt4.mjs} +2 -2
  214. package/dist/{sleep-X22JJINO-7H7IWY2o.mjs.map → sleep-X22JJINO-D3SDAJt4.mjs.map} +1 -1
  215. package/dist/{sleep-X22JJINO-Dx_bFfIX.cjs → sleep-X22JJINO-UJvessts.cjs} +2 -2
  216. package/dist/{sleep-X22JJINO-Dx_bFfIX.cjs.map → sleep-X22JJINO-UJvessts.cjs.map} +1 -1
  217. package/dist/{sort-SW2YEO5B-BFOkdC51.mjs → sort-SW2YEO5B-CFc2Uu_A.mjs} +3 -3
  218. package/dist/{sort-SW2YEO5B-BFOkdC51.mjs.map → sort-SW2YEO5B-CFc2Uu_A.mjs.map} +1 -1
  219. package/dist/{sort-SW2YEO5B-CNvaPgBI.cjs → sort-SW2YEO5B-DIDExLis.cjs} +3 -3
  220. package/dist/{sort-SW2YEO5B-CNvaPgBI.cjs.map → sort-SW2YEO5B-DIDExLis.cjs.map} +1 -1
  221. package/dist/{split-4KKZZXXE-nt0tLTli.cjs → split-4KKZZXXE-CSVvRIzD.cjs} +2 -2
  222. package/dist/{split-4KKZZXXE-nt0tLTli.cjs.map → split-4KKZZXXE-CSVvRIzD.cjs.map} +1 -1
  223. package/dist/{split-4KKZZXXE-DtBxVEO8.mjs → split-4KKZZXXE-DMjoEV89.mjs} +2 -2
  224. package/dist/{split-4KKZZXXE-DtBxVEO8.mjs.map → split-4KKZZXXE-DMjoEV89.mjs.map} +1 -1
  225. package/dist/{sqlite3-CGOEFJAO-BGLep8e5.mjs → sqlite3-CGOEFJAO-BXYj3z3Q.mjs} +2 -2
  226. package/dist/{sqlite3-CGOEFJAO-BGLep8e5.mjs.map → sqlite3-CGOEFJAO-BXYj3z3Q.mjs.map} +1 -1
  227. package/dist/{sqlite3-CGOEFJAO-BWLd6W0g.cjs → sqlite3-CGOEFJAO-DTNqDMXu.cjs} +4 -4
  228. package/dist/{sqlite3-CGOEFJAO-BWLd6W0g.cjs.map → sqlite3-CGOEFJAO-DTNqDMXu.cjs.map} +1 -1
  229. package/dist/{start-BQ0b7Zex.cjs → start-Cm1hxyF_.cjs} +3224 -234
  230. package/dist/start-Cm1hxyF_.cjs.map +1 -0
  231. package/dist/{start-jG7mVE-h.mjs → start-DmsuxtBI.mjs} +3081 -91
  232. package/dist/start-DmsuxtBI.mjs.map +1 -0
  233. package/dist/start.cjs +1 -1
  234. package/dist/start.d.cts +1 -1
  235. package/dist/start.d.mts +1 -1
  236. package/dist/start.mjs +1 -1
  237. package/dist/{strings-6WDHLGMX-CGaZuwJ8.mjs → strings-6WDHLGMX-Cs9B6z8x.mjs} +2 -2
  238. package/dist/{strings-6WDHLGMX-CGaZuwJ8.mjs.map → strings-6WDHLGMX-Cs9B6z8x.mjs.map} +1 -1
  239. package/dist/{strings-6WDHLGMX-CHWp5DnU.cjs → strings-6WDHLGMX-D2bfJpyh.cjs} +2 -2
  240. package/dist/{strings-6WDHLGMX-CHWp5DnU.cjs.map → strings-6WDHLGMX-D2bfJpyh.cjs.map} +1 -1
  241. package/dist/{tac-2STMMJYW-DJvRhvlJ.cjs → tac-2STMMJYW-D0fFvjly.cjs} +2 -2
  242. package/dist/{tac-2STMMJYW-DJvRhvlJ.cjs.map → tac-2STMMJYW-D0fFvjly.cjs.map} +1 -1
  243. package/dist/{tac-2STMMJYW-D0B5neHF.mjs → tac-2STMMJYW-ceGFflzJ.mjs} +2 -2
  244. package/dist/{tac-2STMMJYW-D0B5neHF.mjs.map → tac-2STMMJYW-ceGFflzJ.mjs.map} +1 -1
  245. package/dist/{tail-R4PCA2C4-CBXSleY_.mjs → tail-R4PCA2C4-BopvFWyi.mjs} +2 -2
  246. package/dist/{tail-R4PCA2C4-CBXSleY_.mjs.map → tail-R4PCA2C4-BopvFWyi.mjs.map} +1 -1
  247. package/dist/{tail-R4PCA2C4-CtnCdzuO.cjs → tail-R4PCA2C4-CLtu5GPs.cjs} +2 -2
  248. package/dist/{tail-R4PCA2C4-CtnCdzuO.cjs.map → tail-R4PCA2C4-CLtu5GPs.cjs.map} +1 -1
  249. package/dist/{tar-STHHZTZ6-Btz1HNi9.cjs → tar-STHHZTZ6-Bxk0yG7D.cjs} +5 -5
  250. package/dist/{tar-STHHZTZ6-Btz1HNi9.cjs.map → tar-STHHZTZ6-Bxk0yG7D.cjs.map} +1 -1
  251. package/dist/{tar-STHHZTZ6-3cydfi4Z.mjs → tar-STHHZTZ6-QbV1N_D9.mjs} +3 -3
  252. package/dist/{tar-STHHZTZ6-3cydfi4Z.mjs.map → tar-STHHZTZ6-QbV1N_D9.mjs.map} +1 -1
  253. package/dist/{tee-YUZ2FKCJ-DJYybbg7.cjs → tee-YUZ2FKCJ-BbxSWxw6.cjs} +2 -2
  254. package/dist/{tee-YUZ2FKCJ-DJYybbg7.cjs.map → tee-YUZ2FKCJ-BbxSWxw6.cjs.map} +1 -1
  255. package/dist/{tee-YUZ2FKCJ-CtrtrXSY.mjs → tee-YUZ2FKCJ-DiFGWp4G.mjs} +2 -2
  256. package/dist/{tee-YUZ2FKCJ-CtrtrXSY.mjs.map → tee-YUZ2FKCJ-DiFGWp4G.mjs.map} +1 -1
  257. package/dist/{time-D4LNBSWX-DNNPSFOx.cjs → time-D4LNBSWX-BQSWzFeK.cjs} +2 -2
  258. package/dist/{time-D4LNBSWX-DNNPSFOx.cjs.map → time-D4LNBSWX-BQSWzFeK.cjs.map} +1 -1
  259. package/dist/{time-D4LNBSWX-BU6J60I4.mjs → time-D4LNBSWX-CTjUJUms.mjs} +2 -2
  260. package/dist/{time-D4LNBSWX-BU6J60I4.mjs.map → time-D4LNBSWX-CTjUJUms.mjs.map} +1 -1
  261. package/dist/{timeout-YDCRSLPQ-HSD3vHsz.mjs → timeout-YDCRSLPQ-DC-fdp1t.mjs} +2 -2
  262. package/dist/{timeout-YDCRSLPQ-HSD3vHsz.mjs.map → timeout-YDCRSLPQ-DC-fdp1t.mjs.map} +1 -1
  263. package/dist/{timeout-YDCRSLPQ-C2SC5vB7.cjs → timeout-YDCRSLPQ-DEPvQ6Ih.cjs} +2 -2
  264. package/dist/{timeout-YDCRSLPQ-C2SC5vB7.cjs.map → timeout-YDCRSLPQ-DEPvQ6Ih.cjs.map} +1 -1
  265. package/dist/{touch-UA33VN3N-sh2TXNDe.mjs → touch-UA33VN3N-BMhGO9VC.mjs} +2 -2
  266. package/dist/{touch-UA33VN3N-sh2TXNDe.mjs.map → touch-UA33VN3N-BMhGO9VC.mjs.map} +1 -1
  267. package/dist/{touch-UA33VN3N-DazOwQQS.cjs → touch-UA33VN3N-DIda6f8u.cjs} +2 -2
  268. package/dist/{touch-UA33VN3N-DazOwQQS.cjs.map → touch-UA33VN3N-DIda6f8u.cjs.map} +1 -1
  269. package/dist/{tr-36LHWFRQ-CrF6131T.cjs → tr-36LHWFRQ-COkRmY_6.cjs} +2 -2
  270. package/dist/{tr-36LHWFRQ-CrF6131T.cjs.map → tr-36LHWFRQ-COkRmY_6.cjs.map} +1 -1
  271. package/dist/{tr-36LHWFRQ-D_2pGQp9.mjs → tr-36LHWFRQ-DjY4IsPF.mjs} +2 -2
  272. package/dist/{tr-36LHWFRQ-D_2pGQp9.mjs.map → tr-36LHWFRQ-DjY4IsPF.mjs.map} +1 -1
  273. package/dist/{tree-YLD52CNT-BIC19isL.mjs → tree-YLD52CNT-N-vPBfJO.mjs} +2 -2
  274. package/dist/{tree-YLD52CNT-BIC19isL.mjs.map → tree-YLD52CNT-N-vPBfJO.mjs.map} +1 -1
  275. package/dist/{tree-YLD52CNT-u4cOkoBM.cjs → tree-YLD52CNT-kZ9vPZ-R.cjs} +2 -2
  276. package/dist/{tree-YLD52CNT-u4cOkoBM.cjs.map → tree-YLD52CNT-kZ9vPZ-R.cjs.map} +1 -1
  277. package/dist/{unexpand-CADSA4VO-C5t4tamX.mjs → unexpand-CADSA4VO-Byi4s0o8.mjs} +2 -2
  278. package/dist/{unexpand-CADSA4VO-C5t4tamX.mjs.map → unexpand-CADSA4VO-Byi4s0o8.mjs.map} +1 -1
  279. package/dist/{unexpand-CADSA4VO-BwtCgpf8.cjs → unexpand-CADSA4VO-DekKk-hg.cjs} +2 -2
  280. package/dist/{unexpand-CADSA4VO-BwtCgpf8.cjs.map → unexpand-CADSA4VO-DekKk-hg.cjs.map} +1 -1
  281. package/dist/{uniq-XSIZR6PB-D1uH-xXs.cjs → uniq-XSIZR6PB-BhdgA9iI.cjs} +3 -3
  282. package/dist/{uniq-XSIZR6PB-D1uH-xXs.cjs.map → uniq-XSIZR6PB-BhdgA9iI.cjs.map} +1 -1
  283. package/dist/{uniq-XSIZR6PB-BPhswb-D.mjs → uniq-XSIZR6PB-D0HICyAj.mjs} +3 -3
  284. package/dist/{uniq-XSIZR6PB-BPhswb-D.mjs.map → uniq-XSIZR6PB-D0HICyAj.mjs.map} +1 -1
  285. package/dist/{wc-LF7NU4LA-Dha3d9oq.cjs → wc-LF7NU4LA-Ci3_hJug.cjs} +3 -3
  286. package/dist/{wc-LF7NU4LA-Dha3d9oq.cjs.map → wc-LF7NU4LA-Ci3_hJug.cjs.map} +1 -1
  287. package/dist/{wc-LF7NU4LA-HonUXgc3.mjs → wc-LF7NU4LA-CnEel3wT.mjs} +3 -3
  288. package/dist/{wc-LF7NU4LA-HonUXgc3.mjs.map → wc-LF7NU4LA-CnEel3wT.mjs.map} +1 -1
  289. package/dist/{xan-Y6WF3IRG-DKE1_HEE.mjs → xan-Y6WF3IRG-BEGK5ruS.mjs} +6 -6
  290. package/dist/{xan-Y6WF3IRG-DKE1_HEE.mjs.map → xan-Y6WF3IRG-BEGK5ruS.mjs.map} +1 -1
  291. package/dist/{xan-Y6WF3IRG-DF8LgdcK.cjs → xan-Y6WF3IRG-EnrntEIM.cjs} +6 -6
  292. package/dist/{xan-Y6WF3IRG-DF8LgdcK.cjs.map → xan-Y6WF3IRG-EnrntEIM.cjs.map} +1 -1
  293. package/dist/{xan-view-HDVKHFC2-CBWjF4AF.mjs → xan-view-HDVKHFC2-CvEDnphU.mjs} +3 -3
  294. package/dist/{xan-view-HDVKHFC2-CBWjF4AF.mjs.map → xan-view-HDVKHFC2-CvEDnphU.mjs.map} +1 -1
  295. package/dist/{xan-view-HDVKHFC2-BTj5UUmy.cjs → xan-view-HDVKHFC2-c1gcVO0A.cjs} +3 -3
  296. package/dist/{xan-view-HDVKHFC2-BTj5UUmy.cjs.map → xan-view-HDVKHFC2-c1gcVO0A.cjs.map} +1 -1
  297. package/dist/{xargs-MGZPH7AX-w6s3TO73.mjs → xargs-MGZPH7AX-BvI6LK8I.mjs} +2 -2
  298. package/dist/{xargs-MGZPH7AX-w6s3TO73.mjs.map → xargs-MGZPH7AX-BvI6LK8I.mjs.map} +1 -1
  299. package/dist/{xargs-MGZPH7AX-BX6HS5mB.cjs → xargs-MGZPH7AX-DNyBXxK4.cjs} +2 -2
  300. package/dist/{xargs-MGZPH7AX-BX6HS5mB.cjs.map → xargs-MGZPH7AX-DNyBXxK4.cjs.map} +1 -1
  301. package/dist/{yq-4QJW3EQG-CqoPq62R.cjs → yq-4QJW3EQG-9kH_HlxF.cjs} +3 -3
  302. package/dist/{yq-4QJW3EQG-CqoPq62R.cjs.map → yq-4QJW3EQG-9kH_HlxF.cjs.map} +1 -1
  303. package/dist/{yq-4QJW3EQG-DgunUMhp.mjs → yq-4QJW3EQG-CYt1C3ZB.mjs} +3 -3
  304. package/dist/{yq-4QJW3EQG-DgunUMhp.mjs.map → yq-4QJW3EQG-CYt1C3ZB.mjs.map} +1 -1
  305. package/package.json +1 -1
  306. package/dist/dist-BPaInPOA.cjs +0 -287
  307. package/dist/dist-BPaInPOA.cjs.map +0 -1
  308. package/dist/dist-COpoWBp6.cjs.map +0 -1
  309. package/dist/dist-CW17n9gj.cjs +0 -11507
  310. package/dist/dist-CW17n9gj.cjs.map +0 -1
  311. package/dist/dist-DkMgDyky.mjs +0 -274
  312. package/dist/dist-DkMgDyky.mjs.map +0 -1
  313. package/dist/dist-a3xv8a0D.mjs +0 -10904
  314. package/dist/dist-a3xv8a0D.mjs.map +0 -1
  315. package/dist/dist-dELW1gaR.mjs.map +0 -1
  316. package/dist/index-BwAU1YGx.d.mts +0 -37
  317. package/dist/index-Ceq3LoQV.d.cts +0 -35
  318. package/dist/index-Cf2z5TA-.d.cts +0 -807
  319. package/dist/index-UhcpOLvB.d.mts +0 -809
  320. package/dist/start-BQ0b7Zex.cjs.map +0 -1
  321. package/dist/start-jG7mVE-h.mjs.map +0 -1
@@ -1,6 +1,4 @@
1
- import { n as pingProjectTarget } from "./dist-DkMgDyky.mjs";
2
- import { $ as ListOrganizationsResponseSchema, $t as credentialInputSchema, A as CreateCredentialsResponseSchema, At as SlugAvailabilityQuerySchema, B as HistoryRunCancelResponseSchema, Bt as UpdateProjectMemberResponseSchema, C as AgentSummaryListResponseSchema, Ct as ProjectSourceResourcesSchema, D as CreateApiKeyRequestSchema, Dt as SkillSummaryDetailResponseSchema, E as CompleteProjectArtifactResponseSchema, Et as RecentResourceSchema, F as CreateProjectResponseSchema, Ft as UpdateCredentialRequestSchema, G as InviteOrganizationMembersResponseSchema, Gt as UserAvatarPatchSchema, H as HistoryRunListQuerySchema, Ht as UpdateProjectSettingsRequestSchema, I as DeclineOrganizationInvitationResponseSchema, It as UpdateOrganizationMemberRequestSchema, J as ListApiKeysResponseSchema, Jt as UserPreferencesSchema, K as InviteProjectMembersRequestSchema, Kt as UserAvatarSchema, L as DownloadActiveProjectArtifactResponseSchema, Lt as UpdateOrganizationMemberResponseSchema, M as CreateOrganizationResponseSchema, Mt as StoredProjectSourceManifestSchema, N as CreateProjectArtifactResponseSchema, Nt as SubmitTeamRequestRequestSchema, O as CreateApiKeyResponseSchema, Ot as SkillSummaryListResponseSchema, P as CreateProjectRequestSchema, Pt as SubmitTeamRequestResponseSchema, Q as ListOrganizationMembersResponseSchema, Qt as buildCredentialInstanceLabel, R as ErrorResponseSchema, Rt as UpdateOrganizationRequestSchema, S as AgentSummaryDetailResponseSchema, Tt as RecentResourceListResponseSchema, U as HistoryRunListResponseSchema, Ut as UploadProjectSourceManifestRequestSchema, V as HistoryRunDetailResponseSchema, Vt as UpdateProjectRequestSchema, W as InviteOrganizationMembersRequestSchema, Wt as UploadProjectSourceResponseSchema, X as ListCredentialsResponseSchema, Xt as WorkflowSummaryListResponseSchema, Y as ListAppsResponseSchema, Yt as WorkflowSummaryDetailResponseSchema, Z as ListOrganizationInvitationsResponseSchema, Zt as WorkflowSummarySchema, _ as publicKeystrokeAssetsObjectUrl, _n as resolveUniqueCredentialInstanceLabel, _t as ProjectReachabilityResponseSchema, a as ensureKeystrokeAssetsBucket, an as mapProjectArtifact, b as AcceptOrganizationInvitationResponseSchema, bn as validationErrorResponse, bt as ProjectSlugAvailabilityQuerySchema, c as isKeystrokeAssetsOrgLogoPublicUrl, cn as mapProjectSettings, d as keystrokeAssetsAvatarKeyFromPublicUrl, dt as PresignOrgLogoRequestSchema, en as displayCredentialAppName, et as ListProjectDeploymentsResponseSchema, f as keystrokeAssetsOrgLogoKeyFromPublicUrl, fn as normalizeUserPreferences, ft as PresignOrgLogoResponseSchema, g as projectSourceBlobKey, gn as projectFileId, gt as PresignUserAvatarResponseSchema, h as projectArtifactKey, hn as parseStoredRouteManifest, ht as PresignUserAvatarRequestSchema, in as mapProject, it as ListProjectsResponseSchema, j as CreateOrganizationRequestSchema, jt as SlugAvailabilityResponseSchema, k as CreateCredentialsRequestSchema, kt as SkillSummarySchema, l as isOrgLogoStorageKey, ln as mapUserOrganization, lt as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, m as orgLogoStorageKey, mn as organizationSlugErrorCodeFromMessage, mt as PresignProjectSourceResponseSchema, nn as mapOrganizationInvitation, nt as ListProjectMembersResponseSchema, o as extractRouteManifestFromArtifact, on as mapProjectDeployment, ot as OrganizationSidebarBrandingPatchSchema, pn as organizationInvitationAcceptPath, pt as PresignProjectSourceRequestSchema, q as InviteProjectMembersResponseSchema, qt as UserPreferencesPatchSchema, r as createAssetsStorageClient, rn as mapOrganizationMember, rt as ListProjectMetricsResponseSchema, s as isKeystrokeAssetsAvatarPublicUrl, sn as mapProjectMember, st as OrganizationSidebarBrandingSchema, t as RouteManifestNotFoundError, tn as listenPortFromPublicUrl, tt as ListProjectFilesResponseSchema, u as isUserAvatarStorageKey, un as mergeUserPreferences, ut as PROJECT_SLUG_TAKEN_MESSAGE, v as userAvatarStorageKey, vt as ProjectResponseSchema, w as AgentSummarySchema, x as ActiveOrganizationResponseSchema, xt as ProjectSlugAvailabilityResponseSchema, y as ACTIVE_ORG_HEADER, yt as ProjectSettingsResponseSchema, z as GetCredentialResponseSchema, zt as UpdateProjectMemberRequestSchema } from "./dist-dELW1gaR.mjs";
3
- import { $ as selectLastDeploymentAtByProject, A as inviteProjectMembers, At as updateProjectMemberRole, B as organizationRowToSidebarBranding, Bt as authJwksSqlite, C as ensureProjectPgBossGrants, Ct as updateOrganizationSidebarBranding, D as initDatabase, Dt as updateProjectArtifactSourceManifest, E as getOrganizationScopeId, Et as updateProjectArtifactManifest, F as loadOrgPlatformApiKeyUser, Ft as authAccounts, G as resolveOrgDatabaseUrl, Gt as getDatabaseHandle, H as removeOrganizationMember, Ht as authSessionsSqlite, I as mapOrgPlatformApiKeyCreator, It as authAccountsSqlite, J as revokeOrgPlatformApiKey, Kt as users, L as mapOrgPlatformApiKeyCreatorOrDeleted, Lt as authDeviceCodes, M as listOfficialApps, Mt as updateUserById, N as listOrgPlatformApiKeysForOrganization, Nt as upsertSecretValue, O as insertProjectArtifact, Ot as updateProjectFailed, P as listOrgPlatformApiKeysForUser, Pt as verifyOrgPlatformApiKeySecret, Q as selectActiveProjectArtifactForProject, R as normalizeUserEmail, Rt as authDeviceCodesSqlite, S as encryptCredentialPayload$1, St as updateOrganizationName, T as ensureWebhookApiKeys, Tt as updateProjectActive, U as removeProjectMember, Ut as authVerifications, V as promoteProjectArtifact, Vt as authSessions, W as resolveNewOrganizationIdentity, Wt as authVerificationsSqlite, X as runWithWorkspaceContext, Y as runWithOrganizationScope, Z as selectActiveArtifactSourceManifestForProject, _ as createProjectForOrganization, _t as selectUserOrganizationMembership, a as OrganizationInvitationNotFoundError, at as selectProjectArtifactById, b as deleteProjectForOrganization, bt as selectUsersByIds, c as ProjectMemberNotFoundError, ct as selectProjectDeployments, d as checkOrganizationSlugAvailability, dt as selectProjectIdsForUser, et as selectOAuthConnectionsByIds, f as checkProjectSlugAvailability, ft as selectProjectMembers, g as createOrganizationForUser, gt as selectUserByNormalizedEmail, h as createOrgStorageClient, ht as selectUserById, i as OrganizationInvitationForbiddenError, it as selectPendingInvitationsForUser, j as isOrganizationStorageBucketInUse, jt as updateProjectSettings, k as inviteOrganizationMembers, kt as updateProjectForOrganization, l as ProjectSlugTakenError, lt as selectProjectForOrganization, m as createOrgPlatformApiKey, mt as selectSecretValue, n as OrgPlatformApiKeyNotFoundError, nt as selectOrganizationById, o as OrganizationMemberNotFoundError, ot as selectProjectArtifactForProject, p as completeProjectArtifact, pt as selectProjectsByOrganizationId, q as resolveProjectRuntimeDatabase, qt as usersSqlite, r as OrganizationInvitationExpiredError, rt as selectOrganizationMembers, s as OrganizationSlugTakenError, st as selectProjectById, t as CannotModifyOwnerError, tt as selectOrgPlatformApiKeyForOrganization, u as acceptInvitation, ut as selectProjectForOrganizationBySlug, v as declineInvitation, vt as selectUserOrganizations, w as ensureWebhookApiKeyForRoute, wt as updateOrganizationSlug, x as deleteSecretValuesForRef, xt as updateOrganizationMemberRole, y as deleteOAuthConnectionById, yt as selectUserProjectMembership, z as orgWorkspacesRuntimeEnv, zt as authJwks } from "./dist-a3xv8a0D.mjs";
1
+ import { $ as ListProjectMembersResponseSchema, $t as mapProjectDeployment, A as CreateProjectArtifactResponseSchema, At as UpdateOrganizationMemberResponseSchema, B as HistoryRunListResponseSchema, Bt as UserPreferencesPatchSchema, C as CompleteProjectArtifactResponseSchema, Ct as SlugAvailabilityQuerySchema, D as CreateCredentialsResponseSchema, Dt as SubmitTeamRequestResponseSchema, E as CreateCredentialsRequestSchema, Et as SubmitTeamRequestRequestSchema, F as ErrorResponseSchema, Ft as UpdateProjectSettingsRequestSchema, G as ListApiKeysResponseSchema, Gt as buildCredentialInstanceLabel, H as InviteOrganizationMembersResponseSchema, Ht as WorkflowSummaryDetailResponseSchema, I as GetCredentialResponseSchema, It as UploadProjectSourceManifestRequestSchema, J as ListOrganizationInvitationsResponseSchema, Jt as listenPortFromPublicUrl, K as ListAppsResponseSchema, Kt as credentialInputSchema, L as HistoryRunCancelResponseSchema, Lt as UploadProjectSourceResponseSchema, M as CreateProjectResponseSchema, Mt as UpdateProjectMemberRequestSchema, N as DeclineOrganizationInvitationResponseSchema, Nt as UpdateProjectMemberResponseSchema, O as CreateOrganizationRequestSchema, Ot as UpdateCredentialRequestSchema, P as DownloadActiveProjectArtifactResponseSchema, Pt as UpdateProjectRequestSchema, Q as ListProjectFilesResponseSchema, Qt as mapProjectArtifact, R as HistoryRunDetailResponseSchema, Rt as UserAvatarPatchSchema, S as AgentSummarySchema, St as SkillSummarySchema, T as CreateApiKeyResponseSchema, Tt as StoredProjectSourceManifestSchema, U as InviteProjectMembersRequestSchema, Ut as WorkflowSummaryListResponseSchema, V as InviteOrganizationMembersRequestSchema, Vt as UserPreferencesSchema, W as InviteProjectMembersResponseSchema, Wt as WorkflowSummarySchema, X as ListOrganizationsResponseSchema, Xt as mapOrganizationMember, Y as ListOrganizationMembersResponseSchema, Yt as mapOrganizationInvitation, Z as ListProjectDeploymentsResponseSchema, Zt as mapProject, _ as ACTIVE_ORG_HEADER, _t as ProjectSourceResourcesSchema, a as isKeystrokeAssetsAvatarPublicUrl, an as organizationInvitationAcceptPath, at as PROJECT_SLUG_TAKEN_MESSAGE, b as AgentSummaryDetailResponseSchema, bt as SkillSummaryDetailResponseSchema, c as isUserAvatarStorageKey, cn as projectFileId, ct as PresignProjectSourceRequestSchema, dt as PresignUserAvatarResponseSchema, en as mapProjectMember, et as ListProjectMetricsResponseSchema, f as orgLogoStorageKey, fn as pingProjectTarget, ft as ProjectReachabilityResponseSchema, g as userAvatarStorageKey, gt as ProjectSlugAvailabilityResponseSchema, h as publicKeystrokeAssetsObjectUrl, ht as ProjectSlugAvailabilityQuerySchema, i as extractRouteManifestFromArtifact, in as normalizeUserPreferences, it as PLATFORM_RESOURCE_UNSUPPORTED_TEXT, j as CreateProjectRequestSchema, jt as UpdateOrganizationRequestSchema, k as CreateOrganizationResponseSchema, kt as UpdateOrganizationMemberRequestSchema, l as keystrokeAssetsAvatarKeyFromPublicUrl, ln as resolveUniqueCredentialInstanceLabel, lt as PresignProjectSourceResponseSchema, m as projectSourceBlobKey, mt as ProjectSettingsResponseSchema, n as createAssetsStorageClient, nn as mapUserOrganization, nt as OrganizationSidebarBrandingPatchSchema, o as isKeystrokeAssetsOrgLogoPublicUrl, on as organizationSlugErrorCodeFromMessage, ot as PresignOrgLogoRequestSchema, p as projectArtifactKey, pt as ProjectResponseSchema, q as ListCredentialsResponseSchema, qt as displayCredentialAppName, r as ensureKeystrokeAssetsBucket, rn as mergeUserPreferences, rt as OrganizationSidebarBrandingSchema, s as isOrgLogoStorageKey, sn as parseStoredRouteManifest, st as PresignOrgLogoResponseSchema, t as RouteManifestNotFoundError, tn as mapProjectSettings, tt as ListProjectsResponseSchema, u as keystrokeAssetsOrgLogoKeyFromPublicUrl, un as validationErrorResponse, ut as PresignUserAvatarRequestSchema, v as AcceptOrganizationInvitationResponseSchema, vt as RecentResourceListResponseSchema, w as CreateApiKeyRequestSchema, wt as SlugAvailabilityResponseSchema, x as AgentSummaryListResponseSchema, xt as SkillSummaryListResponseSchema, y as ActiveOrganizationResponseSchema, yt as RecentResourceSchema, z as HistoryRunListQuerySchema, zt as UserAvatarSchema } from "./dist-B1hOOWjl.mjs";
4
2
  import "./chunk-BZUGFHVS-B2NchobP.mjs";
5
3
  import { n as d$4, t as _$1 } from "./chunk-TN7HHBQW-B8PYcKz5.mjs";
6
4
  import { createRequire } from "node:module";
@@ -15,15 +13,15 @@ import { betterAuth } from "better-auth";
15
13
  import { bearer } from "better-auth/plugins/bearer";
16
14
  import { deviceAuthorization } from "better-auth/plugins/device-authorization";
17
15
  import { jwt, lastLoginMethod } from "better-auth/plugins";
18
- import { DEFAULT_DATABASE_URL, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, claimNextJob, clearCredentialInstanceDefaults, createPostgresCancelChannel, deleteCredentialInstanceById, encryptCredentialPayload, enqueueJob, failWorkflowRun, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, inferDialect, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, markJobComplete, markJobFailed, requeueExpiredLeases, resolvePostgresUrlFromEnv, resolveProjectDatabaseUrlFromEnv, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, scheduleJobRetry, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectWorkflowLastRunAtByIds, selectWorkflowRunById, touchResourceActivity, upsertCredentialInstance } from "@keystrokehq/database";
19
- import pg from "pg";
20
- import "node:url";
21
- import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID } from "node:crypto";
22
- import { AsyncLocalStorage } from "node:async_hooks";
16
+ import { CannotModifyOwnerError, OrgPlatformApiKeyNotFoundError, OrganizationInvitationExpiredError, OrganizationInvitationForbiddenError, OrganizationInvitationNotFoundError, OrganizationMemberNotFoundError, OrganizationSlugTakenError, OrganizationSlugTakenError as OrganizationSlugTakenError$1, ProjectMemberNotFoundError, ProjectSlugTakenError, acceptInvitation, checkOrganizationSlugAvailability, checkProjectSlugAvailability, completeProjectArtifact, createOrgPlatformApiKey, createOrgStorageClient, createOrganizationForUser, createProjectForOrganization, declineInvitation, deleteOAuthConnectionById, deleteProjectForOrganization, deleteSecretValuesForRef, encryptCredentialPayload, ensureProjectPgBossGrants, ensureWebhookApiKeyForRoute, ensureWebhookApiKeys, getOrganizationScopeId, initDatabase, insertProjectArtifact, inviteOrganizationMembers, inviteProjectMembers, isOrganizationStorageBucketInUse, listOfficialApps, listOrgPlatformApiKeysForOrganization, listOrgPlatformApiKeysForUser, loadOrgPlatformApiKeyUser, mapOrgPlatformApiKeyCreator, mapOrgPlatformApiKeyCreatorOrDeleted, normalizeUserEmail, orgWorkspacesRuntimeEnv, organizationRowToSidebarBranding, promoteProjectArtifact, removeOrganizationMember, removeProjectMember, resolveNewOrganizationIdentity, resolveOrgDatabaseUrl, resolveProjectRuntimeDatabase, revokeOrgPlatformApiKey, runWithOrganizationScope, runWithWorkspaceContext, selectActiveArtifactSourceManifestForProject, selectActiveProjectArtifactForProject, selectLastDeploymentAtByProject, selectOAuthConnectionsByIds, selectOrgPlatformApiKeyForOrganization, selectOrganizationById, selectOrganizationMembers, selectPendingInvitationsForUser, selectProjectArtifactById, selectProjectArtifactForProject, selectProjectById, selectProjectDeployments, selectProjectForOrganization, selectProjectForOrganizationBySlug, selectProjectIdsForUser, selectProjectMembers, selectProjectsByOrganizationId, selectSecretValue, selectUserById, selectUserByNormalizedEmail, selectUserOrganizationMembership, selectUserOrganizations, selectUserProjectMembership, selectUsersByIds, updateOrganizationMemberRole, updateOrganizationName, updateOrganizationSidebarBranding, updateOrganizationSlug, updateProjectActive, updateProjectArtifactManifest, updateProjectArtifactSourceManifest, updateProjectFailed, updateProjectForOrganization, updateProjectMemberRole, updateProjectSettings, updateUserById, upsertSecretValue, verifyOrgPlatformApiKeySecret } from "@keystrokehq/platform-database";
23
17
  import { APIError, createAuthEndpoint, getSessionFromCtx } from "better-auth/api";
24
18
  import { magicLink } from "better-auth/plugins/magic-link";
25
19
  import { Resend } from "resend";
26
20
  import { buildWebhookUrl, createCredentialMaterializeHandler, extractWebhookRoutesFromManifest, seedOAuthAppsFromEnvForAllOrganizations, seedOAuthAppsFromEnvForOrganization, syncRegistryFromStoredManifest } from "@keystrokehq/runtime";
21
+ import "node:url";
22
+ import { DEFAULT_DATABASE_URL, buildHistoryAgentSessionDetail, buildHistoryWorkflowRunDetail, cancelAgentSession, cancelWorkflowRun, claimNextJob, clearCredentialInstanceDefaults, createPostgresCancelChannel, deleteCredentialInstanceById, encryptCredentialPayload as encryptCredentialPayload$1, enqueueJob, failWorkflowRun, findHistoryRunCore, getProjectScopeId, getServerTenantScopeId, inferDialect, listActiveAgents, listActiveSkills, listActiveWorkflows, listAllCredentialInstances, listCredentialInstancesByConnectionId, listHistoryRuns, listRecentResourceActivity, markJobComplete, markJobFailed, requeueExpiredLeases, resolvePostgresUrlFromEnv, resolveProjectDatabaseUrlFromEnv, runWithProjectDatabase, runWithProjectScope, runWithTenantScope, scheduleJobRetry, selectActiveAgentById, selectActiveAgentsByIds, selectActiveSkillById, selectActiveSkillsByIds, selectActiveWorkflowById, selectActiveWorkflowsByIds, selectAgentLastRunAtByIds, selectAgentSessionById, selectCredentialInstanceById, selectCredentialInstancesForScope, selectEphemeralTriggerAttachments, selectProjectResourceCounts, selectWorkflowLastRunAtByIds, selectWorkflowRunById, touchResourceActivity, upsertCredentialInstance } from "@keystrokehq/database";
23
+ import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID } from "node:crypto";
24
+ import { AsyncLocalStorage } from "node:async_hooks";
27
25
  import "zod/v3";
28
26
  import "zod/v4-mini";
29
27
  import * as z$1 from "zod/v4";
@@ -31,6 +29,7 @@ import process$1 from "node:process";
31
29
  import EventEmitter$1, { EventEmitter } from "node:events";
32
30
  import assert, { notStrictEqual } from "node:assert";
33
31
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
32
+ import pg from "pg";
34
33
  import { createApp, externalPlatformOrigin, getProjectScheduler, platformWebhookOrigin, resolveMcpEntityId } from "@keystrokehq/http";
35
34
  import { Hono } from "hono";
36
35
  //#region \0rolldown/runtime.js
@@ -1311,6 +1310,2997 @@ function createAuthJwtVerifier(authBaseUrl) {
1311
1310
  });
1312
1311
  }
1313
1312
  //#endregion
1313
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/entity.js
1314
+ const entityKind = Symbol.for("drizzle:entityKind");
1315
+ function is(value, type) {
1316
+ if (!value || typeof value !== "object") return false;
1317
+ if (value instanceof type) return true;
1318
+ if (!Object.prototype.hasOwnProperty.call(type, entityKind)) throw new Error(`Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);
1319
+ let cls = Object.getPrototypeOf(value).constructor;
1320
+ if (cls) while (cls) {
1321
+ if (entityKind in cls && cls[entityKind] === type[entityKind]) return true;
1322
+ cls = Object.getPrototypeOf(cls);
1323
+ }
1324
+ return false;
1325
+ }
1326
+ //#endregion
1327
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/column.js
1328
+ var Column = class {
1329
+ constructor(table, config) {
1330
+ this.table = table;
1331
+ this.config = config;
1332
+ this.name = config.name;
1333
+ this.keyAsName = config.keyAsName;
1334
+ this.notNull = config.notNull;
1335
+ this.default = config.default;
1336
+ this.defaultFn = config.defaultFn;
1337
+ this.onUpdateFn = config.onUpdateFn;
1338
+ this.hasDefault = config.hasDefault;
1339
+ this.primary = config.primaryKey;
1340
+ this.isUnique = config.isUnique;
1341
+ this.uniqueName = config.uniqueName;
1342
+ this.uniqueType = config.uniqueType;
1343
+ this.dataType = config.dataType;
1344
+ this.columnType = config.columnType;
1345
+ this.generated = config.generated;
1346
+ this.generatedIdentity = config.generatedIdentity;
1347
+ }
1348
+ static [entityKind] = "Column";
1349
+ name;
1350
+ keyAsName;
1351
+ primary;
1352
+ notNull;
1353
+ default;
1354
+ defaultFn;
1355
+ onUpdateFn;
1356
+ hasDefault;
1357
+ isUnique;
1358
+ uniqueName;
1359
+ uniqueType;
1360
+ dataType;
1361
+ columnType;
1362
+ enumValues = void 0;
1363
+ generated = void 0;
1364
+ generatedIdentity = void 0;
1365
+ config;
1366
+ mapFromDriverValue(value) {
1367
+ return value;
1368
+ }
1369
+ mapToDriverValue(value) {
1370
+ return value;
1371
+ }
1372
+ shouldDisableInsert() {
1373
+ return this.config.generated !== void 0 && this.config.generated.type !== "byDefault";
1374
+ }
1375
+ };
1376
+ //#endregion
1377
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/column-builder.js
1378
+ var ColumnBuilder = class {
1379
+ static [entityKind] = "ColumnBuilder";
1380
+ config;
1381
+ constructor(name, dataType, columnType) {
1382
+ this.config = {
1383
+ name,
1384
+ keyAsName: name === "",
1385
+ notNull: false,
1386
+ default: void 0,
1387
+ hasDefault: false,
1388
+ primaryKey: false,
1389
+ isUnique: false,
1390
+ uniqueName: void 0,
1391
+ uniqueType: void 0,
1392
+ dataType,
1393
+ columnType,
1394
+ generated: void 0
1395
+ };
1396
+ }
1397
+ /**
1398
+ * Changes the data type of the column. Commonly used with `json` columns. Also, useful for branded types.
1399
+ *
1400
+ * @example
1401
+ * ```ts
1402
+ * const users = pgTable('users', {
1403
+ * id: integer('id').$type<UserId>().primaryKey(),
1404
+ * details: json('details').$type<UserDetails>().notNull(),
1405
+ * });
1406
+ * ```
1407
+ */
1408
+ $type() {
1409
+ return this;
1410
+ }
1411
+ /**
1412
+ * Adds a `not null` clause to the column definition.
1413
+ *
1414
+ * Affects the `select` model of the table - columns *without* `not null` will be nullable on select.
1415
+ */
1416
+ notNull() {
1417
+ this.config.notNull = true;
1418
+ return this;
1419
+ }
1420
+ /**
1421
+ * Adds a `default <value>` clause to the column definition.
1422
+ *
1423
+ * Affects the `insert` model of the table - columns *with* `default` are optional on insert.
1424
+ *
1425
+ * If you need to set a dynamic default value, use {@link $defaultFn} instead.
1426
+ */
1427
+ default(value) {
1428
+ this.config.default = value;
1429
+ this.config.hasDefault = true;
1430
+ return this;
1431
+ }
1432
+ /**
1433
+ * Adds a dynamic default value to the column.
1434
+ * The function will be called when the row is inserted, and the returned value will be used as the column value.
1435
+ *
1436
+ * **Note:** This value does not affect the `drizzle-kit` behavior, it is only used at runtime in `drizzle-orm`.
1437
+ */
1438
+ $defaultFn(fn) {
1439
+ this.config.defaultFn = fn;
1440
+ this.config.hasDefault = true;
1441
+ return this;
1442
+ }
1443
+ /**
1444
+ * Alias for {@link $defaultFn}.
1445
+ */
1446
+ $default = this.$defaultFn;
1447
+ /**
1448
+ * Adds a dynamic update value to the column.
1449
+ * The function will be called when the row is updated, and the returned value will be used as the column value if none is provided.
1450
+ * If no `default` (or `$defaultFn`) value is provided, the function will be called when the row is inserted as well, and the returned value will be used as the column value.
1451
+ *
1452
+ * **Note:** This value does not affect the `drizzle-kit` behavior, it is only used at runtime in `drizzle-orm`.
1453
+ */
1454
+ $onUpdateFn(fn) {
1455
+ this.config.onUpdateFn = fn;
1456
+ this.config.hasDefault = true;
1457
+ return this;
1458
+ }
1459
+ /**
1460
+ * Alias for {@link $onUpdateFn}.
1461
+ */
1462
+ $onUpdate = this.$onUpdateFn;
1463
+ /**
1464
+ * Adds a `primary key` clause to the column definition. This implicitly makes the column `not null`.
1465
+ *
1466
+ * In SQLite, `integer primary key` implicitly makes the column auto-incrementing.
1467
+ */
1468
+ primaryKey() {
1469
+ this.config.primaryKey = true;
1470
+ this.config.notNull = true;
1471
+ return this;
1472
+ }
1473
+ /** @internal Sets the name of the column to the key within the table definition if a name was not given. */
1474
+ setName(name) {
1475
+ if (this.config.name !== "") return;
1476
+ this.config.name = name;
1477
+ }
1478
+ };
1479
+ //#endregion
1480
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/table.utils.js
1481
+ const TableName = Symbol.for("drizzle:Name");
1482
+ //#endregion
1483
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/foreign-keys.js
1484
+ var ForeignKeyBuilder$1 = class {
1485
+ static [entityKind] = "PgForeignKeyBuilder";
1486
+ /** @internal */
1487
+ reference;
1488
+ /** @internal */
1489
+ _onUpdate = "no action";
1490
+ /** @internal */
1491
+ _onDelete = "no action";
1492
+ constructor(config, actions) {
1493
+ this.reference = () => {
1494
+ const { name, columns, foreignColumns } = config();
1495
+ return {
1496
+ name,
1497
+ columns,
1498
+ foreignTable: foreignColumns[0].table,
1499
+ foreignColumns
1500
+ };
1501
+ };
1502
+ if (actions) {
1503
+ this._onUpdate = actions.onUpdate;
1504
+ this._onDelete = actions.onDelete;
1505
+ }
1506
+ }
1507
+ onUpdate(action) {
1508
+ this._onUpdate = action === void 0 ? "no action" : action;
1509
+ return this;
1510
+ }
1511
+ onDelete(action) {
1512
+ this._onDelete = action === void 0 ? "no action" : action;
1513
+ return this;
1514
+ }
1515
+ /** @internal */
1516
+ build(table) {
1517
+ return new ForeignKey$1(table, this);
1518
+ }
1519
+ };
1520
+ var ForeignKey$1 = class {
1521
+ constructor(table, builder) {
1522
+ this.table = table;
1523
+ this.reference = builder.reference;
1524
+ this.onUpdate = builder._onUpdate;
1525
+ this.onDelete = builder._onDelete;
1526
+ }
1527
+ static [entityKind] = "PgForeignKey";
1528
+ reference;
1529
+ onUpdate;
1530
+ onDelete;
1531
+ getName() {
1532
+ const { name, columns, foreignColumns } = this.reference();
1533
+ const columnNames = columns.map((column) => column.name);
1534
+ const foreignColumnNames = foreignColumns.map((column) => column.name);
1535
+ const chunks = [
1536
+ this.table[TableName],
1537
+ ...columnNames,
1538
+ foreignColumns[0].table[TableName],
1539
+ ...foreignColumnNames
1540
+ ];
1541
+ return name ?? `${chunks.join("_")}_fk`;
1542
+ }
1543
+ };
1544
+ //#endregion
1545
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/tracing-utils.js
1546
+ function iife(fn, ...args) {
1547
+ return fn(...args);
1548
+ }
1549
+ //#endregion
1550
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/unique-constraint.js
1551
+ function uniqueKeyName$1(table, columns) {
1552
+ return `${table[TableName]}_${columns.join("_")}_unique`;
1553
+ }
1554
+ //#endregion
1555
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/utils/array.js
1556
+ function parsePgArrayValue(arrayString, startFrom, inQuotes) {
1557
+ for (let i = startFrom; i < arrayString.length; i++) {
1558
+ const char = arrayString[i];
1559
+ if (char === "\\") {
1560
+ i++;
1561
+ continue;
1562
+ }
1563
+ if (char === "\"") return [arrayString.slice(startFrom, i).replace(/\\/g, ""), i + 1];
1564
+ if (inQuotes) continue;
1565
+ if (char === "," || char === "}") return [arrayString.slice(startFrom, i).replace(/\\/g, ""), i];
1566
+ }
1567
+ return [arrayString.slice(startFrom).replace(/\\/g, ""), arrayString.length];
1568
+ }
1569
+ function parsePgNestedArray(arrayString, startFrom = 0) {
1570
+ const result = [];
1571
+ let i = startFrom;
1572
+ let lastCharIsComma = false;
1573
+ while (i < arrayString.length) {
1574
+ const char = arrayString[i];
1575
+ if (char === ",") {
1576
+ if (lastCharIsComma || i === startFrom) result.push("");
1577
+ lastCharIsComma = true;
1578
+ i++;
1579
+ continue;
1580
+ }
1581
+ lastCharIsComma = false;
1582
+ if (char === "\\") {
1583
+ i += 2;
1584
+ continue;
1585
+ }
1586
+ if (char === "\"") {
1587
+ const [value2, startFrom2] = parsePgArrayValue(arrayString, i + 1, true);
1588
+ result.push(value2);
1589
+ i = startFrom2;
1590
+ continue;
1591
+ }
1592
+ if (char === "}") return [result, i + 1];
1593
+ if (char === "{") {
1594
+ const [value2, startFrom2] = parsePgNestedArray(arrayString, i + 1);
1595
+ result.push(value2);
1596
+ i = startFrom2;
1597
+ continue;
1598
+ }
1599
+ const [value, newStartFrom] = parsePgArrayValue(arrayString, i, false);
1600
+ result.push(value);
1601
+ i = newStartFrom;
1602
+ }
1603
+ return [result, i];
1604
+ }
1605
+ function parsePgArray(arrayString) {
1606
+ const [result] = parsePgNestedArray(arrayString, 1);
1607
+ return result;
1608
+ }
1609
+ function makePgArray(array) {
1610
+ return `{${array.map((item) => {
1611
+ if (Array.isArray(item)) return makePgArray(item);
1612
+ if (typeof item === "string") return `"${item.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
1613
+ return `${item}`;
1614
+ }).join(",")}}`;
1615
+ }
1616
+ //#endregion
1617
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/common.js
1618
+ var PgColumnBuilder = class extends ColumnBuilder {
1619
+ foreignKeyConfigs = [];
1620
+ static [entityKind] = "PgColumnBuilder";
1621
+ array(size) {
1622
+ return new PgArrayBuilder(this.config.name, this, size);
1623
+ }
1624
+ references(ref, actions = {}) {
1625
+ this.foreignKeyConfigs.push({
1626
+ ref,
1627
+ actions
1628
+ });
1629
+ return this;
1630
+ }
1631
+ unique(name, config) {
1632
+ this.config.isUnique = true;
1633
+ this.config.uniqueName = name;
1634
+ this.config.uniqueType = config?.nulls;
1635
+ return this;
1636
+ }
1637
+ generatedAlwaysAs(as) {
1638
+ this.config.generated = {
1639
+ as,
1640
+ type: "always",
1641
+ mode: "stored"
1642
+ };
1643
+ return this;
1644
+ }
1645
+ /** @internal */
1646
+ buildForeignKeys(column, table) {
1647
+ return this.foreignKeyConfigs.map(({ ref, actions }) => {
1648
+ return iife((ref2, actions2) => {
1649
+ const builder = new ForeignKeyBuilder$1(() => {
1650
+ const foreignColumn = ref2();
1651
+ return {
1652
+ columns: [column],
1653
+ foreignColumns: [foreignColumn]
1654
+ };
1655
+ });
1656
+ if (actions2.onUpdate) builder.onUpdate(actions2.onUpdate);
1657
+ if (actions2.onDelete) builder.onDelete(actions2.onDelete);
1658
+ return builder.build(table);
1659
+ }, ref, actions);
1660
+ });
1661
+ }
1662
+ /** @internal */
1663
+ buildExtraConfigColumn(table) {
1664
+ return new ExtraConfigColumn(table, this.config);
1665
+ }
1666
+ };
1667
+ var PgColumn = class extends Column {
1668
+ constructor(table, config) {
1669
+ if (!config.uniqueName) config.uniqueName = uniqueKeyName$1(table, [config.name]);
1670
+ super(table, config);
1671
+ this.table = table;
1672
+ }
1673
+ static [entityKind] = "PgColumn";
1674
+ };
1675
+ var ExtraConfigColumn = class extends PgColumn {
1676
+ static [entityKind] = "ExtraConfigColumn";
1677
+ getSQLType() {
1678
+ return this.getSQLType();
1679
+ }
1680
+ indexConfig = {
1681
+ order: this.config.order ?? "asc",
1682
+ nulls: this.config.nulls ?? "last",
1683
+ opClass: this.config.opClass
1684
+ };
1685
+ defaultConfig = {
1686
+ order: "asc",
1687
+ nulls: "last",
1688
+ opClass: void 0
1689
+ };
1690
+ asc() {
1691
+ this.indexConfig.order = "asc";
1692
+ return this;
1693
+ }
1694
+ desc() {
1695
+ this.indexConfig.order = "desc";
1696
+ return this;
1697
+ }
1698
+ nullsFirst() {
1699
+ this.indexConfig.nulls = "first";
1700
+ return this;
1701
+ }
1702
+ nullsLast() {
1703
+ this.indexConfig.nulls = "last";
1704
+ return this;
1705
+ }
1706
+ /**
1707
+ * ### PostgreSQL documentation quote
1708
+ *
1709
+ * > An operator class with optional parameters can be specified for each column of an index.
1710
+ * The operator class identifies the operators to be used by the index for that column.
1711
+ * For example, a B-tree index on four-byte integers would use the int4_ops class;
1712
+ * this operator class includes comparison functions for four-byte integers.
1713
+ * In practice the default operator class for the column's data type is usually sufficient.
1714
+ * The main point of having operator classes is that for some data types, there could be more than one meaningful ordering.
1715
+ * For example, we might want to sort a complex-number data type either by absolute value or by real part.
1716
+ * We could do this by defining two operator classes for the data type and then selecting the proper class when creating an index.
1717
+ * More information about operator classes check:
1718
+ *
1719
+ * ### Useful links
1720
+ * https://www.postgresql.org/docs/current/sql-createindex.html
1721
+ *
1722
+ * https://www.postgresql.org/docs/current/indexes-opclass.html
1723
+ *
1724
+ * https://www.postgresql.org/docs/current/xindex.html
1725
+ *
1726
+ * ### Additional types
1727
+ * If you have the `pg_vector` extension installed in your database, you can use the
1728
+ * `vector_l2_ops`, `vector_ip_ops`, `vector_cosine_ops`, `vector_l1_ops`, `bit_hamming_ops`, `bit_jaccard_ops`, `halfvec_l2_ops`, `sparsevec_l2_ops` options, which are predefined types.
1729
+ *
1730
+ * **You can always specify any string you want in the operator class, in case Drizzle doesn't have it natively in its types**
1731
+ *
1732
+ * @param opClass
1733
+ * @returns
1734
+ */
1735
+ op(opClass) {
1736
+ this.indexConfig.opClass = opClass;
1737
+ return this;
1738
+ }
1739
+ };
1740
+ var IndexedColumn = class {
1741
+ static [entityKind] = "IndexedColumn";
1742
+ constructor(name, keyAsName, type, indexConfig) {
1743
+ this.name = name;
1744
+ this.keyAsName = keyAsName;
1745
+ this.type = type;
1746
+ this.indexConfig = indexConfig;
1747
+ }
1748
+ name;
1749
+ keyAsName;
1750
+ type;
1751
+ indexConfig;
1752
+ };
1753
+ var PgArrayBuilder = class extends PgColumnBuilder {
1754
+ static [entityKind] = "PgArrayBuilder";
1755
+ constructor(name, baseBuilder, size) {
1756
+ super(name, "array", "PgArray");
1757
+ this.config.baseBuilder = baseBuilder;
1758
+ this.config.size = size;
1759
+ }
1760
+ /** @internal */
1761
+ build(table) {
1762
+ const baseColumn = this.config.baseBuilder.build(table);
1763
+ return new PgArray(table, this.config, baseColumn);
1764
+ }
1765
+ };
1766
+ var PgArray = class PgArray extends PgColumn {
1767
+ constructor(table, config, baseColumn, range) {
1768
+ super(table, config);
1769
+ this.baseColumn = baseColumn;
1770
+ this.range = range;
1771
+ this.size = config.size;
1772
+ }
1773
+ size;
1774
+ static [entityKind] = "PgArray";
1775
+ getSQLType() {
1776
+ return `${this.baseColumn.getSQLType()}[${typeof this.size === "number" ? this.size : ""}]`;
1777
+ }
1778
+ mapFromDriverValue(value) {
1779
+ if (typeof value === "string") value = parsePgArray(value);
1780
+ return value.map((v) => this.baseColumn.mapFromDriverValue(v));
1781
+ }
1782
+ mapToDriverValue(value, isNestedArray = false) {
1783
+ const a = value.map((v) => v === null ? null : is(this.baseColumn, PgArray) ? this.baseColumn.mapToDriverValue(v, true) : this.baseColumn.mapToDriverValue(v));
1784
+ if (isNestedArray) return a;
1785
+ return makePgArray(a);
1786
+ }
1787
+ };
1788
+ //#endregion
1789
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/enum.js
1790
+ const isPgEnumSym = Symbol.for("drizzle:isPgEnum");
1791
+ function isPgEnum(obj) {
1792
+ return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
1793
+ }
1794
+ //#endregion
1795
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/subquery.js
1796
+ var Subquery = class {
1797
+ static [entityKind] = "Subquery";
1798
+ constructor(sql, fields, alias, isWith = false, usedTables = []) {
1799
+ this._ = {
1800
+ brand: "Subquery",
1801
+ sql,
1802
+ selectedFields: fields,
1803
+ alias,
1804
+ isWith,
1805
+ usedTables
1806
+ };
1807
+ }
1808
+ };
1809
+ //#endregion
1810
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/tracing.js
1811
+ const tracer = { startActiveSpan(name, fn) {
1812
+ return fn();
1813
+ } };
1814
+ //#endregion
1815
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/view-common.js
1816
+ const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
1817
+ //#endregion
1818
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/table.js
1819
+ const Schema = Symbol.for("drizzle:Schema");
1820
+ const Columns = Symbol.for("drizzle:Columns");
1821
+ const ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
1822
+ const OriginalName = Symbol.for("drizzle:OriginalName");
1823
+ const BaseName = Symbol.for("drizzle:BaseName");
1824
+ const IsAlias = Symbol.for("drizzle:IsAlias");
1825
+ const ExtraConfigBuilder = Symbol.for("drizzle:ExtraConfigBuilder");
1826
+ const IsDrizzleTable = Symbol.for("drizzle:IsDrizzleTable");
1827
+ var Table = class {
1828
+ static [entityKind] = "Table";
1829
+ /** @internal */
1830
+ static Symbol = {
1831
+ Name: TableName,
1832
+ Schema,
1833
+ OriginalName,
1834
+ Columns,
1835
+ ExtraConfigColumns,
1836
+ BaseName,
1837
+ IsAlias,
1838
+ ExtraConfigBuilder
1839
+ };
1840
+ /**
1841
+ * @internal
1842
+ * Can be changed if the table is aliased.
1843
+ */
1844
+ [TableName];
1845
+ /**
1846
+ * @internal
1847
+ * Used to store the original name of the table, before any aliasing.
1848
+ */
1849
+ [OriginalName];
1850
+ /** @internal */
1851
+ [Schema];
1852
+ /** @internal */
1853
+ [Columns];
1854
+ /** @internal */
1855
+ [ExtraConfigColumns];
1856
+ /**
1857
+ * @internal
1858
+ * Used to store the table name before the transformation via the `tableCreator` functions.
1859
+ */
1860
+ [BaseName];
1861
+ /** @internal */
1862
+ [IsAlias] = false;
1863
+ /** @internal */
1864
+ [IsDrizzleTable] = true;
1865
+ /** @internal */
1866
+ [ExtraConfigBuilder] = void 0;
1867
+ constructor(name, schema, baseName) {
1868
+ this[TableName] = this[OriginalName] = name;
1869
+ this[Schema] = schema;
1870
+ this[BaseName] = baseName;
1871
+ }
1872
+ };
1873
+ //#endregion
1874
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sql/sql.js
1875
+ function isSQLWrapper(value) {
1876
+ return value !== null && value !== void 0 && typeof value.getSQL === "function";
1877
+ }
1878
+ function mergeQueries(queries) {
1879
+ const result = {
1880
+ sql: "",
1881
+ params: []
1882
+ };
1883
+ for (const query of queries) {
1884
+ result.sql += query.sql;
1885
+ result.params.push(...query.params);
1886
+ if (query.typings?.length) {
1887
+ if (!result.typings) result.typings = [];
1888
+ result.typings.push(...query.typings);
1889
+ }
1890
+ }
1891
+ return result;
1892
+ }
1893
+ var StringChunk = class {
1894
+ static [entityKind] = "StringChunk";
1895
+ value;
1896
+ constructor(value) {
1897
+ this.value = Array.isArray(value) ? value : [value];
1898
+ }
1899
+ getSQL() {
1900
+ return new SQL([this]);
1901
+ }
1902
+ };
1903
+ var SQL = class SQL {
1904
+ constructor(queryChunks) {
1905
+ this.queryChunks = queryChunks;
1906
+ for (const chunk of queryChunks) if (is(chunk, Table)) {
1907
+ const schemaName = chunk[Table.Symbol.Schema];
1908
+ this.usedTables.push(schemaName === void 0 ? chunk[Table.Symbol.Name] : schemaName + "." + chunk[Table.Symbol.Name]);
1909
+ }
1910
+ }
1911
+ static [entityKind] = "SQL";
1912
+ /** @internal */
1913
+ decoder = noopDecoder;
1914
+ shouldInlineParams = false;
1915
+ /** @internal */
1916
+ usedTables = [];
1917
+ append(query) {
1918
+ this.queryChunks.push(...query.queryChunks);
1919
+ return this;
1920
+ }
1921
+ toQuery(config) {
1922
+ return tracer.startActiveSpan("drizzle.buildSQL", (span) => {
1923
+ const query = this.buildQueryFromSourceParams(this.queryChunks, config);
1924
+ span?.setAttributes({
1925
+ "drizzle.query.text": query.sql,
1926
+ "drizzle.query.params": JSON.stringify(query.params)
1927
+ });
1928
+ return query;
1929
+ });
1930
+ }
1931
+ buildQueryFromSourceParams(chunks, _config) {
1932
+ const config = Object.assign({}, _config, {
1933
+ inlineParams: _config.inlineParams || this.shouldInlineParams,
1934
+ paramStartIndex: _config.paramStartIndex || { value: 0 }
1935
+ });
1936
+ const { casing, escapeName, escapeParam, prepareTyping, inlineParams, paramStartIndex } = config;
1937
+ return mergeQueries(chunks.map((chunk) => {
1938
+ if (is(chunk, StringChunk)) return {
1939
+ sql: chunk.value.join(""),
1940
+ params: []
1941
+ };
1942
+ if (is(chunk, Name)) return {
1943
+ sql: escapeName(chunk.value),
1944
+ params: []
1945
+ };
1946
+ if (chunk === void 0) return {
1947
+ sql: "",
1948
+ params: []
1949
+ };
1950
+ if (Array.isArray(chunk)) {
1951
+ const result = [new StringChunk("(")];
1952
+ for (const [i, p] of chunk.entries()) {
1953
+ result.push(p);
1954
+ if (i < chunk.length - 1) result.push(new StringChunk(", "));
1955
+ }
1956
+ result.push(new StringChunk(")"));
1957
+ return this.buildQueryFromSourceParams(result, config);
1958
+ }
1959
+ if (is(chunk, SQL)) return this.buildQueryFromSourceParams(chunk.queryChunks, {
1960
+ ...config,
1961
+ inlineParams: inlineParams || chunk.shouldInlineParams
1962
+ });
1963
+ if (is(chunk, Table)) {
1964
+ const schemaName = chunk[Table.Symbol.Schema];
1965
+ const tableName = chunk[Table.Symbol.Name];
1966
+ return {
1967
+ sql: schemaName === void 0 || chunk[IsAlias] ? escapeName(tableName) : escapeName(schemaName) + "." + escapeName(tableName),
1968
+ params: []
1969
+ };
1970
+ }
1971
+ if (is(chunk, Column)) {
1972
+ const columnName = casing.getColumnCasing(chunk);
1973
+ if (_config.invokeSource === "indexes") return {
1974
+ sql: escapeName(columnName),
1975
+ params: []
1976
+ };
1977
+ const schemaName = chunk.table[Table.Symbol.Schema];
1978
+ return {
1979
+ sql: chunk.table[IsAlias] || schemaName === void 0 ? escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName) : escapeName(schemaName) + "." + escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName),
1980
+ params: []
1981
+ };
1982
+ }
1983
+ if (is(chunk, View)) {
1984
+ const schemaName = chunk[ViewBaseConfig].schema;
1985
+ const viewName = chunk[ViewBaseConfig].name;
1986
+ return {
1987
+ sql: schemaName === void 0 || chunk[ViewBaseConfig].isAlias ? escapeName(viewName) : escapeName(schemaName) + "." + escapeName(viewName),
1988
+ params: []
1989
+ };
1990
+ }
1991
+ if (is(chunk, Param)) {
1992
+ if (is(chunk.value, Placeholder)) return {
1993
+ sql: escapeParam(paramStartIndex.value++, chunk),
1994
+ params: [chunk],
1995
+ typings: ["none"]
1996
+ };
1997
+ const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
1998
+ if (is(mappedValue, SQL)) return this.buildQueryFromSourceParams([mappedValue], config);
1999
+ if (inlineParams) return {
2000
+ sql: this.mapInlineParam(mappedValue, config),
2001
+ params: []
2002
+ };
2003
+ let typings = ["none"];
2004
+ if (prepareTyping) typings = [prepareTyping(chunk.encoder)];
2005
+ return {
2006
+ sql: escapeParam(paramStartIndex.value++, mappedValue),
2007
+ params: [mappedValue],
2008
+ typings
2009
+ };
2010
+ }
2011
+ if (is(chunk, Placeholder)) return {
2012
+ sql: escapeParam(paramStartIndex.value++, chunk),
2013
+ params: [chunk],
2014
+ typings: ["none"]
2015
+ };
2016
+ if (is(chunk, SQL.Aliased) && chunk.fieldAlias !== void 0) return {
2017
+ sql: escapeName(chunk.fieldAlias),
2018
+ params: []
2019
+ };
2020
+ if (is(chunk, Subquery)) {
2021
+ if (chunk._.isWith) return {
2022
+ sql: escapeName(chunk._.alias),
2023
+ params: []
2024
+ };
2025
+ return this.buildQueryFromSourceParams([
2026
+ new StringChunk("("),
2027
+ chunk._.sql,
2028
+ new StringChunk(") "),
2029
+ new Name(chunk._.alias)
2030
+ ], config);
2031
+ }
2032
+ if (isPgEnum(chunk)) {
2033
+ if (chunk.schema) return {
2034
+ sql: escapeName(chunk.schema) + "." + escapeName(chunk.enumName),
2035
+ params: []
2036
+ };
2037
+ return {
2038
+ sql: escapeName(chunk.enumName),
2039
+ params: []
2040
+ };
2041
+ }
2042
+ if (isSQLWrapper(chunk)) {
2043
+ if (chunk.shouldOmitSQLParens?.()) return this.buildQueryFromSourceParams([chunk.getSQL()], config);
2044
+ return this.buildQueryFromSourceParams([
2045
+ new StringChunk("("),
2046
+ chunk.getSQL(),
2047
+ new StringChunk(")")
2048
+ ], config);
2049
+ }
2050
+ if (inlineParams) return {
2051
+ sql: this.mapInlineParam(chunk, config),
2052
+ params: []
2053
+ };
2054
+ return {
2055
+ sql: escapeParam(paramStartIndex.value++, chunk),
2056
+ params: [chunk],
2057
+ typings: ["none"]
2058
+ };
2059
+ }));
2060
+ }
2061
+ mapInlineParam(chunk, { escapeString }) {
2062
+ if (chunk === null) return "null";
2063
+ if (typeof chunk === "number" || typeof chunk === "boolean") return chunk.toString();
2064
+ if (typeof chunk === "string") return escapeString(chunk);
2065
+ if (typeof chunk === "object") {
2066
+ const mappedValueAsString = chunk.toString();
2067
+ if (mappedValueAsString === "[object Object]") return escapeString(JSON.stringify(chunk));
2068
+ return escapeString(mappedValueAsString);
2069
+ }
2070
+ throw new Error("Unexpected param value: " + chunk);
2071
+ }
2072
+ getSQL() {
2073
+ return this;
2074
+ }
2075
+ as(alias) {
2076
+ if (alias === void 0) return this;
2077
+ return new SQL.Aliased(this, alias);
2078
+ }
2079
+ mapWith(decoder) {
2080
+ this.decoder = typeof decoder === "function" ? { mapFromDriverValue: decoder } : decoder;
2081
+ return this;
2082
+ }
2083
+ inlineParams() {
2084
+ this.shouldInlineParams = true;
2085
+ return this;
2086
+ }
2087
+ /**
2088
+ * This method is used to conditionally include a part of the query.
2089
+ *
2090
+ * @param condition - Condition to check
2091
+ * @returns itself if the condition is `true`, otherwise `undefined`
2092
+ */
2093
+ if(condition) {
2094
+ return condition ? this : void 0;
2095
+ }
2096
+ };
2097
+ var Name = class {
2098
+ constructor(value) {
2099
+ this.value = value;
2100
+ }
2101
+ static [entityKind] = "Name";
2102
+ brand;
2103
+ getSQL() {
2104
+ return new SQL([this]);
2105
+ }
2106
+ };
2107
+ const noopDecoder = { mapFromDriverValue: (value) => value };
2108
+ const noopEncoder = { mapToDriverValue: (value) => value };
2109
+ ({
2110
+ ...noopDecoder,
2111
+ ...noopEncoder
2112
+ });
2113
+ var Param = class {
2114
+ /**
2115
+ * @param value - Parameter value
2116
+ * @param encoder - Encoder to convert the value to a driver parameter
2117
+ */
2118
+ constructor(value, encoder = noopEncoder) {
2119
+ this.value = value;
2120
+ this.encoder = encoder;
2121
+ }
2122
+ static [entityKind] = "Param";
2123
+ brand;
2124
+ getSQL() {
2125
+ return new SQL([this]);
2126
+ }
2127
+ };
2128
+ function sql(strings, ...params) {
2129
+ const queryChunks = [];
2130
+ if (params.length > 0 || strings.length > 0 && strings[0] !== "") queryChunks.push(new StringChunk(strings[0]));
2131
+ for (const [paramIndex, param2] of params.entries()) queryChunks.push(param2, new StringChunk(strings[paramIndex + 1]));
2132
+ return new SQL(queryChunks);
2133
+ }
2134
+ ((sql2) => {
2135
+ function empty() {
2136
+ return new SQL([]);
2137
+ }
2138
+ sql2.empty = empty;
2139
+ function fromList(list) {
2140
+ return new SQL(list);
2141
+ }
2142
+ sql2.fromList = fromList;
2143
+ function raw(str) {
2144
+ return new SQL([new StringChunk(str)]);
2145
+ }
2146
+ sql2.raw = raw;
2147
+ function join(chunks, separator) {
2148
+ const result = [];
2149
+ for (const [i, chunk] of chunks.entries()) {
2150
+ if (i > 0 && separator !== void 0) result.push(separator);
2151
+ result.push(chunk);
2152
+ }
2153
+ return new SQL(result);
2154
+ }
2155
+ sql2.join = join;
2156
+ function identifier(value) {
2157
+ return new Name(value);
2158
+ }
2159
+ sql2.identifier = identifier;
2160
+ function placeholder2(name2) {
2161
+ return new Placeholder(name2);
2162
+ }
2163
+ sql2.placeholder = placeholder2;
2164
+ function param2(value, encoder) {
2165
+ return new Param(value, encoder);
2166
+ }
2167
+ sql2.param = param2;
2168
+ })(sql || (sql = {}));
2169
+ ((SQL2) => {
2170
+ class Aliased {
2171
+ constructor(sql2, fieldAlias) {
2172
+ this.sql = sql2;
2173
+ this.fieldAlias = fieldAlias;
2174
+ }
2175
+ static [entityKind] = "SQL.Aliased";
2176
+ /** @internal */
2177
+ isSelectionField = false;
2178
+ getSQL() {
2179
+ return this.sql;
2180
+ }
2181
+ /** @internal */
2182
+ clone() {
2183
+ return new Aliased(this.sql, this.fieldAlias);
2184
+ }
2185
+ }
2186
+ SQL2.Aliased = Aliased;
2187
+ })(SQL || (SQL = {}));
2188
+ var Placeholder = class {
2189
+ constructor(name2) {
2190
+ this.name = name2;
2191
+ }
2192
+ static [entityKind] = "Placeholder";
2193
+ getSQL() {
2194
+ return new SQL([this]);
2195
+ }
2196
+ };
2197
+ const IsDrizzleView = Symbol.for("drizzle:IsDrizzleView");
2198
+ var View = class {
2199
+ static [entityKind] = "View";
2200
+ /** @internal */
2201
+ [ViewBaseConfig];
2202
+ /** @internal */
2203
+ [IsDrizzleView] = true;
2204
+ constructor({ name: name2, schema, selectedFields, query }) {
2205
+ this[ViewBaseConfig] = {
2206
+ name: name2,
2207
+ originalName: name2,
2208
+ schema,
2209
+ selectedFields,
2210
+ query,
2211
+ isExisting: !query,
2212
+ isAlias: false
2213
+ };
2214
+ }
2215
+ getSQL() {
2216
+ return new SQL([this]);
2217
+ }
2218
+ };
2219
+ Column.prototype.getSQL = function() {
2220
+ return new SQL([this]);
2221
+ };
2222
+ Table.prototype.getSQL = function() {
2223
+ return new SQL([this]);
2224
+ };
2225
+ Subquery.prototype.getSQL = function() {
2226
+ return new SQL([this]);
2227
+ };
2228
+ //#endregion
2229
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/utils.js
2230
+ function getColumnNameAndConfig(a, b) {
2231
+ return {
2232
+ name: typeof a === "string" && a.length > 0 ? a : "",
2233
+ config: typeof a === "object" ? a : b
2234
+ };
2235
+ }
2236
+ const textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
2237
+ //#endregion
2238
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/int.common.js
2239
+ var PgIntColumnBaseBuilder = class extends PgColumnBuilder {
2240
+ static [entityKind] = "PgIntColumnBaseBuilder";
2241
+ generatedAlwaysAsIdentity(sequence) {
2242
+ if (sequence) {
2243
+ const { name, ...options } = sequence;
2244
+ this.config.generatedIdentity = {
2245
+ type: "always",
2246
+ sequenceName: name,
2247
+ sequenceOptions: options
2248
+ };
2249
+ } else this.config.generatedIdentity = { type: "always" };
2250
+ this.config.hasDefault = true;
2251
+ this.config.notNull = true;
2252
+ return this;
2253
+ }
2254
+ generatedByDefaultAsIdentity(sequence) {
2255
+ if (sequence) {
2256
+ const { name, ...options } = sequence;
2257
+ this.config.generatedIdentity = {
2258
+ type: "byDefault",
2259
+ sequenceName: name,
2260
+ sequenceOptions: options
2261
+ };
2262
+ } else this.config.generatedIdentity = { type: "byDefault" };
2263
+ this.config.hasDefault = true;
2264
+ this.config.notNull = true;
2265
+ return this;
2266
+ }
2267
+ };
2268
+ //#endregion
2269
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/bigint.js
2270
+ var PgBigInt53Builder = class extends PgIntColumnBaseBuilder {
2271
+ static [entityKind] = "PgBigInt53Builder";
2272
+ constructor(name) {
2273
+ super(name, "number", "PgBigInt53");
2274
+ }
2275
+ /** @internal */
2276
+ build(table) {
2277
+ return new PgBigInt53(table, this.config);
2278
+ }
2279
+ };
2280
+ var PgBigInt53 = class extends PgColumn {
2281
+ static [entityKind] = "PgBigInt53";
2282
+ getSQLType() {
2283
+ return "bigint";
2284
+ }
2285
+ mapFromDriverValue(value) {
2286
+ if (typeof value === "number") return value;
2287
+ return Number(value);
2288
+ }
2289
+ };
2290
+ var PgBigInt64Builder = class extends PgIntColumnBaseBuilder {
2291
+ static [entityKind] = "PgBigInt64Builder";
2292
+ constructor(name) {
2293
+ super(name, "bigint", "PgBigInt64");
2294
+ }
2295
+ /** @internal */
2296
+ build(table) {
2297
+ return new PgBigInt64(table, this.config);
2298
+ }
2299
+ };
2300
+ var PgBigInt64 = class extends PgColumn {
2301
+ static [entityKind] = "PgBigInt64";
2302
+ getSQLType() {
2303
+ return "bigint";
2304
+ }
2305
+ mapFromDriverValue(value) {
2306
+ return BigInt(value);
2307
+ }
2308
+ };
2309
+ function bigint(a, b) {
2310
+ const { name, config } = getColumnNameAndConfig(a, b);
2311
+ if (config.mode === "number") return new PgBigInt53Builder(name);
2312
+ return new PgBigInt64Builder(name);
2313
+ }
2314
+ //#endregion
2315
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/bigserial.js
2316
+ var PgBigSerial53Builder = class extends PgColumnBuilder {
2317
+ static [entityKind] = "PgBigSerial53Builder";
2318
+ constructor(name) {
2319
+ super(name, "number", "PgBigSerial53");
2320
+ this.config.hasDefault = true;
2321
+ this.config.notNull = true;
2322
+ }
2323
+ /** @internal */
2324
+ build(table) {
2325
+ return new PgBigSerial53(table, this.config);
2326
+ }
2327
+ };
2328
+ var PgBigSerial53 = class extends PgColumn {
2329
+ static [entityKind] = "PgBigSerial53";
2330
+ getSQLType() {
2331
+ return "bigserial";
2332
+ }
2333
+ mapFromDriverValue(value) {
2334
+ if (typeof value === "number") return value;
2335
+ return Number(value);
2336
+ }
2337
+ };
2338
+ var PgBigSerial64Builder = class extends PgColumnBuilder {
2339
+ static [entityKind] = "PgBigSerial64Builder";
2340
+ constructor(name) {
2341
+ super(name, "bigint", "PgBigSerial64");
2342
+ this.config.hasDefault = true;
2343
+ }
2344
+ /** @internal */
2345
+ build(table) {
2346
+ return new PgBigSerial64(table, this.config);
2347
+ }
2348
+ };
2349
+ var PgBigSerial64 = class extends PgColumn {
2350
+ static [entityKind] = "PgBigSerial64";
2351
+ getSQLType() {
2352
+ return "bigserial";
2353
+ }
2354
+ mapFromDriverValue(value) {
2355
+ return BigInt(value);
2356
+ }
2357
+ };
2358
+ function bigserial(a, b) {
2359
+ const { name, config } = getColumnNameAndConfig(a, b);
2360
+ if (config.mode === "number") return new PgBigSerial53Builder(name);
2361
+ return new PgBigSerial64Builder(name);
2362
+ }
2363
+ //#endregion
2364
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/boolean.js
2365
+ var PgBooleanBuilder = class extends PgColumnBuilder {
2366
+ static [entityKind] = "PgBooleanBuilder";
2367
+ constructor(name) {
2368
+ super(name, "boolean", "PgBoolean");
2369
+ }
2370
+ /** @internal */
2371
+ build(table) {
2372
+ return new PgBoolean(table, this.config);
2373
+ }
2374
+ };
2375
+ var PgBoolean = class extends PgColumn {
2376
+ static [entityKind] = "PgBoolean";
2377
+ getSQLType() {
2378
+ return "boolean";
2379
+ }
2380
+ };
2381
+ function boolean(name) {
2382
+ return new PgBooleanBuilder(name ?? "");
2383
+ }
2384
+ //#endregion
2385
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/char.js
2386
+ var PgCharBuilder = class extends PgColumnBuilder {
2387
+ static [entityKind] = "PgCharBuilder";
2388
+ constructor(name, config) {
2389
+ super(name, "string", "PgChar");
2390
+ this.config.length = config.length;
2391
+ this.config.enumValues = config.enum;
2392
+ }
2393
+ /** @internal */
2394
+ build(table) {
2395
+ return new PgChar(table, this.config);
2396
+ }
2397
+ };
2398
+ var PgChar = class extends PgColumn {
2399
+ static [entityKind] = "PgChar";
2400
+ length = this.config.length;
2401
+ enumValues = this.config.enumValues;
2402
+ getSQLType() {
2403
+ return this.length === void 0 ? `char` : `char(${this.length})`;
2404
+ }
2405
+ };
2406
+ function char(a, b = {}) {
2407
+ const { name, config } = getColumnNameAndConfig(a, b);
2408
+ return new PgCharBuilder(name, config);
2409
+ }
2410
+ //#endregion
2411
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/cidr.js
2412
+ var PgCidrBuilder = class extends PgColumnBuilder {
2413
+ static [entityKind] = "PgCidrBuilder";
2414
+ constructor(name) {
2415
+ super(name, "string", "PgCidr");
2416
+ }
2417
+ /** @internal */
2418
+ build(table) {
2419
+ return new PgCidr(table, this.config);
2420
+ }
2421
+ };
2422
+ var PgCidr = class extends PgColumn {
2423
+ static [entityKind] = "PgCidr";
2424
+ getSQLType() {
2425
+ return "cidr";
2426
+ }
2427
+ };
2428
+ function cidr(name) {
2429
+ return new PgCidrBuilder(name ?? "");
2430
+ }
2431
+ //#endregion
2432
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/custom.js
2433
+ var PgCustomColumnBuilder = class extends PgColumnBuilder {
2434
+ static [entityKind] = "PgCustomColumnBuilder";
2435
+ constructor(name, fieldConfig, customTypeParams) {
2436
+ super(name, "custom", "PgCustomColumn");
2437
+ this.config.fieldConfig = fieldConfig;
2438
+ this.config.customTypeParams = customTypeParams;
2439
+ }
2440
+ /** @internal */
2441
+ build(table) {
2442
+ return new PgCustomColumn(table, this.config);
2443
+ }
2444
+ };
2445
+ var PgCustomColumn = class extends PgColumn {
2446
+ static [entityKind] = "PgCustomColumn";
2447
+ sqlName;
2448
+ mapTo;
2449
+ mapFrom;
2450
+ constructor(table, config) {
2451
+ super(table, config);
2452
+ this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
2453
+ this.mapTo = config.customTypeParams.toDriver;
2454
+ this.mapFrom = config.customTypeParams.fromDriver;
2455
+ }
2456
+ getSQLType() {
2457
+ return this.sqlName;
2458
+ }
2459
+ mapFromDriverValue(value) {
2460
+ return typeof this.mapFrom === "function" ? this.mapFrom(value) : value;
2461
+ }
2462
+ mapToDriverValue(value) {
2463
+ return typeof this.mapTo === "function" ? this.mapTo(value) : value;
2464
+ }
2465
+ };
2466
+ function customType$1(customTypeParams) {
2467
+ return (a, b) => {
2468
+ const { name, config } = getColumnNameAndConfig(a, b);
2469
+ return new PgCustomColumnBuilder(name, config, customTypeParams);
2470
+ };
2471
+ }
2472
+ //#endregion
2473
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/date.common.js
2474
+ var PgDateColumnBaseBuilder = class extends PgColumnBuilder {
2475
+ static [entityKind] = "PgDateColumnBaseBuilder";
2476
+ defaultNow() {
2477
+ return this.default(sql`now()`);
2478
+ }
2479
+ };
2480
+ //#endregion
2481
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/date.js
2482
+ var PgDateBuilder = class extends PgDateColumnBaseBuilder {
2483
+ static [entityKind] = "PgDateBuilder";
2484
+ constructor(name) {
2485
+ super(name, "date", "PgDate");
2486
+ }
2487
+ /** @internal */
2488
+ build(table) {
2489
+ return new PgDate(table, this.config);
2490
+ }
2491
+ };
2492
+ var PgDate = class extends PgColumn {
2493
+ static [entityKind] = "PgDate";
2494
+ getSQLType() {
2495
+ return "date";
2496
+ }
2497
+ mapFromDriverValue(value) {
2498
+ if (typeof value === "string") return new Date(value);
2499
+ return value;
2500
+ }
2501
+ mapToDriverValue(value) {
2502
+ return value.toISOString();
2503
+ }
2504
+ };
2505
+ var PgDateStringBuilder = class extends PgDateColumnBaseBuilder {
2506
+ static [entityKind] = "PgDateStringBuilder";
2507
+ constructor(name) {
2508
+ super(name, "string", "PgDateString");
2509
+ }
2510
+ /** @internal */
2511
+ build(table) {
2512
+ return new PgDateString(table, this.config);
2513
+ }
2514
+ };
2515
+ var PgDateString = class extends PgColumn {
2516
+ static [entityKind] = "PgDateString";
2517
+ getSQLType() {
2518
+ return "date";
2519
+ }
2520
+ mapFromDriverValue(value) {
2521
+ if (typeof value === "string") return value;
2522
+ return value.toISOString().slice(0, -14);
2523
+ }
2524
+ };
2525
+ function date(a, b) {
2526
+ const { name, config } = getColumnNameAndConfig(a, b);
2527
+ if (config?.mode === "date") return new PgDateBuilder(name);
2528
+ return new PgDateStringBuilder(name);
2529
+ }
2530
+ //#endregion
2531
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/double-precision.js
2532
+ var PgDoublePrecisionBuilder = class extends PgColumnBuilder {
2533
+ static [entityKind] = "PgDoublePrecisionBuilder";
2534
+ constructor(name) {
2535
+ super(name, "number", "PgDoublePrecision");
2536
+ }
2537
+ /** @internal */
2538
+ build(table) {
2539
+ return new PgDoublePrecision(table, this.config);
2540
+ }
2541
+ };
2542
+ var PgDoublePrecision = class extends PgColumn {
2543
+ static [entityKind] = "PgDoublePrecision";
2544
+ getSQLType() {
2545
+ return "double precision";
2546
+ }
2547
+ mapFromDriverValue(value) {
2548
+ if (typeof value === "string") return Number.parseFloat(value);
2549
+ return value;
2550
+ }
2551
+ };
2552
+ function doublePrecision(name) {
2553
+ return new PgDoublePrecisionBuilder(name ?? "");
2554
+ }
2555
+ //#endregion
2556
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/inet.js
2557
+ var PgInetBuilder = class extends PgColumnBuilder {
2558
+ static [entityKind] = "PgInetBuilder";
2559
+ constructor(name) {
2560
+ super(name, "string", "PgInet");
2561
+ }
2562
+ /** @internal */
2563
+ build(table) {
2564
+ return new PgInet(table, this.config);
2565
+ }
2566
+ };
2567
+ var PgInet = class extends PgColumn {
2568
+ static [entityKind] = "PgInet";
2569
+ getSQLType() {
2570
+ return "inet";
2571
+ }
2572
+ };
2573
+ function inet(name) {
2574
+ return new PgInetBuilder(name ?? "");
2575
+ }
2576
+ //#endregion
2577
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/integer.js
2578
+ var PgIntegerBuilder = class extends PgIntColumnBaseBuilder {
2579
+ static [entityKind] = "PgIntegerBuilder";
2580
+ constructor(name) {
2581
+ super(name, "number", "PgInteger");
2582
+ }
2583
+ /** @internal */
2584
+ build(table) {
2585
+ return new PgInteger(table, this.config);
2586
+ }
2587
+ };
2588
+ var PgInteger = class extends PgColumn {
2589
+ static [entityKind] = "PgInteger";
2590
+ getSQLType() {
2591
+ return "integer";
2592
+ }
2593
+ mapFromDriverValue(value) {
2594
+ if (typeof value === "string") return Number.parseInt(value);
2595
+ return value;
2596
+ }
2597
+ };
2598
+ function integer$1(name) {
2599
+ return new PgIntegerBuilder(name ?? "");
2600
+ }
2601
+ //#endregion
2602
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/interval.js
2603
+ var PgIntervalBuilder = class extends PgColumnBuilder {
2604
+ static [entityKind] = "PgIntervalBuilder";
2605
+ constructor(name, intervalConfig) {
2606
+ super(name, "string", "PgInterval");
2607
+ this.config.intervalConfig = intervalConfig;
2608
+ }
2609
+ /** @internal */
2610
+ build(table) {
2611
+ return new PgInterval(table, this.config);
2612
+ }
2613
+ };
2614
+ var PgInterval = class extends PgColumn {
2615
+ static [entityKind] = "PgInterval";
2616
+ fields = this.config.intervalConfig.fields;
2617
+ precision = this.config.intervalConfig.precision;
2618
+ getSQLType() {
2619
+ return `interval${this.fields ? ` ${this.fields}` : ""}${this.precision ? `(${this.precision})` : ""}`;
2620
+ }
2621
+ };
2622
+ function interval(a, b = {}) {
2623
+ const { name, config } = getColumnNameAndConfig(a, b);
2624
+ return new PgIntervalBuilder(name, config);
2625
+ }
2626
+ //#endregion
2627
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/json.js
2628
+ var PgJsonBuilder = class extends PgColumnBuilder {
2629
+ static [entityKind] = "PgJsonBuilder";
2630
+ constructor(name) {
2631
+ super(name, "json", "PgJson");
2632
+ }
2633
+ /** @internal */
2634
+ build(table) {
2635
+ return new PgJson(table, this.config);
2636
+ }
2637
+ };
2638
+ var PgJson = class extends PgColumn {
2639
+ static [entityKind] = "PgJson";
2640
+ constructor(table, config) {
2641
+ super(table, config);
2642
+ }
2643
+ getSQLType() {
2644
+ return "json";
2645
+ }
2646
+ mapToDriverValue(value) {
2647
+ return JSON.stringify(value);
2648
+ }
2649
+ mapFromDriverValue(value) {
2650
+ if (typeof value === "string") try {
2651
+ return JSON.parse(value);
2652
+ } catch {
2653
+ return value;
2654
+ }
2655
+ return value;
2656
+ }
2657
+ };
2658
+ function json(name) {
2659
+ return new PgJsonBuilder(name ?? "");
2660
+ }
2661
+ //#endregion
2662
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/jsonb.js
2663
+ var PgJsonbBuilder = class extends PgColumnBuilder {
2664
+ static [entityKind] = "PgJsonbBuilder";
2665
+ constructor(name) {
2666
+ super(name, "json", "PgJsonb");
2667
+ }
2668
+ /** @internal */
2669
+ build(table) {
2670
+ return new PgJsonb(table, this.config);
2671
+ }
2672
+ };
2673
+ var PgJsonb = class extends PgColumn {
2674
+ static [entityKind] = "PgJsonb";
2675
+ constructor(table, config) {
2676
+ super(table, config);
2677
+ }
2678
+ getSQLType() {
2679
+ return "jsonb";
2680
+ }
2681
+ mapToDriverValue(value) {
2682
+ return JSON.stringify(value);
2683
+ }
2684
+ mapFromDriverValue(value) {
2685
+ if (typeof value === "string") try {
2686
+ return JSON.parse(value);
2687
+ } catch {
2688
+ return value;
2689
+ }
2690
+ return value;
2691
+ }
2692
+ };
2693
+ function jsonb(name) {
2694
+ return new PgJsonbBuilder(name ?? "");
2695
+ }
2696
+ //#endregion
2697
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/line.js
2698
+ var PgLineBuilder = class extends PgColumnBuilder {
2699
+ static [entityKind] = "PgLineBuilder";
2700
+ constructor(name) {
2701
+ super(name, "array", "PgLine");
2702
+ }
2703
+ /** @internal */
2704
+ build(table) {
2705
+ return new PgLineTuple(table, this.config);
2706
+ }
2707
+ };
2708
+ var PgLineTuple = class extends PgColumn {
2709
+ static [entityKind] = "PgLine";
2710
+ getSQLType() {
2711
+ return "line";
2712
+ }
2713
+ mapFromDriverValue(value) {
2714
+ const [a, b, c] = value.slice(1, -1).split(",");
2715
+ return [
2716
+ Number.parseFloat(a),
2717
+ Number.parseFloat(b),
2718
+ Number.parseFloat(c)
2719
+ ];
2720
+ }
2721
+ mapToDriverValue(value) {
2722
+ return `{${value[0]},${value[1]},${value[2]}}`;
2723
+ }
2724
+ };
2725
+ var PgLineABCBuilder = class extends PgColumnBuilder {
2726
+ static [entityKind] = "PgLineABCBuilder";
2727
+ constructor(name) {
2728
+ super(name, "json", "PgLineABC");
2729
+ }
2730
+ /** @internal */
2731
+ build(table) {
2732
+ return new PgLineABC(table, this.config);
2733
+ }
2734
+ };
2735
+ var PgLineABC = class extends PgColumn {
2736
+ static [entityKind] = "PgLineABC";
2737
+ getSQLType() {
2738
+ return "line";
2739
+ }
2740
+ mapFromDriverValue(value) {
2741
+ const [a, b, c] = value.slice(1, -1).split(",");
2742
+ return {
2743
+ a: Number.parseFloat(a),
2744
+ b: Number.parseFloat(b),
2745
+ c: Number.parseFloat(c)
2746
+ };
2747
+ }
2748
+ mapToDriverValue(value) {
2749
+ return `{${value.a},${value.b},${value.c}}`;
2750
+ }
2751
+ };
2752
+ function line(a, b) {
2753
+ const { name, config } = getColumnNameAndConfig(a, b);
2754
+ if (!config?.mode || config.mode === "tuple") return new PgLineBuilder(name);
2755
+ return new PgLineABCBuilder(name);
2756
+ }
2757
+ //#endregion
2758
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/macaddr.js
2759
+ var PgMacaddrBuilder = class extends PgColumnBuilder {
2760
+ static [entityKind] = "PgMacaddrBuilder";
2761
+ constructor(name) {
2762
+ super(name, "string", "PgMacaddr");
2763
+ }
2764
+ /** @internal */
2765
+ build(table) {
2766
+ return new PgMacaddr(table, this.config);
2767
+ }
2768
+ };
2769
+ var PgMacaddr = class extends PgColumn {
2770
+ static [entityKind] = "PgMacaddr";
2771
+ getSQLType() {
2772
+ return "macaddr";
2773
+ }
2774
+ };
2775
+ function macaddr(name) {
2776
+ return new PgMacaddrBuilder(name ?? "");
2777
+ }
2778
+ //#endregion
2779
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
2780
+ var PgMacaddr8Builder = class extends PgColumnBuilder {
2781
+ static [entityKind] = "PgMacaddr8Builder";
2782
+ constructor(name) {
2783
+ super(name, "string", "PgMacaddr8");
2784
+ }
2785
+ /** @internal */
2786
+ build(table) {
2787
+ return new PgMacaddr8(table, this.config);
2788
+ }
2789
+ };
2790
+ var PgMacaddr8 = class extends PgColumn {
2791
+ static [entityKind] = "PgMacaddr8";
2792
+ getSQLType() {
2793
+ return "macaddr8";
2794
+ }
2795
+ };
2796
+ function macaddr8(name) {
2797
+ return new PgMacaddr8Builder(name ?? "");
2798
+ }
2799
+ //#endregion
2800
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/numeric.js
2801
+ var PgNumericBuilder = class extends PgColumnBuilder {
2802
+ static [entityKind] = "PgNumericBuilder";
2803
+ constructor(name, precision, scale) {
2804
+ super(name, "string", "PgNumeric");
2805
+ this.config.precision = precision;
2806
+ this.config.scale = scale;
2807
+ }
2808
+ /** @internal */
2809
+ build(table) {
2810
+ return new PgNumeric(table, this.config);
2811
+ }
2812
+ };
2813
+ var PgNumeric = class extends PgColumn {
2814
+ static [entityKind] = "PgNumeric";
2815
+ precision;
2816
+ scale;
2817
+ constructor(table, config) {
2818
+ super(table, config);
2819
+ this.precision = config.precision;
2820
+ this.scale = config.scale;
2821
+ }
2822
+ mapFromDriverValue(value) {
2823
+ if (typeof value === "string") return value;
2824
+ return String(value);
2825
+ }
2826
+ getSQLType() {
2827
+ if (this.precision !== void 0 && this.scale !== void 0) return `numeric(${this.precision}, ${this.scale})`;
2828
+ else if (this.precision === void 0) return "numeric";
2829
+ else return `numeric(${this.precision})`;
2830
+ }
2831
+ };
2832
+ var PgNumericNumberBuilder = class extends PgColumnBuilder {
2833
+ static [entityKind] = "PgNumericNumberBuilder";
2834
+ constructor(name, precision, scale) {
2835
+ super(name, "number", "PgNumericNumber");
2836
+ this.config.precision = precision;
2837
+ this.config.scale = scale;
2838
+ }
2839
+ /** @internal */
2840
+ build(table) {
2841
+ return new PgNumericNumber(table, this.config);
2842
+ }
2843
+ };
2844
+ var PgNumericNumber = class extends PgColumn {
2845
+ static [entityKind] = "PgNumericNumber";
2846
+ precision;
2847
+ scale;
2848
+ constructor(table, config) {
2849
+ super(table, config);
2850
+ this.precision = config.precision;
2851
+ this.scale = config.scale;
2852
+ }
2853
+ mapFromDriverValue(value) {
2854
+ if (typeof value === "number") return value;
2855
+ return Number(value);
2856
+ }
2857
+ mapToDriverValue = String;
2858
+ getSQLType() {
2859
+ if (this.precision !== void 0 && this.scale !== void 0) return `numeric(${this.precision}, ${this.scale})`;
2860
+ else if (this.precision === void 0) return "numeric";
2861
+ else return `numeric(${this.precision})`;
2862
+ }
2863
+ };
2864
+ var PgNumericBigIntBuilder = class extends PgColumnBuilder {
2865
+ static [entityKind] = "PgNumericBigIntBuilder";
2866
+ constructor(name, precision, scale) {
2867
+ super(name, "bigint", "PgNumericBigInt");
2868
+ this.config.precision = precision;
2869
+ this.config.scale = scale;
2870
+ }
2871
+ /** @internal */
2872
+ build(table) {
2873
+ return new PgNumericBigInt(table, this.config);
2874
+ }
2875
+ };
2876
+ var PgNumericBigInt = class extends PgColumn {
2877
+ static [entityKind] = "PgNumericBigInt";
2878
+ precision;
2879
+ scale;
2880
+ constructor(table, config) {
2881
+ super(table, config);
2882
+ this.precision = config.precision;
2883
+ this.scale = config.scale;
2884
+ }
2885
+ mapFromDriverValue = BigInt;
2886
+ mapToDriverValue = String;
2887
+ getSQLType() {
2888
+ if (this.precision !== void 0 && this.scale !== void 0) return `numeric(${this.precision}, ${this.scale})`;
2889
+ else if (this.precision === void 0) return "numeric";
2890
+ else return `numeric(${this.precision})`;
2891
+ }
2892
+ };
2893
+ function numeric$1(a, b) {
2894
+ const { name, config } = getColumnNameAndConfig(a, b);
2895
+ const mode = config?.mode;
2896
+ return mode === "number" ? new PgNumericNumberBuilder(name, config?.precision, config?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config?.precision, config?.scale) : new PgNumericBuilder(name, config?.precision, config?.scale);
2897
+ }
2898
+ //#endregion
2899
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/point.js
2900
+ var PgPointTupleBuilder = class extends PgColumnBuilder {
2901
+ static [entityKind] = "PgPointTupleBuilder";
2902
+ constructor(name) {
2903
+ super(name, "array", "PgPointTuple");
2904
+ }
2905
+ /** @internal */
2906
+ build(table) {
2907
+ return new PgPointTuple(table, this.config);
2908
+ }
2909
+ };
2910
+ var PgPointTuple = class extends PgColumn {
2911
+ static [entityKind] = "PgPointTuple";
2912
+ getSQLType() {
2913
+ return "point";
2914
+ }
2915
+ mapFromDriverValue(value) {
2916
+ if (typeof value === "string") {
2917
+ const [x, y] = value.slice(1, -1).split(",");
2918
+ return [Number.parseFloat(x), Number.parseFloat(y)];
2919
+ }
2920
+ return [value.x, value.y];
2921
+ }
2922
+ mapToDriverValue(value) {
2923
+ return `(${value[0]},${value[1]})`;
2924
+ }
2925
+ };
2926
+ var PgPointObjectBuilder = class extends PgColumnBuilder {
2927
+ static [entityKind] = "PgPointObjectBuilder";
2928
+ constructor(name) {
2929
+ super(name, "json", "PgPointObject");
2930
+ }
2931
+ /** @internal */
2932
+ build(table) {
2933
+ return new PgPointObject(table, this.config);
2934
+ }
2935
+ };
2936
+ var PgPointObject = class extends PgColumn {
2937
+ static [entityKind] = "PgPointObject";
2938
+ getSQLType() {
2939
+ return "point";
2940
+ }
2941
+ mapFromDriverValue(value) {
2942
+ if (typeof value === "string") {
2943
+ const [x, y] = value.slice(1, -1).split(",");
2944
+ return {
2945
+ x: Number.parseFloat(x),
2946
+ y: Number.parseFloat(y)
2947
+ };
2948
+ }
2949
+ return value;
2950
+ }
2951
+ mapToDriverValue(value) {
2952
+ return `(${value.x},${value.y})`;
2953
+ }
2954
+ };
2955
+ function point(a, b) {
2956
+ const { name, config } = getColumnNameAndConfig(a, b);
2957
+ if (!config?.mode || config.mode === "tuple") return new PgPointTupleBuilder(name);
2958
+ return new PgPointObjectBuilder(name);
2959
+ }
2960
+ //#endregion
2961
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
2962
+ function hexToBytes(hex) {
2963
+ const bytes = [];
2964
+ for (let c = 0; c < hex.length; c += 2) bytes.push(Number.parseInt(hex.slice(c, c + 2), 16));
2965
+ return new Uint8Array(bytes);
2966
+ }
2967
+ function bytesToFloat64(bytes, offset) {
2968
+ const view = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
2969
+ for (let i = 0; i < 8; i++) view.setUint8(i, bytes[offset + i]);
2970
+ return view.getFloat64(0, true);
2971
+ }
2972
+ function parseEWKB(hex) {
2973
+ const bytes = hexToBytes(hex);
2974
+ let offset = 0;
2975
+ const byteOrder = bytes[offset];
2976
+ offset += 1;
2977
+ const view = new DataView(bytes.buffer);
2978
+ const geomType = view.getUint32(offset, byteOrder === 1);
2979
+ offset += 4;
2980
+ if (geomType & 536870912) {
2981
+ view.getUint32(offset, byteOrder === 1);
2982
+ offset += 4;
2983
+ }
2984
+ if ((geomType & 65535) === 1) {
2985
+ const x = bytesToFloat64(bytes, offset);
2986
+ offset += 8;
2987
+ const y = bytesToFloat64(bytes, offset);
2988
+ offset += 8;
2989
+ return [x, y];
2990
+ }
2991
+ throw new Error("Unsupported geometry type");
2992
+ }
2993
+ //#endregion
2994
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
2995
+ var PgGeometryBuilder = class extends PgColumnBuilder {
2996
+ static [entityKind] = "PgGeometryBuilder";
2997
+ constructor(name) {
2998
+ super(name, "array", "PgGeometry");
2999
+ }
3000
+ /** @internal */
3001
+ build(table) {
3002
+ return new PgGeometry(table, this.config);
3003
+ }
3004
+ };
3005
+ var PgGeometry = class extends PgColumn {
3006
+ static [entityKind] = "PgGeometry";
3007
+ getSQLType() {
3008
+ return "geometry(point)";
3009
+ }
3010
+ mapFromDriverValue(value) {
3011
+ return parseEWKB(value);
3012
+ }
3013
+ mapToDriverValue(value) {
3014
+ return `point(${value[0]} ${value[1]})`;
3015
+ }
3016
+ };
3017
+ var PgGeometryObjectBuilder = class extends PgColumnBuilder {
3018
+ static [entityKind] = "PgGeometryObjectBuilder";
3019
+ constructor(name) {
3020
+ super(name, "json", "PgGeometryObject");
3021
+ }
3022
+ /** @internal */
3023
+ build(table) {
3024
+ return new PgGeometryObject(table, this.config);
3025
+ }
3026
+ };
3027
+ var PgGeometryObject = class extends PgColumn {
3028
+ static [entityKind] = "PgGeometryObject";
3029
+ getSQLType() {
3030
+ return "geometry(point)";
3031
+ }
3032
+ mapFromDriverValue(value) {
3033
+ const parsed = parseEWKB(value);
3034
+ return {
3035
+ x: parsed[0],
3036
+ y: parsed[1]
3037
+ };
3038
+ }
3039
+ mapToDriverValue(value) {
3040
+ return `point(${value.x} ${value.y})`;
3041
+ }
3042
+ };
3043
+ function geometry(a, b) {
3044
+ const { name, config } = getColumnNameAndConfig(a, b);
3045
+ if (!config?.mode || config.mode === "tuple") return new PgGeometryBuilder(name);
3046
+ return new PgGeometryObjectBuilder(name);
3047
+ }
3048
+ //#endregion
3049
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/real.js
3050
+ var PgRealBuilder = class extends PgColumnBuilder {
3051
+ static [entityKind] = "PgRealBuilder";
3052
+ constructor(name, length) {
3053
+ super(name, "number", "PgReal");
3054
+ this.config.length = length;
3055
+ }
3056
+ /** @internal */
3057
+ build(table) {
3058
+ return new PgReal(table, this.config);
3059
+ }
3060
+ };
3061
+ var PgReal = class extends PgColumn {
3062
+ static [entityKind] = "PgReal";
3063
+ constructor(table, config) {
3064
+ super(table, config);
3065
+ }
3066
+ getSQLType() {
3067
+ return "real";
3068
+ }
3069
+ mapFromDriverValue = (value) => {
3070
+ if (typeof value === "string") return Number.parseFloat(value);
3071
+ return value;
3072
+ };
3073
+ };
3074
+ function real$1(name) {
3075
+ return new PgRealBuilder(name ?? "");
3076
+ }
3077
+ //#endregion
3078
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/serial.js
3079
+ var PgSerialBuilder = class extends PgColumnBuilder {
3080
+ static [entityKind] = "PgSerialBuilder";
3081
+ constructor(name) {
3082
+ super(name, "number", "PgSerial");
3083
+ this.config.hasDefault = true;
3084
+ this.config.notNull = true;
3085
+ }
3086
+ /** @internal */
3087
+ build(table) {
3088
+ return new PgSerial(table, this.config);
3089
+ }
3090
+ };
3091
+ var PgSerial = class extends PgColumn {
3092
+ static [entityKind] = "PgSerial";
3093
+ getSQLType() {
3094
+ return "serial";
3095
+ }
3096
+ };
3097
+ function serial(name) {
3098
+ return new PgSerialBuilder(name ?? "");
3099
+ }
3100
+ //#endregion
3101
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/smallint.js
3102
+ var PgSmallIntBuilder = class extends PgIntColumnBaseBuilder {
3103
+ static [entityKind] = "PgSmallIntBuilder";
3104
+ constructor(name) {
3105
+ super(name, "number", "PgSmallInt");
3106
+ }
3107
+ /** @internal */
3108
+ build(table) {
3109
+ return new PgSmallInt(table, this.config);
3110
+ }
3111
+ };
3112
+ var PgSmallInt = class extends PgColumn {
3113
+ static [entityKind] = "PgSmallInt";
3114
+ getSQLType() {
3115
+ return "smallint";
3116
+ }
3117
+ mapFromDriverValue = (value) => {
3118
+ if (typeof value === "string") return Number(value);
3119
+ return value;
3120
+ };
3121
+ };
3122
+ function smallint(name) {
3123
+ return new PgSmallIntBuilder(name ?? "");
3124
+ }
3125
+ //#endregion
3126
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/smallserial.js
3127
+ var PgSmallSerialBuilder = class extends PgColumnBuilder {
3128
+ static [entityKind] = "PgSmallSerialBuilder";
3129
+ constructor(name) {
3130
+ super(name, "number", "PgSmallSerial");
3131
+ this.config.hasDefault = true;
3132
+ this.config.notNull = true;
3133
+ }
3134
+ /** @internal */
3135
+ build(table) {
3136
+ return new PgSmallSerial(table, this.config);
3137
+ }
3138
+ };
3139
+ var PgSmallSerial = class extends PgColumn {
3140
+ static [entityKind] = "PgSmallSerial";
3141
+ getSQLType() {
3142
+ return "smallserial";
3143
+ }
3144
+ };
3145
+ function smallserial(name) {
3146
+ return new PgSmallSerialBuilder(name ?? "");
3147
+ }
3148
+ //#endregion
3149
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/text.js
3150
+ var PgTextBuilder = class extends PgColumnBuilder {
3151
+ static [entityKind] = "PgTextBuilder";
3152
+ constructor(name, config) {
3153
+ super(name, "string", "PgText");
3154
+ this.config.enumValues = config.enum;
3155
+ }
3156
+ /** @internal */
3157
+ build(table) {
3158
+ return new PgText(table, this.config);
3159
+ }
3160
+ };
3161
+ var PgText = class extends PgColumn {
3162
+ static [entityKind] = "PgText";
3163
+ enumValues = this.config.enumValues;
3164
+ getSQLType() {
3165
+ return "text";
3166
+ }
3167
+ };
3168
+ function text$1(a, b = {}) {
3169
+ const { name, config } = getColumnNameAndConfig(a, b);
3170
+ return new PgTextBuilder(name, config);
3171
+ }
3172
+ //#endregion
3173
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/time.js
3174
+ var PgTimeBuilder = class extends PgDateColumnBaseBuilder {
3175
+ constructor(name, withTimezone, precision) {
3176
+ super(name, "string", "PgTime");
3177
+ this.withTimezone = withTimezone;
3178
+ this.precision = precision;
3179
+ this.config.withTimezone = withTimezone;
3180
+ this.config.precision = precision;
3181
+ }
3182
+ static [entityKind] = "PgTimeBuilder";
3183
+ /** @internal */
3184
+ build(table) {
3185
+ return new PgTime(table, this.config);
3186
+ }
3187
+ };
3188
+ var PgTime = class extends PgColumn {
3189
+ static [entityKind] = "PgTime";
3190
+ withTimezone;
3191
+ precision;
3192
+ constructor(table, config) {
3193
+ super(table, config);
3194
+ this.withTimezone = config.withTimezone;
3195
+ this.precision = config.precision;
3196
+ }
3197
+ getSQLType() {
3198
+ return `time${this.precision === void 0 ? "" : `(${this.precision})`}${this.withTimezone ? " with time zone" : ""}`;
3199
+ }
3200
+ };
3201
+ function time(a, b = {}) {
3202
+ const { name, config } = getColumnNameAndConfig(a, b);
3203
+ return new PgTimeBuilder(name, config.withTimezone ?? false, config.precision);
3204
+ }
3205
+ //#endregion
3206
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/timestamp.js
3207
+ var PgTimestampBuilder = class extends PgDateColumnBaseBuilder {
3208
+ static [entityKind] = "PgTimestampBuilder";
3209
+ constructor(name, withTimezone, precision) {
3210
+ super(name, "date", "PgTimestamp");
3211
+ this.config.withTimezone = withTimezone;
3212
+ this.config.precision = precision;
3213
+ }
3214
+ /** @internal */
3215
+ build(table) {
3216
+ return new PgTimestamp(table, this.config);
3217
+ }
3218
+ };
3219
+ var PgTimestamp = class extends PgColumn {
3220
+ static [entityKind] = "PgTimestamp";
3221
+ withTimezone;
3222
+ precision;
3223
+ constructor(table, config) {
3224
+ super(table, config);
3225
+ this.withTimezone = config.withTimezone;
3226
+ this.precision = config.precision;
3227
+ }
3228
+ getSQLType() {
3229
+ return `timestamp${this.precision === void 0 ? "" : ` (${this.precision})`}${this.withTimezone ? " with time zone" : ""}`;
3230
+ }
3231
+ mapFromDriverValue(value) {
3232
+ if (typeof value === "string") return new Date(this.withTimezone ? value : value + "+0000");
3233
+ return value;
3234
+ }
3235
+ mapToDriverValue = (value) => {
3236
+ return value.toISOString();
3237
+ };
3238
+ };
3239
+ var PgTimestampStringBuilder = class extends PgDateColumnBaseBuilder {
3240
+ static [entityKind] = "PgTimestampStringBuilder";
3241
+ constructor(name, withTimezone, precision) {
3242
+ super(name, "string", "PgTimestampString");
3243
+ this.config.withTimezone = withTimezone;
3244
+ this.config.precision = precision;
3245
+ }
3246
+ /** @internal */
3247
+ build(table) {
3248
+ return new PgTimestampString(table, this.config);
3249
+ }
3250
+ };
3251
+ var PgTimestampString = class extends PgColumn {
3252
+ static [entityKind] = "PgTimestampString";
3253
+ withTimezone;
3254
+ precision;
3255
+ constructor(table, config) {
3256
+ super(table, config);
3257
+ this.withTimezone = config.withTimezone;
3258
+ this.precision = config.precision;
3259
+ }
3260
+ getSQLType() {
3261
+ return `timestamp${this.precision === void 0 ? "" : `(${this.precision})`}${this.withTimezone ? " with time zone" : ""}`;
3262
+ }
3263
+ mapFromDriverValue(value) {
3264
+ if (typeof value === "string") return value;
3265
+ const shortened = value.toISOString().slice(0, -1).replace("T", " ");
3266
+ if (this.withTimezone) {
3267
+ const offset = value.getTimezoneOffset();
3268
+ return `${shortened}${offset <= 0 ? "+" : "-"}${Math.floor(Math.abs(offset) / 60).toString().padStart(2, "0")}`;
3269
+ }
3270
+ return shortened;
3271
+ }
3272
+ };
3273
+ function timestamp(a, b = {}) {
3274
+ const { name, config } = getColumnNameAndConfig(a, b);
3275
+ if (config?.mode === "string") return new PgTimestampStringBuilder(name, config.withTimezone ?? false, config.precision);
3276
+ return new PgTimestampBuilder(name, config?.withTimezone ?? false, config?.precision);
3277
+ }
3278
+ //#endregion
3279
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/uuid.js
3280
+ var PgUUIDBuilder = class extends PgColumnBuilder {
3281
+ static [entityKind] = "PgUUIDBuilder";
3282
+ constructor(name) {
3283
+ super(name, "string", "PgUUID");
3284
+ }
3285
+ /**
3286
+ * Adds `default gen_random_uuid()` to the column definition.
3287
+ */
3288
+ defaultRandom() {
3289
+ return this.default(sql`gen_random_uuid()`);
3290
+ }
3291
+ /** @internal */
3292
+ build(table) {
3293
+ return new PgUUID(table, this.config);
3294
+ }
3295
+ };
3296
+ var PgUUID = class extends PgColumn {
3297
+ static [entityKind] = "PgUUID";
3298
+ getSQLType() {
3299
+ return "uuid";
3300
+ }
3301
+ };
3302
+ function uuid(name) {
3303
+ return new PgUUIDBuilder(name ?? "");
3304
+ }
3305
+ //#endregion
3306
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/varchar.js
3307
+ var PgVarcharBuilder = class extends PgColumnBuilder {
3308
+ static [entityKind] = "PgVarcharBuilder";
3309
+ constructor(name, config) {
3310
+ super(name, "string", "PgVarchar");
3311
+ this.config.length = config.length;
3312
+ this.config.enumValues = config.enum;
3313
+ }
3314
+ /** @internal */
3315
+ build(table) {
3316
+ return new PgVarchar(table, this.config);
3317
+ }
3318
+ };
3319
+ var PgVarchar = class extends PgColumn {
3320
+ static [entityKind] = "PgVarchar";
3321
+ length = this.config.length;
3322
+ enumValues = this.config.enumValues;
3323
+ getSQLType() {
3324
+ return this.length === void 0 ? `varchar` : `varchar(${this.length})`;
3325
+ }
3326
+ };
3327
+ function varchar(a, b = {}) {
3328
+ const { name, config } = getColumnNameAndConfig(a, b);
3329
+ return new PgVarcharBuilder(name, config);
3330
+ }
3331
+ //#endregion
3332
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
3333
+ var PgBinaryVectorBuilder = class extends PgColumnBuilder {
3334
+ static [entityKind] = "PgBinaryVectorBuilder";
3335
+ constructor(name, config) {
3336
+ super(name, "string", "PgBinaryVector");
3337
+ this.config.dimensions = config.dimensions;
3338
+ }
3339
+ /** @internal */
3340
+ build(table) {
3341
+ return new PgBinaryVector(table, this.config);
3342
+ }
3343
+ };
3344
+ var PgBinaryVector = class extends PgColumn {
3345
+ static [entityKind] = "PgBinaryVector";
3346
+ dimensions = this.config.dimensions;
3347
+ getSQLType() {
3348
+ return `bit(${this.dimensions})`;
3349
+ }
3350
+ };
3351
+ function bit(a, b) {
3352
+ const { name, config } = getColumnNameAndConfig(a, b);
3353
+ return new PgBinaryVectorBuilder(name, config);
3354
+ }
3355
+ //#endregion
3356
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
3357
+ var PgHalfVectorBuilder = class extends PgColumnBuilder {
3358
+ static [entityKind] = "PgHalfVectorBuilder";
3359
+ constructor(name, config) {
3360
+ super(name, "array", "PgHalfVector");
3361
+ this.config.dimensions = config.dimensions;
3362
+ }
3363
+ /** @internal */
3364
+ build(table) {
3365
+ return new PgHalfVector(table, this.config);
3366
+ }
3367
+ };
3368
+ var PgHalfVector = class extends PgColumn {
3369
+ static [entityKind] = "PgHalfVector";
3370
+ dimensions = this.config.dimensions;
3371
+ getSQLType() {
3372
+ return `halfvec(${this.dimensions})`;
3373
+ }
3374
+ mapToDriverValue(value) {
3375
+ return JSON.stringify(value);
3376
+ }
3377
+ mapFromDriverValue(value) {
3378
+ return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
3379
+ }
3380
+ };
3381
+ function halfvec(a, b) {
3382
+ const { name, config } = getColumnNameAndConfig(a, b);
3383
+ return new PgHalfVectorBuilder(name, config);
3384
+ }
3385
+ //#endregion
3386
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
3387
+ var PgSparseVectorBuilder = class extends PgColumnBuilder {
3388
+ static [entityKind] = "PgSparseVectorBuilder";
3389
+ constructor(name, config) {
3390
+ super(name, "string", "PgSparseVector");
3391
+ this.config.dimensions = config.dimensions;
3392
+ }
3393
+ /** @internal */
3394
+ build(table) {
3395
+ return new PgSparseVector(table, this.config);
3396
+ }
3397
+ };
3398
+ var PgSparseVector = class extends PgColumn {
3399
+ static [entityKind] = "PgSparseVector";
3400
+ dimensions = this.config.dimensions;
3401
+ getSQLType() {
3402
+ return `sparsevec(${this.dimensions})`;
3403
+ }
3404
+ };
3405
+ function sparsevec(a, b) {
3406
+ const { name, config } = getColumnNameAndConfig(a, b);
3407
+ return new PgSparseVectorBuilder(name, config);
3408
+ }
3409
+ //#endregion
3410
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
3411
+ var PgVectorBuilder = class extends PgColumnBuilder {
3412
+ static [entityKind] = "PgVectorBuilder";
3413
+ constructor(name, config) {
3414
+ super(name, "array", "PgVector");
3415
+ this.config.dimensions = config.dimensions;
3416
+ }
3417
+ /** @internal */
3418
+ build(table) {
3419
+ return new PgVector(table, this.config);
3420
+ }
3421
+ };
3422
+ var PgVector = class extends PgColumn {
3423
+ static [entityKind] = "PgVector";
3424
+ dimensions = this.config.dimensions;
3425
+ getSQLType() {
3426
+ return `vector(${this.dimensions})`;
3427
+ }
3428
+ mapToDriverValue(value) {
3429
+ return JSON.stringify(value);
3430
+ }
3431
+ mapFromDriverValue(value) {
3432
+ return value.slice(1, -1).split(",").map((v) => Number.parseFloat(v));
3433
+ }
3434
+ };
3435
+ function vector(a, b) {
3436
+ const { name, config } = getColumnNameAndConfig(a, b);
3437
+ return new PgVectorBuilder(name, config);
3438
+ }
3439
+ //#endregion
3440
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/columns/all.js
3441
+ function getPgColumnBuilders() {
3442
+ return {
3443
+ bigint,
3444
+ bigserial,
3445
+ boolean,
3446
+ char,
3447
+ cidr,
3448
+ customType: customType$1,
3449
+ date,
3450
+ doublePrecision,
3451
+ inet,
3452
+ integer: integer$1,
3453
+ interval,
3454
+ json,
3455
+ jsonb,
3456
+ line,
3457
+ macaddr,
3458
+ macaddr8,
3459
+ numeric: numeric$1,
3460
+ point,
3461
+ geometry,
3462
+ real: real$1,
3463
+ serial,
3464
+ smallint,
3465
+ smallserial,
3466
+ text: text$1,
3467
+ time,
3468
+ timestamp,
3469
+ uuid,
3470
+ varchar,
3471
+ bit,
3472
+ halfvec,
3473
+ sparsevec,
3474
+ vector
3475
+ };
3476
+ }
3477
+ //#endregion
3478
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/table.js
3479
+ const InlineForeignKeys$1 = Symbol.for("drizzle:PgInlineForeignKeys");
3480
+ const EnableRLS = Symbol.for("drizzle:EnableRLS");
3481
+ var PgTable = class extends Table {
3482
+ static [entityKind] = "PgTable";
3483
+ /** @internal */
3484
+ static Symbol = Object.assign({}, Table.Symbol, {
3485
+ InlineForeignKeys: InlineForeignKeys$1,
3486
+ EnableRLS
3487
+ });
3488
+ /**@internal */
3489
+ [InlineForeignKeys$1] = [];
3490
+ /** @internal */
3491
+ [EnableRLS] = false;
3492
+ /** @internal */
3493
+ [Table.Symbol.ExtraConfigBuilder] = void 0;
3494
+ /** @internal */
3495
+ [Table.Symbol.ExtraConfigColumns] = {};
3496
+ };
3497
+ function pgTableWithSchema(name, columns, extraConfig, schema, baseName = name) {
3498
+ const rawTable = new PgTable(name, schema, baseName);
3499
+ const parsedColumns = typeof columns === "function" ? columns(getPgColumnBuilders()) : columns;
3500
+ const builtColumns = Object.fromEntries(Object.entries(parsedColumns).map(([name2, colBuilderBase]) => {
3501
+ const colBuilder = colBuilderBase;
3502
+ colBuilder.setName(name2);
3503
+ const column = colBuilder.build(rawTable);
3504
+ rawTable[InlineForeignKeys$1].push(...colBuilder.buildForeignKeys(column, rawTable));
3505
+ return [name2, column];
3506
+ }));
3507
+ const builtColumnsForExtraConfig = Object.fromEntries(Object.entries(parsedColumns).map(([name2, colBuilderBase]) => {
3508
+ const colBuilder = colBuilderBase;
3509
+ colBuilder.setName(name2);
3510
+ return [name2, colBuilder.buildExtraConfigColumn(rawTable)];
3511
+ }));
3512
+ const table = Object.assign(rawTable, builtColumns);
3513
+ table[Table.Symbol.Columns] = builtColumns;
3514
+ table[Table.Symbol.ExtraConfigColumns] = builtColumnsForExtraConfig;
3515
+ if (extraConfig) table[PgTable.Symbol.ExtraConfigBuilder] = extraConfig;
3516
+ return Object.assign(table, { enableRLS: () => {
3517
+ table[PgTable.Symbol.EnableRLS] = true;
3518
+ return table;
3519
+ } });
3520
+ }
3521
+ const pgTable = (name, columns, extraConfig) => {
3522
+ return pgTableWithSchema(name, columns, extraConfig, void 0);
3523
+ };
3524
+ //#endregion
3525
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/pg-core/indexes.js
3526
+ var IndexBuilderOn$1 = class {
3527
+ constructor(unique, name) {
3528
+ this.unique = unique;
3529
+ this.name = name;
3530
+ }
3531
+ static [entityKind] = "PgIndexBuilderOn";
3532
+ on(...columns) {
3533
+ return new IndexBuilder$1(columns.map((it) => {
3534
+ if (is(it, SQL)) return it;
3535
+ it = it;
3536
+ const clonedIndexedColumn = new IndexedColumn(it.name, !!it.keyAsName, it.columnType, it.indexConfig);
3537
+ it.indexConfig = JSON.parse(JSON.stringify(it.defaultConfig));
3538
+ return clonedIndexedColumn;
3539
+ }), this.unique, false, this.name);
3540
+ }
3541
+ onOnly(...columns) {
3542
+ return new IndexBuilder$1(columns.map((it) => {
3543
+ if (is(it, SQL)) return it;
3544
+ it = it;
3545
+ const clonedIndexedColumn = new IndexedColumn(it.name, !!it.keyAsName, it.columnType, it.indexConfig);
3546
+ it.indexConfig = it.defaultConfig;
3547
+ return clonedIndexedColumn;
3548
+ }), this.unique, true, this.name);
3549
+ }
3550
+ /**
3551
+ * Specify what index method to use. Choices are `btree`, `hash`, `gist`, `spgist`, `gin`, `brin`, or user-installed access methods like `bloom`. The default method is `btree.
3552
+ *
3553
+ * If you have the `pg_vector` extension installed in your database, you can use the `hnsw` and `ivfflat` options, which are predefined types.
3554
+ *
3555
+ * **You can always specify any string you want in the method, in case Drizzle doesn't have it natively in its types**
3556
+ *
3557
+ * @param method The name of the index method to be used
3558
+ * @param columns
3559
+ * @returns
3560
+ */
3561
+ using(method, ...columns) {
3562
+ return new IndexBuilder$1(columns.map((it) => {
3563
+ if (is(it, SQL)) return it;
3564
+ it = it;
3565
+ const clonedIndexedColumn = new IndexedColumn(it.name, !!it.keyAsName, it.columnType, it.indexConfig);
3566
+ it.indexConfig = JSON.parse(JSON.stringify(it.defaultConfig));
3567
+ return clonedIndexedColumn;
3568
+ }), this.unique, true, this.name, method);
3569
+ }
3570
+ };
3571
+ var IndexBuilder$1 = class {
3572
+ static [entityKind] = "PgIndexBuilder";
3573
+ /** @internal */
3574
+ config;
3575
+ constructor(columns, unique, only, name, method = "btree") {
3576
+ this.config = {
3577
+ name,
3578
+ columns,
3579
+ unique,
3580
+ only,
3581
+ method
3582
+ };
3583
+ }
3584
+ concurrently() {
3585
+ this.config.concurrently = true;
3586
+ return this;
3587
+ }
3588
+ with(obj) {
3589
+ this.config.with = obj;
3590
+ return this;
3591
+ }
3592
+ where(condition) {
3593
+ this.config.where = condition;
3594
+ return this;
3595
+ }
3596
+ /** @internal */
3597
+ build(table) {
3598
+ return new Index$1(this.config, table);
3599
+ }
3600
+ };
3601
+ var Index$1 = class {
3602
+ static [entityKind] = "PgIndex";
3603
+ config;
3604
+ constructor(config, table) {
3605
+ this.config = {
3606
+ ...config,
3607
+ table
3608
+ };
3609
+ }
3610
+ };
3611
+ function index$1(name) {
3612
+ return new IndexBuilderOn$1(false, name);
3613
+ }
3614
+ //#endregion
3615
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
3616
+ var ForeignKeyBuilder = class {
3617
+ static [entityKind] = "SQLiteForeignKeyBuilder";
3618
+ /** @internal */
3619
+ reference;
3620
+ /** @internal */
3621
+ _onUpdate;
3622
+ /** @internal */
3623
+ _onDelete;
3624
+ constructor(config, actions) {
3625
+ this.reference = () => {
3626
+ const { name, columns, foreignColumns } = config();
3627
+ return {
3628
+ name,
3629
+ columns,
3630
+ foreignTable: foreignColumns[0].table,
3631
+ foreignColumns
3632
+ };
3633
+ };
3634
+ if (actions) {
3635
+ this._onUpdate = actions.onUpdate;
3636
+ this._onDelete = actions.onDelete;
3637
+ }
3638
+ }
3639
+ onUpdate(action) {
3640
+ this._onUpdate = action;
3641
+ return this;
3642
+ }
3643
+ onDelete(action) {
3644
+ this._onDelete = action;
3645
+ return this;
3646
+ }
3647
+ /** @internal */
3648
+ build(table) {
3649
+ return new ForeignKey(table, this);
3650
+ }
3651
+ };
3652
+ var ForeignKey = class {
3653
+ constructor(table, builder) {
3654
+ this.table = table;
3655
+ this.reference = builder.reference;
3656
+ this.onUpdate = builder._onUpdate;
3657
+ this.onDelete = builder._onDelete;
3658
+ }
3659
+ static [entityKind] = "SQLiteForeignKey";
3660
+ reference;
3661
+ onUpdate;
3662
+ onDelete;
3663
+ getName() {
3664
+ const { name, columns, foreignColumns } = this.reference();
3665
+ const columnNames = columns.map((column) => column.name);
3666
+ const foreignColumnNames = foreignColumns.map((column) => column.name);
3667
+ const chunks = [
3668
+ this.table[TableName],
3669
+ ...columnNames,
3670
+ foreignColumns[0].table[TableName],
3671
+ ...foreignColumnNames
3672
+ ];
3673
+ return name ?? `${chunks.join("_")}_fk`;
3674
+ }
3675
+ };
3676
+ //#endregion
3677
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
3678
+ function uniqueKeyName(table, columns) {
3679
+ return `${table[TableName]}_${columns.join("_")}_unique`;
3680
+ }
3681
+ //#endregion
3682
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/common.js
3683
+ var SQLiteColumnBuilder = class extends ColumnBuilder {
3684
+ static [entityKind] = "SQLiteColumnBuilder";
3685
+ foreignKeyConfigs = [];
3686
+ references(ref, actions = {}) {
3687
+ this.foreignKeyConfigs.push({
3688
+ ref,
3689
+ actions
3690
+ });
3691
+ return this;
3692
+ }
3693
+ unique(name) {
3694
+ this.config.isUnique = true;
3695
+ this.config.uniqueName = name;
3696
+ return this;
3697
+ }
3698
+ generatedAlwaysAs(as, config) {
3699
+ this.config.generated = {
3700
+ as,
3701
+ type: "always",
3702
+ mode: config?.mode ?? "virtual"
3703
+ };
3704
+ return this;
3705
+ }
3706
+ /** @internal */
3707
+ buildForeignKeys(column, table) {
3708
+ return this.foreignKeyConfigs.map(({ ref, actions }) => {
3709
+ return ((ref2, actions2) => {
3710
+ const builder = new ForeignKeyBuilder(() => {
3711
+ const foreignColumn = ref2();
3712
+ return {
3713
+ columns: [column],
3714
+ foreignColumns: [foreignColumn]
3715
+ };
3716
+ });
3717
+ if (actions2.onUpdate) builder.onUpdate(actions2.onUpdate);
3718
+ if (actions2.onDelete) builder.onDelete(actions2.onDelete);
3719
+ return builder.build(table);
3720
+ })(ref, actions);
3721
+ });
3722
+ }
3723
+ };
3724
+ var SQLiteColumn = class extends Column {
3725
+ constructor(table, config) {
3726
+ if (!config.uniqueName) config.uniqueName = uniqueKeyName(table, [config.name]);
3727
+ super(table, config);
3728
+ this.table = table;
3729
+ }
3730
+ static [entityKind] = "SQLiteColumn";
3731
+ };
3732
+ //#endregion
3733
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/blob.js
3734
+ var SQLiteBigIntBuilder = class extends SQLiteColumnBuilder {
3735
+ static [entityKind] = "SQLiteBigIntBuilder";
3736
+ constructor(name) {
3737
+ super(name, "bigint", "SQLiteBigInt");
3738
+ }
3739
+ /** @internal */
3740
+ build(table) {
3741
+ return new SQLiteBigInt(table, this.config);
3742
+ }
3743
+ };
3744
+ var SQLiteBigInt = class extends SQLiteColumn {
3745
+ static [entityKind] = "SQLiteBigInt";
3746
+ getSQLType() {
3747
+ return "blob";
3748
+ }
3749
+ mapFromDriverValue(value) {
3750
+ if (typeof Buffer !== "undefined" && Buffer.from) {
3751
+ 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);
3752
+ return BigInt(buf.toString("utf8"));
3753
+ }
3754
+ return BigInt(textDecoder.decode(value));
3755
+ }
3756
+ mapToDriverValue(value) {
3757
+ return Buffer.from(value.toString());
3758
+ }
3759
+ };
3760
+ var SQLiteBlobJsonBuilder = class extends SQLiteColumnBuilder {
3761
+ static [entityKind] = "SQLiteBlobJsonBuilder";
3762
+ constructor(name) {
3763
+ super(name, "json", "SQLiteBlobJson");
3764
+ }
3765
+ /** @internal */
3766
+ build(table) {
3767
+ return new SQLiteBlobJson(table, this.config);
3768
+ }
3769
+ };
3770
+ var SQLiteBlobJson = class extends SQLiteColumn {
3771
+ static [entityKind] = "SQLiteBlobJson";
3772
+ getSQLType() {
3773
+ return "blob";
3774
+ }
3775
+ mapFromDriverValue(value) {
3776
+ if (typeof Buffer !== "undefined" && Buffer.from) {
3777
+ 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);
3778
+ return JSON.parse(buf.toString("utf8"));
3779
+ }
3780
+ return JSON.parse(textDecoder.decode(value));
3781
+ }
3782
+ mapToDriverValue(value) {
3783
+ return Buffer.from(JSON.stringify(value));
3784
+ }
3785
+ };
3786
+ var SQLiteBlobBufferBuilder = class extends SQLiteColumnBuilder {
3787
+ static [entityKind] = "SQLiteBlobBufferBuilder";
3788
+ constructor(name) {
3789
+ super(name, "buffer", "SQLiteBlobBuffer");
3790
+ }
3791
+ /** @internal */
3792
+ build(table) {
3793
+ return new SQLiteBlobBuffer(table, this.config);
3794
+ }
3795
+ };
3796
+ var SQLiteBlobBuffer = class extends SQLiteColumn {
3797
+ static [entityKind] = "SQLiteBlobBuffer";
3798
+ mapFromDriverValue(value) {
3799
+ if (Buffer.isBuffer(value)) return value;
3800
+ return Buffer.from(value);
3801
+ }
3802
+ getSQLType() {
3803
+ return "blob";
3804
+ }
3805
+ };
3806
+ function blob(a, b) {
3807
+ const { name, config } = getColumnNameAndConfig(a, b);
3808
+ if (config?.mode === "json") return new SQLiteBlobJsonBuilder(name);
3809
+ if (config?.mode === "bigint") return new SQLiteBigIntBuilder(name);
3810
+ return new SQLiteBlobBufferBuilder(name);
3811
+ }
3812
+ //#endregion
3813
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/custom.js
3814
+ var SQLiteCustomColumnBuilder = class extends SQLiteColumnBuilder {
3815
+ static [entityKind] = "SQLiteCustomColumnBuilder";
3816
+ constructor(name, fieldConfig, customTypeParams) {
3817
+ super(name, "custom", "SQLiteCustomColumn");
3818
+ this.config.fieldConfig = fieldConfig;
3819
+ this.config.customTypeParams = customTypeParams;
3820
+ }
3821
+ /** @internal */
3822
+ build(table) {
3823
+ return new SQLiteCustomColumn(table, this.config);
3824
+ }
3825
+ };
3826
+ var SQLiteCustomColumn = class extends SQLiteColumn {
3827
+ static [entityKind] = "SQLiteCustomColumn";
3828
+ sqlName;
3829
+ mapTo;
3830
+ mapFrom;
3831
+ constructor(table, config) {
3832
+ super(table, config);
3833
+ this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
3834
+ this.mapTo = config.customTypeParams.toDriver;
3835
+ this.mapFrom = config.customTypeParams.fromDriver;
3836
+ }
3837
+ getSQLType() {
3838
+ return this.sqlName;
3839
+ }
3840
+ mapFromDriverValue(value) {
3841
+ return typeof this.mapFrom === "function" ? this.mapFrom(value) : value;
3842
+ }
3843
+ mapToDriverValue(value) {
3844
+ return typeof this.mapTo === "function" ? this.mapTo(value) : value;
3845
+ }
3846
+ };
3847
+ function customType(customTypeParams) {
3848
+ return (a, b) => {
3849
+ const { name, config } = getColumnNameAndConfig(a, b);
3850
+ return new SQLiteCustomColumnBuilder(name, config, customTypeParams);
3851
+ };
3852
+ }
3853
+ //#endregion
3854
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/integer.js
3855
+ var SQLiteBaseIntegerBuilder = class extends SQLiteColumnBuilder {
3856
+ static [entityKind] = "SQLiteBaseIntegerBuilder";
3857
+ constructor(name, dataType, columnType) {
3858
+ super(name, dataType, columnType);
3859
+ this.config.autoIncrement = false;
3860
+ }
3861
+ primaryKey(config) {
3862
+ if (config?.autoIncrement) this.config.autoIncrement = true;
3863
+ this.config.hasDefault = true;
3864
+ return super.primaryKey();
3865
+ }
3866
+ };
3867
+ var SQLiteBaseInteger = class extends SQLiteColumn {
3868
+ static [entityKind] = "SQLiteBaseInteger";
3869
+ autoIncrement = this.config.autoIncrement;
3870
+ getSQLType() {
3871
+ return "integer";
3872
+ }
3873
+ };
3874
+ var SQLiteIntegerBuilder = class extends SQLiteBaseIntegerBuilder {
3875
+ static [entityKind] = "SQLiteIntegerBuilder";
3876
+ constructor(name) {
3877
+ super(name, "number", "SQLiteInteger");
3878
+ }
3879
+ build(table) {
3880
+ return new SQLiteInteger(table, this.config);
3881
+ }
3882
+ };
3883
+ var SQLiteInteger = class extends SQLiteBaseInteger {
3884
+ static [entityKind] = "SQLiteInteger";
3885
+ };
3886
+ var SQLiteTimestampBuilder = class extends SQLiteBaseIntegerBuilder {
3887
+ static [entityKind] = "SQLiteTimestampBuilder";
3888
+ constructor(name, mode) {
3889
+ super(name, "date", "SQLiteTimestamp");
3890
+ this.config.mode = mode;
3891
+ }
3892
+ /**
3893
+ * @deprecated Use `default()` with your own expression instead.
3894
+ *
3895
+ * Adds `DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer))` to the column, which is the current epoch timestamp in milliseconds.
3896
+ */
3897
+ defaultNow() {
3898
+ return this.default(sql`(cast((julianday('now') - 2440587.5)*86400000 as integer))`);
3899
+ }
3900
+ build(table) {
3901
+ return new SQLiteTimestamp(table, this.config);
3902
+ }
3903
+ };
3904
+ var SQLiteTimestamp = class extends SQLiteBaseInteger {
3905
+ static [entityKind] = "SQLiteTimestamp";
3906
+ mode = this.config.mode;
3907
+ mapFromDriverValue(value) {
3908
+ if (this.config.mode === "timestamp") return /* @__PURE__ */ new Date(value * 1e3);
3909
+ return new Date(value);
3910
+ }
3911
+ mapToDriverValue(value) {
3912
+ const unix = value.getTime();
3913
+ if (this.config.mode === "timestamp") return Math.floor(unix / 1e3);
3914
+ return unix;
3915
+ }
3916
+ };
3917
+ var SQLiteBooleanBuilder = class extends SQLiteBaseIntegerBuilder {
3918
+ static [entityKind] = "SQLiteBooleanBuilder";
3919
+ constructor(name, mode) {
3920
+ super(name, "boolean", "SQLiteBoolean");
3921
+ this.config.mode = mode;
3922
+ }
3923
+ build(table) {
3924
+ return new SQLiteBoolean(table, this.config);
3925
+ }
3926
+ };
3927
+ var SQLiteBoolean = class extends SQLiteBaseInteger {
3928
+ static [entityKind] = "SQLiteBoolean";
3929
+ mode = this.config.mode;
3930
+ mapFromDriverValue(value) {
3931
+ return Number(value) === 1;
3932
+ }
3933
+ mapToDriverValue(value) {
3934
+ return value ? 1 : 0;
3935
+ }
3936
+ };
3937
+ function integer(a, b) {
3938
+ const { name, config } = getColumnNameAndConfig(a, b);
3939
+ if (config?.mode === "timestamp" || config?.mode === "timestamp_ms") return new SQLiteTimestampBuilder(name, config.mode);
3940
+ if (config?.mode === "boolean") return new SQLiteBooleanBuilder(name, config.mode);
3941
+ return new SQLiteIntegerBuilder(name);
3942
+ }
3943
+ //#endregion
3944
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
3945
+ var SQLiteNumericBuilder = class extends SQLiteColumnBuilder {
3946
+ static [entityKind] = "SQLiteNumericBuilder";
3947
+ constructor(name) {
3948
+ super(name, "string", "SQLiteNumeric");
3949
+ }
3950
+ /** @internal */
3951
+ build(table) {
3952
+ return new SQLiteNumeric(table, this.config);
3953
+ }
3954
+ };
3955
+ var SQLiteNumeric = class extends SQLiteColumn {
3956
+ static [entityKind] = "SQLiteNumeric";
3957
+ mapFromDriverValue(value) {
3958
+ if (typeof value === "string") return value;
3959
+ return String(value);
3960
+ }
3961
+ getSQLType() {
3962
+ return "numeric";
3963
+ }
3964
+ };
3965
+ var SQLiteNumericNumberBuilder = class extends SQLiteColumnBuilder {
3966
+ static [entityKind] = "SQLiteNumericNumberBuilder";
3967
+ constructor(name) {
3968
+ super(name, "number", "SQLiteNumericNumber");
3969
+ }
3970
+ /** @internal */
3971
+ build(table) {
3972
+ return new SQLiteNumericNumber(table, this.config);
3973
+ }
3974
+ };
3975
+ var SQLiteNumericNumber = class extends SQLiteColumn {
3976
+ static [entityKind] = "SQLiteNumericNumber";
3977
+ mapFromDriverValue(value) {
3978
+ if (typeof value === "number") return value;
3979
+ return Number(value);
3980
+ }
3981
+ mapToDriverValue = String;
3982
+ getSQLType() {
3983
+ return "numeric";
3984
+ }
3985
+ };
3986
+ var SQLiteNumericBigIntBuilder = class extends SQLiteColumnBuilder {
3987
+ static [entityKind] = "SQLiteNumericBigIntBuilder";
3988
+ constructor(name) {
3989
+ super(name, "bigint", "SQLiteNumericBigInt");
3990
+ }
3991
+ /** @internal */
3992
+ build(table) {
3993
+ return new SQLiteNumericBigInt(table, this.config);
3994
+ }
3995
+ };
3996
+ var SQLiteNumericBigInt = class extends SQLiteColumn {
3997
+ static [entityKind] = "SQLiteNumericBigInt";
3998
+ mapFromDriverValue = BigInt;
3999
+ mapToDriverValue = String;
4000
+ getSQLType() {
4001
+ return "numeric";
4002
+ }
4003
+ };
4004
+ function numeric(a, b) {
4005
+ const { name, config } = getColumnNameAndConfig(a, b);
4006
+ const mode = config?.mode;
4007
+ return mode === "number" ? new SQLiteNumericNumberBuilder(name) : mode === "bigint" ? new SQLiteNumericBigIntBuilder(name) : new SQLiteNumericBuilder(name);
4008
+ }
4009
+ //#endregion
4010
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/real.js
4011
+ var SQLiteRealBuilder = class extends SQLiteColumnBuilder {
4012
+ static [entityKind] = "SQLiteRealBuilder";
4013
+ constructor(name) {
4014
+ super(name, "number", "SQLiteReal");
4015
+ }
4016
+ /** @internal */
4017
+ build(table) {
4018
+ return new SQLiteReal(table, this.config);
4019
+ }
4020
+ };
4021
+ var SQLiteReal = class extends SQLiteColumn {
4022
+ static [entityKind] = "SQLiteReal";
4023
+ getSQLType() {
4024
+ return "real";
4025
+ }
4026
+ };
4027
+ function real(name) {
4028
+ return new SQLiteRealBuilder(name ?? "");
4029
+ }
4030
+ //#endregion
4031
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/text.js
4032
+ var SQLiteTextBuilder = class extends SQLiteColumnBuilder {
4033
+ static [entityKind] = "SQLiteTextBuilder";
4034
+ constructor(name, config) {
4035
+ super(name, "string", "SQLiteText");
4036
+ this.config.enumValues = config.enum;
4037
+ this.config.length = config.length;
4038
+ }
4039
+ /** @internal */
4040
+ build(table) {
4041
+ return new SQLiteText(table, this.config);
4042
+ }
4043
+ };
4044
+ var SQLiteText = class extends SQLiteColumn {
4045
+ static [entityKind] = "SQLiteText";
4046
+ enumValues = this.config.enumValues;
4047
+ length = this.config.length;
4048
+ constructor(table, config) {
4049
+ super(table, config);
4050
+ }
4051
+ getSQLType() {
4052
+ return `text${this.config.length ? `(${this.config.length})` : ""}`;
4053
+ }
4054
+ };
4055
+ var SQLiteTextJsonBuilder = class extends SQLiteColumnBuilder {
4056
+ static [entityKind] = "SQLiteTextJsonBuilder";
4057
+ constructor(name) {
4058
+ super(name, "json", "SQLiteTextJson");
4059
+ }
4060
+ /** @internal */
4061
+ build(table) {
4062
+ return new SQLiteTextJson(table, this.config);
4063
+ }
4064
+ };
4065
+ var SQLiteTextJson = class extends SQLiteColumn {
4066
+ static [entityKind] = "SQLiteTextJson";
4067
+ getSQLType() {
4068
+ return "text";
4069
+ }
4070
+ mapFromDriverValue(value) {
4071
+ return JSON.parse(value);
4072
+ }
4073
+ mapToDriverValue(value) {
4074
+ return JSON.stringify(value);
4075
+ }
4076
+ };
4077
+ function text(a, b = {}) {
4078
+ const { name, config } = getColumnNameAndConfig(a, b);
4079
+ if (config.mode === "json") return new SQLiteTextJsonBuilder(name);
4080
+ return new SQLiteTextBuilder(name, config);
4081
+ }
4082
+ //#endregion
4083
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/columns/all.js
4084
+ function getSQLiteColumnBuilders() {
4085
+ return {
4086
+ blob,
4087
+ customType,
4088
+ integer,
4089
+ numeric,
4090
+ real,
4091
+ text
4092
+ };
4093
+ }
4094
+ //#endregion
4095
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/table.js
4096
+ const InlineForeignKeys = Symbol.for("drizzle:SQLiteInlineForeignKeys");
4097
+ var SQLiteTable = class extends Table {
4098
+ static [entityKind] = "SQLiteTable";
4099
+ /** @internal */
4100
+ static Symbol = Object.assign({}, Table.Symbol, { InlineForeignKeys });
4101
+ /** @internal */
4102
+ [Table.Symbol.Columns];
4103
+ /** @internal */
4104
+ [InlineForeignKeys] = [];
4105
+ /** @internal */
4106
+ [Table.Symbol.ExtraConfigBuilder] = void 0;
4107
+ };
4108
+ function sqliteTableBase(name, columns, extraConfig, schema, baseName = name) {
4109
+ const rawTable = new SQLiteTable(name, schema, baseName);
4110
+ const parsedColumns = typeof columns === "function" ? columns(getSQLiteColumnBuilders()) : columns;
4111
+ const builtColumns = Object.fromEntries(Object.entries(parsedColumns).map(([name2, colBuilderBase]) => {
4112
+ const colBuilder = colBuilderBase;
4113
+ colBuilder.setName(name2);
4114
+ const column = colBuilder.build(rawTable);
4115
+ rawTable[InlineForeignKeys].push(...colBuilder.buildForeignKeys(column, rawTable));
4116
+ return [name2, column];
4117
+ }));
4118
+ const table = Object.assign(rawTable, builtColumns);
4119
+ table[Table.Symbol.Columns] = builtColumns;
4120
+ table[Table.Symbol.ExtraConfigColumns] = builtColumns;
4121
+ if (extraConfig) table[SQLiteTable.Symbol.ExtraConfigBuilder] = extraConfig;
4122
+ return table;
4123
+ }
4124
+ const sqliteTable = (name, columns, extraConfig) => {
4125
+ return sqliteTableBase(name, columns, extraConfig);
4126
+ };
4127
+ //#endregion
4128
+ //#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@opentelemetry+api@1.9.1_@types+better-sqlite3@7.6.13_@types+pg@8.20_77911661b3ede76946c974aead4d265f/node_modules/drizzle-orm/sqlite-core/indexes.js
4129
+ var IndexBuilderOn = class {
4130
+ constructor(name, unique) {
4131
+ this.name = name;
4132
+ this.unique = unique;
4133
+ }
4134
+ static [entityKind] = "SQLiteIndexBuilderOn";
4135
+ on(...columns) {
4136
+ return new IndexBuilder(this.name, columns, this.unique);
4137
+ }
4138
+ };
4139
+ var IndexBuilder = class {
4140
+ static [entityKind] = "SQLiteIndexBuilder";
4141
+ /** @internal */
4142
+ config;
4143
+ constructor(name, columns, unique) {
4144
+ this.config = {
4145
+ name,
4146
+ columns,
4147
+ unique,
4148
+ where: void 0
4149
+ };
4150
+ }
4151
+ /**
4152
+ * Condition for partial index.
4153
+ */
4154
+ where(condition) {
4155
+ this.config.where = condition;
4156
+ return this;
4157
+ }
4158
+ /** @internal */
4159
+ build(table) {
4160
+ return new Index(this.config, table);
4161
+ }
4162
+ };
4163
+ var Index = class {
4164
+ static [entityKind] = "SQLiteIndex";
4165
+ config;
4166
+ constructor(config, table) {
4167
+ this.config = {
4168
+ ...config,
4169
+ table
4170
+ };
4171
+ }
4172
+ };
4173
+ function index(name) {
4174
+ return new IndexBuilderOn(name, false);
4175
+ }
4176
+ function getDatabaseHandle() {
4177
+ throw new Error("Database not initialized. Call initDatabase() before getDb().");
4178
+ }
4179
+ const users = pgTable("users", {
4180
+ id: text$1("id").primaryKey(),
4181
+ name: text$1("name").notNull(),
4182
+ email: text$1("email").notNull().unique(),
4183
+ emailVerified: boolean("email_verified").notNull(),
4184
+ image: text$1("image"),
4185
+ preferences: jsonb("preferences"),
4186
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
4187
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
4188
+ });
4189
+ const usersSqlite = sqliteTable("users", {
4190
+ id: text("id").primaryKey(),
4191
+ name: text("name").notNull(),
4192
+ email: text("email").notNull().unique(),
4193
+ emailVerified: integer("email_verified", { mode: "boolean" }).notNull(),
4194
+ image: text("image"),
4195
+ preferences: text("preferences", { mode: "json" }),
4196
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
4197
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
4198
+ });
4199
+ const authAccounts = pgTable("accounts", {
4200
+ id: text$1("id").primaryKey(),
4201
+ accountId: text$1("account_id").notNull(),
4202
+ providerId: text$1("provider_id").notNull(),
4203
+ userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
4204
+ accessToken: text$1("access_token"),
4205
+ refreshToken: text$1("refresh_token"),
4206
+ idToken: text$1("id_token"),
4207
+ accessTokenExpiresAt: timestamp("access_token_expires_at", { withTimezone: true }),
4208
+ refreshTokenExpiresAt: timestamp("refresh_token_expires_at", { withTimezone: true }),
4209
+ scope: text$1("scope"),
4210
+ password: text$1("password"),
4211
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
4212
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
4213
+ }, (table) => [index$1("account_user_id_idx").on(table.userId)]);
4214
+ const authAccountsSqlite = sqliteTable("accounts", {
4215
+ id: text("id").primaryKey(),
4216
+ accountId: text("account_id").notNull(),
4217
+ providerId: text("provider_id").notNull(),
4218
+ userId: text("user_id").notNull().references(() => usersSqlite.id, { onDelete: "cascade" }),
4219
+ accessToken: text("access_token"),
4220
+ refreshToken: text("refresh_token"),
4221
+ idToken: text("id_token"),
4222
+ accessTokenExpiresAt: integer("access_token_expires_at", { mode: "timestamp_ms" }),
4223
+ refreshTokenExpiresAt: integer("refresh_token_expires_at", { mode: "timestamp_ms" }),
4224
+ scope: text("scope"),
4225
+ password: text("password"),
4226
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
4227
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
4228
+ }, (table) => [index("account_user_id_idx").on(table.userId)]);
4229
+ const authDeviceCodes = pgTable("device_auth_codes", {
4230
+ id: text$1("id").primaryKey(),
4231
+ deviceCode: text$1("device_code").notNull(),
4232
+ userCode: text$1("user_code").notNull(),
4233
+ userId: text$1("user_id"),
4234
+ expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
4235
+ status: text$1("status").notNull(),
4236
+ lastPolledAt: timestamp("last_polled_at", { withTimezone: true }),
4237
+ pollingInterval: integer$1("polling_interval"),
4238
+ clientId: text$1("client_id"),
4239
+ scope: text$1("scope")
4240
+ });
4241
+ const authDeviceCodesSqlite = sqliteTable("device_auth_codes", {
4242
+ id: text("id").primaryKey(),
4243
+ deviceCode: text("device_code").notNull(),
4244
+ userCode: text("user_code").notNull(),
4245
+ userId: text("user_id"),
4246
+ expiresAt: integer("expires_at", { mode: "timestamp_ms" }).notNull(),
4247
+ status: text("status").notNull(),
4248
+ lastPolledAt: integer("last_polled_at", { mode: "timestamp_ms" }),
4249
+ pollingInterval: integer("polling_interval"),
4250
+ clientId: text("client_id"),
4251
+ scope: text("scope")
4252
+ });
4253
+ const authJwks = pgTable("jwks", {
4254
+ id: text$1("id").primaryKey(),
4255
+ publicKey: text$1("public_key").notNull(),
4256
+ privateKey: text$1("private_key").notNull(),
4257
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
4258
+ expiresAt: timestamp("expires_at", { withTimezone: true })
4259
+ });
4260
+ const authJwksSqlite = sqliteTable("jwks", {
4261
+ id: text("id").primaryKey(),
4262
+ publicKey: text("public_key").notNull(),
4263
+ privateKey: text("private_key").notNull(),
4264
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
4265
+ expiresAt: integer("expires_at", { mode: "timestamp_ms" })
4266
+ });
4267
+ const authSessions = pgTable("sessions", {
4268
+ id: text$1("id").primaryKey(),
4269
+ expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
4270
+ token: text$1("token").notNull().unique(),
4271
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
4272
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
4273
+ ipAddress: text$1("ip_address"),
4274
+ userAgent: text$1("user_agent"),
4275
+ userId: text$1("user_id").notNull().references(() => users.id, { onDelete: "cascade" })
4276
+ }, (table) => [index$1("session_user_id_idx").on(table.userId)]);
4277
+ const authSessionsSqlite = sqliteTable("sessions", {
4278
+ id: text("id").primaryKey(),
4279
+ expiresAt: integer("expires_at", { mode: "timestamp_ms" }).notNull(),
4280
+ token: text("token").notNull().unique(),
4281
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
4282
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
4283
+ ipAddress: text("ip_address"),
4284
+ userAgent: text("user_agent"),
4285
+ userId: text("user_id").notNull().references(() => usersSqlite.id, { onDelete: "cascade" })
4286
+ }, (table) => [index("session_user_id_idx").on(table.userId)]);
4287
+ const authVerifications = pgTable("verification", {
4288
+ id: text$1("id").primaryKey(),
4289
+ identifier: text$1("identifier").notNull(),
4290
+ value: text$1("value").notNull(),
4291
+ expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
4292
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
4293
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
4294
+ }, (table) => [index$1("verification_identifier_idx").on(table.identifier)]);
4295
+ const authVerificationsSqlite = sqliteTable("verification", {
4296
+ id: text("id").primaryKey(),
4297
+ identifier: text("identifier").notNull(),
4298
+ value: text("value").notNull(),
4299
+ expiresAt: integer("expires_at", { mode: "timestamp_ms" }).notNull(),
4300
+ createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
4301
+ updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull()
4302
+ }, (table) => [index("verification_identifier_idx").on(table.identifier)]);
4303
+ //#endregion
1314
4304
  //#region ../../packages/platform-database/dist/schema/auth/index.mjs
1315
4305
  function authSchemaFor(dialect = getDatabaseHandle().dialect) {
1316
4306
  if (dialect === "sqlite") return {
@@ -25127,43 +28117,43 @@ var tt = [
25127
28117
  },
25128
28118
  {
25129
28119
  name: "cat",
25130
- load: async () => (await import("./cat-TSFMZVYS-CH5_fwTr.mjs")).catCommand
28120
+ load: async () => (await import("./cat-TSFMZVYS-xDkdXP7N.mjs")).catCommand
25131
28121
  },
25132
28122
  {
25133
28123
  name: "printf",
25134
- load: async () => (await import("./printf-TWGXF445-Dj6F3iWo.mjs")).printfCommand
28124
+ load: async () => (await import("./printf-TWGXF445-CtvDPfv-.mjs")).printfCommand
25135
28125
  },
25136
28126
  {
25137
28127
  name: "ls",
25138
- load: async () => (await import("./ls-ZJGQER7M-C8j4Tvbv.mjs")).lsCommand
28128
+ load: async () => (await import("./ls-ZJGQER7M-BnKqqleV.mjs")).lsCommand
25139
28129
  },
25140
28130
  {
25141
28131
  name: "mkdir",
25142
- load: async () => (await import("./mkdir-MEPGZOB6-Jxa36lH-.mjs")).mkdirCommand
28132
+ load: async () => (await import("./mkdir-MEPGZOB6-BnYYgVxv.mjs")).mkdirCommand
25143
28133
  },
25144
28134
  {
25145
28135
  name: "rmdir",
25146
- load: async () => (await import("./rmdir-OC4ZLPYA-BTIoCXcX.mjs")).rmdirCommand
28136
+ load: async () => (await import("./rmdir-OC4ZLPYA-DmK6bDKx.mjs")).rmdirCommand
25147
28137
  },
25148
28138
  {
25149
28139
  name: "touch",
25150
- load: async () => (await import("./touch-UA33VN3N-sh2TXNDe.mjs")).touchCommand
28140
+ load: async () => (await import("./touch-UA33VN3N-BMhGO9VC.mjs")).touchCommand
25151
28141
  },
25152
28142
  {
25153
28143
  name: "rm",
25154
- load: async () => (await import("./rm-SSGETQVQ-DOU8kqH1.mjs")).rmCommand
28144
+ load: async () => (await import("./rm-SSGETQVQ-CkwXZzCb.mjs")).rmCommand
25155
28145
  },
25156
28146
  {
25157
28147
  name: "cp",
25158
- load: async () => (await import("./cp-BISAAS7A-BEWIC1ep.mjs")).cpCommand
28148
+ load: async () => (await import("./cp-BISAAS7A-BHfTBk1S.mjs")).cpCommand
25159
28149
  },
25160
28150
  {
25161
28151
  name: "mv",
25162
- load: async () => (await import("./mv-W5BIQ646-C6iMhYnr.mjs")).mvCommand
28152
+ load: async () => (await import("./mv-W5BIQ646-CDQ60965.mjs")).mvCommand
25163
28153
  },
25164
28154
  {
25165
28155
  name: "ln",
25166
- load: async () => (await import("./ln-4LGSXXGD-BgxP6RU_.mjs")).lnCommand
28156
+ load: async () => (await import("./ln-4LGSXXGD-Or1qYweN.mjs")).lnCommand
25167
28157
  },
25168
28158
  {
25169
28159
  name: "chmod",
@@ -25179,15 +28169,15 @@ var tt = [
25179
28169
  },
25180
28170
  {
25181
28171
  name: "head",
25182
- load: async () => (await import("./head-442HYESI-C9ip0oZ6.mjs")).headCommand
28172
+ load: async () => (await import("./head-442HYESI-W6FegHpm.mjs")).headCommand
25183
28173
  },
25184
28174
  {
25185
28175
  name: "tail",
25186
- load: async () => (await import("./tail-R4PCA2C4-CBXSleY_.mjs")).tailCommand
28176
+ load: async () => (await import("./tail-R4PCA2C4-BopvFWyi.mjs")).tailCommand
25187
28177
  },
25188
28178
  {
25189
28179
  name: "wc",
25190
- load: async () => (await import("./wc-LF7NU4LA-HonUXgc3.mjs")).wcCommand
28180
+ load: async () => (await import("./wc-LF7NU4LA-CnEel3wT.mjs")).wcCommand
25191
28181
  },
25192
28182
  {
25193
28183
  name: "stat",
@@ -25195,95 +28185,95 @@ var tt = [
25195
28185
  },
25196
28186
  {
25197
28187
  name: "grep",
25198
- load: async () => (await import("./grep-V3LQVMRQ-T3Pk0g-u.mjs")).grepCommand
28188
+ load: async () => (await import("./grep-V3LQVMRQ-C7va-nQQ.mjs")).grepCommand
25199
28189
  },
25200
28190
  {
25201
28191
  name: "fgrep",
25202
- load: async () => (await import("./grep-V3LQVMRQ-T3Pk0g-u.mjs")).fgrepCommand
28192
+ load: async () => (await import("./grep-V3LQVMRQ-C7va-nQQ.mjs")).fgrepCommand
25203
28193
  },
25204
28194
  {
25205
28195
  name: "egrep",
25206
- load: async () => (await import("./grep-V3LQVMRQ-T3Pk0g-u.mjs")).egrepCommand
28196
+ load: async () => (await import("./grep-V3LQVMRQ-C7va-nQQ.mjs")).egrepCommand
25207
28197
  },
25208
28198
  {
25209
28199
  name: "rg",
25210
- load: async () => (await import("./rg-S4FXYXWB-CCi5yOZW.mjs")).rgCommand
28200
+ load: async () => (await import("./rg-S4FXYXWB-DixtanJa.mjs")).rgCommand
25211
28201
  },
25212
28202
  {
25213
28203
  name: "sed",
25214
- load: async () => (await import("./sed-S5UIK574-Z6_JbTpH.mjs")).sedCommand
28204
+ load: async () => (await import("./sed-S5UIK574-tnYwSWkL.mjs")).sedCommand
25215
28205
  },
25216
28206
  {
25217
28207
  name: "awk",
25218
- load: async () => (await import("./awk2-LA3USKJP-CKefzQCd.mjs")).awkCommand2
28208
+ load: async () => (await import("./awk2-LA3USKJP-C4BD4eVg.mjs")).awkCommand2
25219
28209
  },
25220
28210
  {
25221
28211
  name: "sort",
25222
- load: async () => (await import("./sort-SW2YEO5B-BFOkdC51.mjs")).sortCommand
28212
+ load: async () => (await import("./sort-SW2YEO5B-CFc2Uu_A.mjs")).sortCommand
25223
28213
  },
25224
28214
  {
25225
28215
  name: "uniq",
25226
- load: async () => (await import("./uniq-XSIZR6PB-BPhswb-D.mjs")).uniqCommand
28216
+ load: async () => (await import("./uniq-XSIZR6PB-D0HICyAj.mjs")).uniqCommand
25227
28217
  },
25228
28218
  {
25229
28219
  name: "comm",
25230
- load: async () => (await import("./comm-VV2LDX2J-CRUrgndw.mjs")).commCommand
28220
+ load: async () => (await import("./comm-VV2LDX2J-DpNYwHST.mjs")).commCommand
25231
28221
  },
25232
28222
  {
25233
28223
  name: "cut",
25234
- load: async () => (await import("./cut-OKARJCCV-Cq3QNcN-.mjs")).cutCommand
28224
+ load: async () => (await import("./cut-OKARJCCV-CgfLOcVz.mjs")).cutCommand
25235
28225
  },
25236
28226
  {
25237
28227
  name: "paste",
25238
- load: async () => (await import("./paste-7JC6S4DX-KVzg2jll.mjs")).pasteCommand
28228
+ load: async () => (await import("./paste-7JC6S4DX-u6xdoWS3.mjs")).pasteCommand
25239
28229
  },
25240
28230
  {
25241
28231
  name: "tr",
25242
- load: async () => (await import("./tr-36LHWFRQ-D_2pGQp9.mjs")).trCommand
28232
+ load: async () => (await import("./tr-36LHWFRQ-DjY4IsPF.mjs")).trCommand
25243
28233
  },
25244
28234
  {
25245
28235
  name: "rev",
25246
- load: async () => (await import("./rev-5EHFX4EJ-Dcpld4RG.mjs")).rev
28236
+ load: async () => (await import("./rev-5EHFX4EJ-C41ieMgj.mjs")).rev
25247
28237
  },
25248
28238
  {
25249
28239
  name: "nl",
25250
- load: async () => (await import("./nl-WSDW7I4O-BTmNrRjW.mjs")).nl
28240
+ load: async () => (await import("./nl-WSDW7I4O-C8m5GQ1G.mjs")).nl
25251
28241
  },
25252
28242
  {
25253
28243
  name: "fold",
25254
- load: async () => (await import("./fold-4TQNYMSW-BNAAhi3M.mjs")).fold
28244
+ load: async () => (await import("./fold-4TQNYMSW-DOzlyQla.mjs")).fold
25255
28245
  },
25256
28246
  {
25257
28247
  name: "expand",
25258
- load: async () => (await import("./expand-JSPG6VOP-3UquG3Wf.mjs")).expand
28248
+ load: async () => (await import("./expand-JSPG6VOP-BbtpP_uq.mjs")).expand
25259
28249
  },
25260
28250
  {
25261
28251
  name: "unexpand",
25262
- load: async () => (await import("./unexpand-CADSA4VO-C5t4tamX.mjs")).unexpand
28252
+ load: async () => (await import("./unexpand-CADSA4VO-Byi4s0o8.mjs")).unexpand
25263
28253
  },
25264
28254
  {
25265
28255
  name: "strings",
25266
- load: async () => (await import("./strings-6WDHLGMX-CGaZuwJ8.mjs")).strings
28256
+ load: async () => (await import("./strings-6WDHLGMX-Cs9B6z8x.mjs")).strings
25267
28257
  },
25268
28258
  {
25269
28259
  name: "split",
25270
- load: async () => (await import("./split-4KKZZXXE-DtBxVEO8.mjs")).split
28260
+ load: async () => (await import("./split-4KKZZXXE-DMjoEV89.mjs")).split
25271
28261
  },
25272
28262
  {
25273
28263
  name: "column",
25274
- load: async () => (await import("./column-XT6UFXNQ-DxJuuCZO.mjs")).column
28264
+ load: async () => (await import("./column-XT6UFXNQ-B3nI2VCJ.mjs")).column
25275
28265
  },
25276
28266
  {
25277
28267
  name: "join",
25278
- load: async () => (await import("./join-TBRGI3LQ-C1FTmc74.mjs")).join
28268
+ load: async () => (await import("./join-TBRGI3LQ-CC2R6oH8.mjs")).join
25279
28269
  },
25280
28270
  {
25281
28271
  name: "tee",
25282
- load: async () => (await import("./tee-YUZ2FKCJ-CtrtrXSY.mjs")).teeCommand
28272
+ load: async () => (await import("./tee-YUZ2FKCJ-DiFGWp4G.mjs")).teeCommand
25283
28273
  },
25284
28274
  {
25285
28275
  name: "find",
25286
- load: async () => (await import("./find-INTH3OLC-C0oDj6Aa.mjs")).findCommand
28276
+ load: async () => (await import("./find-INTH3OLC-DorC8D7k.mjs")).findCommand
25287
28277
  },
25288
28278
  {
25289
28279
  name: "basename",
@@ -25295,19 +28285,19 @@ var tt = [
25295
28285
  },
25296
28286
  {
25297
28287
  name: "tree",
25298
- load: async () => (await import("./tree-YLD52CNT-BIC19isL.mjs")).treeCommand
28288
+ load: async () => (await import("./tree-YLD52CNT-N-vPBfJO.mjs")).treeCommand
25299
28289
  },
25300
28290
  {
25301
28291
  name: "du",
25302
- load: async () => (await import("./du-572XNP42-CyPYCo2M.mjs")).duCommand
28292
+ load: async () => (await import("./du-572XNP42-D6bH6wn1.mjs")).duCommand
25303
28293
  },
25304
28294
  {
25305
28295
  name: "env",
25306
- load: async () => (await import("./env-36M5BO7M-Ds8s_D_j.mjs")).envCommand
28296
+ load: async () => (await import("./env-36M5BO7M-a702Fh7w.mjs")).envCommand
25307
28297
  },
25308
28298
  {
25309
28299
  name: "printenv",
25310
- load: async () => (await import("./env-36M5BO7M-Ds8s_D_j.mjs")).printenvCommand
28300
+ load: async () => (await import("./env-36M5BO7M-a702Fh7w.mjs")).printenvCommand
25311
28301
  },
25312
28302
  {
25313
28303
  name: "alias",
@@ -25323,7 +28313,7 @@ var tt = [
25323
28313
  },
25324
28314
  {
25325
28315
  name: "xargs",
25326
- load: async () => (await import("./xargs-MGZPH7AX-w6s3TO73.mjs")).xargsCommand
28316
+ load: async () => (await import("./xargs-MGZPH7AX-BvI6LK8I.mjs")).xargsCommand
25327
28317
  },
25328
28318
  {
25329
28319
  name: "true",
@@ -25339,23 +28329,23 @@ var tt = [
25339
28329
  },
25340
28330
  {
25341
28331
  name: "bash",
25342
- load: async () => (await import("./bash-YZ33HQZQ-DcfJU6Ux.mjs")).bashCommand
28332
+ load: async () => (await import("./bash-YZ33HQZQ-Y0B3uk-_.mjs")).bashCommand
25343
28333
  },
25344
28334
  {
25345
28335
  name: "sh",
25346
- load: async () => (await import("./bash-YZ33HQZQ-DcfJU6Ux.mjs")).shCommand
28336
+ load: async () => (await import("./bash-YZ33HQZQ-Y0B3uk-_.mjs")).shCommand
25347
28337
  },
25348
28338
  {
25349
28339
  name: "jq",
25350
- load: async () => (await import("./jq-4XLYLOS5-f2AdWe3I.mjs")).jqCommand
28340
+ load: async () => (await import("./jq-4XLYLOS5-QOU61AvR.mjs")).jqCommand
25351
28341
  },
25352
28342
  {
25353
28343
  name: "base64",
25354
- load: async () => (await import("./base64-C2AIWVNC-Bw6COidZ.mjs")).base64Command
28344
+ load: async () => (await import("./base64-C2AIWVNC-ChQw62cb.mjs")).base64Command
25355
28345
  },
25356
28346
  {
25357
28347
  name: "diff",
25358
- load: async () => (await import("./diff-MWJFIG7X-dQTRnWAk.mjs")).diffCommand
28348
+ load: async () => (await import("./diff-MWJFIG7X-CJdAnnog.mjs")).diffCommand
25359
28349
  },
25360
28350
  {
25361
28351
  name: "date",
@@ -25363,15 +28353,15 @@ var tt = [
25363
28353
  },
25364
28354
  {
25365
28355
  name: "sleep",
25366
- load: async () => (await import("./sleep-X22JJINO-7H7IWY2o.mjs")).sleepCommand
28356
+ load: async () => (await import("./sleep-X22JJINO-D3SDAJt4.mjs")).sleepCommand
25367
28357
  },
25368
28358
  {
25369
28359
  name: "timeout",
25370
- load: async () => (await import("./timeout-YDCRSLPQ-HSD3vHsz.mjs")).timeoutCommand
28360
+ load: async () => (await import("./timeout-YDCRSLPQ-DC-fdp1t.mjs")).timeoutCommand
25371
28361
  },
25372
28362
  {
25373
28363
  name: "time",
25374
- load: async () => (await import("./time-D4LNBSWX-BU6J60I4.mjs")).timeCommand
28364
+ load: async () => (await import("./time-D4LNBSWX-CTjUJUms.mjs")).timeCommand
25375
28365
  },
25376
28366
  {
25377
28367
  name: "seq",
@@ -25379,19 +28369,19 @@ var tt = [
25379
28369
  },
25380
28370
  {
25381
28371
  name: "expr",
25382
- load: async () => (await import("./expr-5JAACS4X-B-xIQg5e.mjs")).exprCommand
28372
+ load: async () => (await import("./expr-5JAACS4X-Cp_dIjlS.mjs")).exprCommand
25383
28373
  },
25384
28374
  {
25385
28375
  name: "md5sum",
25386
- load: async () => (await import("./md5sum-SPU24VSG-BVd8_jGG.mjs")).md5sumCommand
28376
+ load: async () => (await import("./md5sum-SPU24VSG-BusAHdrK.mjs")).md5sumCommand
25387
28377
  },
25388
28378
  {
25389
28379
  name: "sha1sum",
25390
- load: async () => (await import("./sha1sum-2PTOAFR6-DE6FG5_u.mjs")).sha1sumCommand
28380
+ load: async () => (await import("./sha1sum-2PTOAFR6-BP6dQ8V1.mjs")).sha1sumCommand
25391
28381
  },
25392
28382
  {
25393
28383
  name: "sha256sum",
25394
- load: async () => (await import("./sha256sum-NS7D3IXX-C6E752Cf.mjs")).sha256sumCommand
28384
+ load: async () => (await import("./sha256sum-NS7D3IXX-BJzrJC0M.mjs")).sha256sumCommand
25395
28385
  },
25396
28386
  {
25397
28387
  name: "file",
@@ -25399,11 +28389,11 @@ var tt = [
25399
28389
  },
25400
28390
  {
25401
28391
  name: "html-to-markdown",
25402
- load: async () => (await import("./html-to-markdown-JW4MSQZO-DAeOlJb4.mjs")).htmlToMarkdownCommand
28392
+ load: async () => (await import("./html-to-markdown-JW4MSQZO-VzjAEp3C.mjs")).htmlToMarkdownCommand
25403
28393
  },
25404
28394
  {
25405
28395
  name: "help",
25406
- load: async () => (await import("./help-HZ6M2CKN-7klk39e-.mjs")).helpCommand
28396
+ load: async () => (await import("./help-HZ6M2CKN-B2mT_z-L.mjs")).helpCommand
25407
28397
  },
25408
28398
  {
25409
28399
  name: "which",
@@ -25411,7 +28401,7 @@ var tt = [
25411
28401
  },
25412
28402
  {
25413
28403
  name: "tac",
25414
- load: async () => (await import("./tac-2STMMJYW-D0B5neHF.mjs")).tac
28404
+ load: async () => (await import("./tac-2STMMJYW-ceGFflzJ.mjs")).tac
25415
28405
  },
25416
28406
  {
25417
28407
  name: "hostname",
@@ -25423,49 +28413,49 @@ var tt = [
25423
28413
  },
25424
28414
  {
25425
28415
  name: "od",
25426
- load: async () => (await import("./od-WOKFDJTP-nBx_t02N.mjs")).od
28416
+ load: async () => (await import("./od-WOKFDJTP-KIq-UMwl.mjs")).od
25427
28417
  },
25428
28418
  {
25429
28419
  name: "gzip",
25430
- load: async () => (await import("./gzip-O5ASJAFY-CQEhgQhi.mjs")).gzipCommand
28420
+ load: async () => (await import("./gzip-O5ASJAFY-D25F69KM.mjs")).gzipCommand
25431
28421
  },
25432
28422
  {
25433
28423
  name: "gunzip",
25434
- load: async () => (await import("./gzip-O5ASJAFY-CQEhgQhi.mjs")).gunzipCommand
28424
+ load: async () => (await import("./gzip-O5ASJAFY-D25F69KM.mjs")).gunzipCommand
25435
28425
  },
25436
28426
  {
25437
28427
  name: "zcat",
25438
- load: async () => (await import("./gzip-O5ASJAFY-CQEhgQhi.mjs")).zcatCommand
28428
+ load: async () => (await import("./gzip-O5ASJAFY-D25F69KM.mjs")).zcatCommand
25439
28429
  }
25440
28430
  ];
25441
28431
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (tt.push({
25442
28432
  name: "tar",
25443
- load: async () => (await import("./tar-STHHZTZ6-3cydfi4Z.mjs")).tarCommand
28433
+ load: async () => (await import("./tar-STHHZTZ6-QbV1N_D9.mjs")).tarCommand
25444
28434
  }), tt.push({
25445
28435
  name: "yq",
25446
- load: async () => (await import("./yq-4QJW3EQG-DgunUMhp.mjs")).yqCommand
28436
+ load: async () => (await import("./yq-4QJW3EQG-CYt1C3ZB.mjs")).yqCommand
25447
28437
  }), tt.push({
25448
28438
  name: "xan",
25449
- load: async () => (await import("./xan-Y6WF3IRG-DKE1_HEE.mjs")).xanCommand
28439
+ load: async () => (await import("./xan-Y6WF3IRG-BEGK5ruS.mjs")).xanCommand
25450
28440
  }), tt.push({
25451
28441
  name: "sqlite3",
25452
- load: async () => (await import("./sqlite3-CGOEFJAO-BGLep8e5.mjs")).sqlite3Command
28442
+ load: async () => (await import("./sqlite3-CGOEFJAO-BXYj3z3Q.mjs")).sqlite3Command
25453
28443
  }));
25454
28444
  var Yt = [];
25455
28445
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (Yt.push({
25456
28446
  name: "python3",
25457
- load: async () => (await import("./python3-POMOR4OA-CBslj-gJ.mjs")).python3Command
28447
+ load: async () => (await import("./python3-POMOR4OA-CYRVTFwe.mjs")).python3Command
25458
28448
  }), Yt.push({
25459
28449
  name: "python",
25460
- load: async () => (await import("./python3-POMOR4OA-CBslj-gJ.mjs")).pythonCommand
28450
+ load: async () => (await import("./python3-POMOR4OA-CYRVTFwe.mjs")).pythonCommand
25461
28451
  }));
25462
28452
  var Qt = [];
25463
28453
  (typeof __BROWSER__ > "u" || !__BROWSER__) && (Qt.push({
25464
28454
  name: "js-exec",
25465
- load: async () => (await import("./js-exec-N5KEZBH7-J0fE5u49.mjs")).jsExecCommand
28455
+ load: async () => (await import("./js-exec-N5KEZBH7-CrHAJDpT.mjs")).jsExecCommand
25466
28456
  }), Qt.push({
25467
28457
  name: "node",
25468
- load: async () => (await import("./js-exec-N5KEZBH7-J0fE5u49.mjs")).nodeStubCommand
28458
+ load: async () => (await import("./js-exec-N5KEZBH7-CrHAJDpT.mjs")).nodeStubCommand
25469
28459
  }));
25470
28460
  new TextEncoder();
25471
28461
  Object.freeze({
@@ -26024,7 +29014,7 @@ async function setCredentialInstanceSecret(options) {
26024
29014
  label: options.label ?? null,
26025
29015
  isDefault,
26026
29016
  authKind: "api_key",
26027
- ciphertext: encryptCredentialPayload(JSON.stringify(options.value)),
29017
+ ciphertext: encryptCredentialPayload$1(JSON.stringify(options.value)),
26028
29018
  connectionId: null,
26029
29019
  createdAt: now,
26030
29020
  updatedAt: now
@@ -34418,7 +37408,7 @@ InvalidRequestError.errorCode, InvalidClientError.errorCode, InvalidGrantError.e
34418
37408
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34419
37409
  module.exports = isexe;
34420
37410
  isexe.sync = sync;
34421
- var fs$3 = __require("fs");
37411
+ var fs$2 = __require("fs");
34422
37412
  function checkPathExt(path, options) {
34423
37413
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
34424
37414
  if (!pathext) return true;
@@ -34435,12 +37425,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34435
37425
  return checkPathExt(path, options);
34436
37426
  }
34437
37427
  function isexe(path, options, cb) {
34438
- fs$3.stat(path, function(er, stat) {
37428
+ fs$2.stat(path, function(er, stat) {
34439
37429
  cb(er, er ? false : checkStat(stat, path, options));
34440
37430
  });
34441
37431
  }
34442
37432
  function sync(path, options) {
34443
- return checkStat(fs$3.statSync(path), path, options);
37433
+ return checkStat(fs$2.statSync(path), path, options);
34444
37434
  }
34445
37435
  }));
34446
37436
  //#endregion
@@ -34448,14 +37438,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34448
37438
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34449
37439
  module.exports = isexe;
34450
37440
  isexe.sync = sync;
34451
- var fs$2 = __require("fs");
37441
+ var fs$1 = __require("fs");
34452
37442
  function isexe(path, options, cb) {
34453
- fs$2.stat(path, function(er, stat) {
37443
+ fs$1.stat(path, function(er, stat) {
34454
37444
  cb(er, er ? false : checkStat(stat, options));
34455
37445
  });
34456
37446
  }
34457
37447
  function sync(path, options) {
34458
- return checkStat(fs$2.statSync(path), options);
37448
+ return checkStat(fs$1.statSync(path), options);
34459
37449
  }
34460
37450
  function checkStat(stat, options) {
34461
37451
  return stat.isFile() && checkMode(stat, options);
@@ -34670,16 +37660,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
34670
37660
  //#endregion
34671
37661
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
34672
37662
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
34673
- const fs$1 = __require("fs");
37663
+ const fs = __require("fs");
34674
37664
  const shebangCommand = require_shebang_command();
34675
37665
  function readShebang(command) {
34676
37666
  const size = 150;
34677
37667
  const buffer = Buffer.alloc(size);
34678
37668
  let fd;
34679
37669
  try {
34680
- fd = fs$1.openSync(command, "r");
34681
- fs$1.readSync(fd, buffer, 0, size, 0);
34682
- fs$1.closeSync(fd);
37670
+ fd = fs.openSync(command, "r");
37671
+ fs.readSync(fd, buffer, 0, size, 0);
37672
+ fs.closeSync(fd);
34683
37673
  } catch (e) {}
34684
37674
  return shebangCommand(buffer.toString());
34685
37675
  }
@@ -48580,8 +51570,8 @@ async function createOrganizationWithHosting(deps, userId, name, preferredSlug)
48580
51570
  storage: {
48581
51571
  bucket: provisionedStorage.bucket,
48582
51572
  endpoint: provisionedStorage.endpoint,
48583
- accessKeyIdCiphertext: encryptCredentialPayload$1(provisionedStorage.accessKeyId),
48584
- secretAccessKeyCiphertext: encryptCredentialPayload$1(provisionedStorage.secretAccessKey),
51573
+ accessKeyIdCiphertext: encryptCredentialPayload(provisionedStorage.accessKeyId),
51574
+ secretAccessKeyCiphertext: encryptCredentialPayload(provisionedStorage.secretAccessKey),
48585
51575
  region: provisionedStorage.region ?? null,
48586
51576
  forcePathStyle: provisionedStorage.forcePathStyle ?? null
48587
51577
  }
@@ -48622,7 +51612,7 @@ function createOrganizationHandler(deps) {
48622
51612
  const membership = await createOrganizationWithHosting(deps, user.id, parsed.data.name, parsed.data.slug);
48623
51613
  return c.json(CreateOrganizationResponseSchema.parse({ organization: mapUserOrganization(membership) }), 201);
48624
51614
  } catch (error) {
48625
- if (error instanceof OrganizationSlugTakenError) return c.json(ErrorResponseSchema.parse(organizationSlugErrorBody(error)), 409);
51615
+ if (error instanceof OrganizationSlugTakenError$1) return c.json(ErrorResponseSchema.parse(organizationSlugErrorBody(error)), 409);
48626
51616
  if (error instanceof ZodError) return c.json(ErrorResponseSchema.parse(organizationSlugErrorBody(error)), 400);
48627
51617
  throw error;
48628
51618
  }
@@ -50575,4 +53565,4 @@ async function startPlatformServer(platformConfig, hooks = {}) {
50575
53565
  //#endregion
50576
53566
  export { __commonJSMin as C, r1 as S, __toESM as T, o as _, c as a, b$1 as b, a$1 as c, c$1 as d, r as f, e as g, u as h, n$1 as i, d$1 as l, b as m, n, p as o, r$1 as p, i as r, x as s, startPlatformServer as t, x$1 as u, r$3 as v, __require as w, I1 as x, h as y };
50577
53567
 
50578
- //# sourceMappingURL=start-jG7mVE-h.mjs.map
53568
+ //# sourceMappingURL=start-DmsuxtBI.mjs.map