better-supabase 0.25.0 → 0.29.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.
- package/dist/{access-sql-bjWFUWlk.js → access-sql-CTDNuxRv.js} +177 -12
- package/dist/{agents-CMIB3802.d.ts → agents-CM_cCtcr.d.ts} +4 -4
- package/dist/{ai-cache-2LGgaT7F.d.ts → ai-cache-BTGqckta.d.ts} +4 -4
- package/dist/{ai-chat-BCaKsvLW.d.ts → ai-chat-B7_vQvxU.d.ts} +4 -4
- package/dist/{ai-schedules-yGZH-vQb.d.ts → ai-schedules-CZEfo-_M.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +1 -1
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-B1OkIWdx.d.ts → api-59rv5hL6.d.ts} +5 -5
- package/dist/{api-keys-ClhKBDcc.d.ts → api-keys-JE-aykZE.d.ts} +4 -4
- package/dist/{app-tables-xij_MI5H.d.ts → app-tables-DekyKNQ8.d.ts} +1 -1
- package/dist/{approvals-C5fmPLsH.d.ts → approvals-BfEafAzt.d.ts} +5 -5
- package/dist/{assistant-ndGdOBax.d.ts → assistant-B49qATbj.d.ts} +2 -2
- package/dist/astro/index.d.ts +7 -7
- package/dist/{authorization-BJV2i8xB.d.ts → authorization-C7nuWMuB.d.ts} +27 -6
- package/dist/{authorization-hooks-DtzreCAq.d.ts → authorization-hooks-BWhkMZfH.d.ts} +2 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-vKDmdu_4.d.ts → bind-DmUGUsBd.d.ts} +7 -7
- package/dist/{block-env-wVLz0KMV.d.ts → block-env-DWtZsqhH.d.ts} +4 -4
- package/dist/{block-helpers-CRpAHrp_.d.ts → block-helpers-D5emQ2O6.d.ts} +1 -1
- package/dist/{block-hooks-DZN2w69m.d.ts → block-hooks-B8itxzEE.d.ts} +2 -2
- package/dist/{block-subjects-CphkQPxp.d.ts → block-subjects-C1_9DkSA.d.ts} +1 -1
- package/dist/{block-transport-DWZSJrwN.d.ts → block-transport-9EUA3q_I.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +10 -10
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/agents/index.d.ts +4 -4
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +7 -7
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-keys/index.d.ts +4 -4
- package/dist/blocks/ai-schedules/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +8 -8
- package/dist/blocks/api-keys/index.d.ts +6 -6
- package/dist/blocks/approvals/index.d.ts +4 -4
- package/dist/blocks/assets/index.d.ts +6 -6
- package/dist/blocks/assignment/index.d.ts +7 -7
- package/dist/blocks/attachments/index.d.ts +4 -4
- package/dist/blocks/audit/index.d.ts +13 -13
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/billable-time/index.d.ts +6 -6
- package/dist/blocks/billing/index.d.ts +9 -9
- package/dist/blocks/bookings/index.d.ts +4 -4
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +5 -5
- package/dist/blocks/catalog/index.d.ts +6 -6
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +12 -12
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/comments/index.d.ts +10 -10
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/contacts/index.d.ts +7 -7
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +5 -5
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +5 -5
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +6 -6
- package/dist/blocks/custom-fields/index.js +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/dispatch/index.d.ts +7 -7
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/domains/index.d.ts +6 -6
- package/dist/blocks/donations/index.d.ts +6 -6
- package/dist/blocks/drive/index.d.ts +7 -7
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +6 -6
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +5 -5
- package/dist/blocks/field-history/index.d.ts +4 -4
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +6 -6
- package/dist/blocks/forms/index.d.ts +6 -6
- package/dist/blocks/goals/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +6 -6
- package/dist/blocks/hiring/index.d.ts +7 -7
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +5 -5
- package/dist/blocks/inbox/index.d.ts +10 -10
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +7 -7
- package/dist/blocks/invoices/index.d.ts +8 -8
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/lead-scoring/index.d.ts +7 -7
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +5 -5
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +6 -6
- package/dist/blocks/notifications/index.d.ts +12 -12
- package/dist/blocks/notifications/index.js +1 -1
- package/dist/blocks/numbering/index.d.ts +4 -4
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/onboarding/index.d.ts +5 -5
- package/dist/blocks/orders/index.d.ts +7 -7
- package/dist/blocks/organizations/index.d.ts +8 -8
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/permissions/index.d.ts +6 -6
- package/dist/blocks/pipelines/index.d.ts +6 -6
- package/dist/blocks/posts/index.d.ts +5 -5
- package/dist/blocks/profiles/index.d.ts +4 -4
- package/dist/blocks/promotions/index.d.ts +5 -5
- package/dist/blocks/push/index.d.ts +6 -6
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/quotes/index.d.ts +8 -8
- package/dist/blocks/rank/index.d.ts +5 -5
- package/dist/blocks/reactions/index.d.ts +9 -9
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +9 -9
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/saved-views/index.d.ts +6 -6
- package/dist/blocks/scores/index.d.ts +5 -5
- package/dist/blocks/search/index.d.ts +8 -8
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/segments/index.d.ts +8 -8
- package/dist/blocks/sequences/index.d.ts +6 -6
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +6 -6
- package/dist/blocks/share-links/index.d.ts +5 -5
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/sla/index.d.ts +7 -7
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +5 -5
- package/dist/blocks/subjects/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +6 -6
- package/dist/blocks/tasks/index.d.ts +10 -10
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +4 -4
- package/dist/blocks/templates/index.d.ts +7 -7
- package/dist/blocks/time-tracking/index.d.ts +7 -7
- package/dist/blocks/timeline/index.d.ts +8 -8
- package/dist/blocks/trash/index.d.ts +6 -6
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +4 -4
- package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +14 -14
- package/dist/blocks/webhooks/index.js +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-CVw5-Q0Z.d.ts → bookings-xsmM2TA_.d.ts} +3 -3
- package/dist/{bucket-vc-QRrva.d.ts → bucket-SvRQwYS4.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/cli/{add-C2pNvVpu.js → add-BKkV99g9.js} +2 -2
- package/dist/cli/{add-BTVrOGJF.js → add-CrQ3jS7t.js} +55 -88
- package/dist/cli/add-CwhrRJz5.js +1 -0
- package/dist/cli/app-table-files-PnPOpuB4.js +346 -0
- package/dist/cli/{backfill-BicVPugb.js → backfill-DDDLhinm.js} +4 -4
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-sScN-ik-.js → blocks-BCVcjvbm.js} +1 -1
- package/dist/cli/{blocks-BmYOH4T-.js → blocks-tRfYx_mh.js} +2 -2
- package/dist/cli/{cache-1TfBy2K4.js → cache-DQZ09YOg.js} +1 -1
- package/dist/cli/{codemod-ylE6wGLo.js → codemod-HKuwQmi_.js} +5 -5
- package/dist/cli/{command-BWEEXmtz.js → command-DIPmo0wh.js} +37 -1
- package/dist/cli/{completion-Bt7LMypX.js → completion-DxPxMtyP.js} +2 -2
- package/dist/cli/{completion-8EDK21xj.js → completion-DyLMSjOD.js} +1 -1
- package/dist/cli/{completion-BfnKI4QZ.js → completion-FUgqm2-N.js} +2 -2
- package/dist/cli/{config-WKDixoGK.js → config-BfapErxs.js} +1 -1
- package/dist/cli/{config-BVfeG3A5.js → config-Cskysxp-.js} +327 -16
- package/dist/cli/{config-CeaQMrvS.js → config-Df5cXWNN.js} +1 -1
- package/dist/cli/{config-group-C8tjut39.js → config-group-CP-B9uRt.js} +2 -3
- package/dist/cli/{content-mapper-hUW2nb92.js → content-mapper-B0ehR7K-.js} +2 -2
- package/dist/cli/{db-DwjyUbAh.js → db-CWvH1_46.js} +38 -14
- package/dist/cli/{doctor-D3WKFBSv.js → doctor-CXJOhwLB.js} +36 -33
- package/dist/cli/{env-DMgjB_4y.js → env-BK0xKMeU.js} +1 -2
- package/dist/cli/{env-BCgVZkcb.js → env-BM242BCV.js} +2 -2
- package/dist/cli/{env-C-Bl6Awn.js → env-Bat6ogep.js} +1 -1
- package/dist/cli/env-uqfUbUzk.js +1 -0
- package/dist/cli/{exec--Q1ZEWUW.js → exec-Ca5s-ygi.js} +1 -1
- package/dist/cli/{gen-CqsUdsB2.js → gen-B7rw4j19.js} +16 -16
- package/dist/cli/in-stack-diff-Cp-tVPj2.js +186 -0
- package/dist/cli/index.d.ts +9 -3
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DryZ5Mp1.js → init-C1bXXB_P.js} +131 -12
- package/dist/cli/{keys-CbaL0lnw.js → keys-V-HcO-21.js} +1 -1
- package/dist/cli/{live-Di45imoV.js → live-PpAh9pAc.js} +2 -2
- package/dist/cli/{mcp-BklC-3eK.js → mcp-BRNAchdH.js} +6 -14
- package/dist/cli/{metadata-7PsBF5Xw.js → metadata-dAAKb_kR.js} +3 -3
- package/dist/cli/migrate-BWYXFnaW.js +46 -0
- package/dist/cli/{migration-safety-Doy9qYO8.js → migration-safety-DGQswWZy.js} +2 -2
- package/dist/cli/migrations-Cqk-lJwu.js +117 -0
- package/dist/cli/{module-migration-ZIn1NCMi.js → module-migration-8-hMiZtW.js} +2 -2
- package/dist/cli/{moved-DVwgE8lV.js → moved-DNOtp9LA.js} +1 -1
- package/dist/cli/{parse-B079x40m.js → parse-BPf3kGnc.js} +1 -1
- package/dist/cli/{powersync-BRGXOCJ0.js → powersync-BWQ-8T3G.js} +4 -3
- package/dist/cli/powersync-CbYxLsjv.js +1 -0
- package/dist/cli/{print-Dfqd4DB-.js → print-DSTnq5xz.js} +2 -2
- package/dist/cli/{migrations-JtsPYv8g.js → providers-Cjf5iOp5.js} +4 -116
- package/dist/cli/{remove-CQzSCYTu.js → remove-CwG8cPv1.js} +7 -7
- package/dist/cli/{render-DWRz-uPQ.js → render-B18iAdsT.js} +9 -6
- package/dist/cli/{run-DPLedqTF.js → run-C2Yg5MWt.js} +42 -40
- package/dist/cli/{run-DmOTMa44.js → run-CvPl8iQd.js} +4 -4
- package/dist/cli/{run-j54rk2w-.js → run-Wx_2Acgv.js} +11 -11
- package/dist/cli/seed-BOun22-k.js +1 -0
- package/dist/cli/{seed-BMynpMPy.js → seed-CDnL4Tnc.js} +3 -3
- package/dist/cli/{shared-CslNcs-R.js → shared-BHbtUOvh.js} +1 -1
- package/dist/cli/{skills-FXAVPLzp.js → skills-DM3oeIxY.js} +1 -1
- package/dist/cli/{snapshot-DdN5GlhH.js → snapshot-CXgsUPGj.js} +3 -3
- package/dist/cli/{source-COARbqch.js → source-B6aMAoEK.js} +1 -1
- package/dist/cli/{source-args-CDmmFmFG.js → source-args-v8ljFDfc.js} +1 -1
- package/dist/cli/{spec-CgLNZc_C.js → spec-BcYic005.js} +3 -3
- package/dist/cli/{spec-DIhBQlBF.js → spec-EO0TP84d.js} +1 -1
- package/dist/cli/{sql-layout-8jrP5gIa.js → sql-layout-CkxDNVEH.js} +21 -7
- package/dist/cli/{stack-DgASZP0K.js → stack-ClESAZYf.js} +3 -3
- package/dist/cli/{stack-status-B_Ipd_-z.js → stack-status-BkkYRlXG.js} +1 -1
- package/dist/cli/{stacks-BYlQ96WS.js → stacks-CiDBH1dB.js} +1 -1
- package/dist/cli/{sync-SqyVHRSJ.js → sync-pq6gmlhG.js} +4 -3
- package/dist/cli/table-dyKddjwo.js +89 -0
- package/dist/cli/{upgrade-D0aLhluU.js → upgrade-BoHb4h9P.js} +3 -3
- package/dist/cli/{upgrade-CY-vj_qh.js → upgrade-Dp9p7A69.js} +5 -4
- package/dist/cli/{version-Bhca9D6q.js → version-CQHFm-ak.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/native/index.d.ts +5 -5
- package/dist/{cloud-event-DcJwder2.d.ts → cloud-event-0pQ9vFNS.d.ts} +1 -1
- package/dist/{compiler-D3UmE7ao.d.ts → compiler-BEeVWXPS.d.ts} +2 -2
- package/dist/{composite-CWJvZgni.d.ts → composite-BJ9s-IJJ.d.ts} +7 -7
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +5 -5
- package/dist/{config-C19McoGo.js → config-bqKaPjst.js} +7 -28
- package/dist/{config-CP-WaboC.js → config-r7njjNgh.js} +3 -3
- package/dist/{connectors-CHGiffYH.d.ts → connectors-uC5baoFV.d.ts} +4 -4
- package/dist/{context-BJoHD20l.d.ts → context-B4TsE2gY.d.ts} +138 -52
- package/dist/{controller-CwGXms17.d.ts → controller-CtwAsnVV.d.ts} +1 -1
- package/dist/{conversion-DlfStnln.d.ts → conversion-g8HzH9My.d.ts} +1 -1
- package/dist/create/index.d.ts +62 -3
- package/dist/create/index.js +67 -4
- package/dist/create/lite/index.d.ts +141 -4
- package/dist/create/lite/index.js +399 -47
- package/dist/credentials/index.d.ts +4 -4
- package/dist/{data-engine-BWoz9lED.d.ts → data-engine-rvbR2C4F.d.ts} +1 -1
- package/dist/{define-BLP6XtoL.d.ts → define-D8_9X5fZ.d.ts} +5 -5
- package/dist/{define-block-DibVN37N.d.ts → define-block-DWVZSZv1.d.ts} +12 -12
- package/dist/{documents-Cup1rpjF.d.ts → documents-BbwYyynk.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-D_RsS6ow.d.ts → embeddings-I3s5sTDt.d.ts} +1 -1
- package/dist/{ended-B8RyuUXF.d.ts → ended-EZzN9QTM.d.ts} +2 -2
- package/dist/{entitlements-CsZcfllV.d.ts → entitlements-Bw3eYGKJ.d.ts} +2 -2
- package/dist/eve/index.d.ts +5 -5
- package/dist/{eve-B7jxYPCw.d.ts → eve-BfhVFV33.d.ts} +2 -2
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-Cc9DDQWH.d.ts → events-B2qbZps6.d.ts} +1 -1
- package/dist/{executor-DNPm13a9.d.ts → executor-BfirBzOr.d.ts} +4 -4
- package/dist/{executor-C-Ox9eKq.d.ts → executor-BlS0kCrN.d.ts} +1 -1
- package/dist/{executor-hGjrop3A.d.ts → executor-DXQIx4sW.d.ts} +1 -1
- package/dist/expo/index.d.ts +4 -4
- package/dist/{field-errors-6BVg31Yp.d.ts → field-errors-DkzFduux.d.ts} +10 -10
- package/dist/{fields-C3q2ypnO.d.ts → fields-snbaZ14h.d.ts} +1 -1
- package/dist/{filter-evaluate-CPxeae5X.d.ts → filter-evaluate-BRpNiNPG.d.ts} +1 -1
- package/dist/{filter-query-BXLs72G9.d.ts → filter-query-DBt7OKuH.d.ts} +1 -1
- package/dist/{flags-C01PLMJ-.d.ts → flags-DDKTThrO.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{framework-GlxXiotm.d.ts → framework-DVYTtQXA.d.ts} +7 -7
- package/dist/{gateway-DzI687yd.d.ts → gateway-Ve7cByEr.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +9 -9
- package/dist/{inbox-NDKwSk_H.d.ts → inbox-c8B86Trp.d.ts} +5 -5
- package/dist/{index-C_qlBJ3k.d.ts → index-B4wttiLh.d.ts} +4 -4
- package/dist/{index-BfYDY6eh.d.ts → index-BM6NmKSc.d.ts} +5 -5
- package/dist/{index-CbUCGMqj.d.ts → index-BNgpz_BV.d.ts} +5 -5
- package/dist/{index-C0QuN9_P.d.ts → index-BxckmAFc.d.ts} +106 -121
- package/dist/{index-Cagz4Z2k.d.ts → index-CB66nl14.d.ts} +4 -3
- package/dist/{index-DOHx3JuB.d.ts → index-CBQT_nXf.d.ts} +5 -5
- package/dist/{index-D01wHGSN.d.ts → index-Cw5gGSP8.d.ts} +14 -14
- package/dist/{index-CQhPHHDF.d.ts → index-Cxsnd-OL.d.ts} +1 -1
- package/dist/{index-D1ckLbUM.d.ts → index-pZn6S_iq.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{instances-qz2MCMyK.js → instances-C7qUTjhJ.js} +1 -1
- package/dist/{kit-Dxx3MT8m.d.ts → kit-B8yWCRN7.d.ts} +3 -3
- package/dist/{knowledge-F1IhRI4Q.d.ts → knowledge-CsLPACGJ.d.ts} +5 -5
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-XHoYDlRN.d.ts → list-query-BcU8NnNL.d.ts} +3 -3
- package/dist/mapper/bin.js +7 -7
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/{messaging-C_Pr9tGx.d.ts → messaging-DQP09JsY.d.ts} +4 -4
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +22 -22
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-CPhOcuzl.d.ts → operations-CqmQrTKw.d.ts} +1 -1
- package/dist/{options-BOGo1qCA.js → options-B5E2MGIz.js} +3 -1
- package/dist/{options-D2s7fT1s.js → options-COo7_3MX.js} +2 -1
- package/dist/{options-D32-YxnO.js → options-DhoLMknl.js} +3 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DxZgoKwp.d.ts → outbox-BZ712Z3X.d.ts} +4 -4
- package/dist/{pool-wjbAMqc1.d.ts → pool-DDR1ndk7.d.ts} +3 -3
- package/dist/{ports-Bw7uxPd_.d.ts → ports-6LBgr1Aa.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-z-T0l23T.d.ts → postgrest-AJc8hnJU.d.ts} +1 -1
- package/dist/powersync/index.d.ts +6 -6
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BbSWLoXM.js → preset-DCdEnJj9.js} +9 -14
- package/dist/{project-TN03XDsA.js → project-C4NA_van.js} +5 -5
- package/dist/{provider-ClrIplXa.d.ts → provider-CWjzAIX9.d.ts} +1 -1
- package/dist/{push-token-vykw2JXT.d.ts → push-token-BXsrJ7W9.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-D2-F4IwS.d.ts → record-form-CubgBrtI.d.ts} +1 -1
- package/dist/{recordings-BBSJt_YV.d.ts → recordings-DeZYx-Kv.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refresh-CCKB1Wa6.d.ts → refresh-D02Pbf5B.d.ts} +1 -1
- package/dist/{refusal-D_tklIEb.d.ts → refusal-B0VmlAxF.d.ts} +2 -2
- package/dist/{resolve-Bj1qD7Dy.d.ts → resolve-CtX6T0c0.d.ts} +1 -1
- package/dist/{resolved-names-Dsf28_Dr.js → resolved-names-iLBOUaib.js} +2 -2
- package/dist/{resource-D8pzB5Qf.d.ts → resource-WxN0IsvB.d.ts} +1 -1
- package/dist/{resource-execute-BSTIfp1D.d.ts → resource-execute-BzqR8DdD.d.ts} +2 -2
- package/dist/{resource-types-D5WEvYtV.d.ts → resource-types-BVbHgTPg.d.ts} +4 -4
- package/dist/{resources-CsZ7RhZC.d.ts → resources-BSbRa0Ab.d.ts} +2 -2
- package/dist/{respond-BzRG-0qc.d.ts → respond-Dzu_-EPH.d.ts} +1 -1
- package/dist/{sales-lines-KxxStRzU.d.ts → sales-lines-BsmrNHe9.d.ts} +1 -1
- package/dist/{scores-B2BiNuVJ.d.ts → scores-Y8TvyJi1.d.ts} +5 -5
- package/dist/server/index.d.ts +24 -24
- package/dist/server/index.js +1 -1
- package/dist/{server-types-BlDiY-ya.d.ts → server-types-BkTIxW_H.d.ts} +11 -11
- package/dist/{session-BGP98Rgj.d.ts → session-BOzx2qHC.d.ts} +6 -6
- package/dist/{session-status-C4t7kbSn.d.ts → session-status-BP8eYVnA.d.ts} +2 -2
- package/dist/{sign-in-CAadgm33.d.ts → sign-in-CfwJAJJL.d.ts} +2 -2
- package/dist/{signers-BKgmVh6A.d.ts → signers-ZmxO1I05.d.ts} +4 -4
- package/dist/{signing-keys-BNDUxpQL.d.ts → signing-keys-udgP7Aod.d.ts} +2 -2
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-Dg3W1ENk.js → sql-CoBySj2F.js} +3617 -1285
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-B0Txid2-.d.ts → sso-CkU_4mtK.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -5
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -1
- package/dist/streams/index.d.ts +1 -1
- package/dist/{subject-readers-DJbzlm8a.d.ts → subject-readers-CB5Te02u.d.ts} +5 -5
- package/dist/{subject-readers-CeeJJOQ4.js → subject-readers-VHcrWhmq.js} +2 -2
- package/dist/{subjects-NomQg6Eg.d.ts → subjects-BYCL-6hA.d.ts} +15 -1
- package/dist/{subjects-BpIEN1MS.d.ts → subjects-CiBNKy2y.d.ts} +4 -4
- package/dist/{support-D7CMbhRT.d.ts → support-BxyPOFk4.d.ts} +4 -4
- package/dist/{support-view-CIDXF3_H.d.ts → support-view-nqUWKHEs.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/{tags-Dg4Ywmqp.d.ts → tags-Cm48BsOa.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/{tenant-BRmKZ7aq.d.ts → tenant-Ded341Qz.d.ts} +2 -2
- package/dist/testing/index.d.ts +25 -25
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-Cjl-1hiA.d.ts → timeline-DvXtXq5q.d.ts} +5 -5
- package/dist/{topic-F0FKzJyQ.js → topic-DnsNG4Kj.js} +1 -1
- package/dist/{topic-CpsKVBot.d.ts → topic-XDdKzlrn.d.ts} +5 -5
- package/dist/{types-Dp3UCr1e.d.ts → types-B-D6fYx2.d.ts} +1 -1
- package/dist/{types-CjRwmCRP.d.ts → types-BFwB-E1j.d.ts} +2 -2
- package/dist/{types-Czq9Xtpa.d.ts → types-CK2X2wCB.d.ts} +5 -5
- package/dist/{types-DFdg_4yN.d.ts → types-CPl9uJ0G.d.ts} +2 -2
- package/dist/{types-DR1MHh7N.d.ts → types-CwQgFo8c.d.ts} +4 -4
- package/dist/{types-Dr9wZgNy.d.ts → types-DMihLukJ.d.ts} +3 -3
- package/dist/{types-A4yyKEsg.d.ts → types-iCyZ3lMx.d.ts} +4 -4
- package/dist/{types-BdaBfYIw.d.ts → types-nspa5I-a.d.ts} +7 -7
- package/dist/{undo-B1jwnVyN.d.ts → undo-0HkWXASn.d.ts} +2 -2
- package/dist/{usage-Dp45V42p.d.ts → usage-BkWAPkg2.d.ts} +4 -4
- package/dist/{vault-BghaujrZ.d.ts → vault-BkdPmL7f.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-CI8LgSpv.d.ts → verify-41mZmspj.d.ts} +2 -2
- package/dist/{view-BvNA7EOC.d.ts → view-C8_xvD-j.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/{watch-topic-BaMZX139.d.ts → watch-topic-DpN_GEoS.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-CE8sEK57.js → workflow-sdk-CaEw822d.js} +25 -4
- package/dist/{workflow-sdk-BNsZrcVg.d.ts → workflow-sdk-rg3IbCZC.d.ts} +3 -3
- package/dist/{workflows-B0ZPAQu0.d.ts → workflows-xL6t0TXx.d.ts} +7 -4
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +11 -2
- package/schemas/config-v1.json +45 -351
- package/skills/better-supabase/references/ui-recipes.md +5 -5
- package/dist/cli/add-Bf1fyCWm.js +0 -1
- package/dist/cli/env-xhwXk5Ri.js +0 -1
- package/dist/cli/in-stack-diff-DQTW53Vf.js +0 -257
- package/dist/cli/powersync-Dq-txa0_.js +0 -1
- package/dist/cli/seed-CO3j_bly.js +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { a as list,
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-CQHFm-ak.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
5
5
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-DH1kcmmP.js";
|
|
7
|
-
import { t as CACHE_DIR } from "./cache-
|
|
7
|
+
import { t as CACHE_DIR } from "./cache-DQZ09YOg.js";
|
|
8
8
|
import { t as byCodePoint } from "./compare-BmIWVEui.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 } from "./snapshot-
|
|
10
|
-
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-
|
|
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 } from "./snapshot-CXgsUPGj.js";
|
|
10
|
+
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-B18iAdsT.js";
|
|
11
11
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
12
|
-
import { i as request } from "./source-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { i as request } from "./source-B6aMAoEK.js";
|
|
13
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-Cskysxp-.js";
|
|
14
|
+
import { a as compiledReadSets, d as providerLabel } from "./providers-Cjf5iOp5.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-CncmQbO0.js";
|
|
16
|
-
import { t as PROCESS_ENV } from "./env-
|
|
17
|
-
import { n as readStackStatus } from "./stack-status-
|
|
16
|
+
import { t as PROCESS_ENV } from "./env-BK0xKMeU.js";
|
|
17
|
+
import { n as readStackStatus } from "./stack-status-BkkYRlXG.js";
|
|
18
18
|
import { t as connect } from "./db-CQCLx7cx.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-
|
|
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-B0ehR7K-.js";
|
|
20
20
|
import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
|
|
21
|
-
import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-
|
|
22
|
-
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-
|
|
23
|
-
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-
|
|
24
|
-
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-
|
|
25
|
-
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-
|
|
21
|
+
import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-Wx_2Acgv.js";
|
|
22
|
+
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-CkxDNVEH.js";
|
|
23
|
+
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-BHbtUOvh.js";
|
|
24
|
+
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-8-hMiZtW.js";
|
|
25
|
+
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DGQswWZy.js";
|
|
26
26
|
import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
|
|
27
|
-
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-
|
|
28
|
-
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-
|
|
27
|
+
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-PpAh9pAc.js";
|
|
28
|
+
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-v8ljFDfc.js";
|
|
29
29
|
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-BuSaTE_G.js";
|
|
30
|
-
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-
|
|
30
|
+
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-Cp-tVPj2.js";
|
|
31
31
|
import { i as staleVariables, r as stackEnvValues, t as PREFIX_NAMES } from "./stack-env-6hS-WEmh.js";
|
|
32
|
-
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-
|
|
33
|
-
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-
|
|
32
|
+
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-CiDBH1dB.js";
|
|
33
|
+
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-dAAKb_kR.js";
|
|
34
34
|
import { existsSync } from "node:fs";
|
|
35
35
|
import { dirname, resolve } from "node:path";
|
|
36
36
|
import { createHash } from "node:crypto";
|
|
37
37
|
import { glob, mkdir, readFile, readdir, writeFile } from "node:fs/promises";
|
|
38
38
|
import { DEFAULT_ACTIVE_TENANT, tenantClaimPaths, tenantNameOf } from "better-supabase/config";
|
|
39
|
-
import { SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_POLICY, adoptedTables, adoptedViews, appTablePolicyNotes, blockFileState, blockSqlVersion, contractSignature, customContracts, dataExportPlan, excludedColumns, expiredFlagsQuery, hasColumnAccess, migrationOptionUses, moduleDeprecations, moduleEventTriggers, moduleFileVersion, moduleLayout, notNullCheckName, renderBlocks, sameBlockFile, sameTenantColumn, sameTenantTrigger, scopePolicyName, sharedRolesProblems, subjectColumns, widenedCommands } from "better-supabase/sql";
|
|
39
|
+
import { SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, adoptedTables, adoptedViews, appTablePolicyNotes, blockFileState, blockSqlVersion, contractSignature, customContracts, dataExportPlan, excludedColumns, expiredFlagsQuery, hasColumnAccess, migrationOptionUses, moduleDeprecations, moduleEventTriggers, moduleFileVersion, moduleLayout, notNullCheckName, renderBlocks, sameBlockFile, sameTenantColumn, sameTenantTrigger, scopePolicyName, sharedRolesProblems, subjectColumns, widenedCommands } from "better-supabase/sql";
|
|
40
40
|
import { defineBucket, parseSize } from "better-supabase/storage";
|
|
41
41
|
//#region src/cli/doctor/env.ts
|
|
42
42
|
const PUBLIC_PREFIXES = [
|
|
@@ -203,7 +203,7 @@ async function fileState(context, file) {
|
|
|
203
203
|
* the block's to grant.
|
|
204
204
|
*/
|
|
205
205
|
function widenedAppTablePolicies(context) {
|
|
206
|
-
const tables = adoptedTables(context.config.blocks, appTablesOf(context));
|
|
206
|
+
const tables = adoptedTables(context.config.blocks, appTablesOf(context), { subjects: context.config.subjects });
|
|
207
207
|
if (tables.length === 0) return [];
|
|
208
208
|
const modules = /* @__PURE__ */ new Map();
|
|
209
209
|
for (const table of tables) {
|
|
@@ -293,7 +293,7 @@ async function keptUpdatedAtTriggers(context) {
|
|
|
293
293
|
* tables keep the app's names, as custom blocks' tables do.
|
|
294
294
|
*/
|
|
295
295
|
function keepsAppsName(context) {
|
|
296
|
-
const adopted = context.config.blockNames.some((name) => moduleDeprecations().some((entry) => entry.module === name && (entry.kind === "table" || entry.kind === "column"))) ? adoptedTables(context.config.blocks, appTablesOf(context)) : [];
|
|
296
|
+
const adopted = context.config.blockNames.some((name) => moduleDeprecations().some((entry) => entry.module === name && (entry.kind === "table" || entry.kind === "column"))) ? adoptedTables(context.config.blocks, appTablesOf(context), { subjects: context.config.subjects }) : [];
|
|
297
297
|
return (entry) => {
|
|
298
298
|
if (entry.kind !== "table" && entry.kind !== "column") return false;
|
|
299
299
|
if ((context.config.blocks[entry.module]?.mode ?? "managed") !== "managed") return true;
|
|
@@ -387,7 +387,7 @@ const ADOPTION_RULES = [
|
|
|
387
387
|
check: (context) => {
|
|
388
388
|
const { tables } = catalogOf(context);
|
|
389
389
|
const ownTables = Object.fromEntries(tables.map((table) => [qualified(table), "database"]));
|
|
390
|
-
return adoptedTables(context.config.blocks, ownTables).flatMap((adopted) => {
|
|
390
|
+
return adoptedTables(context.config.blocks, ownTables, { subjects: context.config.subjects }).flatMap((adopted) => {
|
|
391
391
|
const table = tables.find((entry) => entry.schema === adopted.schema && entry.name === adopted.table);
|
|
392
392
|
if (table === void 0) return [];
|
|
393
393
|
return adopted.textColumns.flatMap((logical) => {
|
|
@@ -411,7 +411,7 @@ const ADOPTION_RULES = [
|
|
|
411
411
|
check: (context) => {
|
|
412
412
|
const block = context.config.blocks["webhooks-out"];
|
|
413
413
|
if (block === void 0 || block.options?.["defaultFormat"] !== void 0 || typeof block.columns?.["endpoints"]?.["format"] === "string") return [];
|
|
414
|
-
const adopted = adoptedTables(context.config.blocks, appTablesOf(context)).find((entry) => entry.module === "webhooks-out" && entry.logical === "endpoints");
|
|
414
|
+
const adopted = adoptedTables(context.config.blocks, appTablesOf(context), { subjects: context.config.subjects }).find((entry) => entry.module === "webhooks-out" && entry.logical === "endpoints");
|
|
415
415
|
if (adopted === void 0) return [];
|
|
416
416
|
const table = catalogOf(context).tables.find((entry) => entry.schema === adopted.schema && entry.name === adopted.table);
|
|
417
417
|
return [{
|
|
@@ -582,7 +582,7 @@ const APP_TABLE_SCOPE_RULES = [{
|
|
|
582
582
|
}, command)));
|
|
583
583
|
const extra = table.policies.filter((policy) => policy.permissive && !own.has(policy.name));
|
|
584
584
|
if (extra.length === 0) return [];
|
|
585
|
-
const narrowed = app.scope === "tenant" && table.policies.some((policy) => !policy.permissive && policy.name === TENANT_SCOPE_POLICY);
|
|
585
|
+
const narrowed = app.scope === "tenant" && table.policies.some((policy) => !policy.permissive && (policy.name === TENANT_SCOPE_POLICY || TENANT_SCOPE_NAMES.includes(policy.name)));
|
|
586
586
|
const names = extra.map((policy) => policy.name).join(", ");
|
|
587
587
|
const label = `${SCHEMA}.${app.name}`;
|
|
588
588
|
return [{
|
|
@@ -1576,14 +1576,14 @@ function namedTypes(on) {
|
|
|
1576
1576
|
return isRecord(on) ? Object.keys(on) : [];
|
|
1577
1577
|
}
|
|
1578
1578
|
/**
|
|
1579
|
-
* Block entries whose `on` names a type `config.
|
|
1579
|
+
* Block entries whose `on` names a type `config.subjects` doesn't register. The
|
|
1580
1580
|
* block's SQL refuses such a type when it renders, so this reports it before
|
|
1581
1581
|
* `gen`.
|
|
1582
1582
|
*/
|
|
1583
1583
|
function onUnknownRecordTypes(context) {
|
|
1584
1584
|
const registered = new Set(Object.keys(context.config.subjects));
|
|
1585
1585
|
return Object.entries(context.config.blocks).flatMap(([instance, entry]) => namedTypes(entry?.on).filter((type) => !registered.has(type)).map((type) => ({
|
|
1586
|
-
message: `blocks.${instance}.on names "${type}", which is not a record type. Register it in config.
|
|
1586
|
+
message: `blocks.${instance}.on names "${type}", which is not a record type. Register it in config.subjects, or remove it from on.`,
|
|
1587
1587
|
target: `blocks.${instance}.on.${type}`
|
|
1588
1588
|
})));
|
|
1589
1589
|
}
|
|
@@ -1713,7 +1713,10 @@ async function danglingAuditRegistrations(context) {
|
|
|
1713
1713
|
async function missingAdoptedColumns(context) {
|
|
1714
1714
|
const db = context.database;
|
|
1715
1715
|
if (!db || "skipped" in db) return [];
|
|
1716
|
-
const tables = adoptedTables(context.config.blocks, appTablesOf(context),
|
|
1716
|
+
const tables = adoptedTables(context.config.blocks, appTablesOf(context), {
|
|
1717
|
+
...appViewsOf(context),
|
|
1718
|
+
subjects: context.config.subjects
|
|
1719
|
+
});
|
|
1717
1720
|
if (tables.length === 0) return [];
|
|
1718
1721
|
const names = tables.map((table) => `(${literal$1(table.schema)}, ${literal$1(table.table)})`).join(", ");
|
|
1719
1722
|
let rows;
|
|
@@ -2151,14 +2154,14 @@ const MODULE_RULES = [
|
|
|
2151
2154
|
code: "BS331",
|
|
2152
2155
|
severity: "error",
|
|
2153
2156
|
title: "Subject registry names a missing table or column",
|
|
2154
|
-
description: "An entry in `config.
|
|
2157
|
+
description: "An entry in `config.subjects` names a table, or a column of it (`id`, `tenant`, `title`, `deletedAt`, the `url` placeholders, `rank` and `search`), that the snapshot lacks. `subject_title`, `subject_url`, `can_subject` and every module that falls back to the registry then fail when they run.",
|
|
2155
2158
|
check: missingSubjectColumns
|
|
2156
2159
|
},
|
|
2157
2160
|
{
|
|
2158
2161
|
code: "BS332",
|
|
2159
2162
|
severity: "warning",
|
|
2160
2163
|
title: "Subject table without RLS",
|
|
2161
|
-
description: "A table in `config.
|
|
2164
|
+
description: "A table in `config.subjects` has row level security disabled. `can_subject` treats a row the caller can read as visible, so without RLS every signed-in user passes the visibility half of the check for every row.",
|
|
2162
2165
|
check: subjectsWithoutRls
|
|
2163
2166
|
},
|
|
2164
2167
|
{
|
|
@@ -2172,7 +2175,7 @@ const MODULE_RULES = [
|
|
|
2172
2175
|
code: "BS346",
|
|
2173
2176
|
severity: "warning",
|
|
2174
2177
|
title: "Block on names an unknown record type",
|
|
2175
|
-
description: "A block entry's `on` lists a type, or has a key, that `config.
|
|
2178
|
+
description: "A block entry's `on` lists a type, or has a key, that `config.subjects` doesn't register, so the block's SQL refuses it when `gen` renders the migration. Register the type in `config.subjects` or remove it from `on`.",
|
|
2176
2179
|
check: onUnknownRecordTypes
|
|
2177
2180
|
},
|
|
2178
2181
|
{
|
|
@@ -1096,8 +1096,7 @@ function parseEnv(env) {
|
|
|
1096
1096
|
CI: optionalString,
|
|
1097
1097
|
BETTER_SUPABASE_ENV: optionalString,
|
|
1098
1098
|
BETTER_SUPABASE_AGENT: optionalString,
|
|
1099
|
-
BSB_STACK: optionalString
|
|
1100
|
-
BSB_PG_BIN: optionalString
|
|
1099
|
+
BSB_STACK: optionalString
|
|
1101
1100
|
},
|
|
1102
1101
|
runtimeEnv: env,
|
|
1103
1102
|
isServer: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
|
|
4
|
-
import { n as readStackStatus, t as parseStackStatus } from "./stack-status-
|
|
4
|
+
import { n as readStackStatus, t as parseStackStatus } from "./stack-status-BkkYRlXG.js";
|
|
5
5
|
import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
6
6
|
import { r as publicPrefix, t as detectProject } from "./detect-D9JaAX20.js";
|
|
7
7
|
import { n as prefixFromFlag, r as stackEnvValues } from "./stack-env-6hS-WEmh.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PROCESS_ENV, n as configEnvironment, r as isCi, i as parseEnv } from "./env-
|
|
1
|
+
export { t as PROCESS_ENV, n as configEnvironment, r as isCi, i as parseEnv } from "./env-BK0xKMeU.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as envCommand } from "./env-BM242BCV.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
2
2
|
import { t as EXEC_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
3
3
|
import { s as findUp } from "./supabase-toml-CncmQbO0.js";
|
|
4
|
-
import { t as PROCESS_ENV } from "./env-
|
|
4
|
+
import { t as PROCESS_ENV } from "./env-BK0xKMeU.js";
|
|
5
5
|
import { channel } from "node:diagnostics_channel";
|
|
6
6
|
import { closeSync, existsSync, openSync, readSync, statSync } from "node:fs";
|
|
7
7
|
import { basename, delimiter, dirname, join, normalize, resolve } from "node:path";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { a as list,
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
3
|
import { a as parseNames, i as failedResult, n as CliError } from "./errors-BTe6A15O.js";
|
|
4
|
-
import { u as catalogFingerprint } from "./cache-
|
|
5
|
-
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-
|
|
6
|
-
import {
|
|
7
|
-
import { d as GEN_TASKS, p as isGenTask } from "./config-BVfeG3A5.js";
|
|
4
|
+
import { u as catalogFingerprint } from "./cache-DQZ09YOg.js";
|
|
5
|
+
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CXgsUPGj.js";
|
|
6
|
+
import { d as GEN_TASKS, p as isGenTask } from "./config-Cskysxp-.js";
|
|
8
7
|
import { c as insideRoot, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
9
|
-
import { n as runGen } from "./run-
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as
|
|
15
|
-
import { a as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
8
|
+
import { n as runGen } from "./run-Wx_2Acgv.js";
|
|
9
|
+
import { n as dataMigration } from "./migrations-Cqk-lJwu.js";
|
|
10
|
+
import { t as syncModules } from "./sync-pq6gmlhG.js";
|
|
11
|
+
import { t as addModules } from "./add-BKkV99g9.js";
|
|
12
|
+
import { n as listModules, t as printModule } from "./print-DSTnq5xz.js";
|
|
13
|
+
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-v8ljFDfc.js";
|
|
14
|
+
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-dAAKb_kR.js";
|
|
15
|
+
import { a as runEnv } from "./env-BM242BCV.js";
|
|
16
|
+
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BcYic005.js";
|
|
17
|
+
import { n as runPowerSync } from "./powersync-BWQ-8T3G.js";
|
|
18
|
+
import { t as runSeed } from "./seed-CDnL4Tnc.js";
|
|
19
|
+
import { t as upgrade } from "./upgrade-Dp9p7A69.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { resolve } from "node:path";
|
|
22
22
|
//#region src/cli/commands/sql.ts
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
2
|
+
import { t as connect } from "./db-CQCLx7cx.js";
|
|
3
|
+
import { basename, join } from "node:path";
|
|
4
|
+
import { readFile, readdir } from "node:fs/promises";
|
|
5
|
+
import { gatePlan } from "better-supabase/create";
|
|
6
|
+
//#region src/cli/in-stack-diff.ts
|
|
7
|
+
/**
|
|
8
|
+
* Schemas the platform owns. The declarative files may add policies to their
|
|
9
|
+
* tables (`storage.objects`), so those policies are dropped and replayed, but
|
|
10
|
+
* the schemas themselves are kept.
|
|
11
|
+
*/
|
|
12
|
+
const PLATFORM_SCHEMAS = /* @__PURE__ */ new Set([
|
|
13
|
+
"_analytics",
|
|
14
|
+
"_realtime",
|
|
15
|
+
"auth",
|
|
16
|
+
"cron",
|
|
17
|
+
"extensions",
|
|
18
|
+
"graphql",
|
|
19
|
+
"graphql_public",
|
|
20
|
+
"information_schema",
|
|
21
|
+
"net",
|
|
22
|
+
"pgbouncer",
|
|
23
|
+
"pgmq",
|
|
24
|
+
"pgsodium",
|
|
25
|
+
"pgsodium_masks",
|
|
26
|
+
"pgtle",
|
|
27
|
+
"realtime",
|
|
28
|
+
"repack",
|
|
29
|
+
"storage",
|
|
30
|
+
"supabase_functions",
|
|
31
|
+
"supabase_migrations",
|
|
32
|
+
"tiger",
|
|
33
|
+
"tiger_data",
|
|
34
|
+
"topology",
|
|
35
|
+
"vault"
|
|
36
|
+
]);
|
|
37
|
+
/** Why the Supabase CLI could not start its shadow database. */
|
|
38
|
+
const SHADOW_FAILURE = /could not create shared memory segment|No space left on device|shmget|shadow database/i;
|
|
39
|
+
function isShadowFailure(output) {
|
|
40
|
+
return SHADOW_FAILURE.test(output);
|
|
41
|
+
}
|
|
42
|
+
/** The migration versions (`<digits>_name.sql`) the stack has not applied. */
|
|
43
|
+
function pendingMigrations(files, applied) {
|
|
44
|
+
return files.filter((file) => {
|
|
45
|
+
const version = /^(\d+)_/.exec(basename(file))?.[1];
|
|
46
|
+
return version !== void 0 && !applied.has(version);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const MIGRATION_HEADER = `-- Generated by better-supabase db diff from the running stack with pg-delta.
|
|
50
|
+
-- The SQL compares two databases, so review it before you apply it: check
|
|
51
|
+
-- the order of the statements and drop the ones you didn't mean to change.
|
|
52
|
+
`;
|
|
53
|
+
/** UTC `YYYYMMDDHHMMSS`, the Supabase CLI's migration version. */
|
|
54
|
+
function migrationVersion(now) {
|
|
55
|
+
return now.toISOString().replaceAll(/[-:T]/g, "").slice(0, 14);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Pg-delta is an optional peer (with `@supabase/pg-topo`) that only `db diff`
|
|
59
|
+
* needs, so it loads on demand. Without it, `db diff` says how to install it.
|
|
60
|
+
*/
|
|
61
|
+
async function loadPgDelta(load = () => import("@supabase/pg-delta")) {
|
|
62
|
+
try {
|
|
63
|
+
return await load();
|
|
64
|
+
} catch {
|
|
65
|
+
throw new CliError("dependency_missing", "better-supabase needs \"@supabase/pg-delta\" and \"@supabase/pg-topo\" to plan the diff. Install them: pnpm add -D @supabase/pg-delta @supabase/pg-topo", { suggestion: "pnpm add -D @supabase/pg-delta @supabase/pg-topo" });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* `pg` is an optional peer that pg-delta shares; the pools it takes come from
|
|
70
|
+
* it.
|
|
71
|
+
*/
|
|
72
|
+
async function openPgPool(url) {
|
|
73
|
+
try {
|
|
74
|
+
const mod = await import("pg");
|
|
75
|
+
const { Pool } = mod.default ?? mod;
|
|
76
|
+
return new Pool({ connectionString: url });
|
|
77
|
+
} catch {
|
|
78
|
+
throw new CliError("dependency_missing", "better-supabase needs the \"pg\" package to diff the schema. Install it: pnpm add -D pg", { suggestion: "pnpm add -D pg" });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async function appliedVersions(client) {
|
|
82
|
+
const rows = await client.query("select version from supabase_migrations.schema_migrations").then((result) => result.rows).catch(() => []);
|
|
83
|
+
return new Set(rows.map((row) => row.version));
|
|
84
|
+
}
|
|
85
|
+
function behindMessage(behind) {
|
|
86
|
+
return `The stack has not applied ${String(behind.length)} migration(s) (${behind.slice(0, 3).join(", ")}${behind.length > 3 ? ", ..." : ""}), so the diff would repeat them. Run supabase migration up, then diff again.`;
|
|
87
|
+
}
|
|
88
|
+
/** One SQL statement per action, each ended with a semicolon. */
|
|
89
|
+
function actionsSql(actions) {
|
|
90
|
+
return actions.map((action) => {
|
|
91
|
+
const sql = action.sql.trim();
|
|
92
|
+
return sql.endsWith(";") ? sql : `${sql};`;
|
|
93
|
+
}).join("\n\n");
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Diffs the declarative schema against the running stack with pg-delta's
|
|
97
|
+
* library plan, connected as the stack's `postgres` role: objects owned by
|
|
98
|
+
* `supabase_admin` are invisible to pg-delta, so a shadow that role created
|
|
99
|
+
* would look empty. The plan: it creates a shadow database on the stack's
|
|
100
|
+
* cluster, loads the files into it, and plans the changes from the stack to the
|
|
101
|
+
* shadow. Renames are applied only when a hint confirms them, and destructive
|
|
102
|
+
* actions are blocked unless `allowDataLoss` is set. The shadow is always
|
|
103
|
+
* dropped.
|
|
104
|
+
*/
|
|
105
|
+
async function inStackDiff(options) {
|
|
106
|
+
const open = options.open ?? connect;
|
|
107
|
+
const loadDelta = options.loadDelta ?? loadPgDelta;
|
|
108
|
+
const openPool = options.openPool ?? openPgPool;
|
|
109
|
+
const log = options.log ?? (() => {});
|
|
110
|
+
const main = await open(options.url);
|
|
111
|
+
try {
|
|
112
|
+
const behind = pendingMigrations(options.migrations, await appliedVersions(main.client));
|
|
113
|
+
if (behind.length > 0) throw new CliError("check_failed", behindMessage(behind), { suggestion: "supabase migration up" });
|
|
114
|
+
} finally {
|
|
115
|
+
await main.close();
|
|
116
|
+
}
|
|
117
|
+
const delta = await loadDelta();
|
|
118
|
+
const hints = options.hints ?? [];
|
|
119
|
+
const files = await Promise.all(options.files.map(async (file) => ({
|
|
120
|
+
name: file,
|
|
121
|
+
sql: await readFile(join(options.root, file), "utf-8")
|
|
122
|
+
})));
|
|
123
|
+
log("Creating a shadow database on the stack");
|
|
124
|
+
const shadow = await delta.provisionCoLocatedShadow(options.url).catch((cause) => {
|
|
125
|
+
throw new CliError("failed", cause instanceof Error ? cause.message : String(cause));
|
|
126
|
+
});
|
|
127
|
+
const target = await openPool(options.url);
|
|
128
|
+
const scratch = await openPool(shadow.url);
|
|
129
|
+
try {
|
|
130
|
+
const planFiles = (accept) => delta.planSchemaFiles(target, scratch, files, {
|
|
131
|
+
profile: delta.supabaseProfile,
|
|
132
|
+
renames: "prompt",
|
|
133
|
+
seedAssumedSchemas: true,
|
|
134
|
+
acceptRenames: accept
|
|
135
|
+
});
|
|
136
|
+
log(`Planning ${String(files.length)} schema file(s) with pg-delta`);
|
|
137
|
+
let result = await planFiles([]);
|
|
138
|
+
let gate = gatePlan(describePlan(delta, result.plan), {
|
|
139
|
+
hints,
|
|
140
|
+
allowDataLoss: options.allowDataLoss === true
|
|
141
|
+
});
|
|
142
|
+
if (gate.accepted.length > 0) {
|
|
143
|
+
result = await planFiles(result.plan.renameCandidates.filter((candidate) => gate.accepted.some((accepted) => accepted.from === delta.encodeId(candidate.from) && accepted.to === delta.encodeId(candidate.to))));
|
|
144
|
+
gate = gatePlan(describePlan(delta, result.plan), {
|
|
145
|
+
hints,
|
|
146
|
+
allowDataLoss: options.allowDataLoss === true
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
const sql = gate.blocked ? "" : actionsSql(result.plan.actions);
|
|
150
|
+
const diagnostics = [
|
|
151
|
+
...result.loadDiagnostics,
|
|
152
|
+
...result.targetDiagnostics,
|
|
153
|
+
...result.driftDiagnostics
|
|
154
|
+
];
|
|
155
|
+
return {
|
|
156
|
+
sql,
|
|
157
|
+
gate,
|
|
158
|
+
issues: gate.issues,
|
|
159
|
+
diagnostics,
|
|
160
|
+
skipped: result.skipped
|
|
161
|
+
};
|
|
162
|
+
} finally {
|
|
163
|
+
await Promise.allSettled([target.end(), scratch.end()]);
|
|
164
|
+
await shadow.cleanup();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/** The plan with stable ids written as strings, the shape `gatePlan` reads. */
|
|
168
|
+
function describePlan(delta, plan) {
|
|
169
|
+
return {
|
|
170
|
+
actions: plan.actions,
|
|
171
|
+
renameCandidates: plan.renameCandidates.map((candidate) => ({
|
|
172
|
+
kind: candidate.kind,
|
|
173
|
+
from: delta.encodeId(candidate.from),
|
|
174
|
+
to: delta.encodeId(candidate.to),
|
|
175
|
+
status: candidate.status,
|
|
176
|
+
...candidate.reason === void 0 ? {} : { reason: candidate.reason }
|
|
177
|
+
}))
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
/** The migration files under `supabase/migrations`, relative to the root. */
|
|
181
|
+
async function migrationFiles(root, supabaseDir) {
|
|
182
|
+
const dir = join(supabaseDir, "migrations");
|
|
183
|
+
return (await readdir(join(root, dir)).catch(() => [])).filter((name) => name.endsWith(".sql")).toSorted().map((name) => join(dir, name));
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
export { migrationFiles as a, isShadowFailure as i, PLATFORM_SCHEMAS as n, migrationVersion as o, inStackDiff as r, MIGRATION_HEADER as t };
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -119,7 +119,6 @@ interface CliEnv {
|
|
|
119
119
|
* The directory with `pg_dump` and `psql` for `db diff --in-stack`; found
|
|
120
120
|
* from the stack's postmaster otherwise.
|
|
121
121
|
*/
|
|
122
|
-
readonly BSB_PG_BIN?: string | undefined;
|
|
123
122
|
/** Every variable of the run, for the processes the CLI starts. */
|
|
124
123
|
readonly [PROCESS_ENV]?: Readonly<Record<string, string | undefined>>;
|
|
125
124
|
}
|
|
@@ -399,6 +398,11 @@ interface CliCommandDef<T extends ArgsDef> {
|
|
|
399
398
|
/** Values `completion` offers per argument: block, preset or task names. */
|
|
400
399
|
readonly completions?: { readonly [K in keyof T & string]?: CompletionValues; };
|
|
401
400
|
readonly runsWithInvalidConfig?: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Loads a config that still has the removed `tables` and `records` keys, for
|
|
403
|
+
* the command that moves them out (`migrate schema-first`).
|
|
404
|
+
*/
|
|
405
|
+
readonly readsLegacyTables?: boolean;
|
|
402
406
|
readonly run: (args: CliArgs<T>, context: CliContext) => Promise<CommandResult>;
|
|
403
407
|
}
|
|
404
408
|
/** Any citty command, whatever its arguments. */
|
|
@@ -795,9 +799,11 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
795
799
|
* `--config` keeps `cwd` as the root. `path` is the file `discoverConfig`
|
|
796
800
|
* found, for callers that already looked it up.
|
|
797
801
|
*/
|
|
798
|
-
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined
|
|
802
|
+
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
|
|
803
|
+
readonly legacyTables?: boolean;
|
|
804
|
+
}): Promise<ResolvedConfig>;
|
|
799
805
|
//#endregion
|
|
800
806
|
//#region src/cli/version.d.ts
|
|
801
|
-
export declare const VERSION = "0.
|
|
807
|
+
export declare const VERSION = "0.29.0";
|
|
802
808
|
//#endregion
|
|
803
809
|
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-
|
|
2
|
-
import { i as run, n as createCli, r as help, t as commandNames } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { a as list, r as defineCliCommand } from "./command-DIPmo0wh.js";
|
|
2
|
+
import { i as run, n as createCli, r as help, t as commandNames } from "./run-C2Yg5MWt.js";
|
|
3
|
+
import { t as VERSION } from "./version-CQHFm-ak.js";
|
|
4
4
|
import { n as CliError, t as CLI_ERRORS_URL } from "./errors-BTe6A15O.js";
|
|
5
|
-
import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-
|
|
6
|
-
import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-
|
|
7
|
-
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-
|
|
8
|
-
import { s as loadConfig } from "./config-
|
|
9
|
-
import { n as runGen } from "./run-
|
|
5
|
+
import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-CXgsUPGj.js";
|
|
6
|
+
import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-B18iAdsT.js";
|
|
7
|
+
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-B6aMAoEK.js";
|
|
8
|
+
import { s as loadConfig } from "./config-Cskysxp-.js";
|
|
9
|
+
import { n as runGen } from "./run-Wx_2Acgv.js";
|
|
10
10
|
//#region src/cli/introspect/from-catalog.ts
|
|
11
11
|
/**
|
|
12
12
|
* Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
|