better-supabase 0.42.0 → 0.43.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.
Files changed (149) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-DGgCgRwq.d.ts → app-tables-CVMn4c4b.d.ts} +1 -1
  3. package/dist/{authorization-CcvJbvr1.d.ts → authorization-hGBtxrnQ.d.ts} +27 -2
  4. package/dist/{automations-CJhRmPmq.js → automations-K0O3En6E.js} +4 -1
  5. package/dist/{bind-B71jMEGG.d.ts → bind-DWAIKYvJ.d.ts} +1 -1
  6. package/dist/{block-env-DzYTC9d1.d.ts → block-env-C6OEu9Xk.d.ts} +3 -3
  7. package/dist/{block-subjects-a_ECM9o0.js → block-subjects-B1zfhFWC.js} +1 -1
  8. package/dist/{block-tables-B92SBFqM.d.ts → block-tables-BIExrL2J.d.ts} +1 -1
  9. package/dist/blocks/ai-chat/index.d.ts +3 -3
  10. package/dist/blocks/announcements/index.d.ts +3 -3
  11. package/dist/blocks/api-keys/index.d.ts +1 -1
  12. package/dist/blocks/attachments/index.d.ts +1 -1
  13. package/dist/blocks/audit/index.d.ts +2 -2
  14. package/dist/blocks/automations/index.d.ts +1 -1
  15. package/dist/blocks/billing/index.d.ts +1 -1
  16. package/dist/blocks/bookings/index.d.ts +1 -1
  17. package/dist/blocks/calendar/index.d.ts +1 -1
  18. package/dist/blocks/comments/index.d.ts +4 -4
  19. package/dist/blocks/entitlements/index.d.ts +2 -2
  20. package/dist/blocks/forms/index.d.ts +1 -1
  21. package/dist/blocks/inbox/index.d.ts +4 -4
  22. package/dist/blocks/index.d.ts +1 -1
  23. package/dist/blocks/invoices/index.d.ts +15 -1
  24. package/dist/blocks/invoices/index.js +13 -4
  25. package/dist/blocks/messaging/index.d.ts +4 -4
  26. package/dist/blocks/mfa/index.d.ts +1 -1
  27. package/dist/blocks/notifications/index.d.ts +3 -3
  28. package/dist/blocks/onboarding/index.d.ts +1 -1
  29. package/dist/blocks/organizations/index.d.ts +2 -2
  30. package/dist/blocks/permissions/index.d.ts +1 -1
  31. package/dist/blocks/push/index.d.ts +1 -1
  32. package/dist/blocks/quotes/index.d.ts +9 -4
  33. package/dist/blocks/quotes/index.js +5 -2
  34. package/dist/blocks/reactions/index.d.ts +3 -3
  35. package/dist/blocks/saved-views/index.d.ts +1 -1
  36. package/dist/blocks/search/index.d.ts +2 -2
  37. package/dist/blocks/sessions/index.d.ts +1 -1
  38. package/dist/blocks/settings/index.d.ts +1 -1
  39. package/dist/blocks/subjects/index.d.ts +1 -1
  40. package/dist/blocks/tags/index.d.ts +1 -1
  41. package/dist/blocks/undo/index.d.ts +1 -1
  42. package/dist/blocks/usage/index.d.ts +1 -1
  43. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  44. package/dist/blocks/workflows/index.d.ts +3 -3
  45. package/dist/claims/index.d.ts +3 -3
  46. package/dist/cli/add-CjSPssgL.js +1 -0
  47. package/dist/cli/{add-NosuEQn1.js → add-fdZAY8C_.js} +10 -10
  48. package/dist/cli/{add-U0pyhIyx.js → add-uwUI80aZ.js} +2 -2
  49. package/dist/cli/{app-table-files-DUi898lB.js → app-table-files-BR_7lT4u.js} +2 -2
  50. package/dist/cli/{app-tables-BINtREbx.js → app-tables-DoxrhJb1.js} +2 -2
  51. package/dist/cli/{backfill-VfqI5GqN.js → backfill-BTMgDL6X.js} +1 -1
  52. package/dist/cli/bin.js +1 -1
  53. package/dist/cli/{blocks-DsEaPf6J.js → blocks-BgPbXNhB.js} +1 -1
  54. package/dist/cli/{blocks-Bo2Lw2UO.js → blocks-Bj0LS3rF.js} +1 -1
  55. package/dist/cli/{cache-CNJD8OdR.js → cache-CEGpAmXJ.js} +1 -1
  56. package/dist/cli/{codemod-BWa3Bte6.js → codemod-CaXGpQ10.js} +1 -1
  57. package/dist/cli/{content-mapper-Dl50Ny6a.js → content-mapper-BJRfCnFX.js} +2 -2
  58. package/dist/cli/{doctor-B9GtOGSa.js → doctor-CHQDLcwL.js} +15 -15
  59. package/dist/cli/{gen-CIUD1sgB.js → gen-DSK152A3.js} +11 -11
  60. package/dist/cli/index.d.ts +1 -1
  61. package/dist/cli/index.js +6 -6
  62. package/dist/cli/{init-wl5jk5vX.js → init-CPC1ceqC.js} +8 -8
  63. package/dist/cli/{live-B0f_X3rI.js → live-BFXisTDf.js} +2 -2
  64. package/dist/cli/{mcp-CZWaBkXY.js → mcp-CrulrTBs.js} +2 -2
  65. package/dist/cli/{metadata-Bi5eQP4w.js → metadata-yePOltZY.js} +3 -3
  66. package/dist/cli/{migrate-DMITLPEu.js → migrate-kjYx7du-.js} +1 -1
  67. package/dist/cli/{migration-safety-2n8e8njJ.js → migration-safety-DnvCYRsw.js} +1 -1
  68. package/dist/cli/{migrations-C5k9hNOo.js → migrations-ZYHA0gks.js} +2 -2
  69. package/dist/cli/{module-migration-BFchEhAJ.js → module-migration-Du7UHsO9.js} +2 -2
  70. package/dist/cli/{powersync-DViexv6m.js → powersync-BOxy1_xW.js} +3 -3
  71. package/dist/cli/powersync-BurpZLJB.js +1 -0
  72. package/dist/cli/{print-ChX1vQhO.js → print-B4OqfSML.js} +2 -2
  73. package/dist/cli/{providers-lwK2lplZ.js → providers-KYOKi_jp.js} +1 -1
  74. package/dist/cli/{prune-workflows-DO3nRZFF.js → prune-workflows-7JISyAI7.js} +1 -1
  75. package/dist/cli/{remove-WB9dFyNn.js → remove-DvncDSRp.js} +5 -5
  76. package/dist/cli/{render-B0MMWWZE.js → render-C6dQ0C0Y.js} +3 -3
  77. package/dist/cli/{run-CmJbNG2-.js → run-BYiApqFR.js} +9 -9
  78. package/dist/cli/{run-CMvwtBX9.js → run-DWDRg4vp.js} +27 -27
  79. package/dist/cli/{shared-BL5kcRdz.js → shared-DC86fQYk.js} +1 -1
  80. package/dist/cli/{snapshot-CVB9Ri2a.js → snapshot-CwCG_YX2.js} +2 -2
  81. package/dist/cli/{source-COGgsYiV.js → source-DDxRHVzk.js} +1 -1
  82. package/dist/cli/{spec-CH6Qd2LE.js → spec-Cnxqc7kC.js} +2 -2
  83. package/dist/cli/{spec-002zD_9Z.js → spec-CvKJ6GpI.js} +1 -1
  84. package/dist/cli/{sql-layout-jZOzCj-S.js → sql-layout-BwbfVSR8.js} +2 -2
  85. package/dist/cli/{sync-I4x-1aVx.js → sync-lpbLqJly.js} +4 -4
  86. package/dist/cli/{upgrade-BRp5AxAY.js → upgrade-34ZODJZj.js} +2 -2
  87. package/dist/cli/{upgrade-C60BZggI.js → upgrade-Cq4EFBH7.js} +5 -5
  88. package/dist/cli/{version-CRCAxS2s.js → version-BGN5319Z.js} +1 -1
  89. package/dist/client/index.d.ts +5 -5
  90. package/dist/client/native/index.d.ts +4 -4
  91. package/dist/config/index.d.ts +2 -2
  92. package/dist/config/index.js +4 -4
  93. package/dist/{config-BND2PFGs.js → config-BN17nVp1.js} +1 -1
  94. package/dist/{config-2SwAe0Im.js → config-C-eXOuhp.js} +3 -3
  95. package/dist/{context-DXWyPNzr.d.ts → context-Dga2sgyx.d.ts} +1 -1
  96. package/dist/contract/index.d.ts +3 -3
  97. package/dist/{controller-D3MPVovD.d.ts → controller-BFOCK5AG.d.ts} +1 -1
  98. package/dist/create/index.d.ts +3 -3
  99. package/dist/create/index.js +3 -3
  100. package/dist/create/lite/index.d.ts +3 -3
  101. package/dist/create/lite/index.js +2 -2
  102. package/dist/{entitlements-CljrSoWD.d.ts → entitlements-C5k_9hHt.d.ts} +1 -1
  103. package/dist/{field-errors-C4NOUBpu.d.ts → field-errors-LVBXokQN.d.ts} +4 -4
  104. package/dist/{index-BrGOE0c2.d.ts → index-BA8sPQ49.d.ts} +2 -2
  105. package/dist/{index-DWVDKVYA.d.ts → index-BhmjjkMu.d.ts} +1 -1
  106. package/dist/{index-D5qW2cRD.d.ts → index-CjN6kzvL.d.ts} +2 -2
  107. package/dist/{index-DmSDAFkF.d.ts → index-D-SIdOiL.d.ts} +6 -6
  108. package/dist/{index-Bjj-GNhd.d.ts → index-DBbdaYAH.d.ts} +1 -1
  109. package/dist/{index-DhHtsi-q.d.ts → index-DUmsXPdh.d.ts} +1 -1
  110. package/dist/{index-CUxdZYSi.d.ts → index-DwP65vFk.d.ts} +2 -2
  111. package/dist/{instances-DwrdFwKq.js → instances-Bx94JGSW.js} +3 -0
  112. package/dist/mapper/bin.js +5 -5
  113. package/dist/mcp/index.d.ts +1 -1
  114. package/dist/next/index.d.ts +4 -4
  115. package/dist/{operations-DFmuxaxW.d.ts → operations-J0PkKTaF.d.ts} +1 -1
  116. package/dist/{options-C5cLEJEa.js → options-ByxOMSXu.js} +2 -1
  117. package/dist/otel/index.js +4 -4
  118. package/dist/{permissions-Bsd4mEEZ.d.ts → permissions-Cp2qvVJo.d.ts} +1 -1
  119. package/dist/{ports-BKdt_9Oe.d.ts → ports-C61eesjD.d.ts} +1 -1
  120. package/dist/powersync/index.d.ts +2 -2
  121. package/dist/preset/index.d.ts +3 -3
  122. package/dist/preset/index.js +3 -3
  123. package/dist/{preset-CenE7f1G.js → preset-yRJgGbn9.js} +2 -2
  124. package/dist/{project-Ceh2yTSv.js → project-ps9mOsLx.js} +5 -5
  125. package/dist/{push-token-DRcEl9Ce.d.ts → push-token-2LRdwl_8.d.ts} +1 -1
  126. package/dist/react/index.d.ts +5 -5
  127. package/dist/react/native/index.d.ts +1 -1
  128. package/dist/react/server.d.ts +5 -5
  129. package/dist/realtime/index.d.ts +3 -3
  130. package/dist/records/index.d.ts +3 -3
  131. package/dist/server/index.d.ts +3 -3
  132. package/dist/solid/index.d.ts +5 -5
  133. package/dist/sql/index.d.ts +5 -5
  134. package/dist/sql/index.js +2 -2
  135. package/dist/{sql-BIniB45X.js → sql-CWzlxS6f.js} +348 -130
  136. package/dist/ssr/index.d.ts +1 -1
  137. package/dist/svelte/index.d.ts +5 -5
  138. package/dist/{tenant--Hm8mlPy.d.ts → tenant-P7mo0ulH.d.ts} +1 -1
  139. package/dist/testing/index.d.ts +3 -3
  140. package/dist/testing/index.js +1 -1
  141. package/dist/{topic-BYF-GTW9.d.ts → topic-CjKlzHD-.d.ts} +1 -1
  142. package/dist/{types-B8h0reJ4.d.ts → types-VwM7DBvC.d.ts} +2 -2
  143. package/dist/vue/index.d.ts +5 -5
  144. package/dist/{watch-topic-tfTxgEGc.d.ts → watch-topic-jqBMNMs3.d.ts} +1 -1
  145. package/dist/yjs/index.d.ts +1 -1
  146. package/package.json +1 -1
  147. package/schemas/config-v1.json +17 -0
  148. package/dist/cli/add-BbhRYaFe.js +0 -1
  149. package/dist/cli/powersync-i7KJcTtM.js +0 -1
