better-supabase 0.48.0 → 0.50.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/{activities-D39qA-Af.d.ts → activities-C2v_Sq4w.d.ts} +1 -1
- package/dist/{ai-schedules-g-uKxgU2.d.ts → ai-schedules-BOiaFIva.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-C7zbYd0g.d.ts → app-tables-ByFny1cL.d.ts} +1 -1
- package/dist/audit-files/index.js +5 -8
- package/dist/{authorization-BjOM8pzj.d.ts → authorization-N4bh4KQS.d.ts} +1 -1
- package/dist/{automations-ByU4cU9J.js → automations-Ce0jNNIe.js} +1 -1
- package/dist/{banking-reads-Cj4f6_eG.js → banking-reads-D4Yuz4uX.js} +1 -1
- package/dist/{bind-DR7RV4WY.d.ts → bind-ChYzUApb.d.ts} +3 -3
- package/dist/{block-env-CxI_lxyr.d.ts → block-env-buLS8m9m.d.ts} +4 -4
- package/dist/{block-subjects-BLcM5e4I.js → block-subjects-rv7V0R6O.js} +7 -4
- package/dist/{block-tables-CSLUgF1o.d.ts → block-tables-CQHwZ9-v.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +2 -1
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/accounting/index.js +1 -1
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.js +1 -1
- package/dist/blocks/activities/index.d.ts +4 -4
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/advisories/index.js +2 -1
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.js +4 -3
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +2 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +3 -2
- package/dist/blocks/ai-chat/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.js +2 -1
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.js +3 -2
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +3 -2
- package/dist/blocks/ai-guardrails/index.d.ts +1 -1
- package/dist/blocks/ai-guardrails/index.js +3 -2
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +2 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +2 -1
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +2 -1
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.js +3 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +1 -1
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assets/index.js +1 -1
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +1 -1
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +3 -2
- package/dist/blocks/banking/index.d.ts +1 -2
- package/dist/blocks/banking/index.js +2 -2
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +1 -1
- package/dist/blocks/billing/index.d.ts +61 -4
- package/dist/blocks/billing/index.js +52 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +2 -1
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/calendar/index.js +1 -1
- package/dist/blocks/care/index.d.ts +27 -27
- package/dist/blocks/care/index.js +31 -29
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/care-plans/index.js +2 -2
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/cases/index.js +1 -1
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/catalog/index.js +1 -1
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +2 -1
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.js +3 -2
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/cms/index.js +7 -6
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collaboration/index.js +8 -7
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -2
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/index.js +1 -1
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commerce/index.js +7 -6
- package/dist/blocks/commissions/index.d.ts +254 -0
- package/dist/blocks/commissions/index.js +231 -0
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +3 -2
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +2 -1
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/consents/index.js +1 -1
- package/dist/blocks/contacts/index.d.ts +2 -2
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/content/index.js +1 -1
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +4 -3
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/courses/index.js +1 -1
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/created-by/index.js +2 -1
- package/dist/blocks/crm/index.d.ts +16 -16
- package/dist/blocks/crm/index.js +18 -17
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -1
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/dam/index.js +3 -2
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/dispatch/index.js +1 -1
- package/dist/blocks/document-templates/index.d.ts +1 -1
- package/dist/blocks/document-templates/index.js +3 -2
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +2 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +3 -2
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +4 -3
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/e-prescribing/index.js +3 -2
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +1 -1
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/enrollments/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +1 -1
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/events/index.js +5 -4
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +4 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +1 -1
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/filespace/index.js +9 -8
- package/dist/blocks/finance/index.d.ts +31 -6
- package/dist/blocks/finance/index.js +48 -15
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +2 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +1 -1
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/funding/index.js +1 -1
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +1 -1
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/governance/index.js +6 -5
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +3 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/imports/index.js +2 -1
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +3 -2
- package/dist/blocks/index.d.ts +8 -6
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inspections/index.js +2 -1
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.d.ts +2 -2
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.js +1 -1
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/learning/index.js +5 -4
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +4 -3
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +4 -3
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/legal-entities/index.js +3 -2
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/lims/index.js +3 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/mail-sync/index.js +1 -1
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/maintenance/index.js +1 -1
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.js +4 -3
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/medications/index.js +1 -1
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/meetings/index.js +1 -1
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memberships/index.js +2 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +3 -2
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +2 -1
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +2 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/index.js +2 -1
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/moderation/index.js +3 -2
- package/dist/blocks/notifications/index.d.ts +56 -5
- package/dist/blocks/notifications/index.js +83 -3
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +3 -2
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/observations/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +1 -1
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/orders/index.js +2 -2
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.js +1 -1
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/people/index.js +9 -8
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/periods/index.js +3 -2
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +4 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +1 -1
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/posts/index.js +2 -1
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +7 -6
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +1 -1
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +10 -9
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +2 -2
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/prompts/index.js +3 -2
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +2 -1
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.js +1 -1
- package/dist/blocks/queue/index.d.ts +35 -3
- package/dist/blocks/queue/index.js +46 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.js +6 -5
- package/dist/blocks/referrals/index.d.ts +149 -0
- package/dist/blocks/referrals/index.js +146 -0
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +2 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -2
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/rfqs/index.js +1 -1
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/risks/index.js +2 -1
- package/dist/blocks/saas/index.d.ts +12 -12
- package/dist/blocks/saas/index.js +14 -13
- package/dist/blocks/sales/index.d.ts +1 -1
- package/dist/blocks/sales/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.js +2 -1
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scheduling/index.js +6 -5
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/scores/index.js +3 -2
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +1 -1
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +3 -2
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/segments/index.js +1 -1
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/sequences/index.js +1 -1
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service/index.js +9 -8
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +2 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +2 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +1 -1
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +1 -1
- package/dist/blocks/shifts/index.d.ts +2 -2
- package/dist/blocks/shifts/index.js +1 -1
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/shipments/index.js +4 -3
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +2 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +1 -1
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/support/index.js +7 -6
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +1 -1
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/tax/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/templates/index.js +2 -1
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/tills/index.js +4 -3
- package/dist/blocks/time-tracking/index.d.ts +2 -2
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/timeline/index.js +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +3 -2
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.js +2 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +3 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -2
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +2 -1
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.js +3 -2
- package/dist/blocks/webhooks/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.js +4 -2
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +2 -1
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +2 -1
- package/dist/{blocks-SAugFNo4.d.ts → blocks-ERs7xZ7E.d.ts} +93 -18
- package/dist/{care-plans-sql-BrhEfxVx.js → care-plans-sql-DOfShX0z.js} +1 -1
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{add-BiX01SYs.js → add-BhQZHdAv.js} +2 -2
- package/dist/cli/add-C8CZuuRW.js +1 -0
- package/dist/cli/{add-BfnDHlvk.js → add-yTy1CuMe.js} +37 -17
- package/dist/cli/{app-table-files-k2OIuQXL.js → app-table-files-CSZU_cFC.js} +3 -3
- package/dist/cli/{app-tables-CB9PQrKi.js → app-tables-CmY2GVb3.js} +2 -2
- package/dist/cli/{backfill-CpZgv1A6.js → backfill-BUNIA-Vt.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CGGPe0K4.js → blocks-BO-v5N1q.js} +1 -1
- package/dist/cli/{blocks-DE0qZ1Yz.js → blocks-CLaPv7TM.js} +1 -1
- package/dist/cli/{cache-XYhIgXzI.js → cache-VZU4FIOF.js} +1 -1
- package/dist/cli/{codemod-BWmvfKSo.js → codemod-DgbHI_T7.js} +1 -1
- package/dist/cli/{config-Ci9vE9Cp.js → config-C-DXllAX.js} +9 -1
- package/dist/cli/{config-BbnenK6U.js → config-DyGupd-1.js} +1 -1
- package/dist/cli/{content-mapper-M1H8j6CJ.js → content-mapper-5_KpJMOD.js} +2 -2
- package/dist/cli/{db-BV4gtLuC.js → db-CVoN3aLl.js} +2 -2
- package/dist/cli/{doctor-Be05oUmw.js → doctor-BsB5Sg9v.js} +260 -19
- package/dist/cli/{gen-z-_Dpjmo.js → gen-Dbtv-GLi.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-ifBOh5bq.js → init-DbxcqUL_.js} +9 -9
- package/dist/cli/{live-J-In94dl.js → live-B86Xvfaj.js} +2 -2
- package/dist/cli/{mcp-C7mf6KH9.js → mcp-BjvRPCNn.js} +2 -2
- package/dist/cli/{metadata-CYDEPSi_.js → metadata-BCKNATUX.js} +3 -3
- package/dist/cli/{migrate-rQRFctMv.js → migrate-Ds8H9Vq6.js} +1 -1
- package/dist/cli/{migration-safety-B2AVPCUM.js → migration-safety-CVtbyZQ4.js} +2 -2
- package/dist/cli/{migrations-ClUStdUL.js → migrations-Dob5hF6K.js} +2 -2
- package/dist/cli/{module-migration-BsnMUveg.js → module-migration-BSOn1xPx.js} +2 -2
- package/dist/cli/powersync-6wkF5mUR.js +1 -0
- package/dist/cli/{powersync-BwNqqNym.js → powersync-aGKsgFN9.js} +3 -3
- package/dist/cli/{print-YW7AmWMX.js → print-scQOZbuq.js} +2 -2
- package/dist/cli/{providers-BsjqZkxi.js → providers-Dr7FyvN1.js} +1 -1
- package/dist/cli/{prune-workflows-CO0e6RBk.js → prune-workflows-DguQsnDA.js} +3 -3
- package/dist/cli/{remove-BA8niaOg.js → remove-BK_muhLi.js} +6 -6
- package/dist/cli/{render-Bn_Tmgd6.js → render-D8KGIoSK.js} +4 -4
- package/dist/cli/{run-DF3mWO-N.js → run-BIAan13C.js} +9 -9
- package/dist/cli/{run-DT8Mga9C.js → run-aWo2fn_x.js} +33 -33
- package/dist/cli/{seed-B-YNTxgm.js → seed-C7eiVpBy.js} +2 -2
- package/dist/cli/seed-Ki7TgmY1.js +1 -0
- package/dist/cli/{shared-BnQS0aaB.js → shared-d7o6xxEZ.js} +1 -1
- package/dist/cli/{snapshot-CcduGETT.js → snapshot-BmBrjk2b.js} +3 -3
- package/dist/cli/{source-D5-MimKN.js → source-CEPki4I3.js} +1 -1
- package/dist/cli/{source-args-jRFa0bN2.js → source-args-Deg53QHe.js} +1 -1
- package/dist/cli/{spec-Bhcub30h.js → spec-36lt_pPC.js} +1 -1
- package/dist/cli/{spec-CabrFVxG.js → spec-BKCoD-Ct.js} +2 -2
- package/dist/cli/{sql-layout-BNeDrYab.js → sql-layout-BevHhOrq.js} +2 -2
- package/dist/cli/{sync-CMnEdcF7.js → sync-x1M-Ywqf.js} +4 -4
- package/dist/cli/{upgrade-DWNNxAoj.js → upgrade-BUDxM1EG.js} +5 -5
- package/dist/cli/{upgrade-CQiB_nLU.js → upgrade-Dqze3aEB.js} +2 -2
- package/dist/cli/{version-PZu75_DM.js → version-CvNMxnwv.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{codecs-hCAYRsL2.js → codecs-jdyv13IU.js} +2 -2
- package/dist/commerce/index.js +3 -3
- package/dist/commissions-values-BrfR5JCS.js +17 -0
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-loQV70qq.js → config-DYtSlwsi.js} +3 -3
- package/dist/{config-ClmKXrmI.js → config-gJ9FX0jc.js} +47 -4
- package/dist/{context-oS96_5av.d.ts → context-BlLvUNCj.d.ts} +62 -6
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-BES51lfW.d.ts → controller-DfgxFNFx.d.ts} +1 -1
- package/dist/{controller-8a5AvYC-.js → controller-IWNfCm-Y.js} +1 -1
- package/dist/{conversion-DK-9E21e.d.ts → conversion-BzVxeYqk.d.ts} +1 -1
- package/dist/{copy-CPMVxt7Y.js → copy-D0kQ1zJy.js} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +2 -2
- package/dist/create/lite/index.js +2 -2
- package/dist/{deal-forecast-CRj39Mqw.js → deal-forecast-CgzuxYtf.js} +1 -1
- package/dist/{define-block-B00AycyT.d.ts → define-block-DiW9g10_.d.ts} +7 -1
- package/dist/{define-block-CCnA8LbO.js → define-block-DyZiZQrx.js} +1 -0
- package/dist/{drive-BRl5srH7.d.ts → drive-CvgLTJA9.d.ts} +1 -1
- package/dist/e-invoicing/index.d.ts +1 -1
- package/dist/e-invoicing/index.js +1 -1
- package/dist/{entitlements-Def4tw1y.d.ts → entitlements-5nbdIitJ.d.ts} +1 -1
- package/dist/{extract-6-eperTu.d.ts → extract-DpiLKlbp.d.ts} +1 -1
- package/dist/{field-errors-_5ma7dOu.d.ts → field-errors-BCX7RCEc.d.ts} +5 -5
- package/dist/{manifest-CReD46Ml.d.ts → index-1001GtVL.d.ts} +114 -2
- package/dist/{index-CJDZP8D_.d.ts → index-7UV0pNYj.d.ts} +2 -2
- package/dist/{index-llgHOU63.d.ts → index-B1NcZsVD.d.ts} +8 -8
- package/dist/{index-CLfgO2tI.d.ts → index-B2C1NczA.d.ts} +4 -4
- package/dist/{index-DQcBzMPc.d.ts → index-B8Mjb-KA.d.ts} +1 -1
- package/dist/{index-DcMBM8KN.d.ts → index-BB5n8R_s.d.ts} +1 -1
- package/dist/{index-D3z1ulT9.d.ts → index-BGgGwWcn.d.ts} +1 -1
- package/dist/{index-DDsGsDpo.d.ts → index-BK8zPigx.d.ts} +1 -1
- package/dist/{index-DlHpkeH6.d.ts → index-BLL45v55.d.ts} +1 -1
- package/dist/{index-CoTCj9tb.d.ts → index-BMYIwvDA.d.ts} +1 -1
- package/dist/{index-DgtoDNfn.d.ts → index-BNBFiyOR.d.ts} +1 -1
- package/dist/{index-BS8EG1sv.d.ts → index-BW0aDURc.d.ts} +1 -1
- package/dist/{index-OrSSX49l.d.ts → index-BZ1Akcrg.d.ts} +1 -1
- package/dist/{index-DZ7AyHGe.d.ts → index-Bdg6ee4m.d.ts} +1 -1
- package/dist/{index-4XXy4RAc.d.ts → index-Bn5v6soX.d.ts} +1 -1
- package/dist/{index-ByfxpFB2.d.ts → index-BolFrOMw.d.ts} +2 -2
- package/dist/{index-BRDlC3VX.d.ts → index-Bopuqb8z.d.ts} +3 -3
- package/dist/{index-CdzulKV8.d.ts → index-CFT7e_HH.d.ts} +2 -2
- package/dist/{index-9lj_xmJ3.d.ts → index-CRSNN2v9.d.ts} +8 -8
- package/dist/{index-D8AUz50D.d.ts → index-CakXRuAZ.d.ts} +2 -2
- package/dist/{index-B79YuD2v.d.ts → index-CdtD8fqI.d.ts} +31 -4
- package/dist/{index-CIjwxSMw.d.ts → index-CurH6bgW.d.ts} +2 -2
- package/dist/{index-DnUv0ft8.d.ts → index-D25Ry5R9.d.ts} +1 -1
- package/dist/{index-U2HTpZhD.d.ts → index-D48wVmDj.d.ts} +1 -1
- package/dist/{index-a4XujbCp.d.ts → index-D5LnplxJ.d.ts} +4 -4
- package/dist/{index-trDWOpUD.d.ts → index-DHwPGqLY.d.ts} +2 -2
- package/dist/{index-B3X8Yz54.d.ts → index-DMlTXcWp.d.ts} +2 -2
- package/dist/{index-BzP3aXZD.d.ts → index-DZTavebO.d.ts} +1 -1
- package/dist/{index-BclA8VxQ.d.ts → index-DkWXofPH.d.ts} +1 -1
- package/dist/{index-BA_vuNkT.d.ts → index-DplKvjCs.d.ts} +1 -1
- package/dist/{index-B0sgM96O.d.ts → index-DxmiTJJ5.d.ts} +2 -2
- package/dist/{index-BFrhLaf5.d.ts → index-IKK8zWTN.d.ts} +2 -2
- package/dist/{index-Ddi2Xhg8.d.ts → index-S6axmDQL.d.ts} +2 -2
- package/dist/{index-CIJgMT3P.d.ts → index-ZI4sMVPT.d.ts} +2 -2
- package/dist/{index-C_3tUs3G.d.ts → index-iaMOudmP.d.ts} +1 -1
- package/dist/{index-BB3U1ds5.d.ts → index-kidoYhB8.d.ts} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instances-ceZ-orgq.js → instances-ukDFg8oN.js} +342 -23
- package/dist/{invoices-BmVemfWS.d.ts → invoices-C-Fh07qA.d.ts} +1 -1
- package/dist/{manifest-BXSsp-Cl.d.ts → manifest--M7GmEPg.d.ts} +1 -1
- package/dist/{manifest-C_S0cz7X.js → manifest--eIzr9Tj.js} +2 -1
- package/dist/{manifest-DJllrEQG.js → manifest--qnXa2lK.js} +2 -1
- package/dist/{manifest-Dwe06yil.js → manifest-0PDfKdtc.js} +3 -2
- package/dist/{manifest-BhnrsEa1.d.ts → manifest-0vrTq9Uf.d.ts} +1 -1
- package/dist/{manifest-DP5NczoE.js → manifest-1Xiu6zqs.js} +3 -2
- package/dist/{manifest-ByyHf3rr.d.ts → manifest-1lzhOO0z.d.ts} +1 -1
- package/dist/{manifest-BOGvvspH.js → manifest-6MuVEQnP.js} +8 -4
- package/dist/{manifest-DG7YDnDd.js → manifest-A_VPz6fq.js} +3 -2
- package/dist/{manifest-DV8KMolR.js → manifest-B3QwQDTx.js} +2 -1
- package/dist/{manifest-Cf9QTxjI.js → manifest-B4CVN-Kx.js} +3 -2
- package/dist/{manifest-DhYoxy6k.js → manifest-B709eXLx.js} +2 -1
- package/dist/{manifest-BQmucr5m.d.ts → manifest-B7MpuCmz.d.ts} +1 -1
- package/dist/{manifest-Bbu-ubW6.d.ts → manifest-B83YpMlz.d.ts} +1 -1
- package/dist/{manifest-CqJjxStv.d.ts → manifest-B9KmOzmT.d.ts} +1 -1
- package/dist/{manifest-C4UBDE_L.js → manifest-BAgqRR7p.js} +2 -1
- package/dist/{manifest-bDyJmTlO.js → manifest-BDGVge5o.js} +3 -2
- package/dist/{manifest-wUaP6BQ7.js → manifest-BEZ8HltH.js} +2 -1
- package/dist/{manifest-DaeYdl46.js → manifest-BFJvys4-.js} +4 -3
- package/dist/{manifest-DS1kvnEv.d.ts → manifest-BHNrIQ8X.d.ts} +1 -1
- package/dist/{manifest-BC9t0sdd.js → manifest-BHhBqtFw.js} +2 -1
- package/dist/{manifest-Cq2DUdkJ.js → manifest-BKD8DbQT.js} +6 -5
- package/dist/{manifest-BID85FTD.d.ts → manifest-BKDSuS3x.d.ts} +2 -2
- package/dist/{manifest-DUQxpNRM.d.ts → manifest-BKegpJgn.d.ts} +1 -1
- package/dist/{manifest-DSj2RpBr.js → manifest-BQJV63RV.js} +2 -1
- package/dist/{manifest-K4gZCLhk.js → manifest-BQwqV6dQ.js} +3 -1
- package/dist/{manifest-Cnh_IP2z.js → manifest-BR_uGpTd.js} +2 -1
- package/dist/{manifest-DOyy6Xsw.d.ts → manifest-BRd1q660.d.ts} +1 -1
- package/dist/{manifest-Bno8pGBC.js → manifest-BSQh5dw2.js} +2 -1
- package/dist/{manifest-i7N-wK8c.d.ts → manifest-BTC6dWdq.d.ts} +1 -1
- package/dist/{manifest-BLIdN5a_.js → manifest-BW7wdKXA.js} +5 -4
- package/dist/{manifest-CgvFWT2u.js → manifest-BXNDl7bx.js} +2 -1
- package/dist/{manifest-kMa4r3fv.js → manifest-BZP0wKpE.js} +4 -3
- package/dist/{manifest-DuQWeue6.js → manifest-B_3_99xa.js} +3 -2
- package/dist/{manifest-BnxuDY97.d.ts → manifest-Bbtt8mb1.d.ts} +1 -1
- package/dist/{manifest-CZGGddOA.d.ts → manifest-BcdRITPc.d.ts} +1 -1
- package/dist/{manifest-CddtUQsB.js → manifest-BdmDmQtx.js} +2 -1
- package/dist/{manifest-CklVzHZN.d.ts → manifest-BfAXsd-X.d.ts} +1 -1
- package/dist/{manifest-DumCddiN.js → manifest-BfOHwSNK.js} +7 -6
- package/dist/{manifest-BxyGSQDf.js → manifest-BgMjraZw.js} +2 -1
- package/dist/{manifest-Du41K-0_.d.ts → manifest-BhBqFYV4.d.ts} +1 -1
- package/dist/{manifest-Bg5gjjDP.d.ts → manifest-BkS073Py.d.ts} +1 -1
- package/dist/{manifest-X_aLkNvq.js → manifest-BoSzgLUl.js} +4 -3
- package/dist/{manifest-CfBqObZ5.js → manifest-Bpzxyvxc.js} +4 -3
- package/dist/{manifest-D1YoxzeP.js → manifest-Bx_0qkBP.js} +3 -2
- package/dist/{manifest-BZ5IAL8q.d.ts → manifest-Bz3xNPJL.d.ts} +6 -1
- package/dist/{manifest-CFPH94A1.d.ts → manifest-C-_0WkGx.d.ts} +1 -1
- package/dist/{manifest-ConxGWQ-.d.ts → manifest-C0f5YJ7x.d.ts} +1 -1
- package/dist/{manifest-B4PaYDC2.d.ts → manifest-C3RDEoAr.d.ts} +2 -2
- package/dist/{manifest-DR6N0LUt.d.ts → manifest-C3VB7-hM.d.ts} +1 -1
- package/dist/{manifest-DJz-jKBy.js → manifest-C8Boo7Ps.js} +4 -3
- package/dist/{manifest-W1SbwKSj.js → manifest-C95-cClh.js} +2 -1
- package/dist/{manifest-C-sGHHvr.d.ts → manifest-CCXaDWdN.d.ts} +1 -1
- package/dist/{manifest-C6j7vH4c.d.ts → manifest-CHsjS47_.d.ts} +1 -1
- package/dist/{manifest-D67fd79e.d.ts → manifest-CIJTIKo3.d.ts} +1 -1
- package/dist/{manifest-BbsL9igY.d.ts → manifest-CJByGKJ_.d.ts} +1 -1
- package/dist/{manifest-DbnCNIbZ.d.ts → manifest-CJb0PtMj.d.ts} +1 -1
- package/dist/{manifest-CfcytxHT.d.ts → manifest-CKxnGCVY.d.ts} +1 -1
- package/dist/{manifest-Gj3MS6k9.d.ts → manifest-CLphqjtj.d.ts} +1 -1
- package/dist/{manifest-DVwB6GGL.js → manifest-COZUTRxz.js} +3 -2
- package/dist/{manifest-B2Pp7SEu.js → manifest-CPYEEX6u.js} +2 -1
- package/dist/{manifest-DD7MK9BW.d.ts → manifest-CQFlAwfU.d.ts} +2 -2
- package/dist/{manifest-Ceokse8n.d.ts → manifest-CR-6QDLZ.d.ts} +1 -1
- package/dist/{manifest-vNLet6F5.js → manifest-CRXxYu5L.js} +2 -1
- package/dist/{manifest-Q4aEEHjj.js → manifest-CWaCXYgf.js} +3 -2
- package/dist/{manifest-Bpzb2m6F.js → manifest-CX8DVTzn.js} +4 -3
- package/dist/{manifest-155HuVi4.js → manifest-CYNC6a1d.js} +2 -1
- package/dist/{manifest-B5LbGYS4.js → manifest-C_hIU5kk.js} +3 -2
- package/dist/{manifest-D4MO5Cw0.js → manifest-CbxMRPGY.js} +2 -1
- package/dist/{manifest-CxhnJ0HS.js → manifest-Cfvr-BhF.js} +2 -1
- package/dist/manifest-Cj5IjsCB.js +16 -0
- package/dist/{manifest-DaArvOLq.js → manifest-Cj_ZnW6k.js} +2 -1
- package/dist/{manifest-D6iuF7tg.js → manifest-CkYNs6PX.js} +3 -2
- package/dist/{manifest-DIc0gnqc.js → manifest-ClbUuESE.js} +3 -2
- package/dist/{manifest-CuIl6RP_.js → manifest-CtOwRTvP.js} +2 -1
- package/dist/{manifest-Cxp20EUq.js → manifest-Cu_4X5Rm.js} +2 -1
- package/dist/{manifest-Do5KE-U_.d.ts → manifest-Cxz4_mWy.d.ts} +7 -1
- package/dist/{manifest-Xb13Wzgf.js → manifest-Czv_oJ77.js} +4 -2
- package/dist/{manifest-DRwJ4vk4.d.ts → manifest-D2qeEjrC.d.ts} +1 -1
- package/dist/{manifest-BDJIiEya.d.ts → manifest-D3HTgmR3.d.ts} +1 -1
- package/dist/{manifest-Zznk8MMo.d.ts → manifest-D7R4sM8L.d.ts} +1 -1
- package/dist/{manifest-D3YlwpBi.d.ts → manifest-D7slgR5H.d.ts} +1 -1
- package/dist/{manifest-B0nH6lH0.d.ts → manifest-D7y9_k5i.d.ts} +1 -1
- package/dist/{manifest-z3KH7lcy.d.ts → manifest-D7yeYU0f.d.ts} +1 -1
- package/dist/{manifest-C8QX2UDq.js → manifest-D84UV5p6.js} +5 -8
- package/dist/{manifest-CBBM0qqj.js → manifest-D8JpSvuE.js} +4 -3
- package/dist/{manifest-CJXhUvZ1.d.ts → manifest-DBJ5nBG9.d.ts} +1 -1
- package/dist/{manifest-ChSYx5eW.js → manifest-DBsPHetA.js} +5 -3
- package/dist/{manifest-CGVCmsBO.js → manifest-DCC3phPq.js} +2 -1
- package/dist/{manifest-CRbgI4Qg.d.ts → manifest-DDkncgRB.d.ts} +1 -1
- package/dist/{manifest-DSr5imkP.js → manifest-DHYr9yD1.js} +3 -2
- package/dist/{manifest-BuHnJDCN.js → manifest-DHt1h5GN.js} +3 -2
- package/dist/{manifest-CHwfjKUw.d.ts → manifest-DI_Vz152.d.ts} +1 -1
- package/dist/{manifest-D6UCPVG4.js → manifest-DJ5nCW5K.js} +2 -1
- package/dist/{manifest-CMRaUAXu.js → manifest-DJRHzb6v.js} +7 -2
- package/dist/{manifest-BYrW9Uem.js → manifest-DKY9HGin.js} +2 -1
- package/dist/{manifest-nSgX7nL1.d.ts → manifest-DLv_WaSF.d.ts} +1 -1
- package/dist/{manifest-DBdpyUu_.js → manifest-DM2T_dN2.js} +5 -4
- package/dist/{manifest-CNEDhbqI.js → manifest-DNaSpmZ3.js} +3 -2
- package/dist/{manifest-BMcbaFBU.d.ts → manifest-DPFn2x18.d.ts} +1 -1
- package/dist/{manifest-DEl9UiYb.js → manifest-DS2PjAgW.js} +2 -1
- package/dist/{manifest-BfTf2V6E.js → manifest-DVnOUxy4.js} +4 -3
- package/dist/{manifest-Dexf6I0e.js → manifest-DW2_P6AT.js} +4 -3
- package/dist/{manifest-C7dc_j0u.d.ts → manifest-D_iJU__f.d.ts} +1 -1
- package/dist/{manifest-CyAlixZk.d.ts → manifest-Dagm1cVO.d.ts} +1 -1
- package/dist/{manifest-BP5R93We.d.ts → manifest-Db-GUsLH.d.ts} +1 -1
- package/dist/{manifest-CA2p9Zga.js → manifest-DbjDYuCE.js} +3 -2
- package/dist/{manifest-B0C85KCk.d.ts → manifest-Dbq6t-bI.d.ts} +1 -1
- package/dist/{manifest-D1Yyn2dQ.d.ts → manifest-DdFl3BYM.d.ts} +1 -1
- package/dist/{manifest-DYEKxUXY.js → manifest-DeCjklgV.js} +2 -1
- package/dist/{manifest-Bj1dFsWc.js → manifest-DemyeI_z.js} +2 -1
- package/dist/{manifest-DRU-64iu.d.ts → manifest-Di0UrbTw.d.ts} +1 -1
- package/dist/{manifest-DIGjwpba.d.ts → manifest-Dj9AIgTy.d.ts} +1 -1
- package/dist/{manifest-Dfpxslwm.d.ts → manifest-DjVqN_iK.d.ts} +1 -1
- package/dist/{manifest-CLekLziu.js → manifest-Dm_5DTyx.js} +2 -1
- package/dist/{manifest-BhxbjEKX.js → manifest-DnZw4JWP.js} +4 -3
- package/dist/{manifest-B9BrBGxf.js → manifest-DpwaOTir.js} +3 -2
- package/dist/{manifest-DzjzA7JV.js → manifest-Dqgqm1Zo.js} +2 -1
- package/dist/{manifest-BIuELzCj.js → manifest-DqwQmPZb.js} +2 -1
- package/dist/{manifest-CfcTrYyH.js → manifest-DsYIWD--.js} +2 -1
- package/dist/{manifest-BoSqQtc_.d.ts → manifest-DwVl4YC4.d.ts} +1 -1
- package/dist/{manifest-CsjUuK3b.d.ts → manifest-Dz2IkqqY.d.ts} +1 -1
- package/dist/{manifest-DKICxHyD.js → manifest-FAVN8Bg9.js} +2 -1
- package/dist/{manifest-UclKhPQb.js → manifest-FJi1pYoB.js} +10 -9
- package/dist/{manifest-Cj2S4RR-.js → manifest-FkY_rpfH.js} +6 -5
- package/dist/{manifest-BbH87MG5.js → manifest-Hx3FBHKX.js} +2 -1
- package/dist/{manifest-CRJXdgOx.js → manifest-ITF-BpEi.js} +2 -1
- package/dist/{manifest-C_epqyiP.js → manifest-J6kJX8YL.js} +2 -1
- package/dist/{manifest-C5ItHs20.js → manifest-JvgqqKRq.js} +3 -2
- package/dist/{manifest-CuLahaTy.d.ts → manifest-K_42e50M.d.ts} +1 -1
- package/dist/{manifest-BVy_iYaK.d.ts → manifest-OS0pwPRn.d.ts} +1 -1
- package/dist/{manifest-h-rpCQ8y.d.ts → manifest-UbBXSkXn.d.ts} +1 -1
- package/dist/{manifest-BSlz5VjY.js → manifest-_qzN4kUG.js} +2 -1
- package/dist/{manifest-BgMzFL4H.js → manifest-cqfeLW8g.js} +2 -1
- package/dist/{manifest-CCLJTMsY.js → manifest-gCNbUW-X.js} +3 -2
- package/dist/{manifest-Ci26ea5h.d.ts → manifest-gGOpzRmJ.d.ts} +1 -1
- package/dist/{manifest-DuQVJ36p.d.ts → manifest-mu_UflgB.d.ts} +1 -1
- package/dist/{manifest-BTjTE68V.d.ts → manifest-n9XQtQXA.d.ts} +1 -1
- package/dist/{manifest-CIgakSwf.js → manifest-o-EzlFwZ.js} +2 -1
- package/dist/{manifest-1vQFNg_j.d.ts → manifest-ppItbSA5.d.ts} +1 -1
- package/dist/{manifest-DurhFGmh.js → manifest-qb_YXiWK.js} +3 -2
- package/dist/{manifest-CcMQg8U2.d.ts → manifest-roKO06Ko.d.ts} +1 -1
- package/dist/{manifest-6X7L3UX7.js → manifest-xD290bNh.js} +2 -1
- package/dist/{manifest-CJJEgRi-.d.ts → manifest-yPcrAK5N.d.ts} +1 -1
- package/dist/{manifest-DugL8A5q.d.ts → manifest-ycsWja2O.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +1 -1
- package/dist/{money-codec-DNhD4iy-.js → money-codec-CvUy3_Ep.js} +1 -1
- package/dist/{money-DH--bbYr.js → money-hWAOR9jq.js} +5 -7
- package/dist/next/index.d.ts +7 -7
- package/dist/next/index.js +4 -4
- package/dist/{operations-wexZqk3S.d.ts → operations-Di203azT.d.ts} +1 -1
- package/dist/{options-Dp1VR9Jk.js → options-C3FFnaE-.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{payments-D7GPsu-r.js → payments-D89SVEgj.js} +1 -1
- package/dist/{payroll-export-Dxl1-7NV.js → payroll-export-BJNe4-XZ.js} +1 -1
- package/dist/{permissions-hc26hFC7.d.ts → permissions-C7GgjgTA.d.ts} +1 -1
- package/dist/{permissions-controller-BYGsjLdD.js → permissions-controller-YLyW9i7T.js} +1 -1
- package/dist/{permissions-model-Dk-gaZiy.js → permissions-model-COgjsFbE.js} +27 -19
- package/dist/{ports-DxX6NGHt.d.ts → ports-6EMtxwGE.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DZBi6G6G.js → preset-Be8m6-PH.js} +239 -68
- package/dist/{preview-Cnx-eBFM.d.ts → preview-Dlc_7tMK.d.ts} +2 -2
- package/dist/{project-yulopQiw.js → project-C71Z2pg2.js} +7 -7
- package/dist/{push-token-Da8q6hZJ.d.ts → push-token-CQnqTZrb.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/react/server.js +1 -1
- package/dist/{react-CWCEsvZt.js → react-CsgcTKRk.js} +2 -2
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-bXNjpTar.d.ts → record-form-DqGcUu0C.d.ts} +1 -1
- package/dist/{record-type-DvIobORB.js → record-type-SZywJ0Rp.js} +1 -1
- package/dist/{recordings-B-eiiYGA.d.ts → recordings-CiYHdFPa.d.ts} +3 -2
- package/dist/records/index.d.ts +7 -7
- package/dist/records/index.js +4 -4
- package/dist/referrals-values-EXlMZA7X.js +12 -0
- package/dist/{renames-BBwigNjY.js → renames-PnqMkqit.js} +32 -1
- package/dist/{sales-BG4bqW2M.js → sales-C8o3E5U3.js} +9 -8
- package/dist/{sales-lines-Bd8g7q9G.js → sales-lines-COFwijz1.js} +1 -1
- package/dist/scaled-CyfvEWZ6.js +18 -0
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +6 -6
- package/dist/sql/index.js +4 -4
- package/dist/{sql-CwBIyfvf.js → sql-DPDvUadH.js} +5697 -1332
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tax-l1cp5Rg8.js → tax-D_M90sFh.js} +1 -1
- package/dist/{tax-sql-CdSPknff.js → tax-sql-B9CeB0jG.js} +1 -1
- package/dist/{tenant-Dd8cwx17.d.ts → tenant-DHLx2ZkL.d.ts} +1 -1
- package/dist/testing/index.d.ts +8 -8
- package/dist/testing/index.js +3 -3
- package/dist/{timeline-B2rcgQTF.d.ts → timeline-9mP3m30L.d.ts} +2 -2
- package/dist/{topic-DybM_LFL.d.ts → topic-BKsRT4gu.d.ts} +1 -1
- package/dist/{types-CWMsjQl4.d.ts → types-Dp1r6bih.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-x9vTgTzq.d.ts → watch-topic-M1yL9NiW.d.ts} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-BJlx0ANA.js → workflow-sdk-CcoFSLFn.js} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +9 -1
- package/schemas/config-v1.json +60 -0
- package/schemas/design-v1.json +15 -0
- package/schemas/doctor-report-v1.json +5 -0
- package/skills/better-supabase/references/e-invoicing-and-audit-files.md +3 -3
- package/dist/cli/add-C89zg0l9.js +0 -1
- package/dist/cli/powersync-CiHEx435.js +0 -1
- package/dist/cli/seed-CYX1MRFK.js +0 -1
- package/dist/index-B8TJqIoS.d.ts +0 -117
- package/dist/manifest-DxhdqsLf.js +0 -15
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION$1 } from "./version-
|
|
3
|
+
import { t as VERSION$1 } from "./version-CvNMxnwv.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
|
|
7
|
-
import { t as CACHE_DIR } from "./cache-
|
|
7
|
+
import { t as CACHE_DIR } from "./cache-VZU4FIOF.js";
|
|
8
8
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
9
|
-
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-
|
|
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, x as installedVersion } from "./snapshot-BmBrjk2b.js";
|
|
10
|
+
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-D8KGIoSK.js";
|
|
11
11
|
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
12
12
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
13
|
-
import { i as request } from "./source-
|
|
14
|
-
import { l as stdinDatabaseUrl, m as withTableTags, n as databaseUrl } from "./config-
|
|
13
|
+
import { i as request } from "./source-CEPki4I3.js";
|
|
14
|
+
import { l as stdinDatabaseUrl, m as withTableTags, n as databaseUrl } from "./config-C-DXllAX.js";
|
|
15
15
|
import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
|
|
16
16
|
import { t as PROCESS_ENV } from "./env-BLwQ6srP.js";
|
|
17
17
|
import { n as readStackStatus } from "./stack-status-CTiDYKS8.js";
|
|
18
18
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
19
|
-
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-
|
|
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-5_KpJMOD.js";
|
|
20
20
|
import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
21
|
-
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-
|
|
22
|
-
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-
|
|
23
|
-
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-
|
|
24
|
-
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-
|
|
25
|
-
import { a as compiledReadSets } from "./providers-
|
|
26
|
-
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-
|
|
27
|
-
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-
|
|
21
|
+
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-BevHhOrq.js";
|
|
22
|
+
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-d7o6xxEZ.js";
|
|
23
|
+
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-CmY2GVb3.js";
|
|
24
|
+
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-BIAan13C.js";
|
|
25
|
+
import { a as compiledReadSets } from "./providers-Dr7FyvN1.js";
|
|
26
|
+
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-BSOn1xPx.js";
|
|
27
|
+
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-CVtbyZQ4.js";
|
|
28
28
|
import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
|
|
29
|
-
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-
|
|
30
|
-
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-
|
|
29
|
+
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-B86Xvfaj.js";
|
|
30
|
+
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-Deg53QHe.js";
|
|
31
31
|
import { c as SPEC_SUBPATH_RENAMES, i as BLOCK_SUBPATH_RENAMES, o as PLUGIN_SUBPATH_RENAMES, r as BLOCK_EXPORT_RENAMES, t as findObjectInputCalls } from "./codemod-object-inputs-dn5dnZO_.js";
|
|
32
32
|
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-huI7fGMX.js";
|
|
33
33
|
import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-BQhbUFa7.js";
|
|
34
34
|
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-CEnRw_PH.js";
|
|
35
35
|
import { t as detectWorkspace } from "./workspace-DRLyXr3q.js";
|
|
36
|
-
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-
|
|
36
|
+
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-BCKNATUX.js";
|
|
37
37
|
import { existsSync } from "node:fs";
|
|
38
|
-
import { dirname, join, relative, resolve } from "node:path";
|
|
38
|
+
import { dirname, join, posix, relative, resolve } from "node:path";
|
|
39
39
|
import { createHash } from "node:crypto";
|
|
40
40
|
import { glob, mkdir, readFile, readdir, writeFile } from "node:fs/promises";
|
|
41
41
|
import { CONFIG_DEFAULTS, DEFAULT_ACTIVE_TENANT, tenantClaimPaths, tenantNameOf } from "better-supabase/config";
|
|
42
42
|
import { PRESET_CATALOG } from "better-supabase/preset";
|
|
43
|
-
import { SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, adoptedTables, adoptedViews, appTablePolicyNotes, blockFileState, blockSqlVersion, blockTables, contractSignature, customContracts, dataExportPlan, excludedColumns, expiredFlagsQuery, hasColumnAccess, migrationOptionUses, moduleDeprecations, moduleEventTriggers, moduleFileVersion, moduleLayout, notNullCheckName, renderBlocks, sameBlockFile, sameTenantColumn, sameTenantTrigger, scopePolicyName, sharedRolesProblems, subjectColumns, tableTagComments, widenedCommands } from "better-supabase/sql";
|
|
43
|
+
import { SECRET_COLUMNS, SQL_MODULES, TENANT_SCOPE_NAMES, TENANT_SCOPE_POLICY, adoptedTables, adoptedViews, appTablePolicyNotes, appValues, blockFileState, blockSqlVersion, blockTables, checkValues, checkedValueMaps, contractSignature, customContracts, dataExportPlan, declaredCheckValues, excludedColumns, expiredFlagsQuery, hasColumnAccess, migrationOptionUses, moduleDeprecations, moduleEventTriggers, moduleFileVersion, moduleLayout, moduleSource, notNullCheckName, renderBlocks, resolveBlocks, sameBlockFile, sameTenantColumn, sameTenantTrigger, scopePolicyName, sharedRolesProblems, subjectColumns, tableTagComments, widenedCommands, writtenValues } from "better-supabase/sql";
|
|
44
44
|
import { ENTITY_KEY_RENAMES, ENTITY_RENAMES_CODEMOD, EVENT_TYPE_RENAMES, EVENT_TYPE_SPLITS, HINT_RENAMES, currentEventTypes, isOldEventType, toSnake } from "better-supabase";
|
|
45
45
|
import { RENAMES_CODEMOD, currentPermissionKeys, isOldPermissionKey } from "better-supabase/blocks/permissions";
|
|
46
46
|
import { defineBucket, parseSize } from "better-supabase/storage";
|
|
@@ -557,6 +557,13 @@ const ADOPTION_RULES = [
|
|
|
557
557
|
description: "A block runs over a table of the app's with `ownTablePolicies: \"app\"`, so it adds none of its `bsb_` policies there, and the table has no permissive policy for a command one of those policies would have granted. With row level security on, or off (the block's file turns it on), Postgres denies that command to every caller, so the block's functions that run as the caller and its TypeScript API find no rows for it. A missing `select` policy is a warning, a missing write policy is info. Add the app's own policy for each command the app uses, or set `ownTablePolicies` back to `block` for the block.",
|
|
558
558
|
check: appTablesWithoutPolicies
|
|
559
559
|
},
|
|
560
|
+
{
|
|
561
|
+
code: "BS361",
|
|
562
|
+
severity: "warning",
|
|
563
|
+
title: "App table's check rejects values a block writes",
|
|
564
|
+
description: "A block runs over one of your tables, and a check constraint or an enum on a column the block writes rejects a value the block writes into it. The module's own table declares the values it writes in its `check (column in (...))` constraint, and the block writes them through the column your config maps. A narrower check or enum makes the block's inserts and updates fail. Widen the check constraint or add the values to the enum.",
|
|
565
|
+
check: checkValuesOverAdoptedTables
|
|
566
|
+
},
|
|
560
567
|
{
|
|
561
568
|
code: "BS341",
|
|
562
569
|
severity: "warning",
|
|
@@ -608,6 +615,125 @@ function patternOf(pattern) {
|
|
|
608
615
|
return;
|
|
609
616
|
}
|
|
610
617
|
}
|
|
618
|
+
const TEXT_TYPES = /* @__PURE__ */ new Set([
|
|
619
|
+
"text",
|
|
620
|
+
"varchar",
|
|
621
|
+
"bpchar",
|
|
622
|
+
"char",
|
|
623
|
+
"citext",
|
|
624
|
+
"name"
|
|
625
|
+
]);
|
|
626
|
+
/** The values an app column accepts: its enum, or its membership checks. */
|
|
627
|
+
function allowedValues(column, table, enums) {
|
|
628
|
+
if (column.isArray) return;
|
|
629
|
+
if (column.isEnum) {
|
|
630
|
+
const entry = enums.get(`${column.typeSchema}.${column.udt}`);
|
|
631
|
+
return entry === void 0 ? void 0 : {
|
|
632
|
+
values: new Set(entry.values),
|
|
633
|
+
enumName: `${entry.schema}.${entry.name}`
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
if (!TEXT_TYPES.has(column.udt)) return;
|
|
637
|
+
let found;
|
|
638
|
+
for (const check of table.checks) {
|
|
639
|
+
const parsed = checkValues(check.definition);
|
|
640
|
+
if (parsed === void 0 || parsed.column !== column.name) continue;
|
|
641
|
+
const accepted = new Set(parsed.values);
|
|
642
|
+
found = {
|
|
643
|
+
values: found === void 0 ? accepted : new Set([...found.values].filter((value) => accepted.has(value))),
|
|
644
|
+
constraint: found?.constraint ?? check.name
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
return found;
|
|
648
|
+
}
|
|
649
|
+
function managedTables(name, context) {
|
|
650
|
+
const module = SQL_MODULES[name];
|
|
651
|
+
const tables = module?.names?.tables;
|
|
652
|
+
if (module === void 0 || tables === void 0) return;
|
|
653
|
+
try {
|
|
654
|
+
const adoption = adoptionContext(context);
|
|
655
|
+
const layout = {
|
|
656
|
+
...moduleLayout(context.config, void 0, [], void 0, adoption.accessProvider),
|
|
657
|
+
ownTables: appTablesOf(context),
|
|
658
|
+
...appViewsOf(context)
|
|
659
|
+
};
|
|
660
|
+
return {
|
|
661
|
+
checks: declaredCheckValues([{ text: module.sql }]),
|
|
662
|
+
tables,
|
|
663
|
+
values: checkedValueMaps(`blocks.${name}`, context.config.blocks[name]?.values, tables),
|
|
664
|
+
sql: moduleSource(name, layout, context.config.blockNames) ?? module.sql
|
|
665
|
+
};
|
|
666
|
+
} catch (error) {
|
|
667
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
/** `blocks.<name>.options.statuses`: the stored value a block gives a label. */
|
|
671
|
+
function optionValues(options, label) {
|
|
672
|
+
const statuses = options?.["statuses"];
|
|
673
|
+
if (!isRecord(statuses)) return [];
|
|
674
|
+
const value = statuses[label];
|
|
675
|
+
return typeof value === "string" && value.length > 0 ? [value] : [];
|
|
676
|
+
}
|
|
677
|
+
function checkRejectsMessage(table, logical, column, missing, allowed) {
|
|
678
|
+
const name = `${table.schema}.${table.table}`;
|
|
679
|
+
const values = missing.map((value) => `"${value}"`).join(", ");
|
|
680
|
+
const writes = `blocks.${table.module} writes ${values} into ${table.logical}.${logical}`;
|
|
681
|
+
if ("enumName" in allowed) return `${name}.${column} is the enum ${allowed.enumName}, which lacks ${values}, and ${writes}, so those writes fail. Add the values to the enum.`;
|
|
682
|
+
return `${name}.${column} allows ${[...allowed.values].map((value) => `"${value}"`).join(", ")}, and ${writes}, so those writes fail. Widen the check constraint ${allowed.constraint} to accept ${values}.`;
|
|
683
|
+
}
|
|
684
|
+
/** Checks of the app's tables that reject a value the module writes (BS361). */
|
|
685
|
+
function checkValuesOverAdoptedTables(context) {
|
|
686
|
+
const adopted = adoptedTables(context.config.blocks, appTablesOf(context), adoptionContext(context));
|
|
687
|
+
if (adopted.length === 0) return [];
|
|
688
|
+
const { tables, enums } = catalogOf(context);
|
|
689
|
+
const byName = new Map(tables.map((table) => [qualified(table), table]));
|
|
690
|
+
const enumByName = new Map(enums.map((entry) => [`${entry.schema}.${entry.name}`, entry]));
|
|
691
|
+
const rendered = /* @__PURE__ */ new Map();
|
|
692
|
+
const findings = [];
|
|
693
|
+
for (const adoptedTable of adopted) {
|
|
694
|
+
let managed = rendered.get(adoptedTable.module);
|
|
695
|
+
if (!rendered.has(adoptedTable.module)) {
|
|
696
|
+
managed = managedTables(adoptedTable.module, context);
|
|
697
|
+
rendered.set(adoptedTable.module, managed);
|
|
698
|
+
if (managed instanceof Error) findings.push({
|
|
699
|
+
severity: "info",
|
|
700
|
+
message: `blocks.${adoptedTable.module} could not be rendered with this config (${managed.message}), so doctor did not check the values it writes into your tables.`,
|
|
701
|
+
target: `blocks.${adoptedTable.module}`
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
if (managed === void 0 || managed instanceof Error) continue;
|
|
705
|
+
const spec = managed.tables[adoptedTable.logical];
|
|
706
|
+
if (spec === void 0) continue;
|
|
707
|
+
const name = `${adoptedTable.schema}.${adoptedTable.table}`;
|
|
708
|
+
const catalogTable = byName.get(name);
|
|
709
|
+
if (catalogTable === void 0) continue;
|
|
710
|
+
const logicalByColumn = new Map(Object.entries(spec.columns).map(([logical, column]) => [column, logical]));
|
|
711
|
+
for (const check of managed.checks) {
|
|
712
|
+
if (check.table.split(".").at(-1) !== spec.name) continue;
|
|
713
|
+
const logical = logicalByColumn.get(check.column);
|
|
714
|
+
if (logical === void 0) continue;
|
|
715
|
+
const physical = adoptedTable.columns[logical];
|
|
716
|
+
if (physical === void 0) continue;
|
|
717
|
+
const column = catalogTable.columns.find((entry) => entry.name === physical);
|
|
718
|
+
if (column === void 0) continue;
|
|
719
|
+
const allowed = allowedValues(column, catalogTable, enumByName);
|
|
720
|
+
if (allowed === void 0) continue;
|
|
721
|
+
const options = context.config.blocks[adoptedTable.module]?.options;
|
|
722
|
+
const written = new Set(writtenValues(managed.sql, `${adoptedTable.schema}.${adoptedTable.table}`, physical));
|
|
723
|
+
const missing = [...new Set(check.values.flatMap((label) => {
|
|
724
|
+
const mapped = optionValues(options, label);
|
|
725
|
+
const first = (mapped.length > 0 ? mapped : appValues(managed.values[adoptedTable.logical]?.[logical], label))[0];
|
|
726
|
+
return first !== void 0 && written.has(first) ? [first] : [];
|
|
727
|
+
}))].filter((value) => !allowed.values.has(value));
|
|
728
|
+
if (missing.length === 0) continue;
|
|
729
|
+
findings.push({
|
|
730
|
+
message: checkRejectsMessage(adoptedTable, logical, physical, missing, allowed),
|
|
731
|
+
target: `${name}.${physical}`
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return findings;
|
|
736
|
+
}
|
|
611
737
|
// src/cli/doctor/app-table-scope.ts
|
|
612
738
|
const SCHEMA = "public";
|
|
613
739
|
const COMMANDS$1 = [
|
|
@@ -4070,6 +4196,89 @@ const SCHEMA_DESIGN_RULES = [
|
|
|
4070
4196
|
}
|
|
4071
4197
|
}
|
|
4072
4198
|
];
|
|
4199
|
+
/**
|
|
4200
|
+
* The installed modules that declare tenant defaults. A name that resolves to
|
|
4201
|
+
* no module (a block this release doesn't know) is skipped.
|
|
4202
|
+
*/
|
|
4203
|
+
function modulesWithDefaults(context) {
|
|
4204
|
+
const names = context.config.blockNames.flatMap((name) => {
|
|
4205
|
+
try {
|
|
4206
|
+
return resolveBlocks([name], {});
|
|
4207
|
+
} catch {
|
|
4208
|
+
return [];
|
|
4209
|
+
}
|
|
4210
|
+
});
|
|
4211
|
+
return [...new Set(names.filter((module) => module.seeds?.defaults !== void 0).map((module) => module.name))];
|
|
4212
|
+
}
|
|
4213
|
+
/** BS354: declared defaults that no organization receives. */
|
|
4214
|
+
function defaultsNotApplied(context) {
|
|
4215
|
+
const declaring = modulesWithDefaults(context);
|
|
4216
|
+
if (declaring.length === 0) return [];
|
|
4217
|
+
const { defaults } = context.config.seed;
|
|
4218
|
+
const names = declaring.join(", ");
|
|
4219
|
+
if (!context.config.blockNames.includes("seeds")) return [{
|
|
4220
|
+
message: `${names} declare tenant defaults, and the seeds block is not installed, so no organization receives them. Run better-supabase add seeds.`,
|
|
4221
|
+
target: "blocks.seeds"
|
|
4222
|
+
}];
|
|
4223
|
+
if (!defaults.enabled || !defaults.onCreate) return [{
|
|
4224
|
+
message: `${names} declare tenant defaults, but database.seed.defaults ${defaults.enabled ? "has onCreate off" : "is false"}, so new organizations start without them. Turn it on, or run better-supabase db seed --defaults for each organization.`,
|
|
4225
|
+
target: "database.seed.defaults"
|
|
4226
|
+
}];
|
|
4227
|
+
if (!context.config.blockNames.includes("organizations")) return [{
|
|
4228
|
+
message: `${names} declare tenant defaults, and the organizations block is not installed, so nothing calls them when an organization is created. Run better-supabase db seed --defaults for each organization.`,
|
|
4229
|
+
target: "blocks.organizations"
|
|
4230
|
+
}];
|
|
4231
|
+
return [];
|
|
4232
|
+
}
|
|
4233
|
+
/** BS355: a configured variant that its block does not declare. */
|
|
4234
|
+
function undeclaredVariants(context) {
|
|
4235
|
+
return Object.entries(context.config.seed.defaults.variants).flatMap(([block, variant]) => {
|
|
4236
|
+
const target = `database.seed.defaults.variants.${block}`;
|
|
4237
|
+
const entry = PRESET_CATALOG.blocks.find((item) => item.name === block);
|
|
4238
|
+
if (entry === void 0) return [{
|
|
4239
|
+
message: `database.seed.defaults.variants names "${block}", which is not a block.`,
|
|
4240
|
+
target
|
|
4241
|
+
}];
|
|
4242
|
+
const offered = entry.seeds?.variants ?? [];
|
|
4243
|
+
if (offered.includes(variant)) return [];
|
|
4244
|
+
return [{
|
|
4245
|
+
message: offered.length === 0 ? `database.seed.defaults.variants.${block} is "${variant}", but ${block} declares no variants.` : `database.seed.defaults.variants.${block} is "${variant}"; ${block} offers ${offered.join(", ")}.`,
|
|
4246
|
+
target
|
|
4247
|
+
}];
|
|
4248
|
+
});
|
|
4249
|
+
}
|
|
4250
|
+
/** BS356: a generated sample file outside `database.seed.sample.output`. */
|
|
4251
|
+
function sampleFileNotConfigured(context) {
|
|
4252
|
+
const configured = posix.normalize(context.config.seed.sample.output);
|
|
4253
|
+
return (context.seedFiles ?? []).filter((file) => file.text.startsWith("-- Generated by `better-supabase db seed --sample`") && posix.normalize(file.path) !== configured).map((file) => ({
|
|
4254
|
+
message: `${file.path} holds sample data from db seed --sample, and database.seed.sample.output is ${configured}. Set database.seed.sample.output to ${file.path} so the next run replaces it, and keep it out of production migrations.`,
|
|
4255
|
+
target: file.path
|
|
4256
|
+
}));
|
|
4257
|
+
}
|
|
4258
|
+
/** Declared tenant defaults and sample files (BS354 to BS356). */
|
|
4259
|
+
const SEED_RULES = [
|
|
4260
|
+
{
|
|
4261
|
+
code: "BS354",
|
|
4262
|
+
severity: "warning",
|
|
4263
|
+
title: "Declared defaults are not applied to new organizations",
|
|
4264
|
+
description: "An installed block declares tenant defaults (`seeds.defaults`), but the `seeds` block is not installed, `database.seed.defaults` is off or has `onCreate: false`, or `organizations` is not installed, so the `after_organization_create` hook never calls `seed_tenant_defaults`. New organizations start without the defaults. Install `seeds`, turn the config key back on, or run `better-supabase db seed --defaults` for each organization.",
|
|
4265
|
+
check: defaultsNotApplied
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
code: "BS355",
|
|
4269
|
+
severity: "warning",
|
|
4270
|
+
title: "Seed variant is not declared",
|
|
4271
|
+
description: "`database.seed.defaults.variants` names a block that doesn't exist, or a variant the block doesn't declare. `better-supabase blocks` lists the variants each block offers. Use one of them or remove the entry.",
|
|
4272
|
+
check: undeclaredVariants
|
|
4273
|
+
},
|
|
4274
|
+
{
|
|
4275
|
+
code: "BS356",
|
|
4276
|
+
severity: "info",
|
|
4277
|
+
title: "Sample data file outside database.seed.sample.output",
|
|
4278
|
+
description: "A file under `supabase/seeds` was written by `better-supabase db seed --sample --out`, but `database.seed.sample.output` points elsewhere. The next run writes a second copy instead of replacing it, and `supabase db reset` loads both. Set `database.seed.sample.output` to the file, or delete it.",
|
|
4279
|
+
check: sampleFileNotConfigured
|
|
4280
|
+
}
|
|
4281
|
+
];
|
|
4073
4282
|
// src/cli/doctor/stacks.ts
|
|
4074
4283
|
/** The share of the segment limit in use from which BS700 warns. */
|
|
4075
4284
|
const SEGMENT_WARNING_SHARE = .8;
|
|
@@ -4138,6 +4347,12 @@ const STACK_RULES = [{
|
|
|
4138
4347
|
})
|
|
4139
4348
|
}];
|
|
4140
4349
|
// src/cli/doctor/wiring.ts
|
|
4350
|
+
/** The view the housekeeping module creates. */
|
|
4351
|
+
const MAINTENANCE_JOBS = /\bmaintenance_jobs\b/u;
|
|
4352
|
+
/** A call that registers pg_cron, not the function definition. */
|
|
4353
|
+
const MAINTENANCE_SCHEDULED = /\bmaintenance_schedule\s*\(\s*(?:\)|')|cron\.schedule\s*\(\s*'[^'%][^;]*\bmaintenance\s*\(/u;
|
|
4354
|
+
/** The tick handler, or an app call of the dispatcher. */
|
|
4355
|
+
const MAINTENANCE_SOURCE = /\bmaintenanceTick\b|["']maintenance(?:_schedule)?["']/u;
|
|
4141
4356
|
const ENV_KEY = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=/;
|
|
4142
4357
|
function listedKeys(files) {
|
|
4143
4358
|
return new Set(files.flatMap((file) => file.text.split("\n").flatMap((line) => {
|
|
@@ -4221,6 +4436,20 @@ const WIRING_RULES = [
|
|
|
4221
4436
|
target: `${entry.block}.${entry.runs}`
|
|
4222
4437
|
}));
|
|
4223
4438
|
}
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
code: "BS510",
|
|
4442
|
+
severity: "warning",
|
|
4443
|
+
title: "Maintenance jobs have no scheduler",
|
|
4444
|
+
description: "The schema files install the housekeeping module (maintenance_jobs), but nothing schedules maintenance(): no `maintenance_schedule()` call for pg_cron, no cron.schedule line for it and no `maintenanceTick` handler on the block_ticks queue. The purges and expiries it dispatches never run. Run `select better_supabase.maintenance_schedule()`, or register `maintenanceTick` with `blockTickHandler` when pg_cron is not available.",
|
|
4445
|
+
check: (context) => {
|
|
4446
|
+
const sql = context.sqlFiles;
|
|
4447
|
+
if (sql === void 0 || !sql.some((file) => MAINTENANCE_JOBS.test(file.text))) return [];
|
|
4448
|
+
return sql.some((file) => MAINTENANCE_SCHEDULED.test(file.text)) || context.sources.some((file) => MAINTENANCE_SOURCE.test(file.text)) ? [] : [{
|
|
4449
|
+
message: "The housekeeping module is installed, but nothing runs maintenance(). Call `select better_supabase.maintenance_schedule()` once (it registers pg_cron, or returns 'none'), or drain the block_ticks queue with `maintenanceTick`.",
|
|
4450
|
+
target: "housekeeping"
|
|
4451
|
+
}];
|
|
4452
|
+
}
|
|
4224
4453
|
}
|
|
4225
4454
|
];
|
|
4226
4455
|
// src/cli/doctor/workflow-builder.ts
|
|
@@ -4772,6 +5001,7 @@ const RULES = [
|
|
|
4772
5001
|
...NOT_VALID_RULES,
|
|
4773
5002
|
...APP_TABLE_SCOPE_RULES,
|
|
4774
5003
|
...ENV_RULES,
|
|
5004
|
+
...SEED_RULES,
|
|
4775
5005
|
...WIRING_RULES,
|
|
4776
5006
|
...STACK_RULES
|
|
4777
5007
|
].toSorted((a, b) => byCodePoint(a.code, b.code));
|
|
@@ -5028,6 +5258,16 @@ async function sqlFiles(root, toml, workflow) {
|
|
|
5028
5258
|
const migrations = existsSync(migrationsDir) ? (await readdir(migrationsDir)).filter((name) => name.endsWith(".sql")).toSorted().toReversed().map((name) => `${migrationsPath}/${name}`) : [];
|
|
5029
5259
|
return [...schemas, ...await Promise.all(migrations.map(read))];
|
|
5030
5260
|
}
|
|
5261
|
+
/** The `.sql` files under the seeds folder, sorted by name (BS356). */
|
|
5262
|
+
async function seedFiles(root, toml) {
|
|
5263
|
+
const folder = `${toml?.dir ?? "supabase"}/seeds`;
|
|
5264
|
+
const directory = resolve(root, folder);
|
|
5265
|
+
if (!existsSync(directory)) return [];
|
|
5266
|
+
return Promise.all((await readdir(directory)).filter((name) => name.endsWith(".sql")).toSorted().map(async (name) => ({
|
|
5267
|
+
path: `${folder}/${name}`,
|
|
5268
|
+
text: await readFile(resolve(directory, name), "utf-8")
|
|
5269
|
+
})));
|
|
5270
|
+
}
|
|
5031
5271
|
/**
|
|
5032
5272
|
* The `doctor.sources` globs. Left at the default in a workspace root, they
|
|
5033
5273
|
* also cover each package's `src`.
|
|
@@ -5416,6 +5656,7 @@ async function runDoctor(config, args, env, options = {}) {
|
|
|
5416
5656
|
config,
|
|
5417
5657
|
snapshot,
|
|
5418
5658
|
sqlFiles: sql,
|
|
5659
|
+
seedFiles: await seedFiles(config.root, configToml),
|
|
5419
5660
|
configToml,
|
|
5420
5661
|
envFiles,
|
|
5421
5662
|
gitignore: gitignore?.text ?? "",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.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-
|
|
6
|
-
import { d as GEN_TASKS, p as isGenTask } from "./config-
|
|
4
|
+
import { u as catalogFingerprint } from "./cache-VZU4FIOF.js";
|
|
5
|
+
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BmBrjk2b.js";
|
|
6
|
+
import { d as GEN_TASKS, p as isGenTask } from "./config-C-DXllAX.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-
|
|
13
|
-
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-
|
|
14
|
-
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-
|
|
8
|
+
import { n as runGen } from "./run-BIAan13C.js";
|
|
9
|
+
import { n as dataMigration } from "./migrations-Dob5hF6K.js";
|
|
10
|
+
import { t as syncModules } from "./sync-x1M-Ywqf.js";
|
|
11
|
+
import { t as addModules } from "./add-BhQZHdAv.js";
|
|
12
|
+
import { n as listModules, t as printModule } from "./print-scQOZbuq.js";
|
|
13
|
+
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Deg53QHe.js";
|
|
14
|
+
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-BCKNATUX.js";
|
|
15
15
|
import { a as runEnv } from "./env-Bco8UGR3.js";
|
|
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-
|
|
16
|
+
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BKCoD-Ct.js";
|
|
17
|
+
import { n as runPowerSync } from "./powersync-aGKsgFN9.js";
|
|
18
|
+
import { t as runSeed } from "./seed-C7eiVpBy.js";
|
|
19
|
+
import { t as upgrade } from "./upgrade-BUDxM1EG.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
|
@@ -764,5 +764,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
764
764
|
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
|
|
765
765
|
readonly legacyTables?: boolean;
|
|
766
766
|
}): Promise<ResolvedConfig>;
|
|
767
|
-
export declare const VERSION = "0.
|
|
767
|
+
export declare const VERSION = "0.50.0";
|
|
768
768
|
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
1
|
import { a as list, r as defineCliCommand } from "./command-bvbsvYpo.js";
|
|
2
|
-
import { i as run, n as createCli, r as help, t as commandNames } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { i as run, n as createCli, r as help, t as commandNames } from "./run-aWo2fn_x.js";
|
|
3
|
+
import { t as VERSION } from "./version-CvNMxnwv.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-
|
|
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-BmBrjk2b.js";
|
|
6
|
+
import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-D8KGIoSK.js";
|
|
7
|
+
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-CEPki4I3.js";
|
|
8
|
+
import { s as loadConfig } from "./config-C-DXllAX.js";
|
|
9
|
+
import { n as runGen } from "./run-BIAan13C.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
|
|
@@ -2,17 +2,17 @@ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-bv
|
|
|
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-
|
|
8
|
-
import { a as findConfig, s as loadConfig } from "./config-
|
|
9
|
-
import { r as contentMapperFiles } from "./content-mapper-
|
|
5
|
+
import { l as TYPEGEN_VERSION } from "./cache-VZU4FIOF.js";
|
|
6
|
+
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-BmBrjk2b.js";
|
|
7
|
+
import { a as toCatalog } from "./source-CEPki4I3.js";
|
|
8
|
+
import { a as findConfig, s as loadConfig } from "./config-C-DXllAX.js";
|
|
9
|
+
import { r as contentMapperFiles } from "./content-mapper-5_KpJMOD.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-yTy1CuMe.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-CVtbyZQ4.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-x1M-Ywqf.js";
|
|
15
|
+
import { t as appTablePlan } from "./app-table-files-CSZU_cFC.js";
|
|
16
16
|
import { n as suggestedPackage, t as detectWorkspace } from "./workspace-DRLyXr3q.js";
|
|
17
17
|
import { existsSync } from "node:fs";
|
|
18
18
|
import { join, posix, resolve } from "node:path";
|
|
@@ -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-CEPki4I3.js";
|
|
3
|
+
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-d7o6xxEZ.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,6 +1,6 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.js";
|
|
2
|
-
import { a as envelope, i as run } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { a as envelope, i as run } from "./run-aWo2fn_x.js";
|
|
3
|
+
import { t as VERSION } from "./version-CvNMxnwv.js";
|
|
4
4
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
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-BLwQ6srP.js";
|
|
@@ -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-BmBrjk2b.js";
|
|
4
|
+
import { c as metaPaths, n as render } from "./render-D8KGIoSK.js";
|
|
5
|
+
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-BIAan13C.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
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.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-CSZU_cFC.js";
|
|
5
5
|
// src/cli/commands/migrate.ts
|
|
6
6
|
const MIGRATE_ARGS = {};
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as INTEGRATIONS } from "./config-
|
|
2
|
-
import { c as splitStatements } from "./shared-
|
|
1
|
+
import { f as INTEGRATIONS } from "./config-C-DXllAX.js";
|
|
2
|
+
import { c as splitStatements } from "./shared-d7o6xxEZ.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 { n as migrationsDir, o as sqlPlan } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
3
|
+
import { n as migrationsDir, o as sqlPlan } from "./sql-layout-BevHhOrq.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-Dr7FyvN1.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 { n as migrationsDir, o as sqlPlan } from "./sql-layout-
|
|
4
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { n as migrationsDir, o as sqlPlan } from "./sql-layout-BevHhOrq.js";
|
|
4
|
+
import { i as stampAfter } from "./migrations-Dob5hF6K.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as powersyncStreamsCommand } from "./powersync-aGKsgFN9.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.js";
|
|
2
2
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as snapshotColumnTypes, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { a as snapshotColumnTypes, n as migrationsDir } from "./sql-layout-BevHhOrq.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-Dr7FyvN1.js";
|
|
5
|
+
import { i as stampAfter } from "./migrations-Dob5hF6K.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";
|
|
@@ -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-Dr7FyvN1.js";
|
|
3
|
+
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BSOn1xPx.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-BevHhOrq.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,10 +1,10 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-bvbsvYpo.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-C-DXllAX.js";
|
|
5
5
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
7
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
6
|
+
import { n as ident } from "./live-B86Xvfaj.js";
|
|
7
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Deg53QHe.js";
|
|
8
8
|
// src/cli/commands/prune-workflows.ts
|
|
9
9
|
const TERMINAL = [
|
|
10
10
|
"completed",
|
|
@@ -3,15 +3,15 @@ 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 { o 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 { o as sqlPlan } from "./sql-layout-BevHhOrq.js";
|
|
7
|
+
import { r as layoutFor } from "./providers-Dr7FyvN1.js";
|
|
8
|
+
import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-yTy1CuMe.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, n as addBlocksToJson, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
|
|
11
|
-
import { n as guardedRemoval } from "./sync-
|
|
12
|
-
import { n as isComposite } from "./add-
|
|
11
|
+
import { n as guardedRemoval } from "./sync-x1M-Ywqf.js";
|
|
12
|
+
import { n as isComposite } from "./add-BhQZHdAv.js";
|
|
13
13
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
14
|
-
import { t as blockNames } from "./blocks-
|
|
14
|
+
import { t as blockNames } from "./blocks-BO-v5N1q.js";
|
|
15
15
|
import { i as tidyInline, t as cutRange } from "./config-group-D4JWh4kG.js";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
import { resolve } from "node:path";
|