better-supabase 0.59.0 → 0.60.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/{account-parts-DxSyD4yi.d.ts → account-parts-D-cLYi0Y.d.ts} +1 -1
- package/dist/{adapter-base-BAjra5Eb.js → adapter-base-BHtxRoRg.js} +1 -1
- package/dist/{agents-CbsEgoLN.d.ts → agents-FJk0CNex.d.ts} +2 -2
- package/dist/{ai-schedules-BxBsTpji.d.ts → ai-schedules-wlL3DKqu.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +1 -1
- package/dist/ai-sdk/workflow/index.d.ts +1 -1
- package/dist/{api-wRlj_7so.d.ts → api-CSx2F4zg.d.ts} +1 -1
- package/dist/{api-DAJJ7N_0.js → api-Clu-XitC.js} +1 -1
- package/dist/{app-tables-DBmFqdFN.d.ts → app-tables-C_bRG0ek.d.ts} +1 -1
- package/dist/{approvals-Clg-7ghA.js → approvals-D7Xhpd52.js} +8 -6
- package/dist/{approvals-Bbxeiywy.d.ts → approvals-Dn_DM4Oi.d.ts} +6 -0
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +3 -3
- package/dist/{authorization-Dq47C4vf.d.ts → authorization-Cn_oEGoA.d.ts} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-Bx0H1vAc.d.ts → bind-Dopmkg_T.d.ts} +4 -4
- package/dist/{block-env-DUn5reXc.d.ts → block-env-4tgXDIAX.d.ts} +4 -4
- package/dist/{block-tables-BaLXCQha.d.ts → block-tables-KnVB7FH0.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/activities/index.d.ts +2 -2
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-guardrails/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.d.ts +2 -2
- package/dist/blocks/approvals/index.js +2 -2
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +4 -4
- package/dist/blocks/banking/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bulk-actions/index.d.ts +2 -2
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/care/index.d.ts +27 -27
- package/dist/blocks/care/index.js +1 -1
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/cms/index.js +1 -1
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commissions/index.d.ts +1 -1
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/contacts/index.d.ts +2 -2
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/crm/index.d.ts +17 -17
- package/dist/blocks/crm/index.js +2 -2
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/deadlines/index.d.ts +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/document-templates/index.d.ts +2 -2
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/finance/index.d.ts +5 -5
- package/dist/blocks/finance/index.js +1 -1
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/index.d.ts +5 -5
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inventory/index.d.ts +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/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +5 -5
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/option-sets/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +2 -2
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +2 -2
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/queue/index.d.ts +2 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/referrals/index.d.ts +1 -1
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/saas/index.d.ts +12 -12
- 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 +3 -3
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shifts/index.d.ts +2 -2
- package/dist/blocks/shipments/index.d.ts +1 -1
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/time-entries/index.d.ts +2 -2
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/warranty/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.d.ts +2 -2
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/{blocks-RVd7m590.d.ts → blocks-sDhFO8-h.d.ts} +4 -4
- package/dist/{build-Rz89mkdS.js → build-QM0GdQ2B.js} +1 -1
- package/dist/{cache-tags-BxpxsCtq.d.ts → cache-tags-FrJaMalu.d.ts} +1 -1
- package/dist/claims/index.d.ts +4 -4
- package/dist/{claims-source-BEVTXHQx.d.ts → claims-source-CeefCyGV.d.ts} +1 -1
- package/dist/cli/add-BBZULhs3.js +1 -0
- package/dist/cli/{add-CnCt2QoB.js → add-OllEkXon.js} +9 -9
- package/dist/cli/{add-BJNTq7Ti.js → add-djLR310z.js} +2 -2
- package/dist/cli/{app-table-files-CfB0_NuX.js → app-table-files-DnoDAkVJ.js} +3 -3
- package/dist/cli/{app-tables-oieRU_sP.js → app-tables-C4shCkBv.js} +2 -2
- package/dist/cli/{backfill-Cr5jgVi1.js → backfill-_spwSvnn.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-B-ANsRnH.js → blocks-Cvs0nhC2.js} +1 -1
- package/dist/cli/{blocks-DLMVaOFG.js → blocks-DFkzCFQi.js} +1 -1
- package/dist/cli/{cache-Ba26VW2N.js → cache-B0JnXfiY.js} +1 -1
- package/dist/cli/{codemod-x1I7Mjr3.js → codemod-D2Lnca97.js} +5 -5
- package/dist/cli/{codemod-naming-CZhndoO7.js → codemod-naming-CHIeOTt5.js} +1 -1
- package/dist/cli/{column-renames-BEEDF6P6.js → column-renames-4OHEvCAj.js} +2 -2
- package/dist/cli/{content-mapper-z7CrnE1s.js → content-mapper-DAYxPQ18.js} +1 -1
- package/dist/cli/{dev-D9nn9Gzt.js → dev-Xw7pt3KG.js} +3 -3
- package/dist/cli/{doctor-DCorhlir.js → doctor-diSKQp-6.js} +238 -105
- package/dist/cli/{emit-qQdWBc9e.js → emit-CICey-Za.js} +2 -2
- package/dist/cli/{gen-Bf1ujcTm.js → gen-BVuNFeLB.js} +3 -3
- package/dist/cli/{gen-tasks-q9JJSJ6r.js → gen-tasks-C2vwKKTc.js} +9 -9
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-DLLfL1uL.js → init-9BSoBkny.js} +8 -8
- package/dist/cli/{live-D4giSEyd.js → live-Ce8vdcCn.js} +2 -2
- package/dist/cli/{mcp-DwjeMbmV.js → mcp-UW-gEnP_.js} +2 -2
- package/dist/cli/{memo-backend-DPGMyJvH.js → memo-backend-BMdfsihK.js} +1 -1
- package/dist/cli/{metadata-Cft3CW1M.js → metadata-DqrbS0sS.js} +4 -4
- package/dist/cli/{migrate-Ci_UUuPv.js → migrate-Cn8L_0co.js} +1 -1
- package/dist/cli/{migration-safety-D3raBuJx.js → migration-safety-C1Ysrthi.js} +1 -1
- package/dist/cli/{module-migration-DZtxNO8A.js → module-migration-DXI95fqs.js} +1 -1
- package/dist/cli/{partition-DWJ6icQ5.js → partition-CJCrIueu.js} +1 -1
- package/dist/cli/{powersync-BAyDVR-N.js → powersync-CB-7AksZ.js} +3 -3
- package/dist/cli/powersync-JTdU1Xpy.js +1 -0
- package/dist/cli/{print-BSy5c62C.js → print-AVVgXsLG.js} +2 -2
- package/dist/cli/{providers-BbFKOale.js → providers-B3FLmlud.js} +1 -1
- package/dist/cli/{prune-workflows-VY7C9vhb.js → prune-workflows-CrLDmFf1.js} +1 -1
- package/dist/cli/{remove-CcBoTjEO.js → remove-00SZWfyi.js} +6 -6
- package/dist/cli/{render-CIrcdge6.js → render-3J7sk_CL.js} +4 -4
- package/dist/cli/{render-cache-bbL2UdJ6.js → render-cache-P4gQeivH.js} +1 -1
- package/dist/cli/round-trips-BHfeIu6I.js +238 -0
- package/dist/cli/{run-qCtE--0z.js → run-CByEIEng.js} +30 -30
- package/dist/cli/{run-D_p_WkPh.js → run-D_z9ULO7.js} +7 -7
- package/dist/cli/{shared-CkqZm0Bz.js → shared-d021xfdn.js} +1 -1
- package/dist/cli/{source-io7b1UpH.js → source-DdqeWoO4.js} +1 -1
- package/dist/cli/{spec-djAAvGKU.js → spec-ClfqDbVv.js} +2 -2
- package/dist/cli/{spec-QGOfTJvS.js → spec-Diudl7hC.js} +1 -1
- package/dist/cli/{sql-layout-1ASqdR4g.js → sql-layout-Bl3iOXMS.js} +3 -3
- package/dist/cli/{squash-DEmB47YZ.js → squash-C07y7CsQ.js} +1 -1
- package/dist/cli/{sync-CUcxtnwa.js → sync-Cw0ke-3h.js} +4 -4
- package/dist/cli/{upgrade-DV9mKpAp.js → upgrade-niwEovfl.js} +5 -5
- package/dist/cli/{upgrade-FWW6hKCv.js → upgrade-oc6s5Xoe.js} +5 -5
- package/dist/cli/{version-CSdXYnhG.js → version-Bd3kCDzL.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.d.ts +5 -5
- package/dist/client/native/index.js +2 -2
- package/dist/{codec-Cjquuv8M.js → codec-BI1mq95W.js} +1 -1
- package/dist/{composite-CL4zDLjs.d.ts → composite-BVEOyec_.d.ts} +3 -3
- package/dist/{composite-WUO6K2Hu.js → composite-Tsm5QFS2.js} +1 -1
- package/dist/{composite-reads-BJeDe1yV.js → composite-reads-BJJBI4tL.js} +1 -1
- package/dist/{composite-reads-B9psRGqQ.d.ts → composite-reads-DvN7EgDO.d.ts} +1 -1
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +2 -2
- package/dist/{config-C3yry9U5.js → config-cisS43w5.js} +1 -1
- package/dist/{context-DMTfze4z.d.ts → context-C_Rx1QaW.d.ts} +3 -3
- package/dist/contract/index.d.ts +4 -4
- package/dist/{controller-l9h4TtKg.d.ts → controller-D9N4NKbM.d.ts} +1 -1
- package/dist/{conversion-D70FELty.d.ts → conversion-CruLbcu8.d.ts} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +1 -1
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +3 -3
- package/dist/{db-blocks-Db3LVXco.d.ts → db-blocks-DB8Ct8Eu.d.ts} +11 -2
- package/dist/{define-block-D-Z8xB6y.d.ts → define-block-Cd7dm2o6.d.ts} +2 -2
- package/dist/{define-runtime-Dv8OYnKW.js → define-runtime-Ca5NN0gu.js} +2 -2
- package/dist/{define-runtime-full-C4eTtJAx.js → define-runtime-full-DeuaXsV7.js} +3 -3
- package/dist/{delete-account-BHXzIUIq.d.ts → delete-account-DwGFiIYv.d.ts} +1 -1
- package/dist/{drive-DrD94tWF.d.ts → drive-C6thwExa.d.ts} +2 -2
- package/dist/e-invoicing/index.d.ts +1 -1
- package/dist/edge/index.d.ts +5 -5
- package/dist/edge/index.js +4 -4
- package/dist/{entitlements-B6q7TIMP.d.ts → entitlements-CR5HRd3S.d.ts} +2 -2
- package/dist/eve/index.d.ts +1 -1
- package/dist/eve/index.js +1 -1
- package/dist/{executor-BmcRcw83.js → executor-Bot0tkvU.js} +2 -2
- package/dist/{executor-Dp4A_McY.d.ts → executor-CTuilcgE.d.ts} +2 -2
- package/dist/expo/index.d.ts +2 -2
- package/dist/expo/index.js +3 -3
- package/dist/{extract-D4QPFB_M.d.ts → extract-B2My7IhT.d.ts} +1 -1
- package/dist/{extras-C0cnpjDP.d.ts → extras-CKwPSpGL.d.ts} +1 -1
- package/dist/{field-errors-Br3wwgbu.d.ts → field-errors-CihTLojJ.d.ts} +6 -6
- package/dist/{former-permission-keys-BwJW5uc6.js → former-permission-keys-D8FbWktT.js} +2 -2
- package/dist/{framework-CbjS8M33.js → framework-BYZ8c9_g.js} +1 -1
- package/dist/{framework-BUzOnlJN.d.ts → framework-giXStk8k.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/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{index-DKuOnwh6.d.ts → index-28PPT5w7.d.ts} +2 -2
- package/dist/{index-ouiV6zqH.d.ts → index-69aFw9Id.d.ts} +2 -2
- package/dist/{index-o2y0w9lX.d.ts → index-74TASXlD.d.ts} +1 -1
- package/dist/{index-Dg4lbDzI.d.ts → index-B0dSXth6.d.ts} +1 -1
- package/dist/{index-DK0Hj3pi.d.ts → index-BOuJSOaf.d.ts} +1 -1
- package/dist/{index-C9p3wiWn.d.ts → index-BnY5lZtT.d.ts} +9 -9
- package/dist/{index-jCKNxp8C.d.ts → index-BqUY2MB-.d.ts} +1 -1
- package/dist/{index-BZHDwHGW.d.ts → index-BrnGYShi.d.ts} +2 -2
- package/dist/{index-BquYRGtV.d.ts → index-Bs6OCtxW.d.ts} +1 -1
- package/dist/{index-B6h9m3ml.d.ts → index-BszN5nLs.d.ts} +2 -2
- package/dist/{index-Cg0lDbXs.d.ts → index-Bv2kSYet.d.ts} +4 -4
- package/dist/{index-CHOeFZUB.d.ts → index-BvRseRob.d.ts} +3 -3
- package/dist/{index-DtVZnjKf.d.ts → index-BvZ3uvj9.d.ts} +2 -2
- package/dist/{index-ClysJ8O-.d.ts → index-C1na2fiY.d.ts} +3 -3
- package/dist/{index-D3d7m03L.d.ts → index-C59gKJBx.d.ts} +1 -1
- package/dist/{index-X-ihJBuJ.d.ts → index-CGAcXNod.d.ts} +1 -1
- package/dist/{index-BbpacfC0.d.ts → index-CMyUugyW.d.ts} +8 -8
- package/dist/{index-DkALeCTq.d.ts → index-CdoTvK2W.d.ts} +1 -1
- package/dist/{index-DG187JM_.d.ts → index-CiCmlbtu.d.ts} +1 -1
- package/dist/{index-qzFFTwel.d.ts → index-CiLb3DTI.d.ts} +3 -3
- package/dist/{index-WuUhLgMp.d.ts → index-Cnc4wyTo.d.ts} +2 -2
- package/dist/{index-DLlAc0wg.d.ts → index-Cpj79WyM.d.ts} +1 -1
- package/dist/{index-NNox0BqF.d.ts → index-D50ulqMJ.d.ts} +1 -1
- package/dist/{index-C7Tcervm.d.ts → index-D6px-XTD.d.ts} +2 -2
- package/dist/{index-BfoKErj3.d.ts → index-DMHxmit5.d.ts} +4 -4
- package/dist/{index-Dyns9a8l.d.ts → index-DflyfGR8.d.ts} +2 -2
- package/dist/{index-BFvj-fNS.d.ts → index-DibtbiIW.d.ts} +1 -1
- package/dist/{index-CnTxcNyl.d.ts → index-DpXMVE12.d.ts} +1 -1
- package/dist/{index-DMyMrXPW.d.ts → index-DsLMqyB5.d.ts} +1 -1
- package/dist/{index-DGszLnec.d.ts → index-DzUnwtxa.d.ts} +1 -1
- package/dist/{index-B4uPo3Sr.d.ts → index-Hzbfht3Z.d.ts} +1 -1
- package/dist/{index-bkm44ycq.d.ts → index-Sl13L6VB.d.ts} +4 -4
- package/dist/{index-DU_gZYuh.d.ts → index-UQOB8v1I.d.ts} +1 -1
- package/dist/{index-DYX_uL5t.d.ts → index-_No9Jb9O.d.ts} +1 -1
- package/dist/{index-BWxcC8ll.d.ts → index-cgHbN_EA.d.ts} +4 -4
- package/dist/{index-DHjZvZWC.d.ts → index-pry9PXpK.d.ts} +2 -2
- package/dist/{index-D_xJSanv.d.ts → index-wc3-R_cK.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{invoices-CWp9jcI2.d.ts → invoices-BXwG7Jwp.d.ts} +5 -0
- package/dist/{json-schema-B8f7HdoX.js → json-schema-BveJfXoz.js} +1 -1
- package/dist/list/export/index.d.ts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/list/order/index.d.ts +2 -2
- package/dist/{list-query-qCpvTDGH.d.ts → list-query-CBjzZmjx.d.ts} +1 -1
- package/dist/{manifest-Clzy2rSU.d.ts → manifest-2JeNUq8t.d.ts} +1 -1
- package/dist/{manifest-B_2lEGUS.d.ts → manifest-3e0zfaQt.d.ts} +1 -1
- package/dist/{manifest-CKDaQT_5.d.ts → manifest-3or1oZTo.d.ts} +1 -1
- package/dist/{manifest-qvMWfrZ-.d.ts → manifest-AS4QwWdu.d.ts} +1 -1
- package/dist/{manifest-BvzmDxod.d.ts → manifest-B1lYVfIp.d.ts} +1 -1
- package/dist/{manifest-DVZmJvrE.d.ts → manifest-B7xyFqWo.d.ts} +1 -1
- package/dist/{manifest-Dpad_5Lw.d.ts → manifest-B9m_UaiY.d.ts} +1 -1
- package/dist/{manifest-CKCaFg8y.d.ts → manifest-B9qFGJ_A.d.ts} +1 -1
- package/dist/{manifest-DLSzZMXM.d.ts → manifest-BSjzLeb-.d.ts} +1 -1
- package/dist/{manifest-BS8p47JO.d.ts → manifest-BVn2Xglt.d.ts} +1 -1
- package/dist/{manifest-BoUGzBpS.d.ts → manifest-BWKFNoxP.d.ts} +1 -1
- package/dist/{manifest-D0eItVsP.d.ts → manifest-BXWhDMFt.d.ts} +1 -1
- package/dist/{manifest-DlLxdk7P.d.ts → manifest-Bi44m1V3.d.ts} +1 -1
- package/dist/{manifest-DHTVfgX9.d.ts → manifest-Bluupj7R.d.ts} +1 -1
- package/dist/{manifest-V0QSCEfx.d.ts → manifest-Bo0SCigB.d.ts} +1 -1
- package/dist/{manifest-DCkeNzPW.d.ts → manifest-ByRLUGaJ.d.ts} +3 -3
- package/dist/{manifest-C0v6IEWk.d.ts → manifest-C1--UMCz.d.ts} +1 -1
- package/dist/{manifest-CyaHDD_i.d.ts → manifest-C20SXAzp.d.ts} +1 -1
- package/dist/{manifest-CxgOFWlh.d.ts → manifest-C40ISJVj.d.ts} +1 -1
- package/dist/{manifest-C-pVDUC6.d.ts → manifest-C7KPtGTu.d.ts} +2 -2
- package/dist/{manifest-BAn3lTr4.d.ts → manifest-C82tY_RD.d.ts} +1 -1
- package/dist/{manifest-DBfQe19Z.d.ts → manifest-C94eugvl.d.ts} +1 -1
- package/dist/{manifest-BESrR9Xp.d.ts → manifest-CBdMkxZD.d.ts} +1 -1
- package/dist/{manifest-B7lSTuVC.d.ts → manifest-CCPioFQl.d.ts} +1 -1
- package/dist/{manifest-CCKfdYiH.d.ts → manifest-CD5D0OWo.d.ts} +1 -1
- package/dist/{manifest-Co41j70r.d.ts → manifest-CGnN_2Yx.d.ts} +1 -1
- package/dist/{manifest-ByV81mLa.d.ts → manifest-CH1MFzXN.d.ts} +1 -1
- package/dist/{manifest-BEw6nEKW.d.ts → manifest-CJRob2Ms.d.ts} +1 -1
- package/dist/{manifest-D80LSWzZ.d.ts → manifest-CgljOcHt.d.ts} +1 -1
- package/dist/{manifest-CNLJLsHB.d.ts → manifest-Ci7NEusH.d.ts} +1 -1
- package/dist/{manifest-DHulRwzL.d.ts → manifest-CiXl1kUg.d.ts} +1 -1
- package/dist/{manifest-VCJSqffq.d.ts → manifest-CjzIpyBP.d.ts} +2 -2
- package/dist/{manifest-eUUJnoB5.d.ts → manifest-ClDcyCPP.d.ts} +3 -3
- package/dist/{manifest-DKnWcgse.d.ts → manifest-Co0CBReD.d.ts} +1 -1
- package/dist/{manifest-QmYmc98q.d.ts → manifest-CpmJIEt7.d.ts} +1 -1
- package/dist/{manifest-C5LxShda.d.ts → manifest-Cqv6c1KN.d.ts} +1 -1
- package/dist/{manifest-CZoRtSvn.d.ts → manifest-CtUKrkx1.d.ts} +1 -1
- package/dist/{manifest-BGmmK9bZ.d.ts → manifest-D1FPczc-.d.ts} +1 -1
- package/dist/{manifest-RitquXSE.d.ts → manifest-D43yma-v.d.ts} +1 -1
- package/dist/{manifest-BMcuCUre.d.ts → manifest-DAF4J0gk.d.ts} +1 -1
- package/dist/{manifest-BgmY9fuz.d.ts → manifest-DGoI006V.d.ts} +1 -1
- package/dist/{manifest-ByNpLQWh.d.ts → manifest-DHN6WiIJ.d.ts} +1 -1
- package/dist/{manifest-BYv5BqtY.d.ts → manifest-DIl_cNua.d.ts} +1 -1
- package/dist/{manifest-CjzlsilW.d.ts → manifest-DJhjOnvk.d.ts} +1 -1
- package/dist/{manifest-CvncELVO.d.ts → manifest-DMhuQgOx.d.ts} +1 -1
- package/dist/{manifest-Fapf4NdA.d.ts → manifest-DQkz9UVy.d.ts} +1 -1
- package/dist/{manifest-BA-urVob.d.ts → manifest-DUZUtWBi.d.ts} +1 -1
- package/dist/{manifest-Dp92U_iP.d.ts → manifest-DY2KtVcD.d.ts} +1 -1
- package/dist/{manifest-CXYg8gzt.d.ts → manifest-DaB1w2xo.d.ts} +1 -1
- package/dist/{manifest-C8PUzse6.d.ts → manifest-DpXgCZEd.d.ts} +1 -1
- package/dist/{manifest-ra7MSo-3.d.ts → manifest-Dqf2Uw17.d.ts} +1 -1
- package/dist/{manifest-D5aZyD1b.js → manifest-OxHBbWrs.js} +1 -1
- package/dist/{manifest-r6DHrB4Q.d.ts → manifest-Utivc7Qa.d.ts} +1 -1
- package/dist/{manifest-CWwdLMT0.d.ts → manifest-WJ-UHuEx.d.ts} +1 -1
- package/dist/{manifest-CIVhJzKF.d.ts → manifest-WpIMAJCT.d.ts} +1 -1
- package/dist/{manifest-Ch08RUKa.d.ts → manifest-at0NS8cT.d.ts} +1 -1
- package/dist/{manifest-Dvm2mwFy.d.ts → manifest-d7vR6coE.d.ts} +2 -2
- package/dist/{manifest-TvLJWs_L.d.ts → manifest-gl856Z9G.d.ts} +1 -1
- package/dist/{manifest--_00y416.d.ts → manifest-iGmnzfGD.d.ts} +1 -1
- package/dist/{manifest-D_wBteR5.d.ts → manifest-j4_V-qhA.d.ts} +1 -1
- package/dist/{manifest-CLukD6aB.d.ts → manifest-mAxLRfeu.d.ts} +1 -1
- package/dist/{manifest-DofXV9lE.d.ts → manifest-mBKFNynL.d.ts} +1 -1
- package/dist/{manifest-wbs2VkcB.d.ts → manifest-wPIH-Oo7.d.ts} +1 -1
- package/dist/{manifest-Djy3wcSo.js → manifest-waO9DHVc.js} +1 -0
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.d.ts +2 -2
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/{mcp-aMq1fkoe.js → mcp-mSD-ic9W.js} +3 -3
- package/dist/next/index.d.ts +12 -12
- package/dist/next/index.js +10 -5
- package/dist/next/proxy/index.d.ts +3 -3
- package/dist/{operations-nnC3pvwn.d.ts → operations-dIOdHqYz.d.ts} +1 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.js +5 -5
- package/dist/{permissions-ZLtxCurD.d.ts → permissions-DG0t2lrA.d.ts} +1 -1
- package/dist/{ports-CfVACwW_.d.ts → ports-CfiOCL2r.d.ts} +1 -1
- package/dist/{ports-DfDzwMCR.js → ports-DR88RF0N.js} +2 -2
- package/dist/powersync/index.d.ts +3 -3
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.d.ts +4 -4
- package/dist/{preview-BoJkQw2E.d.ts → preview-3nes4WG4.d.ts} +2 -2
- package/dist/{project-DI09JnXz.js → project-CXcoauzs.js} +2 -2
- package/dist/{push-token-Rv1CxW_N.d.ts → push-token-CRBieazN.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +6 -6
- package/dist/react-router/index.d.ts +3 -3
- package/dist/react-router/index.js +3 -3
- package/dist/{read-set-BptYceHc.js → read-set-DfScfSsf.js} +3 -2
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-BHUYs5ju.d.ts → record-form-BggNAKZA.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{resource-execute-Bb-zKYUc.d.ts → resource-execute-BIqAzA57.d.ts} +1 -1
- package/dist/{resource-types-C8kdoZ-J.d.ts → resource-types-DcEe07vC.d.ts} +1 -1
- package/dist/{resources-B9dfA1jH.d.ts → resources-Bb_JRadM.d.ts} +1 -1
- package/dist/{sales-D_yZoFUU.js → sales-CIe7dE4J.js} +1 -1
- package/dist/server/account/index.d.ts +2 -2
- package/dist/server/accounts/index.d.ts +1 -1
- package/dist/server/index.d.ts +12 -12
- package/dist/server/index.js +4 -4
- package/dist/{server-Bgugpk3A.js → server-DA5SRGHQ.js} +2 -2
- package/dist/{server-types-C8zErBy9.d.ts → server-types-Cp2en4rP.d.ts} +2 -2
- package/dist/{session-DRn_URq0.d.ts → session-Bro3jmnu.d.ts} +1 -1
- package/dist/{sign-in-Dp-X2YXo.d.ts → sign-in-Cj7Y0mSU.d.ts} +11 -11
- package/dist/solid/index.d.ts +6 -6
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +3 -3
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +2 -2
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +1 -1
- package/dist/{sql-BqOBYRvI.js → sql-BwfPwN8v.js} +304 -95
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/sqlite/index.js +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +3 -3
- package/dist/{tags-Bh4zXrnl.d.ts → tags-C7NyJTdU.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +3 -3
- package/dist/{tenant-BQaG8Hma.d.ts → tenant-BFABaxQ5.d.ts} +1 -1
- package/dist/testing/index.d.ts +9 -9
- package/dist/testing/index.js +4 -4
- package/dist/{timeline-D7T-qrKN.d.ts → timeline-0a7kclhg.d.ts} +3 -3
- package/dist/{topic-R7kIJ_xI.d.ts → topic-BH4L7H8n.d.ts} +2 -2
- package/dist/{types-BE6BvLv2.d.ts → types-BMLgTFzf.d.ts} +2 -2
- package/dist/{verify-BfcOHiUP.d.ts → verify-tK2F49Gn.d.ts} +1 -1
- package/dist/{version-CkYT3KbT.js → version-BHgdHcZN.js} +1 -1
- package/dist/vue/index.d.ts +6 -6
- package/dist/{watch-topic-D18gT7-K.d.ts → watch-topic-BYfSlldk.d.ts} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- 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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as findConfig, s as loadConfig } from "./config-DD_MnPRL.js";
|
|
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-
|
|
2
|
+
import { r as contentMapperFiles } from "./content-mapper-DAYxPQ18.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-OllEkXon.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-C1Ysrthi.js";
|
|
9
|
+
import { c as enablePgDelta, t as syncModules } from "./sync-Cw0ke-3h.js";
|
|
10
|
+
import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-Bl3iOXMS.js";
|
|
11
|
+
import { a as toCatalog } from "./source-DdqeWoO4.js";
|
|
12
|
+
import { c as TYPEGEN_VERSION } from "./cache-B0JnXfiY.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-DnoDAkVJ.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-DdqeWoO4.js";
|
|
3
|
+
import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-d021xfdn.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-CByEIEng.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-Bd3kCDzL.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-Bd3kCDzL.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-D_z9ULO7.js";
|
|
4
|
+
import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-Bl3iOXMS.js";
|
|
5
|
+
import { c as metaPaths } from "./emit-CICey-Za.js";
|
|
6
|
+
import { n as render } from "./render-3J7sk_CL.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-DnoDAkVJ.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
1
|
import { h as INTEGRATIONS } from "./config-DD_MnPRL.js";
|
|
2
|
-
import { l as schemaModulePath } from "./emit-
|
|
2
|
+
import { l as schemaModulePath } from "./emit-CICey-Za.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-Bl3iOXMS.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";
|
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import { n as ident } from "./live-Ce8vdcCn.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-yU6N6JLm.js";
|
|
8
8
|
// src/cli/commands/partition.ts
|
|
9
9
|
const DEFAULT_BATCH = 5e4;
|
|
@@ -1,10 +1,10 @@
|
|
|
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-Bl3iOXMS.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-
|
|
6
|
+
import { r as layoutFor } from "./providers-B3FLmlud.js";
|
|
7
|
+
import { n as renderBlocksCached } from "./render-cache-P4gQeivH.js";
|
|
8
8
|
import { d as subjectFromTag } from "./config-DD_MnPRL.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { join, resolve } from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as powersyncStreamsCommand } from "./powersync-CB-7AksZ.js";
|
|
@@ -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-DXI95fqs.js";
|
|
3
|
+
import { n as layout } from "./providers-B3FLmlud.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-Bl3iOXMS.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
|
|
@@ -3,7 +3,7 @@ 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-
|
|
6
|
+
import { n as ident } from "./live-Ce8vdcCn.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-yU6N6JLm.js";
|
|
8
8
|
// src/cli/commands/prune-workflows.ts
|
|
9
9
|
const TERMINAL = [
|
|
@@ -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-OllEkXon.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-Bl3iOXMS.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-djLR310z.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-B3FLmlud.js";
|
|
11
|
+
import { n as guardedRemoval } from "./sync-Cw0ke-3h.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-Cvs0nhC2.js";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { resolve } from "node:path";
|
|
16
16
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,11 +1,11 @@
|
|
|
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-B0JnXfiY.js";
|
|
5
|
+
import { t as VERSION } from "./version-Bd3kCDzL.js";
|
|
6
|
+
import { M as generateDatabaseTypes, N as oxfmtInstalled, n as appSchemaTexts, t as appColumnsFor, x as apiTypeSchemas } from "./sql-layout-Bl3iOXMS.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-CICey-Za.js";
|
|
9
9
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
10
10
|
import { t as projectionsOf } from "./projection-DlVB5YL-.js";
|
|
11
11
|
import { u as withTableTags } from "./config-DD_MnPRL.js";
|
|
@@ -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-Bd3kCDzL.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,7 +1,7 @@
|
|
|
1
1
|
import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-fqvJ0TdG.js";
|
|
2
2
|
import { s as setCacheEnabled } from "./store-DP-nmqBt.js";
|
|
3
3
|
import { n as highlight, r as painter } from "./style-B5-nByxb.js";
|
|
4
|
-
import { t as VERSION } from "./version-
|
|
4
|
+
import { t as VERSION } from "./version-Bd3kCDzL.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-BlYLJPzM.js";
|
|
6
6
|
import { a as isActionRequired, l as toCliError, n as CliError, o as isReport, s as isRetryable } from "./errors-B7i-VGxk.js";
|
|
7
7
|
import { r as splitCommandLine } from "./shell-omi9-T2X.js";
|
|
@@ -21,48 +21,48 @@ const LOADERS = [
|
|
|
21
21
|
["login", () => import("./account-BzhVD6jJ.js").then((m) => m.loginCommand)],
|
|
22
22
|
["logout", () => import("./account-BzhVD6jJ.js").then((m) => m.logoutCommand)],
|
|
23
23
|
["whoami", () => import("./account-BzhVD6jJ.js").then((m) => m.whoamiCommand)],
|
|
24
|
-
["init", () => import("./init-
|
|
25
|
-
["add", () => import("./add-
|
|
26
|
-
["remove", () => import("./remove-
|
|
27
|
-
["upgrade", () => import("./upgrade-
|
|
24
|
+
["init", () => import("./init-9BSoBkny.js").then((m) => m.initCommand)],
|
|
25
|
+
["add", () => import("./add-BBZULhs3.js").then((m) => m.addCommand)],
|
|
26
|
+
["remove", () => import("./remove-00SZWfyi.js").then((m) => m.removeCommand)],
|
|
27
|
+
["upgrade", () => import("./upgrade-oc6s5Xoe.js").then((m) => m.upgradeCommand)],
|
|
28
28
|
["table", () => import("./table-CcO-m_7t.js").then((m) => m.tableCommand)],
|
|
29
|
-
["migrate schema-first", () => import("./migrate-
|
|
30
|
-
["gen", () => import("./gen-
|
|
31
|
-
["doctor", () => import("./doctor-
|
|
29
|
+
["migrate schema-first", () => import("./migrate-Cn8L_0co.js").then((m) => m.migrateSchemaFirstCommand)],
|
|
30
|
+
["gen", () => import("./gen-BVuNFeLB.js").then((m) => m.genCommand)],
|
|
31
|
+
["doctor", () => import("./doctor-diSKQp-6.js").then((m) => m.doctorCommand)],
|
|
32
32
|
["codes", () => import("./codes-DNq30BZg.js").then((m) => m.codesCommand)],
|
|
33
33
|
["db query", () => import("./db-CEUnv3hK.js").then((m) => m.dbQueryCommand)],
|
|
34
34
|
["db diff", () => import("./db-CEUnv3hK.js").then((m) => m.dbDiffCommand)],
|
|
35
35
|
["db seed", () => import("./seed-CucH5loT.js").then((m) => m.seedCommand)],
|
|
36
|
-
["db backfill", () => import("./backfill-
|
|
36
|
+
["db backfill", () => import("./backfill-_spwSvnn.js").then((m) => m.dbBackfillCommand)],
|
|
37
37
|
["db verify", () => import("./verify-CrFHs8Lr.js").then((m) => m.dbVerifyCommand)],
|
|
38
|
-
["db partition", () => import("./partition-
|
|
39
|
-
["db squash", () => import("./squash-
|
|
40
|
-
["workflows prune", () => import("./prune-workflows-
|
|
41
|
-
["dev", () => import("./dev-
|
|
38
|
+
["db partition", () => import("./partition-CJCrIueu.js").then((m) => m.dbPartitionCommand)],
|
|
39
|
+
["db squash", () => import("./squash-C07y7CsQ.js").then((m) => m.dbSquashCommand)],
|
|
40
|
+
["workflows prune", () => import("./prune-workflows-CrLDmFf1.js").then((m) => m.workflowsPruneCommand)],
|
|
41
|
+
["dev", () => import("./dev-Xw7pt3KG.js").then((m) => m.devCommand)],
|
|
42
42
|
["dev env", () => import("./env-bItpF97w.js").then((m) => m.envCommand)],
|
|
43
43
|
["dev run", () => import("./run-DbR0NaN_.js").then((m) => m.runCommand)],
|
|
44
44
|
["dev keys", () => import("./keys-f9iMQepr.js").then((m) => m.keysCommand)],
|
|
45
45
|
["dev stack ls", () => import("./stack-BUrc8jsg.js").then((m) => m.stackLsCommand)],
|
|
46
46
|
["dev stack prune", () => import("./stack-BUrc8jsg.js").then((m) => m.stackPruneCommand)],
|
|
47
47
|
["automations list", () => import("./automations-C1yZj3mn.js").then((m) => m.automationsListCommand)],
|
|
48
|
-
["blocks list", () => import("./blocks-
|
|
49
|
-
["blocks view", () => import("./blocks-
|
|
50
|
-
["blocks search", () => import("./blocks-
|
|
51
|
-
["powersync streams", () => import("./powersync-
|
|
52
|
-
["spec emit", () => import("./spec-
|
|
53
|
-
["spec validate", () => import("./spec-
|
|
54
|
-
["mcp", () => import("./mcp-
|
|
48
|
+
["blocks list", () => import("./blocks-DFkzCFQi.js").then((m) => m.blocksListCommand)],
|
|
49
|
+
["blocks view", () => import("./blocks-DFkzCFQi.js").then((m) => m.blocksViewCommand)],
|
|
50
|
+
["blocks search", () => import("./blocks-DFkzCFQi.js").then((m) => m.blocksSearchCommand)],
|
|
51
|
+
["powersync streams", () => import("./powersync-JTdU1Xpy.js").then((m) => m.powersyncStreamsCommand)],
|
|
52
|
+
["spec emit", () => import("./spec-Diudl7hC.js").then((m) => m.specEmitCommand)],
|
|
53
|
+
["spec validate", () => import("./spec-Diudl7hC.js").then((m) => m.specValidateCommand)],
|
|
54
|
+
["mcp", () => import("./mcp-UW-gEnP_.js").then((m) => m.mcpCommand)],
|
|
55
55
|
["skills list", () => import("./skills-C4vNmuxw.js").then((m) => m.skillsListCommand)],
|
|
56
56
|
["skills install", () => import("./skills-C4vNmuxw.js").then((m) => m.skillsInstallCommand)],
|
|
57
|
-
["codemod naming", () => import("./codemod-
|
|
58
|
-
["codemod extra-columns", () => import("./codemod-
|
|
59
|
-
["codemod owned-columns", () => import("./codemod-
|
|
60
|
-
["codemod config", () => import("./codemod-
|
|
61
|
-
["codemod table-modules", () => import("./codemod-
|
|
62
|
-
["codemod account-calls", () => import("./codemod-
|
|
63
|
-
["codemod server-imports", () => import("./codemod-
|
|
64
|
-
["codemod generators", () => import("./codemod-
|
|
65
|
-
["codemod read-many", () => import("./codemod-
|
|
57
|
+
["codemod naming", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("naming"))],
|
|
58
|
+
["codemod extra-columns", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("extra-columns"))],
|
|
59
|
+
["codemod owned-columns", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("owned-columns"))],
|
|
60
|
+
["codemod config", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("config"))],
|
|
61
|
+
["codemod table-modules", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("table-modules"))],
|
|
62
|
+
["codemod account-calls", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("account-calls"))],
|
|
63
|
+
["codemod server-imports", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("server-imports"))],
|
|
64
|
+
["codemod generators", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("generators"))],
|
|
65
|
+
["codemod read-many", () => import("./codemod-D2Lnca97.js").then((m) => m.codemodCommand("read-many"))],
|
|
66
66
|
["completion", () => import("./completion-Ct0kXYpV.js").then((m) => m.completionCommand)],
|
|
67
67
|
["cache purge", () => import("./cache-DwdJCb29.js").then((m) => m.cachePurgeCommand)],
|
|
68
68
|
["config", () => import("./config-J8LaJ0Nl.js").then((m) => m.configCommand)]
|
|
@@ -746,7 +746,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
746
746
|
digest: globals["effects-digest"]
|
|
747
747
|
});
|
|
748
748
|
};
|
|
749
|
-
await import("./memo-backend-
|
|
749
|
+
await import("./memo-backend-BMdfsihK.js").then(({ installMemo }) => installMemo(config.root));
|
|
750
750
|
context = {
|
|
751
751
|
cwd,
|
|
752
752
|
config,
|
|
@@ -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-Bl3iOXMS.js";
|
|
4
|
+
import { s as schemaStampPath } from "./content-mapper-DAYxPQ18.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-C4shCkBv.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-d021xfdn.js";
|
|
10
|
+
import { a as storeTypesModule, o as typesModuleKey, s as writeAtomic } from "./cache-B0JnXfiY.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-DXI95fqs.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-3J7sk_CL.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-Bd3kCDzL.js";
|
|
2
2
|
import { n as CliError } from "./errors-B7i-VGxk.js";
|
|
3
3
|
import { r as redactUrl } from "./redact--zOGdWzo.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
|
|
@@ -4,8 +4,8 @@ import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
|
|
|
4
4
|
import { i as failedResult, n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
|
|
5
5
|
import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
|
|
6
6
|
import { t as display } from "./io-CngfGyMA.js";
|
|
7
|
-
import { s as writeAtomic } from "./cache-
|
|
8
|
-
import { t as VERSION } from "./version-
|
|
7
|
+
import { s as writeAtomic } from "./cache-B0JnXfiY.js";
|
|
8
|
+
import { t as VERSION } from "./version-Bd3kCDzL.js";
|
|
9
9
|
import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
|
|
10
10
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
11
11
|
import { t as loadTopics } from "./topics-CqhOV1S0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as specEmitCommand, i as specValidateCommand } from "./spec-
|
|
1
|
+
export { n as specEmitCommand, i as specValidateCommand } from "./spec-ClfqDbVv.js";
|