better-supabase 0.37.0 → 0.38.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 (155) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-BlhdqqHf.d.ts → app-tables-D2c0i05-.d.ts} +1 -1
  3. package/dist/{authorization-C7yjZttV.d.ts → authorization-D8CaAdqU.d.ts} +7 -5
  4. package/dist/{bind-BspFMDdW.d.ts → bind-5vOwNouG.d.ts} +1 -1
  5. package/dist/{block-env-CLco8YUl.d.ts → block-env-hco8BLjC.d.ts} +3 -3
  6. package/dist/block-subjects-CINiJW1R.js +253 -0
  7. package/dist/{block-tables-DfomofFv.d.ts → block-tables-BsgdB6VG.d.ts} +1 -1
  8. package/dist/blocks/ai-chat/index.d.ts +3 -3
  9. package/dist/blocks/announcements/index.d.ts +3 -3
  10. package/dist/blocks/api-keys/index.d.ts +1 -1
  11. package/dist/blocks/attachments/index.d.ts +1 -1
  12. package/dist/blocks/audit/index.d.ts +2 -2
  13. package/dist/blocks/automations/index.d.ts +1 -1
  14. package/dist/blocks/billing/index.d.ts +1 -1
  15. package/dist/blocks/bookings/index.d.ts +1 -1
  16. package/dist/blocks/calendar/index.d.ts +1 -1
  17. package/dist/blocks/catalog/index.d.ts +4 -0
  18. package/dist/blocks/catalog/index.js +10 -0
  19. package/dist/blocks/comments/index.d.ts +4 -4
  20. package/dist/blocks/entitlements/index.d.ts +2 -2
  21. package/dist/blocks/expenses/index.d.ts +2 -0
  22. package/dist/blocks/expenses/index.js +10 -3
  23. package/dist/blocks/forms/index.d.ts +1 -1
  24. package/dist/blocks/inbox/index.d.ts +4 -4
  25. package/dist/blocks/index.d.ts +1 -1
  26. package/dist/blocks/invoices/index.d.ts +15 -1
  27. package/dist/blocks/invoices/index.js +13 -0
  28. package/dist/blocks/leave/index.js +1 -1
  29. package/dist/blocks/messaging/index.d.ts +4 -4
  30. package/dist/blocks/mfa/index.d.ts +1 -1
  31. package/dist/blocks/notifications/index.d.ts +3 -3
  32. package/dist/blocks/onboarding/index.d.ts +1 -1
  33. package/dist/blocks/organizations/index.d.ts +2 -2
  34. package/dist/blocks/permissions/index.d.ts +1 -1
  35. package/dist/blocks/push/index.d.ts +1 -1
  36. package/dist/blocks/reactions/index.d.ts +3 -3
  37. package/dist/blocks/saved-views/index.d.ts +1 -1
  38. package/dist/blocks/search/index.d.ts +2 -2
  39. package/dist/blocks/sessions/index.d.ts +1 -1
  40. package/dist/blocks/settings/index.d.ts +1 -1
  41. package/dist/blocks/subjects/index.d.ts +1 -1
  42. package/dist/blocks/tags/index.d.ts +1 -1
  43. package/dist/blocks/undo/index.d.ts +1 -1
  44. package/dist/blocks/usage/index.d.ts +1 -1
  45. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  46. package/dist/blocks/workflows/index.d.ts +3 -3
  47. package/dist/claims/index.d.ts +3 -3
  48. package/dist/cli/{add-DqfJVb1F.js → add-7nCSDmpt.js} +10 -10
  49. package/dist/cli/{add-Buuy7BSU.js → add-B4tQpnXP.js} +2 -2
  50. package/dist/cli/add-CdDneXMN.js +1 -0
  51. package/dist/cli/{app-table-files-Ku-4tPUu.js → app-table-files-CtO-zxpO.js} +2 -2
  52. package/dist/cli/{app-tables-Dg0sh4dH.js → app-tables-B7UzcJ_g.js} +2 -2
  53. package/dist/cli/{backfill-Dspz6kVJ.js → backfill-B2nFDXaS.js} +1 -1
  54. package/dist/cli/bin.js +1 -1
  55. package/dist/cli/{blocks-CqVBlc4L.js → blocks-BX_6HUQT.js} +1 -1
  56. package/dist/cli/{blocks-B8LAph-w.js → blocks-DU4iDrYS.js} +1 -1
  57. package/dist/cli/{cache-BbuuCIRU.js → cache-bS5bAoF-.js} +1 -1
  58. package/dist/cli/{codemod-DIAy8uXt.js → codemod-B1sSIE2p.js} +1 -1
  59. package/dist/cli/{content-mapper-NXfJ5VkP.js → content-mapper-CW6V6VRq.js} +2 -2
  60. package/dist/cli/{doctor-CUOyLE0c.js → doctor-Dw2pAf1b.js} +15 -15
  61. package/dist/cli/{gen-s9canfdC.js → gen-BtoSx3go.js} +11 -11
  62. package/dist/cli/index.d.ts +1 -1
  63. package/dist/cli/index.js +6 -6
  64. package/dist/cli/{init-Zs0Ca5on.js → init-DZXbrKuJ.js} +8 -8
  65. package/dist/cli/{live-BaLsNove.js → live-CDFfJcdR.js} +2 -2
  66. package/dist/cli/{mcp-ST7bVpJD.js → mcp-BukxvITV.js} +2 -2
  67. package/dist/cli/{metadata-aOvlCOOg.js → metadata-iZizGVuY.js} +3 -3
  68. package/dist/cli/{migrate-ClBx3Ggx.js → migrate-DPnnGLzw.js} +1 -1
  69. package/dist/cli/{migration-safety-mjm1pghO.js → migration-safety-COcnZbMO.js} +1 -1
  70. package/dist/cli/{migrations-tzItvwxT.js → migrations-BBt9fmiV.js} +2 -2
  71. package/dist/cli/{module-migration-D0Rjdvdx.js → module-migration-tCmPLhQp.js} +2 -2
  72. package/dist/cli/{powersync-DryX_DMG.js → powersync-BRmUJ-uR.js} +3 -3
  73. package/dist/cli/powersync-CYLPcJ9G.js +1 -0
  74. package/dist/cli/{print-fOUnKwA9.js → print-DdwQNG_e.js} +2 -2
  75. package/dist/cli/{providers-BR1d_5jA.js → providers-CaNg6Ayz.js} +1 -1
  76. package/dist/cli/{prune-workflows-CCjzNrxl.js → prune-workflows-BQQrI3tU.js} +1 -1
  77. package/dist/cli/{remove-B_0OIusa.js → remove-BEj9YEON.js} +5 -5
  78. package/dist/cli/{render-BCJKDX3c.js → render-UBqU9r44.js} +3 -3
  79. package/dist/cli/{run-4VUQTR-R.js → run-3E_IuJzS.js} +9 -9
  80. package/dist/cli/{run-BctvQX_g.js → run-BXlX9YdD.js} +27 -27
  81. package/dist/cli/{shared-oY7PGamd.js → shared-agrqD28l.js} +1 -1
  82. package/dist/cli/{snapshot-CWtER9-4.js → snapshot-DOXmozSq.js} +2 -2
  83. package/dist/cli/{source-D4uav_v9.js → source-BfJprU-6.js} +1 -1
  84. package/dist/cli/{spec-BPsyEzqH.js → spec-CgtIHFsl.js} +1 -1
  85. package/dist/cli/{spec-DTnBeaCD.js → spec-DRpSQGOW.js} +2 -2
  86. package/dist/cli/{sql-layout-DbhEQqq0.js → sql-layout-Cs3FMWcY.js} +2 -2
  87. package/dist/cli/{sync-CazH5FX4.js → sync-C_YGIDjk.js} +4 -4
  88. package/dist/cli/{upgrade-Cyx6ESpc.js → upgrade-ByQeJRGU.js} +5 -5
  89. package/dist/cli/{upgrade-Dyb4-f0Q.js → upgrade-OG9vaBeX.js} +2 -2
  90. package/dist/cli/{version-D1ZKUFng.js → version-CF6Yzah0.js} +1 -1
  91. package/dist/client/index.d.ts +5 -5
  92. package/dist/client/native/index.d.ts +4 -4
  93. package/dist/config/index.d.ts +2 -2
  94. package/dist/config/index.js +4 -4
  95. package/dist/{config-Dx3bEPlX.js → config-1-UmQczM.js} +1 -1
  96. package/dist/{config-uSliwPS6.js → config-AEB5iNEO.js} +4 -123
  97. package/dist/{context-D6OZQdcT.d.ts → context-CH5FYnVk.d.ts} +1 -1
  98. package/dist/contract/index.d.ts +3 -3
  99. package/dist/{controller-DhcSXkAC.d.ts → controller-CJ6rLnpS.d.ts} +1 -1
  100. package/dist/create/index.d.ts +3 -3
  101. package/dist/create/index.js +3 -3
  102. package/dist/create/lite/index.d.ts +3 -3
  103. package/dist/create/lite/index.js +2 -2
  104. package/dist/{entitlements-Bi4y8w8e.d.ts → entitlements-6gODwBSz.d.ts} +1 -1
  105. package/dist/{field-errors-CJ_i6HFg.d.ts → field-errors-CdSjV9Zo.d.ts} +4 -4
  106. package/dist/{index-C71uHfVj.d.ts → index-B5awu2SP.d.ts} +2 -2
  107. package/dist/{index-Cbwvf4yE.d.ts → index-BgRl484n.d.ts} +1 -1
  108. package/dist/{index-Bm1ftdBA.d.ts → index-CgKieWlO.d.ts} +2 -2
  109. package/dist/{index-ChvuVimY.d.ts → index-CrOeAgSh.d.ts} +2 -2
  110. package/dist/{index-Bc5t2QRU.d.ts → index-DnEJVKQ2.d.ts} +6 -6
  111. package/dist/{index-DrDCN45q.d.ts → index-DzLLMmUB.d.ts} +1 -1
  112. package/dist/{index-CRwpDGxd.d.ts → index-vkd2LTt2.d.ts} +1 -1
  113. package/dist/{instances-DKULdpWB.js → instances-Bycf_aus.js} +13 -1
  114. package/dist/mapper/bin.js +5 -5
  115. package/dist/mcp/index.d.ts +1 -1
  116. package/dist/next/index.d.ts +4 -4
  117. package/dist/{operations-BDjgCmT9.d.ts → operations-knMnfzgm.d.ts} +1 -1
  118. package/dist/{options-RYbyaVhv.js → options-CS1DA8q9.js} +1 -0
  119. package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
  120. package/dist/otel/index.js +4 -4
  121. package/dist/{permissions-BGx22GP3.d.ts → permissions-Ed8WvLgQ.d.ts} +1 -1
  122. package/dist/{ports-D63bA3p4.d.ts → ports-Bnwy2mlR.d.ts} +1 -1
  123. package/dist/powersync/index.d.ts +2 -2
  124. package/dist/preset/index.d.ts +3 -3
  125. package/dist/preset/index.js +3 -3
  126. package/dist/{preset-oc_liUHz.js → preset-DkeXFh7e.js} +2 -2
  127. package/dist/{project-Cs0kz5OP.js → project-By0R8ioI.js} +5 -5
  128. package/dist/{push-token-BsyX0KlT.d.ts → push-token-CJbEvwjI.d.ts} +1 -1
  129. package/dist/react/index.d.ts +5 -5
  130. package/dist/react/native/index.d.ts +1 -1
  131. package/dist/react/server.d.ts +5 -5
  132. package/dist/realtime/index.d.ts +3 -3
  133. package/dist/records/index.d.ts +3 -3
  134. package/dist/server/index.d.ts +3 -3
  135. package/dist/solid/index.d.ts +5 -5
  136. package/dist/sql/index.d.ts +5 -5
  137. package/dist/sql/index.js +3 -3
  138. package/dist/{sql-CWYbu_6y.js → sql-B2cMvGnZ.js} +359 -47
  139. package/dist/ssr/index.d.ts +1 -1
  140. package/dist/svelte/index.d.ts +5 -5
  141. package/dist/{tenant-DqnE50Ju.d.ts → tenant-eZNRWTRJ.d.ts} +1 -1
  142. package/dist/testing/index.d.ts +3 -3
  143. package/dist/testing/index.js +1 -1
  144. package/dist/{topic-Dp7VGPd-.d.ts → topic-D7F2FBNp.d.ts} +1 -1
  145. package/dist/{types-DLXTmZtm.d.ts → types-bqvFoBhf.d.ts} +2 -2
  146. package/dist/vue/index.d.ts +5 -5
  147. package/dist/{watch-topic-CtJAkWT4.d.ts → watch-topic-BIEaSN0Y.d.ts} +1 -1
  148. package/dist/workflow-sdk/world/index.js +1 -1
  149. package/dist/{workflow-sdk-pB1jCLIL.js → workflow-sdk-6psRpDIo.js} +1 -69
  150. package/dist/yjs/index.d.ts +1 -1
  151. package/package.json +1 -1
  152. package/schemas/config-v1.json +10 -0
  153. package/dist/cli/add-8zKWiO0X.js +0 -1
  154. package/dist/cli/powersync-vvu2-72V.js +0 -1
  155. package/dist/resolved-names-sd6RuTju.js +0 -130
