better-supabase 0.61.0 → 0.62.0

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 (503) hide show
  1. package/dist/{account-parts-DtC5voD1.d.ts → account-parts-C3mte2Y7.d.ts} +1 -1
  2. package/dist/{adapter-base-DGiRWzEo.js → adapter-base-DXF0tNJJ.js} +1 -1
  3. package/dist/{agents-3wTmHYZr.d.ts → agents-CRTcqx6K.d.ts} +2 -2
  4. package/dist/{ai-schedules-CtxaSWA1.d.ts → ai-schedules-DdoefSrp.d.ts} +1 -1
  5. package/dist/ai-sdk/agents/index.d.ts +1 -1
  6. package/dist/ai-sdk/workflow/index.d.ts +1 -1
  7. package/dist/{api-Q23GAwx1.js → api-C5GmF1ZU.js} +1 -1
  8. package/dist/{api-pGkHTqH6.d.ts → api-D4gZPhMd.d.ts} +1 -1
  9. package/dist/{app-tables-BHoeMC9w.d.ts → app-tables-C0w_j1sJ.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +3 -3
  11. package/dist/astro/index.js +3 -3
  12. package/dist/{audit-actions-DC-AtyWB.d.ts → audit-actions-be1sy-Vh.d.ts} +1 -0
  13. package/dist/{authorization-glyinWcf.d.ts → authorization-DKxttkik.d.ts} +1 -1
  14. package/dist/better-result/index.d.ts +2 -2
  15. package/dist/{bind-B-NW7-Fd.d.ts → bind-DiQyvXnj.d.ts} +4 -4
  16. package/dist/{block-env-BN4cyqTj.d.ts → block-env-aG5V88tR.d.ts} +4 -4
  17. package/dist/{block-tables-CkbJsNys.d.ts → block-tables-lpnW9xMs.d.ts} +1 -1
  18. package/dist/blocks/access-requests/index.d.ts +1 -1
  19. package/dist/blocks/accounting/index.d.ts +1 -1
  20. package/dist/blocks/acknowledgements/index.d.ts +1 -1
  21. package/dist/blocks/activities/index.d.ts +2 -2
  22. package/dist/blocks/advisories/index.d.ts +1 -1
  23. package/dist/blocks/agent-checkout/index.d.ts +1 -1
  24. package/dist/blocks/agents/index.d.ts +1 -1
  25. package/dist/blocks/ai-cache/index.d.ts +1 -1
  26. package/dist/blocks/ai-chat/index.d.ts +1 -1
  27. package/dist/blocks/ai-evals/index.d.ts +1 -1
  28. package/dist/blocks/ai-files/index.d.ts +1 -1
  29. package/dist/blocks/ai-guardrails/index.d.ts +1 -1
  30. package/dist/blocks/ai-keys/index.d.ts +1 -1
  31. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  32. package/dist/blocks/announcements/index.d.ts +4 -4
  33. package/dist/blocks/api-keys/index.d.ts +1 -1
  34. package/dist/blocks/appraisals/index.d.ts +1 -1
  35. package/dist/blocks/approvals/index.d.ts +1 -1
  36. package/dist/blocks/assets/index.d.ts +2 -2
  37. package/dist/blocks/assignment/index.d.ts +1 -1
  38. package/dist/blocks/attachments/index.d.ts +5 -5
  39. package/dist/blocks/audit/index.d.ts +2 -2
  40. package/dist/blocks/automations/index.d.ts +3 -3
  41. package/dist/blocks/banking/index.d.ts +1 -1
  42. package/dist/blocks/billable-time/index.d.ts +1 -1
  43. package/dist/blocks/billing/index.d.ts +3 -3
  44. package/dist/blocks/bookings/index.d.ts +2 -2
  45. package/dist/blocks/bulk-actions/index.d.ts +2 -2
  46. package/dist/blocks/calendar/index.d.ts +3 -3
  47. package/dist/blocks/care/index.d.ts +27 -27
  48. package/dist/blocks/care-plans/index.d.ts +3 -3
  49. package/dist/blocks/cases/index.d.ts +3 -3
  50. package/dist/blocks/catalog/index.d.ts +2 -2
  51. package/dist/blocks/channels/index.d.ts +1 -1
  52. package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
  53. package/dist/blocks/cms/index.d.ts +5 -5
  54. package/dist/blocks/collaboration/index.d.ts +6 -6
  55. package/dist/blocks/collections/index.d.ts +1 -1
  56. package/dist/blocks/comments/index.d.ts +2 -2
  57. package/dist/blocks/commerce/index.d.ts +5 -5
  58. package/dist/blocks/commissions/index.d.ts +1 -1
  59. package/dist/blocks/compliance/index.d.ts +1 -1
  60. package/dist/blocks/connectors/index.d.ts +1 -1
  61. package/dist/blocks/consents/index.d.ts +2 -2
  62. package/dist/blocks/contacts/index.d.ts +2 -2
  63. package/dist/blocks/content/index.d.ts +2 -2
  64. package/dist/blocks/contracts/index.d.ts +1 -1
  65. package/dist/blocks/courses/index.d.ts +2 -2
  66. package/dist/blocks/created-by/index.d.ts +2 -2
  67. package/dist/blocks/crm/index.d.ts +17 -17
  68. package/dist/blocks/custom-fields/index.d.ts +1 -1
  69. package/dist/blocks/dam/index.d.ts +2 -2
  70. package/dist/blocks/data-lifecycle/index.d.ts +2 -2
  71. package/dist/blocks/deadlines/index.d.ts +1 -1
  72. package/dist/blocks/deals/index.d.ts +1 -1
  73. package/dist/blocks/dispatch/index.d.ts +2 -2
  74. package/dist/blocks/document-templates/index.d.ts +2 -2
  75. package/dist/blocks/documents/index.d.ts +1 -1
  76. package/dist/blocks/domains/index.d.ts +1 -1
  77. package/dist/blocks/donations/index.d.ts +1 -1
  78. package/dist/blocks/drive/index.d.ts +5 -5
  79. package/dist/blocks/e-prescribing/index.d.ts +1 -1
  80. package/dist/blocks/employees/index.d.ts +1 -1
  81. package/dist/blocks/enrichment/index.d.ts +1 -1
  82. package/dist/blocks/enrollments/index.d.ts +2 -2
  83. package/dist/blocks/entitlements/index.d.ts +3 -3
  84. package/dist/blocks/events/index.d.ts +3 -3
  85. package/dist/blocks/expenses/index.d.ts +1 -1
  86. package/dist/blocks/field-history/index.d.ts +1 -1
  87. package/dist/blocks/filespace/index.d.ts +8 -8
  88. package/dist/blocks/finance/index.d.ts +5 -5
  89. package/dist/blocks/flags/index.d.ts +1 -1
  90. package/dist/blocks/forecasts/index.d.ts +1 -1
  91. package/dist/blocks/forms/index.d.ts +3 -3
  92. package/dist/blocks/funding/index.d.ts +2 -2
  93. package/dist/blocks/goals/index.d.ts +1 -1
  94. package/dist/blocks/governance/index.d.ts +4 -4
  95. package/dist/blocks/guests/index.d.ts +1 -1
  96. package/dist/blocks/hiring/index.d.ts +1 -1
  97. package/dist/blocks/identities/index.d.ts +1 -1
  98. package/dist/blocks/imports/index.d.ts +2 -2
  99. package/dist/blocks/inbox/index.d.ts +6 -6
  100. package/dist/blocks/incidents/index.d.ts +1 -1
  101. package/dist/blocks/index.d.ts +5 -5
  102. package/dist/blocks/inspections/index.d.ts +2 -2
  103. package/dist/blocks/inventory/index.d.ts +1 -1
  104. package/dist/blocks/invoices/index.d.ts +1 -1
  105. package/dist/blocks/knowledge/index.d.ts +1 -1
  106. package/dist/blocks/lead-scoring/index.d.ts +2 -2
  107. package/dist/blocks/learning/index.d.ts +3 -3
  108. package/dist/blocks/leases/index.d.ts +1 -1
  109. package/dist/blocks/leave/index.d.ts +1 -1
  110. package/dist/blocks/ledger/index.d.ts +1 -1
  111. package/dist/blocks/legal-entities/index.d.ts +2 -2
  112. package/dist/blocks/lims/index.d.ts +2 -2
  113. package/dist/blocks/mail-sync/index.d.ts +3 -3
  114. package/dist/blocks/maintenance/index.d.ts +2 -2
  115. package/dist/blocks/manufacturing/index.d.ts +2 -2
  116. package/dist/blocks/medications/index.d.ts +1 -1
  117. package/dist/blocks/meetings/index.d.ts +3 -3
  118. package/dist/blocks/memberships/index.d.ts +2 -2
  119. package/dist/blocks/memory/index.d.ts +1 -1
  120. package/dist/blocks/messaging/index.d.ts +5 -5
  121. package/dist/blocks/metrics/index.d.ts +1 -1
  122. package/dist/blocks/mfa/index.d.ts +2 -2
  123. package/dist/blocks/moderation/index.d.ts +2 -2
  124. package/dist/blocks/notifications/index.d.ts +5 -5
  125. package/dist/blocks/numbering/index.d.ts +1 -1
  126. package/dist/blocks/oauth-server/index.d.ts +1 -1
  127. package/dist/blocks/observations/index.d.ts +2 -2
  128. package/dist/blocks/onboarding/index.d.ts +2 -2
  129. package/dist/blocks/option-sets/index.d.ts +2 -2
  130. package/dist/blocks/orders/index.d.ts +1 -1
  131. package/dist/blocks/organizations/index.d.ts +2 -2
  132. package/dist/blocks/outbox/index.d.ts +1 -1
  133. package/dist/blocks/passes/index.d.ts +2 -2
  134. package/dist/blocks/payroll-export/index.d.ts +2 -2
  135. package/dist/blocks/people/index.d.ts +7 -7
  136. package/dist/blocks/periods/index.d.ts +1 -1
  137. package/dist/blocks/permissions/index.d.ts +3 -3
  138. package/dist/blocks/pipelines/index.d.ts +2 -2
  139. package/dist/blocks/posts/index.d.ts +2 -2
  140. package/dist/blocks/procurement/index.d.ts +5 -5
  141. package/dist/blocks/profiles/index.d.ts +1 -1
  142. package/dist/blocks/projects/index.d.ts +7 -7
  143. package/dist/blocks/promotions/index.d.ts +1 -1
  144. package/dist/blocks/prompts/index.d.ts +1 -1
  145. package/dist/blocks/push/index.d.ts +2 -2
  146. package/dist/blocks/qualifications/index.d.ts +2 -2
  147. package/dist/blocks/queue/index.d.ts +2 -2
  148. package/dist/blocks/quotes/index.d.ts +1 -1
  149. package/dist/blocks/rank/index.d.ts +1 -1
  150. package/dist/blocks/reactions/index.d.ts +4 -4
  151. package/dist/blocks/recruiting/index.d.ts +4 -4
  152. package/dist/blocks/referrals/index.d.ts +1 -1
  153. package/dist/blocks/relations/index.d.ts +1 -1
  154. package/dist/blocks/reminders/index.d.ts +1 -1
  155. package/dist/blocks/reviews/index.d.ts +1 -1
  156. package/dist/blocks/rfqs/index.d.ts +2 -2
  157. package/dist/blocks/risks/index.d.ts +2 -2
  158. package/dist/blocks/saas/index.d.ts +12 -12
  159. package/dist/blocks/sales/index.d.ts +1 -1
  160. package/dist/blocks/saved-views/index.d.ts +3 -3
  161. package/dist/blocks/scheduling/index.d.ts +4 -4
  162. package/dist/blocks/scores/index.d.ts +2 -2
  163. package/dist/blocks/search/index.d.ts +3 -3
  164. package/dist/blocks/security-events/index.d.ts +1 -1
  165. package/dist/blocks/segments/index.d.ts +2 -2
  166. package/dist/blocks/sequences/index.d.ts +3 -3
  167. package/dist/blocks/service/index.d.ts +7 -7
  168. package/dist/blocks/service-accounts/index.d.ts +1 -1
  169. package/dist/blocks/sessions/index.d.ts +2 -2
  170. package/dist/blocks/settings/index.d.ts +2 -2
  171. package/dist/blocks/share-links/index.d.ts +1 -1
  172. package/dist/blocks/shifts/index.d.ts +2 -2
  173. package/dist/blocks/shipments/index.d.ts +1 -1
  174. package/dist/blocks/signatures/index.d.ts +2 -2
  175. package/dist/blocks/signing-keys/index.d.ts +1 -1
  176. package/dist/blocks/sla/index.d.ts +1 -1
  177. package/dist/blocks/sso/index.d.ts +1 -1
  178. package/dist/blocks/state-machine/index.d.ts +1 -1
  179. package/dist/blocks/subjects/index.d.ts +2 -2
  180. package/dist/blocks/support/index.d.ts +5 -5
  181. package/dist/blocks/tags/index.d.ts +2 -2
  182. package/dist/blocks/tasks/index.d.ts +2 -2
  183. package/dist/blocks/tax/index.d.ts +2 -2
  184. package/dist/blocks/teams/index.d.ts +1 -1
  185. package/dist/blocks/templates/index.d.ts +1 -1
  186. package/dist/blocks/tills/index.d.ts +1 -1
  187. package/dist/blocks/time-entries/index.d.ts +2 -2
  188. package/dist/blocks/timeline/index.d.ts +1 -1
  189. package/dist/blocks/trash/index.d.ts +1 -1
  190. package/dist/blocks/undo/index.d.ts +2 -2
  191. package/dist/blocks/updated-at/index.d.ts +2 -2
  192. package/dist/blocks/usage/index.d.ts +2 -2
  193. package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
  194. package/dist/blocks/versions/index.d.ts +1 -1
  195. package/dist/blocks/waitlist/index.d.ts +1 -1
  196. package/dist/blocks/warehouse/index.d.ts +1 -1
  197. package/dist/blocks/warranty/index.d.ts +1 -1
  198. package/dist/blocks/webhooks/index.d.ts +3 -3
  199. package/dist/blocks/webhooks/index.js +5 -2
  200. package/dist/blocks/workflow-editor/index.d.ts +4 -4
  201. package/dist/blocks/workflows/index.d.ts +4 -4
  202. package/dist/{blocks-D4ngpPJ_.d.ts → blocks-BaVwMDrs.d.ts} +8 -2
  203. package/dist/{build-CRxrX567.js → build-C0BLapAI.js} +1 -1
  204. package/dist/{cache-tags-UWvxDMDO.d.ts → cache-tags-THgO4say.d.ts} +1 -1
  205. package/dist/claims/index.d.ts +4 -4
  206. package/dist/{claims-source-D-4CztOl.d.ts → claims-source-yTqGqUDc.d.ts} +1 -1
  207. package/dist/cli/add-8PulB0kB.js +1 -0
  208. package/dist/cli/{add-ucxskHiv.js → add-DH4qqKNb.js} +11 -11
  209. package/dist/cli/{add-CN5jkEFM.js → add-DLYO-lcP.js} +2 -2
  210. package/dist/cli/{app-table-files-FcgTfOf9.js → app-table-files--ulI7C3Z.js} +4 -4
  211. package/dist/cli/{app-tables-DCpSNfJ3.js → app-tables-CQVNZglP.js} +2 -2
  212. package/dist/cli/{backfill-DVP_elK_.js → backfill-Byn-Pe2a.js} +3 -3
  213. package/dist/cli/bin.js +1 -1
  214. package/dist/cli/{blocks-CFKjKW4s.js → blocks-BATYI3l9.js} +1 -1
  215. package/dist/cli/{blocks-iSEepN2Y.js → blocks-D7DYKEOZ.js} +1 -1
  216. package/dist/cli/{cache-CNa3fjK-.js → cache-D6iHVy6b.js} +1 -1
  217. package/dist/cli/{codemod-DH-VSZps.js → codemod-PLqZ1YGz.js} +5 -5
  218. package/dist/cli/{codemod-naming-CuQ0ltfE.js → codemod-naming-BgEIRJLM.js} +1 -1
  219. package/dist/cli/{column-renames-CtcG8MR5.js → column-renames-B1bMtdIF.js} +2 -2
  220. package/dist/cli/{config-DX58lDf7.js → config-By5EbpdJ.js} +1 -1
  221. package/dist/cli/{config-CoW6aoul.js → config-D4AVoIh5.js} +1 -1
  222. package/dist/cli/{content-mapper-TATvvrmb.js → content-mapper-BGus1ryq.js} +1 -1
  223. package/dist/cli/{db-CZ9qHsDs.js → db-C4up7wFU.js} +2 -2
  224. package/dist/cli/{dev-BDv1efAy.js → dev-Bd6RJwLg.js} +5 -5
  225. package/dist/cli/{doctor-CkO1yd7F.js → doctor-DW_QzhsK.js} +39 -22
  226. package/dist/cli/{emit-OhupwGNp.js → emit-DGhalWTA.js} +2 -2
  227. package/dist/cli/{gen-1lVJoeH1.js → gen-BjMSXpcG.js} +5 -5
  228. package/dist/cli/{gen-tasks-BgxoXxuF.js → gen-tasks-D3kLr5we.js} +11 -11
  229. package/dist/cli/index.d.ts +1 -1
  230. package/dist/cli/index.js +8 -8
  231. package/dist/cli/{init-Defy7VJ0.js → init-DeGm-42D.js} +9 -9
  232. package/dist/cli/{live-DmvnAvGV.js → live-CJ3gBXTW.js} +2 -2
  233. package/dist/cli/{mcp-BGKeD-lo.js → mcp-C7bG8fs9.js} +2 -2
  234. package/dist/cli/{memo-backend-3u-X51UO.js → memo-backend-BbAaoaCp.js} +1 -1
  235. package/dist/cli/{metadata-D0UazHyQ.js → metadata-Da7lPV1G.js} +4 -4
  236. package/dist/cli/{migrate-PshyB8a6.js → migrate-adO6TGQx.js} +1 -1
  237. package/dist/cli/{migration-safety-DYgRA8-5.js → migration-safety-TjFxbPdK.js} +2 -2
  238. package/dist/cli/{module-migration-CRsIlrig.js → module-migration-BOwCFfuw.js} +1 -1
  239. package/dist/cli/{partition-ht8zldUV.js → partition-Bi76oVvt.js} +3 -3
  240. package/dist/cli/{powersync-r6iL7zEo.js → powersync-01LIe9WO.js} +4 -4
  241. package/dist/cli/powersync-BIncCNre.js +1 -0
  242. package/dist/cli/{print-Ca78W5ZF.js → print-CoDV1AZr.js} +2 -2
  243. package/dist/cli/{providers-DhMSptuy.js → providers-B3VKJOGS.js} +1 -1
  244. package/dist/cli/{prune-workflows-DyZx-veL.js → prune-workflows-Ck7bPjbs.js} +3 -3
  245. package/dist/cli/{remove-37g_SvZW.js → remove-B0mcKNLX.js} +6 -6
  246. package/dist/cli/{render-cache-BYkVt264.js → render-cache-Dkkervpu.js} +1 -1
  247. package/dist/cli/{render-Bfh2EtMO.js → render-g0u-8VRx.js} +5 -5
  248. package/dist/cli/{run-CfWFddfH.js → run-DKHipy0c.js} +7 -7
  249. package/dist/cli/{run-DEPt1rAn.js → run-DcjkMeLQ.js} +35 -35
  250. package/dist/cli/seed-B3MrC1Qe.js +1 -0
  251. package/dist/cli/{seed-pDWlnzyK.js → seed-BufZFJ_Q.js} +2 -2
  252. package/dist/cli/{shared-BrAtQXmC.js → shared-BL_SZdUw.js} +1 -1
  253. package/dist/cli/{source-Bt6UAek-.js → source-BBn7ypvg.js} +1 -1
  254. package/dist/cli/{source-args-D5BSEgUG.js → source-args-CvgOHwlj.js} +1 -1
  255. package/dist/cli/{spec-DsNayDt2.js → spec-COv0ojkG.js} +2 -2
  256. package/dist/cli/{spec-BJreyth3.js → spec-DH55djVx.js} +1 -1
  257. package/dist/cli/{sql-layout-Bt7NcWXk.js → sql-layout-ClqJfxAp.js} +3 -3
  258. package/dist/cli/{squash-DmbB7Gx9.js → squash-Cit4Liiw.js} +1 -1
  259. package/dist/cli/{sync-DFAkNjw_.js → sync-Ba5EvTIT.js} +4 -4
  260. package/dist/cli/{upgrade-D8GOjXrv.js → upgrade-BIuxR2Z-.js} +5 -5
  261. package/dist/cli/{upgrade-DP-30QID.js → upgrade-DI4ZTrXV.js} +5 -5
  262. package/dist/cli/{verify-O5zxWWuE.js → verify-CR7f21Ri.js} +2 -2
  263. package/dist/cli/{version-CHVFvh95.js → version-D_miCSxz.js} +1 -1
  264. package/dist/client/index.d.ts +5 -5
  265. package/dist/client/index.js +1 -1
  266. package/dist/client/native/index.d.ts +5 -5
  267. package/dist/client/native/index.js +2 -2
  268. package/dist/{composite-CxojRRUF.d.ts → composite-BInEW9vs.d.ts} +3 -3
  269. package/dist/{composite-Bxpd7oru.js → composite-C13UCNgm.js} +1 -1
  270. package/dist/{composite-reads-CK-Y5b6M.d.ts → composite-reads-C942bzhw.d.ts} +1 -1
  271. package/dist/config/index.d.ts +4 -4
  272. package/dist/config/index.js +4 -4
  273. package/dist/{config-cisS43w5.js → config-1kAVpZc_.js} +3 -3
  274. package/dist/{config-a_CzEbpi.js → config-L5_4kg24.js} +1 -1
  275. package/dist/{context-m-t6Kr9_.d.ts → context-C-msUG_m.d.ts} +4 -4
  276. package/dist/contract/index.d.ts +4 -4
  277. package/dist/{controller-zwQFyrOG.d.ts → controller-DMoPjq2t.d.ts} +1 -1
  278. package/dist/{conversion-b6htac73.d.ts → conversion-Cckh_HHY.d.ts} +1 -1
  279. package/dist/create/index.d.ts +4 -4
  280. package/dist/create/index.js +3 -3
  281. package/dist/create/lite/index.d.ts +3 -3
  282. package/dist/create/lite/index.js +4 -4
  283. package/dist/{db-blocks-_jJICfjp.d.ts → db-blocks-BQkHb77X.d.ts} +3 -3
  284. package/dist/{define-block-DQvTGOGv.d.ts → define-block-ClbL68WH.d.ts} +2 -2
  285. package/dist/{define-runtime-DsFTahQB.js → define-runtime-BbNPkt-5.js} +17 -1
  286. package/dist/{define-runtime-full-B_cMkyCk.js → define-runtime-full-gpz09qAj.js} +16 -3
  287. package/dist/{delete-account-BQDeafVT.d.ts → delete-account-DKGAVT94.d.ts} +1 -1
  288. package/dist/{drive-DaEK5ZxU.d.ts → drive-DXU2QoV_.d.ts} +1 -1
  289. package/dist/edge/index.d.ts +5 -5
  290. package/dist/edge/index.js +4 -4
  291. package/dist/{entitlements-D4ob6MfK.d.ts → entitlements-DKNLoLw3.d.ts} +2 -2
  292. package/dist/{executor-D24_D6dr.js → executor-DABWqMfV.js} +1 -1
  293. package/dist/{executor-nx2Q8Xdy.d.ts → executor-h098g0vY.d.ts} +2 -2
  294. package/dist/expo/index.d.ts +2 -2
  295. package/dist/expo/index.js +3 -3
  296. package/dist/{extract-W4zb3wIh.d.ts → extract-CzjhSs6g.d.ts} +1 -1
  297. package/dist/{extras-ByEPERCR.d.ts → extras-Ctnag4x3.d.ts} +1 -1
  298. package/dist/{field-errors-pj0uOXSg.d.ts → field-errors-D0vkq05i.d.ts} +6 -6
  299. package/dist/{former-permission-keys-D8FbWktT.js → former-permission-keys-FPrqQHXf.js} +1 -1
  300. package/dist/{framework-pfJvMQy3.js → framework-BQgHM3zD.js} +1 -1
  301. package/dist/{framework-BYx1ke3r.d.ts → framework-CEMVz7JS.d.ts} +3 -3
  302. package/dist/generators/factories/index.d.ts +1 -1
  303. package/dist/generators/factories/index.js +1 -1
  304. package/dist/generators/index.d.ts +2 -2
  305. package/dist/generators/json-schema/index.d.ts +2 -2
  306. package/dist/generators/json-schema/index.js +1 -1
  307. package/dist/generators/nuqs/index.d.ts +1 -1
  308. package/dist/generators/nuqs/index.js +1 -1
  309. package/dist/generators/standard-schema/index.d.ts +1 -1
  310. package/dist/generators/standard-schema/index.js +1 -1
  311. package/dist/generators/valibot/index.d.ts +1 -1
  312. package/dist/generators/valibot/index.js +1 -1
  313. package/dist/generators/zod/index.d.ts +1 -1
  314. package/dist/generators/zod/index.js +1 -1
  315. package/dist/hono/index.d.ts +4 -4
  316. package/dist/hono/index.js +3 -3
  317. package/dist/{index-ByCXNZ2j.d.ts → index-6L3fO1VW.d.ts} +2 -2
  318. package/dist/{index-IrsC8TLH.d.ts → index-B9kqCDKK.d.ts} +2 -2
  319. package/dist/{index-DYh76mE_.d.ts → index-BG1eY1KO.d.ts} +1 -1
  320. package/dist/{index-ClqA-t45.d.ts → index-BIk7uOsB.d.ts} +1 -1
  321. package/dist/{index-SWDnWdWw.d.ts → index-BNbcydCQ.d.ts} +1 -1
  322. package/dist/{index-DsNwQRWG.d.ts → index-BO4gZI8-.d.ts} +1 -1
  323. package/dist/{index-CQGi7Jnn.d.ts → index-BTgHDNoK.d.ts} +2 -2
  324. package/dist/{index-CxZV8RJE.d.ts → index-BoidURQg.d.ts} +1 -1
  325. package/dist/{index-BYDpdZxq.d.ts → index-BwbFX9kz.d.ts} +1 -1
  326. package/dist/{index-SZ8qGIVO.d.ts → index-Bz-T_58c.d.ts} +9 -9
  327. package/dist/{index-DpoUltRu.d.ts → index-C-vdLX8y.d.ts} +1 -1
  328. package/dist/{index-BpQxfGSO.d.ts → index-C0rHOTr-.d.ts} +1 -1
  329. package/dist/{index-BVuN7_fC.d.ts → index-C1rKo4z7.d.ts} +1 -1
  330. package/dist/{index-DyV6z0Q_.d.ts → index-C7AEdCOx.d.ts} +1 -1
  331. package/dist/{index-BfnBjZpy.d.ts → index-CN9tlkaZ.d.ts} +3 -3
  332. package/dist/{index-WoE9Z_V-.d.ts → index-CO_JEQpa.d.ts} +1 -1
  333. package/dist/{index-CjoB5SrD.d.ts → index-CaBdEfvB.d.ts} +3 -3
  334. package/dist/{index-C37Wq488.d.ts → index-CfYIKxmO.d.ts} +1 -1
  335. package/dist/{index-CxX_Bgfa.d.ts → index-Cy-294dJ.d.ts} +1 -1
  336. package/dist/{index-46tesKqa.d.ts → index-DHwwaa5c.d.ts} +1 -1
  337. package/dist/{index-BomyYKtC.d.ts → index-DLPEBVA3.d.ts} +4 -4
  338. package/dist/{index-D_0l5hHh.d.ts → index-DMaROBj_.d.ts} +2 -2
  339. package/dist/{index-Dea13gIz.d.ts → index-DPHg8c59.d.ts} +4 -4
  340. package/dist/{index-Dyhkn8FU.d.ts → index-DTBxclC4.d.ts} +2 -2
  341. package/dist/{index-DCqy0ESb.d.ts → index-DeJHUkru.d.ts} +2 -2
  342. package/dist/{index-CDX9U_CH.d.ts → index-DewyE3_q.d.ts} +1 -1
  343. package/dist/{index-DlUd0CTA.d.ts → index-DwC5RgXo.d.ts} +7 -7
  344. package/dist/{index-DeI4h1N1.d.ts → index-FfVEwPC7.d.ts} +1 -1
  345. package/dist/{index-DW_S9n3h.d.ts → index-JCe4Kgvs.d.ts} +2 -2
  346. package/dist/{index-r_SO6mVm.d.ts → index-L9nFXemf.d.ts} +3 -3
  347. package/dist/{index-CWTWbIz_.d.ts → index-M6PP_nv1.d.ts} +1 -1
  348. package/dist/{index-CriIH7di.d.ts → index-OPLT30am.d.ts} +4 -4
  349. package/dist/{index-Bu4YwWl0.d.ts → index-bDmQ69hy.d.ts} +1 -1
  350. package/dist/{index-Crm9IjfQ.d.ts → index-b_QoL2Xl.d.ts} +1 -1
  351. package/dist/{index-BZCCv04g.d.ts → index-k-3GAYGO.d.ts} +2 -2
  352. package/dist/{index-BLPzvJ5v.d.ts → index-tHzSmAVM.d.ts} +4 -4
  353. package/dist/{index-Bb_il0ub.d.ts → index-xNtO4Cbv.d.ts} +2 -2
  354. package/dist/index.d.ts +1 -1
  355. package/dist/{instances-07Lopbd1.js → instances-PZAWgQEX.js} +2 -1
  356. package/dist/{json-schema-CU9Mg-_d.js → json-schema-C8deWP59.js} +1 -1
  357. package/dist/list/export/index.d.ts +1 -1
  358. package/dist/list/index.d.ts +1 -1
  359. package/dist/list/order/index.d.ts +2 -2
  360. package/dist/{list-query-B6lXbY0T.d.ts → list-query-0IoIyFnQ.d.ts} +1 -1
  361. package/dist/{manifest-NkuGL5p2.d.ts → manifest-8h7Bi6Pu.d.ts} +1 -1
  362. package/dist/{manifest-CS8I2fku.d.ts → manifest-B5Tf88Uq.d.ts} +1 -1
  363. package/dist/{manifest-Cv7Mji7w.d.ts → manifest-BAoLDoxK.d.ts} +1 -1
  364. package/dist/{manifest-Bf6Rzatq.d.ts → manifest-BF-mU2bV.d.ts} +1 -1
  365. package/dist/{manifest-DucB6ix_.d.ts → manifest-BG1VIYZT.d.ts} +1 -1
  366. package/dist/{manifest-Dg2BCyzg.d.ts → manifest-BHMX17A8.d.ts} +1 -1
  367. package/dist/{manifest-x_fSttX7.d.ts → manifest-BLOaDsUW.d.ts} +1 -1
  368. package/dist/{manifest-D48Fi0bR.d.ts → manifest-BO1W_e-B.d.ts} +1 -1
  369. package/dist/{manifest-tP62uJrR.d.ts → manifest-BPriFiTU.d.ts} +1 -1
  370. package/dist/{manifest-CtL5JmoY.d.ts → manifest-BTdv7qf4.d.ts} +1 -1
  371. package/dist/{manifest-DwBFwxFo.d.ts → manifest-BTw7TOwu.d.ts} +1 -1
  372. package/dist/{manifest-NuYSYeQT.d.ts → manifest-BZNn8jSV.d.ts} +1 -1
  373. package/dist/{manifest-CYO44YUb.d.ts → manifest-Bk8cjM0l.d.ts} +1 -1
  374. package/dist/{manifest-ubm80xCr.d.ts → manifest-BrGySkFX.d.ts} +1 -1
  375. package/dist/{manifest-4S1YGIS3.d.ts → manifest-BzO-6IJr.d.ts} +1 -1
  376. package/dist/{manifest-BKiaRgiZ.d.ts → manifest-C0Wdg3J2.d.ts} +1 -1
  377. package/dist/{manifest-DftU8SXo.d.ts → manifest-C2PHEJ5z.d.ts} +1 -1
  378. package/dist/{manifest-Ccc0ZZup.d.ts → manifest-C2rmE8qa.d.ts} +1 -1
  379. package/dist/{manifest-CMn61uKN.d.ts → manifest-C5l5bb08.d.ts} +1 -1
  380. package/dist/{manifest-DOtSiMt5.d.ts → manifest-C6ITivwS.d.ts} +1 -1
  381. package/dist/{manifest-DsINyvTh.d.ts → manifest-C71ANbeV.d.ts} +1 -1
  382. package/dist/{manifest-BxvFH1G_.d.ts → manifest-CAnCtcFS.d.ts} +2 -2
  383. package/dist/{manifest-_zu02ImE.d.ts → manifest-CBlNPtFA.d.ts} +1 -1
  384. package/dist/{manifest-2sJavyD8.d.ts → manifest-CEXnXtGH.d.ts} +1 -1
  385. package/dist/{manifest-FVkgBS-K.d.ts → manifest-CFH-eOXg.d.ts} +1 -1
  386. package/dist/{manifest-BRvnB8C0.d.ts → manifest-CFsi-Ht5.d.ts} +1 -1
  387. package/dist/{manifest-BaIG9QRj.d.ts → manifest-CJvaMP9x.d.ts} +1 -1
  388. package/dist/{manifest-C95ET4CL.d.ts → manifest-CK3rwqU_.d.ts} +1 -1
  389. package/dist/{manifest-Dim5U8TQ.d.ts → manifest-CLdp5_oL.d.ts} +1 -1
  390. package/dist/{manifest-N5wuAzq4.d.ts → manifest-CY_k3qjM.d.ts} +3 -3
  391. package/dist/{manifest-eaGk_4rq.d.ts → manifest-Cg8WeAdC.d.ts} +1 -1
  392. package/dist/{manifest-BzXqieUD.d.ts → manifest-ChaCvq6y.d.ts} +1 -1
  393. package/dist/{manifest-BpgNJhYN.d.ts → manifest-CiMGJyOC.d.ts} +1 -1
  394. package/dist/{manifest-cJ3rQXtl.d.ts → manifest-CpqWpt8p.d.ts} +4 -4
  395. package/dist/{manifest-Dp9ZtoFo.d.ts → manifest-Cqt64tuH.d.ts} +1 -1
  396. package/dist/{manifest-C2hpeEBF.d.ts → manifest-CrVJZ86G.d.ts} +1 -1
  397. package/dist/{manifest-xlpYSpLJ.d.ts → manifest-CsJCoSyK.d.ts} +1 -1
  398. package/dist/{manifest-CXdJUJjX.d.ts → manifest-D-kHfhG5.d.ts} +1 -1
  399. package/dist/{manifest-5i2UwyQr.d.ts → manifest-D17W6_c7.d.ts} +1 -1
  400. package/dist/{manifest-DZyxhWcb.d.ts → manifest-D1w2lSll.d.ts} +1 -1
  401. package/dist/{manifest-wXk0ZLhO.d.ts → manifest-D5TAMdzY.d.ts} +1 -1
  402. package/dist/{manifest-BEQWkGmf.d.ts → manifest-DJIIa2Em.d.ts} +1 -1
  403. package/dist/{manifest-Bj8bumDU.d.ts → manifest-DJuZGlHR.d.ts} +1 -1
  404. package/dist/{manifest-YtnGn7F9.d.ts → manifest-DLHnAPNS.d.ts} +1 -1
  405. package/dist/{manifest-BZPruG-S.d.ts → manifest-DNx5sz8h.d.ts} +1 -1
  406. package/dist/{manifest-TG95ksdH.d.ts → manifest-DSA0yeuM.d.ts} +1 -1
  407. package/dist/{manifest-dOFbx7Iv.d.ts → manifest-DSvRcUhd.d.ts} +1 -1
  408. package/dist/{manifest-Cl2U3bic.d.ts → manifest-DZwGgT_z.d.ts} +1 -1
  409. package/dist/{manifest-CA5EhKZ9.d.ts → manifest-D_wapvtH.d.ts} +1 -1
  410. package/dist/{manifest-DUPKC2rO.d.ts → manifest-DbZYZpku.d.ts} +1 -1
  411. package/dist/{manifest-DoZXpoG_.d.ts → manifest-DdE8MnRN.d.ts} +1 -1
  412. package/dist/{manifest-BMilYLsh.d.ts → manifest-Doi_y4XH.d.ts} +1 -1
  413. package/dist/{manifest-B0pan6cS.d.ts → manifest-DplQt5I6.d.ts} +1 -1
  414. package/dist/{manifest-CWFhOuFW.d.ts → manifest-Dqths6WM.d.ts} +1 -1
  415. package/dist/{manifest-CF3BUmbe.d.ts → manifest-DsxLVrmD.d.ts} +1 -1
  416. package/dist/{manifest-Bfu-Cu0f.d.ts → manifest-DuBsaflS.d.ts} +1 -1
  417. package/dist/{manifest-DpFy7git.d.ts → manifest-Pny9-_9a.d.ts} +1 -1
  418. package/dist/{manifest-DfC1XBrV.d.ts → manifest-YGFH2TL_.d.ts} +1 -1
  419. package/dist/{manifest-CnVa_nHw.d.ts → manifest-b3PqBQa0.d.ts} +1 -1
  420. package/dist/{manifest-CiF1Sb29.d.ts → manifest-cYotBkfZ.d.ts} +1 -1
  421. package/dist/{manifest-DiXINLQQ.d.ts → manifest-myniqe46.d.ts} +1 -1
  422. package/dist/{manifest-CumC7hH5.d.ts → manifest-sOy_ZKWF.d.ts} +1 -1
  423. package/dist/mapper/bin.js +6 -6
  424. package/dist/mcp/index.d.ts +2 -2
  425. package/dist/mcp/index.js +1 -1
  426. package/dist/mcp/sdk/index.d.ts +2 -2
  427. package/dist/mcp/sdk/index.js +1 -1
  428. package/dist/{mcp-CULIbS-b.js → mcp-CZgh_ubo.js} +3 -3
  429. package/dist/next/index.d.ts +12 -12
  430. package/dist/next/index.js +2 -2
  431. package/dist/next/proxy/index.d.ts +3 -3
  432. package/dist/{operations-D4zxY2TL.d.ts → operations-DAHER9Co.d.ts} +1 -1
  433. package/dist/orpc/index.d.ts +4 -4
  434. package/dist/orpc/index.js +2 -2
  435. package/dist/otel/index.js +5 -5
  436. package/dist/{permissions-BkUcXwtV.d.ts → permissions-Ddma4Div.d.ts} +1 -1
  437. package/dist/{ports-BBowiGiD.js → ports-ClJbgoyt.js} +1 -1
  438. package/dist/{ports-DD-pDkHu.d.ts → ports-DPp4Fq_P.d.ts} +1 -1
  439. package/dist/powersync/index.d.ts +3 -3
  440. package/dist/powersync/index.js +1 -1
  441. package/dist/preset/index.d.ts +4 -4
  442. package/dist/preset/index.js +3 -3
  443. package/dist/{preset-ZZ4H2s92.js → preset-BcwGsW_B.js} +2 -2
  444. package/dist/{preview-GUvVjUxf.d.ts → preview-nlRIsJni.d.ts} +2 -2
  445. package/dist/{project-wJ3jYipI.js → project-Bw5sWuoO.js} +5 -5
  446. package/dist/{push-token-C8MoiM7E.d.ts → push-token-Dwlj0LIL.d.ts} +1 -1
  447. package/dist/query/index.d.ts +1 -1
  448. package/dist/react/index.d.ts +5 -5
  449. package/dist/react/native/index.d.ts +1 -1
  450. package/dist/react/server.d.ts +6 -6
  451. package/dist/react-router/index.d.ts +3 -3
  452. package/dist/react-router/index.js +3 -3
  453. package/dist/realtime/index.d.ts +3 -3
  454. package/dist/{record-form-CbFN-AdD.d.ts → record-form-3eD-nwYk.d.ts} +1 -1
  455. package/dist/records/index.d.ts +7 -7
  456. package/dist/{resource-execute-BQx_Pmeu.d.ts → resource-execute-H-XO83hu.d.ts} +1 -1
  457. package/dist/{resource-types-lBguZ_8J.d.ts → resource-types-D4IZrOCo.d.ts} +1 -1
  458. package/dist/{resources-CWfoS1er.d.ts → resources-B5k-hJW_.d.ts} +1 -1
  459. package/dist/server/account/index.d.ts +2 -2
  460. package/dist/server/accounts/index.d.ts +1 -1
  461. package/dist/server/index.d.ts +12 -12
  462. package/dist/server/index.js +4 -4
  463. package/dist/{server-af58-Q51.js → server-B0T944J9.js} +1 -1
  464. package/dist/{server-types-By5oBsDZ.d.ts → server-types-Bax89ShV.d.ts} +2 -2
  465. package/dist/{session-D5IrTUwv.d.ts → session-DitGLCxF.d.ts} +1 -1
  466. package/dist/{sign-in-TNX4Pj9E.d.ts → sign-in-Dtd2Bqgm.d.ts} +10 -10
  467. package/dist/{signers-DB0S8YhO.d.ts → signers-FVeDbZxq.d.ts} +5 -1
  468. package/dist/solid/index.d.ts +6 -6
  469. package/dist/solid-start/index.d.ts +3 -3
  470. package/dist/solid-start/index.js +3 -3
  471. package/dist/spec/index.d.ts +1 -1
  472. package/dist/spec/index.js +2 -2
  473. package/dist/sql/index.d.ts +6 -6
  474. package/dist/sql/index.js +2 -2
  475. package/dist/{sql-CP1j2jfo.js → sql-DLuqUuGO.js} +42 -14
  476. package/dist/sqlite/index.d.ts +1 -1
  477. package/dist/sqlite/index.js +1 -1
  478. package/dist/ssr/index.d.ts +1 -1
  479. package/dist/svelte/index.d.ts +6 -6
  480. package/dist/sveltekit/index.d.ts +4 -4
  481. package/dist/sveltekit/index.js +3 -3
  482. package/dist/{tags-Csj8VfA7.d.ts → tags-C3z-ntLF.d.ts} +1 -1
  483. package/dist/tanstack-db/index.d.ts +1 -1
  484. package/dist/tanstack-start/index.d.ts +3 -3
  485. package/dist/tanstack-start/index.js +3 -3
  486. package/dist/{tenant-CVRFoaDM.d.ts → tenant-DLvOWwEG.d.ts} +1 -1
  487. package/dist/testing/index.d.ts +9 -9
  488. package/dist/testing/index.js +3 -3
  489. package/dist/{timeline-T1qkzVdR.d.ts → timeline-ChkpN8Bw.d.ts} +3 -3
  490. package/dist/{topic-DytYYyP3.d.ts → topic-Dw4CI2so.d.ts} +2 -2
  491. package/dist/{types-Cge5o3f5.d.ts → types-_hw_fdQp.d.ts} +2 -2
  492. package/dist/{verify-dg8Q3iRY.d.ts → verify-B4daVDDR.d.ts} +1 -1
  493. package/dist/{version-B0uw5rOF.js → version-CrTSdSoJ.js} +1 -1
  494. package/dist/vue/index.d.ts +6 -6
  495. package/dist/{watch-topic-DT31uYqF.d.ts → watch-topic-CPyTKYDb.d.ts} +1 -1
  496. package/dist/webmcp/index.d.ts +1 -1
  497. package/dist/webmcp/index.js +1 -1
  498. package/dist/yjs/index.d.ts +1 -1
  499. package/package.json +1 -1
  500. package/schemas/config-v1.json +40 -2
  501. package/dist/cli/add-fra98UnY.js +0 -1
  502. package/dist/cli/powersync-BztAuUyy.js +0 -1
  503. package/dist/cli/seed-B6_MBFd2.js +0 -1
@@ -1,9 +1,9 @@
1
1
  import { n as CliError } from "./errors-B7i-VGxk.js";
2
2
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
3
- import { r as literal } from "./live-DmvnAvGV.js";
4
- import { r as layoutFor } from "./providers-DhMSptuy.js";
5
- import { n as renderBlocksCached } from "./render-cache-BYkVt264.js";
6
- import { f as subjectTagArgs } from "./config-DX58lDf7.js";
3
+ import { r as literal } from "./live-CJ3gBXTW.js";
4
+ import { r as layoutFor } from "./providers-B3VKJOGS.js";
5
+ import { n as renderBlocksCached } from "./render-cache-Dkkervpu.js";
6
+ import { f as subjectTagArgs } from "./config-By5EbpdJ.js";
7
7
  import { join, resolve, sep } from "node:path";
8
8
  import { APP_TABLES_MODULE, setTableFeature } from "better-supabase/sql";
9
9
  import { FIELD_FORMATS } from "better-supabase/config";
@@ -1,6 +1,6 @@
1
1
  import { t as accessProviderMode } from "./authorization-CNWhpdKb.js";
2
- import { u as writtenByBlocks } from "./sql-layout-Bt7NcWXk.js";
3
- import { c as qualified, t as catalogOf } from "./shared-BrAtQXmC.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
3
+ import { c as qualified, t as catalogOf } from "./shared-BL_SZdUw.js";
4
4
  import { declaredTables, resolveBlocks } from "better-supabase/sql";
5
5
  // src/cli/doctor/app-tables.ts
6
6
  /**
@@ -1,10 +1,10 @@
1
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
1
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-By5EbpdJ.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-DmvnAvGV.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
6
+ import { n as ident } from "./live-CJ3gBXTW.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CvgOHwlj.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
10
10
  const ARGS = {
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-DEPt1rAn.js";
2
+ import { i as run } from "./run-DcjkMeLQ.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-iSEepN2Y.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-D7DYKEOZ.js";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
4
- import { n as listModules, t as printModule } from "./print-Ca78W5ZF.js";
4
+ import { n as listModules, t as printModule } from "./print-CoDV1AZr.js";
5
5
  import { t as decodePresetInput } from "./preset-CWfLlmTO.js";
6
6
  import { SQL_MODULES } from "better-supabase/sql";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1,5 +1,5 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
- import { t as VERSION } from "./version-CHVFvh95.js";
2
+ import { t as VERSION } from "./version-D_miCSxz.js";
3
3
  import { dirname, resolve } from "node:path";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
5
5
  import { createHash } from "node:crypto";
@@ -1,11 +1,11 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-CuQ0ltfE.js";
2
+ import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
- import { r as layoutFor } from "./providers-DhMSptuy.js";
5
- import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-Bt7NcWXk.js";
4
+ import { r as layoutFor } from "./providers-B3VKJOGS.js";
5
+ import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
6
6
  import { r as arrayEntries, t as PROMISE_ALL } from "./round-trips-BHfeIu6I.js";
7
- import { l as schemaModulePath } from "./emit-OhupwGNp.js";
8
- import { n as databaseUrl, s as loadConfig } from "./config-DX58lDf7.js";
7
+ import { l as schemaModulePath } from "./emit-DGhalWTA.js";
8
+ import { n as databaseUrl, s as loadConfig } from "./config-By5EbpdJ.js";
9
9
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
10
10
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
11
11
  import { t as connect } from "./db-B_xr3ZvK.js";
@@ -1,5 +1,5 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { o as ownLayout } from "./sql-layout-Bt7NcWXk.js";
2
+ import { o as ownLayout } from "./sql-layout-ClqJfxAp.js";
3
3
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
4
4
  import { LEGACY_OPTION, SQL_MODULES, bsbPolicyName, moduleContext, readPolicies, redundantNulls } from "better-supabase/sql";
5
5
  // src/cli/codemod-config.ts
@@ -1,5 +1,5 @@
1
- import { t as NAMING_RENAMES } from "./codemod-naming-CuQ0ltfE.js";
2
- import { u as writtenByBlocks } from "./sql-layout-Bt7NcWXk.js";
1
+ import { t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-ClqJfxAp.js";
3
3
  import { SQL_MODULES } from "better-supabase/sql";
4
4
  // src/cli/doctor/column-renames.ts
5
5
  const ADD_COLUMN = /\balter\s+table\s+(?:if\s+exists\s+)?(?:only\s+)?((?:"?[\w$]+"?\s*\.\s*)?"?[\w$]+"?)\s+add\s+column\s+if\s+not\s+exists\s+("?[\w$]+"?)/gi;
@@ -1003,7 +1003,7 @@ const blockEntries = {
1003
1003
  schema: optional(string()),
1004
1004
  functions: optional(stringRecord)
1005
1005
  })),
1006
- events: optional(boolean()),
1006
+ events: optional(union([boolean(), strictObject({ payload: optional(record(string(), stringRecord)) })])),
1007
1007
  audit: optional(boolean()),
1008
1008
  api: optional(union([
1009
1009
  string(),
@@ -1 +1 @@
1
- export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-DX58lDf7.js";
1
+ export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-By5EbpdJ.js";
@@ -1,7 +1,7 @@
1
1
  import { t as i } from "./jsonc-Dyww6wHM.js";
2
2
  import { r as readIfExists } from "./io-CngfGyMA.js";
3
3
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
4
- import { H as installedVersion } from "./sql-layout-Bt7NcWXk.js";
4
+ import { H as installedVersion } from "./sql-layout-ClqJfxAp.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
7
7
  // src/cli/content-mapper.ts
@@ -1,4 +1,4 @@
1
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
1
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-By5EbpdJ.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
@@ -7,7 +7,7 @@ import { t as connect } from "./db-B_xr3ZvK.js";
7
7
  import { r as supabaseCli } from "./exec-DBgtTCHK.js";
8
8
  import { a as migrationFiles, i as isShadowFailure, o as migrationVersion, r as inStackDiff, t as MIGRATION_HEADER } from "./in-stack-diff-3e1LT1bn.js";
9
9
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
10
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
10
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CvgOHwlj.js";
11
11
  import { dirname, join, resolve } from "node:path";
12
12
  import { mkdir, readFile, writeFile } from "node:fs/promises";
13
13
  import { parseRenameHints } from "better-supabase/create";
@@ -1,10 +1,10 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
- import { m as GEN_TASKS } from "./config-DX58lDf7.js";
4
- import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-DsNayDt2.js";
5
- import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-BgxoXxuF.js";
6
- import { g as snapshotFile, p as openSource } from "./sql-layout-Bt7NcWXk.js";
7
- import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-D5BSEgUG.js";
3
+ import { m as GEN_TASKS } from "./config-By5EbpdJ.js";
4
+ import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-COv0ojkG.js";
5
+ import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-D3kLr5we.js";
6
+ import { g as snapshotFile, p as openSource } from "./sql-layout-ClqJfxAp.js";
7
+ import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
8
8
  import { dirname, resolve } from "node:path";
9
9
  import { readdir } from "node:fs/promises";
10
10
  // src/cli/commands/dev.ts
@@ -1,5 +1,5 @@
1
- import { d as subjectFromTag, l as stdinDatabaseUrl, n as databaseUrl, u as withTableTags } from "./config-DX58lDf7.js";
2
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-TATvvrmb.js";
1
+ import { d as subjectFromTag, l as stdinDatabaseUrl, n as databaseUrl, u as withTableTags } from "./config-By5EbpdJ.js";
2
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-BGus1ryq.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
@@ -7,37 +7,37 @@ import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-NnXna
7
7
  import { a as sameText, t as display } from "./io-CngfGyMA.js";
8
8
  import { t as connect } from "./db-B_xr3ZvK.js";
9
9
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
10
- import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-Bt7NcWXk.js";
11
- import { i as request } from "./source-Bt6UAek-.js";
10
+ import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-ClqJfxAp.js";
11
+ import { i as request } from "./source-BBn7ypvg.js";
12
12
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
13
13
  import { r as supabaseCli } from "./exec-DBgtTCHK.js";
14
14
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
15
- import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-CfWFddfH.js";
16
- import { r as renderFiles } from "./render-Bfh2EtMO.js";
17
- import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-OhupwGNp.js";
15
+ import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-DKHipy0c.js";
16
+ import { r as renderFiles } from "./render-g0u-8VRx.js";
17
+ import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-DGhalWTA.js";
18
18
  import { t as orphanedBlockFiles } from "./orphans-ByB0gKOp.js";
19
- import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-CuQ0ltfE.js";
19
+ import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-BgEIRJLM.js";
20
20
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
21
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-DCpSNfJ3.js";
22
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-CRsIlrig.js";
23
- import { n as renderBlocksCached } from "./render-cache-BYkVt264.js";
24
- import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-BrAtQXmC.js";
25
- import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-CtcG8MR5.js";
26
- import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-DmvnAvGV.js";
21
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-CQVNZglP.js";
22
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-BOwCFfuw.js";
23
+ import { n as renderBlocksCached } from "./render-cache-Dkkervpu.js";
24
+ import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-BL_SZdUw.js";
25
+ import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-B1bMtdIF.js";
26
+ import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CJ3gBXTW.js";
27
27
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
28
28
  import { s as providerLabel } from "./authorization-CNWhpdKb.js";
29
- import { t as VERSION$1 } from "./version-CHVFvh95.js";
29
+ import { t as VERSION$1 } from "./version-D_miCSxz.js";
30
30
  import { t as PROCESS_ENV } from "./env-CQ831uY0.js";
31
31
  import { a as stackEnvValues, i as redactValue, o as staleVariables, t as PREFIX_NAMES } from "./stack-env-CtkfVXsR.js";
32
32
  import { n as readStackStatus } from "./stack-status-rNPCacin.js";
33
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DYgRA8-5.js";
33
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-TjFxbPdK.js";
34
34
  import { a as OPEN, c as functionsIn, i as CLOSE, l as statementEnd, n as ROUND_TRIP_RULES, o as closeOf, s as codeOnly, u as targetKeys } from "./round-trips-BHfeIu6I.js";
35
35
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-3e1LT1bn.js";
36
36
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-Eu6d45F8.js";
37
37
  import { i as plain$2 } from "./style-B5-nByxb.js";
38
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-D0UazHyQ.js";
38
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-Da7lPV1G.js";
39
39
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
40
- import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-D5BSEgUG.js";
40
+ import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
41
41
  import { existsSync } from "node:fs";
42
42
  import { dirname, join, posix, relative, resolve } from "node:path";
43
43
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -5871,9 +5871,25 @@ const appSqlTexts = (context) => sqlTexts(context).filter((file) => !file.path.i
5871
5871
  * Whether a policy expression calls `schema.name` outside a `(select ...)`, the
5872
5872
  * form Postgres prints for an InitPlan.
5873
5873
  */
5874
- function callsPerRow(expression, name) {
5875
- return new RegExp(String.raw`(?<![\w.])(?<!select\s+)(?:"?\w+"?\.)?"?${escape$3(name)}"?\s*\(`, "gi").test(expression);
5874
+ function callsPerRow(expression, name, columns) {
5875
+ const call = new RegExp(String.raw`(?<![\w.])(?<!select\s+)(?:"?\w+"?\.)?"?${escape$3(name)}"?\s*\(`, "gi");
5876
+ return [...expression.matchAll(call)].some((match) => !/\b(?:from|join)\s+$/i.test(expression.slice(0, match.index)) || readsRow(argumentsAt(expression, match.index + match[0].length), columns));
5876
5877
  }
5878
+ function argumentsAt(expression, start) {
5879
+ let depth = 1;
5880
+ let quoted = false;
5881
+ let text = "";
5882
+ for (let at = start; at < expression.length && depth > 0; at += 1) {
5883
+ const char = expression.charAt(at);
5884
+ if (char === "'") quoted = !quoted;
5885
+ else if (!quoted) {
5886
+ depth += char === "(" ? 1 : char === ")" ? -1 : 0;
5887
+ text += depth > 0 ? char : "";
5888
+ }
5889
+ }
5890
+ return text;
5891
+ }
5892
+ const readsRow = (args, columns) => args.replaceAll(/::\s*"?\w+"?/g, "").split(/\W+/).some((word) => columns.has(word.toLowerCase()));
5877
5893
  /** The body of the first `create function` of `name` among the SQL files. */
5878
5894
  function functionSource(files, name) {
5879
5895
  const pattern = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?function\s+(?:"?\w+"?\.)?"?${escape$3(name)}"?\s*\(`, "i");
@@ -5952,18 +5968,19 @@ const SCALE_RULES = [
5952
5968
  code: "BS386",
5953
5969
  severity: "warning",
5954
5970
  title: "A policy calls a volatile or PL/pgSQL function per row",
5955
- description: "A policy that calls a volatile function, or one written in PL/pgSQL, outside `(select ...)` runs it once for every row the statement reads, and a volatile function can't be hoisted or folded. A 100,000 row list then costs 100,000 calls. Wrap the call in `(select fn(...))` so Postgres evaluates it once per statement, or replace a per-row check with a set helper such as `tenant_id in (select tenant_ids_with('key'))`. A helper that is called inside `(select ...)` is accepted even when it is volatile. Policies named `bsb_*` belong to a block module and are left to `upgrade`.",
5971
+ description: "A policy that calls a volatile function, or one written in PL/pgSQL, outside `(select ...)` runs it once for every row the statement reads, and a volatile function can't be hoisted or folded. A 100,000 row list then costs 100,000 calls. Wrap the call in `(select fn(...))` so Postgres evaluates it once per statement, or replace a per-row check with a set helper such as `tenant_id in (select tenant_ids_with('key'))`. A helper that is called inside `(select ...)` is accepted even when it is volatile, and so is a set helper in the `from` of a subquery whose arguments read no column of the row, such as `id in (select t.id from thread_ids('key') as t(id))`, because Postgres calls it once and rescans its result. Policies named `bsb_*` belong to a block module and are left to `upgrade`.",
5956
5972
  check(context) {
5957
5973
  const catalog = catalogOf(context);
5958
5974
  const functions = context.snapshot.extras.functions ?? [];
5959
5975
  return catalog.tables.flatMap((table) => table.policies.flatMap((policy) => {
5960
5976
  if (policy.name.startsWith("bsb_")) return [];
5961
5977
  const expressions = [policy.using, policy.check].filter((text) => text !== null);
5978
+ const columns = new Set(table.columns.map((column) => column.name.toLowerCase()));
5962
5979
  return (policy.functions ?? []).flatMap((called) => {
5963
5980
  const schema = called.slice(0, called.indexOf("."));
5964
5981
  const name = lastPart(called);
5965
5982
  if (SYSTEM_SCHEMAS.has(schema)) return [];
5966
- if (!functions.filter((candidate) => candidate.schema === schema && candidate.name === name).some((candidate) => candidate.volatility === "volatile" || candidate.language === "plpgsql") || !expressions.some((text) => callsPerRow(text, name))) return [];
5983
+ if (!functions.filter((candidate) => candidate.schema === schema && candidate.name === name).some((candidate) => candidate.volatility === "volatile" || candidate.language === "plpgsql") || !expressions.some((text) => callsPerRow(text, name, columns))) return [];
5967
5984
  return [{
5968
5985
  message: `${qualified(table)}: the policy ${policy.name} calls ${called}() once per row. Write (select ${called}(...)) so it runs once per statement, or use a set helper.`,
5969
5986
  target: `${qualified(table)}:${policy.name}`,
@@ -2,8 +2,8 @@ import { t as byCodePoint } from "./compare-yl4sSwVn.js";
2
2
  import { r as claimMarkerOverrides } from "./authorization-CNWhpdKb.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
4
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
5
- import { a as toCatalog } from "./source-Bt6UAek-.js";
6
- import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-Bt7NcWXk.js";
5
+ import { a as toCatalog } from "./source-BBn7ypvg.js";
6
+ import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-ClqJfxAp.js";
7
7
  import { resolveBlock, resolveProviderSql } from "better-supabase/sql";
8
8
  import { DEFAULT_CLAIMS, tenantClaimPaths } from "better-supabase/config";
9
9
  import { toCamel } from "better-supabase";
@@ -1,11 +1,11 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-D0UazHyQ.js";
4
- import { m as GEN_TASKS } from "./config-DX58lDf7.js";
5
- import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-BgxoXxuF.js";
3
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-Da7lPV1G.js";
4
+ import { m as GEN_TASKS } from "./config-By5EbpdJ.js";
5
+ import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-D3kLr5we.js";
6
6
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
- import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-Bt7NcWXk.js";
8
- import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-D5BSEgUG.js";
7
+ import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-ClqJfxAp.js";
8
+ import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CvgOHwlj.js";
9
9
  // src/cli/commands/save-snapshot.ts
10
10
  /** The flags `gen --save-snapshot` reads. */
11
11
  const SAVE_SNAPSHOT_ARGS = {
@@ -1,17 +1,17 @@
1
1
  import { c as parseNames, i as failedResult, n as CliError } from "./errors-B7i-VGxk.js";
2
- import { n as runGen } from "./run-CfWFddfH.js";
3
- import { l as catalogFingerprint } from "./cache-CNa3fjK-.js";
2
+ import { n as runGen } from "./run-DKHipy0c.js";
3
+ import { l as catalogFingerprint } from "./cache-D6iHVy6b.js";
4
4
  import { i as plain } from "./style-B5-nByxb.js";
5
- import { g as isGenTask, m as GEN_TASKS } from "./config-DX58lDf7.js";
5
+ import { g as isGenTask, m as GEN_TASKS } from "./config-By5EbpdJ.js";
6
6
  import { i as runEnv } from "./env-DtJNOdyD.js";
7
- import { n as runPowerSync } from "./powersync-r6iL7zEo.js";
8
- import { t as runSeed } from "./seed-pDWlnzyK.js";
9
- import { r as specOptionsFromConfig, t as runSpec } from "./spec-DsNayDt2.js";
10
- import { t as addModules } from "./add-CN5jkEFM.js";
11
- import { n as listModules, t as printModule } from "./print-Ca78W5ZF.js";
12
- import { o as dataMigration, t as syncModules } from "./sync-DFAkNjw_.js";
13
- import { t as upgrade } from "./upgrade-DP-30QID.js";
14
- import { d as loadSnapshot } from "./sql-layout-Bt7NcWXk.js";
7
+ import { n as runPowerSync } from "./powersync-01LIe9WO.js";
8
+ import { t as runSeed } from "./seed-BufZFJ_Q.js";
9
+ import { r as specOptionsFromConfig, t as runSpec } from "./spec-COv0ojkG.js";
10
+ import { t as addModules } from "./add-DLYO-lcP.js";
11
+ import { n as listModules, t as printModule } from "./print-CoDV1AZr.js";
12
+ import { o as dataMigration, t as syncModules } from "./sync-Ba5EvTIT.js";
13
+ import { t as upgrade } from "./upgrade-DI4ZTrXV.js";
14
+ import { d as loadSnapshot } from "./sql-layout-ClqJfxAp.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
17
17
  // src/cli/commands/sql.ts
@@ -864,5 +864,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
864
864
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
865
865
  readonly legacyTables?: boolean;
866
866
  }): Promise<ResolvedConfig>;
867
- export declare const VERSION = "0.61.0";
867
+ export declare const VERSION = "0.62.0";
868
868
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CliValues, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
package/dist/cli/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-DEPt1rAn.js";
1
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-DcjkMeLQ.js";
2
2
  import { a as list, r as defineCliCommand } from "./command-fqvJ0TdG.js";
3
3
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-B7i-VGxk.js";
4
- import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-Bfh2EtMO.js";
5
- import { n as runGen } from "./run-CfWFddfH.js";
6
- import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-Bt7NcWXk.js";
7
- import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-OhupwGNp.js";
8
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-Bt6UAek-.js";
9
- import { s as loadConfig } from "./config-DX58lDf7.js";
10
- import { t as VERSION } from "./version-CHVFvh95.js";
4
+ import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-g0u-8VRx.js";
5
+ import { n as runGen } from "./run-DKHipy0c.js";
6
+ import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-ClqJfxAp.js";
7
+ import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-DGhalWTA.js";
8
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BBn7ypvg.js";
9
+ import { s as loadConfig } from "./config-By5EbpdJ.js";
10
+ import { t as VERSION } from "./version-D_miCSxz.js";
11
11
  // src/cli/introspect/from-catalog.ts
12
12
  /**
13
13
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
@@ -1,17 +1,17 @@
1
- import { a as findConfig, s as loadConfig } from "./config-DX58lDf7.js";
2
- import { r as contentMapperFiles } from "./content-mapper-TATvvrmb.js";
3
- import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-ucxskHiv.js";
1
+ import { a as findConfig, s as loadConfig } from "./config-By5EbpdJ.js";
2
+ import { r as contentMapperFiles } from "./content-mapper-BGus1ryq.js";
3
+ import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-DH4qqKNb.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
6
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
7
  import { r as readIfExists } from "./io-CngfGyMA.js";
8
- import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-DYgRA8-5.js";
9
- import { c as enablePgDelta, t as syncModules } from "./sync-DFAkNjw_.js";
10
- import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-Bt7NcWXk.js";
11
- import { a as toCatalog } from "./source-Bt6UAek-.js";
12
- import { c as TYPEGEN_VERSION } from "./cache-CNa3fjK-.js";
8
+ import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-TjFxbPdK.js";
9
+ import { c as enablePgDelta, t as syncModules } from "./sync-Ba5EvTIT.js";
10
+ import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-ClqJfxAp.js";
11
+ import { a as toCatalog } from "./source-BBn7ypvg.js";
12
+ import { c as TYPEGEN_VERSION } from "./cache-D6iHVy6b.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
14
- import { t as appTablePlan } from "./app-table-files-FcgTfOf9.js";
14
+ import { t as appTablePlan } from "./app-table-files--ulI7C3Z.js";
15
15
  import { i as plain } from "./style-B5-nByxb.js";
16
16
  import { existsSync } from "node:fs";
17
17
  import { join, posix, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-B7i-VGxk.js";
2
- import "./source-Bt6UAek-.js";
3
- import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-BrAtQXmC.js";
2
+ import "./source-BBn7ypvg.js";
3
+ import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-BL_SZdUw.js";
4
4
  // src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,9 +1,9 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
- import { a as errorDocument, i as run } from "./run-DEPt1rAn.js";
2
+ import { a as errorDocument, i as run } from "./run-DcjkMeLQ.js";
3
3
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-CQ831uY0.js";
4
4
  import { n as consentDigest } from "./agent-BlYLJPzM.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
- import { t as VERSION } from "./version-CHVFvh95.js";
6
+ import { t as VERSION } from "./version-D_miCSxz.js";
7
7
  import { createInterface } from "node:readline";
8
8
  import { answerLine } from "better-supabase/mcp";
9
9
  // src/cli/mcp/server.ts
@@ -1,5 +1,5 @@
1
1
  import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
2
- import { t as VERSION } from "./version-CHVFvh95.js";
2
+ import { t as VERSION } from "./version-D_miCSxz.js";
3
3
  import { n as cacheEnabled, r as cacheRoot } from "./store-DP-nmqBt.js";
4
4
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
2
2
  import { i as readStdin } from "./io-CngfGyMA.js";
3
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-CfWFddfH.js";
4
- import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-Bt7NcWXk.js";
5
- import { c as metaPaths } from "./emit-OhupwGNp.js";
6
- import { n as render } from "./render-Bfh2EtMO.js";
3
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-DKHipy0c.js";
4
+ import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-ClqJfxAp.js";
5
+ import { c as metaPaths } from "./emit-DGhalWTA.js";
6
+ import { n as render } from "./render-g0u-8VRx.js";
7
7
  import { basename, join, relative, resolve, sep } from "node:path";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { jsonSchema } from "better-supabase/generators/json-schema";
@@ -1,6 +1,6 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
3
- import { t as appTablePlan } from "./app-table-files-FcgTfOf9.js";
3
+ import { t as appTablePlan } from "./app-table-files--ulI7C3Z.js";
4
4
  import { i as plain } from "./style-B5-nByxb.js";
5
5
  // src/cli/commands/migrate.ts
6
6
  const MIGRATE_ARGS = {};
@@ -1,5 +1,5 @@
1
- import { h as INTEGRATIONS } from "./config-DX58lDf7.js";
2
- import { l as schemaModulePath } from "./emit-OhupwGNp.js";
1
+ import { h as INTEGRATIONS } from "./config-By5EbpdJ.js";
2
+ import { l as schemaModulePath } from "./emit-DGhalWTA.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { splitStatements } from "better-supabase/sql";
@@ -1,5 +1,5 @@
1
1
  import { i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
2
- import { i as migrationsDir, l as sqlPlan } from "./sql-layout-Bt7NcWXk.js";
2
+ import { i as migrationsDir, l as sqlPlan } from "./sql-layout-ClqJfxAp.js";
3
3
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
5
5
  import { resolve } from "node:path";
@@ -1,10 +1,10 @@
1
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
1
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-By5EbpdJ.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-DmvnAvGV.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
6
+ import { n as ident } from "./live-CJ3gBXTW.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CvgOHwlj.js";
8
8
  // src/cli/commands/partition.ts
9
9
  const DEFAULT_BATCH = 5e4;
10
10
  const PROCEDURE = "convert_audit_log_to_partitioned";
@@ -1,11 +1,11 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
3
3
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
4
- import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-Bt7NcWXk.js";
4
+ import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-ClqJfxAp.js";
5
5
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
6
- import { r as layoutFor } from "./providers-DhMSptuy.js";
7
- import { n as renderBlocksCached } from "./render-cache-BYkVt264.js";
8
- import { d as subjectFromTag } from "./config-DX58lDf7.js";
6
+ import { r as layoutFor } from "./providers-B3VKJOGS.js";
7
+ import { n as renderBlocksCached } from "./render-cache-Dkkervpu.js";
8
+ import { d as subjectFromTag } from "./config-By5EbpdJ.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { join, resolve } from "node:path";
11
11
  import { readFile, readdir } from "node:fs/promises";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-01LIe9WO.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-B7i-VGxk.js";
2
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-CRsIlrig.js";
3
- import { n as layout } from "./providers-DhMSptuy.js";
2
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BOwCFfuw.js";
3
+ import { n as layout } from "./providers-B3VKJOGS.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { resolve } from "node:path";
6
6
  import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { a as entitlementsMode, o as moduleKeyProblems, t as accessProviderMode } from "./authorization-CNWhpdKb.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
4
- import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-Bt7NcWXk.js";
4
+ import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-ClqJfxAp.js";
5
5
  import { moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
6
6
  import { FormerPermissionKeyError } from "better-supabase/config";
7
7
  // src/cli/sql/providers.ts
@@ -1,10 +1,10 @@
1
- import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
1
+ import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-By5EbpdJ.js";
2
2
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-DmvnAvGV.js";
7
- import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
6
+ import { n as ident } from "./live-CJ3gBXTW.js";
7
+ import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CvgOHwlj.js";
8
8
  // src/cli/commands/prune-workflows.ts
9
9
  const TERMINAL = [
10
10
  "completed",
@@ -2,15 +2,15 @@ import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-NnXnawki.js";
4
4
  import { r as readIfExists, t as display } from "./io-CngfGyMA.js";
5
- import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-ucxskHiv.js";
5
+ import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-DH4qqKNb.js";
6
6
  import { t as detectProject } from "./detect-CHR-SAmE.js";
7
- import { l as sqlPlan } from "./sql-layout-Bt7NcWXk.js";
8
- import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-CN5jkEFM.js";
7
+ import { l as sqlPlan } from "./sql-layout-ClqJfxAp.js";
8
+ import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-DLYO-lcP.js";
9
9
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
10
- import { r as layoutFor } from "./providers-DhMSptuy.js";
11
- import { n as guardedRemoval } from "./sync-DFAkNjw_.js";
10
+ import { r as layoutFor } from "./providers-B3VKJOGS.js";
11
+ import { n as guardedRemoval } from "./sync-Ba5EvTIT.js";
12
12
  import { i as plain } from "./style-B5-nByxb.js";
13
- import { t as blockNames } from "./blocks-iSEepN2Y.js";
13
+ import { t as blockNames } from "./blocks-D7DYKEOZ.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import { resolve } from "node:path";
16
16
  import { readFile } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
- import { t as VERSION } from "./version-CHVFvh95.js";
2
+ import { t as VERSION } from "./version-D_miCSxz.js";
3
3
  import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";