better-supabase 0.34.0 → 0.36.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/{adapter-CWzyKepA.js → adapter-ddQ9Hzka.js} +126 -91
- package/dist/{agents-DXiOPB3V.d.ts → agents-BwUHtvD6.d.ts} +4 -4
- package/dist/{ai-cache-CLiAXCPH.d.ts → ai-cache-CPOP2PYz.d.ts} +4 -4
- package/dist/{ai-chat-DlcBdOhJ.d.ts → ai-chat-BZhfCHHr.d.ts} +106 -25
- package/dist/{ai-schedules-Drx2KRTn.d.ts → ai-schedules-BZPmySUa.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 +2 -2
- package/dist/ai-sdk/chat/index.js +3 -272
- 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/index.js +2 -3
- 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 +6 -5
- package/dist/ai-sdk/workflow/index.js +9 -9
- package/dist/{api-myq2e9t5.d.ts → api-XEaCJbgv.d.ts} +5 -5
- package/dist/{api-keys-DbIbkGxx.d.ts → api-keys-C82fMru4.d.ts} +4 -4
- package/dist/{app-tables-Don-aNOB.d.ts → app-tables-C0XVpQEJ.d.ts} +1 -1
- package/dist/{approvals-Da4uAANx.js → approvals-D8gR1R8R.js} +95 -11
- package/dist/{approvals-DZoGtNFv.d.ts → approvals-DqCv7f-G.d.ts} +101 -7
- package/dist/{assistant-BEbRPjhn.d.ts → assistant-5heV2GeR.d.ts} +7 -3
- package/dist/assistant-BHZ6fqBR.js +300 -0
- package/dist/astro/index.d.ts +7 -7
- package/dist/astro/index.js +5 -5
- package/dist/{auth-module-CqXdm8qD.js → auth-module-DkqapRZJ.js} +1 -1
- package/dist/{authorization-DpVtxuKM.d.ts → authorization-2Rv1AJQJ.d.ts} +151 -39
- package/dist/{authorization-hooks-CxwsRnfV.d.ts → authorization-hooks-C0GfMvFm.d.ts} +8 -2
- package/dist/authz-topic-D7fPUY4P.js +13 -0
- package/dist/{automations-Bw5cX7oj.js → automations-D4QTP8nI.js} +2 -1
- package/dist/{availability-CebEOfMN.d.ts → availability-CZlcrkqD.d.ts} +49 -8
- package/dist/{base64-CVyKHBBw.js → base64-CEBz6-Jj.js} +9 -2
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-BA05aoY9.d.ts → bind-C2XvMlfg.d.ts} +7 -7
- package/dist/{block-env-UX42PHLP.d.ts → block-env-BQrtLPyc.d.ts} +4 -4
- package/dist/{block-helpers-disoUWCp.d.ts → block-helpers-BNtM1tqy.d.ts} +1 -1
- package/dist/{block-hooks-DrA_d1dJ.d.ts → block-hooks-CtMsgLQr.d.ts} +2 -2
- package/dist/{block-subjects-Br2MQNFn.d.ts → block-subjects-Bkieh2Xk.d.ts} +1 -1
- package/dist/{block-tables-Bre1zjau.d.ts → block-tables-DPOgnT3y.d.ts} +1 -1
- package/dist/{block-transport-BEtC_Kis.d.ts → block-transport-CDmOUuLZ.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +5 -5
- package/dist/blocks/activities/index.d.ts +9 -9
- 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 +8 -8
- package/dist/blocks/ai-chat/index.js +80 -20
- 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 +3 -3
- package/dist/blocks/approvals/index.d.ts +16 -5
- package/dist/blocks/approvals/index.js +7 -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/audit/index.js +1 -1
- 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/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +4 -4
- package/dist/blocks/calendar/index.d.ts +46 -8
- package/dist/blocks/calendar/index.js +306 -47
- package/dist/blocks/catalog/index.d.ts +52 -15
- package/dist/blocks/catalog/index.js +53 -18
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/collections/index.d.ts +6 -6
- 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 +6 -6
- 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/data-lifecycle/index.d.ts +8 -8
- package/dist/blocks/deals/index.d.ts +6 -6
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.d.ts +6 -6
- package/dist/blocks/documents/index.d.ts +4 -4
- package/dist/blocks/documents/index.js +1 -1
- 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 +6 -6
- package/dist/blocks/employees/index.d.ts +8 -8
- package/dist/blocks/enrichment/index.d.ts +6 -6
- package/dist/blocks/enrollments/index.d.ts +74 -9
- package/dist/blocks/enrollments/index.js +67 -3
- package/dist/blocks/entitlements/index.d.ts +6 -6
- package/dist/blocks/expenses/index.d.ts +93 -6
- package/dist/blocks/expenses/index.js +95 -4
- 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 +6 -6
- 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 +11 -11
- package/dist/blocks/inbox/index.js +56 -1
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +9 -9
- package/dist/blocks/inventory/index.d.ts +6 -6
- package/dist/blocks/invoices/index.d.ts +30 -10
- package/dist/blocks/invoices/index.js +28 -9
- package/dist/blocks/knowledge/index.d.ts +4 -4
- package/dist/blocks/knowledge/index.js +1 -1
- 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 +88 -15
- package/dist/blocks/leave/index.js +65 -14
- 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 +5 -5
- package/dist/blocks/memory/index.js +30 -5
- 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 +11 -11
- 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/oauth-server/index.js +1 -1
- 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/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +8 -8
- package/dist/blocks/passes/index.js +2 -2
- package/dist/blocks/permissions/index.d.ts +7 -7
- 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 +7 -7
- package/dist/blocks/queue/index.d.ts +6 -6
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +119 -27
- package/dist/blocks/quotes/index.js +112 -18
- package/dist/blocks/rank/index.d.ts +4 -4
- 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 +78 -11
- package/dist/blocks/reminders/index.js +118 -6
- 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 +7 -7
- package/dist/blocks/security-events/index.d.ts +7 -7
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.d.ts +7 -7
- 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/sessions/index.js +1 -1
- 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/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.d.ts +5 -5
- package/dist/blocks/signing-keys/index.d.ts +4 -4
- package/dist/blocks/signing-keys/index.js +2 -2
- 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 +27 -7
- package/dist/blocks/state-machine/index.js +7 -2
- 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 +9 -9
- 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/time-tracking/index.js +1 -1
- 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/vercel-marketplace/index.js +3 -3
- package/dist/blocks/versions/index.d.ts +6 -6
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.d.ts +13 -13
- package/dist/blocks/webhooks/index.js +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +10 -10
- package/dist/blocks/workflow-editor/index.js +65 -2
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{bookings-Br0VXzaf.d.ts → bookings-Dj5cvXKv.d.ts} +4 -4
- package/dist/{bucket-DvG66r5G.d.ts → bucket-CrsJNHzi.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claims/index.d.ts +6 -6
- package/dist/claims/index.js +2 -2
- package/dist/cli/{add-DoEtJhZG.js → add-D2CH8t_B.js} +2 -2
- package/dist/cli/add-De73Ghlh.js +1 -0
- package/dist/cli/{add-THXE7juv.js → add-Duf1-19E.js} +16 -14
- package/dist/cli/{agent-59XWXsRi.js → agent-Tqq3MAqx.js} +26 -1
- package/dist/cli/{app-table-files-BqLd5TuX.js → app-table-files-ha8X0rRE.js} +2 -2
- package/dist/cli/app-tables-BIyQcsHH.js +42 -0
- package/dist/cli/{backfill-D-2W0fNT.js → backfill-CLgA6-ll.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BVU_FoLo.js → blocks-9AeouX4h.js} +2 -2
- package/dist/cli/{blocks-XwUHeyUH.js → blocks-BVB1fMMj.js} +1 -1
- package/dist/cli/{cache-D4nwCBXc.js → cache-aMk9vF1_.js} +1 -1
- package/dist/cli/{codemod-Dh4lf_k4.js → codemod-B5wrcnF2.js} +113 -4
- package/dist/cli/{command-BpZ4AuhR.js → command-DM_x_yzZ.js} +6 -0
- package/dist/cli/{completion-DHTT6rjI.js → completion-CusuUJNn.js} +1 -1
- package/dist/cli/{completion-B08Q0xB3.js → completion-Cx2UYd-y.js} +2 -2
- package/dist/cli/{completion-CwL7e93t.js → completion-DbYb3N8e.js} +2 -2
- package/dist/cli/{config-D-Upz3jV.js → config-BeuImpav.js} +1 -1
- package/dist/cli/{content-mapper-CwFH_PEn.js → content-mapper-CEtdbshU.js} +2 -2
- package/dist/cli/{db-Diy1OebO.js → db-CeiQzhPq.js} +2 -2
- package/dist/cli/{doctor-CyAMbZ_s.js → doctor-DaOUWfRN.js} +391 -54
- package/dist/cli/env-BfWbheiC.js +1 -0
- package/dist/cli/{env-BAJn6wCA.js → env-DVV10l_r.js} +1 -1
- package/dist/cli/{gen-EAUNnUY7.js → gen-BO-2NF-G.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-BRmmmGHJ.js → init-Xit9Hnbb.js} +9 -9
- package/dist/cli/{keys-CxajkV_7.js → keys-DJTN2Avl.js} +1 -1
- package/dist/cli/{live-CV9mn-xC.js → live-CuMpyRjF.js} +2 -2
- package/dist/cli/{mcp-CnaxcLWa.js → mcp-C7d4j5cq.js} +4 -4
- package/dist/cli/{metadata-CFQGBR5E.js → metadata-D2YvkY2D.js} +3 -3
- package/dist/cli/{migrate-z5oHDGNs.js → migrate-BCXxyTKt.js} +2 -2
- package/dist/cli/{migration-safety-BtAPMEZa.js → migration-safety-DfwTOBQ4.js} +1 -1
- package/dist/cli/{migrations-CNa62JSi.js → migrations-nomh4TBo.js} +2 -2
- package/dist/cli/{module-migration-CKJ8kRm1.js → module-migration--9T_T-zt.js} +2 -2
- package/dist/cli/{moved-BAFPdJz_.js → moved-CT6i1csY.js} +1 -1
- package/dist/cli/{parse-BueItuNJ.js → parse-qgJylE_A.js} +1 -1
- package/dist/cli/{powersync-BgoAWeRT.js → powersync-DB9WZsIv.js} +4 -4
- package/dist/cli/powersync-IBM_v_eJ.js +1 -0
- package/dist/cli/{print-CoqKHoy0.js → print-S6IF5rZm.js} +2 -2
- package/dist/cli/{providers-CfbFxUOQ.js → providers-BDTcal71.js} +1 -1
- package/dist/cli/{prune-workflows-BigCoXLw.js → prune-workflows-Zr2DjByi.js} +3 -3
- package/dist/cli/{remove-C9zwn-Kk.js → remove-CPX5Tg5s.js} +6 -6
- package/dist/cli/{render-DQCU_kBW.js → render-Bp7a7XQ9.js} +18 -4
- package/dist/cli/{run-DOD00FFl.js → run-BclCFEyP.js} +13 -41
- package/dist/cli/{run-dY9uOC3W.js → run-BlVaLnt_.js} +2 -2
- package/dist/cli/{run-CVaBuT18.js → run-kgG50x_Z.js} +44 -43
- package/dist/cli/{seed-BpaqqyO8.js → seed-Cn2R91cd.js} +2 -2
- package/dist/cli/seed-DGGjReq4.js +1 -0
- package/dist/cli/{shared-COtj7l3r.js → shared-D60W9NS-.js} +1 -1
- package/dist/cli/{skills-jZThjL3B.js → skills-DH-yPDny.js} +1 -1
- package/dist/cli/{snapshot-BvlEmTB0.js → snapshot-C3_eQUgY.js} +2 -2
- package/dist/cli/{source-BhZRCitG.js → source-Bk6XwIAK.js} +1 -1
- package/dist/cli/{spec-Bo2wIViH.js → spec-BDTpcBns.js} +1 -1
- package/dist/cli/{spec-DsMWuJLv.js → spec-C8ydQwZC.js} +3 -3
- package/dist/cli/{sql-layout-CA7xgRjR.js → sql-layout-DVQ20UMi.js} +3 -3
- package/dist/cli/{stack-147NqctC.js → stack-CmhSfY5V.js} +3 -2
- package/dist/cli/{sync-D9xSGdzO.js → sync-D-WO4Yvl.js} +4 -4
- package/dist/cli/{table-D9FbJS8h.js → table-k5OABwy3.js} +1 -1
- package/dist/cli/{upgrade-Ykf0LLEB.js → upgrade-DGe5Pv6v.js} +5 -5
- package/dist/cli/{upgrade-XK_CQKVJ.js → upgrade-XdhMuHAu.js} +3 -3
- package/dist/cli/{version-Dfdz7KSh.js → version-DKfeme2I.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +2 -2
- package/dist/{client-Bky2z09B.js → client-DrejIxsu.js} +1 -1
- package/dist/{cloud-event-DXWmXrus.d.ts → cloud-event-BEmAUdl1.d.ts} +1 -1
- package/dist/commerce/index.js +1 -1
- package/dist/{compiler-qlXlokKn.d.ts → compiler-BOW4yPcW.d.ts} +2 -2
- package/dist/{composite-CIxjVcL1.d.ts → composite-B-oAH16L.d.ts} +7 -7
- package/dist/{composite-D2JnIiHt.js → composite-BidYZWZY.js} +3 -3
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +4 -4
- package/dist/{config-Bu6pwqcO.js → config-BKxjItQ-.js} +3 -3
- package/dist/{config-MDRA2sre.js → config-BrRlSxhx.js} +1 -1
- package/dist/{connectors-Cf2LeAuZ.d.ts → connectors-CrLRW4Ol.d.ts} +4 -4
- package/dist/{context-BGC0J3t9.d.ts → context-yfOlyAqb.d.ts} +3 -3
- package/dist/contract/index.d.ts +9 -9
- package/dist/{controller-CQrkLoRX.d.ts → controller-CAcLEndc.d.ts} +1 -1
- package/dist/{conversion-C9rndpEI.d.ts → conversion-s1NtB6S-.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +2 -2
- package/dist/credentials/index.d.ts +4 -4
- package/dist/credentials/index.js +1 -1
- package/dist/{cron-route-DSITg1yC.js → cron-route-uTsC2BD0.js} +1 -1
- package/dist/{data-engine-CMENsp3d.d.ts → data-engine-CX1oYDZl.d.ts} +1 -1
- package/dist/{define-ITQA71fw.d.ts → define-BvkaC3Oh.d.ts} +5 -5
- package/dist/{define-B6D55cO0.js → define-Duh2mMYk.js} +1 -1
- package/dist/{define-block-COmMkx2x.d.ts → define-block-Ds3aLZwz.d.ts} +12 -12
- package/dist/{documents-DeZw83ue.d.ts → documents-Btk0MhC0.d.ts} +3 -3
- package/dist/edge/index.d.ts +9 -9
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.d.ts +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/{embeddings-rVR2AKVz.d.ts → embeddings-CI6P_mtD.d.ts} +1 -1
- package/dist/{ended-NC_ZesY4.d.ts → ended-iq2wp8fc.d.ts} +8 -3
- package/dist/{entitlements-BOWTZaRf.d.ts → entitlements-Dhu-4vlH.d.ts} +2 -2
- package/dist/env/index.d.ts +1 -1
- package/dist/{messages-CRk1g6oe.js → errors-0Qid9fGz.js} +107 -3
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +3 -3
- package/dist/{eve-DIKjuPp5.d.ts → eve-DleYrhwj.d.ts} +2 -2
- package/dist/{event-calendar-DUtFyRrv.d.ts → event-calendar-DPMcqy7Q.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DVt3Z9hw.d.ts → events-DCw3c6pj.d.ts} +1 -1
- package/dist/{executor-DqNRrFxx.d.ts → executor-B-o7QMPp.d.ts} +16 -2
- package/dist/{executor-CFmee_nV.d.ts → executor-DoSNec_H.d.ts} +1 -1
- package/dist/{executor-CHnoKOxk.d.ts → executor-H8ZLkeHj.d.ts} +4 -4
- package/dist/{executor-BDMqPbVU.js → executor-RYiR4z47.js} +71 -37
- package/dist/expo/index.d.ts +4 -4
- package/dist/expo/index.js +7 -7
- package/dist/{field-errors-DxPZYw2m.d.ts → field-errors-DXZk9Qjt.d.ts} +10 -10
- package/dist/{fields-CAVk9dxX.d.ts → fields-CP46SPNE.d.ts} +1 -1
- package/dist/{filter-evaluate-Bz3Fzhz2.d.ts → filter-evaluate-Bkbb0nuQ.d.ts} +1 -1
- package/dist/{filter-query-DV-x8fio.d.ts → filter-query-Xj40B5KT.d.ts} +1 -1
- package/dist/{flags-6emyAXly.d.ts → flags-Cuew4tGx.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/{framework-BFlaPuvv.d.ts → framework-Byr_j8G-.d.ts} +8 -8
- package/dist/{framework-ChzJYkJW.js → framework-z3KTPRjk.js} +4 -4
- package/dist/{gateway-DaekJ_Me.d.ts → gateway-B9k89AC4.d.ts} +3 -3
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.d.ts +9 -10
- package/dist/hono/index.js +8 -8
- package/dist/{inbox-DavCzW7b.d.ts → inbox-yGfUVQr2.d.ts} +61 -6
- package/dist/{index-Dvpu22CJ.d.ts → index-1uV69AZq.d.ts} +1 -1
- package/dist/{index-CJB50jzQ.d.ts → index-6H-8Ib1w.d.ts} +6 -6
- package/dist/{index-M1izbwbN.d.ts → index-Ag-T51Jl.d.ts} +1 -1
- package/dist/{index-DNAkWDXc.d.ts → index-BUluRi0b.d.ts} +6 -6
- package/dist/{index-QTZIopQj.d.ts → index-C78VPlXW.d.ts} +1 -1
- package/dist/{index-D18su_r5.d.ts → index-CY612vAg.d.ts} +10 -5
- package/dist/{index-BfU0KR0X.d.ts → index-CnzGRpeH.d.ts} +5 -5
- package/dist/{index-BIAtapnD.d.ts → index-Dbd1E5Au.d.ts} +5 -5
- package/dist/{index-Bhkag9ZE.d.ts → index-Dv6lfL5p.d.ts} +14 -14
- package/dist/{index-8w4OB5En.d.ts → index-F6lsRlsr.d.ts} +1 -1
- package/dist/{index-CeUwyJ3Z.d.ts → index-kkZwp5M1.d.ts} +6 -6
- package/dist/{index-Bz0WLuh_.d.ts → index-lMApFSAd.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/{instances-D31jrmKh.js → instances-xQ2lupVE.js} +246 -12
- package/dist/jwks-cache-CBKtICNV.js +114 -0
- package/dist/{jws-B8p0ppgh.js → jws-De9qjIPV.js} +1 -1
- package/dist/{kit-9pZP5iLU.js → kit-D5rRAKWJ.js} +2 -2
- package/dist/{kit-OgFOW9rX.d.ts → kit-DCuO1ZhB.d.ts} +4 -4
- package/dist/{knowledge-DdZzUTQ-.js → knowledge-CJnZOaix.js} +67 -7
- package/dist/{knowledge-BBC2sfAY.d.ts → knowledge-DWXAxvkN.d.ts} +82 -11
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/{list-query-C7V8kUaD.d.ts → list-query-D1h3Dmnk.d.ts} +3 -3
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{messaging-D5z2TR37.d.ts → messaging-Bfe4p9Pm.d.ts} +4 -4
- package/dist/{model-messages-BcrkjsPE.js → model-messages-CIHqP7Z3.js} +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +331 -79
- package/dist/next/index.js +520 -105
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +1 -1
- package/dist/{operations-BG6prEnh.d.ts → operations-SWpzGC_K.d.ts} +1 -1
- package/dist/{options-D4dxMGHF.js → options-Bgnm4pTD.js} +1 -0
- package/dist/{options-C13-dVMH.js → options-D-jiqb0l.js} +2 -0
- package/dist/{options-DjFbIRgV.js → options-DjdxZgHi.js} +2 -1
- package/dist/{options-CgMiQGOF.js → options-DqmTs2nv.js} +4 -1
- package/dist/{options-C-NFS6e3.js → options-DxgZ8tVc.js} +2 -1
- package/dist/{options-CuPWezcV.js → options-RYbyaVhv.js} +3 -1
- package/dist/options-SOjQVgfS.js +37 -0
- package/dist/{options-JnPEVbBJ.js → options-ScQ6Hnxo.js} +2 -1
- package/dist/{options-Sq4bYbf5.js → options-X61tvckX.js} +4 -1
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +6 -6
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-7zgh-7nw.d.ts → outbox-BFZS6Kvz.d.ts} +4 -4
- package/dist/{permissions-CoHsUtZS.d.ts → permissions-2UlVQDzY.d.ts} +1 -1
- package/dist/{pool-D-4HyhuW.d.ts → pool-yO-LzZAd.d.ts} +3 -3
- package/dist/{ports-CmEXVqhg.js → ports-CkygVOeE.js} +2 -2
- package/dist/{ports-XvgCe7ey.d.ts → ports-prqYrReN.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-DZtM2nIS.d.ts → postgrest-Bjain6nf.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-om2rbdYw.js → preset-BvHNleCo.js} +2 -2
- package/dist/{project-B7nqCzn5.js → project-CBvowdKY.js} +5 -5
- package/dist/{provider-BI0KC4u5.d.ts → provider-bIAzxVMB.d.ts} +1 -1
- package/dist/{push-token-kcc04ZaS.d.ts → push-token-DtqJeg8w.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/{rate-limit-CRhlLFhP.js → rate-limit-BJ4EMdAy.js} +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +3 -3
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -32
- package/dist/react/session.js +1 -37
- package/dist/{react-COIov1yC.js → react-DZ7AW2yf.js} +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +6 -6
- package/dist/{record-form-DU2EoVsv.d.ts → record-form-BQA-lawE.d.ts} +1 -1
- package/dist/{recordings-D69Va7gP.d.ts → recordings-Bw5LoocX.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refusal-CGi-0Q18.d.ts → refusal-BX1EvmpJ.d.ts} +3 -3
- package/dist/{refusal-5c6UMpUP.js → refusal-rnbr6RZD.js} +2 -2
- package/dist/{refresh-B8t_KE3s.js → request-kind-tNDM5Z_o.js} +15 -31
- package/dist/{resolve--LfVoOMg.d.ts → resolve-BIpQRhvF.d.ts} +97 -36
- package/dist/{resolve-FW8oeXvh.js → resolve-CZV31iCm.js} +402 -392
- package/dist/{resolved-names-DYYyh35i.js → resolved-names-b6P2--jK.js} +1 -1
- package/dist/{resource-BbWk4hoP.js → resource-COaS9_i8.js} +1 -1
- package/dist/{resource-DWllVW8k.d.ts → resource-CaYpB07K.d.ts} +1 -1
- package/dist/{resource-execute-DUBYKTYU.d.ts → resource-execute-A1NbR-sd.d.ts} +2 -2
- package/dist/{resource-types-RgaljPs0.d.ts → resource-types-CTcc37WL.d.ts} +4 -4
- package/dist/{resources-Bki1J4jy.d.ts → resources-13ZFX1G6.d.ts} +2 -2
- package/dist/{resources-DYSx9NYM.js → resources-DhiK3yLO.js} +1 -1
- package/dist/{respond-DLH4tD2d.js → respond-8A3EOo61.js} +1 -1
- package/dist/{respond-BYOV7KZp.d.ts → respond-CAxhkwAi.d.ts} +15 -19
- package/dist/{sales-lines-DuNVoKHA.d.ts → sales-lines-wQHuL-pa.d.ts} +1 -1
- package/dist/{sandboxes-B2hBoBvJ.d.ts → sandboxes-BF9RxxCU.d.ts} +1 -1
- package/dist/{scores-FAORS4qU.d.ts → scores-Ce8MxQX9.d.ts} +5 -5
- package/dist/server/index.d.ts +58 -36
- package/dist/server/index.js +35 -41
- package/dist/{server-types-C2hlvhP4.d.ts → server-types-DEjva0MW.d.ts} +19 -17
- package/dist/{session-B4VasaAA.d.ts → session-BA0YDmjt.d.ts} +11 -12
- package/dist/session-BjPYE4dT.js +180 -0
- package/dist/session-CeYL3EPm.d.ts +77 -0
- package/dist/{session-status-D8CBxCqv.d.ts → session-status-Df6tuKY9.d.ts} +4 -3
- package/dist/{sign-in-CX1a5i2P.d.ts → sign-in-4u4vLtXG.d.ts} +16 -4
- package/dist/{sign-in-CxdoTEp5.js → sign-in-djgvab1X.js} +3 -3
- package/dist/{sign-in-BMm1xhKq.js → sign-in-k2lXELeC.js} +2 -2
- package/dist/{signatures-CBn7w4VR.js → signatures-DK01D2S7.js} +1 -1
- package/dist/{signers-6ih6i9aq.d.ts → signers-Dw9DBZjJ.d.ts} +4 -4
- package/dist/{signing-keys-De09WNJ3.d.ts → signing-keys-FglIQ6iL.d.ts} +2 -2
- package/dist/{signing-keys-BC5_hJN5.js → signing-keys-sGaXklwD.js} +1 -1
- package/dist/{snapshot-CVMSyTHH.js → snapshot-BOA7lkRg.js} +9 -17
- package/dist/solid/index.d.ts +10 -10
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-DdtukoIm.js → sql-BChN3Hxv.js} +7594 -2269
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/{sso-CuzAjsc8.d.ts → sso-B7w7h8RJ.d.ts} +3 -3
- package/dist/ssr/index.d.ts +5 -6
- package/dist/ssr/index.js +3 -3
- 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-BlD8tALG.d.ts → subject-readers-YL8H9G8X.d.ts} +2 -2
- package/dist/{subjects-Bv2dPflD.d.ts → subjects-CVjAE7nz.d.ts} +3 -3
- package/dist/{support-DxYI6sDM.d.ts → support-BwtMgjVg.d.ts} +4 -4
- package/dist/{support-view-DSmCett7.d.ts → support-view-GykHOIQ2.d.ts} +1 -1
- package/dist/svelte/index.d.ts +9 -9
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/sveltekit/index.js +5 -5
- package/dist/{tags--k2fbPfO.d.ts → tags-CAfvzA1U.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +3 -3
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-DkKbvK5T.d.ts → tenant-lBgoqg9T.d.ts} +1 -1
- package/dist/testing/index.d.ts +27 -28
- package/dist/testing/index.js +5 -5
- package/dist/{timeline-Bq658xsi.d.ts → timeline-CrO48Qa6.d.ts} +5 -5
- package/dist/{topic-B6zuexk7.d.ts → topic-x-mrN_Ff.d.ts} +5 -5
- package/dist/{types-C8UyJOPJ.d.ts → types-6PMaLIyw.d.ts} +3 -3
- package/dist/{types-Dh2OGEW5.d.ts → types-BdhE7I8Z.d.ts} +5 -5
- package/dist/{types-BkYEUWdz.d.ts → types-BzIYSSWK.d.ts} +16 -1
- package/dist/{types-DCoqai8o.d.ts → types-C7K8mu9B.d.ts} +45 -15
- package/dist/{types-d0JBRTAg.d.ts → types-C9XfFGmA.d.ts} +128 -13
- package/dist/{types-BvHw2cCS.d.ts → types-CJqNGQKb.d.ts} +2 -2
- package/dist/{types-TH3zlMiM.d.ts → types-D5uf0l4_.d.ts} +1 -1
- package/dist/{types-BBqP9H6w.d.ts → types-auvHrNWC.d.ts} +4 -4
- package/dist/{undo-22ofP6Zp.d.ts → undo-CdKp5_2X.d.ts} +2 -2
- package/dist/{usage-CNCT6_3D.d.ts → usage-DZ8j5Tm_.d.ts} +4 -4
- package/dist/{vault-yGQD5Rdl.d.ts → vault-DjbG4XQS.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/{verify-DY_j4GPZ.js → verify-96j8d5ps.js} +1 -1
- package/dist/{verify-BQu3eBNW.d.ts → verify-HOiu3lRR.d.ts} +2 -2
- package/dist/{view-BfEqjZJ_.js → view-Ch0Qtr36.js} +1 -1
- package/dist/{view-Cy2XxYp1.d.ts → view-DdDY88SC.d.ts} +1 -1
- package/dist/vue/index.d.ts +10 -10
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-YYSVJGDY.d.ts → watch-topic-D6bcqOrJ.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +29 -5
- package/dist/workflow-sdk/builder/index.js +39 -12
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +2 -2
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-BL3wzkdp.js → workflow-sdk-CBS8L2Ku.js} +5 -0
- package/dist/{workflow-sdk-yIkECybp.d.ts → workflow-sdk-D3H10W5h.d.ts} +3 -3
- package/dist/{workflows-BljkWRxE.d.ts → workflows-BI4yKqFh.d.ts} +3 -3
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +162 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase-auth/SKILL.md +45 -11
- package/dist/cli/add-C13ZqJ_N.js +0 -1
- package/dist/cli/env-UN6PJFX6.js +0 -1
- package/dist/cli/powersync-DoCruiOt.js +0 -1
- package/dist/cli/seed-ByLneY1H.js +0 -1
- package/dist/errors-D3-4c-XF.js +0 -102
- package/dist/http-BDC1IvBX.js +0 -27
- package/dist/jwks-cache-IZaiICAV.js +0 -48
- package/dist/options-Itq7QYoW.js +0 -20
- package/dist/refresh-BtbC2rZe.d.ts +0 -52
- package/dist/snapshot-BGsJw9xn.d.ts +0 -83
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as envCommand } from "./env-DVV10l_r.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.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-
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.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-
|
|
5
|
-
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-
|
|
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";
|
|
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-
|
|
9
|
-
import { n as dataMigration } from "./migrations-
|
|
10
|
-
import { t as syncModules } from "./sync-
|
|
11
|
-
import { t as addModules } from "./add-
|
|
12
|
-
import { n as listModules, t as printModule } from "./print-
|
|
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";
|
|
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-
|
|
15
|
-
import { a as runEnv } from "./env-
|
|
16
|
-
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-
|
|
17
|
-
import { n as runPowerSync } from "./powersync-
|
|
18
|
-
import { t as runSeed } from "./seed-
|
|
19
|
-
import { t as upgrade } from "./upgrade-
|
|
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";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { resolve } from "node:path";
|
|
22
22
|
// src/cli/commands/sql.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -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.
|
|
756
|
+
export declare const VERSION = "0.36.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-
|
|
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-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";
|
|
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-
|
|
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-
|
|
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";
|
|
8
8
|
import { s as loadConfig } from "./config-DrrkMihk.js";
|
|
9
|
-
import { n as runGen } from "./run-
|
|
9
|
+
import { n as runGen } from "./run-BclCFEyP.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
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
4
|
import { r as readIfExists } from "./io-CQzy8PEZ.js";
|
|
5
|
-
import { l as TYPEGEN_VERSION } from "./cache-
|
|
6
|
-
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-
|
|
7
|
-
import { a as toCatalog } from "./source-
|
|
5
|
+
import { l as TYPEGEN_VERSION } from "./cache-aMk9vF1_.js";
|
|
6
|
+
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-C3_eQUgY.js";
|
|
7
|
+
import { a as toCatalog } from "./source-Bk6XwIAK.js";
|
|
8
8
|
import { a as findConfig, s as loadConfig } from "./config-DrrkMihk.js";
|
|
9
|
-
import { r as contentMapperFiles } from "./content-mapper-
|
|
9
|
+
import { r as contentMapperFiles } from "./content-mapper-CEtdbshU.js";
|
|
10
10
|
import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
11
|
-
import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-
|
|
12
|
-
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-
|
|
11
|
+
import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-Duf1-19E.js";
|
|
12
|
+
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-DfwTOBQ4.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
14
|
-
import { s as enablePgDelta, t as syncModules } from "./sync-
|
|
15
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
14
|
+
import { s as enablePgDelta, t as syncModules } from "./sync-D-WO4Yvl.js";
|
|
15
|
+
import { t as appTablePlan } from "./app-table-files-ha8X0rRE.js";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
import { join, posix, resolve } from "node:path";
|
|
18
18
|
import { glob, readFile, readdir } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { t as display } from "./io-CQzy8PEZ.js";
|
|
3
3
|
import { m as supabaseDir } from "./supabase-toml-B6-eEV5p.js";
|
|
4
4
|
import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import "./source-
|
|
3
|
-
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-
|
|
2
|
+
import "./source-Bk6XwIAK.js";
|
|
3
|
+
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-D60W9NS-.js";
|
|
4
4
|
// src/cli/doctor/reserved-roles.ts
|
|
5
5
|
/**
|
|
6
6
|
* Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
2
|
-
import { a as envelope, i as run } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
|
+
import { a as envelope, i as run } from "./run-kgG50x_Z.js";
|
|
3
|
+
import { t as VERSION } from "./version-DKfeme2I.js";
|
|
4
4
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
|
-
import { n as consentToken } from "./agent-
|
|
5
|
+
import { n as consentToken } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-BCuUsWOh.js";
|
|
7
7
|
import { createInterface } from "node:readline";
|
|
8
8
|
import { answerLine } from "better-supabase/mcp";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { i as readStdin } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-
|
|
4
|
-
import { c as metaPaths, n as render } from "./render-
|
|
5
|
-
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-
|
|
3
|
+
import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-C3_eQUgY.js";
|
|
4
|
+
import { c as metaPaths, n as render } from "./render-Bp7a7XQ9.js";
|
|
5
|
+
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-BclCFEyP.js";
|
|
6
6
|
import { basename, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
4
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
4
|
+
import { t as appTablePlan } from "./app-table-files-ha8X0rRE.js";
|
|
5
5
|
// src/cli/commands/migrate.ts
|
|
6
6
|
const MIGRATE_ARGS = {};
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as INTEGRATIONS } from "./config-DrrkMihk.js";
|
|
2
|
-
import { c as splitStatements } from "./shared-
|
|
2
|
+
import { c as splitStatements } from "./shared-D60W9NS-.js";
|
|
3
3
|
import { dirname, join, posix } from "node:path";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
5
|
import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
2
2
|
import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
3
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DVQ20UMi.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-BDTcal71.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { readFile, readdir } from "node:fs/promises";
|
|
7
7
|
import { moduleSchemaExtensions, renderBlocks } from "better-supabase/sql";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
2
2
|
import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DVQ20UMi.js";
|
|
4
|
+
import { i as stampAfter } from "./migrations-nomh4TBo.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { readFile, readdir } from "node:fs/promises";
|
|
7
7
|
import { moduleSchemaExtensions } from "better-supabase/sql";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { s as positionalIndex } from "./parse-
|
|
2
|
+
import { s as positionalIndex } from "./parse-qgJylE_A.js";
|
|
3
3
|
// src/cli/core/moved.ts
|
|
4
4
|
const API_REPLACEMENT = "defineApi includes every table and block instance, and createOrpc(betterSupabase).router(api) serves it: https://bettersupabase.com/docs/frameworks/orpc#serve-the-api";
|
|
5
5
|
/** Commands removed in 0.15, with what replaces them, longest path first. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-DegdyBIC.js";
|
|
2
|
-
import { t as GLOBAL_ARGS } from "./command-
|
|
2
|
+
import { t as GLOBAL_ARGS } from "./command-DM_x_yzZ.js";
|
|
3
3
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
4
|
// src/cli/core/parse.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
3
|
-
import { n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { n as migrationsDir } from "./sql-layout-DVQ20UMi.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-BDTcal71.js";
|
|
5
|
+
import { i as stampAfter } from "./migrations-nomh4TBo.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { join, resolve } from "node:path";
|
|
8
8
|
import { readFile, readdir } from "node:fs/promises";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as powersyncStreamsCommand } from "./powersync-DB9WZsIv.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { n as layout } from "./providers-
|
|
3
|
-
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
2
|
+
import { n as layout } from "./providers-BDTcal71.js";
|
|
3
|
+
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration--9T_T-zt.js";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { a as moduleKeyProblems, i as entitlementsMode, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
|
|
3
3
|
import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
|
|
4
|
-
import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-
|
|
4
|
+
import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-DVQ20UMi.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { compileReadSets, moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
|
|
7
7
|
import { isReadSet } from "better-supabase";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
3
|
-
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-
|
|
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-
|
|
6
|
+
import { n as ident } from "./live-CuMpyRjF.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
|
|
8
8
|
// src/cli/commands/prune-workflows.ts
|
|
9
9
|
const TERMINAL = [
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
4
|
import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
|
|
5
5
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
|
|
6
|
-
import { a as sqlPlan } from "./sql-layout-
|
|
7
|
-
import { r as layoutFor } from "./providers-
|
|
8
|
-
import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-
|
|
6
|
+
import { a as sqlPlan } from "./sql-layout-DVQ20UMi.js";
|
|
7
|
+
import { r as layoutFor } from "./providers-BDTcal71.js";
|
|
8
|
+
import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-Duf1-19E.js";
|
|
9
9
|
import { t as detectProject } from "./detect-BcUDaO8I.js";
|
|
10
10
|
import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-C6sQ1MqT.js";
|
|
11
|
-
import { n as guardedRemoval } from "./sync-
|
|
11
|
+
import { n as guardedRemoval } from "./sync-D-WO4Yvl.js";
|
|
12
12
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
13
|
-
import { t as blockNames } from "./blocks-
|
|
13
|
+
import { t as blockNames } from "./blocks-9AeouX4h.js";
|
|
14
14
|
import { i as tidyInline, t as cutRange } from "./config-group-D4JWh4kG.js";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { resolve } from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { n as importPath } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-
|
|
3
|
+
import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-aMk9vF1_.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
5
|
-
import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-
|
|
5
|
+
import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-C3_eQUgY.js";
|
|
6
6
|
import { s as providerTruncatedClaim } from "./authorization-DJkkOjjG.js";
|
|
7
7
|
import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
8
|
+
import { a as toCatalog } from "./source-Bk6XwIAK.js";
|
|
9
9
|
import { m as withTableTags } from "./config-DrrkMihk.js";
|
|
10
10
|
import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
11
11
|
import { entityNames } from "better-supabase/blocks";
|
|
@@ -1039,9 +1039,23 @@ function assembleMeta(config, tableModels, enums, functions) {
|
|
|
1039
1039
|
}])) } : {},
|
|
1040
1040
|
...Object.keys(config.topics).length > 0 ? { topics: config.topics } : {},
|
|
1041
1041
|
...config.realtime.tables.length > 0 ? { realtime: realtimeMeta(config.realtime.tables, config.realtime.users, tableModels) } : {},
|
|
1042
|
-
...Object.keys(claimOverrides).length > 0 ? { claims: claimOverrides } : {}
|
|
1042
|
+
...Object.keys(claimOverrides).length > 0 ? { claims: claimOverrides } : {},
|
|
1043
|
+
...bootstrapMeta(config)
|
|
1043
1044
|
};
|
|
1044
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* The schema the sessions block's `bootstrap_<name>` wrappers are callable in:
|
|
1048
|
+
* the API schema, unless its `functions` list leaves them out, else the module
|
|
1049
|
+
* schema. Omitted when that is `better_supabase`, the runtime default.
|
|
1050
|
+
*/
|
|
1051
|
+
function bootstrapMeta(config) {
|
|
1052
|
+
const sessions = config.blocks["sessions"];
|
|
1053
|
+
if (sessions?.options?.["bootstrap"] === void 0) return {};
|
|
1054
|
+
const block = resolveBlock(sessions);
|
|
1055
|
+
const api = block.api;
|
|
1056
|
+
const schema = api !== void 0 && (api.functions === void 0 || api.functions.some((name) => name.startsWith("bootstrap_"))) ? api.schema : block.schema;
|
|
1057
|
+
return schema === "better_supabase" ? {} : { bootstrap: { schema } };
|
|
1058
|
+
}
|
|
1045
1059
|
/** Builds the codegen model from a snapshot and config. */
|
|
1046
1060
|
function buildModel(snapshot, config) {
|
|
1047
1061
|
const ctx = prepareCatalog(snapshot, config);
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-
|
|
3
|
+
import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-aMk9vF1_.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
5
|
-
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-
|
|
6
|
-
import { n as render } from "./render-
|
|
7
|
-
import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements
|
|
8
|
-
import { s as schemaStampPath } from "./content-mapper-
|
|
5
|
+
import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-C3_eQUgY.js";
|
|
6
|
+
import { n as render } from "./render-Bp7a7XQ9.js";
|
|
7
|
+
import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements } from "./authorization-DJkkOjjG.js";
|
|
8
|
+
import { s as schemaStampPath } from "./content-mapper-CEtdbshU.js";
|
|
9
9
|
import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-DQayErI8.js";
|
|
10
|
-
import { n as migrationsDir
|
|
11
|
-
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { n as migrationsDir } from "./sql-layout-DVQ20UMi.js";
|
|
11
|
+
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-D60W9NS-.js";
|
|
12
|
+
import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BIyQcsHH.js";
|
|
13
|
+
import { a as compiledReadSets } from "./providers-BDTcal71.js";
|
|
14
|
+
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration--9T_T-zt.js";
|
|
14
15
|
import { existsSync } from "node:fs";
|
|
15
16
|
import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
16
17
|
import { readFile } from "node:fs/promises";
|
|
17
18
|
import { DEFAULT_ACTIVE_TENANT } from "better-supabase/config";
|
|
18
|
-
import { SQL_MODULES, adoptedTables,
|
|
19
|
+
import { SQL_MODULES, adoptedTables, moduleHidingColumns, moduleLayout, modulePermissionKeys, renderBlocks, sameBlockFile } from "better-supabase/sql";
|
|
19
20
|
// src/cli/doctor/advisor-rules.ts
|
|
20
21
|
/**
|
|
21
22
|
* One request per advisor category, shared by the advisor rules and the rules
|
|
@@ -115,33 +116,12 @@ async function splinterTables(context, lint) {
|
|
|
115
116
|
return object ? [`${object.schema}.${object.name}`] : [];
|
|
116
117
|
}));
|
|
117
118
|
}
|
|
118
|
-
// src/cli/doctor/app-tables.ts
|
|
119
|
-
/**
|
|
120
|
-
* The app's tables in the database, as `ownTables`: those in `schemas` that no
|
|
121
|
-
* block file or module migration creates.
|
|
122
|
-
*/
|
|
123
|
-
function appTablesOf(context) {
|
|
124
|
-
const created = new Set(declaredTables((context.sqlFiles ?? []).filter(writtenByBlocks), context.config.schemas));
|
|
125
|
-
return Object.fromEntries(catalogOf(context).tables.filter((table) => context.config.schemas.includes(table.schema) && !created.has(qualified(table))).map((table) => [qualified(table), "database"]));
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* The views among the app's tables, and the columns of each, for the layout a
|
|
129
|
-
* block reads them with.
|
|
130
|
-
*/
|
|
131
|
-
function appViewsOf(context) {
|
|
132
|
-
const own = appTablesOf(context);
|
|
133
|
-
const views = catalogOf(context).tables.filter((table) => table.kind === "view" && Object.hasOwn(own, qualified(table)));
|
|
134
|
-
return {
|
|
135
|
-
ownViews: Object.fromEntries(views.map((view) => [qualified(view), { updatable: view.insertable && view.updatable }])),
|
|
136
|
-
ownColumns: Object.fromEntries(views.map((view) => [qualified(view), view.columns.map((column) => column.name)]))
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
119
|
// src/cli/doctor/block-policies.ts
|
|
140
120
|
/** The prefix the render pass gives block policies on the app's tables. */
|
|
141
121
|
const BLOCK_PREFIX = "bsb_";
|
|
142
122
|
/** The app tables (`schema.table`) that blocks run over. */
|
|
143
123
|
function blockTargets(context) {
|
|
144
|
-
return new Set(adoptedTables(context.config.blocks, appTablesOf(context),
|
|
124
|
+
return new Set(adoptedTables(context.config.blocks, appTablesOf(context), adoptionContext(context)).map((table) => `${table.schema}.${table.table}`));
|
|
145
125
|
}
|
|
146
126
|
/**
|
|
147
127
|
* Whether permissive policies that overlap on `table` are one app policy and
|
|
@@ -797,14 +777,6 @@ function entitlementsModule(context) {
|
|
|
797
777
|
return mode.kind === "provider" ? mode.provider : void 0;
|
|
798
778
|
}
|
|
799
779
|
/**
|
|
800
|
-
* The provider for the `provider` access model, when `blocks` installs
|
|
801
|
-
* `access`.
|
|
802
|
-
*/
|
|
803
|
-
function accessModule(context) {
|
|
804
|
-
if (!resolveBlocks(context.config.blockNames, {}).some((module) => module.name === "permissions")) return { kind: "off" };
|
|
805
|
-
return accessProviderMode(context.config);
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
780
|
* Checks a function a template calls against `authorization.requires` and the
|
|
809
781
|
* database: listed, executable by `role`, and present when the snapshot read
|
|
810
782
|
* its schema. `undefined` when it passes.
|
|
@@ -1448,4 +1420,4 @@ async function runGen(options) {
|
|
|
1448
1420
|
}
|
|
1449
1421
|
};
|
|
1450
1422
|
}
|
|
1451
|
-
export {
|
|
1423
|
+
export { BLOCK_PREFIX as _, METADATA_GAPS_TEXT as a, splinterTables as b, entitlementsModule as c, appliesTo as d, escape as f, withoutStrings as g, policyHelpers as h, generationNotices as i, COMMANDS as l, functionObject as m, runGen as n, fromMetadata as o, functionBody as p, UNFORMATTED as r, AUTHORIZATION_RULES as s, refuseRowConditionedBuckets as t, RLS_RULES as u, blockTargets as v, advisorRule as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { t as PROCESS_ENV } from "./env-BCuUsWOh.js";
|
|
4
4
|
import { n as spawnInherited } from "./exec-CXBufciC.js";
|
|
5
5
|
import { a as staleVariables } from "./stack-env-BQhbUFa7.js";
|
|
6
|
-
import { i as readStackEnv } from "./env-
|
|
6
|
+
import { i as readStackEnv } from "./env-DVV10l_r.js";
|
|
7
7
|
// src/cli/commands/run.ts
|
|
8
8
|
const ARGS = {
|
|
9
9
|
prefix: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-
|
|
1
|
+
import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-DKfeme2I.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-DcJ_PayO.js";
|
|
5
|
-
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-
|
|
6
|
-
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-
|
|
7
|
-
import { n as movedCommand, r as movedFlag } from "./moved-
|
|
5
|
+
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-Tqq3MAqx.js";
|
|
6
|
+
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-qgJylE_A.js";
|
|
7
|
+
import { n as movedCommand, r as movedFlag } from "./moved-CT6i1csY.js";
|
|
8
8
|
import { n as HTTP_CHANNEL, t as EXEC_CHANNEL } from "./trace-D3TNqWBg.js";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
@@ -16,43 +16,44 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["remove", () => import("./remove-
|
|
22
|
-
["upgrade", () => import("./upgrade-
|
|
23
|
-
["table", () => import("./table-
|
|
24
|
-
["migrate schema-first", () => import("./migrate-
|
|
25
|
-
["gen", () => import("./gen-
|
|
26
|
-
["doctor", () => import("./doctor-
|
|
27
|
-
["db query", () => import("./db-
|
|
28
|
-
["db diff", () => import("./db-
|
|
29
|
-
["db seed", () => import("./seed-
|
|
30
|
-
["db backfill", () => import("./backfill-
|
|
31
|
-
["db prune-workflows", () => import("./prune-workflows-
|
|
32
|
-
["dev env", () => import("./env-
|
|
33
|
-
["dev run", () => import("./run-
|
|
34
|
-
["dev keys", () => import("./keys-
|
|
35
|
-
["dev stack ls", () => import("./stack-
|
|
36
|
-
["dev stack prune", () => import("./stack-
|
|
37
|
-
["blocks list", () => import("./blocks-
|
|
38
|
-
["blocks view", () => import("./blocks-
|
|
39
|
-
["blocks search", () => import("./blocks-
|
|
40
|
-
["powersync streams", () => import("./powersync-
|
|
41
|
-
["spec emit", () => import("./spec-
|
|
42
|
-
["spec validate", () => import("./spec-
|
|
43
|
-
["mcp", () => import("./mcp-
|
|
44
|
-
["skills list", () => import("./skills-
|
|
45
|
-
["skills install", () => import("./skills-
|
|
46
|
-
["codemod 0.4", () => import("./codemod-
|
|
47
|
-
["codemod 0.5", () => import("./codemod-
|
|
48
|
-
["codemod 0.6", () => import("./codemod-
|
|
49
|
-
["codemod 0.9", () => import("./codemod-
|
|
50
|
-
["codemod 0.11", () => import("./codemod-
|
|
51
|
-
["codemod 0.15", () => import("./codemod-
|
|
52
|
-
["codemod 0.29", () => import("./codemod-
|
|
53
|
-
["codemod 0.32", () => import("./codemod-
|
|
54
|
-
["
|
|
55
|
-
["
|
|
19
|
+
["init", () => import("./init-Xit9Hnbb.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-De73Ghlh.js").then((m) => m.addCommand)],
|
|
21
|
+
["remove", () => import("./remove-CPX5Tg5s.js").then((m) => m.removeCommand)],
|
|
22
|
+
["upgrade", () => import("./upgrade-XdhMuHAu.js").then((m) => m.upgradeCommand)],
|
|
23
|
+
["table", () => import("./table-k5OABwy3.js").then((m) => m.tableCommand)],
|
|
24
|
+
["migrate schema-first", () => import("./migrate-BCXxyTKt.js").then((m) => m.migrateSchemaFirstCommand)],
|
|
25
|
+
["gen", () => import("./gen-BO-2NF-G.js").then((m) => m.genCommand)],
|
|
26
|
+
["doctor", () => import("./doctor-DaOUWfRN.js").then((m) => m.doctorCommand)],
|
|
27
|
+
["db query", () => import("./db-CeiQzhPq.js").then((m) => m.dbQueryCommand)],
|
|
28
|
+
["db diff", () => import("./db-CeiQzhPq.js").then((m) => m.dbDiffCommand)],
|
|
29
|
+
["db seed", () => import("./seed-DGGjReq4.js").then((m) => m.seedCommand)],
|
|
30
|
+
["db backfill", () => import("./backfill-CLgA6-ll.js").then((m) => m.dbBackfillCommand)],
|
|
31
|
+
["db prune-workflows", () => import("./prune-workflows-Zr2DjByi.js").then((m) => m.dbPruneWorkflowsCommand)],
|
|
32
|
+
["dev env", () => import("./env-BfWbheiC.js").then((m) => m.envCommand)],
|
|
33
|
+
["dev run", () => import("./run-BlVaLnt_.js").then((m) => m.runCommand)],
|
|
34
|
+
["dev keys", () => import("./keys-DJTN2Avl.js").then((m) => m.keysCommand)],
|
|
35
|
+
["dev stack ls", () => import("./stack-CmhSfY5V.js").then((m) => m.stackLsCommand)],
|
|
36
|
+
["dev stack prune", () => import("./stack-CmhSfY5V.js").then((m) => m.stackPruneCommand)],
|
|
37
|
+
["blocks list", () => import("./blocks-BVB1fMMj.js").then((m) => m.blocksListCommand)],
|
|
38
|
+
["blocks view", () => import("./blocks-BVB1fMMj.js").then((m) => m.blocksViewCommand)],
|
|
39
|
+
["blocks search", () => import("./blocks-BVB1fMMj.js").then((m) => m.blocksSearchCommand)],
|
|
40
|
+
["powersync streams", () => import("./powersync-IBM_v_eJ.js").then((m) => m.powersyncStreamsCommand)],
|
|
41
|
+
["spec emit", () => import("./spec-BDTpcBns.js").then((m) => m.specEmitCommand)],
|
|
42
|
+
["spec validate", () => import("./spec-BDTpcBns.js").then((m) => m.specValidateCommand)],
|
|
43
|
+
["mcp", () => import("./mcp-C7d4j5cq.js").then((m) => m.mcpCommand)],
|
|
44
|
+
["skills list", () => import("./skills-DH-yPDny.js").then((m) => m.skillsListCommand)],
|
|
45
|
+
["skills install", () => import("./skills-DH-yPDny.js").then((m) => m.skillsInstallCommand)],
|
|
46
|
+
["codemod 0.4", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.4"))],
|
|
47
|
+
["codemod 0.5", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.5"))],
|
|
48
|
+
["codemod 0.6", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.6"))],
|
|
49
|
+
["codemod 0.9", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.9"))],
|
|
50
|
+
["codemod 0.11", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.11"))],
|
|
51
|
+
["codemod 0.15", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.15"))],
|
|
52
|
+
["codemod 0.29", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.29"))],
|
|
53
|
+
["codemod 0.32", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.32"))],
|
|
54
|
+
["codemod 0.35", () => import("./codemod-B5wrcnF2.js").then((m) => m.codemodCommand("0.35"))],
|
|
55
|
+
["completion", () => import("./completion-Cx2UYd-y.js").then((m) => m.completionCommand)],
|
|
56
|
+
["config", () => import("./config-BeuImpav.js").then((m) => m.configCommand)]
|
|
56
57
|
];
|
|
57
58
|
/** The built-in commands, for `createCli`. */
|
|
58
59
|
function builtinCommands() {
|
|
@@ -467,7 +468,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
467
468
|
};
|
|
468
469
|
if (argv[0] === "__complete") {
|
|
469
470
|
const words = argv[1] === "--" ? argv.slice(2) : argv.slice(1);
|
|
470
|
-
const lines = await import("./completion-
|
|
471
|
+
const lines = await import("./completion-CusuUJNn.js").then(async ({ complete, completionLines }) => completionLines(await complete(tree, words))).catch(() => "");
|
|
471
472
|
if (lines !== "") out(lines);
|
|
472
473
|
return {
|
|
473
474
|
code: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as commandMeta, r as defineCliCommand } from "./command-
|
|
2
|
-
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-
|
|
1
|
+
import { m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
|
+
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
3
3
|
import { t as display } from "./io-CQzy8PEZ.js";
|
|
4
4
|
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-DrrkMihk.js";
|
|
5
5
|
import { m as supabaseDir } from "./supabase-toml-B6-eEV5p.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as seedCommand } from "./seed-Cn2R91cd.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toCatalog } from "./source-
|
|
1
|
+
import { a as toCatalog } from "./source-Bk6XwIAK.js";
|
|
2
2
|
import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
3
3
|
// src/cli/doctor/shared.ts
|
|
4
4
|
const catalogs = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DM_x_yzZ.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
4
4
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-
|
|
2
|
+
import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-aMk9vF1_.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
4
|
-
import { n as managementSource, r as pgSource } from "./source-
|
|
4
|
+
import { n as managementSource, r as pgSource } from "./source-Bk6XwIAK.js";
|
|
5
5
|
import { n as databaseUrl, u as accessToken } from "./config-DrrkMihk.js";
|
|
6
6
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
|
|
7
7
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-DKfeme2I.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { r as redactUrl } from "./redact--zOGdWzo.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
|