better-supabase 0.33.0 → 0.35.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 (156) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-IrglDJCs.d.ts → app-tables-X3yzJljM.d.ts} +1 -1
  3. package/dist/{authorization-BlmDNI2b.d.ts → authorization-D1P3VBOd.d.ts} +53 -1
  4. package/dist/{automations-Bw5cX7oj.js → automations-D4QTP8nI.js} +2 -1
  5. package/dist/{bind-DP-KLgYI.d.ts → bind-Bvv-Zrdh.d.ts} +1 -1
  6. package/dist/{block-env-CJ38ZSTP.d.ts → block-env-h_uPl2f_.d.ts} +3 -3
  7. package/dist/{block-tables-CQTU71zn.d.ts → block-tables-pj3eHfoP.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 +15 -0
  18. package/dist/blocks/catalog/index.js +23 -8
  19. package/dist/blocks/comments/index.d.ts +4 -4
  20. package/dist/blocks/deals/index.js +1 -1
  21. package/dist/blocks/drive/index.js +1 -1
  22. package/dist/blocks/entitlements/index.d.ts +2 -2
  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 +4 -0
  27. package/dist/blocks/invoices/index.js +6 -3
  28. package/dist/blocks/messaging/index.d.ts +4 -4
  29. package/dist/blocks/mfa/index.d.ts +1 -1
  30. package/dist/blocks/notifications/index.d.ts +3 -3
  31. package/dist/blocks/onboarding/index.d.ts +1 -1
  32. package/dist/blocks/organizations/index.d.ts +2 -2
  33. package/dist/blocks/permissions/index.d.ts +1 -1
  34. package/dist/blocks/push/index.d.ts +1 -1
  35. package/dist/blocks/quotes/index.js +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/time-tracking/index.js +1 -1
  44. package/dist/blocks/undo/index.d.ts +1 -1
  45. package/dist/blocks/usage/index.d.ts +1 -1
  46. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  47. package/dist/blocks/workflows/index.d.ts +3 -3
  48. package/dist/claims/index.d.ts +3 -3
  49. package/dist/cli/add-BaB3y1lv.js +1 -0
  50. package/dist/cli/{add-D2pKTbPw.js → add-CYreXA68.js} +9 -9
  51. package/dist/cli/{add-BDLLVLI8.js → add-DzgsOE8V.js} +2 -2
  52. package/dist/cli/{app-table-files-CimWi_eh.js → app-table-files-BnISa3uY.js} +2 -2
  53. package/dist/cli/{backfill-B1xAsdL4.js → backfill-BLLTSDSa.js} +1 -1
  54. package/dist/cli/bin.js +1 -1
  55. package/dist/cli/{blocks-DtZtn-R4.js → blocks-CpRvI7x8.js} +1 -1
  56. package/dist/cli/{blocks-rBeis04I.js → blocks-uzh1g_0v.js} +1 -1
  57. package/dist/cli/{cache-CvBRwv02.js → cache-BPWC7tGD.js} +1 -1
  58. package/dist/cli/{codemod-DYbVbJ-e.js → codemod-CbJVS_kG.js} +1 -1
  59. package/dist/cli/{content-mapper-DrhtDsAm.js → content-mapper-Cjkm2Sg3.js} +2 -2
  60. package/dist/cli/{doctor-Dn4TzGmw.js → doctor-D94FEJZs.js} +19 -19
  61. package/dist/cli/{gen-BbeS0KgF.js → gen-Cd0VNDjE.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-C30xdMSs.js → init-Co1N9ZoA.js} +8 -8
  65. package/dist/cli/{live-Ctc8Qh9Y.js → live-NFNeZsP7.js} +2 -2
  66. package/dist/cli/{mcp-5J0kUOtD.js → mcp-WZ8t7NMz.js} +2 -2
  67. package/dist/cli/{metadata-DxhUNctA.js → metadata-BzMkmrZR.js} +3 -3
  68. package/dist/cli/{migrate-ockrh3UX.js → migrate-C9gyDAV7.js} +1 -1
  69. package/dist/cli/{migration-safety-CLrqC0D-.js → migration-safety-BNi8PIiM.js} +1 -1
  70. package/dist/cli/{migrations-CZTg2UJM.js → migrations-Ds0J_TmZ.js} +2 -2
  71. package/dist/cli/{module-migration-BptQzmj2.js → module-migration-hFrlzQZ5.js} +2 -2
  72. package/dist/cli/powersync-J2Kms2NT.js +1 -0
  73. package/dist/cli/{powersync-DIvsipKr.js → powersync-oFiwgsBi.js} +3 -3
  74. package/dist/cli/{print-DdHt8xCc.js → print-BtreoJSm.js} +2 -2
  75. package/dist/cli/{providers-k-1cEna6.js → providers-Be2dgyuR.js} +1 -1
  76. package/dist/cli/{prune-workflows-Ddv-GfkO.js → prune-workflows-BPxgRrqY.js} +1 -1
  77. package/dist/cli/{remove-DEEQDoc7.js → remove-B4ad996E.js} +5 -5
  78. package/dist/cli/{render-SjSVz8yK.js → render-C-Mfq-o3.js} +3 -3
  79. package/dist/cli/{run-DdhIK7-K.js → run-D2nuyyPo.js} +47 -39
  80. package/dist/cli/{run-Ixt9mEb6.js → run-cLdnJHH0.js} +25 -25
  81. package/dist/cli/{shared-p6sxli_5.js → shared-DCHxLAEL.js} +1 -1
  82. package/dist/cli/{snapshot-Dd_8B9g-.js → snapshot-CloKPNxv.js} +2 -2
  83. package/dist/cli/{source-BYvVe_Es.js → source-Bwyp18Rj.js} +1 -1
  84. package/dist/cli/{spec-BxQgllJY.js → spec-DAUF4ybu.js} +2 -2
  85. package/dist/cli/{spec-liRzcZTa.js → spec-DsVq4_qV.js} +1 -1
  86. package/dist/cli/{sql-layout-DHwiUOaD.js → sql-layout-CHpEL0oq.js} +3 -3
  87. package/dist/cli/{sync-CreQWj53.js → sync-DZu1r34s.js} +4 -4
  88. package/dist/cli/{upgrade-U7IKj45h.js → upgrade-A-BALvp3.js} +2 -2
  89. package/dist/cli/{upgrade-3NQOUO1_.js → upgrade-Bpvi70zm.js} +5 -5
  90. package/dist/cli/{version-mBwP-aMG.js → version-B59mZJoy.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-Bu6pwqcO.js → config-BZWSFxkG.js} +3 -3
  96. package/dist/{config-MDRA2sre.js → config-DQP0IvDX.js} +1 -1
  97. package/dist/{context-D7jICqdN.d.ts → context-CderJRZf.d.ts} +1 -1
  98. package/dist/contract/index.d.ts +3 -3
  99. package/dist/{controller-DxtxeYdf.d.ts → controller-DaWA9eWS.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-w04ivvAy.d.ts → entitlements-BefkpQIz.d.ts} +1 -1
  105. package/dist/{field-errors-DKCaSlZw.d.ts → field-errors-D1meOs_H.d.ts} +4 -4
  106. package/dist/{index-BvcMQYL-.d.ts → index-BQlLxOj5.d.ts} +1 -1
  107. package/dist/{index-DU0UwWvL.d.ts → index-BbDiBiKt.d.ts} +4 -4
  108. package/dist/{index-BZCmy767.d.ts → index-C13UgV67.d.ts} +2 -2
  109. package/dist/{index-BgkHbf9C.d.ts → index-ChLuLxy-.d.ts} +6 -6
  110. package/dist/{index-BdC2IqkU.d.ts → index-D9aV0Fvx.d.ts} +2 -2
  111. package/dist/{index-CbUXFzQV.d.ts → index-DXUiRyEk.d.ts} +1 -1
  112. package/dist/{index-CiE37wKX.d.ts → index-ZQZMQF4l.d.ts} +1 -1
  113. package/dist/{instances-D31jrmKh.js → instances-D9YrkoAy.js} +28 -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-CsCwruKT.d.ts → operations-t_hlXkS4.d.ts} +1 -1
  118. package/dist/{options-CgMiQGOF.js → options-C9bp3SEA.js} +2 -0
  119. package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
  120. package/dist/{options-Sq4bYbf5.js → options-CuaWhsQS.js} +2 -0
  121. package/dist/{options-DjFbIRgV.js → options-DjdxZgHi.js} +2 -1
  122. package/dist/{options-C-NFS6e3.js → options-DxgZ8tVc.js} +2 -1
  123. package/dist/otel/index.js +4 -4
  124. package/dist/{permissions-BP593xxk.d.ts → permissions-C8p6RlIZ.d.ts} +1 -1
  125. package/dist/{ports-BVLhLUvR.d.ts → ports-C-8uduFM.d.ts} +1 -1
  126. package/dist/powersync/index.d.ts +2 -2
  127. package/dist/preset/index.d.ts +3 -3
  128. package/dist/preset/index.js +3 -3
  129. package/dist/{preset-om2rbdYw.js → preset-B_sSI9vg.js} +2 -2
  130. package/dist/{project-D4ArwcS5.js → project-DVlXQGEp.js} +5 -5
  131. package/dist/{push-token-B0j171on.d.ts → push-token-D41lOoE8.d.ts} +1 -1
  132. package/dist/react/index.d.ts +5 -5
  133. package/dist/react/native/index.d.ts +1 -1
  134. package/dist/react/server.d.ts +5 -5
  135. package/dist/realtime/index.d.ts +3 -3
  136. package/dist/records/index.d.ts +3 -3
  137. package/dist/{resolved-names-DYYyh35i.js → resolved-names-h-3UbKcw.js} +1 -1
  138. package/dist/server/index.d.ts +3 -3
  139. package/dist/solid/index.d.ts +5 -5
  140. package/dist/sql/index.d.ts +5 -5
  141. package/dist/sql/index.js +2 -2
  142. package/dist/{sql-DiUP7fKX.js → sql-C9nO-Mat.js} +493 -198
  143. package/dist/ssr/index.d.ts +1 -1
  144. package/dist/svelte/index.d.ts +5 -5
  145. package/dist/{tenant-B3IIq8Eq.d.ts → tenant-gezshhcs.d.ts} +1 -1
  146. package/dist/testing/index.d.ts +3 -3
  147. package/dist/testing/index.js +1 -1
  148. package/dist/{topic-D2MyBeaI.d.ts → topic-BVq5RdsI.d.ts} +1 -1
  149. package/dist/{types-BFEKRmEK.d.ts → types-hTj5OuFo.d.ts} +2 -2
  150. package/dist/vue/index.d.ts +5 -5
  151. package/dist/{watch-topic-q6krNw0T.d.ts → watch-topic-BOclyLFd.d.ts} +1 -1
  152. package/dist/yjs/index.d.ts +1 -1
  153. package/package.json +1 -1
  154. package/schemas/config-v1.json +41 -0
  155. package/dist/cli/add-BaOCKKt6.js +0 -1
  156. package/dist/cli/powersync-CmsXOuui.js +0 -1
