better-supabase 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-B2WRsRIg.js → adapter-CRNH2aX_.js} +362 -253
- package/dist/{agents-CbUIrH-w.d.ts → agents-CGP2AQge.d.ts} +1 -1
- package/dist/{ai-files-DXbgWA5M.js → ai-files-ChFDkMLN.js} +12 -4
- package/dist/ai-sdk/agents/index.d.ts +3 -3
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/files/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/ai-sdk/memory/index.d.ts +2 -2
- package/dist/{ai-tasks-BJJChl-D.d.ts → ai-tasks-ZvPnNudQ.d.ts} +1 -1
- package/dist/{api-keys-qnM63qjS.d.ts → api-keys-AgDXbcql.d.ts} +1 -1
- package/dist/{approvals-CRZtzxNt.d.ts → approvals-CyX709B-.d.ts} +1 -1
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{attachments-Bk3tyeUF.js → attachments-CK8D8bIV.js} +8 -2
- package/dist/{authorization-hooks-mLi894KH.d.ts → authorization-hooks-WDQMKIsc.d.ts} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-CTNKpBM6.d.ts → bind-Bfo40o63.d.ts} +3 -3
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +2 -2
- package/dist/blocks/ai-chat/react/index.d.ts +1 -1
- package/dist/blocks/ai-chat/solid/index.d.ts +2 -2
- package/dist/blocks/ai-chat/svelte/index.d.ts +2 -2
- package/dist/blocks/ai-chat/vue/index.d.ts +2 -2
- package/dist/blocks/ai-files/index.d.ts +2 -2
- package/dist/blocks/ai-files/index.js +1 -1
- package/dist/blocks/ai-providers/index.d.ts +2 -2
- package/dist/blocks/ai-tasks/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +2 -2
- package/dist/blocks/announcements/react/index.d.ts +1 -1
- package/dist/blocks/announcements/solid/index.d.ts +2 -2
- package/dist/blocks/announcements/svelte/index.d.ts +2 -2
- package/dist/blocks/announcements/vue/index.d.ts +2 -2
- package/dist/blocks/api-keys/index.d.ts +4 -4
- package/dist/blocks/api-keys/react/index.d.ts +1 -1
- package/dist/blocks/api-keys/react/server.d.ts +1 -1
- package/dist/blocks/api-keys/solid/index.d.ts +2 -2
- package/dist/blocks/api-keys/svelte/index.d.ts +2 -2
- package/dist/blocks/api-keys/vue/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +2 -2
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/react/index.d.ts +1 -1
- package/dist/blocks/audit/react/server.d.ts +1 -1
- package/dist/blocks/audit/solid/index.d.ts +2 -2
- package/dist/blocks/audit/svelte/index.d.ts +2 -2
- package/dist/blocks/audit/vue/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +3 -3
- package/dist/blocks/billing/react/index.d.ts +1 -1
- package/dist/blocks/billing/react/server.d.ts +1 -1
- package/dist/blocks/billing/solid/index.d.ts +2 -2
- package/dist/blocks/billing/svelte/index.d.ts +2 -2
- package/dist/blocks/billing/vue/index.d.ts +2 -2
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/react/index.d.ts +1 -1
- package/dist/blocks/bookings/solid/index.d.ts +2 -2
- package/dist/blocks/bookings/svelte/index.d.ts +2 -2
- package/dist/blocks/bookings/vue/index.d.ts +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +2 -2
- package/dist/blocks/calendar/react/index.d.ts +1 -1
- package/dist/blocks/calendar/solid/index.d.ts +2 -2
- package/dist/blocks/calendar/svelte/index.d.ts +2 -2
- package/dist/blocks/calendar/vue/index.d.ts +2 -2
- package/dist/blocks/catalog/index.d.ts +1 -1
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/react/index.d.ts +1 -1
- package/dist/blocks/comments/react/server.d.ts +1 -1
- package/dist/blocks/comments/solid/index.d.ts +2 -2
- package/dist/blocks/comments/svelte/index.d.ts +2 -2
- package/dist/blocks/comments/vue/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +2 -2
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +2 -3
- package/dist/blocks/drive/index.js +14 -5
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/engagements/index.d.ts +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/react/index.d.ts +2 -2
- package/dist/blocks/entitlements/solid/index.d.ts +2 -2
- package/dist/blocks/entitlements/svelte/index.d.ts +2 -2
- package/dist/blocks/entitlements/vue/index.d.ts +2 -2
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +2 -2
- package/dist/blocks/forms/react/index.d.ts +1 -1
- package/dist/blocks/forms/solid/index.d.ts +2 -2
- package/dist/blocks/forms/svelte/index.d.ts +2 -2
- package/dist/blocks/forms/vue/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +2 -2
- package/dist/blocks/imports/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +2 -2
- package/dist/blocks/inbox/react/index.d.ts +2 -2
- package/dist/blocks/inbox/react/server.d.ts +2 -2
- package/dist/blocks/inbox/solid/index.d.ts +2 -2
- package/dist/blocks/inbox/svelte/index.d.ts +2 -2
- package/dist/blocks/inbox/vue/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/jobs/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +3 -3
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/react/index.d.ts +1 -1
- package/dist/blocks/mfa/react/server.d.ts +1 -1
- package/dist/blocks/mfa/solid/index.d.ts +2 -2
- package/dist/blocks/mfa/svelte/index.d.ts +2 -2
- package/dist/blocks/mfa/vue/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/notifications/react/index.d.ts +1 -1
- package/dist/blocks/notifications/react/server.d.ts +1 -1
- package/dist/blocks/notifications/solid/index.d.ts +2 -2
- package/dist/blocks/notifications/svelte/index.d.ts +2 -2
- package/dist/blocks/notifications/vue/index.d.ts +2 -2
- package/dist/blocks/number-sequences/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/react/index.d.ts +1 -1
- package/dist/blocks/onboarding/react/server.d.ts +1 -1
- package/dist/blocks/onboarding/solid/index.d.ts +2 -2
- package/dist/blocks/onboarding/svelte/index.d.ts +2 -2
- package/dist/blocks/onboarding/vue/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/organizations/react/index.d.ts +1 -1
- package/dist/blocks/organizations/react/server.d.ts +1 -1
- package/dist/blocks/organizations/solid/index.d.ts +2 -2
- package/dist/blocks/organizations/svelte/index.d.ts +2 -2
- package/dist/blocks/organizations/vue/index.d.ts +2 -2
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/parties/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/push/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 +2 -2
- package/dist/blocks/reactions/react/index.d.ts +1 -1
- package/dist/blocks/reactions/solid/index.d.ts +2 -2
- package/dist/blocks/reactions/svelte/index.d.ts +2 -2
- package/dist/blocks/reactions/vue/index.d.ts +2 -2
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +3 -3
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/rules/index.d.ts +4 -4
- package/dist/blocks/rules/react/index.d.ts +1 -1
- package/dist/blocks/rules/solid/index.d.ts +2 -2
- package/dist/blocks/rules/svelte/index.d.ts +2 -2
- package/dist/blocks/rules/vue/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/react/index.d.ts +1 -1
- package/dist/blocks/saved-views/react/server.d.ts +1 -1
- package/dist/blocks/saved-views/solid/index.d.ts +2 -2
- package/dist/blocks/saved-views/svelte/index.d.ts +2 -2
- package/dist/blocks/saved-views/vue/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/search/react/index.d.ts +1 -1
- package/dist/blocks/search/react/server.d.ts +1 -1
- package/dist/blocks/search/solid/index.d.ts +2 -2
- package/dist/blocks/search/svelte/index.d.ts +2 -2
- package/dist/blocks/search/vue/index.d.ts +2 -2
- package/dist/blocks/service-principals/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/react/index.d.ts +1 -1
- package/dist/blocks/sessions/react/server.d.ts +1 -1
- package/dist/blocks/sessions/solid/index.d.ts +2 -2
- package/dist/blocks/sessions/svelte/index.d.ts +2 -2
- package/dist/blocks/sessions/vue/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/react/index.d.ts +1 -1
- package/dist/blocks/settings/react/server.d.ts +1 -1
- package/dist/blocks/settings/solid/index.d.ts +2 -2
- package/dist/blocks/settings/svelte/index.d.ts +2 -2
- package/dist/blocks/settings/vue/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shared-signals/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 +2 -2
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/react/index.d.ts +1 -1
- package/dist/blocks/tags/react/server.d.ts +1 -1
- package/dist/blocks/tags/solid/index.d.ts +2 -2
- package/dist/blocks/tags/svelte/index.d.ts +2 -2
- package/dist/blocks/tags/vue/index.d.ts +2 -2
- package/dist/blocks/targets/index.d.ts +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +3 -3
- package/dist/blocks/time-tracking/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/undo/react/index.d.ts +1 -1
- package/dist/blocks/undo/react/server.d.ts +1 -1
- package/dist/blocks/undo/solid/index.d.ts +2 -2
- package/dist/blocks/undo/svelte/index.d.ts +2 -2
- package/dist/blocks/undo/vue/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/react/index.d.ts +1 -1
- package/dist/blocks/usage/react/server.d.ts +1 -1
- package/dist/blocks/usage/solid/index.d.ts +2 -2
- package/dist/blocks/usage/svelte/index.d.ts +2 -2
- package/dist/blocks/usage/vue/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/webhooks/index.d.ts +4 -4
- package/dist/blocks/work-items/index.d.ts +1 -1
- package/dist/blocks/workflow-builder/index.d.ts +4 -4
- package/dist/blocks/workflow-builder/react/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/solid/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/svelte/index.d.ts +2 -2
- package/dist/blocks/workflow-builder/vue/index.d.ts +2 -2
- package/dist/blocks/workflows/index.d.ts +2 -2
- package/dist/blocks/workflows/react/index.d.ts +1 -1
- package/dist/blocks/workflows/solid/index.d.ts +2 -2
- package/dist/blocks/workflows/svelte/index.d.ts +2 -2
- package/dist/blocks/workflows/vue/index.d.ts +2 -2
- package/dist/{bucket-BBSNDFNH.d.ts → bucket-BbePDVwc.d.ts} +16 -0
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/chat-sdk/react/index.d.ts +2 -2
- package/dist/chat-sdk/react/server.d.ts +2 -2
- package/dist/cli/add-DnAyR9w_.js +1 -0
- package/dist/cli/{add-B5V6uokQ.js → add-TT72pQk6.js} +3 -3
- package/dist/cli/adopt-BuS-DC7_.js +1 -0
- package/dist/cli/{adopt-Ht34C3QD.js → adopt-mbB1bcIG.js} +4 -4
- package/dist/cli/{apply-4BmTvj2A.js → apply-CiBFOFGw.js} +15 -21
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-jIvPqPtw.js → blocks-5-JGzwXX.js} +1 -1
- package/dist/cli/{blocks-bBI050w6.js → blocks-DeLQOlUK.js} +1 -1
- package/dist/cli/{cache-CVJmPGpd.js → cache-DQwgb3rg.js} +1 -1
- package/dist/cli/{codemod-vsknM1Ue.js → codemod-BzAMX4el.js} +2 -2
- package/dist/cli/{command-DLCZeHdo.js → command-dfdVhU_2.js} +16 -1
- package/dist/cli/{completion-CEZ-c3ja.js → completion-4lLjtI49.js} +1 -1
- package/dist/cli/{completion-D2BObVth.js → completion-D4InNrxw.js} +2 -2
- package/dist/cli/{completion-BAm8SwGQ.js → completion-zsp5s0zI.js} +2 -2
- package/dist/cli/{config-CynctXbc.js → config-CCyweX7Y.js} +1 -1
- package/dist/cli/{config-CC5DXgKX.js → config-DI6ielsx.js} +1 -1
- package/dist/cli/{config-C4e_RrmL.js → config-yZ55rsKZ.js} +1 -1
- package/dist/cli/{db-BxMRcHrY.js → db-TRymMyAW.js} +3 -3
- package/dist/cli/{design-edit-B-WsnhUF.js → design-edit-0U9iCTiS.js} +29 -2
- package/dist/cli/{doctor-D47sFjh9.js → doctor-DOfy6kjt.js} +119 -70
- package/dist/cli/env-Cmu99uKR.js +1 -0
- package/dist/cli/{env--JFvv45k.js → env-Dh5K5t2U.js} +32 -31
- package/dist/cli/{gen-D2E8osBE.js → gen-D3sC5jDn.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-Cx7DDAdQ.js → init-DNomoycJ.js} +12 -18
- package/dist/cli/{introspect-Ck7aa6v0.js → introspect-kYX06Q2g.js} +3 -3
- package/dist/cli/{keys-6ufnWeZl.js → keys-B8dIJwwi.js} +1 -1
- package/dist/cli/{live-CLxJNC0r.js → live-CkV3d3yp.js} +1 -1
- package/dist/cli/{mcp-BVWvEoKo.js → mcp-DrxB2Wuw.js} +3 -3
- package/dist/cli/{metadata-BRywyPvv.js → metadata-BGkle6WM.js} +1 -1
- package/dist/cli/{moved-BmtFuMK3.js → moved-BMQu1YNY.js} +1 -1
- package/dist/cli/{parse-ksnw4phM.js → parse-QzDvMpXH.js} +1 -1
- package/dist/cli/{preset-B1o6KbFp.js → preset-CfIs24cc.js} +1 -1
- package/dist/cli/run-Bck-p0MI.js +63 -0
- package/dist/cli/{run-Bb8Nn8Ax.js → run-BhJKAanr.js} +2 -2
- package/dist/cli/{run-nX5ffQM_.js → run-DRZ10srj.js} +51 -43
- package/dist/cli/{scaffold-DcXr4z7M.js → scaffold-DoURlDEI.js} +1 -1
- package/dist/cli/{scaffold-fO-FJGoO.js → scaffold-mzy3OsN5.js} +1 -1
- package/dist/cli/seed-C5q4UUIL.js +1 -0
- package/dist/cli/{seed-BmOC6_iz.js → seed-CIdg6s7m.js} +3 -3
- package/dist/cli/{skills-CUx7S0bk.js → skills-D3zwIlGA.js} +1 -1
- package/dist/cli/{snapshot-ClgWGd-b.js → snapshot-BBKFojqM.js} +3 -3
- package/dist/cli/{source-args-BDiUhsH8.js → source-args-Cwo7zwvq.js} +1 -1
- package/dist/cli/{spec-DjHpWZJM.js → spec-DOgQUZwM.js} +1 -1
- package/dist/cli/{spec-CM7iyRnE.js → spec-DZeIP9ta.js} +3 -3
- package/dist/cli/{sql-C4ymac2h.js → sql-CL_Lbhwl.js} +1 -1
- package/dist/cli/{sql-ybcjbz20.js → sql-DLOvvnBV.js} +1 -1
- package/dist/cli/stack-env-_uWWNHWq.js +87 -0
- package/dist/cli/{stack-status-Cb_D79ZR.js → stack-status-_NUgd-g5.js} +41 -1
- package/dist/cli/{version-CUKjFbNd.js → version-B7akdvDv.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +5 -5
- package/dist/{client-GdJH4XJM.d.ts → client-BAOZuBhz.d.ts} +1 -1
- package/dist/{client-B9_8yzct.d.ts → client-BJN0IMEp.d.ts} +2 -2
- package/dist/{client-QvuCfO4b.d.ts → client-BMcjLG0V.d.ts} +5 -5
- package/dist/{client-CeH7vd-g.d.ts → client-BN_fXOs7.d.ts} +1 -1
- package/dist/{client-CCGSn7m5.d.ts → client-BONsuFYf.d.ts} +4 -4
- package/dist/{client-CBQ2TV0r.d.ts → client-BPn9XhAM.d.ts} +1 -1
- package/dist/{client-ehjQ2tIT.d.ts → client-BtC-r4hE.d.ts} +3 -3
- package/dist/{client-DarDYaQj.d.ts → client-BuneNd-C.d.ts} +1 -1
- package/dist/{client-B_vHBwB6.d.ts → client-CHwNV8Kz.d.ts} +3 -3
- package/dist/{client-DbxvLC9Y.d.ts → client-CLQHsa-2.d.ts} +1 -1
- package/dist/{client-9ZOirdtr.d.ts → client-CMxxwT3N.d.ts} +3 -3
- package/dist/{client-B4a7f5ma.d.ts → client-CU7aNN_B.d.ts} +2 -2
- package/dist/{client-cWUWrgis.d.ts → client-CYEdJKjk.d.ts} +1 -1
- package/dist/{client-CNh-pjkT.d.ts → client-CYhSGlCN.d.ts} +3 -3
- package/dist/{client-5YAtJjyT.d.ts → client-D3gRTNSi.d.ts} +1 -1
- package/dist/{client-BqoYuTK3.d.ts → client-DB34f_7i.d.ts} +2 -2
- package/dist/{client-eCtwzCbQ.d.ts → client-DCawyopp.d.ts} +3 -3
- package/dist/{client-Bovn6-M9.d.ts → client-Dqa4XyJ5.d.ts} +1 -1
- package/dist/{client-CXTDJCIs.d.ts → client-Dr5h2r9r.d.ts} +1 -1
- package/dist/{client-CrZKZVbb.d.ts → client-DrTqKgvy.d.ts} +1 -1
- package/dist/{client-BNy-K6XT.d.ts → client-GCCRI9ge.d.ts} +1 -1
- package/dist/{client-DLz68Qga.d.ts → client-P6v3h7vh.d.ts} +1 -1
- package/dist/{client-CJT3xiuI.d.ts → client-P8l8ncxV.d.ts} +3 -3
- package/dist/{client-BXv09wO1.d.ts → client-kWg4OqIr.d.ts} +2 -2
- package/dist/{client-C3rmP3b0.d.ts → client-tvG258_1.d.ts} +4 -4
- package/dist/{client-Dft5Vq6m.d.ts → client-wKmX-f3r.d.ts} +1 -1
- package/dist/{composite-BFatHqOU.js → composite-1kPAxXto.js} +1 -1
- package/dist/{composite-B1Mmo4TU.d.ts → composite-DzvBL5nb.d.ts} +5 -5
- package/dist/{connectors-CR9FJGzV.d.ts → connectors-BwPNt-ZG.d.ts} +1 -1
- package/dist/{controller-BBXX1RMw.d.ts → controller-BZhiIb-N.d.ts} +1 -1
- package/dist/create/index.d.ts +24 -2
- package/dist/create/index.js +1001 -914
- package/dist/credentials/index.d.ts +2 -2
- package/dist/{define-M_r1d2AT.d.ts → define-DYZnvAbs.d.ts} +1 -1
- package/dist/{define-block-CPyJ95rq.d.ts → define-block-BHxLHLys.d.ts} +2 -2
- package/dist/edge/index.d.ts +8 -8
- package/dist/edge/index.js +3 -3
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{embeddings-lTUwzvW4.d.ts → embeddings-CKhygw4C.d.ts} +1 -1
- package/dist/{ended-DQmwYosO.d.ts → ended-De6H52nX.d.ts} +1 -1
- package/dist/{entitlements-DgkeStXd.d.ts → entitlements-CtBGXb3B.d.ts} +2 -2
- package/dist/eve/index.d.ts +3 -3
- package/dist/eve/index.js +1 -1
- package/dist/{eve-C_Onyk_j.d.ts → eve-B6ru2Bt4.d.ts} +2 -2
- package/dist/{executor-DfdC00xr.d.ts → executor-BWgJNbGh.d.ts} +1 -1
- package/dist/expo/index.d.ts +3 -3
- package/dist/expo/index.js +3 -3
- package/dist/expo-sqlite/index.d.ts +1 -1
- package/dist/{field-errors-DmJICh93.d.ts → field-errors-Z-sgsdoN.d.ts} +6 -6
- package/dist/{framework-D6IFkuAg.d.ts → framework-BQhTsLX-.d.ts} +5 -5
- package/dist/{framework-Ch8bMmQY.js → framework-C6PKBgme.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 +8 -8
- package/dist/hono/index.js +2 -2
- package/dist/{index-DgobXyil.d.ts → index-1Vsg-7YV.d.ts} +1 -1
- package/dist/{index-D8yhOz_4.d.ts → index-BJLPQr2s.d.ts} +36 -3
- package/dist/{index-CK0Sxx57.d.ts → index-C-_fs7EI.d.ts} +7 -7
- package/dist/{index-F6XTTkC9.d.ts → index-CXFf-c-j.d.ts} +4 -4
- package/dist/{index-CEcDqDhc.d.ts → index-Cm2-g_4H.d.ts} +1 -1
- package/dist/{index-qCG78-Rf.d.ts → index-DTQSeHx2.d.ts} +2 -2
- package/dist/{index-DHReeV74.d.ts → index-Hc4tetmB.d.ts} +1 -1
- package/dist/{index-Bq409YZn.d.ts → index-QWTq2o31.d.ts} +1 -1
- package/dist/{index-Csi8jD-m.d.ts → index-XcTBR4Gb.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{kit-BeZX2pR_.d.ts → kit-De-EVRhw.d.ts} +3 -3
- package/dist/{knowledge-CRk1jOAJ.d.ts → knowledge-B5zdpDD-.d.ts} +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-FhFXzObg.d.ts → list-query-aXr2WkGA.d.ts} +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/index.d.ts +15 -15
- package/dist/next/index.js +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +1 -1
- package/dist/otel/index.js +5 -5
- package/dist/{outbox-njgoVzFA.d.ts → outbox-B1hZ7PPY.d.ts} +1 -1
- package/dist/{ports-DCAcG26M.d.ts → ports-BCDIbC_U.d.ts} +1 -1
- package/dist/{ports-DGe1vzF2.d.ts → ports-P0A5wo_-.d.ts} +2 -2
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +2 -2
- package/dist/preset/index.js +2 -2
- package/dist/{preset-Cqwlwx6G.js → preset-Cf0T9GRt.js} +49 -6
- package/dist/{provider-CNs0Jx0I.d.ts → provider-DXgx5oSA.d.ts} +1 -1
- package/dist/{push-token-D2sDxSNN.d.ts → push-token-y1Gnz5bQ.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +7 -7
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +5 -5
- package/dist/react-router/index.js +2 -2
- package/dist/realtime/index.d.ts +5 -5
- package/dist/{refusal-CufncwaN.d.ts → refusal-C7geIBRl.d.ts} +1 -1
- package/dist/{resolve-f8QNuYI3.js → resolve-AtncaPTU.js} +12 -5
- package/dist/{resolve-Bqb8TMTt.d.ts → resolve-Ceft-18-.d.ts} +6 -2
- package/dist/{resource-execute-ruP2L1op.d.ts → resource-execute-Bxvgmx-n.d.ts} +1 -1
- package/dist/{resource-types-CGr0BbL-.d.ts → resource-types-LW1i5-h3.d.ts} +2 -2
- package/dist/{resources-BiQpsM6O.d.ts → resources-D3_FAz_H.d.ts} +1 -1
- package/dist/{respond-CEBC6KUX.d.ts → respond-BSL36dQp.d.ts} +1 -1
- package/dist/server/index.d.ts +27 -19
- package/dist/server/index.js +4 -4
- package/dist/{server-types-BKN_R4Ws.d.ts → server-types-fLdep4gb.d.ts} +11 -9
- package/dist/{session-CwpfitmI.d.ts → session-DObioXpX.d.ts} +3 -3
- package/dist/solid/index.d.ts +7 -7
- package/dist/{solid-controller-Uqi5ef6z.d.ts → solid-controller-CWotGxcG.d.ts} +1 -1
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/solid-start/index.js +2 -2
- package/dist/sql/index.d.ts +1 -1
- package/dist/sql/index.js +1 -1
- package/dist/{sql-DCfCbS2j.js → sql-CT1Jnwp8.js} +1 -1
- package/dist/ssr/index.d.ts +4 -4
- package/dist/ssr/index.js +1 -1
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +11 -0
- package/dist/{subject-readers-BNQzBDN9.d.ts → subject-readers-BUChuOxL.d.ts} +1 -1
- package/dist/{support-BAhTqI7y.js → support-C2wPYwD7.js} +1 -1
- package/dist/{support-view-IRnDLuGN.d.ts → support-view-Bj_lZ8Wr.d.ts} +1 -1
- package/dist/svelte/index.d.ts +6 -6
- package/dist/{svelte-controller-BQOIXWEw.d.ts → svelte-controller-sS4X66yL.d.ts} +1 -1
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tags-AUpl4Ob9.d.ts → tags-BrGopDVG.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-db/supabase/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenant-BNp3kBAG.d.ts → tenant-DZMLVuyQ.d.ts} +2 -2
- package/dist/testing/index.d.ts +13 -15
- package/dist/{topic-1WTkDnPd.d.ts → topic-DAY_HOX2.d.ts} +3 -3
- package/dist/{types-DDQ-Rsep.d.ts → types-BA1eTvy4.d.ts} +1 -1
- package/dist/{types-Bq64h5nY.d.ts → types-Bels39_u.d.ts} +2 -2
- package/dist/{types-DO9xWsGC.d.ts → types-DOC7wnh6.d.ts} +11 -2
- package/dist/{types-B4zhT6dq.d.ts → types-D_2rClz-.d.ts} +1 -1
- package/dist/upload-claim-BBFCZbBF.js +33 -0
- package/dist/{vault-DR2-zOjz.d.ts → vault-ClkzMGTP.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-BucYsoKq.d.ts → verify-DU4p9-Ve.d.ts} +1 -1
- package/dist/{version-TXpQEfh1.js → version-DSWxci83.js} +1 -1
- package/dist/{view-Bf7e07rQ.d.ts → view-KQhe6eNc.d.ts} +1 -1
- package/dist/vue/index.d.ts +7 -7
- package/dist/{vue-controller-Cav6Wt_r.d.ts → vue-controller-BUo1oove.d.ts} +1 -1
- package/dist/{watch-ry70AEm6.d.ts → watch-5btote1y.d.ts} +2 -2
- package/dist/{watch-topic-DWHy63ZJ.d.ts → watch-topic-C79ZW5-R.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/{workflow-sdk-DM7T3sF4.d.ts → workflow-sdk-CWdCWj7M.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/cli-commands-v1.json +15 -0
- package/schemas/config-v1.json +1 -1
- package/schemas/doctor-report-v1.json +1 -0
- package/dist/cli/add-DzRJEHzD.js +0 -1
- package/dist/cli/adopt-DDy50yz9.js +0 -1
- package/dist/cli/env-D-O91RK1.js +0 -1
- package/dist/cli/seed-C_BmN498.js +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
2
|
+
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
|
+
import { t as PROCESS_ENV } from "./env-C8R7Nf0a.js";
|
|
4
|
+
import { r as spawnInherited } from "./stack-status-_NUgd-g5.js";
|
|
5
|
+
import { i as staleVariables } from "./stack-env-_uWWNHWq.js";
|
|
6
|
+
import { i as readStackEnv } from "./env-Dh5K5t2U.js";
|
|
7
|
+
//#region src/cli/commands/run.ts
|
|
8
|
+
const ARGS = {
|
|
9
|
+
prefix: {
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "Browser variable prefix: next, vite, expo, nuxt, astro, sveltekit, a literal prefix, or \"none\". Defaults to env.prefix, then one detected from your framework",
|
|
12
|
+
valueHint: "prefix"
|
|
13
|
+
},
|
|
14
|
+
"status-file": {
|
|
15
|
+
type: "string",
|
|
16
|
+
description: "Read `supabase status -o json` output from a file",
|
|
17
|
+
valueHint: "file"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Runs a command with the stack's variables set. They override the shell,
|
|
22
|
+
* and frameworks never override a variable that is already set, so they win
|
|
23
|
+
* over `.env.local` too.
|
|
24
|
+
*/
|
|
25
|
+
async function runWithStackEnv(config, args, { cwd, env, log, signal, spawn = spawnInherited }) {
|
|
26
|
+
const [command, ...rest] = args._ ?? [];
|
|
27
|
+
if (command === void 0) throw new CliError("usage", "Name the command to run after --, e.g. better-supabase run -- next dev.", { suggestion: "better-supabase run -- next dev" });
|
|
28
|
+
const { values } = await readStackEnv(config, args, env, signal);
|
|
29
|
+
const shell = env[PROCESS_ENV] ?? {};
|
|
30
|
+
const stale = staleVariables(shell, values);
|
|
31
|
+
for (const variable of stale) log.warn(`${variable.message} run uses the stack's value.`);
|
|
32
|
+
return {
|
|
33
|
+
code: await spawn(command, rest, {
|
|
34
|
+
cwd,
|
|
35
|
+
env: {
|
|
36
|
+
...shell,
|
|
37
|
+
...values
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
data: {
|
|
41
|
+
command: [command, ...rest],
|
|
42
|
+
keys: Object.keys(values),
|
|
43
|
+
warnings: stale.map(({ message }) => message),
|
|
44
|
+
stale: stale.map(({ variable, shell: from, stack }) => ({
|
|
45
|
+
variable,
|
|
46
|
+
shell: from,
|
|
47
|
+
stack
|
|
48
|
+
}))
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const runCommand = defineCliCommand({
|
|
53
|
+
meta: commandMeta("run"),
|
|
54
|
+
args: ARGS,
|
|
55
|
+
run: (args, { config, cwd, env, log, signal }) => runWithStackEnv(config, args, {
|
|
56
|
+
cwd,
|
|
57
|
+
env,
|
|
58
|
+
log,
|
|
59
|
+
signal
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { runCommand };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
2
2
|
import { a as sameText, n as importPath, t as display } from "./io-BiPX-_J1.js";
|
|
3
|
-
import { i as writeAtomic, n as cachedDatabaseTypes, t as CACHE_DIR } from "./cache-
|
|
3
|
+
import { i as writeAtomic, n as cachedDatabaseTypes, t as CACHE_DIR } from "./cache-DQwgb3rg.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
5
5
|
import { d as typegenVersion, f as typegenVersionNotice, i as oxfmtInstalled, l as stabilizeMetadata, r as generateDatabaseTypes } from "./typegen--TfvOPLh.js";
|
|
6
6
|
import { a as buildModel, i as metaPaths, l as prop, n as emitMeta, o as generatorModel, r as emitModule, t as GENERATED_HEADER, u as q } from "./emit-56LAG_Px.js";
|
|
7
7
|
import { C as accessRequirements, D as providerLabel, E as moduleKeyProblems, O as unsafeKey, S as accessProviderMode, T as entitlementsMode, c as writeLatestMigration, l as writesMigrations, n as READ_SETS_SUFFIX, r as latestMigration, s as sameModuleMigration, v as migrationsDir, w as entitlementRequirements, x as compiledReadSets } from "./module-migration-CPhuiY8C.js";
|
|
8
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
8
|
+
import { t as loadSnapshot } from "./snapshot-BBKFojqM.js";
|
|
9
9
|
import { a as hasConflicts, c as fileDiff, i as changedFiles, n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|
|
10
10
|
import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-DKLuA1Tp.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-
|
|
1
|
+
import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-dfdVhU_2.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-2JfIPVMQ.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-B7akdvDv.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-Caiz_0so.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-CCrTYK3W.js";
|
|
6
|
-
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-
|
|
7
|
-
import { n as movedCommand, r as movedFlag } from "./moved-
|
|
6
|
+
import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-QzDvMpXH.js";
|
|
7
|
+
import { n as movedCommand, r as movedFlag } from "./moved-BMQu1YNY.js";
|
|
8
8
|
import { n as HTTP_CHANNEL, t as EXEC_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
@@ -16,41 +16,42 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* Each loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["apply", () => import("./apply-
|
|
22
|
-
["adopt", () => import("./adopt-
|
|
23
|
-
["preset decode", () => import("./preset-
|
|
24
|
-
["preset info", () => import("./preset-
|
|
25
|
-
["blocks list", () => import("./blocks-
|
|
26
|
-
["blocks view", () => import("./blocks-
|
|
27
|
-
["blocks search", () => import("./blocks-
|
|
28
|
-
["skills list", () => import("./skills-
|
|
29
|
-
["skills install", () => import("./skills-
|
|
30
|
-
["completion", () => import("./completion-
|
|
31
|
-
["env", () => import("./env-
|
|
32
|
-
["
|
|
33
|
-
["
|
|
34
|
-
["
|
|
35
|
-
["
|
|
36
|
-
["spec
|
|
37
|
-
["
|
|
38
|
-
["scaffold
|
|
39
|
-
["
|
|
40
|
-
["
|
|
41
|
-
["
|
|
42
|
-
["
|
|
43
|
-
["
|
|
44
|
-
["
|
|
45
|
-
["sql
|
|
46
|
-
["sql
|
|
47
|
-
["sql
|
|
48
|
-
["sql
|
|
49
|
-
["sql
|
|
50
|
-
["
|
|
51
|
-
["codemod 0.
|
|
52
|
-
["codemod 0.
|
|
53
|
-
["codemod 0.
|
|
19
|
+
["init", () => import("./init-DNomoycJ.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-DnAyR9w_.js").then((m) => m.addCommand)],
|
|
21
|
+
["apply", () => import("./apply-CiBFOFGw.js").then((m) => m.applyCommand)],
|
|
22
|
+
["adopt", () => import("./adopt-BuS-DC7_.js").then((m) => m.adoptCommand)],
|
|
23
|
+
["preset decode", () => import("./preset-CfIs24cc.js").then((m) => m.presetDecodeCommand)],
|
|
24
|
+
["preset info", () => import("./preset-CfIs24cc.js").then((m) => m.presetInfoCommand)],
|
|
25
|
+
["blocks list", () => import("./blocks-DeLQOlUK.js").then((m) => m.blocksListCommand)],
|
|
26
|
+
["blocks view", () => import("./blocks-DeLQOlUK.js").then((m) => m.blocksViewCommand)],
|
|
27
|
+
["blocks search", () => import("./blocks-DeLQOlUK.js").then((m) => m.blocksSearchCommand)],
|
|
28
|
+
["skills list", () => import("./skills-D3zwIlGA.js").then((m) => m.skillsListCommand)],
|
|
29
|
+
["skills install", () => import("./skills-D3zwIlGA.js").then((m) => m.skillsInstallCommand)],
|
|
30
|
+
["completion", () => import("./completion-D4InNrxw.js").then((m) => m.completionCommand)],
|
|
31
|
+
["env", () => import("./env-Cmu99uKR.js").then((m) => m.envCommand)],
|
|
32
|
+
["run", () => import("./run-Bck-p0MI.js").then((m) => m.runCommand)],
|
|
33
|
+
["keys", () => import("./keys-B8dIJwwi.js").then((m) => m.keysCommand)],
|
|
34
|
+
["gen", () => import("./gen-D3sC5jDn.js").then((m) => m.genCommand)],
|
|
35
|
+
["introspect", () => import("./introspect-kYX06Q2g.js").then((m) => m.introspectCommand)],
|
|
36
|
+
["spec emit", () => import("./spec-DOgQUZwM.js").then((m) => m.specEmitCommand)],
|
|
37
|
+
["spec validate", () => import("./spec-DOgQUZwM.js").then((m) => m.specValidateCommand)],
|
|
38
|
+
["scaffold api", () => import("./scaffold-mzy3OsN5.js").then((m) => m.scaffoldApiCommand)],
|
|
39
|
+
["scaffold screens", () => import("./scaffold-mzy3OsN5.js").then((m) => m.scaffoldScreensCommand)],
|
|
40
|
+
["seed", () => import("./seed-C5q4UUIL.js").then((m) => m.seedCommand)],
|
|
41
|
+
["db query", () => import("./db-TRymMyAW.js").then((m) => m.dbQueryCommand)],
|
|
42
|
+
["doctor", () => import("./doctor-DOfy6kjt.js").then((m) => m.doctorCommand)],
|
|
43
|
+
["config", () => import("./config-DI6ielsx.js").then((m) => m.configCommand)],
|
|
44
|
+
["mcp", () => import("./mcp-DrxB2Wuw.js").then((m) => m.mcpCommand)],
|
|
45
|
+
["sql list", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlListCommand)],
|
|
46
|
+
["sql add", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlAddCommand)],
|
|
47
|
+
["sql sync", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlSyncCommand)],
|
|
48
|
+
["sql upgrade", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlUpgradeCommand)],
|
|
49
|
+
["sql data", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlDataCommand)],
|
|
50
|
+
["sql print", () => import("./sql-CL_Lbhwl.js").then((m) => m.sqlPrintCommand)],
|
|
51
|
+
["codemod 0.4", () => import("./codemod-BzAMX4el.js").then((m) => m.codemodCommand("0.4"))],
|
|
52
|
+
["codemod 0.5", () => import("./codemod-BzAMX4el.js").then((m) => m.codemodCommand("0.5"))],
|
|
53
|
+
["codemod 0.6", () => import("./codemod-BzAMX4el.js").then((m) => m.codemodCommand("0.6"))],
|
|
54
|
+
["codemod 0.9", () => import("./codemod-BzAMX4el.js").then((m) => m.codemodCommand("0.9"))]
|
|
54
55
|
];
|
|
55
56
|
/** The built-in commands, for `createCli`. */
|
|
56
57
|
function builtinCommands() {
|
|
@@ -88,10 +89,16 @@ const docsUrl = (path) => `${DOCS_ORIGIN}${path}`;
|
|
|
88
89
|
/** A list option's hint ends in `,...`, unless the command already wrote it. */
|
|
89
90
|
const listHint = (hint, list) => list && !hint.endsWith("...") ? `${hint},...` : hint;
|
|
90
91
|
function optionName(name, definition, list) {
|
|
91
|
-
const aliases = "alias" in definition ? [definition.alias].flat()
|
|
92
|
+
const aliases = "alias" in definition ? [definition.alias].flat() : [];
|
|
93
|
+
const short = aliases.filter((alias) => alias.length === 1);
|
|
94
|
+
const long = aliases.filter((alias) => alias.length > 1);
|
|
92
95
|
const hint = definition.type === "enum" && definition.options ? `<${definition.options.join("|")}>` : definition.type === "string" ? `<${listHint(definition.valueHint ?? name, list)}>` : "";
|
|
93
96
|
const flag = negated(definition) ? `no-${name}` : name;
|
|
94
|
-
return [
|
|
97
|
+
return [
|
|
98
|
+
...short.map((alias) => `-${alias}`),
|
|
99
|
+
`--${flag}${hint ? ` ${hint}` : ""}`,
|
|
100
|
+
...long.map((alias) => `--${alias}`)
|
|
101
|
+
].join(", ");
|
|
95
102
|
}
|
|
96
103
|
/** A boolean that is on by default, so the flag a person types is `--no-<name>`. */
|
|
97
104
|
const negated = (definition) => definition.type === "boolean" && definition.default === true;
|
|
@@ -116,6 +123,7 @@ function effectText(effect) {
|
|
|
116
123
|
switch (effect.kind) {
|
|
117
124
|
case "files": return "writes files";
|
|
118
125
|
case "database": return effect.access === "read" ? "reads the database" : "writes to the database";
|
|
126
|
+
case "process": return "runs the command you pass";
|
|
119
127
|
case "network": switch (effect.target) {
|
|
120
128
|
case "supabase-api": return "calls the Supabase Management API";
|
|
121
129
|
case "github": return "downloads from GitHub";
|
|
@@ -449,7 +457,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
449
457
|
};
|
|
450
458
|
if (argv[0] === "__complete") {
|
|
451
459
|
const words = argv[1] === "--" ? argv.slice(2) : argv.slice(1);
|
|
452
|
-
const lines = await import("./completion-
|
|
460
|
+
const lines = await import("./completion-4lLjtI49.js").then(async ({ complete, completionLines }) => completionLines(await complete(tree, words))).catch(() => "");
|
|
453
461
|
if (lines !== "") out(lines);
|
|
454
462
|
return {
|
|
455
463
|
code: 0,
|
|
@@ -578,7 +586,7 @@ function cliFromTree(init, extra = {}) {
|
|
|
578
586
|
try {
|
|
579
587
|
const [loaded, { defaultConfig, discoverConfig, loadConfig }, { configEnvironment, isCi, parseEnv }] = await Promise.all([
|
|
580
588
|
node.load(),
|
|
581
|
-
import("./config-
|
|
589
|
+
import("./config-CCyweX7Y.js"),
|
|
582
590
|
import("./env-B7TWPEt0.js")
|
|
583
591
|
]);
|
|
584
592
|
command = loaded;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
4
4
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as scaffoldApiCommand, i as scaffoldScreensCommand } from "./scaffold-
|
|
1
|
+
export { r as scaffoldApiCommand, i as scaffoldScreensCommand } from "./scaffold-DoURlDEI.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as seedCommand } from "./seed-CIdg6s7m.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
2
2
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CCrTYK3W.js";
|
|
3
3
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl, o as importExport } from "./config-yZ55rsKZ.js";
|
|
5
5
|
import { m as supabaseDir } from "./supabase-toml-BC5sNVKU.js";
|
|
6
6
|
import { t as connect } from "./db-DT1bGB02.js";
|
|
7
7
|
import { a as hasConflicts, n as applyPlan, o as insideRoot, r as changeLines, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
8
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
8
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Cwo7zwvq.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { resolve } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
2
2
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
4
4
|
import { n as applyPlan, s as planResult, t as PLAN_ARGS } from "./files-DDvAwTko.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-B7akdvDv.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
3
3
|
import { r as redactUrl } from "./redact-PjNswZOs.js";
|
|
4
4
|
import { n as HTTP_CHANNEL } from "./trace-VbdO6bcN.js";
|
|
5
|
-
import { o as readExtras, r as cachedIntrospect } from "./cache-
|
|
5
|
+
import { o as readExtras, r as cachedIntrospect } from "./cache-DQwgb3rg.js";
|
|
6
6
|
import { l as stabilizeMetadata, n as TypegenMissingError, o as readGeneratorMetadata, p as validateGeneratorMetadata } from "./typegen--TfvOPLh.js";
|
|
7
|
-
import { n as databaseUrl, u as accessToken } from "./config-
|
|
7
|
+
import { n as databaseUrl, u as accessToken } from "./config-yZ55rsKZ.js";
|
|
8
8
|
import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-BC5sNVKU.js";
|
|
9
9
|
import { t as connect } from "./db-DT1bGB02.js";
|
|
10
10
|
import { channel } from "node:diagnostics_channel";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
2
|
-
import { l as stdinDatabaseUrl } from "./config-
|
|
2
|
+
import { l as stdinDatabaseUrl } from "./config-yZ55rsKZ.js";
|
|
3
3
|
//#region src/cli/commands/source-args.ts
|
|
4
4
|
/** The connection string from stdin, for commands that connect but read no schema. */
|
|
5
5
|
const DB_URL_STDIN_ARG = { "db-url-stdin": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as specEmitCommand, i as specValidateCommand } from "./spec-
|
|
1
|
+
export { n as specEmitCommand, i as specValidateCommand } from "./spec-DZeIP9ta.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
3
|
+
import { t as VERSION } from "./version-B7akdvDv.js";
|
|
4
4
|
import { i as failedResult, n as CliError, r as errorText } from "./errors-Caiz_0so.js";
|
|
5
5
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
6
|
-
import { i as writeAtomic, t as CACHE_DIR } from "./cache-
|
|
6
|
+
import { i as writeAtomic, t as CACHE_DIR } from "./cache-DQwgb3rg.js";
|
|
7
7
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
8
8
|
import { t as importFresh } from "./fresh-import-BeYf9I3x.js";
|
|
9
9
|
import { i as changedFiles, n as applyPlan, r as changeLines } from "./files-DDvAwTko.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./module-migration-CPhuiY8C.js";
|
|
2
|
-
export { n as sqlAddCommand, r as sqlDataCommand, i as sqlListCommand, a as sqlPrintCommand, o as sqlSyncCommand, s as sqlUpgradeCommand } from "./sql-
|
|
2
|
+
export { n as sqlAddCommand, r as sqlDataCommand, i as sqlListCommand, a as sqlPrintCommand, o as sqlSyncCommand, s as sqlUpgradeCommand } from "./sql-DLOvvnBV.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as commandMeta, r as defineCliCommand } from "./command-
|
|
1
|
+
import { p as commandMeta, r as defineCliCommand } from "./command-dfdVhU_2.js";
|
|
2
2
|
import { i as plain } from "./style-2JfIPVMQ.js";
|
|
3
3
|
import { n as CliError } from "./errors-Caiz_0so.js";
|
|
4
4
|
import { t as display } from "./io-BiPX-_J1.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
//#region src/cli/stack-env.ts
|
|
3
|
+
/** Framework names `--prefix` accepts, with the prefix each one exposes to the browser. */
|
|
4
|
+
const PREFIX_NAMES = {
|
|
5
|
+
next: "NEXT_PUBLIC_",
|
|
6
|
+
vite: "VITE_",
|
|
7
|
+
expo: "EXPO_PUBLIC_",
|
|
8
|
+
nuxt: "NUXT_PUBLIC_",
|
|
9
|
+
astro: "PUBLIC_",
|
|
10
|
+
sveltekit: "PUBLIC_",
|
|
11
|
+
none: ""
|
|
12
|
+
};
|
|
13
|
+
/** A `--prefix` value as a variable prefix: a framework name, `none`, or the prefix itself. */
|
|
14
|
+
function prefixFromFlag(flag) {
|
|
15
|
+
return PREFIX_NAMES[flag.toLowerCase()] ?? flag;
|
|
16
|
+
}
|
|
17
|
+
const text = (status, ...keys) => {
|
|
18
|
+
for (const key of keys) {
|
|
19
|
+
const value = status[key];
|
|
20
|
+
if (typeof value === "string" && value.length > 0) return value;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
/** The JWKS endpoint Supabase Auth serves under an API URL. */
|
|
24
|
+
function jwksUrlOf(apiUrl) {
|
|
25
|
+
return `${apiUrl.replace(/\/+$/, "")}/auth/v1/.well-known/jwks.json`;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The variables `env` writes and `run` sets, from `supabase status`. The
|
|
29
|
+
* browser prefix only ever gets the URL and the publishable key; the secret
|
|
30
|
+
* key, database URL and JWT secret stay server-only. `undefined` when the
|
|
31
|
+
* status has no API URL or publishable key.
|
|
32
|
+
*/
|
|
33
|
+
function stackEnvValues(status, prefix) {
|
|
34
|
+
const url = text(status, "API_URL");
|
|
35
|
+
const publishableKey = text(status, "PUBLISHABLE_KEY", "ANON_KEY");
|
|
36
|
+
if (!url || !publishableKey) return;
|
|
37
|
+
const values = {
|
|
38
|
+
SUPABASE_URL: url,
|
|
39
|
+
SUPABASE_PUBLISHABLE_KEY: publishableKey
|
|
40
|
+
};
|
|
41
|
+
const secretKey = text(status, "SECRET_KEY", "SERVICE_ROLE_KEY");
|
|
42
|
+
if (secretKey) values["SUPABASE_SECRET_KEY"] = secretKey;
|
|
43
|
+
values["SUPABASE_JWKS_URL"] = jwksUrlOf(url);
|
|
44
|
+
const dbUrl = text(status, "DB_URL");
|
|
45
|
+
if (dbUrl) values["SUPABASE_DB_URL"] = dbUrl;
|
|
46
|
+
const jwtSecret = text(status, "JWT_SECRET");
|
|
47
|
+
if (jwtSecret) values["SUPABASE_JWT_SECRET"] = jwtSecret;
|
|
48
|
+
if (prefix.length > 0) {
|
|
49
|
+
values[`${prefix}SUPABASE_URL`] = url;
|
|
50
|
+
values[`${prefix}SUPABASE_PUBLISHABLE_KEY`] = publishableKey;
|
|
51
|
+
}
|
|
52
|
+
return values;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A value safe to print: a URL shows its host and port (and a database URL
|
|
56
|
+
* its database name), anything else a SHA-256 fingerprint. Never the value
|
|
57
|
+
* itself, so keys and passwords stay out of logs.
|
|
58
|
+
*/
|
|
59
|
+
function redactValue(value) {
|
|
60
|
+
if (/^(?:https?|postgres(?:ql)?):\/\//i.test(value)) try {
|
|
61
|
+
const url = new URL(value);
|
|
62
|
+
const database = url.protocol.startsWith("postgres") ? url.pathname : "";
|
|
63
|
+
return `${url.host}${database === "/" ? "" : database}`;
|
|
64
|
+
} catch {}
|
|
65
|
+
return `sha256:${createHash("sha256").update(value).digest("hex").slice(0, 8)}`;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The stack variables the shell exports with another value, such as a
|
|
69
|
+
* `SUPABASE_URL` left over from another checkout's stack. Values are
|
|
70
|
+
* redacted with `redactValue`.
|
|
71
|
+
*/
|
|
72
|
+
function staleVariables(shell, values) {
|
|
73
|
+
return Object.entries(values).flatMap(([variable, stackValue]) => {
|
|
74
|
+
const exported = shell[variable];
|
|
75
|
+
if (exported === void 0 || exported.length === 0 || exported === stackValue) return [];
|
|
76
|
+
const redactedShell = redactValue(exported);
|
|
77
|
+
const redactedStack = redactValue(stackValue);
|
|
78
|
+
return [{
|
|
79
|
+
variable,
|
|
80
|
+
shell: redactedShell,
|
|
81
|
+
stack: redactedStack,
|
|
82
|
+
message: `${variable} is exported as ${redactedShell}, but the running stack has ${redactedStack}.`
|
|
83
|
+
}];
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { staleVariables as i, prefixFromFlag as n, stackEnvValues as r, PREFIX_NAMES as t };
|
|
@@ -395,6 +395,46 @@ async function exec(command, args, cwd, env, options) {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
+
const SIGNAL_NUMBERS = {
|
|
399
|
+
SIGHUP: 1,
|
|
400
|
+
SIGINT: 2,
|
|
401
|
+
SIGKILL: 9,
|
|
402
|
+
SIGTERM: 15
|
|
403
|
+
};
|
|
404
|
+
const FORWARDED_SIGNALS = ["SIGINT", "SIGTERM"];
|
|
405
|
+
/**
|
|
406
|
+
* Runs a command on the terminal (stdin, stdout and stderr inherited) and
|
|
407
|
+
* resolves to its exit code, `128 + n` when signal `n` ended it. SIGINT and
|
|
408
|
+
* SIGTERM sent to the CLI go on to the command, so a process manager that
|
|
409
|
+
* signals only the CLI still stops it. 127 when it could not start.
|
|
410
|
+
*/
|
|
411
|
+
async function spawnInherited(command, args, options) {
|
|
412
|
+
const running = x(command, [...args], {
|
|
413
|
+
nodeOptions: {
|
|
414
|
+
cwd: options.cwd,
|
|
415
|
+
stdio: "inherit",
|
|
416
|
+
env: { ...options.env }
|
|
417
|
+
},
|
|
418
|
+
throwOnError: false
|
|
419
|
+
});
|
|
420
|
+
const forwards = FORWARDED_SIGNALS.map((name) => {
|
|
421
|
+
const forward = () => {
|
|
422
|
+
running.kill(name);
|
|
423
|
+
};
|
|
424
|
+
process.on(name, forward);
|
|
425
|
+
return () => process.off(name, forward);
|
|
426
|
+
});
|
|
427
|
+
try {
|
|
428
|
+
const result = await running;
|
|
429
|
+
const signal = running.process?.signalCode;
|
|
430
|
+
if (signal) return 128 + (SIGNAL_NUMBERS[signal] ?? 1);
|
|
431
|
+
return result.exitCode ?? NOT_FOUND;
|
|
432
|
+
} catch {
|
|
433
|
+
return NOT_FOUND;
|
|
434
|
+
} finally {
|
|
435
|
+
for (const off of forwards) off();
|
|
436
|
+
}
|
|
437
|
+
}
|
|
398
438
|
/** `node_modules/.bin/supabase` in `cwd` or a parent, when the project installs the CLI. */
|
|
399
439
|
function localSupabase(cwd) {
|
|
400
440
|
const bin = join("node_modules", ".bin", process.platform === "win32" ? "supabase.cmd" : "supabase");
|
|
@@ -453,4 +493,4 @@ async function readStackStatus(root, env, options = {}) {
|
|
|
453
493
|
};
|
|
454
494
|
}
|
|
455
495
|
//#endregion
|
|
456
|
-
export { readStackStatus as n, parseStackStatus as t };
|
|
496
|
+
export { readStackStatus as n, spawnInherited as r, parseStackStatus as t };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-
|
|
2
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-
|
|
3
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-
|
|
4
|
-
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-
|
|
1
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-C79ZW5-R.js";
|
|
2
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-BCDIbC_U.js";
|
|
3
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-Bfo40o63.js";
|
|
4
|
+
import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-BZhiIb-N.js";
|
|
5
5
|
import { n as FunctionContract } from "../function-contract-DWqFl_QO.js";
|
|
6
|
-
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-
|
|
6
|
+
import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-CXFf-c-j.js";
|
|
7
7
|
export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-BREt7qOh.js";
|
|
2
|
-
import { S as UploadOptions, x as UploadBody } from "../../bucket-
|
|
3
|
-
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-
|
|
4
|
-
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-
|
|
5
|
-
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-
|
|
6
|
-
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-
|
|
2
|
+
import { S as UploadOptions, x as UploadBody } from "../../bucket-BbePDVwc.js";
|
|
3
|
+
import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-C79ZW5-R.js";
|
|
4
|
+
import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-BCDIbC_U.js";
|
|
5
|
+
import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-Bfo40o63.js";
|
|
6
|
+
import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-y1Gnz5bQ.js";
|
|
7
7
|
import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-BjFPqwLz.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
//#region src/client/native/auto-refresh.d.ts
|
|
@@ -3,7 +3,7 @@ import { b as DbError, t as AsyncResult } from "./result-BREt7qOh.js";
|
|
|
3
3
|
import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
4
4
|
import { n as BlockOptions } from "./block-helpers-CjcQM1yA.js";
|
|
5
5
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
7
7
|
//#region src/blocks/onboarding/onboarding.d.ts
|
|
8
8
|
type ChecklistScope = "user" | "organization";
|
|
9
9
|
/** One step. `events` completes it when the outbox records one of those types. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
2
|
-
import { t as EntitlementClaimOptions } from "./entitlements-
|
|
1
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
2
|
+
import { t as EntitlementClaimOptions } from "./entitlements-CtBGXb3B.js";
|
|
3
3
|
//#region src/blocks/entitlements/client.d.ts
|
|
4
4
|
interface FeatureGateControllerOptions {
|
|
5
5
|
readonly auth: AuthPort;
|
|
@@ -8,11 +8,11 @@ import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpe
|
|
|
8
8
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
9
9
|
import { n as ExtraFields, r as FieldsOf } from "./block-fields-DnaDbgZS.js";
|
|
10
10
|
import { i as EventSink, t as CloudEvent } from "./cloud-event-DXkNoI6v.js";
|
|
11
|
-
import { t as BetterSupabase } from "./define-
|
|
12
|
-
import { p as SubscriptionStatus } from "./topic-
|
|
13
|
-
import { n as TopicPort } from "./watch-topic-
|
|
14
|
-
import { i as ListDefinition } from "./list-query-
|
|
15
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
11
|
+
import { t as BetterSupabase } from "./define-DYZnvAbs.js";
|
|
12
|
+
import { p as SubscriptionStatus } from "./topic-DAY_HOX2.js";
|
|
13
|
+
import { n as TopicPort } from "./watch-topic-C79ZW5-R.js";
|
|
14
|
+
import { i as ListDefinition } from "./list-query-aXr2WkGA.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
16
16
|
//#region src/blocks/comments/comments.d.ts
|
|
17
17
|
interface CommentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as SubscriptionStatus } from "./topic-
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { l as StoragePort } from "./ports-
|
|
4
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
1
|
+
import { p as SubscriptionStatus } from "./topic-DAY_HOX2.js";
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-C79ZW5-R.js";
|
|
3
|
+
import { l as StoragePort } from "./ports-BCDIbC_U.js";
|
|
4
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
5
5
|
//#region src/blocks/inbox/client.d.ts
|
|
6
6
|
/** Loads one list, e.g. a server action that calls `inbox.conversations.list()`. */
|
|
7
7
|
type InboxSource<T> = () => Promise<readonly T[]>;
|
|
@@ -6,7 +6,7 @@ import { n as BlockOptions } from "./block-helpers-CjcQM1yA.js";
|
|
|
6
6
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
7
7
|
import { r as FieldsOf } from "./block-fields-DnaDbgZS.js";
|
|
8
8
|
import { g as JobHandler } from "./types-BEEFkNFY.js";
|
|
9
|
-
import { n as Controller } from "./controller-
|
|
9
|
+
import { n as Controller } from "./controller-BZhiIb-N.js";
|
|
10
10
|
import { t as VisibleRange } from "./range-p5V4rBhZ.js";
|
|
11
11
|
//#region src/blocks/bookings/bookings.d.ts
|
|
12
12
|
interface BookingsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as SubscriptionStatus } from "./topic-
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
1
|
+
import { p as SubscriptionStatus } from "./topic-DAY_HOX2.js";
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-C79ZW5-R.js";
|
|
3
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
4
4
|
//#region src/blocks/notifications/client.d.ts
|
|
5
5
|
/** Loads one list of items, e.g. a server action that calls `notifications.list()`. */
|
|
6
6
|
type NotificationSource<T> = () => Promise<readonly T[]>;
|
|
@@ -7,7 +7,7 @@ import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "./block-helpers-CjcQM1yA.js";
|
|
8
8
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
9
9
|
import { i as RowFields, r as FieldsOf } from "./block-fields-DnaDbgZS.js";
|
|
10
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
10
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
11
11
|
//#region src/sql/modules/invitations-tables.d.ts
|
|
12
12
|
declare const INVITATION_ERRORS: {
|
|
13
13
|
readonly INVITATION_FORBIDDEN: "42501";
|
|
@@ -7,9 +7,9 @@ import { t as BlockTransport } from "./block-transport-DezJPPA0.js";
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "./block-helpers-CjcQM1yA.js";
|
|
8
8
|
import { n as BlockHooks } from "./block-hooks-DcPJHztl.js";
|
|
9
9
|
import { i as EventSink, t as CloudEvent } from "./cloud-event-DXkNoI6v.js";
|
|
10
|
-
import { Bt as WhereInput, t as BetterSupabase } from "./define-
|
|
11
|
-
import { i as ListDefinition } from "./list-query-
|
|
12
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
10
|
+
import { Bt as WhereInput, t as BetterSupabase } from "./define-DYZnvAbs.js";
|
|
11
|
+
import { i as ListDefinition } from "./list-query-aXr2WkGA.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
13
13
|
import { a as UndoToken } from "./undo-BsdYRox7.js";
|
|
14
14
|
import { n as AuditCategory } from "./context-Cv3KlxWY.js";
|
|
15
15
|
//#region src/blocks/audit/audit.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, f as Result } from "./result-BREt7qOh.js";
|
|
3
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
3
|
+
import { n as Controller, t as AuthPort } from "./controller-BZhiIb-N.js";
|
|
4
4
|
import { t as AuthReply } from "./auth-reply-Dj124sbX.js";
|
|
5
5
|
//#region src/blocks/sessions/client.d.ts
|
|
6
6
|
/** An OAuth client as the Auth OAuth server describes it. */
|