better-supabase 0.37.0 → 0.39.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/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-BlhdqqHf.d.ts → app-tables-BeLFmp0l.d.ts} +1 -1
- package/dist/{authorization-C7yjZttV.d.ts → authorization-DQZ8Lrp5.d.ts} +46 -6
- package/dist/{bind-BspFMDdW.d.ts → bind-DsDKjuQn.d.ts} +1 -1
- package/dist/{block-env-CLco8YUl.d.ts → block-env-mNi2rPSF.d.ts} +3 -3
- package/dist/block-subjects-CINiJW1R.js +253 -0
- package/dist/{block-tables-DfomofFv.d.ts → block-tables-DYFRvRWW.d.ts} +1 -1
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +1 -1
- package/dist/blocks/catalog/index.d.ts +29 -5
- package/dist/blocks/catalog/index.js +42 -9
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.d.ts +2 -0
- package/dist/blocks/expenses/index.js +10 -3
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +15 -1
- package/dist/blocks/invoices/index.js +14 -1
- package/dist/blocks/leave/index.d.ts +35 -1
- package/dist/blocks/leave/index.js +18 -3
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/add-BCkaPIvM.js +1 -0
- package/dist/cli/{add-DqfJVb1F.js → add-Ba8xoX4q.js} +10 -10
- package/dist/cli/{add-Buuy7BSU.js → add-DKlk-VV9.js} +2 -2
- package/dist/cli/{app-table-files-Ku-4tPUu.js → app-table-files-Dw02ao0W.js} +2 -2
- package/dist/cli/{app-tables-Dg0sh4dH.js → app-tables-iSQ0c7G3.js} +2 -2
- package/dist/cli/{backfill-Dspz6kVJ.js → backfill-sYQgRuGd.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CqVBlc4L.js → blocks-BAj3U18j.js} +1 -1
- package/dist/cli/{blocks-B8LAph-w.js → blocks-YKQzZhPK.js} +1 -1
- package/dist/cli/{cache-BbuuCIRU.js → cache-BFSbb4is.js} +1 -1
- package/dist/cli/{codemod-DIAy8uXt.js → codemod-vbToOtFK.js} +1 -1
- package/dist/cli/{content-mapper-NXfJ5VkP.js → content-mapper-COnyl3V7.js} +2 -2
- package/dist/cli/{doctor-CUOyLE0c.js → doctor-BTGesU_-.js} +15 -15
- package/dist/cli/{gen-s9canfdC.js → gen-h1Ncsh1X.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-Zs0Ca5on.js → init-DCy-FlB2.js} +8 -8
- package/dist/cli/{live-BaLsNove.js → live-BUOVB-DV.js} +2 -2
- package/dist/cli/{mcp-ST7bVpJD.js → mcp-CLAjfETj.js} +2 -2
- package/dist/cli/{metadata-aOvlCOOg.js → metadata-DqcJb3p5.js} +3 -3
- package/dist/cli/{migrate-ClBx3Ggx.js → migrate-dI1IaRan.js} +1 -1
- package/dist/cli/{migration-safety-mjm1pghO.js → migration-safety-Cj2AZdIH.js} +1 -1
- package/dist/cli/{migrations-tzItvwxT.js → migrations-CFIlnOmr.js} +2 -2
- package/dist/cli/{module-migration-D0Rjdvdx.js → module-migration-DteyIWzV.js} +2 -2
- package/dist/cli/powersync-D-1aQ3C6.js +1 -0
- package/dist/cli/{powersync-DryX_DMG.js → powersync-DWFvtUuZ.js} +3 -3
- package/dist/cli/{print-fOUnKwA9.js → print-DUUGo-bA.js} +2 -2
- package/dist/cli/{providers-BR1d_5jA.js → providers-B4q4yMUv.js} +1 -1
- package/dist/cli/{prune-workflows-CCjzNrxl.js → prune-workflows-DhJX2wAQ.js} +1 -1
- package/dist/cli/{remove-B_0OIusa.js → remove-BsAhvYpx.js} +5 -5
- package/dist/cli/{render-BCJKDX3c.js → render-CvRXYRSy.js} +3 -3
- package/dist/cli/{run-BctvQX_g.js → run-BY0fbQxQ.js} +27 -27
- package/dist/cli/{run-4VUQTR-R.js → run-DxWZi4IJ.js} +9 -9
- package/dist/cli/{shared-oY7PGamd.js → shared-C_9DBYw-.js} +1 -1
- package/dist/cli/{snapshot-CWtER9-4.js → snapshot-BAFwCE0l.js} +2 -2
- package/dist/cli/{source-D4uav_v9.js → source-CpnSlB6J.js} +1 -1
- package/dist/cli/{spec-BPsyEzqH.js → spec-BMBYao_7.js} +1 -1
- package/dist/cli/{spec-DTnBeaCD.js → spec-SNEhNUFc.js} +2 -2
- package/dist/cli/{sql-layout-DbhEQqq0.js → sql-layout-CKFIMA8Y.js} +2 -2
- package/dist/cli/{sync-CazH5FX4.js → sync-DMMrYcyr.js} +4 -4
- package/dist/cli/{upgrade-Dyb4-f0Q.js → upgrade-C1sSWUgx.js} +2 -2
- package/dist/cli/{upgrade-Cyx6ESpc.js → upgrade-D9tsBxs0.js} +5 -5
- package/dist/cli/{version-D1ZKUFng.js → version-DnpEuhUA.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-Dx3bEPlX.js → config-1-UmQczM.js} +1 -1
- package/dist/{config-uSliwPS6.js → config-AEB5iNEO.js} +4 -123
- package/dist/{context-D6OZQdcT.d.ts → context-Cln1eg7-.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-DhcSXkAC.d.ts → controller-BQHh7VG5.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{entitlements-Bi4y8w8e.d.ts → entitlements-aN3jHcYL.d.ts} +1 -1
- package/dist/{field-errors-CJ_i6HFg.d.ts → field-errors-0V7t1-pz.d.ts} +4 -4
- package/dist/{index-Bm1ftdBA.d.ts → index-3JE4ptwV.d.ts} +2 -2
- package/dist/{index-DrDCN45q.d.ts → index-C0jB70wR.d.ts} +1 -1
- package/dist/{index-Bc5t2QRU.d.ts → index-CCb0JjiX.d.ts} +6 -6
- package/dist/{index-ChvuVimY.d.ts → index-D1harGe_.d.ts} +2 -2
- package/dist/{index-CRwpDGxd.d.ts → index-DWCo9ZUL.d.ts} +1 -1
- package/dist/{index-C71uHfVj.d.ts → index-DoDmA-sQ.d.ts} +2 -2
- package/dist/{index-Cbwvf4yE.d.ts → index-hmnB81h6.d.ts} +1 -1
- package/dist/{instances-DKULdpWB.js → instances-Bycf_aus.js} +13 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +4 -4
- package/dist/{operations-BDjgCmT9.d.ts → operations-TlhX7IZX.d.ts} +1 -1
- package/dist/{options-X61tvckX.js → options-BXbixNrP.js} +3 -1
- package/dist/{options-RYbyaVhv.js → options-CYZH9uxU.js} +3 -1
- package/dist/{options-CEwoGUk_.js → options-DiEoDCtf.js} +4 -1
- package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-BGx22GP3.d.ts → permissions-CwlRRwvr.d.ts} +1 -1
- package/dist/{ports-D63bA3p4.d.ts → ports-rJDkwtOQ.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-oc_liUHz.js → preset-DkeXFh7e.js} +2 -2
- package/dist/{project-Cs0kz5OP.js → project-Bcs-4Pfw.js} +5 -5
- package/dist/{push-token-BsyX0KlT.d.ts → push-token-BLQ09NeA.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 +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/records/index.d.ts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-CWYbu_6y.js → sql-D-_Egz0E.js} +552 -108
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-DqnE50Ju.d.ts → tenant-BkW_auBX.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-Dp7VGPd-.d.ts → topic-L_8Qs5qs.d.ts} +1 -1
- package/dist/{types-DLXTmZtm.d.ts → types--PUNrvz8.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-CtJAkWT4.d.ts → watch-topic-B9aKuw5v.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-pB1jCLIL.js → workflow-sdk-6psRpDIo.js} +1 -69
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +19 -0
- package/dist/cli/add-8zKWiO0X.js +0 -1
- package/dist/cli/powersync-vvu2-72V.js +0 -1
- package/dist/resolved-names-sd6RuTju.js +0 -130
|
@@ -5,9 +5,9 @@ import { Ct as Events, gt as WorkflowEventData } from "../../events-DddDlibJ.js"
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-BI4yKqFh.js";
|
|
8
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
9
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-L_8Qs5qs.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-B9aKuw5v.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQHh7VG5.js";
|
|
11
11
|
import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind, C as WorkflowGrantPrincipal, D as WorkflowResolved, E as WorkflowPurpose, F as WorkflowNodeKindRow, G as WorkflowGraph, H as WorkflowConditionOperator, I as defineNodeKind, J as WorkflowGraphNode, K as WorkflowGraphDiff, L as GraphScope, M as WorkflowVersionOwner, N as WorkflowVersionStatus, O as WorkflowStepInfo, P as WorkflowNodeKindDefinition, Q as approved, R as ValidateGraphOptions, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as WorkflowFilterCondition, V as WorkflowCondition, W as WorkflowFilterField, X as WorkflowNodeKind, Y as WorkflowNodeCondition, Z as WorkflowNodeKindInfo, _ as WorkflowCredential, a as CredentialInput, at as topologicalOrder, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, et as durationMs, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, it as matchesFilter, j as WorkflowVersion, k as WorkflowTrigger, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, nt as filterConditionOf, o as DefinitionInput, ot as validateGraph, p as TriggerInput, q as WorkflowGraphEdge, r as BuilderStartCall, rt as isBuiltinNodeKind, s as GrantInput, t as AlertInput, tt as evaluateCondition, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WORKFLOW_BUILTIN_NODE_KINDS } from "../../types-DtiDatvu.js";
|
|
12
12
|
import { a as GraphStepCall, c as graphRunFields, i as GraphRuntime, l as startNodeOf, n as GraphNodeCall, o as GraphSubject, r as GraphRunFields, s as executeGraph, t as GraphApprovalCall } from "../../executor-uNDJBzT8.js";
|
|
13
13
|
/**
|
|
@@ -3,9 +3,9 @@ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DddDlibJ.
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
5
5
|
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-BI4yKqFh.js";
|
|
6
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
7
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-L_8Qs5qs.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-B9aKuw5v.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQHh7VG5.js";
|
|
9
9
|
interface WorkflowRunsControllerOptions {
|
|
10
10
|
readonly client: {
|
|
11
11
|
readonly runs: Pick<Workflows["runs"], "list">;
|
package/dist/claims/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as isSessionSnapshot, m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
|
|
2
2
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
3
3
|
import { G as permissionCapOf } from "../types-BdhE7I8Z.js";
|
|
4
|
-
import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-
|
|
5
|
-
import { t as tenantOf } from "../tenant-
|
|
6
|
-
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-
|
|
4
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-aN3jHcYL.js";
|
|
5
|
+
import { t as tenantOf } from "../tenant-BkW_auBX.js";
|
|
6
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-CwlRRwvr.js";
|
|
7
7
|
import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-eHgOOyRS.js";
|
|
8
8
|
export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as addCommand } from "./add-Ba8xoX4q.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-DnpEuhUA.js";
|
|
4
4
|
import { a as parseNames, n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
|
|
6
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
6
|
+
import { t as loadSnapshot } from "./snapshot-BAFwCE0l.js";
|
|
7
7
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
8
|
+
import { a as toCatalog } from "./source-CpnSlB6J.js";
|
|
9
9
|
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-DrrkMihk.js";
|
|
10
10
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
11
|
-
import { n as adoptionContext } from "./app-tables-
|
|
12
|
-
import { n as dataMigration } from "./migrations-
|
|
13
|
-
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-
|
|
11
|
+
import { n as adoptionContext } from "./app-tables-iSQ0c7G3.js";
|
|
12
|
+
import { n as dataMigration } from "./migrations-CFIlnOmr.js";
|
|
13
|
+
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-Cj2AZdIH.js";
|
|
14
14
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
15
15
|
import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-C6sQ1MqT.js";
|
|
16
|
-
import { t as syncModules } from "./sync-
|
|
17
|
-
import { t as addModules } from "./add-
|
|
18
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
19
|
-
import { t as blockNames } from "./blocks-
|
|
16
|
+
import { t as syncModules } from "./sync-DMMrYcyr.js";
|
|
17
|
+
import { t as addModules } from "./add-DKlk-VV9.js";
|
|
18
|
+
import { t as appTablePlan } from "./app-table-files-Dw02ao0W.js";
|
|
19
|
+
import { t as blockNames } from "./blocks-BAj3U18j.js";
|
|
20
20
|
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
21
21
|
import { existsSync } from "node:fs";
|
|
22
22
|
import { dirname, join, posix, resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
3
3
|
import { r as applyPlan } from "./files-DQayErI8.js";
|
|
4
|
-
import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-
|
|
4
|
+
import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-B4q4yMUv.js";
|
|
5
5
|
import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
|
|
6
|
-
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-
|
|
6
|
+
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-DMMrYcyr.js";
|
|
7
7
|
import { basename, dirname } from "node:path";
|
|
8
8
|
import { readFile } from "node:fs/promises";
|
|
9
9
|
import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { h as subjectTagArgs } from "./config-DrrkMihk.js";
|
|
3
3
|
import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { r as literal } from "./live-
|
|
4
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
5
|
+
import { r as literal } from "./live-BUOVB-DV.js";
|
|
6
6
|
import { join, resolve, sep } from "node:path";
|
|
7
7
|
import { FIELD_FORMATS } from "better-supabase/config";
|
|
8
8
|
import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as accessProviderMode } from "./authorization-DJkkOjjG.js";
|
|
2
|
-
import { o as writtenByBlocks } from "./sql-layout-
|
|
3
|
-
import { s as qualified, t as catalogOf } from "./shared-
|
|
2
|
+
import { o as writtenByBlocks } from "./sql-layout-CKFIMA8Y.js";
|
|
3
|
+
import { s as qualified, t as catalogOf } from "./shared-C_9DBYw-.js";
|
|
4
4
|
import { declaredTables, resolveBlocks } from "better-supabase/sql";
|
|
5
5
|
// src/cli/doctor/app-tables.ts
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
4
4
|
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
5
5
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
6
|
+
import { n as ident } from "./live-BUOVB-DV.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
|
|
8
8
|
// src/cli/commands/backfill.ts
|
|
9
9
|
const DEFAULT_BATCH = 1e3;
|
package/dist/cli/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
4
|
-
import { n as listModules, t as printModule } from "./print-
|
|
4
|
+
import { n as listModules, t as printModule } from "./print-DUUGo-bA.js";
|
|
5
5
|
import { t as decodePresetInput } from "./preset-BQnjDCSR.js";
|
|
6
6
|
import { BLOCK_CATEGORIES } from "better-supabase/blocks";
|
|
7
7
|
import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-
|
|
1
|
+
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-BAj3U18j.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-DnpEuhUA.js";
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
|
4
4
|
import { t as migrateCliCall } from "./moved-CY0yDtAr.js";
|
|
5
5
|
import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
|
|
6
6
|
import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
7
|
-
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-
|
|
7
|
+
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-CKFIMA8Y.js";
|
|
8
8
|
import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-C6sQ1MqT.js";
|
|
9
9
|
import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-D8Jfku6I.js";
|
|
10
10
|
import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as readIfExists } from "./io-CQzy8PEZ.js";
|
|
2
|
-
import { t as CACHE_DIR } from "./cache-
|
|
3
|
-
import { x as installedVersion } from "./snapshot-
|
|
2
|
+
import { t as CACHE_DIR } from "./cache-BFSbb4is.js";
|
|
3
|
+
import { x as installedVersion } from "./snapshot-BAFwCE0l.js";
|
|
4
4
|
import { t as i } from "./jsonc-u_UiXFxs.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION$1 } from "./version-
|
|
3
|
+
import { t as VERSION$1 } from "./version-DnpEuhUA.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
|
|
7
|
-
import { t as CACHE_DIR } from "./cache-
|
|
7
|
+
import { t as CACHE_DIR } from "./cache-BFSbb4is.js";
|
|
8
8
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
9
|
-
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-
|
|
10
|
-
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-
|
|
9
|
+
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-BAFwCE0l.js";
|
|
10
|
+
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CvRXYRSy.js";
|
|
11
11
|
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
12
12
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
13
|
-
import { i as request } from "./source-
|
|
13
|
+
import { i as request } from "./source-CpnSlB6J.js";
|
|
14
14
|
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
15
15
|
import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
|
|
16
16
|
import { t as PROCESS_ENV } from "./env-BCuUsWOh.js";
|
|
17
17
|
import { n as readStackStatus } from "./stack-status-Mxgqb3I4.js";
|
|
18
18
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
19
|
-
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-
|
|
19
|
+
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-COnyl3V7.js";
|
|
20
20
|
import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
21
|
-
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-
|
|
22
|
-
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-
|
|
23
|
-
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-
|
|
24
|
-
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-
|
|
25
|
-
import { a as compiledReadSets } from "./providers-
|
|
26
|
-
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-
|
|
27
|
-
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-
|
|
21
|
+
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-CKFIMA8Y.js";
|
|
22
|
+
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-C_9DBYw-.js";
|
|
23
|
+
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-iSQ0c7G3.js";
|
|
24
|
+
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-DxWZi4IJ.js";
|
|
25
|
+
import { a as compiledReadSets } from "./providers-B4q4yMUv.js";
|
|
26
|
+
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-DteyIWzV.js";
|
|
27
|
+
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Cj2AZdIH.js";
|
|
28
28
|
import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
|
|
29
|
-
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-
|
|
29
|
+
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-BUOVB-DV.js";
|
|
30
30
|
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
31
31
|
import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
|
|
32
32
|
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-huI7fGMX.js";
|
|
33
33
|
import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-BQhbUFa7.js";
|
|
34
34
|
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-C5YL6Un9.js";
|
|
35
|
-
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-
|
|
35
|
+
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-DqcJb3p5.js";
|
|
36
36
|
import { existsSync } from "node:fs";
|
|
37
37
|
import { dirname, join, relative, resolve } from "node:path";
|
|
38
38
|
import { createHash } from "node:crypto";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { a as parseNames, i as failedResult, n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
|
-
import { u as catalogFingerprint } from "./cache-
|
|
5
|
-
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-
|
|
4
|
+
import { u as catalogFingerprint } from "./cache-BFSbb4is.js";
|
|
5
|
+
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BAFwCE0l.js";
|
|
6
6
|
import { d as GEN_TASKS, p as isGenTask } from "./config-DrrkMihk.js";
|
|
7
7
|
import { c as insideRoot, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
8
|
-
import { n as runGen } from "./run-
|
|
9
|
-
import { n as dataMigration } from "./migrations-
|
|
10
|
-
import { t as syncModules } from "./sync-
|
|
11
|
-
import { t as addModules } from "./add-
|
|
12
|
-
import { n as listModules, t as printModule } from "./print-
|
|
8
|
+
import { n as runGen } from "./run-DxWZi4IJ.js";
|
|
9
|
+
import { n as dataMigration } from "./migrations-CFIlnOmr.js";
|
|
10
|
+
import { t as syncModules } from "./sync-DMMrYcyr.js";
|
|
11
|
+
import { t as addModules } from "./add-DKlk-VV9.js";
|
|
12
|
+
import { n as listModules, t as printModule } from "./print-DUUGo-bA.js";
|
|
13
13
|
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
14
|
-
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-
|
|
14
|
+
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-DqcJb3p5.js";
|
|
15
15
|
import { a as runEnv } from "./env-CCT-dMFm.js";
|
|
16
|
-
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-
|
|
17
|
-
import { n as runPowerSync } from "./powersync-
|
|
16
|
+
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-SNEhNUFc.js";
|
|
17
|
+
import { n as runPowerSync } from "./powersync-DWFvtUuZ.js";
|
|
18
18
|
import { t as runSeed } from "./seed-DSC6f0oh.js";
|
|
19
|
-
import { t as upgrade } from "./upgrade-
|
|
19
|
+
import { t as upgrade } from "./upgrade-D9tsBxs0.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { resolve } from "node:path";
|
|
22
22
|
// src/cli/commands/sql.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -753,5 +753,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
753
753
|
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
|
|
754
754
|
readonly legacyTables?: boolean;
|
|
755
755
|
}): Promise<ResolvedConfig>;
|
|
756
|
-
export declare const VERSION = "0.
|
|
756
|
+
export declare const VERSION = "0.39.0";
|
|
757
757
|
export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
|
package/dist/cli/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as list, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
|
-
import { i as run, n as createCli, r as help, t as commandNames } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { i as run, n as createCli, r as help, t as commandNames } from "./run-BY0fbQxQ.js";
|
|
3
|
+
import { t as VERSION } from "./version-DnpEuhUA.js";
|
|
4
4
|
import { n as CliError, t as CLI_ERRORS_URL } from "./errors-DcJ_PayO.js";
|
|
5
|
-
import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-
|
|
6
|
-
import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-
|
|
7
|
-
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-
|
|
5
|
+
import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-BAFwCE0l.js";
|
|
6
|
+
import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-CvRXYRSy.js";
|
|
7
|
+
import { a as toCatalog, n as managementSource, r as pgSource } from "./source-CpnSlB6J.js";
|
|
8
8
|
import { s as loadConfig } from "./config-DrrkMihk.js";
|
|
9
|
-
import { n as runGen } from "./run-
|
|
9
|
+
import { n as runGen } from "./run-DxWZi4IJ.js";
|
|
10
10
|
// src/cli/introspect/from-catalog.ts
|
|
11
11
|
/**
|
|
12
12
|
* Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
|
|
@@ -2,17 +2,17 @@ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67
|
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
4
|
import { r as readIfExists } from "./io-CQzy8PEZ.js";
|
|
5
|
-
import { l as TYPEGEN_VERSION } from "./cache-
|
|
6
|
-
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-
|
|
7
|
-
import { a as toCatalog } from "./source-
|
|
5
|
+
import { l as TYPEGEN_VERSION } from "./cache-BFSbb4is.js";
|
|
6
|
+
import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-BAFwCE0l.js";
|
|
7
|
+
import { a as toCatalog } from "./source-CpnSlB6J.js";
|
|
8
8
|
import { a as findConfig, s as loadConfig } from "./config-DrrkMihk.js";
|
|
9
|
-
import { r as contentMapperFiles } from "./content-mapper-
|
|
9
|
+
import { r as contentMapperFiles } from "./content-mapper-COnyl3V7.js";
|
|
10
10
|
import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
11
|
-
import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-
|
|
12
|
-
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-
|
|
11
|
+
import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-Ba8xoX4q.js";
|
|
12
|
+
import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-Cj2AZdIH.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
14
|
-
import { s as enablePgDelta, t as syncModules } from "./sync-
|
|
15
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
14
|
+
import { s as enablePgDelta, t as syncModules } from "./sync-DMMrYcyr.js";
|
|
15
|
+
import { t as appTablePlan } from "./app-table-files-Dw02ao0W.js";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
import { join, posix, resolve } from "node:path";
|
|
18
18
|
import { glob, readFile, readdir } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import "./source-
|
|
3
|
-
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-
|
|
2
|
+
import "./source-CpnSlB6J.js";
|
|
3
|
+
import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-C_9DBYw-.js";
|
|
4
4
|
// src/cli/doctor/reserved-roles.ts
|
|
5
5
|
/**
|
|
6
6
|
* Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
|
-
import { a as envelope, i as run } from "./run-
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
2
|
+
import { a as envelope, i as run } from "./run-BY0fbQxQ.js";
|
|
3
|
+
import { t as VERSION } from "./version-DnpEuhUA.js";
|
|
4
4
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { n as consentToken } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-BCuUsWOh.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { i as readStdin } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-
|
|
4
|
-
import { c as metaPaths, n as render } from "./render-
|
|
5
|
-
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-
|
|
3
|
+
import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-BAFwCE0l.js";
|
|
4
|
+
import { c as metaPaths, n as render } from "./render-CvRXYRSy.js";
|
|
5
|
+
import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-DxWZi4IJ.js";
|
|
6
6
|
import { basename, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
3
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
4
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
4
|
+
import { t as appTablePlan } from "./app-table-files-Dw02ao0W.js";
|
|
5
5
|
// src/cli/commands/migrate.ts
|
|
6
6
|
const MIGRATE_ARGS = {};
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as INTEGRATIONS } from "./config-DrrkMihk.js";
|
|
2
|
-
import { c as splitStatements } from "./shared-
|
|
2
|
+
import { c as splitStatements } from "./shared-C_9DBYw-.js";
|
|
3
3
|
import { dirname, join, posix } from "node:path";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
5
|
import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
2
2
|
import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
3
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CKFIMA8Y.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { readFile, readdir } from "node:fs/promises";
|
|
7
7
|
import { moduleSchemaExtensions, renderBlocks } from "better-supabase/sql";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
|
|
2
2
|
import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
3
|
-
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CKFIMA8Y.js";
|
|
4
|
+
import { i as stampAfter } from "./migrations-CFIlnOmr.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { readFile, readdir } from "node:fs/promises";
|
|
7
7
|
import { moduleSchemaExtensions } from "better-supabase/sql";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as powersyncStreamsCommand } from "./powersync-DWFvtUuZ.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
3
|
-
import { n as migrationsDir } from "./sql-layout-
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { i as stampAfter } from "./migrations-
|
|
3
|
+
import { n as migrationsDir } from "./sql-layout-CKFIMA8Y.js";
|
|
4
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
5
|
+
import { i as stampAfter } from "./migrations-CFIlnOmr.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { join, resolve } from "node:path";
|
|
8
8
|
import { readFile, readdir } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
|
-
import { n as layout } from "./providers-
|
|
3
|
-
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-
|
|
2
|
+
import { n as layout } from "./providers-B4q4yMUv.js";
|
|
3
|
+
import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-DteyIWzV.js";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { a as moduleKeyProblems, i as entitlementsMode, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
|
|
3
3
|
import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
|
|
4
|
-
import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-
|
|
4
|
+
import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-CKFIMA8Y.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { compileReadSets, moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
|
|
7
7
|
import { isReadSet } from "better-supabase";
|
|
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
4
4
|
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
5
5
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
6
|
+
import { n as ident } from "./live-BUOVB-DV.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
|
|
8
8
|
// src/cli/commands/prune-workflows.ts
|
|
9
9
|
const TERMINAL = [
|
|
@@ -3,14 +3,14 @@ import { i as plain } from "./style-B5-nByxb.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
4
4
|
import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
|
|
5
5
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
|
|
6
|
-
import { a as sqlPlan } from "./sql-layout-
|
|
7
|
-
import { r as layoutFor } from "./providers-
|
|
8
|
-
import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-
|
|
6
|
+
import { a as sqlPlan } from "./sql-layout-CKFIMA8Y.js";
|
|
7
|
+
import { r as layoutFor } from "./providers-B4q4yMUv.js";
|
|
8
|
+
import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-Ba8xoX4q.js";
|
|
9
9
|
import { t as detectProject } from "./detect-BcUDaO8I.js";
|
|
10
10
|
import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-C6sQ1MqT.js";
|
|
11
|
-
import { n as guardedRemoval } from "./sync-
|
|
11
|
+
import { n as guardedRemoval } from "./sync-DMMrYcyr.js";
|
|
12
12
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
13
|
-
import { t as blockNames } from "./blocks-
|
|
13
|
+
import { t as blockNames } from "./blocks-BAj3U18j.js";
|
|
14
14
|
import { i as tidyInline, t as cutRange } from "./config-group-D4JWh4kG.js";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
16
16
|
import { resolve } from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { n as importPath } from "./io-CQzy8PEZ.js";
|
|
3
|
-
import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-
|
|
3
|
+
import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-BFSbb4is.js";
|
|
4
4
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
5
|
-
import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-
|
|
5
|
+
import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-BAFwCE0l.js";
|
|
6
6
|
import { s as providerTruncatedClaim } from "./authorization-DJkkOjjG.js";
|
|
7
7
|
import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
8
|
+
import { a as toCatalog } from "./source-CpnSlB6J.js";
|
|
9
9
|
import { m as withTableTags } from "./config-DrrkMihk.js";
|
|
10
10
|
import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
11
11
|
import { entityNames } from "better-supabase/blocks";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-67WobzTC.js";
|
|
2
2
|
import { n as highlight, r as painter } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-DnpEuhUA.js";
|
|
4
4
|
import { n as CliError, o as toCliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-Tqq3MAqx.js";
|
|
6
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-yAC-NFMq.js";
|
|
@@ -16,43 +16,43 @@ import { resolve } from "node:path";
|
|
|
16
16
|
* loads on demand, so `--version` and `--help` import no command.
|
|
17
17
|
*/
|
|
18
18
|
const LOADERS = [
|
|
19
|
-
["init", () => import("./init-
|
|
20
|
-
["add", () => import("./add-
|
|
21
|
-
["remove", () => import("./remove-
|
|
22
|
-
["upgrade", () => import("./upgrade-
|
|
19
|
+
["init", () => import("./init-DCy-FlB2.js").then((m) => m.initCommand)],
|
|
20
|
+
["add", () => import("./add-BCkaPIvM.js").then((m) => m.addCommand)],
|
|
21
|
+
["remove", () => import("./remove-BsAhvYpx.js").then((m) => m.removeCommand)],
|
|
22
|
+
["upgrade", () => import("./upgrade-C1sSWUgx.js").then((m) => m.upgradeCommand)],
|
|
23
23
|
["table", () => import("./table-BIQA9Hdt.js").then((m) => m.tableCommand)],
|
|
24
|
-
["migrate schema-first", () => import("./migrate-
|
|
25
|
-
["gen", () => import("./gen-
|
|
26
|
-
["doctor", () => import("./doctor-
|
|
24
|
+
["migrate schema-first", () => import("./migrate-dI1IaRan.js").then((m) => m.migrateSchemaFirstCommand)],
|
|
25
|
+
["gen", () => import("./gen-h1Ncsh1X.js").then((m) => m.genCommand)],
|
|
26
|
+
["doctor", () => import("./doctor-BTGesU_-.js").then((m) => m.doctorCommand)],
|
|
27
27
|
["db query", () => import("./db-bK5eCLaE.js").then((m) => m.dbQueryCommand)],
|
|
28
28
|
["db diff", () => import("./db-bK5eCLaE.js").then((m) => m.dbDiffCommand)],
|
|
29
29
|
["db seed", () => import("./seed-CLlvrV8I.js").then((m) => m.seedCommand)],
|
|
30
|
-
["db backfill", () => import("./backfill-
|
|
31
|
-
["db prune-workflows", () => import("./prune-workflows-
|
|
30
|
+
["db backfill", () => import("./backfill-sYQgRuGd.js").then((m) => m.dbBackfillCommand)],
|
|
31
|
+
["db prune-workflows", () => import("./prune-workflows-DhJX2wAQ.js").then((m) => m.dbPruneWorkflowsCommand)],
|
|
32
32
|
["dev env", () => import("./env-AFfMXxWw.js").then((m) => m.envCommand)],
|
|
33
33
|
["dev run", () => import("./run-DX4X7xqV.js").then((m) => m.runCommand)],
|
|
34
34
|
["dev keys", () => import("./keys-Dj5sJNj7.js").then((m) => m.keysCommand)],
|
|
35
35
|
["dev stack ls", () => import("./stack-CQXLe5j0.js").then((m) => m.stackLsCommand)],
|
|
36
36
|
["dev stack prune", () => import("./stack-CQXLe5j0.js").then((m) => m.stackPruneCommand)],
|
|
37
|
-
["blocks list", () => import("./blocks-
|
|
38
|
-
["blocks view", () => import("./blocks-
|
|
39
|
-
["blocks search", () => import("./blocks-
|
|
40
|
-
["powersync streams", () => import("./powersync-
|
|
41
|
-
["spec emit", () => import("./spec-
|
|
42
|
-
["spec validate", () => import("./spec-
|
|
43
|
-
["mcp", () => import("./mcp-
|
|
37
|
+
["blocks list", () => import("./blocks-YKQzZhPK.js").then((m) => m.blocksListCommand)],
|
|
38
|
+
["blocks view", () => import("./blocks-YKQzZhPK.js").then((m) => m.blocksViewCommand)],
|
|
39
|
+
["blocks search", () => import("./blocks-YKQzZhPK.js").then((m) => m.blocksSearchCommand)],
|
|
40
|
+
["powersync streams", () => import("./powersync-D-1aQ3C6.js").then((m) => m.powersyncStreamsCommand)],
|
|
41
|
+
["spec emit", () => import("./spec-BMBYao_7.js").then((m) => m.specEmitCommand)],
|
|
42
|
+
["spec validate", () => import("./spec-BMBYao_7.js").then((m) => m.specValidateCommand)],
|
|
43
|
+
["mcp", () => import("./mcp-CLAjfETj.js").then((m) => m.mcpCommand)],
|
|
44
44
|
["skills list", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsListCommand)],
|
|
45
45
|
["skills install", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsInstallCommand)],
|
|
46
|
-
["codemod 0.4", () => import("./codemod-
|
|
47
|
-
["codemod 0.5", () => import("./codemod-
|
|
48
|
-
["codemod 0.6", () => import("./codemod-
|
|
49
|
-
["codemod 0.9", () => import("./codemod-
|
|
50
|
-
["codemod 0.11", () => import("./codemod-
|
|
51
|
-
["codemod 0.15", () => import("./codemod-
|
|
52
|
-
["codemod 0.29", () => import("./codemod-
|
|
53
|
-
["codemod 0.32", () => import("./codemod-
|
|
54
|
-
["codemod 0.35", () => import("./codemod-
|
|
55
|
-
["codemod 0.37", () => import("./codemod-
|
|
46
|
+
["codemod 0.4", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.4"))],
|
|
47
|
+
["codemod 0.5", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.5"))],
|
|
48
|
+
["codemod 0.6", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.6"))],
|
|
49
|
+
["codemod 0.9", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.9"))],
|
|
50
|
+
["codemod 0.11", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.11"))],
|
|
51
|
+
["codemod 0.15", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.15"))],
|
|
52
|
+
["codemod 0.29", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.29"))],
|
|
53
|
+
["codemod 0.32", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.32"))],
|
|
54
|
+
["codemod 0.35", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.35"))],
|
|
55
|
+
["codemod 0.37", () => import("./codemod-vbToOtFK.js").then((m) => m.codemodCommand("0.37"))],
|
|
56
56
|
["completion", () => import("./completion-Dm0S3ub0.js").then((m) => m.completionCommand)],
|
|
57
57
|
["config", () => import("./config-cbK-wiNs.js").then((m) => m.configCommand)]
|
|
58
58
|
];
|