better-supabase 0.41.0 → 0.42.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 (159) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-kHGNXFsd.d.ts → app-tables-DGgCgRwq.d.ts} +1 -1
  3. package/dist/{approvals-CTVaWq1O.d.ts → approvals-CYbTzQ7v.d.ts} +39 -1
  4. package/dist/{approvals-Qjn42OAZ.js → approvals-cyL5CmU7.js} +15 -3
  5. package/dist/{authorization-CS5Q1V7A.d.ts → authorization-CcvJbvr1.d.ts} +30 -2
  6. package/dist/{bind-XrFxNm5r.d.ts → bind-B71jMEGG.d.ts} +1 -1
  7. package/dist/{block-env-CHFHOjvz.d.ts → block-env-DzYTC9d1.d.ts} +3 -3
  8. package/dist/{block-subjects-Bz95_dqA.js → block-subjects-a_ECM9o0.js} +1 -1
  9. package/dist/{block-tables-EXcmuOJT.d.ts → block-tables-B92SBFqM.d.ts} +1 -1
  10. package/dist/blocks/ai-chat/index.d.ts +3 -3
  11. package/dist/blocks/announcements/index.d.ts +3 -3
  12. package/dist/blocks/api-keys/index.d.ts +1 -1
  13. package/dist/blocks/approvals/index.d.ts +2 -2
  14. package/dist/blocks/approvals/index.js +2 -2
  15. package/dist/blocks/attachments/index.d.ts +1 -1
  16. package/dist/blocks/audit/index.d.ts +2 -2
  17. package/dist/blocks/automations/index.d.ts +2 -2
  18. package/dist/blocks/billing/index.d.ts +1 -1
  19. package/dist/blocks/bookings/index.d.ts +1 -1
  20. package/dist/blocks/calendar/index.d.ts +1 -1
  21. package/dist/blocks/comments/index.d.ts +4 -4
  22. package/dist/blocks/drive/index.d.ts +1 -1
  23. package/dist/blocks/entitlements/index.d.ts +2 -2
  24. package/dist/blocks/expenses/index.js +1 -1
  25. package/dist/blocks/forms/index.d.ts +1 -1
  26. package/dist/blocks/inbox/index.d.ts +4 -4
  27. package/dist/blocks/index.d.ts +1 -1
  28. package/dist/blocks/invoices/index.d.ts +14 -5
  29. package/dist/blocks/invoices/index.js +16 -8
  30. package/dist/blocks/leave/index.js +1 -1
  31. package/dist/blocks/messaging/index.d.ts +4 -4
  32. package/dist/blocks/mfa/index.d.ts +1 -1
  33. package/dist/blocks/notifications/index.d.ts +3 -3
  34. package/dist/blocks/onboarding/index.d.ts +1 -1
  35. package/dist/blocks/organizations/index.d.ts +2 -2
  36. package/dist/blocks/permissions/index.d.ts +1 -1
  37. package/dist/blocks/push/index.d.ts +1 -1
  38. package/dist/blocks/reactions/index.d.ts +3 -3
  39. package/dist/blocks/saved-views/index.d.ts +1 -1
  40. package/dist/blocks/search/index.d.ts +2 -2
  41. package/dist/blocks/sessions/index.d.ts +1 -1
  42. package/dist/blocks/settings/index.d.ts +1 -1
  43. package/dist/blocks/subjects/index.d.ts +1 -1
  44. package/dist/blocks/tags/index.d.ts +1 -1
  45. package/dist/blocks/undo/index.d.ts +1 -1
  46. package/dist/blocks/usage/index.d.ts +1 -1
  47. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  48. package/dist/blocks/workflows/index.d.ts +3 -3
  49. package/dist/claims/index.d.ts +3 -3
  50. package/dist/cli/add-BbhRYaFe.js +1 -0
  51. package/dist/cli/{add-BGErz-yb.js → add-NosuEQn1.js} +10 -10
  52. package/dist/cli/{add-DU5HAq6w.js → add-U0pyhIyx.js} +2 -2
  53. package/dist/cli/{app-table-files-Drzpekpt.js → app-table-files-DUi898lB.js} +2 -2
  54. package/dist/cli/{app-tables-dZpH63--.js → app-tables-BINtREbx.js} +2 -2
  55. package/dist/cli/{backfill-B-p-19g6.js → backfill-VfqI5GqN.js} +1 -1
  56. package/dist/cli/bin.js +1 -1
  57. package/dist/cli/{blocks-iUjNl5yJ.js → blocks-Bo2Lw2UO.js} +1 -1
  58. package/dist/cli/{blocks-Ews-FZZO.js → blocks-DsEaPf6J.js} +1 -1
  59. package/dist/cli/{cache-JT4JhdmX.js → cache-CNJD8OdR.js} +1 -1
  60. package/dist/cli/{codemod-KIxYiazj.js → codemod-BWa3Bte6.js} +1 -1
  61. package/dist/cli/{content-mapper-DkXzxt6f.js → content-mapper-Dl50Ny6a.js} +2 -2
  62. package/dist/cli/{doctor-VWanOD74.js → doctor-B9GtOGSa.js} +15 -15
  63. package/dist/cli/{gen-_lBdTgaR.js → gen-CIUD1sgB.js} +11 -11
  64. package/dist/cli/index.d.ts +1 -1
  65. package/dist/cli/index.js +6 -6
  66. package/dist/cli/{init-Cm6n4u_3.js → init-wl5jk5vX.js} +8 -8
  67. package/dist/cli/{live-D4iSuTmS.js → live-B0f_X3rI.js} +2 -2
  68. package/dist/cli/{mcp-CHYX7utI.js → mcp-CZWaBkXY.js} +2 -2
  69. package/dist/cli/{metadata-DLba0VjH.js → metadata-Bi5eQP4w.js} +3 -3
  70. package/dist/cli/{migrate-nQhh0nEJ.js → migrate-DMITLPEu.js} +1 -1
  71. package/dist/cli/{migration-safety-C2d3BSTf.js → migration-safety-2n8e8njJ.js} +1 -1
  72. package/dist/cli/{migrations-BOmMcme9.js → migrations-C5k9hNOo.js} +2 -2
  73. package/dist/cli/{module-migration-DSDB473C.js → module-migration-BFchEhAJ.js} +2 -2
  74. package/dist/cli/{powersync-CAHvPkkb.js → powersync-DViexv6m.js} +3 -3
  75. package/dist/cli/powersync-i7KJcTtM.js +1 -0
  76. package/dist/cli/{print-CahE8HYK.js → print-ChX1vQhO.js} +2 -2
  77. package/dist/cli/{providers-CL5Z5Uj4.js → providers-lwK2lplZ.js} +1 -1
  78. package/dist/cli/{prune-workflows-C9xO0fRU.js → prune-workflows-DO3nRZFF.js} +1 -1
  79. package/dist/cli/{remove-DIy7gthm.js → remove-WB9dFyNn.js} +5 -5
  80. package/dist/cli/{render-CoCZr3Ru.js → render-B0MMWWZE.js} +3 -3
  81. package/dist/cli/{run-BBj137Fn.js → run-CMvwtBX9.js} +27 -27
  82. package/dist/cli/{run-CVw8hmLk.js → run-CmJbNG2-.js} +9 -9
  83. package/dist/cli/{shared-BdKeo7xp.js → shared-BL5kcRdz.js} +1 -1
  84. package/dist/cli/{snapshot-P2ww2xCt.js → snapshot-CVB9Ri2a.js} +2 -2
  85. package/dist/cli/{source-BCs4oBl2.js → source-COGgsYiV.js} +1 -1
  86. package/dist/cli/{spec-oPbt9sbZ.js → spec-002zD_9Z.js} +1 -1
  87. package/dist/cli/{spec-uCpXPLoF.js → spec-CH6Qd2LE.js} +2 -2
  88. package/dist/cli/{sql-layout-Bsnge2oW.js → sql-layout-jZOzCj-S.js} +2 -2
  89. package/dist/cli/{sync-Cv7iBRhe.js → sync-I4x-1aVx.js} +4 -4
  90. package/dist/cli/{upgrade-C6jWNxkc.js → upgrade-BRp5AxAY.js} +2 -2
  91. package/dist/cli/{upgrade-DV7jTRdh.js → upgrade-C60BZggI.js} +5 -5
  92. package/dist/cli/{version-Hza4Q2PB.js → version-CRCAxS2s.js} +1 -1
  93. package/dist/client/index.d.ts +5 -5
  94. package/dist/client/native/index.d.ts +4 -4
  95. package/dist/config/index.d.ts +2 -2
  96. package/dist/config/index.js +4 -4
  97. package/dist/{config-DwXYtmwt.js → config-2SwAe0Im.js} +3 -3
  98. package/dist/{config-B7hnJFxh.js → config-BND2PFGs.js} +1 -1
  99. package/dist/{context-tFoygone.d.ts → context-DXWyPNzr.d.ts} +3 -1
  100. package/dist/contract/index.d.ts +3 -3
  101. package/dist/{controller-phhsPHSz.d.ts → controller-D3MPVovD.d.ts} +1 -1
  102. package/dist/create/index.d.ts +3 -3
  103. package/dist/create/index.js +3 -3
  104. package/dist/create/lite/index.d.ts +3 -3
  105. package/dist/create/lite/index.js +2 -2
  106. package/dist/{entitlements-LfW6S2RW.d.ts → entitlements-CljrSoWD.d.ts} +1 -1
  107. package/dist/eve/index.d.ts +1 -1
  108. package/dist/eve/index.js +1 -1
  109. package/dist/{field-errors-CMWRPBmF.d.ts → field-errors-C4NOUBpu.d.ts} +4 -4
  110. package/dist/{index-BXkPvYzd.d.ts → index-Bjj-GNhd.d.ts} +1 -1
  111. package/dist/{index-X5igfnIi.d.ts → index-BrGOE0c2.d.ts} +2 -2
  112. package/dist/{index-RZqQdq1G.d.ts → index-CUxdZYSi.d.ts} +2 -2
  113. package/dist/{index-B21Pim3I.d.ts → index-D5qW2cRD.d.ts} +2 -2
  114. package/dist/{index-fmrLdtVT.d.ts → index-DWVDKVYA.d.ts} +1 -1
  115. package/dist/{index-D-uiT4Qz.d.ts → index-DhHtsi-q.d.ts} +1 -1
  116. package/dist/{index-B-HuxATL.d.ts → index-DmSDAFkF.d.ts} +6 -6
  117. package/dist/{instances-DJOknCJ0.js → instances-DwrdFwKq.js} +2 -0
  118. package/dist/mapper/bin.js +5 -5
  119. package/dist/mcp/index.d.ts +1 -1
  120. package/dist/next/index.d.ts +4 -4
  121. package/dist/{operations-Cm4mSrAX.d.ts → operations-DFmuxaxW.d.ts} +1 -1
  122. package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
  123. package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
  124. package/dist/{options-CzxG2Phg.js → options-DLJTiX29.js} +3 -1
  125. package/dist/otel/index.js +4 -4
  126. package/dist/{permissions-r0Cxhxos.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
  127. package/dist/{ports-BJJJmfWK.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
  128. package/dist/powersync/index.d.ts +2 -2
  129. package/dist/preset/index.d.ts +3 -3
  130. package/dist/preset/index.js +3 -3
  131. package/dist/{preset-U47pzJMK.js → preset-CenE7f1G.js} +2 -2
  132. package/dist/{project-Dng8tO8S.js → project-Ceh2yTSv.js} +5 -5
  133. package/dist/{push-token-CA31xmQr.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
  134. package/dist/react/index.d.ts +5 -5
  135. package/dist/react/native/index.d.ts +1 -1
  136. package/dist/react/server.d.ts +5 -5
  137. package/dist/realtime/index.d.ts +3 -3
  138. package/dist/records/index.d.ts +3 -3
  139. package/dist/server/index.d.ts +3 -3
  140. package/dist/solid/index.d.ts +5 -5
  141. package/dist/sql/index.d.ts +5 -5
  142. package/dist/sql/index.js +3 -3
  143. package/dist/{sql-BudVz33a.js → sql-BIniB45X.js} +481 -163
  144. package/dist/ssr/index.d.ts +1 -1
  145. package/dist/svelte/index.d.ts +5 -5
  146. package/dist/{tenant-C2vnB0wX.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
  147. package/dist/testing/index.d.ts +3 -3
  148. package/dist/testing/index.js +1 -1
  149. package/dist/{topic-CKN3kmoi.d.ts → topic-BYF-GTW9.d.ts} +1 -1
  150. package/dist/{types-D8Tltfdq.d.ts → types-B8h0reJ4.d.ts} +2 -2
  151. package/dist/vue/index.d.ts +5 -5
  152. package/dist/{watch-topic-0dXuJMuE.d.ts → watch-topic-tfTxgEGc.d.ts} +1 -1
  153. package/dist/workflow-sdk/world/index.js +1 -1
  154. package/dist/{workflow-sdk-vXuxBSrk.js → workflow-sdk-Bps7tpOv.js} +7 -1
  155. package/dist/yjs/index.d.ts +1 -1
  156. package/package.json +1 -1
  157. package/schemas/config-v1.json +20 -1
  158. package/dist/cli/add-CoP8iie6.js +0 -1
  159. package/dist/cli/powersync-nH-NLDjy.js +0 -1
@@ -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-DBD7yhQg.js";
4
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-DBD7yhQg.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-CKN3kmoi.js";
14
- import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
15
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
13
+ import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
14
+ import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
15
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-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-phhsPHSz.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-Sj-efEhC.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-VW4knarE.js";
10
- import { N as PlatformRolesOption } from "../../authorization-CS5Q1V7A.js";
10
+ import { N as PlatformRolesOption } from "../../authorization-CcvJbvr1.js";
11
11
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-VW4knarE.js";
7
7
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
8
8
  import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-1_-lg9Gc.js";
9
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
9
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-VW4knarE.js";
11
11
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
12
12
  import { n as NotificationMessage, t as NotificationChannel } from "../../channel-B_kufDZy.js";
13
- import { t as ExpoNotificationsLike } from "../../push-token-CA31xmQr.js";
13
+ import { t as ExpoNotificationsLike } from "../../push-token-DRcEl9Ce.js";
14
14
  type PushPlatform = "ios" | "android" | "web";
15
15
  type PushProvider = "expo" | "fcm" | "apns" | "webpush";
16
16
  /**
@@ -7,9 +7,9 @@ import { o 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-VW4knarE.js";
9
9
  import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
10
- import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
11
- import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
12
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
10
+ import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
11
+ import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
12
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-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-phhsPHSz.js";
10
+ import { n as Controller } from "../../controller-D3MPVovD.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-BJJJmfWK.js";
10
- import { n as Controller } from "../../controller-phhsPHSz.js";
9
+ import { i as KeyboardPort } from "../../ports-BKdt_9Oe.js";
10
+ import { n as Controller } from "../../controller-D3MPVovD.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-phhsPHSz.js";
4
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-phhsPHSz.js";
8
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-phhsPHSz.js";
5
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-phhsPHSz.js";
10
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-phhsPHSz.js";
3
+ import { n as Controller } from "../../controller-D3MPVovD.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-phhsPHSz.js";
6
+ import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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-CKN3kmoi.js";
9
- import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
10
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.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";
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-CKN3kmoi.js";
7
- import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
8
- import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.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";
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-LfW6S2RW.js";
5
- import { t as tenantOf } from "../tenant-C2vnB0wX.js";
6
- import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-r0Cxhxos.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";
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-NosuEQn1.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-Hza4Q2PB.js";
3
+ import { t as VERSION } from "./version-CRCAxS2s.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-P2ww2xCt.js";
6
+ import { t as loadSnapshot } from "./snapshot-CVB9Ri2a.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-BCs4oBl2.js";
8
+ import { a as toCatalog } from "./source-COGgsYiV.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-dZpH63--.js";
12
- import { n as dataMigration } from "./migrations-BOmMcme9.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-C2d3BSTf.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";
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-Cv7iBRhe.js";
17
- import { t as addModules } from "./add-DU5HAq6w.js";
18
- import { t as appTablePlan } from "./app-table-files-Drzpekpt.js";
19
- import { t as blockNames } from "./blocks-iUjNl5yJ.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";
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-CL5Z5Uj4.js";
4
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-lwK2lplZ.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-Cv7iBRhe.js";
6
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-I4x-1aVx.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-CL5Z5Uj4.js";
5
- import { r as literal } from "./live-D4iSuTmS.js";
4
+ import { r as layoutFor } from "./providers-lwK2lplZ.js";
5
+ import { r as literal } from "./live-B0f_X3rI.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-Bsnge2oW.js";
3
- import { s as qualified, t as catalogOf } from "./shared-BdKeo7xp.js";
2
+ import { o as writtenByBlocks } from "./sql-layout-jZOzCj-S.js";
3
+ import { s as qualified, t as catalogOf } from "./shared-BL5kcRdz.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-D4iSuTmS.js";
6
+ import { n as ident } from "./live-B0f_X3rI.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-BBj137Fn.js";
2
+ import { i as run } from "./run-CMvwtBX9.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-CahE8HYK.js";
4
+ import { n as listModules, t as printModule } from "./print-ChX1vQhO.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-iUjNl5yJ.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Bo2Lw2UO.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-Hza4Q2PB.js";
1
+ import { t as VERSION } from "./version-CRCAxS2s.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-Bsnge2oW.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-jZOzCj-S.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-JT4JhdmX.js";
3
- import { x as installedVersion } from "./snapshot-P2ww2xCt.js";
2
+ import { t as CACHE_DIR } from "./cache-CNJD8OdR.js";
3
+ import { x as installedVersion } from "./snapshot-CVB9Ri2a.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-Hza4Q2PB.js";
3
+ import { t as VERSION$1 } from "./version-CRCAxS2s.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-JT4JhdmX.js";
7
+ import { t as CACHE_DIR } from "./cache-CNJD8OdR.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-P2ww2xCt.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CoCZr3Ru.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";
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-BCs4oBl2.js";
13
+ import { i as request } from "./source-COGgsYiV.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-DkXzxt6f.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";
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-Bsnge2oW.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-BdKeo7xp.js";
23
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-dZpH63--.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-CVw8hmLk.js";
25
- import { a as compiledReadSets } from "./providers-CL5Z5Uj4.js";
26
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-DSDB473C.js";
27
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-C2d3BSTf.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";
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-D4iSuTmS.js";
29
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-B0f_X3rI.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-DLba0VjH.js";
35
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-Bi5eQP4w.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-JT4JhdmX.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-P2ww2xCt.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";
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-CVw8hmLk.js";
9
- import { n as dataMigration } from "./migrations-BOmMcme9.js";
10
- import { t as syncModules } from "./sync-Cv7iBRhe.js";
11
- import { t as addModules } from "./add-DU5HAq6w.js";
12
- import { n as listModules, t as printModule } from "./print-CahE8HYK.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";
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-DLba0VjH.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-Bi5eQP4w.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-uCpXPLoF.js";
17
- import { n as runPowerSync } from "./powersync-CAHvPkkb.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";
18
18
  import { t as runSeed } from "./seed-DSC6f0oh.js";
19
- import { t as upgrade } from "./upgrade-DV7jTRdh.js";
19
+ import { t as upgrade } from "./upgrade-C60BZggI.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.41.0";
756
+ export declare const VERSION = "0.42.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-BBj137Fn.js";
3
- import { t as VERSION } from "./version-Hza4Q2PB.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";
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-P2ww2xCt.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-CoCZr3Ru.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BCs4oBl2.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";
8
8
  import { s as loadConfig } from "./config-DrrkMihk.js";
9
- import { n as runGen } from "./run-CVw8hmLk.js";
9
+ import { n as runGen } from "./run-CmJbNG2-.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-JT4JhdmX.js";
6
- import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-P2ww2xCt.js";
7
- import { a as toCatalog } from "./source-BCs4oBl2.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";
8
8
  import { a as findConfig, s as loadConfig } from "./config-DrrkMihk.js";
9
- import { r as contentMapperFiles } from "./content-mapper-DkXzxt6f.js";
9
+ import { r as contentMapperFiles } from "./content-mapper-Dl50Ny6a.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-BGErz-yb.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-C2d3BSTf.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";
13
13
  import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
14
- import { s as enablePgDelta, t as syncModules } from "./sync-Cv7iBRhe.js";
15
- import { t as appTablePlan } from "./app-table-files-Drzpekpt.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";
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-BCs4oBl2.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-BdKeo7xp.js";
2
+ import "./source-COGgsYiV.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-BL5kcRdz.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-BBj137Fn.js";
3
- import { t as VERSION } from "./version-Hza4Q2PB.js";
2
+ import { a as envelope, i as run } from "./run-CMvwtBX9.js";
3
+ import { t as VERSION } from "./version-CRCAxS2s.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-P2ww2xCt.js";
4
- import { c as metaPaths, n as render } from "./render-CoCZr3Ru.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-CVw8hmLk.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";
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-Drzpekpt.js";
4
+ import { t as appTablePlan } from "./app-table-files-DUi898lB.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-BdKeo7xp.js";
2
+ import { c as splitStatements } from "./shared-BL5kcRdz.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-Bsnge2oW.js";
4
- import { r as layoutFor } from "./providers-CL5Z5Uj4.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
4
+ import { r as layoutFor } from "./providers-lwK2lplZ.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-Bsnge2oW.js";
4
- import { i as stampAfter } from "./migrations-BOmMcme9.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
4
+ import { i as stampAfter } from "./migrations-C5k9hNOo.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";