@@ -7,7 +7,7 @@ import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
8
8
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
9
9
  import { p as ListQueryInput } from "../../list-query-BkbLV-Yc.js";
10
- import { n as Controller } from "../../controller-D3MPVovD.js";
10
+ import { n as Controller } from "../../controller-BFOCK5AG.js";
11
11
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
12
12
  export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
13
13
  type SavedViewKind = (typeof SAVED_VIEW_KINDS)[number];
@@ -6,8 +6,8 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
6
6
  import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
7
7
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
8
  import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
9
- import { i as KeyboardPort } from "../../ports-BKdt_9Oe.js";
10
- import { n as Controller } from "../../controller-D3MPVovD.js";
9
+ import { i as KeyboardPort } from "../../ports-C61eesjD.js";
10
+ import { n as Controller } from "../../controller-BFOCK5AG.js";
11
11
  interface SearchOptions extends Pick<BlockOptions, "transport" | "service" | "schema" | "mappers"> {
12
12
  /** `withBlockHooks` hooks around the methods. */
13
13
  readonly hooks?: BlockHooks<Search>;
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
3
3
  import { r as Block } from "../../define-block-DBD7yhQg.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
5
5
  import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
6
6
  /** An OAuth client as the Auth OAuth server describes it. */
7
7
  interface RawOAuthClient {
@@ -5,7 +5,7 @@ import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
5
5
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
7
7
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
10
10
  /**
11
11
  * One setting: its Standard Schema and the value `get` returns when none is
@@ -2,7 +2,7 @@ import { b as DbError } from "../../result-DTOQRyGY.js";
2
2
  import { et as RecordRef } from "../../types-BzIYSSWK.js";
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-DBD7yhQg.js";
5
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
5
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
6
6
  import { t as subjectKey } from "../../block-subjects-Bkieh2Xk.js";
7
7
  import { c as Subjects, d as MY_WORK_KINDS, f as MyWorkKind, l as SubjectsOptions, n as MyWorkItem, o as ResolvedSubject, r as MyWorkOptions, s as SUBJECT_TITLES_LIMIT, t as MY_WORK_LIMIT, u as createSubjects } from "../../subjects-DNFE2rMl.js";
8
8
  /** The `subjects` block's manifest (ADR 0029). */
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
7
7
  import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
9
9
  import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
11
11
  import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
12
12
  interface TagsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
13
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
2
2
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
3
- import { n as Controller } from "../../controller-D3MPVovD.js";
3
+ import { n as Controller } from "../../controller-BFOCK5AG.js";
4
4
  import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-BCQMqIQN.js";
5
5
  interface UndoEntry {
6
6
  readonly id: number;
@@ -3,7 +3,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
3
3
  import { n as StripeSource, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
4
4
  import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-CJDj5j15.js";
5
5
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
7
7
  /** The `usage` block's manifest (ADR 0029). */
8
8
  export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
9
9
  interface UsageMeterControllerOptions {
@@ -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-DBD7yhQg.js";
7
7
  import { g as Workflows, n as WorkflowRun } from "../../workflows-D7HvWeNu.js";
8
- import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
9
- import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
8
+ import { p as SubscriptionStatus } from "../../topic-CjKlzHD-.js";
9
+ import { n as TopicPort } from "../../watch-topic-jqBMNMs3.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.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-D--4dv5K.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-DL7cZ-3T.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-DBD7yhQg.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-D7HvWeNu.js";
6
- import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
7
- import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
6
+ import { p as SubscriptionStatus } from "../../topic-CjKlzHD-.js";
7
+ import { n as TopicPort } from "../../watch-topic-jqBMNMs3.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-BFOCK5AG.js";
9
9
  interface WorkflowRunsControllerOptions {
10
10
  readonly client: {
11
11
  readonly runs: Pick<Workflows["runs"], "list">;
@@ -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-LLCyr-xs.js";
4
- import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-CljrSoWD.js";
5
- import { t as tenantOf } from "../tenant--Hm8mlPy.js";
6
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Bsd4mEEZ.js";
4
+ import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-C5k_9hHt.js";
5
+ import { t as tenantOf } from "../tenant-P7mo0ulH.js";
6
+ import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Cp2qvVJo.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-fdZAY8C_.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-CRCAxS2s.js";
3
+ import { t as VERSION } from "./version-BGN5319Z.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-CVB9Ri2a.js";
6
+ import { t as loadSnapshot } from "./snapshot-CwCG_YX2.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-COGgsYiV.js";
8
+ import { a as toCatalog } from "./source-DDxRHVzk.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-BINtREbx.js";
12
- import { n as dataMigration } from "./migrations-C5k9hNOo.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-2n8e8njJ.js";
11
+ import { n as adoptionContext } from "./app-tables-DoxrhJb1.js";
12
+ import { n as dataMigration } from "./migrations-ZYHA0gks.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-DnvCYRsw.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-I4x-1aVx.js";
17
- import { t as addModules } from "./add-U0pyhIyx.js";
18
- import { t as appTablePlan } from "./app-table-files-DUi898lB.js";
19
- import { t as blockNames } from "./blocks-Bo2Lw2UO.js";
16
+ import { t as syncModules } from "./sync-lpbLqJly.js";
17
+ import { t as addModules } from "./add-uwUI80aZ.js";
18
+ import { t as appTablePlan } from "./app-table-files-BR_7lT4u.js";
19
+ import { t as blockNames } from "./blocks-Bj0LS3rF.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-lwK2lplZ.js";
4
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-KYOKi_jp.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-I4x-1aVx.js";
6
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-lpbLqJly.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-lwK2lplZ.js";
5
- import { r as literal } from "./live-B0f_X3rI.js";
4
+ import { r as layoutFor } from "./providers-KYOKi_jp.js";
5
+ import { r as literal } from "./live-BFXisTDf.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-jZOzCj-S.js";
3
- import { s as qualified, t as catalogOf } from "./shared-BL5kcRdz.js";
2
+ import { o as writtenByBlocks } from "./sql-layout-BwbfVSR8.js";
3
+ import { s as qualified, t as catalogOf } from "./shared-DC86fQYk.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-B0f_X3rI.js";
6
+ import { n as ident } from "./live-BFXisTDf.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,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-CMvwtBX9.js";
2
+ import { i as run } from "./run-DWDRg4vp.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Bo2Lw2UO.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Bj0LS3rF.js";
@@ -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-ChX1vQhO.js";
4
+ import { n as listModules, t as printModule } from "./print-B4OqfSML.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,4 +1,4 @@
1
- import { t as VERSION } from "./version-CRCAxS2s.js";
1
+ import { t as VERSION } from "./version-BGN5319Z.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-jZOzCj-S.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-BwbfVSR8.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-CNJD8OdR.js";
3
- import { x as installedVersion } from "./snapshot-CVB9Ri2a.js";
2
+ import { t as CACHE_DIR } from "./cache-CEGpAmXJ.js";
3
+ import { x as installedVersion } from "./snapshot-CwCG_YX2.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-CRCAxS2s.js";
3
+ import { t as VERSION$1 } from "./version-BGN5319Z.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-CNJD8OdR.js";
7
+ import { t as CACHE_DIR } from "./cache-CEGpAmXJ.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-CVB9Ri2a.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-B0MMWWZE.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-CwCG_YX2.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-C6dQ0C0Y.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-COGgsYiV.js";
13
+ import { i as request } from "./source-DDxRHVzk.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-Dl50Ny6a.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-BJRfCnFX.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-jZOzCj-S.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-BL5kcRdz.js";
23
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BINtREbx.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-CmJbNG2-.js";
25
- import { a as compiledReadSets } from "./providers-lwK2lplZ.js";
26
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-BFchEhAJ.js";
27
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-2n8e8njJ.js";
21
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-BwbfVSR8.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-DC86fQYk.js";
23
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-DoxrhJb1.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-BYiApqFR.js";
25
+ import { a as compiledReadSets } from "./providers-KYOKi_jp.js";
26
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-Du7UHsO9.js";
27
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DnvCYRsw.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-B0f_X3rI.js";
29
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-BFXisTDf.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-Bi5eQP4w.js";
35
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-yePOltZY.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-CNJD8OdR.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CVB9Ri2a.js";
4
+ import { u as catalogFingerprint } from "./cache-CEGpAmXJ.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CwCG_YX2.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-CmJbNG2-.js";
9
- import { n as dataMigration } from "./migrations-C5k9hNOo.js";
10
- import { t as syncModules } from "./sync-I4x-1aVx.js";
11
- import { t as addModules } from "./add-U0pyhIyx.js";
12
- import { n as listModules, t as printModule } from "./print-ChX1vQhO.js";
8
+ import { n as runGen } from "./run-BYiApqFR.js";
9
+ import { n as dataMigration } from "./migrations-ZYHA0gks.js";
10
+ import { t as syncModules } from "./sync-lpbLqJly.js";
11
+ import { t as addModules } from "./add-uwUI80aZ.js";
12
+ import { n as listModules, t as printModule } from "./print-B4OqfSML.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-Bi5eQP4w.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-yePOltZY.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-CH6Qd2LE.js";
17
- import { n as runPowerSync } from "./powersync-DViexv6m.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-Cnxqc7kC.js";
17
+ import { n as runPowerSync } from "./powersync-BOxy1_xW.js";
18
18
  import { t as runSeed } from "./seed-DSC6f0oh.js";
19
- import { t as upgrade } from "./upgrade-C60BZggI.js";
19
+ import { t as upgrade } from "./upgrade-Cq4EFBH7.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  // src/cli/commands/sql.ts
@@ -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.42.0";
756
+ export declare const VERSION = "0.43.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-CMvwtBX9.js";
3
- import { t as VERSION } from "./version-CRCAxS2s.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-DWDRg4vp.js";
3
+ import { t as VERSION } from "./version-BGN5319Z.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-CVB9Ri2a.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-B0MMWWZE.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-COGgsYiV.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-CwCG_YX2.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-C6dQ0C0Y.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-DDxRHVzk.js";
8
8
  import { s as loadConfig } from "./config-DrrkMihk.js";
9
- import { n as runGen } from "./run-CmJbNG2-.js";
9
+ import { n as runGen } from "./run-BYiApqFR.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-CNJD8OdR.js";
6
- import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-CVB9Ri2a.js";
7
- import { a as toCatalog } from "./source-COGgsYiV.js";
5
+ import { l as TYPEGEN_VERSION } from "./cache-CEGpAmXJ.js";
6
+ import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-CwCG_YX2.js";
7
+ import { a as toCatalog } from "./source-DDxRHVzk.js";
8
8
  import { a as findConfig, s as loadConfig } from "./config-DrrkMihk.js";
9
- import { r as contentMapperFiles } from "./content-mapper-Dl50Ny6a.js";
9
+ import { r as contentMapperFiles } from "./content-mapper-BJRfCnFX.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-NosuEQn1.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-2n8e8njJ.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-fdZAY8C_.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-DnvCYRsw.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
14
- import { s as enablePgDelta, t as syncModules } from "./sync-I4x-1aVx.js";
15
- import { t as appTablePlan } from "./app-table-files-DUi898lB.js";
14
+ import { s as enablePgDelta, t as syncModules } from "./sync-lpbLqJly.js";
15
+ import { t as appTablePlan } from "./app-table-files-BR_7lT4u.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-COGgsYiV.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-BL5kcRdz.js";
2
+ import "./source-DDxRHVzk.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-DC86fQYk.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-CMvwtBX9.js";
3
- import { t as VERSION } from "./version-CRCAxS2s.js";
2
+ import { a as envelope, i as run } from "./run-DWDRg4vp.js";
3
+ import { t as VERSION } from "./version-BGN5319Z.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-CVB9Ri2a.js";
4
- import { c as metaPaths, n as render } from "./render-B0MMWWZE.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-CmJbNG2-.js";
3
+ import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-CwCG_YX2.js";
4
+ import { c as metaPaths, n as render } from "./render-C6dQ0C0Y.js";
5
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-BYiApqFR.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-DUi898lB.js";
4
+ import { t as appTablePlan } from "./app-table-files-BR_7lT4u.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-BL5kcRdz.js";
2
+ import { c as splitStatements } from "./shared-DC86fQYk.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-jZOzCj-S.js";
4
- import { r as layoutFor } from "./providers-lwK2lplZ.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BwbfVSR8.js";
4
+ import { r as layoutFor } from "./providers-KYOKi_jp.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-jZOzCj-S.js";
4
- import { i as stampAfter } from "./migrations-C5k9hNOo.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-BwbfVSR8.js";
4
+ import { i as stampAfter } from "./migrations-ZYHA0gks.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";
@@ -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-jZOzCj-S.js";
4
- import { r as layoutFor } from "./providers-lwK2lplZ.js";
5
- import { i as stampAfter } from "./migrations-C5k9hNOo.js";
3
+ import { n as migrationsDir } from "./sql-layout-BwbfVSR8.js";
4
+ import { r as layoutFor } from "./providers-KYOKi_jp.js";
5
+ import { i as stampAfter } from "./migrations-ZYHA0gks.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";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-BOxy1_xW.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
- import { n as layout } from "./providers-lwK2lplZ.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BFchEhAJ.js";
2
+ import { n as layout } from "./providers-KYOKi_jp.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-Du7UHsO9.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-jZOzCj-S.js";
4
+ import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-BwbfVSR8.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-B0f_X3rI.js";
6
+ import { n as ident } from "./live-BFXisTDf.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-jZOzCj-S.js";
7
- import { r as layoutFor } from "./providers-lwK2lplZ.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-NosuEQn1.js";
6
+ import { a as sqlPlan } from "./sql-layout-BwbfVSR8.js";
7
+ import { r as layoutFor } from "./providers-KYOKi_jp.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-fdZAY8C_.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-I4x-1aVx.js";
11
+ import { n as guardedRemoval } from "./sync-lpbLqJly.js";
12
12
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
13
- import { t as blockNames } from "./blocks-Bo2Lw2UO.js";
13
+ import { t as blockNames } from "./blocks-Bj0LS3rF.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-CNJD8OdR.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-CEGpAmXJ.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-CVB9Ri2a.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-CwCG_YX2.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-COGgsYiV.js";
8
+ import { a as toCatalog } from "./source-DDxRHVzk.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";