better-supabase 0.36.0 → 0.37.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 (360) hide show
  1. package/dist/{ai-schedules-BZPmySUa.d.ts → ai-schedules-ChJkI2jo.d.ts} +1 -1
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/ai-sdk/batches/index.d.ts +1 -1
  4. package/dist/ai-sdk/index.d.ts +1 -1
  5. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  6. package/dist/{api-XEaCJbgv.d.ts → api-CbY2qdzT.d.ts} +3 -3
  7. package/dist/{api-keys-C82fMru4.d.ts → api-keys-BncNDlWG.d.ts} +1 -1
  8. package/dist/{app-tables-C0XVpQEJ.d.ts → app-tables-BlhdqqHf.d.ts} +1 -1
  9. package/dist/{approvals-DqCv7f-G.d.ts → approvals-CXW3yFWZ.d.ts} +1 -1
  10. package/dist/astro/index.d.ts +5 -5
  11. package/dist/{authorization-2Rv1AJQJ.d.ts → authorization-C7yjZttV.d.ts} +44 -18
  12. package/dist/{authorization-hooks-C0GfMvFm.d.ts → authorization-hooks-CR8TVvqo.d.ts} +1 -1
  13. package/dist/better-result/index.d.ts +2 -2
  14. package/dist/{bind-C2XvMlfg.d.ts → bind-BspFMDdW.d.ts} +4 -4
  15. package/dist/{block-env-BQrtLPyc.d.ts → block-env-CLco8YUl.d.ts} +4 -4
  16. package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-DfomofFv.d.ts} +1 -1
  17. package/dist/blocks/access-requests/index.d.ts +2 -2
  18. package/dist/blocks/activities/index.d.ts +3 -3
  19. package/dist/blocks/agents/index.d.ts +2 -2
  20. package/dist/blocks/ai-cache/index.d.ts +1 -1
  21. package/dist/blocks/ai-chat/index.d.ts +5 -5
  22. package/dist/blocks/ai-files/index.d.ts +1 -1
  23. package/dist/blocks/ai-keys/index.d.ts +3 -3
  24. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  25. package/dist/blocks/announcements/index.d.ts +5 -5
  26. package/dist/blocks/api-keys/index.d.ts +2 -2
  27. package/dist/blocks/approvals/index.d.ts +3 -3
  28. package/dist/blocks/assets/index.d.ts +2 -2
  29. package/dist/blocks/assignment/index.d.ts +3 -3
  30. package/dist/blocks/attachments/index.d.ts +3 -3
  31. package/dist/blocks/audit/index.d.ts +7 -7
  32. package/dist/blocks/automations/index.d.ts +5 -5
  33. package/dist/blocks/billable-time/index.d.ts +2 -2
  34. package/dist/blocks/billing/index.d.ts +5 -5
  35. package/dist/blocks/bookings/index.d.ts +3 -3
  36. package/dist/blocks/bulk/index.d.ts +2 -2
  37. package/dist/blocks/calendar/index.d.ts +3 -3
  38. package/dist/blocks/catalog/index.d.ts +22 -3
  39. package/dist/blocks/catalog/index.js +31 -2
  40. package/dist/blocks/channels/index.d.ts +3 -3
  41. package/dist/blocks/collections/index.d.ts +3 -3
  42. package/dist/blocks/comments/index.d.ts +5 -5
  43. package/dist/blocks/compliance/index.d.ts +2 -2
  44. package/dist/blocks/connectors/index.d.ts +3 -3
  45. package/dist/blocks/contacts/index.d.ts +3 -3
  46. package/dist/blocks/content/index.d.ts +2 -2
  47. package/dist/blocks/contracts/index.d.ts +2 -2
  48. package/dist/blocks/courses/index.d.ts +2 -2
  49. package/dist/blocks/created-by/index.d.ts +1 -1
  50. package/dist/blocks/custom-fields/index.d.ts +2 -2
  51. package/dist/blocks/data-lifecycle/index.d.ts +4 -4
  52. package/dist/blocks/deals/index.d.ts +3 -3
  53. package/dist/blocks/dispatch/index.d.ts +2 -2
  54. package/dist/blocks/documents/index.d.ts +2 -2
  55. package/dist/blocks/domains/index.d.ts +2 -2
  56. package/dist/blocks/donations/index.d.ts +2 -2
  57. package/dist/blocks/drive/index.d.ts +3 -3
  58. package/dist/blocks/employees/index.d.ts +4 -4
  59. package/dist/blocks/enrichment/index.d.ts +3 -3
  60. package/dist/blocks/enrollments/index.d.ts +2 -2
  61. package/dist/blocks/entitlements/index.d.ts +3 -3
  62. package/dist/blocks/expenses/index.d.ts +2 -2
  63. package/dist/blocks/field-history/index.d.ts +1 -1
  64. package/dist/blocks/flags/index.d.ts +2 -2
  65. package/dist/blocks/forecasts/index.d.ts +3 -3
  66. package/dist/blocks/forms/index.d.ts +3 -3
  67. package/dist/blocks/goals/index.d.ts +1 -1
  68. package/dist/blocks/guests/index.d.ts +2 -2
  69. package/dist/blocks/hiring/index.d.ts +3 -3
  70. package/dist/blocks/identities/index.d.ts +2 -2
  71. package/dist/blocks/imports/index.d.ts +2 -2
  72. package/dist/blocks/inbox/index.d.ts +6 -6
  73. package/dist/blocks/incidents/index.d.ts +2 -2
  74. package/dist/blocks/index.d.ts +4 -4
  75. package/dist/blocks/inventory/index.d.ts +171 -10
  76. package/dist/blocks/inventory/index.js +206 -13
  77. package/dist/blocks/invoices/index.d.ts +3 -3
  78. package/dist/blocks/knowledge/index.d.ts +1 -1
  79. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  80. package/dist/blocks/leases/index.d.ts +2 -2
  81. package/dist/blocks/leave/index.d.ts +2 -2
  82. package/dist/blocks/ledger/index.d.ts +2 -2
  83. package/dist/blocks/mail-sync/index.d.ts +3 -3
  84. package/dist/blocks/memberships/index.d.ts +1 -1
  85. package/dist/blocks/memory/index.d.ts +1 -1
  86. package/dist/blocks/messaging/index.d.ts +7 -7
  87. package/dist/blocks/metrics/index.d.ts +2 -2
  88. package/dist/blocks/mfa/index.d.ts +2 -2
  89. package/dist/blocks/moderation/index.d.ts +2 -2
  90. package/dist/blocks/notifications/index.d.ts +7 -7
  91. package/dist/blocks/numbering/index.d.ts +2 -2
  92. package/dist/blocks/oauth-server/index.d.ts +2 -2
  93. package/dist/blocks/onboarding/index.d.ts +2 -2
  94. package/dist/blocks/orders/index.d.ts +80 -13
  95. package/dist/blocks/orders/index.js +63 -4
  96. package/dist/blocks/organizations/index.d.ts +4 -4
  97. package/dist/blocks/outbox/index.d.ts +2 -2
  98. package/dist/blocks/passes/index.d.ts +2 -2
  99. package/dist/blocks/permissions/index.d.ts +3 -3
  100. package/dist/blocks/pipelines/index.d.ts +3 -3
  101. package/dist/blocks/posts/index.d.ts +2 -2
  102. package/dist/blocks/profiles/index.d.ts +1 -1
  103. package/dist/blocks/promotions/index.d.ts +3 -3
  104. package/dist/blocks/promotions/index.js +1 -1
  105. package/dist/blocks/push/index.d.ts +3 -3
  106. package/dist/blocks/queue/index.d.ts +1 -1
  107. package/dist/blocks/quotes/index.d.ts +3 -3
  108. package/dist/blocks/rank/index.d.ts +1 -1
  109. package/dist/blocks/reactions/index.d.ts +5 -5
  110. package/dist/blocks/relations/index.d.ts +2 -2
  111. package/dist/blocks/reminders/index.d.ts +3 -3
  112. package/dist/blocks/reviews/index.d.ts +2 -2
  113. package/dist/blocks/saved-views/index.d.ts +4 -4
  114. package/dist/blocks/scores/index.d.ts +2 -2
  115. package/dist/blocks/search/index.d.ts +4 -4
  116. package/dist/blocks/security-events/index.d.ts +3 -3
  117. package/dist/blocks/segments/index.d.ts +3 -3
  118. package/dist/blocks/sequences/index.d.ts +2 -2
  119. package/dist/blocks/service-accounts/index.d.ts +2 -2
  120. package/dist/blocks/sessions/index.d.ts +2 -2
  121. package/dist/blocks/settings/index.d.ts +3 -3
  122. package/dist/blocks/share-links/index.d.ts +2 -2
  123. package/dist/blocks/shipments/index.d.ts +73 -4
  124. package/dist/blocks/shipments/index.js +57 -4
  125. package/dist/blocks/signatures/index.d.ts +2 -2
  126. package/dist/blocks/signing-keys/index.d.ts +2 -2
  127. package/dist/blocks/sla/index.d.ts +3 -3
  128. package/dist/blocks/sso/index.d.ts +3 -3
  129. package/dist/blocks/state-machine/index.d.ts +9 -2
  130. package/dist/blocks/state-machine/index.js +2 -0
  131. package/dist/blocks/subjects/index.d.ts +2 -2
  132. package/dist/blocks/tags/index.d.ts +3 -3
  133. package/dist/blocks/tasks/index.d.ts +5 -5
  134. package/dist/blocks/teams/index.d.ts +2 -2
  135. package/dist/blocks/templates/index.d.ts +122 -9
  136. package/dist/blocks/templates/index.js +157 -7
  137. package/dist/blocks/time-tracking/index.d.ts +3 -3
  138. package/dist/blocks/timeline/index.d.ts +9 -7
  139. package/dist/blocks/timeline/index.js +3 -1
  140. package/dist/blocks/trash/index.d.ts +2 -2
  141. package/dist/blocks/undo/index.d.ts +2 -2
  142. package/dist/blocks/updated-at/index.d.ts +1 -1
  143. package/dist/blocks/usage/index.d.ts +2 -2
  144. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  145. package/dist/blocks/versions/index.d.ts +2 -2
  146. package/dist/blocks/waitlist/index.d.ts +2 -2
  147. package/dist/blocks/webhooks/index.d.ts +6 -6
  148. package/dist/blocks/workflow-editor/index.d.ts +7 -7
  149. package/dist/blocks/workflows/index.d.ts +5 -5
  150. package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
  151. package/dist/chat-sdk/index.d.ts +2 -2
  152. package/dist/claims/index.d.ts +5 -5
  153. package/dist/cli/add-8zKWiO0X.js +1 -0
  154. package/dist/cli/{add-D2CH8t_B.js → add-Buuy7BSU.js} +2 -2
  155. package/dist/cli/{add-Duf1-19E.js → add-DqfJVb1F.js} +11 -11
  156. package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-Ku-4tPUu.js} +2 -2
  157. package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-Dg0sh4dH.js} +2 -2
  158. package/dist/cli/{backfill-CLgA6-ll.js → backfill-Dspz6kVJ.js} +2 -2
  159. package/dist/cli/bin.js +1 -1
  160. package/dist/cli/{blocks-BVB1fMMj.js → blocks-B8LAph-w.js} +1 -1
  161. package/dist/cli/{blocks-9AeouX4h.js → blocks-CqVBlc4L.js} +2 -2
  162. package/dist/cli/{cache-aMk9vF1_.js → cache-BbuuCIRU.js} +1 -1
  163. package/dist/cli/{codemod-B5wrcnF2.js → codemod-DIAy8uXt.js} +88 -62
  164. package/dist/cli/{command-DM_x_yzZ.js → command-67WobzTC.js} +7 -1
  165. package/dist/cli/{completion-DbYb3N8e.js → completion-C3nMZgUZ.js} +2 -2
  166. package/dist/cli/{completion-CusuUJNn.js → completion-DSrus7H1.js} +1 -1
  167. package/dist/cli/{completion-Cx2UYd-y.js → completion-Dm0S3ub0.js} +2 -2
  168. package/dist/cli/{config-BeuImpav.js → config-cbK-wiNs.js} +1 -1
  169. package/dist/cli/{content-mapper-CEtdbshU.js → content-mapper-NXfJ5VkP.js} +2 -2
  170. package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
  171. package/dist/cli/{doctor-DaOUWfRN.js → doctor-CUOyLE0c.js} +16 -16
  172. package/dist/cli/env-AFfMXxWw.js +1 -0
  173. package/dist/cli/{env-DVV10l_r.js → env-CCT-dMFm.js} +1 -1
  174. package/dist/cli/{gen-BO-2NF-G.js → gen-s9canfdC.js} +14 -14
  175. package/dist/cli/index.d.ts +1 -1
  176. package/dist/cli/index.js +7 -7
  177. package/dist/cli/{init-Xit9Hnbb.js → init-Zs0Ca5on.js} +9 -9
  178. package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
  179. package/dist/cli/{live-CuMpyRjF.js → live-BaLsNove.js} +2 -2
  180. package/dist/cli/{mcp-C7d4j5cq.js → mcp-ST7bVpJD.js} +3 -3
  181. package/dist/cli/{metadata-D2YvkY2D.js → metadata-aOvlCOOg.js} +3 -3
  182. package/dist/cli/{migrate-BCXxyTKt.js → migrate-ClBx3Ggx.js} +2 -2
  183. package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-mjm1pghO.js} +1 -1
  184. package/dist/cli/{migrations-nomh4TBo.js → migrations-tzItvwxT.js} +2 -2
  185. package/dist/cli/{module-migration--9T_T-zt.js → module-migration-D0Rjdvdx.js} +2 -2
  186. package/dist/cli/{moved-CT6i1csY.js → moved-CY0yDtAr.js} +1 -1
  187. package/dist/cli/{parse-qgJylE_A.js → parse-yAC-NFMq.js} +1 -1
  188. package/dist/cli/{powersync-DB9WZsIv.js → powersync-DryX_DMG.js} +4 -4
  189. package/dist/cli/powersync-vvu2-72V.js +1 -0
  190. package/dist/cli/{print-S6IF5rZm.js → print-fOUnKwA9.js} +2 -2
  191. package/dist/cli/{providers-BDTcal71.js → providers-BR1d_5jA.js} +1 -1
  192. package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-CCjzNrxl.js} +2 -2
  193. package/dist/cli/{remove-CPX5Tg5s.js → remove-B_0OIusa.js} +6 -6
  194. package/dist/cli/{render-Bp7a7XQ9.js → render-BCJKDX3c.js} +3 -3
  195. package/dist/cli/{run-BclCFEyP.js → run-4VUQTR-R.js} +9 -9
  196. package/dist/cli/{run-kgG50x_Z.js → run-BctvQX_g.js} +44 -43
  197. package/dist/cli/{run-BlVaLnt_.js → run-DX4X7xqV.js} +2 -2
  198. package/dist/cli/seed-CLlvrV8I.js +1 -0
  199. package/dist/cli/{seed-Cn2R91cd.js → seed-DSC6f0oh.js} +1 -1
  200. package/dist/cli/{shared-D60W9NS-.js → shared-oY7PGamd.js} +1 -1
  201. package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
  202. package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-CWtER9-4.js} +2 -2
  203. package/dist/cli/{source-Bk6XwIAK.js → source-D4uav_v9.js} +1 -1
  204. package/dist/cli/{spec-BDTpcBns.js → spec-BPsyEzqH.js} +1 -1
  205. package/dist/cli/{spec-C8ydQwZC.js → spec-DTnBeaCD.js} +3 -3
  206. package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-DbhEQqq0.js} +2 -2
  207. package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
  208. package/dist/cli/{sync-D-WO4Yvl.js → sync-CazH5FX4.js} +4 -4
  209. package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
  210. package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-Cyx6ESpc.js} +5 -5
  211. package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-Dyb4-f0Q.js} +3 -3
  212. package/dist/cli/{version-DKfeme2I.js → version-D1ZKUFng.js} +1 -1
  213. package/dist/client/index.d.ts +5 -5
  214. package/dist/client/native/index.d.ts +4 -4
  215. package/dist/{cloud-event-BEmAUdl1.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
  216. package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
  217. package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
  218. package/dist/{composite-B-oAH16L.d.ts → composite-DPN4SFud.d.ts} +6 -6
  219. package/dist/config/index.d.ts +2 -2
  220. package/dist/config/index.js +4 -4
  221. package/dist/{config-BrRlSxhx.js → config-Dx3bEPlX.js} +1 -1
  222. package/dist/{config-BKxjItQ-.js → config-uSliwPS6.js} +3 -3
  223. package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
  224. package/dist/{context-yfOlyAqb.d.ts → context-D6OZQdcT.d.ts} +2 -2
  225. package/dist/contract/index.d.ts +8 -8
  226. package/dist/{controller-CAcLEndc.d.ts → controller-DhcSXkAC.d.ts} +1 -1
  227. package/dist/{conversion-s1NtB6S-.d.ts → conversion-CLBBITW5.d.ts} +1 -1
  228. package/dist/create/index.d.ts +3 -3
  229. package/dist/create/index.js +3 -3
  230. package/dist/create/lite/index.d.ts +3 -3
  231. package/dist/create/lite/index.js +2 -2
  232. package/dist/credentials/index.d.ts +3 -3
  233. package/dist/{define-BvkaC3Oh.d.ts → define-C_He1bQO.d.ts} +1 -1
  234. package/dist/{define-block-Ds3aLZwz.d.ts → define-block-CDw9YGVh.d.ts} +4 -4
  235. package/dist/edge/index.d.ts +8 -8
  236. package/dist/elysia/index.d.ts +1 -1
  237. package/dist/{ended-iq2wp8fc.d.ts → ended-BwpmNC5k.d.ts} +1 -1
  238. package/dist/{entitlements-Dhu-4vlH.d.ts → entitlements-Bi4y8w8e.d.ts} +2 -2
  239. package/dist/eve/index.d.ts +3 -3
  240. package/dist/events/index.d.ts +3 -3
  241. package/dist/{events-DCw3c6pj.d.ts → events-DddDlibJ.d.ts} +8 -0
  242. package/dist/{executor-H8ZLkeHj.d.ts → executor-CxMHiDp_.d.ts} +2 -2
  243. package/dist/{executor-B-o7QMPp.d.ts → executor-uNDJBzT8.d.ts} +1 -1
  244. package/dist/expo/index.d.ts +3 -3
  245. package/dist/{field-errors-DXZk9Qjt.d.ts → field-errors-CJ_i6HFg.d.ts} +7 -7
  246. package/dist/flags-sdk/index.d.ts +1 -1
  247. package/dist/{framework-Byr_j8G-.d.ts → framework-B6JAPr1i.d.ts} +7 -7
  248. package/dist/h3/index.d.ts +1 -1
  249. package/dist/h3/v1/index.d.ts +1 -1
  250. package/dist/hono/index.d.ts +8 -8
  251. package/dist/{index-Dv6lfL5p.d.ts → index-Bc5t2QRU.d.ts} +11 -11
  252. package/dist/{index-6H-8Ib1w.d.ts → index-Bm1ftdBA.d.ts} +3 -3
  253. package/dist/{index-lMApFSAd.d.ts → index-C71uHfVj.d.ts} +3 -3
  254. package/dist/{index-C78VPlXW.d.ts → index-CRwpDGxd.d.ts} +1 -1
  255. package/dist/{index-CnzGRpeH.d.ts → index-Cbwvf4yE.d.ts} +5 -5
  256. package/dist/{index-kkZwp5M1.d.ts → index-ChvuVimY.d.ts} +4 -4
  257. package/dist/{index-Ag-T51Jl.d.ts → index-CvLTqmdq.d.ts} +1 -1
  258. package/dist/{index-Dbd1E5Au.d.ts → index-DAS_5OfK.d.ts} +3 -3
  259. package/dist/{index-CY612vAg.d.ts → index-DjJUamhw.d.ts} +2 -2
  260. package/dist/{index-BUluRi0b.d.ts → index-DrDCN45q.d.ts} +5 -5
  261. package/dist/index.d.ts +2 -2
  262. package/dist/{instances-xQ2lupVE.js → instances-DKULdpWB.js} +73 -6
  263. package/dist/{kit-DCuO1ZhB.d.ts → kit-lHFpu2_1.d.ts} +3 -3
  264. package/dist/list/index.d.ts +1 -1
  265. package/dist/{list-query-D1h3Dmnk.d.ts → list-query-BkbLV-Yc.d.ts} +1 -1
  266. package/dist/mapper/bin.js +5 -5
  267. package/dist/mcp/index.d.ts +3 -3
  268. package/dist/mcp/sdk/index.d.ts +5 -5
  269. package/dist/nestjs/index.d.ts +2 -2
  270. package/dist/next/client/index.d.ts +1 -1
  271. package/dist/next/index.d.ts +22 -22
  272. package/dist/node/index.d.ts +2 -2
  273. package/dist/{operations-SWpzGC_K.d.ts → operations-BDjgCmT9.d.ts} +1 -1
  274. package/dist/{options-DqmTs2nv.js → options-CEwoGUk_.js} +2 -1
  275. package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
  276. package/dist/orpc/index.d.ts +7 -7
  277. package/dist/otel/index.d.ts +1 -1
  278. package/dist/otel/index.js +4 -4
  279. package/dist/{outbox-BFZS6Kvz.d.ts → outbox-DikdzUKf.d.ts} +2 -2
  280. package/dist/{permissions-2UlVQDzY.d.ts → permissions-BGx22GP3.d.ts} +1 -1
  281. package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
  282. package/dist/{ports-prqYrReN.d.ts → ports-D63bA3p4.d.ts} +1 -1
  283. package/dist/postgres/index.d.ts +1 -1
  284. package/dist/powersync/index.d.ts +3 -3
  285. package/dist/preset/index.d.ts +3 -3
  286. package/dist/preset/index.js +3 -3
  287. package/dist/{preset-BvHNleCo.js → preset-oc_liUHz.js} +2 -2
  288. package/dist/{project-CBvowdKY.js → project-Cs0kz5OP.js} +5 -5
  289. package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
  290. package/dist/{push-token-DtqJeg8w.d.ts → push-token-BsyX0KlT.d.ts} +1 -1
  291. package/dist/query/index.d.ts +1 -1
  292. package/dist/react/index.d.ts +8 -8
  293. package/dist/react/native/index.d.ts +1 -1
  294. package/dist/react/server.d.ts +9 -9
  295. package/dist/react/session.d.ts +1 -1
  296. package/dist/react-router/index.d.ts +5 -5
  297. package/dist/realtime/index.d.ts +4 -4
  298. package/dist/{record-form-BQA-lawE.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
  299. package/dist/records/index.d.ts +7 -7
  300. package/dist/{refusal-BX1EvmpJ.d.ts → refusal-CjUUBfhY.d.ts} +2 -2
  301. package/dist/{resolve-BIpQRhvF.d.ts → resolve-XlMQRUeG.d.ts} +1 -1
  302. package/dist/{resolved-names-b6P2--jK.js → resolved-names-sd6RuTju.js} +1 -1
  303. package/dist/{resource-execute-A1NbR-sd.d.ts → resource-execute-B7-QaS6R.d.ts} +1 -1
  304. package/dist/{resource-types-CTcc37WL.d.ts → resource-types-CF3Uc6OW.d.ts} +2 -2
  305. package/dist/{resources-13ZFX1G6.d.ts → resources-DnHSmJIM.d.ts} +1 -1
  306. package/dist/{respond-CAxhkwAi.d.ts → respond-D7kUatjc.d.ts} +1 -1
  307. package/dist/server/index.d.ts +21 -21
  308. package/dist/{server-types-DEjva0MW.d.ts → server-types-DpI82uNq.d.ts} +8 -8
  309. package/dist/{session-CeYL3EPm.d.ts → session-JV1z0kxa.d.ts} +2 -2
  310. package/dist/{session-BA0YDmjt.d.ts → session-s-mUZ8RQ.d.ts} +5 -5
  311. package/dist/{session-status-Df6tuKY9.d.ts → session-status-CJjTuFtA.d.ts} +2 -2
  312. package/dist/{sign-in-4u4vLtXG.d.ts → sign-in-D5Bg7R47.d.ts} +1 -1
  313. package/dist/solid/index.d.ts +9 -9
  314. package/dist/solid-start/index.d.ts +5 -5
  315. package/dist/spec/index.d.ts +1 -1
  316. package/dist/sql/index.d.ts +5 -5
  317. package/dist/sql/index.js +3 -3
  318. package/dist/{sql-BChN3Hxv.js → sql-CWYbu_6y.js} +3853 -714
  319. package/dist/sqlite/index.d.ts +1 -1
  320. package/dist/ssr/index.d.ts +4 -4
  321. package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
  322. package/dist/stock-detail-BMqvwq1q.js +12 -0
  323. package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
  324. package/dist/{subject-readers-YL8H9G8X.d.ts → subject-readers-D1Km_Q42.d.ts} +1 -1
  325. package/dist/{support-BwtMgjVg.d.ts → support-Dj5V2WTs.d.ts} +4 -4
  326. package/dist/{support-view-GykHOIQ2.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
  327. package/dist/svelte/index.d.ts +8 -8
  328. package/dist/sveltekit/index.d.ts +6 -6
  329. package/dist/{tags-CAfvzA1U.d.ts → tags-BihwKkTT.d.ts} +1 -1
  330. package/dist/tanstack-db/index.d.ts +1 -1
  331. package/dist/tanstack-start/index.d.ts +5 -5
  332. package/dist/{tenant-lBgoqg9T.d.ts → tenant-DqnE50Ju.d.ts} +1 -1
  333. package/dist/testing/index.d.ts +17 -17
  334. package/dist/testing/index.js +2 -2
  335. package/dist/{timeline-CrO48Qa6.d.ts → timeline-c6I3uxya.d.ts} +3 -3
  336. package/dist/{topic-x-mrN_Ff.d.ts → topic-Dp7VGPd-.d.ts} +3 -3
  337. package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
  338. package/dist/{types-CJqNGQKb.d.ts → types-DLXTmZtm.d.ts} +2 -2
  339. package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
  340. package/dist/{vault-DjbG4XQS.d.ts → vault-CbhvnoVC.d.ts} +1 -1
  341. package/dist/vercel-connect/index.d.ts +1 -1
  342. package/dist/vercel-sandbox/index.d.ts +1 -1
  343. package/dist/{verify-HOiu3lRR.d.ts → verify-Cpc1upDA.d.ts} +1 -1
  344. package/dist/{view-DdDY88SC.d.ts → view-eHgOOyRS.d.ts} +1 -1
  345. package/dist/vue/index.d.ts +9 -9
  346. package/dist/{watch-topic-D6bcqOrJ.d.ts → watch-topic-CtJAkWT4.d.ts} +1 -1
  347. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  348. package/dist/workflow-sdk/index.d.ts +1 -1
  349. package/dist/workflow-sdk/world/index.d.ts +1 -1
  350. package/dist/workflow-sdk/world/index.js +1 -1
  351. package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
  352. package/dist/{workflow-sdk-CBS8L2Ku.js → workflow-sdk-pB1jCLIL.js} +21 -1
  353. package/dist/yjs/index.d.ts +1 -1
  354. package/package.json +1 -1
  355. package/schemas/config-v1.json +5 -0
  356. package/skills/better-supabase-auth/SKILL.md +1 -1
  357. package/dist/cli/add-De73Ghlh.js +0 -1
  358. package/dist/cli/env-BfWbheiC.js +0 -1
  359. package/dist/cli/powersync-IBM_v_eJ.js +0 -1
  360. package/dist/cli/seed-DGGjReq4.js +0 -1
@@ -1,11 +1,11 @@
1
1
  import { b as DbError } from "../../result-DTOQRyGY.js";
2
- import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DCw3c6pj.js";
2
+ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DddDlibJ.js";
3
3
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
4
- import { c as BlockOf } from "../../define-block-Ds3aLZwz.js";
4
+ import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
5
5
  import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-BI4yKqFh.js";
6
- import { p as SubscriptionStatus } from "../../topic-x-mrN_Ff.js";
7
- import { n as TopicPort } from "../../watch-topic-D6bcqOrJ.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-CAcLEndc.js";
6
+ import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
7
+ import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
9
9
  interface WorkflowRunsControllerOptions {
10
10
  readonly client: {
11
11
  readonly runs: Pick<Workflows["runs"], "list">;
@@ -10,6 +10,15 @@ type TrackingStatus = (typeof TRACKING_STATUSES)[number];
10
10
  /** Where a shipment is: a draft, then the status of its latest tracking event. */
11
11
  declare const SHIPMENT_STATUSES: readonly ["draft", "label_created", "in_transit", "out_for_delivery", "delivered", "exception", "returned", "cancelled"];
12
12
  type ShipmentStatus = (typeof SHIPMENT_STATUSES)[number];
13
+ /** Where a line's stock goes: out to the recipient, or back from them. */
14
+ declare const LINE_DIRECTIONS: readonly ["outbound", "return"];
15
+ type LineDirection = (typeof LINE_DIRECTIONS)[number];
16
+ /**
17
+ * What happens to returned stock: `restock` puts it back in sellable stock,
18
+ * `hold` puts it in a hold bin for inspection and `scrap` writes it off.
19
+ */
20
+ declare const RETURN_DISPOSITIONS: readonly ["restock", "hold", "scrap"];
21
+ type ReturnDisposition = (typeof RETURN_DISPOSITIONS)[number];
13
22
  /** A sender or recipient address. */
14
23
  interface ShipmentAddress {
15
24
  readonly name?: string;
@@ -162,4 +171,4 @@ declare function trackingUpdatesOf(payload: unknown): Result<readonly CarrierTra
162
171
  * forwarding service or tests can post tracking events.
163
172
  */
164
173
  declare function flatRateCarrier(options: FlatRateCarrierOptions): ShippingProvider;
165
- export { TrackingStatus as C, TRACKING_STATUSES as S, trackingUpdatesOf as _, FlatRateCarrierOptions as a, SHIPMENT_STATUSES as b, ShipmentLabel as c, ShipmentRate as d, ShipmentRateRequest as f, shipmentCarrierOf as g, invalidShipmentRequest as h, CarrierTrackingUpdate as i, ShipmentLabelRequest as l, flatRateCarrier as m, CarrierCancelInput as n, FlatRateService as o, ShippingProvider as p, CarrierTrackingEvent as r, ShipmentAddress as s, CarrierCallOptions as t, ShipmentParcel as u, LABEL_FORMATS as v, ShipmentStatus as x, LabelFormat as y };
174
+ export { ReturnDisposition as C, TrackingStatus as D, TRACKING_STATUSES as E, RETURN_DISPOSITIONS as S, ShipmentStatus as T, trackingUpdatesOf as _, FlatRateCarrierOptions as a, LabelFormat as b, ShipmentLabel as c, ShipmentRate as d, ShipmentRateRequest as f, shipmentCarrierOf as g, invalidShipmentRequest as h, CarrierTrackingUpdate as i, ShipmentLabelRequest as l, flatRateCarrier as m, CarrierCancelInput as n, FlatRateService as o, ShippingProvider as p, CarrierTrackingEvent as r, ShipmentAddress as s, CarrierCallOptions as t, ShipmentParcel as u, LABEL_FORMATS as v, SHIPMENT_STATUSES as w, LineDirection as x, LINE_DIRECTIONS as y };
@@ -1,10 +1,10 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
3
- import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../provider-bIAzxVMB.js";
3
+ import { a as CredentialSubject, i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../provider-CVlXXbda.js";
4
4
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
5
5
  import { o as StreamStore } from "../store-c7QxUHX-.js";
6
6
  import { u as MessageFile } from "../messaging-Bfe4p9Pm.js";
7
- import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-C0GfMvFm.js";
7
+ import { c as ChatActionHook, d as IdentityRef, f as IdentityTarget, i as AuthorizationHooks, p as PrincipalByIdentity, s as ChatAction, t as ApprovalRequestRef } from "../authorization-hooks-CR8TVvqo.js";
8
8
  import { S as StoredInboundEvent, c as DeliveryStatus, f as InboxFileSource, i as Conversation, l as InboundResult, p as InboxMessage, y as PendingInboxFile } from "../types-D5uf0l4_.js";
9
9
  import { a as Inbox } from "../inbox-yGfUVQr2.js";
10
10
  import { Adapter, AdapterPostableMessage, Attachment, Author, ChatError, ChatInstance, Message, RawMessage, ScheduledMessage, StateAdapter, WebhookOptions } from "chat";
@@ -1,8 +1,8 @@
1
- import { g as isSessionSnapshot, m as SessionSnapshot } from "../resolve-BIpQRhvF.js";
1
+ import { g as isSessionSnapshot, m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
2
2
  import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
3
3
  import { G as permissionCapOf } from "../types-BdhE7I8Z.js";
4
- import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-Dhu-4vlH.js";
5
- import { t as tenantOf } from "../tenant-lBgoqg9T.js";
6
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-2UlVQDzY.js";
7
- import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-DdDY88SC.js";
4
+ import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-Bi4y8w8e.js";
5
+ import { t as tenantOf } from "../tenant-DqnE50Ju.js";
6
+ import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-BGx22GP3.js";
7
+ import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-eHgOOyRS.js";
8
8
  export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-DqfJVb1F.js";
@@ -1,9 +1,9 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { o as providerLabel } from "./authorization-DJkkOjjG.js";
3
3
  import { r as applyPlan } from "./files-DQayErI8.js";
4
- import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-BDTcal71.js";
4
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-BR1d_5jA.js";
5
5
  import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
6
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-D-WO4Yvl.js";
6
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-CazH5FX4.js";
7
7
  import { basename, dirname } from "node:path";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -1,22 +1,22 @@
1
- import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as VERSION } from "./version-DKfeme2I.js";
3
+ import { t as VERSION } from "./version-D1ZKUFng.js";
4
4
  import { a as parseNames, n as CliError } from "./errors-DcJ_PayO.js";
5
5
  import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
6
- import { t as loadSnapshot } from "./snapshot-C3_eQUgY.js";
6
+ import { t as loadSnapshot } from "./snapshot-CWtER9-4.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-Bk6XwIAK.js";
8
+ import { a as toCatalog } from "./source-D4uav_v9.js";
9
9
  import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-DrrkMihk.js";
10
10
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
11
- import { n as adoptionContext } from "./app-tables-BIyQcsHH.js";
12
- import { n as dataMigration } from "./migrations-nomh4TBo.js";
13
- import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-DfwTOBQ4.js";
11
+ import { n as adoptionContext } from "./app-tables-Dg0sh4dH.js";
12
+ import { n as dataMigration } from "./migrations-tzItvwxT.js";
13
+ import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-mjm1pghO.js";
14
14
  import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
15
15
  import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-C6sQ1MqT.js";
16
- import { t as syncModules } from "./sync-D-WO4Yvl.js";
17
- import { t as addModules } from "./add-D2CH8t_B.js";
18
- import { t as appTablePlan } from "./app-table-files-ha8X0rRE.js";
19
- import { t as blockNames } from "./blocks-9AeouX4h.js";
16
+ import { t as syncModules } from "./sync-CazH5FX4.js";
17
+ import { t as addModules } from "./add-Buuy7BSU.js";
18
+ import { t as appTablePlan } from "./app-table-files-Ku-4tPUu.js";
19
+ import { t as blockNames } from "./blocks-CqVBlc4L.js";
20
20
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
21
21
  import { existsSync } from "node:fs";
22
22
  import { dirname, join, posix, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { h as subjectTagArgs } from "./config-DrrkMihk.js";
3
3
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
4
- import { r as layoutFor } from "./providers-BDTcal71.js";
5
- import { r as literal } from "./live-CuMpyRjF.js";
4
+ import { r as layoutFor } from "./providers-BR1d_5jA.js";
5
+ import { r as literal } from "./live-BaLsNove.js";
6
6
  import { join, resolve, sep } from "node:path";
7
7
  import { FIELD_FORMATS } from "better-supabase/config";
8
8
  import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
@@ -1,6 +1,6 @@
1
1
  import { t as accessProviderMode } from "./authorization-DJkkOjjG.js";
2
- import { o as writtenByBlocks } from "./sql-layout-DVQ20UMi.js";
3
- import { s as qualified, t as catalogOf } from "./shared-D60W9NS-.js";
2
+ import { o as writtenByBlocks } from "./sql-layout-DbhEQqq0.js";
3
+ import { s as qualified, t as catalogOf } from "./shared-oY7PGamd.js";
4
4
  import { declaredTables, resolveBlocks } from "better-supabase/sql";
5
5
  // src/cli/doctor/app-tables.ts
6
6
  /**
@@ -1,9 +1,9 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
4
4
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
5
5
  import { t as connect } from "./db-B8zfxjl2.js";
6
- import { n as ident } from "./live-CuMpyRjF.js";
6
+ import { n as ident } from "./live-BaLsNove.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-kgG50x_Z.js";
2
+ import { i as run } from "./run-BctvQX_g.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-9AeouX4h.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-CqVBlc4L.js";
@@ -1,7 +1,7 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
4
- import { n as listModules, t as printModule } from "./print-S6IF5rZm.js";
4
+ import { n as listModules, t as printModule } from "./print-fOUnKwA9.js";
5
5
  import { t as decodePresetInput } from "./preset-BQnjDCSR.js";
6
6
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-DKfeme2I.js";
1
+ import { t as VERSION } from "./version-D1ZKUFng.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -1,10 +1,10 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as CliError } from "./errors-DcJ_PayO.js";
4
- import { t as migrateCliCall } from "./moved-CT6i1csY.js";
4
+ import { t as migrateCliCall } from "./moved-CY0yDtAr.js";
5
5
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
6
6
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
7
- import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DVQ20UMi.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DbhEQqq0.js";
8
8
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-C6sQ1MqT.js";
9
9
  import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-D8Jfku6I.js";
10
10
  import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
@@ -779,7 +779,7 @@ const CODEMOD_0_32 = {
779
779
  configFile: organizationToTenant,
780
780
  source: renameKeys$1
781
781
  };
782
- // src/cli/codemod-0-35.ts
782
+ // src/cli/codemod-0-37.ts
783
783
  const POLICY = /(?<![\w$])(refresh|verifySession)(\s*:\s*)(["'])navigation\3/g;
784
784
  const SESSION_PROMISE = /(?<![\w$.])sessionPromise(?=\s*=\s*\{)/g;
785
785
  const SUPABASE_FOR = /(?<=\.\s*)supabaseFor(?=\s*\()/g;
@@ -828,65 +828,91 @@ function renamePolicies(text) {
828
828
  review: []
829
829
  };
830
830
  }
831
- const CODEMOD_0_35 = {
832
- name: "0.35",
833
- description: "Rewrites refresh: \"navigation\" to refresh: true, verifySession: \"navigation\" to verifySession: \"document\" and the SessionProvider sessionPromise prop to session, supabaseFor calls to contextClient, a string reason passed to transition() to { reason } and validateGraph(graph, steps) to validateGraph(graph, { steps }), and lists for review the lines that use onExpiredPrefetch, shouldRefresh, clearSessionCookies (now async), the removed cookie codec (writeSession, refreshSession, AUTH_CACHE_HEADERS, pruneSessionChunks, sessionEncoding, clearSessionAtScopes), sessionStale, life.min and life.max, contextFromSession with a token, a destructured supabaseFor, sessions: false, a transition() reason that is not a string literal, memory forget (now a soft delete) and maps keyed by WorkflowNodeKind",
834
- review: [
835
- {
836
- pattern: /\bonExpiredPrefetch\b/,
837
- message: "`onExpiredPrefetch` is gone: the proxy refreshes prefetches too, so remove the option"
838
- },
839
- {
840
- pattern: /\bshouldRefresh\b|\bshouldCheckSession\b.*better-supabase\/server/,
841
- message: "`shouldRefresh` and the `better-supabase/server` `shouldCheckSession` are gone: every request may refresh, since parallel requests share one token refresh. Use `isDocumentLoad` or `isPrefetch` from `better-supabase/server` to tell requests apart (`better-supabase/next` keeps `shouldCheckSession`)"
842
- },
843
- {
844
- pattern: /\bclearSessionCookies\(/,
845
- message: "`clearSessionCookies()` returns a promise now (it clears through `@supabase/ssr`): await it"
846
- },
847
- {
848
- pattern: /\b(?:writeSession|refreshSession|AUTH_CACHE_HEADERS|pruneSessionChunks|sessionEncoding|clearSessionAtScopes|DEFAULT_SESSION_ENCODING)\b/,
849
- message: "The cookie codec exports are gone from `better-supabase/server` and `better-supabase/ssr`: let `resolveAuth` refresh and `clearSessionCookies` clear, or use `createServerClient` from `@supabase/ssr` directly"
850
- },
851
- {
852
- pattern: /\b(?:sessionStale|SessionStaleOptions)\b/,
853
- message: "`sessionStale` is gone: `bsb.cached()` sets `stale` to 300 seconds, so call it in the scope instead of `cacheLife({ stale: sessionStale(session) })`, and pass `life: { capToToken: true }` to keep the old cap at the token's lifetime"
854
- },
855
- {
856
- pattern: /\blife\s*:\s*\{[^}]*\b(?:min|max)\s*:/,
857
- message: "`life.min` and `life.max` are gone: `life.stale` sets the stale time (default 300), and `capToToken: true` caps it at the token's lifetime"
858
- },
859
- {
860
- pattern: /\bcontextFromSession\([^)]*\{\s*token\b/,
861
- message: "`contextFromSession(session, { token })` is gone: pass the `SessionSnapshot` from `bsb.getClaims()`, which builds the context without verifying again"
862
- },
863
- {
864
- pattern: /\bsessionStatusRoute\(/,
865
- message: "`sessionStatusRoute` reads the verified claims only now (`verifySession` defaults to false): pass `verifySession: true` to keep asking Auth on every check"
866
- },
867
- {
868
- pattern: /(?<![\w$.])supabaseFor\b/,
869
- message: "`supabaseFor` on the server is now `contextClient`: rename the destructured method and its calls"
870
- },
871
- {
872
- pattern: /\bsessions\s*:\s*false\b/,
873
- message: "`sessions: false` now turns off the one verified-token memo, so every request verifies its token again (about 0.1 ms each): drop it unless you need that"
874
- },
875
- {
876
- pattern: /\.transition\s*\(\s*(?:\{[^(){}]*\}|[^(),{}]+),\s*[^(),{}]+,\s*(?![\s{"'`])[^)]/,
877
- message: "`transition(subject, to, reason)` takes `{ reason, actor }` as its third argument now: pass `{ reason }`"
878
- },
879
- {
880
- pattern: /\barchival\s*\.\s*forget\s*\(/,
881
- message: "`memory.archival.forget` soft deletes now: `restore` brings the memory back, and `purge` (service role, on a schedule) removes it for good"
882
- },
883
- {
884
- pattern: /\bRecord<\s*WorkflowNodeKind\b/,
885
- message: "`WorkflowNodeKind` takes the app's own kinds now (any string): key a map of every kind by `WorkflowBuiltinNodeKind`, with a fallback for custom kinds"
886
- }
887
- ],
831
+ const DESCRIPTION_0_36 = "Rewrites refresh: \"navigation\" to refresh: true, verifySession: \"navigation\" to verifySession: \"document\" and the SessionProvider sessionPromise prop to session, supabaseFor calls to contextClient, a string reason passed to transition() to { reason } and validateGraph(graph, steps) to validateGraph(graph, { steps }), and lists for review the lines that use onExpiredPrefetch, shouldRefresh, clearSessionCookies (now async), the removed cookie codec (writeSession, refreshSession, AUTH_CACHE_HEADERS, pruneSessionChunks, sessionEncoding, clearSessionAtScopes), sessionStale, life.min and life.max, contextFromSession with a token, a destructured supabaseFor, sessions: false, a transition() reason that is not a string literal, memory forget (now a soft delete) and maps keyed by WorkflowNodeKind";
832
+ const REVIEW_0_36 = [
833
+ {
834
+ pattern: /\bonExpiredPrefetch\b/,
835
+ message: "`onExpiredPrefetch` is gone: the proxy refreshes prefetches too, so remove the option"
836
+ },
837
+ {
838
+ pattern: /\bshouldRefresh\b|\bshouldCheckSession\b.*better-supabase\/server/,
839
+ message: "`shouldRefresh` and the `better-supabase/server` `shouldCheckSession` are gone: every request may refresh, since parallel requests share one token refresh. Use `isDocumentLoad` or `isPrefetch` from `better-supabase/server` to tell requests apart (`better-supabase/next` keeps `shouldCheckSession`)"
840
+ },
841
+ {
842
+ pattern: /\bclearSessionCookies\(/,
843
+ message: "`clearSessionCookies()` returns a promise now (it clears through `@supabase/ssr`): await it"
844
+ },
845
+ {
846
+ pattern: /\b(?:writeSession|refreshSession|AUTH_CACHE_HEADERS|pruneSessionChunks|sessionEncoding|clearSessionAtScopes|DEFAULT_SESSION_ENCODING)\b/,
847
+ message: "The cookie codec exports are gone from `better-supabase/server` and `better-supabase/ssr`: let `resolveAuth` refresh and `clearSessionCookies` clear, or use `createServerClient` from `@supabase/ssr` directly"
848
+ },
849
+ {
850
+ pattern: /\b(?:sessionStale|SessionStaleOptions)\b/,
851
+ message: "`sessionStale` is gone: `bsb.cached()` sets `stale` to 300 seconds, so call it in the scope instead of `cacheLife({ stale: sessionStale(session) })`, and pass `life: { capToToken: true }` to keep the old cap at the token's lifetime"
852
+ },
853
+ {
854
+ pattern: /\blife\s*:\s*\{[^}]*\b(?:min|max)\s*:/,
855
+ message: "`life.min` and `life.max` are gone: `life.stale` sets the stale time (default 300), and `capToToken: true` caps it at the token's lifetime"
856
+ },
857
+ {
858
+ pattern: /\bcontextFromSession\([^)]*\{\s*token\b/,
859
+ message: "`contextFromSession(session, { token })` is gone: pass the `SessionSnapshot` from `bsb.getClaims()`, which builds the context without verifying again"
860
+ },
861
+ {
862
+ pattern: /\bsessionStatusRoute\(/,
863
+ message: "`sessionStatusRoute` reads the verified claims only now (`verifySession` defaults to false): pass `verifySession: true` to keep asking Auth on every check"
864
+ },
865
+ {
866
+ pattern: /(?<![\w$.])supabaseFor\b/,
867
+ message: "`supabaseFor` on the server is now `contextClient`: rename the destructured method and its calls"
868
+ },
869
+ {
870
+ pattern: /\bsessions\s*:\s*false\b/,
871
+ message: "`sessions: false` now turns off the one verified-token memo, so every request verifies its token again (about 0.1 ms each): drop it unless you need that"
872
+ },
873
+ {
874
+ pattern: /\.transition\s*\(\s*(?:\{[^(){}]*\}|[^(),{}]+),\s*[^(),{}]+,\s*(?![\s{"'`])[^)]/,
875
+ message: "`transition(subject, to, reason)` takes `{ reason, actor }` as its third argument now: pass `{ reason }`"
876
+ },
877
+ {
878
+ pattern: /\barchival\s*\.\s*forget\s*\(/,
879
+ message: "`memory.archival.forget` soft deletes now: `restore` brings the memory back, and `purge` (service role, on a schedule) removes it for good"
880
+ },
881
+ {
882
+ pattern: /\bRecord<\s*WorkflowNodeKind\b/,
883
+ message: "`WorkflowNodeKind` takes the app's own kinds now (any string): key a map of every kind by `WorkflowBuiltinNodeKind`, with a fallback for custom kinds"
884
+ }
885
+ ];
886
+ const REVIEW_0_37 = [
887
+ {
888
+ pattern: /\b(?:before|after)_stock_(?:adjust|reserve)\b[^;]*\binteger\b/i,
889
+ message: "Stock quantities are `numeric` now: declare the quantity argument of your `before_stock_adjust` and `before_stock_reserve` hooks as `numeric` instead of `integer`, or the block no longer calls them"
890
+ },
891
+ {
892
+ pattern: /\bOrderStatus\b|["']pending_payment["']/,
893
+ message: "Orders gain the `confirmed` status: an order made with `orderFromLines` or `orderFromQuote` starts there instead of `pending_payment`, so handle it where you switch over the status"
894
+ },
895
+ {
896
+ pattern: /\borderFromQuoteAction\(/,
897
+ message: "`orderFromQuoteAction` no longer needs `create`: without it the action calls `orders.fromQuote`, so drop a `create` that only placed the order"
898
+ }
899
+ ];
900
+ const CODEMOD_0_37 = {
901
+ name: "0.37",
902
+ description: "Rewrites refresh: \"navigation\" to refresh: true, verifySession: \"navigation\" to verifySession: \"document\" and the SessionProvider sessionPromise prop to session, supabaseFor calls to contextClient, a string reason passed to transition() to { reason } and validateGraph(graph, steps) to validateGraph(graph, { steps }), and lists for review the lines that use onExpiredPrefetch, shouldRefresh, clearSessionCookies (now async), the removed cookie codec (writeSession, refreshSession, AUTH_CACHE_HEADERS, pruneSessionChunks, sessionEncoding, clearSessionAtScopes), sessionStale, life.min and life.max, contextFromSession with a token, a destructured supabaseFor, sessions: false, a transition() reason that is not a string literal, memory forget (now a soft delete), maps keyed by WorkflowNodeKind, the stock hooks that take an integer quantity, the order status switches that miss confirmed and orderFromQuoteAction",
903
+ review: [...REVIEW_0_36, ...REVIEW_0_37],
888
904
  source: renamePolicies
889
905
  };
906
+ /** `codemod 0.35` as 0.36.0 shipped it, and `codemod 0.37`. */
907
+ const CODEMODS_0_37 = {
908
+ "0.35": {
909
+ name: "0.35",
910
+ description: DESCRIPTION_0_36,
911
+ review: REVIEW_0_36,
912
+ source: renamePolicies
913
+ },
914
+ "0.37": CODEMOD_0_37
915
+ };
890
916
  // src/cli/codemod-data-contract.ts
891
917
  /** The query guards named after the retired verbs. */
892
918
  const DATA_CONTRACT_OPTIONS = [{
@@ -2497,7 +2523,7 @@ const CODEMODS = {
2497
2523
  },
2498
2524
  "0.29": CODEMOD_0_29,
2499
2525
  "0.32": CODEMOD_0_32,
2500
- "0.35": CODEMOD_0_35
2526
+ ...CODEMODS_0_37
2501
2527
  };
2502
2528
  const SUPABASE_IMPORT = /\bfrom\s*["'](?:better-supabase(?:\/[\w./-]*)?|[^"']*supabase[^"']*)["']/;
2503
2529
  /**
@@ -863,7 +863,13 @@ const COMMANDS = [
863
863
  },
864
864
  {
865
865
  name: "0.35",
866
- description: "Changes from 0.34 to 0.35: the proxy refreshes on every request, session cookies go through @supabase/ssr, and the cookie codec and prefetch predicates are gone",
866
+ description: "The 0.36 part of the 0.35 to 0.37 changes, as 0.36.0 shipped it: the proxy refreshes on every request, session cookies go through @supabase/ssr, and the cookie codec and prefetch predicates are gone. Prefer codemod 0.37",
867
+ docs: "/docs/cli/codemod",
868
+ effects: [FILES]
869
+ },
870
+ {
871
+ name: "0.37",
872
+ description: "Changes from 0.35 to 0.37: the proxy refreshes on every request, session cookies go through @supabase/ssr, the cookie codec and prefetch predicates are gone, and stock quantities are numeric",
867
873
  docs: "/docs/cli/codemod",
868
874
  effects: [FILES]
869
875
  }
@@ -1,5 +1,5 @@
1
- import { n as completionValues, o as listArgs, t as GLOBAL_ARGS, u as COMPLETE_COMMAND } from "./command-DM_x_yzZ.js";
2
- import { o as isVariadic, r as commandArgs } from "./parse-qgJylE_A.js";
1
+ import { n as completionValues, o as listArgs, t as GLOBAL_ARGS, u as COMPLETE_COMMAND } from "./command-67WobzTC.js";
2
+ import { o as isVariadic, r as commandArgs } from "./parse-yAC-NFMq.js";
3
3
  // src/cli/core/completion.ts
4
4
  const SHELLS = [
5
5
  "bash",
@@ -1 +1 @@
1
- export { n as complete, r as completionLines } from "./completion-DbYb3N8e.js";
1
+ export { n as complete, r as completionLines } from "./completion-C3nMZgUZ.js";
@@ -1,6 +1,6 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
- import { a as isShell, i as completionScript, t as SHELLS } from "./completion-DbYb3N8e.js";
3
+ import { a as isShell, i as completionScript, t as SHELLS } from "./completion-C3nMZgUZ.js";
4
4
  // src/cli/commands/completion.ts
5
5
  const ARGS = { shell: {
6
6
  type: "positional",
@@ -1,4 +1,4 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as redact, r as redactUrl } from "./redact--zOGdWzo.js";
3
3
  import { t as display } from "./io-CQzy8PEZ.js";
4
4
  import { n as presetInfo } from "./preset-BQnjDCSR.js";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-CQzy8PEZ.js";
2
- import { t as CACHE_DIR } from "./cache-aMk9vF1_.js";
3
- import { x as installedVersion } from "./snapshot-C3_eQUgY.js";
2
+ import { t as CACHE_DIR } from "./cache-BbuuCIRU.js";
3
+ import { x as installedVersion } from "./snapshot-CWtER9-4.js";
4
4
  import { t as i } from "./jsonc-u_UiXFxs.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
4
4
  import { t as display } from "./io-CQzy8PEZ.js";
@@ -1,38 +1,38 @@
1
- import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as VERSION$1 } from "./version-DKfeme2I.js";
3
+ import { t as VERSION$1 } from "./version-D1ZKUFng.js";
4
4
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
5
5
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
6
6
  import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
7
- import { t as CACHE_DIR } from "./cache-aMk9vF1_.js";
7
+ import { t as CACHE_DIR } from "./cache-BbuuCIRU.js";
8
8
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
9
- import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-C3_eQUgY.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-Bp7a7XQ9.js";
9
+ import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-CWtER9-4.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-BCJKDX3c.js";
11
11
  import { o as providerLabel } from "./authorization-DJkkOjjG.js";
12
12
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
13
- import { i as request } from "./source-Bk6XwIAK.js";
13
+ import { i as request } from "./source-D4uav_v9.js";
14
14
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
15
15
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
16
16
  import { t as PROCESS_ENV } from "./env-BCuUsWOh.js";
17
17
  import { n as readStackStatus } from "./stack-status-Mxgqb3I4.js";
18
18
  import { t as connect } from "./db-B8zfxjl2.js";
19
- 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-CEtdbshU.js";
19
+ 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-NXfJ5VkP.js";
20
20
  import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
21
- import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-DVQ20UMi.js";
22
- import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-D60W9NS-.js";
23
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BIyQcsHH.js";
24
- import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, 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-BclCFEyP.js";
25
- import { a as compiledReadSets } from "./providers-BDTcal71.js";
26
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration--9T_T-zt.js";
27
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DfwTOBQ4.js";
21
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-DbhEQqq0.js";
22
+ import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-oY7PGamd.js";
23
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-Dg0sh4dH.js";
24
+ import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, 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-4VUQTR-R.js";
25
+ import { a as compiledReadSets } from "./providers-BR1d_5jA.js";
26
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-D0Rjdvdx.js";
27
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-mjm1pghO.js";
28
28
  import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
29
- import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CuMpyRjF.js";
29
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-BaLsNove.js";
30
30
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
31
31
  import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
32
32
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-huI7fGMX.js";
33
33
  import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-BQhbUFa7.js";
34
34
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-C5YL6Un9.js";
35
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-D2YvkY2D.js";
35
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-aOvlCOOg.js";
36
36
  import { existsSync } from "node:fs";
37
37
  import { dirname, join, relative, resolve } from "node:path";
38
38
  import { createHash } from "node:crypto";
@@ -0,0 +1 @@
1
+ export { n as envCommand } from "./env-CCT-dMFm.js";
@@ -1,4 +1,4 @@
1
- import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
4
4
  import { n as readStackStatus, t as parseStackStatus } from "./stack-status-Mxgqb3I4.js";
@@ -1,22 +1,22 @@
1
- import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
1
+ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { a as parseNames, i as failedResult, n as CliError } from "./errors-DcJ_PayO.js";
4
- import { u as catalogFingerprint } from "./cache-aMk9vF1_.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-C3_eQUgY.js";
4
+ import { u as catalogFingerprint } from "./cache-BbuuCIRU.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CWtER9-4.js";
6
6
  import { d as GEN_TASKS, p as isGenTask } from "./config-DrrkMihk.js";
7
7
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
8
- import { n as runGen } from "./run-BclCFEyP.js";
9
- import { n as dataMigration } from "./migrations-nomh4TBo.js";
10
- import { t as syncModules } from "./sync-D-WO4Yvl.js";
11
- import { t as addModules } from "./add-D2CH8t_B.js";
12
- import { n as listModules, t as printModule } from "./print-S6IF5rZm.js";
8
+ import { n as runGen } from "./run-4VUQTR-R.js";
9
+ import { n as dataMigration } from "./migrations-tzItvwxT.js";
10
+ import { t as syncModules } from "./sync-CazH5FX4.js";
11
+ import { t as addModules } from "./add-Buuy7BSU.js";
12
+ import { n as listModules, t as printModule } from "./print-fOUnKwA9.js";
13
13
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
14
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-D2YvkY2D.js";
15
- import { a as runEnv } from "./env-DVV10l_r.js";
16
- import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-C8ydQwZC.js";
17
- import { n as runPowerSync } from "./powersync-DB9WZsIv.js";
18
- import { t as runSeed } from "./seed-Cn2R91cd.js";
19
- import { t as upgrade } from "./upgrade-DGe5Pv6v.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-aOvlCOOg.js";
15
+ import { a as runEnv } from "./env-CCT-dMFm.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-DTnBeaCD.js";
17
+ import { n as runPowerSync } from "./powersync-DryX_DMG.js";
18
+ import { t as runSeed } from "./seed-DSC6f0oh.js";
19
+ import { t as upgrade } from "./upgrade-Cyx6ESpc.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  // src/cli/commands/sql.ts
@@ -753,5 +753,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
753
753
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
754
754
  readonly legacyTables?: boolean;
755
755
  }): Promise<ResolvedConfig>;
756
- export declare const VERSION = "0.36.0";
756
+ export declare const VERSION = "0.37.0";
757
757
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, 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,12 +1,12 @@
1
- import { a as list, r as defineCliCommand } from "./command-DM_x_yzZ.js";
2
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-kgG50x_Z.js";
3
- import { t as VERSION } from "./version-DKfeme2I.js";
1
+ import { a as list, r as defineCliCommand } from "./command-67WobzTC.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-BctvQX_g.js";
3
+ import { t as VERSION } from "./version-D1ZKUFng.js";
4
4
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-DcJ_PayO.js";
5
- import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-C3_eQUgY.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-Bp7a7XQ9.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-Bk6XwIAK.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-CWtER9-4.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-BCJKDX3c.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-D4uav_v9.js";
8
8
  import { s as loadConfig } from "./config-DrrkMihk.js";
9
- import { n as runGen } from "./run-BclCFEyP.js";
9
+ import { n as runGen } from "./run-4VUQTR-R.js";
10
10
  // src/cli/introspect/from-catalog.ts
11
11
  /**
12
12
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and