@@ -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-DHwiUOaD.js";
4
- import { i as stampAfter } from "./migrations-CZTg2UJM.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
4
+ import { i as stampAfter } from "./migrations-Ds0J_TmZ.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-oFiwgsBi.js";
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
3
- import { n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
4
- import { r as layoutFor } from "./providers-k-1cEna6.js";
5
- import { i as stampAfter } from "./migrations-CZTg2UJM.js";
3
+ import { n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
4
+ import { r as layoutFor } from "./providers-Be2dgyuR.js";
5
+ import { i as stampAfter } from "./migrations-Ds0J_TmZ.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join, resolve } from "node:path";
8
8
  import { readFile, readdir } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
- import { n as layout } from "./providers-k-1cEna6.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BptQzmj2.js";
2
+ import { n as layout } from "./providers-Be2dgyuR.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { resolve } from "node:path";
6
6
  import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { a as moduleKeyProblems, i as entitlementsMode, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
3
3
  import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
4
- import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-DHwiUOaD.js";
4
+ import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-CHpEL0oq.js";
5
5
  import { resolve } from "node:path";
6
6
  import { compileReadSets, moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
7
7
  import { isReadSet } from "better-supabase";
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-59XWXsRi.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-Ctc8Qh9Y.js";
6
+ import { n as ident } from "./live-NFNeZsP7.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
8
8
  // src/cli/commands/prune-workflows.ts
9
9
  const TERMINAL = [
@@ -3,14 +3,14 @@ import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as CliError } from "./errors-DcJ_PayO.js";
4
4
  import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
5
5
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
6
- import { a as sqlPlan } from "./sql-layout-DHwiUOaD.js";
7
- import { r as layoutFor } from "./providers-k-1cEna6.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-D2pKTbPw.js";
6
+ import { a as sqlPlan } from "./sql-layout-CHpEL0oq.js";
7
+ import { r as layoutFor } from "./providers-Be2dgyuR.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-CYreXA68.js";
9
9
  import { t as detectProject } from "./detect-BcUDaO8I.js";
10
10
  import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-C6sQ1MqT.js";
11
- import { n as guardedRemoval } from "./sync-CreQWj53.js";
11
+ import { n as guardedRemoval } from "./sync-DZu1r34s.js";
12
12
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
13
- import { t as blockNames } from "./blocks-rBeis04I.js";
13
+ import { t as blockNames } from "./blocks-uzh1g_0v.js";
14
14
  import { i as tidyInline, t as cutRange } from "./config-group-D4JWh4kG.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
@@ -1,11 +1,11 @@
1
1
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
2
2
  import { n as importPath } from "./io-CQzy8PEZ.js";
3
- import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-CvBRwv02.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-BPWC7tGD.js";
4
4
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
5
- import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-Dd_8B9g-.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-CloKPNxv.js";
6
6
  import { s as providerTruncatedClaim } from "./authorization-DJkkOjjG.js";
7
7
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-BYvVe_Es.js";
8
+ import { a as toCatalog } from "./source-Bwyp18Rj.js";
9
9
  import { m as withTableTags } from "./config-DrrkMihk.js";
10
10
  import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
11
11
  import { entityNames } from "better-supabase/blocks";
@@ -1,21 +1,58 @@
1
1
  import { r as errorText } from "./errors-DcJ_PayO.js";
2
2
  import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
3
- import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-CvBRwv02.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-BPWC7tGD.js";
4
4
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
5
- import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-Dd_8B9g-.js";
6
- import { n as render } from "./render-SjSVz8yK.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-CloKPNxv.js";
6
+ import { n as render } from "./render-C-Mfq-o3.js";
7
7
  import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
8
- import { s as schemaStampPath } from "./content-mapper-DrhtDsAm.js";
8
+ import { s as schemaStampPath } from "./content-mapper-Cjkm2Sg3.js";
9
9
  import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-DQayErI8.js";
10
- import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DHwiUOaD.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-p6sxli_5.js";
12
- import { a as compiledReadSets } from "./providers-k-1cEna6.js";
13
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-BptQzmj2.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-CHpEL0oq.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-DCHxLAEL.js";
12
+ import { a as compiledReadSets } from "./providers-Be2dgyuR.js";
13
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
16
16
  import { readFile } from "node:fs/promises";
17
17
  import { DEFAULT_ACTIVE_TENANT } from "better-supabase/config";
18
18
  import { SQL_MODULES, adoptedTables, declaredTables, moduleHidingColumns, moduleLayout, modulePermissionKeys, renderBlocks, resolveBlocks, sameBlockFile } from "better-supabase/sql";
19
+ // src/cli/doctor/app-tables.ts
20
+ /**
21
+ * The app's tables in the database, as `ownTables`: those in `schemas` that no
22
+ * block file or module migration creates.
23
+ */
24
+ function appTablesOf(context) {
25
+ const created = new Set(declaredTables((context.sqlFiles ?? []).filter(writtenByBlocks), context.config.schemas));
26
+ return Object.fromEntries(catalogOf(context).tables.filter((table) => context.config.schemas.includes(table.schema) && !created.has(qualified(table))).map((table) => [qualified(table), "database"]));
27
+ }
28
+ /**
29
+ * The views among the app's tables, and the columns of each, for the layout a
30
+ * block reads them with.
31
+ */
32
+ function appViewsOf(context) {
33
+ const own = appTablesOf(context);
34
+ const views = catalogOf(context).tables.filter((table) => table.kind === "view" && Object.hasOwn(own, qualified(table)));
35
+ return {
36
+ ownViews: Object.fromEntries(views.map((view) => [qualified(view), { updatable: view.insertable && view.updatable }])),
37
+ ownColumns: Object.fromEntries(views.map((view) => [qualified(view), view.columns.map((column) => column.name)]))
38
+ };
39
+ }
40
+ /**
41
+ * The provider for the `provider` access model, when `blocks` installs
42
+ * `access`.
43
+ */
44
+ function accessModule(context) {
45
+ if (!resolveBlocks(context.config.blockNames, {}).some((module) => module.name === "permissions")) return { kind: "off" };
46
+ return accessProviderMode(context.config);
47
+ }
48
+ /** What `adoptedTables` needs to render the modules as `upgrade` does. */
49
+ function adoptionContext(context) {
50
+ const access = accessModule(context);
51
+ return {
52
+ subjects: context.config.subjects,
53
+ ...access.kind === "provider" ? { accessProvider: access.access } : {}
54
+ };
55
+ }
19
56
  // src/cli/doctor/advisor-rules.ts
20
57
  /**
21
58
  * One request per advisor category, shared by the advisor rules and the rules
@@ -115,33 +152,12 @@ async function splinterTables(context, lint) {
115
152
  return object ? [`${object.schema}.${object.name}`] : [];
116
153
  }));
117
154
  }
118
- // src/cli/doctor/app-tables.ts
119
- /**
120
- * The app's tables in the database, as `ownTables`: those in `schemas` that no
121
- * block file or module migration creates.
122
- */
123
- function appTablesOf(context) {
124
- const created = new Set(declaredTables((context.sqlFiles ?? []).filter(writtenByBlocks), context.config.schemas));
125
- return Object.fromEntries(catalogOf(context).tables.filter((table) => context.config.schemas.includes(table.schema) && !created.has(qualified(table))).map((table) => [qualified(table), "database"]));
126
- }
127
- /**
128
- * The views among the app's tables, and the columns of each, for the layout a
129
- * block reads them with.
130
- */
131
- function appViewsOf(context) {
132
- const own = appTablesOf(context);
133
- const views = catalogOf(context).tables.filter((table) => table.kind === "view" && Object.hasOwn(own, qualified(table)));
134
- return {
135
- ownViews: Object.fromEntries(views.map((view) => [qualified(view), { updatable: view.insertable && view.updatable }])),
136
- ownColumns: Object.fromEntries(views.map((view) => [qualified(view), view.columns.map((column) => column.name)]))
137
- };
138
- }
139
155
  // src/cli/doctor/block-policies.ts
140
156
  /** The prefix the render pass gives block policies on the app's tables. */
141
157
  const BLOCK_PREFIX = "bsb_";
142
158
  /** The app tables (`schema.table`) that blocks run over. */
143
159
  function blockTargets(context) {
144
- return new Set(adoptedTables(context.config.blocks, appTablesOf(context), { subjects: context.config.subjects }).map((table) => `${table.schema}.${table.table}`));
160
+ return new Set(adoptedTables(context.config.blocks, appTablesOf(context), adoptionContext(context)).map((table) => `${table.schema}.${table.table}`));
145
161
  }
146
162
  /**
147
163
  * Whether permissive policies that overlap on `table` are one app policy and
@@ -797,14 +813,6 @@ function entitlementsModule(context) {
797
813
  return mode.kind === "provider" ? mode.provider : void 0;
798
814
  }
799
815
  /**
800
- * The provider for the `provider` access model, when `blocks` installs
801
- * `access`.
802
- */
803
- function accessModule(context) {
804
- if (!resolveBlocks(context.config.blockNames, {}).some((module) => module.name === "permissions")) return { kind: "off" };
805
- return accessProviderMode(context.config);
806
- }
807
- /**
808
816
  * Checks a function a template calls against `authorization.requires` and the
809
817
  * database: listed, executable by `role`, and present when the snapshot read
810
818
  * its schema. `undefined` when it passes.
@@ -1448,4 +1456,4 @@ async function runGen(options) {
1448
1456
  }
1449
1457
  };
1450
1458
  }
1451
- export { splinterTables as C, advisorRule as S, withoutStrings as _, METADATA_GAPS_TEXT as a, appTablesOf as b, accessModule as c, RLS_RULES as d, appliesTo as f, policyHelpers as g, functionObject as h, generationNotices as i, entitlementsModule as l, functionBody as m, runGen as n, fromMetadata as o, escape as p, UNFORMATTED as r, AUTHORIZATION_RULES as s, refuseRowConditionedBuckets as t, COMMANDS as u, BLOCK_PREFIX as v, appViewsOf as x, blockTargets as y };
1459
+ export { appTablesOf as C, adoptionContext as S, BLOCK_PREFIX as _, METADATA_GAPS_TEXT as a, splinterTables as b, entitlementsModule as c, appliesTo as d, escape as f, withoutStrings as g, policyHelpers as h, generationNotices as i, COMMANDS as l, functionObject as m, runGen as n, fromMetadata as o, functionBody as p, UNFORMATTED as r, AUTHORIZATION_RULES as s, refuseRowConditionedBuckets as t, RLS_RULES as u, blockTargets as v, appViewsOf as w, accessModule as x, advisorRule as y };
@@ -1,6 +1,6 @@
1
1
  import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-BpZ4AuhR.js";
2
2
  import { n as highlight, r as painter } from "./style-B5-nByxb.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
3
+ import { t as VERSION } from "./version-B59mZJoy.js";
4
4
  import { n as CliError, o as toCliError } from "./errors-DcJ_PayO.js";
5
5
  import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-59XWXsRi.js";
6
6
  import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-BueItuNJ.js";
@@ -16,41 +16,41 @@ import { resolve } from "node:path";
16
16
  * loads on demand, so `--version` and `--help` import no command.
17
17
  */
18
18
  const LOADERS = [
19
- ["init", () => import("./init-C30xdMSs.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-BaOCKKt6.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-DEEQDoc7.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-U7IKj45h.js").then((m) => m.upgradeCommand)],
19
+ ["init", () => import("./init-Co1N9ZoA.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-BaB3y1lv.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-B4ad996E.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-A-BALvp3.js").then((m) => m.upgradeCommand)],
23
23
  ["table", () => import("./table-D9FbJS8h.js").then((m) => m.tableCommand)],
24
- ["migrate schema-first", () => import("./migrate-ockrh3UX.js").then((m) => m.migrateSchemaFirstCommand)],
25
- ["gen", () => import("./gen-BbeS0KgF.js").then((m) => m.genCommand)],
26
- ["doctor", () => import("./doctor-Dn4TzGmw.js").then((m) => m.doctorCommand)],
24
+ ["migrate schema-first", () => import("./migrate-C9gyDAV7.js").then((m) => m.migrateSchemaFirstCommand)],
25
+ ["gen", () => import("./gen-Cd0VNDjE.js").then((m) => m.genCommand)],
26
+ ["doctor", () => import("./doctor-D94FEJZs.js").then((m) => m.doctorCommand)],
27
27
  ["db query", () => import("./db-Diy1OebO.js").then((m) => m.dbQueryCommand)],
28
28
  ["db diff", () => import("./db-Diy1OebO.js").then((m) => m.dbDiffCommand)],
29
29
  ["db seed", () => import("./seed-ByLneY1H.js").then((m) => m.seedCommand)],
30
- ["db backfill", () => import("./backfill-B1xAsdL4.js").then((m) => m.dbBackfillCommand)],
31
- ["db prune-workflows", () => import("./prune-workflows-Ddv-GfkO.js").then((m) => m.dbPruneWorkflowsCommand)],
30
+ ["db backfill", () => import("./backfill-BLLTSDSa.js").then((m) => m.dbBackfillCommand)],
31
+ ["db prune-workflows", () => import("./prune-workflows-BPxgRrqY.js").then((m) => m.dbPruneWorkflowsCommand)],
32
32
  ["dev env", () => import("./env-UN6PJFX6.js").then((m) => m.envCommand)],
33
33
  ["dev run", () => import("./run-dY9uOC3W.js").then((m) => m.runCommand)],
34
34
  ["dev keys", () => import("./keys-CxajkV_7.js").then((m) => m.keysCommand)],
35
35
  ["dev stack ls", () => import("./stack-147NqctC.js").then((m) => m.stackLsCommand)],
36
36
  ["dev stack prune", () => import("./stack-147NqctC.js").then((m) => m.stackPruneCommand)],
37
- ["blocks list", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksListCommand)],
38
- ["blocks view", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksViewCommand)],
39
- ["blocks search", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksSearchCommand)],
40
- ["powersync streams", () => import("./powersync-CmsXOuui.js").then((m) => m.powersyncStreamsCommand)],
41
- ["spec emit", () => import("./spec-liRzcZTa.js").then((m) => m.specEmitCommand)],
42
- ["spec validate", () => import("./spec-liRzcZTa.js").then((m) => m.specValidateCommand)],
43
- ["mcp", () => import("./mcp-5J0kUOtD.js").then((m) => m.mcpCommand)],
37
+ ["blocks list", () => import("./blocks-CpRvI7x8.js").then((m) => m.blocksListCommand)],
38
+ ["blocks view", () => import("./blocks-CpRvI7x8.js").then((m) => m.blocksViewCommand)],
39
+ ["blocks search", () => import("./blocks-CpRvI7x8.js").then((m) => m.blocksSearchCommand)],
40
+ ["powersync streams", () => import("./powersync-J2Kms2NT.js").then((m) => m.powersyncStreamsCommand)],
41
+ ["spec emit", () => import("./spec-DsVq4_qV.js").then((m) => m.specEmitCommand)],
42
+ ["spec validate", () => import("./spec-DsVq4_qV.js").then((m) => m.specValidateCommand)],
43
+ ["mcp", () => import("./mcp-WZ8t7NMz.js").then((m) => m.mcpCommand)],
44
44
  ["skills list", () => import("./skills-jZThjL3B.js").then((m) => m.skillsListCommand)],
45
45
  ["skills install", () => import("./skills-jZThjL3B.js").then((m) => m.skillsInstallCommand)],
46
- ["codemod 0.4", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.4"))],
47
- ["codemod 0.5", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.5"))],
48
- ["codemod 0.6", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.6"))],
49
- ["codemod 0.9", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.9"))],
50
- ["codemod 0.11", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.11"))],
51
- ["codemod 0.15", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.15"))],
52
- ["codemod 0.29", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.29"))],
53
- ["codemod 0.32", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.32"))],
46
+ ["codemod 0.4", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.4"))],
47
+ ["codemod 0.5", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.5"))],
48
+ ["codemod 0.6", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.6"))],
49
+ ["codemod 0.9", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.9"))],
50
+ ["codemod 0.11", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.11"))],
51
+ ["codemod 0.15", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.15"))],
52
+ ["codemod 0.29", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.29"))],
53
+ ["codemod 0.32", () => import("./codemod-CbJVS_kG.js").then((m) => m.codemodCommand("0.32"))],
54
54
  ["completion", () => import("./completion-B08Q0xB3.js").then((m) => m.completionCommand)],
55
55
  ["config", () => import("./config-D-Upz3jV.js").then((m) => m.configCommand)]
56
56
  ];
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-BYvVe_Es.js";
1
+ import { a as toCatalog } from "./source-Bwyp18Rj.js";
2
2
  import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-B6-eEV5p.js";
3
3
  // src/cli/doctor/shared.ts
4
4
  const catalogs = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
2
- import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-CvBRwv02.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-BPWC7tGD.js";
3
3
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
4
- import { n as managementSource, r as pgSource } from "./source-BYvVe_Es.js";
4
+ import { n as managementSource, r as pgSource } from "./source-Bwyp18Rj.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-DrrkMihk.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
7
7
  import { t as connect } from "./db-B8zfxjl2.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-mBwP-aMG.js";
1
+ import { t as VERSION } from "./version-B59mZJoy.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { r as redactUrl } from "./redact--zOGdWzo.js";
4
4
  import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
@@ -1,9 +1,9 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DegdyBIC.js";
2
2
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
3
+ import { t as VERSION } from "./version-B59mZJoy.js";
4
4
  import { i as failedResult, n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
5
5
  import { t as display } from "./io-CQzy8PEZ.js";
6
- import { c as writeAtomic, t as CACHE_DIR } from "./cache-CvBRwv02.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-BPWC7tGD.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
8
  import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
9
9
  import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
@@ -1 +1 @@
1
- export { n as specEmitCommand, i as specValidateCommand } from "./spec-BxQgllJY.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-DAUF4ybu.js";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-Dd_8B9g-.js";
2
- import { a as toCatalog } from "./source-BYvVe_Es.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CloKPNxv.js";
2
+ import { a as toCatalog } from "./source-Bwyp18Rj.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -44,7 +44,7 @@ async function auditedTables(config) {
44
44
  async function moduleLayoutFor(config, input) {
45
45
  const resolved = new Set(resolveBlocks(input.names, input.entitlementsProvider ? { entitlementsProvider: input.entitlementsProvider } : {}).map((module) => module.name));
46
46
  const own = await ownLayout(config);
47
- const adopted = adoptedColumnProblems(config.blocks, await declarativeTexts(config), config.schemas, own.ownTables, config.subjects);
47
+ const adopted = adoptedColumnProblems(config.blocks, await declarativeTexts(config), config.schemas, own.ownTables, config.subjects, input.accessProvider);
48
48
  if (adopted.length > 0) throw new TypeError(adopted.join("\n"));
49
49
  const fromPolicies = resolved.has("grants") && config.blocks["grants"]?.options?.["fromPolicies"] === true;
50
50
  const sessionPolicies = resolved.has("sessions") && config.blocks["sessions"]?.options?.["policies"] === true;
@@ -2,10 +2,10 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { t as display } from "./io-CQzy8PEZ.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
5
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
6
- import { r as layoutFor } from "./providers-k-1cEna6.js";
7
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-CZTg2UJM.js";
8
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-BptQzmj2.js";
5
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
6
+ import { r as layoutFor } from "./providers-Be2dgyuR.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-Ds0J_TmZ.js";
8
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
9
9
  import { t as loadTopics } from "./topics-Cdg0V7Tt.js";
10
10
  import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
11
11
  import { dirname, join, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as syncModules } from "./sync-CreQWj53.js";
3
+ import { t as syncModules } from "./sync-DZu1r34s.js";
4
4
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
5
- import { t as upgrade } from "./upgrade-3NQOUO1_.js";
5
+ import { t as upgrade } from "./upgrade-Bpvi70zm.js";
6
6
  // src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,10 +1,10 @@
1
1
  import { t as display } from "./io-CQzy8PEZ.js";
2
2
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
4
- import { r as layoutFor } from "./providers-k-1cEna6.js";
5
- import { r as migrationStamp } from "./migrations-CZTg2UJM.js";
6
- import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-BptQzmj2.js";
7
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-CreQWj53.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CHpEL0oq.js";
4
+ import { r as layoutFor } from "./providers-Be2dgyuR.js";
5
+ import { r as migrationStamp } from "./migrations-Ds0J_TmZ.js";
6
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-hFrlzQZ5.js";
7
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-DZu1r34s.js";
8
8
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-D8Jfku6I.js";
9
9
  import { resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
@@ -1,3 +1,3 @@
1
1
  // src/cli/version.ts
2
- const VERSION = "0.33.0";
2
+ const VERSION = "0.35.0";
3
3
  export { VERSION as t };
@@ -1,8 +1,8 @@
1
1
  import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-CMENsp3d.js";
2
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-q6krNw0T.js";
3
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-BVLhLUvR.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-DP-KLgYI.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DxtxeYdf.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-BOclyLFd.js";
3
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-C-8uduFM.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-Bvv-Zrdh.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-DaWA9eWS.js";
6
6
  import { n as FunctionContract } from "../function-contract-DgDBYbXu.js";
7
- import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-BdC2IqkU.js";
7
+ import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-D9aV0Fvx.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { T as UploadOptions, w as UploadBody } from "../../bucket-DvG66r5G.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-q6krNw0T.js";
4
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-BVLhLUvR.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-DP-KLgYI.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-B0j171on.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-BOclyLFd.js";
4
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-C-8uduFM.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-Bvv-Zrdh.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-D41lOoE8.js";
7
7
  import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  /** The part of React Native's `AppState` that `autoRefreshOnForeground` uses. */
@@ -1,6 +1,6 @@
1
1
  import { M as Casing } from "../types-BkYEUWdz.js";
2
- import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-BlmDNI2b.js";
3
- import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-D7jICqdN.js";
2
+ import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-D1P3VBOd.js";
3
+ import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-CderJRZf.js";
4
4
  import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BGwLJ3IB.js";
5
5
  import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-DVukMbRa.js";
6
6
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-DYYyh35i.js";
2
- import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-MDRA2sre.js";
1
+ import { n as resolveJsonSchema, r as CONFIG_DEFAULTS } from "../resolved-names-h-3UbKcw.js";
2
+ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-DQP0IvDX.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
4
- import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-D31jrmKh.js";
4
+ import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-D9YrkoAy.js";
5
5
  import { r as FIELD_FORMATS } from "../field-formats-Cap-V7UP.js";
6
- import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-Bu6pwqcO.js";
6
+ import { a as factories, c as resolveConfig, d as blockSubjectTypes, f as providerApiProblem, i as nuqs, l as blockEntities, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod, u as blockEntityRenames } from "../config-BZWSFxkG.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-D9eVL_xi.js";
8
8
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-DYYyh35i.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-MDRA2sre.js";
1
+ import { r as CONFIG_DEFAULTS, t as resolveNames } from "./resolved-names-h-3UbKcw.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-DQP0IvDX.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
4
4
  import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
5
- import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-D31jrmKh.js";
5
+ import { I as resolveBlock, L as tenantNameOf, M as PRESET_CATALOG, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-D9YrkoAy.js";
6
6
  import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
7
7
  // src/config/authorization.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-D31jrmKh.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-D9YrkoAy.js";
3
3
  // src/config/names.ts
4
4
  /** The steps `better-supabase gen` runs, in the order it runs them. */
5
5
  const GEN_TASKS = [
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { M as Casing, P as ClaimsMeta, T as AccessBucketPolicy, _t as BucketLifecycle, j as BucketPolicyName, ot as SchemaMeta } from "./types-BkYEUWdz.js";
3
- import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-BlmDNI2b.js";
3
+ import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-D1P3VBOd.js";
4
4
  import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-COmMkx2x.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
@@ -1,12 +1,12 @@
1
1
  import { $t as Authorizer, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationContext, Ht as AnyAuthorizer, Jt as AuthorizationPurpose, Kt as AuthorizationIntent, Qt as AuthorizationSubject, T as AccessBucketPolicy, Ut as AuthorizationCallKind, Wt as AuthorizationChange, Xt as AuthorizationResource, Yt as AuthorizationRequest, Zt as AuthorizationResourceSource, en as AuthorizerRuntime, nn as PermissionRef, qt as AuthorizationOutcome, rn as RequestMemo, tn as AuthzVersionCache } from "../types-BkYEUWdz.js";
2
2
  import { r as CredentialProvider } from "../provider-BI0KC4u5.js";
3
- import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-BlmDNI2b.js";
3
+ import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-D1P3VBOd.js";
4
4
  import { i as SessionSnapshot } from "../snapshot-BGsJw9xn.js";
5
5
  import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CxwsRnfV.js";
6
6
  import { n as ApprovalOptions } from "../server-types-C2hlvhP4.js";
7
7
  import { s as ApiKeyResolverOptions } from "../api-keys-DbIbkGxx.js";
8
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-CiE37wKX.js";
9
- import { n as BlockTables, t as BlockTable } from "../block-tables-CQTU71zn.js";
8
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-ZQZMQF4l.js";
9
+ import { n as BlockTables, t as BlockTable } from "../block-tables-pj3eHfoP.js";
10
10
  /**
11
11
  * The types an authorization library implements or reads, in one entry with no
12
12
  * runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-DP-KLgYI.js";
1
+ import { a as ClientAuth } from "./bind-Bvv-Zrdh.js";
2
2
  /**
3
3
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
4
4
  * follow the external-store contract, so React's `useSyncExternalStore`, a Vue
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-D7jICqdN.js";
3
- import { E as CreateDesign, b as DesignChange } from "../index-BvcMQYL-.js";
4
- import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-BFEKRmEK.js";
2
+ import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-CderJRZf.js";
3
+ import { E as CreateDesign, b as DesignChange } from "../index-BQlLxOj5.js";
4
+ import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-hTj5OuFo.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
6
  /** What `checkDesign` returns. */
7
7
  export type DesignCheck = {