better-supabase 0.59.0 → 0.61.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/api/naming.json +1994 -0
- package/dist/{account-parts-DxSyD4yi.d.ts → account-parts-DtC5voD1.d.ts} +3 -3
- package/dist/{activities-BkfN6cef.d.ts → activities-BMQuBkrQ.d.ts} +8 -8
- package/dist/{adapter-base-BAjra5Eb.js → adapter-base-DGiRWzEo.js} +2 -2
- package/dist/{agents-CbsEgoLN.d.ts → agents-3wTmHYZr.d.ts} +6 -6
- package/dist/{agents-B8kXBfH9.d.ts → agents-NaSREeo_.d.ts} +4 -4
- package/dist/{ai-cache-DfbYR_jG.d.ts → ai-cache-CKOJ9cLZ.d.ts} +4 -4
- package/dist/{ai-chat-DyffOt16.d.ts → ai-chat-C8FEgeTd.d.ts} +4 -4
- package/dist/{ai-guardrails-y6RVvDOH.d.ts → ai-guardrails-fzpJmgzI.d.ts} +3 -3
- package/dist/{ai-schedules-BxBsTpji.d.ts → ai-schedules-CtxaSWA1.d.ts} +5 -5
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- 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/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +8 -8
- 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 +4 -4
- package/dist/ai-sdk/workflow/index.js +1 -1
- package/dist/{api-DAJJ7N_0.js → api-Q23GAwx1.js} +1 -1
- package/dist/{api-keys-BlfwKpXq.d.ts → api-keys-Bfk9mJgz.d.ts} +4 -4
- package/dist/{api-wRlj_7so.d.ts → api-pGkHTqH6.d.ts} +5 -5
- package/dist/{app-tables-DBmFqdFN.d.ts → app-tables-BHoeMC9w.d.ts} +1 -1
- package/dist/{approvals-Bbxeiywy.d.ts → approvals-B1mzlyzk.d.ts} +12 -6
- package/dist/{approvals-Clg-7ghA.js → approvals-D7Xhpd52.js} +8 -6
- package/dist/{assistant-53zK5w6Q.d.ts → assistant-BQAjAXDe.d.ts} +2 -2
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +4 -4
- package/dist/{auth-module-D_RA-X_y.js → auth-module-B19zCsb4.js} +1 -1
- package/dist/{authorization-Dq47C4vf.d.ts → authorization-glyinWcf.d.ts} +9 -3
- package/dist/{authorization-hooks-DtuVzDBf.d.ts → authorization-hooks-Oe0WJTn2.d.ts} +2 -2
- package/dist/{authz-refresh-CNV_LFEh.js → authz-refresh-27sp45FG.js} +1 -1
- package/dist/{banking-reads-4m0_lltt.js → banking-reads-Baaatsuj.js} +1 -1
- package/dist/{base64-CEBz6-Jj.js → base64-DgNIlSAS.js} +1 -1
- package/dist/better-result/index.d.ts +3 -3
- package/dist/{bind-Bx0H1vAc.d.ts → bind-B-NW7-Fd.d.ts} +8 -8
- package/dist/{block-controller-CHtFwmpj.d.ts → block-controller-Dy-Jyy8A.d.ts} +2 -2
- package/dist/{block-env-DUn5reXc.d.ts → block-env-BN4cyqTj.d.ts} +4 -4
- package/dist/{block-event-listener-B1JTV_Ca.d.ts → block-event-listener-CQrt2JR-.d.ts} +1 -1
- package/dist/{block-events-records-x6GNmg6M.d.ts → block-events-records-CUCsDp0S.d.ts} +2 -2
- package/dist/{block-helpers-D0QSs8ss.d.ts → block-helpers-DDotKGAf.d.ts} +1 -1
- package/dist/{block-hooks-StmUvtuT.d.ts → block-hooks-b7-RUIxS.d.ts} +2 -2
- package/dist/{block-subjects-DzCWFD-t.d.ts → block-subjects-CG1x9djp.d.ts} +1 -1
- package/dist/{block-tables-BaLXCQha.d.ts → block-tables-CkbJsNys.d.ts} +1 -1
- package/dist/{block-transport-BNMvuuyC.d.ts → block-transport-Bqne7_GN.d.ts} +2 -2
- package/dist/blocks/access-requests/index.d.ts +3 -3
- package/dist/blocks/accounting/index.d.ts +3 -3
- package/dist/blocks/acknowledgements/index.d.ts +2 -2
- package/dist/blocks/activities/index.d.ts +6 -6
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/advisories/index.d.ts +5 -5
- package/dist/blocks/agent-checkout/index.d.ts +7 -7
- package/dist/blocks/agent-checkout/index.js +2 -2
- package/dist/blocks/agents/index.d.ts +5 -5
- package/dist/blocks/ai-cache/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.d.ts +4 -4
- package/dist/blocks/ai-evals/index.d.ts +4 -4
- package/dist/blocks/ai-files/index.d.ts +3 -3
- package/dist/blocks/ai-guardrails/index.d.ts +4 -4
- 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/appraisals/index.d.ts +5 -5
- package/dist/blocks/approvals/index.d.ts +3 -3
- package/dist/blocks/approvals/index.js +2 -2
- package/dist/blocks/assets/index.d.ts +4 -4
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +10 -10
- package/dist/blocks/audit/index.d.ts +4 -4
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +12 -12
- package/dist/blocks/banking/index.d.ts +3 -3
- package/dist/blocks/banking/index.js +1 -1
- package/dist/blocks/billable-time/index.d.ts +3 -3
- package/dist/blocks/billing/index.d.ts +6 -6
- package/dist/blocks/billing/index.js +1 -1
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bulk-actions/index.d.ts +5 -5
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/care/index.d.ts +30 -30
- package/dist/blocks/care/index.js +8 -8
- package/dist/blocks/care-plans/index.d.ts +6 -6
- package/dist/blocks/care-plans/index.js +2 -2
- package/dist/blocks/cases/index.d.ts +5 -5
- package/dist/blocks/catalog/index.d.ts +4 -4
- package/dist/blocks/channels/index.d.ts +7 -7
- package/dist/blocks/clinical-decision-support/index.d.ts +4 -4
- package/dist/blocks/cms/index.d.ts +7 -7
- package/dist/blocks/cms/index.js +1 -1
- package/dist/blocks/collaboration/index.d.ts +8 -8
- package/dist/blocks/collections/index.d.ts +15 -12
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/commerce/index.d.ts +7 -7
- package/dist/blocks/commerce/index.js +1 -1
- package/dist/blocks/commissions/index.d.ts +5 -5
- package/dist/blocks/compliance/index.d.ts +5 -5
- package/dist/blocks/connectors/index.d.ts +4 -4
- package/dist/blocks/consents/index.d.ts +5 -5
- package/dist/blocks/contacts/index.d.ts +5 -5
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +4 -4
- package/dist/blocks/contracts/index.d.ts +6 -6
- package/dist/blocks/courses/index.d.ts +4 -4
- package/dist/blocks/courses/index.js +2 -2
- package/dist/blocks/created-by/index.d.ts +3 -3
- package/dist/blocks/crm/index.d.ts +18 -18
- package/dist/blocks/crm/index.js +5 -5
- package/dist/blocks/custom-fields/index.d.ts +2 -2
- package/dist/blocks/dam/index.d.ts +6 -6
- package/dist/blocks/data-lifecycle/index.d.ts +3 -3
- package/dist/blocks/deadlines/index.d.ts +5 -5
- package/dist/blocks/deals/index.d.ts +3 -3
- package/dist/blocks/dispatch/index.d.ts +4 -4
- package/dist/blocks/document-templates/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/drive/index.js +1 -1
- package/dist/blocks/e-prescribing/index.d.ts +4 -4
- package/dist/blocks/employees/index.d.ts +3 -3
- package/dist/blocks/enrichment/index.d.ts +3 -3
- package/dist/blocks/enrollments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +4 -4
- package/dist/blocks/events/index.d.ts +5 -5
- package/dist/blocks/events/index.js +1 -1
- package/dist/blocks/expenses/index.d.ts +5 -5
- package/dist/blocks/field-history/index.d.ts +3 -3
- package/dist/blocks/filespace/index.d.ts +9 -9
- package/dist/blocks/filespace/index.js +1 -1
- package/dist/blocks/finance/index.d.ts +6 -6
- package/dist/blocks/finance/index.js +3 -3
- package/dist/blocks/flags/index.d.ts +5 -5
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +4 -4
- package/dist/blocks/funding/index.d.ts +5 -5
- package/dist/blocks/funding/index.js +1 -1
- package/dist/blocks/goals/index.d.ts +3 -3
- package/dist/blocks/governance/index.d.ts +5 -5
- package/dist/blocks/guests/index.d.ts +3 -3
- package/dist/blocks/hiring/index.d.ts +3 -3
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/identities/index.d.ts +5 -5
- package/dist/blocks/imports/index.d.ts +6 -6
- package/dist/blocks/inbox/index.d.ts +10 -10
- package/dist/blocks/incidents/index.d.ts +5 -5
- package/dist/blocks/index.d.ts +12 -12
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/inspections/index.d.ts +6 -6
- package/dist/blocks/inventory/index.d.ts +3 -3
- package/dist/blocks/invoices/index.d.ts +6 -6
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/knowledge/index.d.ts +3 -3
- package/dist/blocks/lead-scoring/index.d.ts +4 -4
- package/dist/blocks/learning/index.d.ts +5 -5
- package/dist/blocks/leases/index.d.ts +6 -6
- package/dist/blocks/leave/index.d.ts +3 -3
- package/dist/blocks/ledger/index.d.ts +6 -6
- package/dist/blocks/legal-entities/index.d.ts +6 -6
- package/dist/blocks/lims/index.d.ts +6 -6
- package/dist/blocks/mail-sync/index.d.ts +5 -5
- package/dist/blocks/maintenance/index.d.ts +4 -4
- package/dist/blocks/manufacturing/index.d.ts +7 -7
- package/dist/blocks/medications/index.d.ts +4 -4
- package/dist/blocks/medications/index.js +1 -1
- package/dist/blocks/meetings/index.d.ts +5 -5
- package/dist/blocks/memberships/index.d.ts +3 -3
- package/dist/blocks/memory/index.d.ts +4 -4
- package/dist/blocks/messaging/index.d.ts +11 -11
- package/dist/blocks/metrics/index.d.ts +6 -6
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +7 -7
- package/dist/blocks/notifications/index.d.ts +10 -10
- package/dist/blocks/notifications/index.js +2 -2
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +5 -5
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/observations/index.d.ts +5 -5
- package/dist/blocks/onboarding/index.d.ts +3 -3
- package/dist/blocks/option-sets/index.d.ts +6 -6
- package/dist/blocks/orders/index.d.ts +4 -4
- package/dist/blocks/orders/index.js +1 -1
- package/dist/blocks/organizations/index.d.ts +4 -4
- package/dist/blocks/outbox/index.d.ts +4 -4
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +4 -4
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/payroll-export/index.d.ts +4 -4
- package/dist/blocks/payroll-export/index.js +1 -1
- package/dist/blocks/people/index.d.ts +8 -8
- package/dist/blocks/people/index.js +1 -1
- package/dist/blocks/periods/index.d.ts +5 -5
- package/dist/blocks/permissions/index.d.ts +7 -7
- package/dist/blocks/pipelines/index.d.ts +4 -4
- package/dist/blocks/posts/index.d.ts +6 -6
- package/dist/blocks/procurement/index.d.ts +6 -6
- package/dist/blocks/procurement/index.js +2 -2
- package/dist/blocks/profiles/index.d.ts +3 -3
- package/dist/blocks/projects/index.d.ts +8 -8
- package/dist/blocks/projects/index.js +2 -2
- package/dist/blocks/promotions/index.d.ts +3 -3
- package/dist/blocks/prompts/index.d.ts +4 -4
- package/dist/blocks/push/index.d.ts +7 -7
- package/dist/blocks/qualifications/index.d.ts +4 -4
- package/dist/blocks/queue/index.d.ts +5 -5
- package/dist/blocks/queue/index.js +2 -2
- package/dist/blocks/quotes/index.d.ts +5 -5
- package/dist/blocks/rank/index.d.ts +7 -7
- package/dist/blocks/rank/index.js +1 -1
- package/dist/blocks/reactions/index.d.ts +6 -6
- package/dist/blocks/recruiting/index.d.ts +5 -5
- package/dist/blocks/recruiting/index.js +1 -1
- package/dist/blocks/referrals/index.d.ts +5 -5
- package/dist/blocks/relations/index.d.ts +7 -7
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +5 -5
- package/dist/blocks/rfqs/index.d.ts +4 -4
- package/dist/blocks/risks/index.d.ts +6 -6
- package/dist/blocks/saas/index.d.ts +14 -14
- package/dist/blocks/saas/index.js +2 -2
- 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 +6 -6
- package/dist/blocks/scheduling/index.d.ts +6 -6
- package/dist/blocks/scheduling/index.js +1 -1
- package/dist/blocks/scores/index.d.ts +6 -6
- package/dist/blocks/search/index.d.ts +5 -5
- package/dist/blocks/search/index.js +1 -1
- 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 +4 -4
- package/dist/blocks/sequences/index.d.ts +5 -5
- package/dist/blocks/service/index.d.ts +8 -8
- package/dist/blocks/service-accounts/index.d.ts +5 -5
- package/dist/blocks/sessions/index.d.ts +4 -4
- package/dist/blocks/settings/index.d.ts +4 -4
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shifts/index.d.ts +4 -4
- package/dist/blocks/shipments/index.d.ts +6 -6
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.d.ts +3 -3
- package/dist/blocks/signing-keys/index.d.ts +3 -3
- package/dist/blocks/signing-keys/index.js +2 -2
- package/dist/blocks/sla/index.d.ts +3 -3
- package/dist/blocks/sso/index.d.ts +6 -6
- package/dist/blocks/state-machine/index.d.ts +2 -2
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +7 -7
- package/dist/blocks/subjects/index.js +1 -1
- package/dist/blocks/support/index.d.ts +6 -6
- package/dist/blocks/tags/index.d.ts +3 -3
- package/dist/blocks/tasks/index.d.ts +4 -4
- package/dist/blocks/tax/index.d.ts +4 -4
- package/dist/blocks/tax/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +8 -8
- package/dist/blocks/tills/index.d.ts +5 -5
- package/dist/blocks/time-entries/index.d.ts +3 -3
- package/dist/blocks/timeline/index.d.ts +2 -2
- package/dist/blocks/trash/index.d.ts +3 -3
- package/dist/blocks/undo/index.d.ts +4 -4
- package/dist/blocks/updated-at/index.d.ts +3 -3
- 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 +2 -2
- package/dist/blocks/waitlist/index.d.ts +5 -5
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/warehouse/index.d.ts +5 -5
- package/dist/blocks/warranty/index.d.ts +5 -5
- package/dist/blocks/webhooks/index.d.ts +15 -15
- package/dist/blocks/webhooks/index.js +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +9 -9
- package/dist/blocks/workflows/index.d.ts +7 -7
- package/dist/{blocks-RVd7m590.d.ts → blocks-D4ngpPJ_.d.ts} +17 -7
- package/dist/{bookings-sBb-GMK8.d.ts → bookings-6dC83XE6.d.ts} +3 -3
- package/dist/{bootstrap-permissions-BOkRVEEh.js → bootstrap-permissions-CulW-R_u.js} +2 -2
- package/dist/{bucket-CbRyXRp3.d.ts → bucket-BJ03ZblY.d.ts} +1 -1
- package/dist/{build-Rz89mkdS.js → build-CRxrX567.js} +1 -1
- package/dist/{cache-tags-BxpxsCtq.d.ts → cache-tags-UWvxDMDO.d.ts} +1 -1
- package/dist/{care-plans-BR3TkinL.d.ts → care-plans-q3m4ph4G.d.ts} +2 -2
- package/dist/{care-plans-sql-DyB5TB6y.js → care-plans-sql-B__5eEaI.js} +1 -1
- package/dist/chat-sdk/index.d.ts +6 -6
- package/dist/claims/index.d.ts +7 -7
- package/dist/{claims-source-BEVTXHQx.d.ts → claims-source-D-4CztOl.d.ts} +2 -2
- package/dist/cli/{add-BJNTq7Ti.js → add-CN5jkEFM.js} +2 -2
- package/dist/cli/add-fra98UnY.js +1 -0
- package/dist/cli/{add-CnCt2QoB.js → add-ucxskHiv.js} +11 -11
- package/dist/cli/{app-table-files-CfB0_NuX.js → app-table-files-FcgTfOf9.js} +4 -4
- package/dist/cli/{app-tables-oieRU_sP.js → app-tables-DCpSNfJ3.js} +2 -2
- package/dist/cli/{backfill-Cr5jgVi1.js → backfill-DVP_elK_.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-DLMVaOFG.js → blocks-CFKjKW4s.js} +1 -1
- package/dist/cli/{blocks-B-ANsRnH.js → blocks-iSEepN2Y.js} +1 -1
- package/dist/cli/{cache-Ba26VW2N.js → cache-CNa3fjK-.js} +1 -1
- package/dist/cli/{codemod-x1I7Mjr3.js → codemod-DH-VSZps.js} +6 -6
- package/dist/cli/{codemod-naming-CZhndoO7.js → codemod-naming-CuQ0ltfE.js} +1 -1
- package/dist/cli/{codes-DNq30BZg.js → codes-D_oa7Aw5.js} +3 -3
- package/dist/cli/{column-renames-BEEDF6P6.js → column-renames-CtcG8MR5.js} +2 -2
- package/dist/cli/{config-DkjilxeE.js → config-CoW6aoul.js} +1 -1
- package/dist/cli/{config-DD_MnPRL.js → config-DX58lDf7.js} +7 -1
- package/dist/cli/{content-mapper-z7CrnE1s.js → content-mapper-TATvvrmb.js} +1 -1
- package/dist/cli/{db-CEUnv3hK.js → db-CZ9qHsDs.js} +2 -2
- package/dist/cli/{dev-D9nn9Gzt.js → dev-BDv1efAy.js} +5 -5
- package/dist/cli/{doctor-DCorhlir.js → doctor-CkO1yd7F.js} +242 -109
- package/dist/cli/{emit-qQdWBc9e.js → emit-OhupwGNp.js} +3 -3
- package/dist/cli/{gen-Bf1ujcTm.js → gen-1lVJoeH1.js} +5 -5
- package/dist/cli/{gen-tasks-q9JJSJ6r.js → gen-tasks-BgxoXxuF.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +8 -8
- package/dist/cli/{init-DLLfL1uL.js → init-Defy7VJ0.js} +9 -9
- package/dist/cli/{live-D4giSEyd.js → live-DmvnAvGV.js} +2 -2
- package/dist/cli/{mcp-DwjeMbmV.js → mcp-BGKeD-lo.js} +2 -2
- package/dist/cli/{memo-backend-DPGMyJvH.js → memo-backend-3u-X51UO.js} +1 -1
- package/dist/cli/{metadata-Cft3CW1M.js → metadata-D0UazHyQ.js} +4 -4
- package/dist/cli/{migrate-Ci_UUuPv.js → migrate-PshyB8a6.js} +1 -1
- package/dist/cli/{migration-safety-D3raBuJx.js → migration-safety-DYgRA8-5.js} +2 -2
- package/dist/cli/{module-migration-DZtxNO8A.js → module-migration-CRsIlrig.js} +1 -1
- package/dist/cli/{partition-DWJ6icQ5.js → partition-ht8zldUV.js} +3 -3
- package/dist/cli/powersync-BztAuUyy.js +1 -0
- package/dist/cli/{powersync-BAyDVR-N.js → powersync-r6iL7zEo.js} +4 -4
- package/dist/cli/{print-BSy5c62C.js → print-Ca78W5ZF.js} +2 -2
- package/dist/cli/{providers-BbFKOale.js → providers-DhMSptuy.js} +1 -1
- package/dist/cli/{prune-workflows-VY7C9vhb.js → prune-workflows-DyZx-veL.js} +3 -3
- package/dist/cli/{remove-CcBoTjEO.js → remove-37g_SvZW.js} +6 -6
- package/dist/cli/{render-CIrcdge6.js → render-Bfh2EtMO.js} +5 -5
- package/dist/cli/{render-cache-bbL2UdJ6.js → render-cache-BYkVt264.js} +1 -1
- package/dist/cli/round-trips-BHfeIu6I.js +238 -0
- package/dist/cli/{run-D_p_WkPh.js → run-CfWFddfH.js} +8 -8
- package/dist/cli/{run-qCtE--0z.js → run-DEPt1rAn.js} +37 -36
- package/dist/cli/seed-B6_MBFd2.js +1 -0
- package/dist/cli/{seed-CvDA1ItH.js → seed-pDWlnzyK.js} +2 -2
- package/dist/cli/{shared-CkqZm0Bz.js → shared-BrAtQXmC.js} +1 -1
- package/dist/cli/{source-io7b1UpH.js → source-Bt6UAek-.js} +1 -1
- package/dist/cli/{source-args-yU6N6JLm.js → source-args-D5BSEgUG.js} +1 -1
- package/dist/cli/{spec-QGOfTJvS.js → spec-BJreyth3.js} +1 -1
- package/dist/cli/{spec-djAAvGKU.js → spec-DsNayDt2.js} +2 -2
- package/dist/cli/{sql-layout-1ASqdR4g.js → sql-layout-Bt7NcWXk.js} +4 -4
- package/dist/cli/{squash-DEmB47YZ.js → squash-DmbB7Gx9.js} +1 -1
- package/dist/cli/{sync-CUcxtnwa.js → sync-DFAkNjw_.js} +60 -8
- package/dist/cli/{upgrade-FWW6hKCv.js → upgrade-D8GOjXrv.js} +5 -5
- package/dist/cli/{upgrade-DV9mKpAp.js → upgrade-DP-30QID.js} +9 -7
- package/dist/cli/{verify-CrFHs8Lr.js → verify-O5zxWWuE.js} +2 -2
- package/dist/cli/{version-CSdXYnhG.js → version-CHVFvh95.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 +7 -7
- package/dist/client/native/index.js +4 -4
- package/dist/{client-D1grRDjj.js → client-CPG7YGP2.js} +1 -1
- package/dist/{client-bucket-BLVysX-A.js → client-bucket-DvoYllSB.js} +1 -1
- package/dist/{clinical-decision-support-BHRUL6qj.d.ts → clinical-decision-support-D6FWGbEw.d.ts} +3 -3
- package/dist/{cloud-event-BtWOKfsx.d.ts → cloud-event-B0AsPtwP.d.ts} +1 -1
- package/dist/{codec-Cjquuv8M.js → codec-CJaAdLjG.js} +2 -2
- package/dist/commerce/index.js +1 -1
- package/dist/{compiler-BwJR_BHq.d.ts → compiler-u6lO9V7r.d.ts} +2 -2
- package/dist/{composite-WUO6K2Hu.js → composite-Bxpd7oru.js} +2 -2
- package/dist/{composite-CL4zDLjs.d.ts → composite-CxojRRUF.d.ts} +7 -7
- package/dist/{composite-reads-BJeDe1yV.js → composite-reads-BJJBI4tL.js} +1 -1
- package/dist/{composite-reads-B9psRGqQ.d.ts → composite-reads-CK-Y5b6M.d.ts} +2 -2
- package/dist/config/index.d.ts +5 -5
- package/dist/config/index.js +2 -2
- package/dist/{config-C3yry9U5.js → config-cisS43w5.js} +1 -1
- package/dist/{connectors-VX1FIU-t.d.ts → connectors-BCIhimzA.d.ts} +4 -4
- package/dist/{consents-OI2OWAfb.d.ts → consents-BuIwU6T3.d.ts} +3 -3
- package/dist/{contacts-D9_KMOgs.d.ts → contacts-4xMnNBVk.d.ts} +5 -5
- package/dist/{context-DMTfze4z.d.ts → context-m-t6Kr9_.d.ts} +24 -10
- package/dist/contract/index.d.ts +9 -9
- package/dist/{contributions-Bh-HcHoJ.js → contributions-Ba-C1ueE.js} +6 -6
- package/dist/{controller-l9h4TtKg.d.ts → controller-zwQFyrOG.d.ts} +1 -1
- package/dist/{conversion-D70FELty.d.ts → conversion-b6htac73.d.ts} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +2 -2
- package/dist/create/lite/index.d.ts +4 -4
- package/dist/create/lite/index.js +6 -4
- package/dist/credentials/index.d.ts +4 -4
- package/dist/credentials/index.js +1 -1
- package/dist/{cron-route-Cg1V2MUq.js → cron-route-spE8XDgv.js} +1 -1
- package/dist/{data-engine-CQiEEoNx.d.ts → data-engine-nmeUijzR.d.ts} +1 -1
- package/dist/{db-blocks-Db3LVXco.d.ts → db-blocks-_jJICfjp.d.ts} +16 -7
- package/dist/{define-BDrm9Vl7.d.ts → define-BVBAeKTi.d.ts} +1 -1
- package/dist/{define-block-D-Z8xB6y.d.ts → define-block-DQvTGOGv.d.ts} +14 -14
- package/dist/{define-runtime-Dv8OYnKW.js → define-runtime-DsFTahQB.js} +2 -2
- package/dist/{define-runtime-full-C4eTtJAx.js → define-runtime-full-B_cMkyCk.js} +3 -3
- package/dist/{delete-account-BHXzIUIq.d.ts → delete-account-BQDeafVT.d.ts} +4 -4
- package/dist/{documents-BHddH30g.d.ts → documents-B8Q_BKha.d.ts} +3 -3
- package/dist/{drive-DrD94tWF.d.ts → drive-DaEK5ZxU.d.ts} +5 -5
- package/dist/e-invoicing/index.d.ts +2 -2
- package/dist/{e-prescribing-DkV1wF9y.d.ts → e-prescribing-CP0lcOje.d.ts} +4 -4
- package/dist/edge/index.d.ts +9 -9
- package/dist/edge/index.js +5 -5
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-4zY3hhO8.d.ts → embeddings-BriQ4hQ1.d.ts} +2 -2
- package/dist/{ended-B1oCwF0v.d.ts → ended-CzWPQkkG.d.ts} +2 -2
- package/dist/{entitlements-B6q7TIMP.d.ts → entitlements-D4ob6MfK.d.ts} +3 -3
- package/dist/eve/index.d.ts +9 -9
- package/dist/eve/index.js +2 -2
- package/dist/{eve-BZhRFAWs.d.ts → eve-D-hvUFYE.d.ts} +2 -2
- package/dist/events/index.d.ts +5 -5
- package/dist/{events-Bk63_mjA.d.ts → events-zz8DwtZi.d.ts} +2 -2
- package/dist/{executor-BypvvW56.d.ts → executor-7zo2arIZ.d.ts} +1 -1
- package/dist/{executor-BaFzh9pS.d.ts → executor-BLv4T8kT.d.ts} +1 -1
- package/dist/{executor-BmcRcw83.js → executor-D24_D6dr.js} +2 -2
- package/dist/{executor-Dp4A_McY.d.ts → executor-nx2Q8Xdy.d.ts} +4 -4
- package/dist/expo/index.d.ts +6 -6
- package/dist/expo/index.js +5 -5
- package/dist/{extract-D4QPFB_M.d.ts → extract-W4zb3wIh.d.ts} +5 -5
- package/dist/{extras-C0cnpjDP.d.ts → extras-ByEPERCR.d.ts} +2 -2
- package/dist/fhir/index.d.ts +5 -5
- package/dist/fhir/index.js +1 -1
- package/dist/{field-errors-Br3wwgbu.d.ts → field-errors-pj0uOXSg.d.ts} +9 -9
- package/dist/{fields-OBEVi7hN.d.ts → fields-BATxzuhy.d.ts} +1 -1
- package/dist/{filter-evaluate-CVwpzMX-.d.ts → filter-evaluate-C2JXrZst.d.ts} +1 -1
- package/dist/{filter-query-CI5u0oca.d.ts → filter-query-DwJ1iMQ0.d.ts} +1 -1
- package/dist/{flags-Du06K0gA.d.ts → flags-CkMvfo73.d.ts} +2 -2
- package/dist/flags-sdk/index.d.ts +2 -2
- package/dist/{former-permission-keys-BwJW5uc6.js → former-permission-keys-D8FbWktT.js} +2 -2
- package/dist/{framework-BUzOnlJN.d.ts → framework-BYx1ke3r.d.ts} +8 -8
- package/dist/{framework-CbjS8M33.js → framework-pfJvMQy3.js} +1 -1
- package/dist/{funding-DpFfyIiK.d.ts → funding-B4vqlKq2.d.ts} +7 -7
- package/dist/{gateway-ChuQD_IL.d.ts → gateway-eFh5pEIu.d.ts} +3 -3
- package/dist/generators/factories/index.d.ts +1 -1
- package/dist/generators/factories/index.js +1 -1
- package/dist/generators/index.d.ts +2 -2
- package/dist/generators/json-schema/index.d.ts +2 -2
- package/dist/generators/json-schema/index.js +1 -1
- package/dist/generators/nuqs/index.d.ts +1 -1
- package/dist/generators/nuqs/index.js +1 -1
- package/dist/generators/standard-schema/index.d.ts +1 -1
- package/dist/generators/standard-schema/index.js +1 -1
- package/dist/generators/valibot/index.d.ts +1 -1
- package/dist/generators/valibot/index.js +1 -1
- package/dist/generators/zod/index.d.ts +1 -1
- package/dist/generators/zod/index.js +1 -1
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +9 -9
- package/dist/hono/index.js +4 -4
- package/dist/{inbox-CDGfVOyZ.d.ts → inbox-Cr4WDuhI.d.ts} +5 -5
- package/dist/{index-DmoaxGHV.d.ts → index-1FGquKaz.d.ts} +3 -3
- package/dist/{index-DG187JM_.d.ts → index-46tesKqa.d.ts} +6 -6
- package/dist/{index-BAku12tP.d.ts → index-BHkxtS6f.d.ts} +1 -1
- package/dist/{index-BWxcC8ll.d.ts → index-BLPzvJ5v.d.ts} +9 -9
- package/dist/{index-BquYRGtV.d.ts → index-BVuN7_fC.d.ts} +8 -8
- package/dist/{index-jCKNxp8C.d.ts → index-BYDpdZxq.d.ts} +5 -5
- package/dist/{index-BZHDwHGW.d.ts → index-BZCCv04g.d.ts} +4 -4
- package/dist/{index-Dyns9a8l.d.ts → index-Bb_il0ub.d.ts} +5 -5
- package/dist/{index-CHOeFZUB.d.ts → index-BfnBjZpy.d.ts} +5 -5
- package/dist/{index-Cg0lDbXs.d.ts → index-BomyYKtC.d.ts} +6 -6
- package/dist/{index-DMyMrXPW.d.ts → index-BpQxfGSO.d.ts} +6 -6
- package/dist/{index-DU_gZYuh.d.ts → index-Bu4YwWl0.d.ts} +3 -3
- package/dist/{index-DtVZnjKf.d.ts → index-ByCXNZ2j.d.ts} +2 -2
- package/dist/{index-D3d7m03L.d.ts → index-C37Wq488.d.ts} +6 -6
- package/dist/{index-NNox0BqF.d.ts → index-CDX9U_CH.d.ts} +4 -4
- package/dist/{index-WuUhLgMp.d.ts → index-CQGi7Jnn.d.ts} +9 -9
- package/dist/{index-CnTxcNyl.d.ts → index-CWTWbIz_.d.ts} +3 -3
- package/dist/{index-ClysJ8O-.d.ts → index-CjoB5SrD.d.ts} +5 -5
- package/dist/{index-DLlAc0wg.d.ts → index-ClqA-t45.d.ts} +5 -5
- package/dist/{index-BfoKErj3.d.ts → index-CriIH7di.d.ts} +5 -5
- package/dist/{index-o2y0w9lX.d.ts → index-Crm9IjfQ.d.ts} +7 -7
- package/dist/{index-Dg4lbDzI.d.ts → index-CxX_Bgfa.d.ts} +6 -6
- package/dist/{index-DK0Hj3pi.d.ts → index-CxZV8RJE.d.ts} +6 -6
- package/dist/{index-d2TijvXV.d.ts → index-D2R8Msu5.d.ts} +1 -1
- package/dist/{index-B6h9m3ml.d.ts → index-DCqy0ESb.d.ts} +2 -2
- package/dist/{index-C7Tcervm.d.ts → index-DW_S9n3h.d.ts} +7 -7
- package/dist/{index-DkALeCTq.d.ts → index-DYh76mE_.d.ts} +2 -2
- package/dist/{index-DHjZvZWC.d.ts → index-D_0l5hHh.d.ts} +4 -4
- package/dist/{index-B4uPo3Sr.d.ts → index-DeI4h1N1.d.ts} +7 -7
- package/dist/{index-bkm44ycq.d.ts → index-Dea13gIz.d.ts} +6 -6
- package/dist/{index-BbpacfC0.d.ts → index-DlUd0CTA.d.ts} +9 -9
- package/dist/{index-BFvj-fNS.d.ts → index-DpoUltRu.d.ts} +2 -2
- package/dist/{index-DGszLnec.d.ts → index-DsNwQRWG.d.ts} +3 -3
- package/dist/{index-DYX_uL5t.d.ts → index-DyV6z0Q_.d.ts} +8 -8
- package/dist/{index-ouiV6zqH.d.ts → index-Dyhkn8FU.d.ts} +5 -5
- package/dist/{index-DKuOnwh6.d.ts → index-IrsC8TLH.d.ts} +8 -8
- package/dist/{index-D_xJSanv.d.ts → index-SWDnWdWw.d.ts} +3 -3
- package/dist/{index-C9p3wiWn.d.ts → index-SZ8qGIVO.d.ts} +15 -15
- package/dist/{index-X-ihJBuJ.d.ts → index-WoE9Z_V-.d.ts} +5 -5
- package/dist/{index-qzFFTwel.d.ts → index-r_SO6mVm.d.ts} +5 -5
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/{invoices-CWp9jcI2.d.ts → invoices-L6khZ9kt.d.ts} +10 -5
- package/dist/{json-schema-B8f7HdoX.js → json-schema-CU9Mg-_d.js} +1 -1
- package/dist/{jwks-cache-C5Bkk8wb.js → jwks-cache-DcfC4DmK.js} +1 -1
- package/dist/{jws-D5t4Ylus.js → jws-DChBKezH.js} +1 -1
- package/dist/{kit-DN6lGKB6.d.ts → kit-BwlTgitb.d.ts} +4 -4
- package/dist/{knowledge-pN-5j-oj.d.ts → knowledge-C7RZqwQu.d.ts} +9 -6
- package/dist/lint/index.d.ts +1 -1
- package/dist/list/export/index.d.ts +1 -1
- package/dist/list/index.d.ts +3 -3
- package/dist/list/order/index.d.ts +3 -3
- package/dist/{list-query-qCpvTDGH.d.ts → list-query-B6lXbY0T.d.ts} +4 -4
- package/dist/{manifest-D80LSWzZ.d.ts → manifest-2sJavyD8.d.ts} +6 -6
- package/dist/{manifest-BTR978h8.js → manifest-3XKIMZkJ.js} +1 -1
- package/dist/{manifest-Co41j70r.d.ts → manifest-4S1YGIS3.d.ts} +6 -6
- package/dist/{manifest-CZoRtSvn.d.ts → manifest-5i2UwyQr.d.ts} +4 -4
- package/dist/{manifest-CvncELVO.d.ts → manifest-B0pan6cS.d.ts} +5 -5
- package/dist/{manifest-VbHg6E4F.js → manifest-BBcaI1P8.js} +1 -1
- package/dist/{manifest-ra7MSo-3.d.ts → manifest-BEQWkGmf.d.ts} +5 -5
- package/dist/{manifest-Clzy2rSU.d.ts → manifest-BKiaRgiZ.d.ts} +3 -3
- package/dist/{manifest-BESrR9Xp.d.ts → manifest-BMilYLsh.d.ts} +3 -3
- package/dist/{manifest-dt25CCQA.js → manifest-BNmYcT7b.js} +1 -1
- package/dist/{manifest-BS8p47JO.d.ts → manifest-BRvnB8C0.d.ts} +5 -5
- package/dist/{manifest-CNLJLsHB.d.ts → manifest-BZPruG-S.d.ts} +4 -4
- package/dist/{manifest-CLG2lmYA.js → manifest-B_qm9fCI.js} +1 -1
- package/dist/{manifest-BoUGzBpS.d.ts → manifest-BaIG9QRj.d.ts} +4 -4
- package/dist/{manifest-V0QSCEfx.d.ts → manifest-Bf6Rzatq.d.ts} +4 -4
- package/dist/{manifest-TvLJWs_L.d.ts → manifest-Bfu-Cu0f.d.ts} +7 -7
- package/dist/{manifest-Dp92U_iP.d.ts → manifest-Bj8bumDU.d.ts} +6 -6
- package/dist/{manifest-WK23vBlH.js → manifest-Bkm_17rp.js} +2 -2
- package/dist/{manifest-CIVhJzKF.d.ts → manifest-BpgNJhYN.d.ts} +2 -2
- package/dist/{manifest-VCJSqffq.d.ts → manifest-BxvFH1G_.d.ts} +3 -3
- package/dist/{manifest-RitquXSE.d.ts → manifest-BzXqieUD.d.ts} +7 -7
- package/dist/{manifest-BGmmK9bZ.d.ts → manifest-C2hpeEBF.d.ts} +3 -3
- package/dist/{manifest-BLFyjEv_.js → manifest-C6bwnO77.js} +1 -1
- package/dist/{manifest-CKDaQT_5.d.ts → manifest-C95ET4CL.d.ts} +4 -4
- package/dist/{manifest-Dvm2mwFy.d.ts → manifest-CA5EhKZ9.d.ts} +3 -3
- package/dist/{manifest-CLukD6aB.d.ts → manifest-CF3BUmbe.d.ts} +5 -5
- package/dist/{manifest-BTgU8Kcf.js → manifest-CG38X6q2.js} +1 -1
- package/dist/{manifest-CXNXmH86.js → manifest-CK1J6NE1.js} +1 -1
- package/dist/{manifest-B1lOqNaq.js → manifest-CLw7q0PB.js} +1 -1
- package/dist/{manifest-qvMWfrZ-.d.ts → manifest-CMn61uKN.d.ts} +5 -5
- package/dist/{manifest-DlLxdk7P.d.ts → manifest-CS8I2fku.d.ts} +3 -3
- package/dist/{manifest-D08Cdndm.js → manifest-CSYLcs5d.js} +2 -2
- package/dist/{manifest--_00y416.d.ts → manifest-CWFhOuFW.d.ts} +4 -4
- package/dist/{manifest-BA-urVob.d.ts → manifest-CXdJUJjX.d.ts} +8 -8
- package/dist/{manifest-B_2lEGUS.d.ts → manifest-CYO44YUb.d.ts} +5 -5
- package/dist/{manifest-Dpad_5Lw.d.ts → manifest-Ccc0ZZup.d.ts} +6 -6
- package/dist/{manifest-QmYmc98q.d.ts → manifest-CiF1Sb29.d.ts} +6 -6
- package/dist/{manifest-BAn3lTr4.d.ts → manifest-Cl2U3bic.d.ts} +3 -3
- package/dist/{manifest-Ch08RUKa.d.ts → manifest-CnVa_nHw.d.ts} +3 -3
- package/dist/{manifest-DBT7GiWE.js → manifest-CoR7UHm9.js} +1 -1
- package/dist/{manifest-Dxff277Z.js → manifest-CsJhHOcl.js} +2 -2
- package/dist/{manifest-DHTVfgX9.d.ts → manifest-CtL5JmoY.d.ts} +4 -4
- package/dist/{manifest-ByNpLQWh.d.ts → manifest-CumC7hH5.d.ts} +4 -4
- package/dist/{manifest-CyaHDD_i.d.ts → manifest-Cv7Mji7w.d.ts} +5 -5
- package/dist/{manifest-iMnrzuzj.js → manifest-CwvLYm4x.js} +2 -2
- package/dist/{manifest-CUtvLTr3.js → manifest-CzDKrwRf.js} +2 -2
- package/dist/{manifest-CXYg8gzt.d.ts → manifest-D48Fi0bR.d.ts} +3 -3
- package/dist/{manifest-CWwdLMT0.d.ts → manifest-DOtSiMt5.d.ts} +4 -4
- package/dist/{manifest-r6DHrB4Q.d.ts → manifest-DUPKC2rO.d.ts} +5 -5
- package/dist/{manifest-CCKfdYiH.d.ts → manifest-DZyxhWcb.d.ts} +3 -3
- package/dist/{manifest-ByV81mLa.d.ts → manifest-DfC1XBrV.d.ts} +4 -4
- package/dist/{manifest-DHulRwzL.d.ts → manifest-DftU8SXo.d.ts} +5 -5
- package/dist/{manifest-CxgOFWlh.d.ts → manifest-Dg2BCyzg.d.ts} +4 -4
- package/dist/{manifest-CjzlsilW.d.ts → manifest-DiXINLQQ.d.ts} +5 -5
- package/dist/{manifest-D_wBteR5.d.ts → manifest-Dim5U8TQ.d.ts} +3 -3
- package/dist/{manifest-CQrTRkRh.js → manifest-DkpKjNGT.js} +1 -1
- package/dist/{manifest-qOwMTJHI.js → manifest-DlNcTvH_.js} +1 -1
- package/dist/{manifest-C0v6IEWk.d.ts → manifest-DoZXpoG_.d.ts} +6 -6
- package/dist/{manifest-DofXV9lE.d.ts → manifest-Dp9ZtoFo.d.ts} +7 -7
- package/dist/{manifest-DLSzZMXM.d.ts → manifest-DpFy7git.d.ts} +8 -8
- package/dist/{manifest-DVZmJvrE.d.ts → manifest-DsINyvTh.d.ts} +6 -6
- package/dist/{manifest-C-pVDUC6.d.ts → manifest-DucB6ix_.d.ts} +4 -4
- package/dist/{manifest-CKCaFg8y.d.ts → manifest-DwBFwxFo.d.ts} +6 -6
- package/dist/{manifest-Cj6lOdW6.js → manifest-DwZwlGaz.js} +1 -1
- package/dist/{manifest-C8PUzse6.d.ts → manifest-FVkgBS-K.d.ts} +4 -4
- package/dist/{manifest-eUUJnoB5.d.ts → manifest-N5wuAzq4.d.ts} +8 -8
- package/dist/{manifest-BvzmDxod.d.ts → manifest-NkuGL5p2.d.ts} +4 -4
- package/dist/{manifest-DKnWcgse.d.ts → manifest-NuYSYeQT.d.ts} +5 -5
- package/dist/{manifest-D5aZyD1b.js → manifest-OxHBbWrs.js} +1 -1
- package/dist/{manifest-BEw6nEKW.d.ts → manifest-TG95ksdH.d.ts} +11 -11
- package/dist/{manifest-BMcuCUre.d.ts → manifest-YtnGn7F9.d.ts} +2 -2
- package/dist/{manifest-B7lSTuVC.d.ts → manifest-_zu02ImE.d.ts} +5 -5
- package/dist/{manifest-DCkeNzPW.d.ts → manifest-cJ3rQXtl.d.ts} +11 -11
- package/dist/{manifest-Fapf4NdA.d.ts → manifest-dOFbx7Iv.d.ts} +2 -2
- package/dist/{manifest-wbs2VkcB.d.ts → manifest-eaGk_4rq.d.ts} +6 -6
- package/dist/{manifest-B94f27dU.js → manifest-icEpY96-.js} +1 -1
- package/dist/{manifest-BYv5BqtY.d.ts → manifest-tP62uJrR.d.ts} +4 -4
- package/dist/{manifest-BgmY9fuz.d.ts → manifest-ubm80xCr.d.ts} +6 -6
- package/dist/{manifest-D0eItVsP.d.ts → manifest-wXk0ZLhO.d.ts} +4 -4
- package/dist/{manifest-Djy3wcSo.js → manifest-waO9DHVc.js} +1 -0
- package/dist/{manifest-DBfQe19Z.d.ts → manifest-x_fSttX7.d.ts} +4 -4
- package/dist/{manifest-C5LxShda.d.ts → manifest-xlpYSpLJ.d.ts} +4 -4
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.d.ts +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/{mcp-aMq1fkoe.js → mcp-CULIbS-b.js} +5 -5
- package/dist/{medications-Cxvrfid3.d.ts → medications-3mcGOelG.d.ts} +5 -5
- package/dist/{messaging-C-PJ2LBY.d.ts → messaging-DasXvQj7.d.ts} +4 -4
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +20 -20
- package/dist/next/index.js +15 -10
- package/dist/next/offline/index.d.ts +1 -1
- package/dist/next/proxy/index.d.ts +5 -5
- package/dist/next/proxy/index.js +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/{observations-BBQZWl54.d.ts → observations-8pt9Lflf.d.ts} +3 -3
- package/dist/{operations-nnC3pvwn.d.ts → operations-D4zxY2TL.d.ts} +1 -1
- package/dist/{orders-ePaBZDl9.d.ts → orders-BCR5H9Tz.d.ts} +3 -3
- package/dist/{orders-reads-CWCAZHgZ.js → orders-reads-BGMu5-Ug.js} +2 -2
- package/dist/orpc/index.d.ts +8 -8
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +2 -2
- package/dist/otel/index.js +5 -5
- package/dist/{outbox-EXHTONFS.d.ts → outbox-DNyzkxyX.d.ts} +4 -4
- package/dist/{payroll-export-CIVukFDd.js → payroll-export-kpVJj_Gj.js} +13 -13
- package/dist/{permissions-ZLtxCurD.d.ts → permissions-BkUcXwtV.d.ts} +1 -1
- package/dist/{permissions-model-CYfIupG0.js → permissions-model-B7E_f7GV.js} +13 -1
- package/dist/{pool-tXlDkx18.d.ts → pool-Dzeln5IJ.d.ts} +3 -3
- package/dist/{ports-DfDzwMCR.js → ports-BBowiGiD.js} +4 -4
- package/dist/{ports-CfVACwW_.d.ts → ports-DD-pDkHu.d.ts} +1 -1
- package/dist/postgres/index.d.ts +4 -4
- package/dist/{postgrest-gG_GIWFi.d.ts → postgrest-CgAxVpiW.d.ts} +1 -1
- package/dist/powersync/index.d.ts +9 -9
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +1 -1
- package/dist/{preset-HzYIrxUS.js → preset-ZZ4H2s92.js} +5 -5
- package/dist/{preview-BoJkQw2E.d.ts → preview-GUvVjUxf.d.ts} +6 -6
- package/dist/{project-DI09JnXz.js → project-wJ3jYipI.js} +3 -3
- package/dist/{provider-r2RjlARm.d.ts → provider-DSokOaUo.d.ts} +1 -1
- package/dist/{push-token-Rv1CxW_N.d.ts → push-token-C8MoiM7E.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/rate-limit/index.d.ts +1 -1
- package/dist/{rate-limit-CxN-zbLC.d.ts → rate-limit-Ddv4xmsH.d.ts} +5 -5
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/native/index.js +3 -3
- package/dist/react/server.d.ts +8 -8
- package/dist/react/server.js +2 -2
- package/dist/react/session.d.ts +2 -2
- package/dist/{react-CvgCNgo-.js → react-hb2gg5UV.js} +2 -2
- package/dist/react-router/index.d.ts +6 -6
- package/dist/react-router/index.js +4 -4
- package/dist/{read-set-BptYceHc.js → read-set-DfScfSsf.js} +3 -2
- package/dist/realtime/index.d.ts +6 -6
- package/dist/realtime/index.js +2 -2
- package/dist/{record-form-BHUYs5ju.d.ts → record-form-CbFN-AdD.d.ts} +1 -1
- package/dist/{recordings-Bdf1OnQS.d.ts → recordings-C1BOyHYu.d.ts} +1 -1
- package/dist/records/index.d.ts +9 -9
- package/dist/{refusal-DHSRBaS6.d.ts → refusal-6HGi0oY9.d.ts} +3 -3
- package/dist/{resolve-oJsHQ9Ib.js → resolve-DP8w5Nl0.js} +2 -2
- package/dist/{resolve-Chhtdk4M.d.ts → resolve-Pn7KvQ23.d.ts} +1 -1
- package/dist/{resource-BfkM1JZ0.d.ts → resource-DFEtCFTy.d.ts} +1 -1
- package/dist/{resource-execute-Bb-zKYUc.d.ts → resource-execute-BQx_Pmeu.d.ts} +2 -2
- package/dist/{resource-types-C8kdoZ-J.d.ts → resource-types-lBguZ_8J.d.ts} +4 -4
- package/dist/{resources-B9dfA1jH.d.ts → resources-CWfoS1er.d.ts} +2 -2
- package/dist/{respond-DNcBzi_Y.d.ts → respond-vxhdVf23.d.ts} +1 -1
- package/dist/{runs-CTo9cjAz.js → runs-bv1S-1JM.js} +2 -2
- package/dist/{sales-D_yZoFUU.js → sales-Br66jZAO.js} +3 -3
- package/dist/{sales-lines-CX-xpQQW.d.ts → sales-lines-DWwWHLJj.d.ts} +1 -1
- package/dist/{sandboxes-vO9Yb0Bd.d.ts → sandboxes-BjvFi1Wh.d.ts} +1 -1
- package/dist/{scores-C8fy3RXF.d.ts → scores-LZaJOHkr.d.ts} +5 -5
- package/dist/server/account/index.d.ts +3 -3
- package/dist/server/accounts/index.d.ts +6 -6
- package/dist/server/accounts/index.js +1 -1
- package/dist/server/index.d.ts +27 -27
- package/dist/server/index.js +12 -12
- package/dist/{server-Bgugpk3A.js → server-af58-Q51.js} +10 -6
- package/dist/{server-types-C8zErBy9.d.ts → server-types-By5oBsDZ.d.ts} +18 -12
- package/dist/{session-DRn_URq0.d.ts → session-D5IrTUwv.d.ts} +6 -6
- package/dist/{session-status-CywvasN_.d.ts → session-status-m5VN1pW1.d.ts} +2 -2
- package/dist/{sessions-Dedk1ubX.js → sessions-w6xril_l.js} +1 -1
- package/dist/{settings-CMcdSyT4.d.ts → settings-C_zEVfCy.d.ts} +2 -2
- package/dist/{sign-in-DgvuMl59.js → sign-in-CxnkReKM.js} +2 -2
- package/dist/{sign-in-BwI5DHy5.js → sign-in-DklEPfDI.js} +2 -2
- package/dist/{sign-in-R_Ou2FMR.d.ts → sign-in-Dni-tX9B.d.ts} +1 -1
- package/dist/{sign-in-Dp-X2YXo.d.ts → sign-in-TNX4Pj9E.d.ts} +18 -18
- package/dist/{signatures-D9_TUapq.js → signatures-BZ10RZbf.js} +1 -1
- package/dist/{signers-BnUPoU0u.d.ts → signers-DB0S8YhO.d.ts} +4 -4
- package/dist/{signing-keys-DulqHr3n.d.ts → signing-keys-BNwqmUlK.d.ts} +2 -2
- package/dist/{signing-keys-BxAcK3ve.js → signing-keys-Cr08qRGc.js} +1 -1
- package/dist/solid/index.d.ts +11 -11
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +4 -4
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-BqOBYRvI.js → sql-CP1j2jfo.js} +596 -227
- package/dist/sqlite/index.d.ts +3 -3
- package/dist/sqlite/index.js +1 -1
- package/dist/{sso-DcxycaaP.d.ts → sso-CK6_NPWp.d.ts} +3 -3
- package/dist/ssr/index.d.ts +4 -4
- package/dist/ssr/index.js +1 -1
- package/dist/storage/client/index.d.ts +2 -2
- package/dist/storage/client/index.js +1 -1
- 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/streams/resumable/index.d.ts +1 -1
- package/dist/{subject-readers-61Xd5vAQ.js → subject-readers-qnt9P3Tf.js} +2 -2
- package/dist/{subject-readers-DNPGHMEg.d.ts → subject-readers-zsCxIZ_1.d.ts} +5 -5
- package/dist/{subjects-Bb5-VIcs.d.ts → subjects-Bnhj8AsZ.d.ts} +9 -9
- package/dist/{support-N97YzVgD.d.ts → support-8jVUURe-.d.ts} +4 -4
- package/dist/{support--EPft3tt.js → support-B9mOOkAy.js} +1 -1
- package/dist/{support-view-D0VmaQVg.d.ts → support-view-CfyHFSq4.d.ts} +1 -1
- package/dist/{suspend-account-DcQFTDGI.d.ts → suspend-account-Bi-ebizL.d.ts} +2 -2
- package/dist/svelte/index.d.ts +10 -10
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.d.ts +7 -7
- package/dist/sveltekit/index.js +4 -4
- package/dist/{tags-Bh4zXrnl.d.ts → tags-Csj8VfA7.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 +4 -4
- package/dist/{tax-sql-DrR78UUW.js → tax-sql-sSJTtYtF.js} +1 -1
- package/dist/{tenant-BQaG8Hma.d.ts → tenant-CVRFoaDM.d.ts} +1 -1
- package/dist/testing/index.d.ts +36 -36
- package/dist/testing/index.js +38 -19
- package/dist/{timeline-D7T-qrKN.d.ts → timeline-T1qkzVdR.d.ts} +5 -5
- package/dist/{topic-CTqz7oYG.js → topic-CZ8FVS1o.js} +1 -1
- package/dist/{topic-R7kIJ_xI.d.ts → topic-DytYYyP3.d.ts} +16 -5
- package/dist/{types-BQaFrgFr.d.ts → types-BEuYPFta.d.ts} +4 -4
- package/dist/{types-BIpCfsXW.d.ts → types-BcBKymdQ.d.ts} +1 -1
- package/dist/{types-BME_OjVm.d.ts → types-CID74uQG.d.ts} +5 -5
- package/dist/{types-arsKcxoV.d.ts → types-CNE-ybHL.d.ts} +3 -3
- package/dist/{types-D9qT7VIV.d.ts → types-CVq6-P5G.d.ts} +7 -7
- package/dist/{types-BE6BvLv2.d.ts → types-Cge5o3f5.d.ts} +2 -2
- package/dist/{types-BFNVzP1M.d.ts → types-Cikitezb.d.ts} +5 -5
- package/dist/{types-BJ4cg51a.d.ts → types-Dizn1liT.d.ts} +12 -2
- package/dist/{undo-B_8VpTy2.d.ts → undo-CRejYq21.d.ts} +2 -2
- package/dist/{usage-BBR7z7ra.d.ts → usage-CrTrlxoi.d.ts} +4 -4
- package/dist/{vault-B2AI88Jz.d.ts → vault-Dyy9I0IE.d.ts} +2 -2
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +2 -2
- package/dist/verifiable-credentials/index.js +2 -2
- package/dist/{verify-yUHyGq0u.js → verify-Bu2FKS9o.js} +1 -1
- package/dist/{verify-BfcOHiUP.d.ts → verify-dg8Q3iRY.d.ts} +2 -2
- package/dist/{version-CkYT3KbT.js → version-B0uw5rOF.js} +1 -1
- package/dist/{view-DKo-Koiu.d.ts → view-DwTCw_jZ.d.ts} +1 -1
- package/dist/vue/index.d.ts +11 -11
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-D18gT7-K.d.ts → watch-topic-DT31uYqF.d.ts} +1 -1
- package/dist/{webhook-inbox-Bn-dV-vF.js → webhook-inbox-DIPjKka6.js} +1 -1
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/webmcp/index.js +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/index.js +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-c025kSHf.js → workflow-sdk-IPsOMGEC.js} +1 -1
- package/dist/{workflow-sdk-B_yeWl8N.d.ts → workflow-sdk-Js7efMDi.d.ts} +3 -3
- package/dist/{workflows-DR6nJ9vq.d.ts → workflows-CUcK8Axx.d.ts} +4 -4
- package/dist/yjs/index.d.ts +2 -2
- package/dist/yjs/index.js +2 -2
- package/package.json +3 -1
- package/schemas/config-v1.json +27 -0
- package/schemas/error-codes.json +3 -3
- package/skills/better-supabase/SKILL.md +2 -2
- package/skills/better-supabase/references/ui-recipes.md +2 -2
- package/dist/cli/add-C04PIE9H.js +0 -1
- package/dist/cli/powersync-DnKUA1tu.js +0 -1
- package/dist/cli/round-trips-n_Dk1iUI.js +0 -54
- package/dist/cli/seed-CucH5loT.js +0 -1
package/dist/cli/index.d.ts
CHANGED
|
@@ -864,5 +864,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
864
864
|
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
|
|
865
865
|
readonly legacyTables?: boolean;
|
|
866
866
|
}): Promise<ResolvedConfig>;
|
|
867
|
-
export declare const VERSION = "0.
|
|
867
|
+
export declare const VERSION = "0.61.0";
|
|
868
868
|
export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CliValues, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
|
package/dist/cli/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as run, n as createCli, r as help, t as commandNames } from "./run-
|
|
1
|
+
import { i as run, n as createCli, r as help, t as commandNames } from "./run-DEPt1rAn.js";
|
|
2
2
|
import { a as list, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
3
3
|
import { n as CliError, t as CLI_ERRORS_URL } from "./errors-B7i-VGxk.js";
|
|
4
|
-
import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-
|
|
5
|
-
import { n as runGen } from "./run-
|
|
6
|
-
import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-
|
|
7
|
-
import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-
|
|
8
|
-
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-
|
|
9
|
-
import { s as loadConfig } from "./config-
|
|
10
|
-
import { t as VERSION } from "./version-
|
|
4
|
+
import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-Bfh2EtMO.js";
|
|
5
|
+
import { n as runGen } from "./run-CfWFddfH.js";
|
|
6
|
+
import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-Bt7NcWXk.js";
|
|
7
|
+
import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-OhupwGNp.js";
|
|
8
|
+
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-Bt6UAek-.js";
|
|
9
|
+
import { s as loadConfig } from "./config-DX58lDf7.js";
|
|
10
|
+
import { t as VERSION } from "./version-CHVFvh95.js";
|
|
11
11
|
// src/cli/introspect/from-catalog.ts
|
|
12
12
|
/**
|
|
13
13
|
* Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as findConfig, s as loadConfig } from "./config-
|
|
2
|
-
import { r as contentMapperFiles } from "./content-mapper-
|
|
3
|
-
import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-
|
|
1
|
+
import { a as findConfig, s as loadConfig } from "./config-DX58lDf7.js";
|
|
2
|
+
import { r as contentMapperFiles } from "./content-mapper-TATvvrmb.js";
|
|
3
|
+
import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-ucxskHiv.js";
|
|
4
4
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
5
5
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
6
6
|
import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
|
|
7
7
|
import { r as readIfExists } from "./io-CngfGyMA.js";
|
|
8
|
-
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-
|
|
9
|
-
import { c as enablePgDelta, t as syncModules } from "./sync-
|
|
10
|
-
import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-
|
|
11
|
-
import { a as toCatalog } from "./source-
|
|
12
|
-
import { c as TYPEGEN_VERSION } from "./cache-
|
|
8
|
+
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-DYgRA8-5.js";
|
|
9
|
+
import { c as enablePgDelta, t as syncModules } from "./sync-DFAkNjw_.js";
|
|
10
|
+
import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-Bt7NcWXk.js";
|
|
11
|
+
import { a as toCatalog } from "./source-Bt6UAek-.js";
|
|
12
|
+
import { c as TYPEGEN_VERSION } from "./cache-CNa3fjK-.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
|
|
14
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
14
|
+
import { t as appTablePlan } from "./app-table-files-FcgTfOf9.js";
|
|
15
15
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
import { join, posix, resolve } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-B7i-VGxk.js";
|
|
2
|
-
import "./source-
|
|
3
|
-
import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-
|
|
2
|
+
import "./source-Bt6UAek-.js";
|
|
3
|
+
import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-BrAtQXmC.js";
|
|
4
4
|
// src/cli/doctor/reserved-roles.ts
|
|
5
5
|
/**
|
|
6
6
|
* Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
2
|
-
import { a as errorDocument, i as run } from "./run-
|
|
2
|
+
import { a as errorDocument, i as run } from "./run-DEPt1rAn.js";
|
|
3
3
|
import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-CQ831uY0.js";
|
|
4
4
|
import { n as consentDigest } from "./agent-BlYLJPzM.js";
|
|
5
5
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
6
|
-
import { t as VERSION } from "./version-
|
|
6
|
+
import { t as VERSION } from "./version-CHVFvh95.js";
|
|
7
7
|
import { createInterface } from "node:readline";
|
|
8
8
|
import { answerLine } from "better-supabase/mcp";
|
|
9
9
|
// src/cli/mcp/server.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { t as VERSION } from "./version-CHVFvh95.js";
|
|
3
3
|
import { n as cacheEnabled, r as cacheRoot } from "./store-DP-nmqBt.js";
|
|
4
4
|
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
|
|
2
2
|
import { i as readStdin } from "./io-CngfGyMA.js";
|
|
3
|
-
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-
|
|
4
|
-
import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-
|
|
5
|
-
import { c as metaPaths } from "./emit-
|
|
6
|
-
import { n as render } from "./render-
|
|
3
|
+
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-CfWFddfH.js";
|
|
4
|
+
import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-Bt7NcWXk.js";
|
|
5
|
+
import { c as metaPaths } from "./emit-OhupwGNp.js";
|
|
6
|
+
import { n as render } from "./render-Bfh2EtMO.js";
|
|
7
7
|
import { basename, join, relative, resolve, sep } from "node:path";
|
|
8
8
|
import { readFile } from "node:fs/promises";
|
|
9
9
|
import { jsonSchema } from "better-supabase/generators/json-schema";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
2
2
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
|
|
3
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
3
|
+
import { t as appTablePlan } from "./app-table-files-FcgTfOf9.js";
|
|
4
4
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
5
5
|
// src/cli/commands/migrate.ts
|
|
6
6
|
const MIGRATE_ARGS = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as INTEGRATIONS } from "./config-
|
|
2
|
-
import { l as schemaModulePath } from "./emit-
|
|
1
|
+
import { h as INTEGRATIONS } from "./config-DX58lDf7.js";
|
|
2
|
+
import { l as schemaModulePath } from "./emit-OhupwGNp.js";
|
|
3
3
|
import { dirname, join, posix } from "node:path";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
5
|
import { splitStatements } from "better-supabase/sql";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
|
|
2
|
-
import { i as migrationsDir, l as sqlPlan } from "./sql-layout-
|
|
2
|
+
import { i as migrationsDir, l as sqlPlan } from "./sql-layout-Bt7NcWXk.js";
|
|
3
3
|
import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
4
4
|
import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
1
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
|
|
2
2
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
|
|
3
3
|
import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
|
|
5
5
|
import { t as connect } from "./db-B_xr3ZvK.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
7
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
6
|
+
import { n as ident } from "./live-DmvnAvGV.js";
|
|
7
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
|
|
8
8
|
// src/cli/commands/partition.ts
|
|
9
9
|
const DEFAULT_BATCH = 5e4;
|
|
10
10
|
const PROCEDURE = "convert_audit_log_to_partitioned";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as powersyncStreamsCommand } from "./powersync-r6iL7zEo.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
2
2
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
|
|
3
3
|
import { t as projectionsOf } from "./projection-DlVB5YL-.js";
|
|
4
|
-
import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-
|
|
4
|
+
import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-Bt7NcWXk.js";
|
|
5
5
|
import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
|
|
6
|
-
import { r as layoutFor } from "./providers-
|
|
7
|
-
import { n as renderBlocksCached } from "./render-cache-
|
|
8
|
-
import { d as subjectFromTag } from "./config-
|
|
6
|
+
import { r as layoutFor } from "./providers-DhMSptuy.js";
|
|
7
|
+
import { n as renderBlocksCached } from "./render-cache-BYkVt264.js";
|
|
8
|
+
import { d as subjectFromTag } from "./config-DX58lDf7.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { join, resolve } from "node:path";
|
|
11
11
|
import { readFile, readdir } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
2
|
-
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
3
|
-
import { n as layout } from "./providers-
|
|
2
|
+
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-CRsIlrig.js";
|
|
3
|
+
import { n as layout } from "./providers-DhMSptuy.js";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as entitlementsMode, o as moduleKeyProblems, t as accessProviderMode } from "./authorization-CNWhpdKb.js";
|
|
2
2
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
3
3
|
import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
|
|
4
|
-
import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-
|
|
4
|
+
import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-Bt7NcWXk.js";
|
|
5
5
|
import { moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
|
|
6
6
|
import { FormerPermissionKeyError } from "better-supabase/config";
|
|
7
7
|
// src/cli/sql/providers.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
1
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DX58lDf7.js";
|
|
2
2
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
|
|
3
3
|
import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
|
|
5
5
|
import { t as connect } from "./db-B_xr3ZvK.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
7
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
6
|
+
import { n as ident } from "./live-DmvnAvGV.js";
|
|
7
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-D5BSEgUG.js";
|
|
8
8
|
// src/cli/commands/prune-workflows.ts
|
|
9
9
|
const TERMINAL = [
|
|
10
10
|
"completed",
|
|
@@ -2,15 +2,15 @@ import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
|
|
|
2
2
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
3
3
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-NnXnawki.js";
|
|
4
4
|
import { r as readIfExists, t as display } from "./io-CngfGyMA.js";
|
|
5
|
-
import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-
|
|
5
|
+
import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-ucxskHiv.js";
|
|
6
6
|
import { t as detectProject } from "./detect-CHR-SAmE.js";
|
|
7
|
-
import { l as sqlPlan } from "./sql-layout-
|
|
8
|
-
import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-
|
|
7
|
+
import { l as sqlPlan } from "./sql-layout-Bt7NcWXk.js";
|
|
8
|
+
import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-CN5jkEFM.js";
|
|
9
9
|
import { t as SQL_ARGS } from "./args-CS_64_tg.js";
|
|
10
|
-
import { r as layoutFor } from "./providers-
|
|
11
|
-
import { n as guardedRemoval } from "./sync-
|
|
10
|
+
import { r as layoutFor } from "./providers-DhMSptuy.js";
|
|
11
|
+
import { n as guardedRemoval } from "./sync-DFAkNjw_.js";
|
|
12
12
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
13
|
-
import { t as blockNames } from "./blocks-
|
|
13
|
+
import { t as blockNames } from "./blocks-iSEepN2Y.js";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { resolve } from "node:path";
|
|
16
16
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as importPath } from "./io-CngfGyMA.js";
|
|
2
2
|
import { n as cacheEnabled, t as CACHE_DIR } from "./store-DP-nmqBt.js";
|
|
3
3
|
import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
|
|
4
|
-
import { o as typesModuleKey, r as cachedTypesModule, s as writeAtomic, t as cachedDatabaseTypes } from "./cache-
|
|
5
|
-
import { t as VERSION } from "./version-
|
|
6
|
-
import { M as generateDatabaseTypes, N as oxfmtInstalled, n as appSchemaTexts, t as appColumnsFor, x as apiTypeSchemas } from "./sql-layout-
|
|
4
|
+
import { o as typesModuleKey, r as cachedTypesModule, s as writeAtomic, t as cachedDatabaseTypes } from "./cache-CNa3fjK-.js";
|
|
5
|
+
import { t as VERSION } from "./version-CHVFvh95.js";
|
|
6
|
+
import { M as generateDatabaseTypes, N as oxfmtInstalled, n as appSchemaTexts, t as appColumnsFor, x as apiTypeSchemas } from "./sql-layout-Bt7NcWXk.js";
|
|
7
7
|
import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { _ as prop, a as emitModule, b as singular, c as metaPaths, d as buildModel$1, f as generatorModel, g as pascal$2, h as identifier, i as emitMeta, l as schemaModulePath, n as emitFunctions, o as emitRuntime, r as emitFunctionsTypes, s as emitSchemaModule, t as GENERATED_HEADER, u as valueLists, v as q, x as applyCasing, y as runtimeSubpath } from "./emit-
|
|
8
|
+
import { _ as prop, a as emitModule, b as singular, c as metaPaths, d as buildModel$1, f as generatorModel, g as pascal$2, h as identifier, i as emitMeta, l as schemaModulePath, n as emitFunctions, o as emitRuntime, r as emitFunctionsTypes, s as emitSchemaModule, t as GENERATED_HEADER, u as valueLists, v as q, x as applyCasing, y as runtimeSubpath } from "./emit-OhupwGNp.js";
|
|
9
9
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
10
10
|
import { t as projectionsOf } from "./projection-DlVB5YL-.js";
|
|
11
|
-
import { u as withTableTags } from "./config-
|
|
11
|
+
import { u as withTableTags } from "./config-DX58lDf7.js";
|
|
12
12
|
import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
13
13
|
import { readFile } from "node:fs/promises";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { t as VERSION } from "./version-CHVFvh95.js";
|
|
3
3
|
import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
|
|
2
|
+
// src/cli/doctor/source-scan.ts
|
|
3
|
+
/**
|
|
4
|
+
* Source scanning shared by the code checks: brackets and statements in code
|
|
5
|
+
* with strings and comments blanked, and line-independent finding targets.
|
|
6
|
+
*/
|
|
7
|
+
const OPEN = /* @__PURE__ */ new Set([
|
|
8
|
+
"(",
|
|
9
|
+
"[",
|
|
10
|
+
"{"
|
|
11
|
+
]);
|
|
12
|
+
const CLOSE = /* @__PURE__ */ new Set([
|
|
13
|
+
")",
|
|
14
|
+
"]",
|
|
15
|
+
"}"
|
|
16
|
+
]);
|
|
17
|
+
/** `text` with strings, template literals and comments blanked, offsets kept. */
|
|
18
|
+
function codeOnly(text) {
|
|
19
|
+
let out = "";
|
|
20
|
+
let last = 0;
|
|
21
|
+
const blank = (part) => part.replaceAll(/[^\n]/g, " ");
|
|
22
|
+
for (const [start, end] of codeRanges(text)) {
|
|
23
|
+
out += blank(text.slice(last, start)) + text.slice(start, end);
|
|
24
|
+
last = end;
|
|
25
|
+
}
|
|
26
|
+
return out + blank(text.slice(last));
|
|
27
|
+
}
|
|
28
|
+
/** The index of the bracket that closes the one at `open`. */
|
|
29
|
+
function closeOf(code, open) {
|
|
30
|
+
let depth = 0;
|
|
31
|
+
for (let index = open; index < code.length; index += 1) {
|
|
32
|
+
const char = code.charAt(index);
|
|
33
|
+
if (OPEN.has(char)) depth += 1;
|
|
34
|
+
else if (CLOSE.has(char)) {
|
|
35
|
+
depth -= 1;
|
|
36
|
+
if (depth === 0) return index;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return code.length;
|
|
40
|
+
}
|
|
41
|
+
/** The end of the statement or expression that starts at `from`. */
|
|
42
|
+
function statementEnd(code, from) {
|
|
43
|
+
let depth = 0;
|
|
44
|
+
for (let index = from; index < code.length; index += 1) {
|
|
45
|
+
const char = code.charAt(index);
|
|
46
|
+
if (OPEN.has(char)) depth += 1;
|
|
47
|
+
else if (CLOSE.has(char)) {
|
|
48
|
+
if (depth === 0) return index;
|
|
49
|
+
depth -= 1;
|
|
50
|
+
} else if ((char === ";" || char === ",") && depth === 0) return index;
|
|
51
|
+
}
|
|
52
|
+
return code.length;
|
|
53
|
+
}
|
|
54
|
+
const WRAPPED_CALL = /(?<![\w$.])([\w$]+)\s*=\s*(?:await\s+)?[\w$.]+\s*(?:<[^>()]*>)?\s*\(/g;
|
|
55
|
+
const FUNCTION_HEAD = /(?<![\w$.])(?:function\s*\*?\s*([\w$]+)\s*(?:<[^>()]*>)?\s*\(|([\w$]+)\s*(?:[:=]\s*(?:[\w$.]+\s*(?:<[^>()]*>)?\s*\(\s*)*(?:async\s+)?(?:function\b[^(]*\(|(?:<[^>()]*>)?\s*\(|[\w$]+\s*=>)|(?:<[^>()]*>)?\s*\())/g;
|
|
56
|
+
const NOT_A_FUNCTION = /* @__PURE__ */ new Set([
|
|
57
|
+
"if",
|
|
58
|
+
"for",
|
|
59
|
+
"while",
|
|
60
|
+
"switch",
|
|
61
|
+
"catch",
|
|
62
|
+
"return",
|
|
63
|
+
"await",
|
|
64
|
+
"typeof",
|
|
65
|
+
"new",
|
|
66
|
+
"super",
|
|
67
|
+
"function"
|
|
68
|
+
]);
|
|
69
|
+
/**
|
|
70
|
+
* Where the return type annotation that may start at `from` ends: at the body
|
|
71
|
+
* `{` or the `=>`. `Promise<{ a: string }>` and `{ a: string }` are types.
|
|
72
|
+
*/
|
|
73
|
+
function returnTypeEnd(code, from) {
|
|
74
|
+
let index = from;
|
|
75
|
+
while (/\s/.test(code.charAt(index))) index += 1;
|
|
76
|
+
if (code.charAt(index) !== ":") return index;
|
|
77
|
+
let angle = 0;
|
|
78
|
+
let expectType = true;
|
|
79
|
+
for (index += 1; index < code.length; index += 1) {
|
|
80
|
+
const char = code.charAt(index);
|
|
81
|
+
if (/\s/.test(char)) continue;
|
|
82
|
+
if (char === "=" && code.charAt(index + 1) === ">") {
|
|
83
|
+
if (angle === 0 && !expectType) return index;
|
|
84
|
+
index += 1;
|
|
85
|
+
expectType = true;
|
|
86
|
+
} else if (char === "<") {
|
|
87
|
+
angle += 1;
|
|
88
|
+
expectType = true;
|
|
89
|
+
} else if (char === ">") {
|
|
90
|
+
angle -= 1;
|
|
91
|
+
expectType = false;
|
|
92
|
+
} else if (char === "(" || char === "[") {
|
|
93
|
+
index = closeOf(code, index);
|
|
94
|
+
expectType = false;
|
|
95
|
+
} else if (char === "{") {
|
|
96
|
+
if (angle === 0 && !expectType) return index;
|
|
97
|
+
index = closeOf(code, index);
|
|
98
|
+
expectType = false;
|
|
99
|
+
} else if (char === ";" || char === "=" || char === ")" || char === "}") return -1;
|
|
100
|
+
else expectType = "|&,:".includes(char);
|
|
101
|
+
}
|
|
102
|
+
return -1;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Functions, methods and arrow functions bound to a name, with their bodies:
|
|
106
|
+
* `function load(`, `const load = async (`, `load: (`, `load() {`, `const load
|
|
107
|
+
* = cache(async (`.
|
|
108
|
+
*/
|
|
109
|
+
function functionsIn(code) {
|
|
110
|
+
const functions = [];
|
|
111
|
+
for (const match of code.matchAll(FUNCTION_HEAD)) {
|
|
112
|
+
const name = match[1] ?? match[2];
|
|
113
|
+
if (NOT_A_FUNCTION.has(name)) continue;
|
|
114
|
+
const head = match[0];
|
|
115
|
+
const last = match.index + head.length - 1;
|
|
116
|
+
const arrowParam = !head.endsWith("(");
|
|
117
|
+
const declared = match[1] !== void 0 || /function\b/.test(head);
|
|
118
|
+
const method = !declared && !/[:=]/.test(head);
|
|
119
|
+
const afterParams = arrowParam ? last + 1 : closeOf(code, last) + 1;
|
|
120
|
+
const typeEnd = arrowParam ? afterParams : returnTypeEnd(code, afterParams);
|
|
121
|
+
if (typeEnd === -1) continue;
|
|
122
|
+
let start;
|
|
123
|
+
if (arrowParam) start = typeEnd;
|
|
124
|
+
else if (declared || method) {
|
|
125
|
+
if (code.charAt(typeEnd) !== "{") continue;
|
|
126
|
+
start = typeEnd;
|
|
127
|
+
} else {
|
|
128
|
+
if (!code.startsWith("=>", typeEnd)) continue;
|
|
129
|
+
start = typeEnd + 2;
|
|
130
|
+
}
|
|
131
|
+
const open = /^\s*\{/.test(code.slice(start, start + 200)) ? code.indexOf("{", start) : -1;
|
|
132
|
+
const end = open === -1 ? statementEnd(code, start) : closeOf(code, open);
|
|
133
|
+
functions.push({
|
|
134
|
+
name,
|
|
135
|
+
start,
|
|
136
|
+
end
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
for (const match of code.matchAll(WRAPPED_CALL)) {
|
|
140
|
+
const open = match.index + match[0].length - 1;
|
|
141
|
+
functions.push({
|
|
142
|
+
name: match[1],
|
|
143
|
+
start: open,
|
|
144
|
+
end: closeOf(code, open),
|
|
145
|
+
wrapped: true
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return functions;
|
|
149
|
+
}
|
|
150
|
+
/** The innermost named function around `at`, or `<module>`. */
|
|
151
|
+
function functionAt(functions, at) {
|
|
152
|
+
const inside = functions.filter((candidate) => candidate.start <= at && at < candidate.end);
|
|
153
|
+
const named = inside.filter((candidate) => candidate.wrapped !== true);
|
|
154
|
+
const size = (item) => item.end - item.start;
|
|
155
|
+
return (named.length > 0 ? named.reduce((a, b) => size(b) < size(a) ? b : a) : inside.reduce((a, b) => a === void 0 || size(b) > size(a) ? b : a, void 0))?.name ?? "<module>";
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Line-independent targets: `path#function:callee`, with `#2`, `#3` for the
|
|
159
|
+
* second and later call of the same callee in one function. An edit elsewhere
|
|
160
|
+
* in the file keeps them.
|
|
161
|
+
*/
|
|
162
|
+
function targetKeys(path, functions, calls) {
|
|
163
|
+
const seen = /* @__PURE__ */ new Map();
|
|
164
|
+
const keys = /* @__PURE__ */ new Map();
|
|
165
|
+
for (const call of calls.toSorted((a, b) => a.start - b.start)) {
|
|
166
|
+
const key = `${path}#${functionAt(functions, call.start)}:${call.callee}`;
|
|
167
|
+
const count = (seen.get(key) ?? 0) + 1;
|
|
168
|
+
seen.set(key, count);
|
|
169
|
+
keys.set(call.start, count === 1 ? key : `${key}#${String(count)}`);
|
|
170
|
+
}
|
|
171
|
+
return keys;
|
|
172
|
+
}
|
|
173
|
+
// src/cli/doctor/round-trips.ts
|
|
174
|
+
const PROMISE_ALL = /\bPromise\.all\s*\(\s*\[/g;
|
|
175
|
+
/**
|
|
176
|
+
* Parts of the array literal that starts after `open`, split at top-level
|
|
177
|
+
* commas.
|
|
178
|
+
*/
|
|
179
|
+
function arrayEntries(text, open) {
|
|
180
|
+
const entries = [];
|
|
181
|
+
let depth = 0;
|
|
182
|
+
let start = open;
|
|
183
|
+
for (let index = open; index < text.length; index += 1) {
|
|
184
|
+
const char = text.charAt(index);
|
|
185
|
+
if (char === "(" || char === "[" || char === "{") depth += 1;
|
|
186
|
+
else if (char === ")" || char === "}") depth -= 1;
|
|
187
|
+
else if (char === "]") {
|
|
188
|
+
if (depth === 0) {
|
|
189
|
+
entries.push(text.slice(start, index));
|
|
190
|
+
return entries;
|
|
191
|
+
}
|
|
192
|
+
depth -= 1;
|
|
193
|
+
} else if (char === "," && depth === 0) {
|
|
194
|
+
entries.push(text.slice(start, index));
|
|
195
|
+
start = index + 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/** An entry that awaits the database: a repository, a block client or a call. */
|
|
200
|
+
const DATABASE_READ = /\b(?:db|ctx\.db|bsb\.db\(\)|blocks\.\w+)\b[\s\S]*?\(|\$rpc\s*\(/;
|
|
201
|
+
function parallelReads(context) {
|
|
202
|
+
const findings = [];
|
|
203
|
+
for (const file of context.sources) {
|
|
204
|
+
const waves = [];
|
|
205
|
+
for (const match of file.text.matchAll(PROMISE_ALL)) {
|
|
206
|
+
const open = match.index + match[0].length;
|
|
207
|
+
const reads = arrayEntries(file.text, open)?.filter((entry) => DATABASE_READ.test(entry));
|
|
208
|
+
if (reads === void 0 || reads.length < context.config.doctor.parallelReads) continue;
|
|
209
|
+
waves.push({
|
|
210
|
+
start: match.index,
|
|
211
|
+
callee: "Promise.all",
|
|
212
|
+
reads: reads.length
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
if (waves.length === 0) continue;
|
|
216
|
+
const keys = targetKeys(file.path, functionsIn(codeOnly(file.text)), waves);
|
|
217
|
+
for (const wave of waves) {
|
|
218
|
+
const line = file.text.slice(0, wave.start).split("\n").length;
|
|
219
|
+
findings.push({
|
|
220
|
+
message: `${file.path} awaits ${wave.reads} database reads in one Promise.all. They run in parallel, but each is its own request. Load them in one call with a read set: defineReadSet(db, "name", { ... }) and db.$many(readSet, params) (or bsb.bootstrap for a page's first load).`,
|
|
221
|
+
target: keys.get(wave.start),
|
|
222
|
+
location: {
|
|
223
|
+
file: file.path,
|
|
224
|
+
line
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return findings;
|
|
230
|
+
}
|
|
231
|
+
const ROUND_TRIP_RULES = [{
|
|
232
|
+
code: "BS609",
|
|
233
|
+
severity: "info",
|
|
234
|
+
title: "Three or more database reads in one Promise.all",
|
|
235
|
+
description: "A page that loads its data with several parallel reads makes one request each. A read set compiles the same reads into one stable database function, so the page waits on one round trip and RLS applies as for any read.",
|
|
236
|
+
check: parallelReads
|
|
237
|
+
}];
|
|
238
|
+
export { OPEN as a, functionsIn as c, CLOSE as i, statementEnd as l, ROUND_TRIP_RULES as n, closeOf as o, arrayEntries as r, codeOnly as s, PROMISE_ALL as t, targetKeys as u };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
|
|
2
2
|
import { a as entitlementsMode, c as unsafeKey, i as entitlementRequirements, n as accessRequirements, o as moduleKeyProblems, s as providerLabel } from "./authorization-CNWhpdKb.js";
|
|
3
|
-
import { B as typegenVersionNotice, H as installedVersion, L as stabilizeMetadata, N as oxfmtInstalled, V as declaredPeers, W as satisfies, d as loadSnapshot, i as migrationsDir, z as typegenVersion } from "./sql-layout-
|
|
4
|
-
import { s as schemaStampPath } from "./content-mapper-
|
|
3
|
+
import { B as typegenVersionNotice, H as installedVersion, L as stabilizeMetadata, N as oxfmtInstalled, V as declaredPeers, W as satisfies, d as loadSnapshot, i as migrationsDir, z as typegenVersion } from "./sql-layout-Bt7NcWXk.js";
|
|
4
|
+
import { s as schemaStampPath } from "./content-mapper-TATvvrmb.js";
|
|
5
5
|
import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-NnXnawki.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-CngfGyMA.js";
|
|
7
|
-
import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-
|
|
7
|
+
import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-DCpSNfJ3.js";
|
|
8
8
|
import { r as errorText } from "./errors-B7i-VGxk.js";
|
|
9
|
-
import { c as qualified, l as tableObject, r as exposed, s as policyObject, t as catalogOf } from "./shared-
|
|
10
|
-
import { a as storeTypesModule, o as typesModuleKey, s as writeAtomic } from "./cache-
|
|
9
|
+
import { c as qualified, l as tableObject, r as exposed, s as policyObject, t as catalogOf } from "./shared-BrAtQXmC.js";
|
|
10
|
+
import { a as storeTypesModule, o as typesModuleKey, s as writeAtomic } from "./cache-CNa3fjK-.js";
|
|
11
11
|
import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
|
|
12
|
-
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
12
|
+
import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-CRsIlrig.js";
|
|
13
13
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
14
|
-
import { n as render } from "./render-
|
|
14
|
+
import { n as render } from "./render-Bfh2EtMO.js";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
|
|
17
17
|
import { readFile } from "node:fs/promises";
|
|
@@ -531,7 +531,7 @@ const RLS_RULES = [
|
|
|
531
531
|
code: "BS213",
|
|
532
532
|
severity: "warning",
|
|
533
533
|
title: "API roles can write the columns that grant access",
|
|
534
|
-
description: "RLS helpers decide access from columns such as `memberships.user_id`, `memberships.role` or `contacts.customer_id`, and an authorization provider lists them as `decidingColumns`. When `anon` or `authenticated` may insert or update one of them, and a policy lets them write the row, a user can grant themselves access. A table-level grant counts even after a column-level revoke. A single-column primary key, a tenant column every write policy pins to a tenant the caller acts in (`current_tenant_id()`, `can('tenant', column, ...)`, `tenant_ids_with(...)` or the membership helper `member_organization_ids()`, alone or next to a guest's grant from `portal_subjects()`), a subject's `deletedAt` column in `config.
|
|
534
|
+
description: "RLS helpers decide access from columns such as `memberships.user_id`, `memberships.role` or `contacts.customer_id`, and an authorization provider lists them as `decidingColumns`. When `anon` or `authenticated` may insert or update one of them, and a policy lets them write the row, a user can grant themselves access. A table-level grant counts even after a column-level revoke. A single-column primary key, a tenant column every write policy pins to a tenant the caller acts in (`current_tenant_id()`, `can('tenant', column, ...)`, `tenant_ids_with(...)` or the membership helper `member_organization_ids()`, alone or next to a guest's grant from `portal_subjects()`), a subject's `deletedAt` column in `config.recordTypes` and a block's soft-delete column (they only hide rows) don't count unless the provider lists them.",
|
|
535
535
|
check: (context) => {
|
|
536
536
|
const tables = new Map(catalogOf(context).tables.map((table) => [qualified(table), table]));
|
|
537
537
|
return [...grantColumns(context)].flatMap(([name, byColumn]) => {
|