@@ -12,7 +12,7 @@ import { a as OptionInput, c as OptionSpecs, d as optionsJsonSchema, i as Option
12
12
  import { A as CreateBlocksOptions, An as BlockNaming, C as BlockContext, Cn as EntitySchemaSpec, D as Blocks, Dn as GeneratedBlocks, E as BlockSinks, En as GeneratedBlock, F as BlockPorts, Fn as entityNames, I as Notifier, L as NotifierInput, M as createBlockClient, Mn as EntityNames, N as createBlocks, Nn as EntityNoun, O as BlocksEventMap, On as fillTopic, P as defineBlocks, Pn as EntityRename, R as PortName, S as BlockClientSource, Sn as EntitySchema, T as BlockSet, Tn as entitySchema, _ as BlockProvider, a as BlockConsumes, b as BLOCK_EVENT_SOURCE, bn as BlockSchemas, c as BlockOf, d as ClientOf, f as ConsumedPorts, g as BlockEnvKey, h as defineBlock, i as BlockCategory, j as UniquePort, jn as blockNames, k as BlocksHooks, kn as generatedOptions, l as BlockOptionSchemas, m as UsingOptions, n as BLOCK_CATEGORIES, o as BlockDefinition, p as ProvidedPorts, r as Block, s as BlockInvalidates, t as AnyBlock, tn as AnyRecordBinding, u as BlockProvides, v as BlockWiring, w as BlockMap, wn as EntitySchemas, x as BlockClientOptions, xn as EntityFieldSpecs, y as BlockWorker } from "../define-block-CDw9YGVh.js";
13
13
  import { t as VisibleRange } from "../range-BN3kpJAE.js";
14
14
  import { t as subjectKey } from "../block-subjects-Bkieh2Xk.js";
15
- import { t as BlockEnv } from "../block-env-CLco8YUl.js";
15
+ import { t as BlockEnv } from "../block-env-hco8BLjC.js";
16
16
  /** What a hook passes a block creator from the env. */
17
17
  interface EnvBlockOptions {
18
18
  readonly transport: BlockTransport;
@@ -90,6 +90,16 @@ interface InvoiceInput<F extends object = Record<never, never>> {
90
90
  /** Values for the extra columns, by column name. */
91
91
  readonly fields?: Partial<F> & Readonly<Record<string, unknown>>;
92
92
  }
93
+ interface InvoicePatch<F extends object = Record<never, never>> {
94
+ readonly title?: string;
95
+ readonly company?: RecordRef | null;
96
+ readonly contact?: RecordRef | null;
97
+ readonly termsDays?: number | null;
98
+ readonly note?: string | null;
99
+ readonly depositBps?: number | null;
100
+ readonly pricesIncludeTax?: boolean;
101
+ readonly fields?: Partial<F> & Readonly<Record<string, unknown>>;
102
+ }
93
103
  /** What is owed in one currency, by days past due. */
94
104
  interface InvoiceAging {
95
105
  readonly currency: string;
@@ -104,6 +114,8 @@ interface InvoiceAging {
104
114
  /** `F` types the invoices' extra columns, from the `fields` schema. */
105
115
  interface Invoices<F extends object = Record<never, never>> {
106
116
  create(organizationId: string, input: InvoiceInput<F>, lines?: readonly LineInput[]): AsyncResult<Invoice<F>>;
117
+ update(invoiceId: string, patch: InvoicePatch<F>): AsyncResult<Invoice<F>>;
118
+ delete(invoiceId: string): AsyncResult<boolean>;
107
119
  setLines(invoiceId: string, lines: readonly LineInput[]): AsyncResult<Totals>;
108
120
  /** Issues a draft: the next number, issue and due dates, frozen lines. */
109
121
  issue(invoiceId: string, issuedOn?: Temporal.PlainDate, options?: {
@@ -170,6 +182,8 @@ export declare function createInvoices<S extends StandardSchemaV1 | undefined =
170
182
  /** The events of the `invoices` block: type to data. */
171
183
  type InvoicesEvents = {
172
184
  readonly "invoice.created": InvoiceEventData;
185
+ readonly "invoice.updated": InvoiceEventData;
186
+ readonly "invoice.deleted": InvoiceEventData;
173
187
  readonly "invoice.issued": InvoiceEventData;
174
188
  readonly "invoice.payment_recorded": InvoiceEventData;
175
189
  readonly "invoice.paid": InvoiceEventData;
@@ -184,4 +198,4 @@ type InvoicesEvents = {
184
198
  export declare const invoicesEvents: Events<InvoicesEvents>;
185
199
  /** The `invoices` block's manifest (ADR 0029). */
186
200
  export declare const invoicesBlock: BlockOf<"invoices", typeof createInvoices, InvoicesEvents>;
187
- export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Invoice, type InvoiceAging, type InvoiceCharge, type InvoiceInput, type InvoicePayment, type InvoiceStatus, type Invoices, type InvoicesEvents, type InvoicesOptions, type Line, type LineInput, type RecordRef, type RpcClient, type Totals, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
201
+ export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Invoice, type InvoiceAging, type InvoiceCharge, type InvoiceInput, type InvoicePatch, type InvoicePayment, type InvoiceStatus, type Invoices, type InvoicesEvents, type InvoicesOptions, type Line, type LineInput, type RecordRef, type RpcClient, type Totals, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
@@ -142,6 +142,17 @@ function createInvoices(options) {
142
142
  lines: lines === void 0 ? null : lines.map(lineArg)
143
143
  }));
144
144
  },
145
+ update: (invoiceId, patch) => {
146
+ const { fields: extra, ...rest } = patch;
147
+ return AsyncResult.from(() => fields.write({ ...extra })).andThen((valid) => invoice("update_invoice", {
148
+ invoice: invoiceId,
149
+ attrs: attrsArg({
150
+ ...rest,
151
+ ...valid
152
+ })
153
+ }));
154
+ },
155
+ delete: (invoiceId) => call("delete_invoice", { invoice: invoiceId }, (value) => value === true),
145
156
  setLines: (invoiceId, lines) => {
146
157
  const invalid = amountsError(void 0, lines.map((line) => line.unitAmount));
147
158
  return invalid === void 0 ? call("set_invoice_lines", {
@@ -223,6 +234,8 @@ function createInvoices(options) {
223
234
  /** The `invoices` block's event types, for its manifest and `onBlockEvent`. */
224
235
  const invoicesEvents = defineEvents({
225
236
  "invoice.created": event(),
237
+ "invoice.updated": event(),
238
+ "invoice.deleted": event(),
226
239
  "invoice.issued": event(),
227
240
  "invoice.payment_recorded": event(),
228
241
  "invoice.paid": event(),
@@ -1,6 +1,6 @@
1
1
  import { n as isRecord } from "../../guards-CsRa6v57.js";
2
2
  import { t as temporal } from "../../temporal-required-w_2u4EDp.js";
3
- import { t as leaveSqlOptions } from "../../options-ScQ6Hnxo.js";
3
+ import { t as leaveSqlOptions } from "../../options-zsLpIqBA.js";
4
4
  import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
5
5
  import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
6
6
  import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
@@ -4,14 +4,14 @@ import { Ct as Events } from "../../events-DddDlibJ.js";
4
4
  import { _ as ConversationEventData, k as MessageEventData } from "../../index-DjJUamhw.js";
5
5
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
6
6
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
7
- import { P as MessagingSqlOptions } from "../../authorization-C7yjZttV.js";
7
+ import { P as MessagingSqlOptions } from "../../authorization-D8CaAdqU.js";
8
8
  import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
9
9
  import { _ as NotifyLevel, a as FollowTarget, b as UnreadCount, c as MessageEdit, d as MessageKind, f as MessageListOptions, g as NewMessage, h as MessagingOptions, i as ConversationSummary, l as MessageEdition, m as Messaging, n as ConversationAccess, o as Message, p as MessageReaction, r as ConversationKind, s as MessageCursor, t as Conversation, u as MessageFile, v as OpenConversation, x as createMessaging, y as RecordMention } from "../../messaging-Bfe4p9Pm.js";
10
10
  import { a as ThreadSummary, i as ThreadSummarizer, n as SummaryMessage, o as ThreadSummaryInput, r as SummaryTarget, s as ThreadSummaryOutput, t as SummarizeOptions } from "../../summaries-CUemsYwV.js";
11
11
  import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
- import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
13
- import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
14
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
12
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
13
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
14
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
15
15
  type MentionScope = "channel" | "here";
16
16
  interface ParsedMentions {
17
17
  /** Mentioned user ids, lowercase, in order and without repeats. */
@@ -1,7 +1,7 @@
1
1
  import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
2
2
  import { t as Aal } from "../../mfa-CM5r904M.js";
3
3
  import { r as Block } from "../../define-block-CDw9YGVh.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
5
5
  import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
6
6
  /** A factor as `auth.mfa.listFactors()` returns it. */
7
7
  interface RawMfaFactor {
@@ -10,9 +10,9 @@ import { t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
10
10
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
11
11
  import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
12
12
  import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
13
- import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
14
- import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
15
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
13
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
14
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
15
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
16
16
  import { n as VerifyOptions } from "../../signatures-jPr9JXyw.js";
17
17
  import { a as NotificationItem, i as NotificationAction, n as NotificationMessage, o as NotificationSubject, r as NotificationSendResult, s as RenderedText, t as NotificationChannel } from "../../channel-B_kufDZy.js";
18
18
  import { a as DeliveryTransport, c as UnsubscribeTarget, i as DeliverySendOptions, l as mailHeaders, n as DeliveryMessages, o as EmailMessage, r as DeliveryReceipt, s as MailCategory, t as DeliveryChannel } from "../../delivery-CWcbh87x.js";
@@ -5,7 +5,7 @@ import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.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-CtMsgLQr.js";
7
7
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
9
9
  type ChecklistScope = "user" | "organization";
10
10
  /** One step. `events` completes it when the outbox records one of those types. */
11
11
  interface ChecklistStep<Id extends string = string> {
@@ -7,9 +7,9 @@ import { Ct as Events, W as InvitationEventData, Z as OrganizationEventData, o a
7
7
  import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
8
8
  import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
9
9
  import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
10
- import { N as PlatformRolesOption } from "../../authorization-C7yjZttV.js";
10
+ import { N as PlatformRolesOption } from "../../authorization-D8CaAdqU.js";
11
11
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
13
13
  declare const INVITATION_ERRORS: {
14
14
  readonly INVITATION_FORBIDDEN: "42501";
15
15
  readonly INVITATION_ROLE_FORBIDDEN: "42501";
@@ -6,7 +6,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
6
6
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
7
7
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
8
  import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-DAS_5OfK.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
10
10
  interface PermissionsOptions extends BlockOptions {
11
11
  /** `withBlockHooks` hooks around the client's methods. */
12
12
  readonly hooks?: BlockHooks<Permissions>;
@@ -10,7 +10,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
10
10
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
11
11
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
12
12
  import { n as NotificationMessage, t as NotificationChannel } from "../../channel-B_kufDZy.js";
13
- import { t as ExpoNotificationsLike } from "../../push-token-BsyX0KlT.js";
13
+ import { t as ExpoNotificationsLike } from "../../push-token-CJbEvwjI.js";
14
14
  type PushPlatform = "ios" | "android" | "web";
15
15
  type PushProvider = "expo" | "fcm" | "apns" | "webpush";
16
16
  /**
@@ -7,9 +7,9 @@ import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-
7
7
  import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
10
- import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
11
- import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
10
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
11
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
13
13
  interface ReactionsOptions extends BlockTemporalOptions, BlockTenantOptions {
14
14
  readonly transport: BlockTransport;
15
15
  /**
@@ -7,7 +7,7 @@ import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
7
7
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
8
8
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
9
9
  import { p as ListQueryInput } from "../../list-query-BkbLV-Yc.js";
10
- import { n as Controller } from "../../controller-DhcSXkAC.js";
10
+ import { n as Controller } from "../../controller-CJ6rLnpS.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-CtMsgLQr.js";
7
7
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
8
  import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
9
- import { i as KeyboardPort } from "../../ports-D63bA3p4.js";
10
- import { n as Controller } from "../../controller-DhcSXkAC.js";
9
+ import { i as KeyboardPort } from "../../ports-Bnwy2mlR.js";
10
+ import { n as Controller } from "../../controller-CJ6rLnpS.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-CDw9YGVh.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-BNtM1tqy.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-CtMsgLQr.js";
7
7
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-CDw9YGVh.js";
5
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
5
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-CVjAE7nz.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-BNtM1tqy.js";
8
8
  import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
9
9
  import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-CDw9YGVh.js";
3
- import { n as Controller } from "../../controller-DhcSXkAC.js";
3
+ import { n as Controller } from "../../controller-CJ6rLnpS.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-CdKp5_2X.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-DZ8j5Tm_.js";
5
5
  import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
6
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-CDw9YGVh.js";
7
7
  import { g as Workflows, n as WorkflowRun } from "../../workflows-BI4yKqFh.js";
8
- import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
9
- import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
8
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
9
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-Dp7VGPd-.js";
7
- import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
6
+ import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
7
+ import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.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-BdhE7I8Z.js";
4
- import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-Bi4y8w8e.js";
5
- import { t as tenantOf } from "../tenant-DqnE50Ju.js";
6
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-BGx22GP3.js";
4
+ import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-6gODwBSz.js";
5
+ import { t as tenantOf } from "../tenant-eZNRWTRJ.js";
6
+ import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Ed8WvLgQ.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 };
@@ -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-D1ZKUFng.js";
3
+ import { t as VERSION } from "./version-CF6Yzah0.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-CWtER9-4.js";
6
+ import { t as loadSnapshot } from "./snapshot-DOXmozSq.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-D4uav_v9.js";
8
+ import { a as toCatalog } from "./source-BfJprU-6.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-Dg0sh4dH.js";
12
- import { n as dataMigration } from "./migrations-tzItvwxT.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-mjm1pghO.js";
11
+ import { n as adoptionContext } from "./app-tables-B7UzcJ_g.js";
12
+ import { n as dataMigration } from "./migrations-BBt9fmiV.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-COcnZbMO.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-CazH5FX4.js";
17
- import { t as addModules } from "./add-Buuy7BSU.js";
18
- import { t as appTablePlan } from "./app-table-files-Ku-4tPUu.js";
19
- import { t as blockNames } from "./blocks-CqVBlc4L.js";
16
+ import { t as syncModules } from "./sync-C_YGIDjk.js";
17
+ import { t as addModules } from "./add-B4tQpnXP.js";
18
+ import { t as appTablePlan } from "./app-table-files-CtO-zxpO.js";
19
+ import { t as blockNames } from "./blocks-BX_6HUQT.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-BR1d_5jA.js";
4
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-CaNg6Ayz.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-CazH5FX4.js";
6
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-C_YGIDjk.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";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-7nCSDmpt.js";
@@ -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-BR1d_5jA.js";
5
- import { r as literal } from "./live-BaLsNove.js";
4
+ import { r as layoutFor } from "./providers-CaNg6Ayz.js";
5
+ import { r as literal } from "./live-CDFfJcdR.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-DbhEQqq0.js";
3
- import { s as qualified, t as catalogOf } from "./shared-oY7PGamd.js";
2
+ import { o as writtenByBlocks } from "./sql-layout-Cs3FMWcY.js";
3
+ import { s as qualified, t as catalogOf } from "./shared-agrqD28l.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-BaLsNove.js";
6
+ import { n as ident } from "./live-CDFfJcdR.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-BctvQX_g.js";
2
+ import { i as run } from "./run-BXlX9YdD.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,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-fOUnKwA9.js";
4
+ import { n as listModules, t as printModule } from "./print-DdwQNG_e.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-CqVBlc4L.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-BX_6HUQT.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-D1ZKUFng.js";
1
+ import { t as VERSION } from "./version-CF6Yzah0.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-DbhEQqq0.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-Cs3FMWcY.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-BbuuCIRU.js";
3
- import { x as installedVersion } from "./snapshot-CWtER9-4.js";
2
+ import { t as CACHE_DIR } from "./cache-bS5bAoF-.js";
3
+ import { x as installedVersion } from "./snapshot-DOXmozSq.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-D1ZKUFng.js";
3
+ import { t as VERSION$1 } from "./version-CF6Yzah0.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-BbuuCIRU.js";
7
+ import { t as CACHE_DIR } from "./cache-bS5bAoF-.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-CWtER9-4.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-BCJKDX3c.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-DOXmozSq.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-UBqU9r44.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-D4uav_v9.js";
13
+ import { i as request } from "./source-BfJprU-6.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-NXfJ5VkP.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-CW6V6VRq.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-DbhEQqq0.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-oY7PGamd.js";
23
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-Dg0sh4dH.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-4VUQTR-R.js";
25
- import { a as compiledReadSets } from "./providers-BR1d_5jA.js";
26
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-D0Rjdvdx.js";
27
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-mjm1pghO.js";
21
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-Cs3FMWcY.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-agrqD28l.js";
23
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-B7UzcJ_g.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-3E_IuJzS.js";
25
+ import { a as compiledReadSets } from "./providers-CaNg6Ayz.js";
26
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-tCmPLhQp.js";
27
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-COcnZbMO.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-BaLsNove.js";
29
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CDFfJcdR.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-aOvlCOOg.js";
35
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-iZizGVuY.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-BbuuCIRU.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CWtER9-4.js";
4
+ import { u as catalogFingerprint } from "./cache-bS5bAoF-.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-DOXmozSq.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-4VUQTR-R.js";
9
- import { n as dataMigration } from "./migrations-tzItvwxT.js";
10
- import { t as syncModules } from "./sync-CazH5FX4.js";
11
- import { t as addModules } from "./add-Buuy7BSU.js";
12
- import { n as listModules, t as printModule } from "./print-fOUnKwA9.js";
8
+ import { n as runGen } from "./run-3E_IuJzS.js";
9
+ import { n as dataMigration } from "./migrations-BBt9fmiV.js";
10
+ import { t as syncModules } from "./sync-C_YGIDjk.js";
11
+ import { t as addModules } from "./add-B4tQpnXP.js";
12
+ import { n as listModules, t as printModule } from "./print-DdwQNG_e.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-aOvlCOOg.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-iZizGVuY.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-DTnBeaCD.js";
17
- import { n as runPowerSync } from "./powersync-DryX_DMG.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-DRpSQGOW.js";
17
+ import { n as runPowerSync } from "./powersync-BRmUJ-uR.js";
18
18
  import { t as runSeed } from "./seed-DSC6f0oh.js";
19
- import { t as upgrade } from "./upgrade-Cyx6ESpc.js";
19
+ import { t as upgrade } from "./upgrade-ByQeJRGU.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.37.0";
756
+ export declare const VERSION = "0.38.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-BctvQX_g.js";
3
- import { t as VERSION } from "./version-D1ZKUFng.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-BXlX9YdD.js";
3
+ import { t as VERSION } from "./version-CF6Yzah0.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-CWtER9-4.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-BCJKDX3c.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-D4uav_v9.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-DOXmozSq.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-UBqU9r44.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BfJprU-6.js";
8
8
  import { s as loadConfig } from "./config-DrrkMihk.js";
9
- import { n as runGen } from "./run-4VUQTR-R.js";
9
+ import { n as runGen } from "./run-3E_IuJzS.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