better-supabase 0.58.0 → 0.58.1

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 (120) hide show
  1. package/dist/{adapter-base-xVHtNe6Y.js → adapter-base-8PuJ3OoB.js} +1 -1
  2. package/dist/{api-CCA7xIEu.js → api-D-YoZpRe.js} +1 -1
  3. package/dist/{app-tables-BS_qkwdc.d.ts → app-tables-IXL0Hzut.d.ts} +1 -1
  4. package/dist/astro/index.js +3 -3
  5. package/dist/{block-tables-DCB8f9J4.d.ts → block-tables-DmDyNlJf.d.ts} +1 -1
  6. package/dist/{build-CfjNUbQF.js → build-1ikup3O6.js} +1 -1
  7. package/dist/cli/{add-AGqgANt0.js → add-B63B07UG.js} +9 -9
  8. package/dist/cli/{add-PGMtNCB5.js → add-CBNxtc8h.js} +2 -2
  9. package/dist/cli/add-CeZUs_jU.js +1 -0
  10. package/dist/cli/{app-table-files-DN6altk8.js → app-table-files-BQU5_xhz.js} +3 -3
  11. package/dist/cli/{app-tables-BEuVy9jZ.js → app-tables-DUCrWiGS.js} +2 -2
  12. package/dist/cli/{backfill-DQky-bnQ.js → backfill-ff_y-n3l.js} +1 -1
  13. package/dist/cli/bin.js +1 -1
  14. package/dist/cli/{blocks-C4gf-NCB.js → blocks-BuwjO--N.js} +1 -1
  15. package/dist/cli/{blocks-CvgKphq5.js → blocks-DcMd8kRY.js} +1 -1
  16. package/dist/cli/{cache-BL0PV5bp.js → cache-Di8fhrqf.js} +1 -1
  17. package/dist/cli/{codemod-CfMLArut.js → codemod-Bu77IP-l.js} +40 -10
  18. package/dist/cli/{codemod-naming-GlDd60vP.js → codemod-naming-CB4FfxcO.js} +3 -3
  19. package/dist/cli/{column-renames-OREkqj_i.js → column-renames-B8tfoufA.js} +2 -2
  20. package/dist/cli/{content-mapper-4kvJb2Zr.js → content-mapper-Dby_JOgB.js} +1 -1
  21. package/dist/cli/{dev-DZPgvArG.js → dev-CJnbxe_s.js} +3 -3
  22. package/dist/cli/{doctor-9H-4NFvs.js → doctor-C_GPFp8I.js} +39 -24
  23. package/dist/cli/{emit-CvADhyWe.js → emit-Diublx-B.js} +2 -2
  24. package/dist/cli/{gen-DMIJFtUS.js → gen-BgTMpJhV.js} +3 -3
  25. package/dist/cli/{gen-tasks--SLFTBiL.js → gen-tasks-Dn9gxauI.js} +9 -9
  26. package/dist/cli/index.d.ts +1 -1
  27. package/dist/cli/index.js +7 -7
  28. package/dist/cli/{init-PfhcsqFp.js → init-1gNLko5F.js} +8 -8
  29. package/dist/cli/{live-D7d0_esL.js → live-D07gGcoV.js} +2 -2
  30. package/dist/cli/{mcp-3zkYyT1k.js → mcp-BwMLfpxa.js} +2 -2
  31. package/dist/cli/{memo-backend-u47k0fen.js → memo-backend-yki17W-K.js} +1 -1
  32. package/dist/cli/{metadata-DPc2UrU8.js → metadata-CxF9te2t.js} +4 -4
  33. package/dist/cli/{migrate-BaOQ2TRl.js → migrate-D4gNS4gj.js} +1 -1
  34. package/dist/cli/{migration-safety-C9VTNSRj.js → migration-safety-DsQonP4-.js} +1 -1
  35. package/dist/cli/{module-migration-D3eboFLN.js → module-migration-Cl-I5j0j.js} +1 -1
  36. package/dist/cli/{partition-DWO1HSmo.js → partition-C5G03PgD.js} +1 -1
  37. package/dist/cli/powersync-TDly6ptq.js +1 -0
  38. package/dist/cli/{powersync-CVA8cmDL.js → powersync-WhAasez3.js} +3 -3
  39. package/dist/cli/{print-BLFFKbTG.js → print-B6dsmPgY.js} +2 -2
  40. package/dist/cli/{providers-CwsjSukl.js → providers-B4QIwuqF.js} +1 -1
  41. package/dist/cli/{prune-workflows-Y-8-5f6g.js → prune-workflows-BRLMJAN3.js} +1 -1
  42. package/dist/cli/{remove-BJXH69GK.js → remove-H86BDqeG.js} +6 -6
  43. package/dist/cli/{render-DpQu2hex.js → render-DinflArt.js} +4 -4
  44. package/dist/cli/{render-cache-D-mQmPU3.js → render-cache-BoFKfBx6.js} +1 -1
  45. package/dist/cli/{run-DBtkS8LK.js → run-3BMqhsTa.js} +7 -7
  46. package/dist/cli/{run-DfESdGAS.js → run-sk-YY1p3.js} +30 -30
  47. package/dist/cli/{shared-BOCyL4Jr.js → shared-B9fxx6uL.js} +1 -1
  48. package/dist/cli/{source-Di9xMdUa.js → source-Dwn8SwJg.js} +1 -1
  49. package/dist/cli/{spec-B8BagkH4.js → spec--0tYexnO.js} +1 -1
  50. package/dist/cli/{spec-CKLkRyUY.js → spec-BFlvbXVb.js} +2 -2
  51. package/dist/cli/{sql-layout-DoiFr1yL.js → sql-layout-CpbXj-r9.js} +2 -2
  52. package/dist/cli/{squash-COXoWW5e.js → squash-DLXeXmpI.js} +1 -1
  53. package/dist/cli/{sync-B4TvyjWJ.js → sync-DHUrIa97.js} +4 -4
  54. package/dist/cli/{upgrade-AyAHttUG.js → upgrade-DKfXHex4.js} +5 -5
  55. package/dist/cli/{upgrade-MiBhMtCR.js → upgrade-N7lDosgT.js} +5 -5
  56. package/dist/cli/{version-Coyg0Oh1.js → version-Bm4K-iOw.js} +1 -1
  57. package/dist/client/index.js +1 -1
  58. package/dist/client/native/index.js +2 -2
  59. package/dist/{composite-CE_0rQOp.js → composite-6VIY4jUO.js} +1 -1
  60. package/dist/config/index.d.ts +1 -1
  61. package/dist/{context-CTVM2dnp.d.ts → context-DMBXEzQa.d.ts} +7 -1
  62. package/dist/contract/index.d.ts +1 -1
  63. package/dist/create/index.d.ts +3 -3
  64. package/dist/create/index.js +1 -1
  65. package/dist/create/lite/index.d.ts +2 -2
  66. package/dist/create/lite/index.js +2 -2
  67. package/dist/{define-runtime-D65Va0N-.js → define-runtime-BBF5JHl4.js} +3 -2
  68. package/dist/{define-runtime-full-BbAQ7sWI.js → define-runtime-full-D6v1ST7M.js} +1 -1
  69. package/dist/edge/index.js +4 -4
  70. package/dist/{executor-BL-zAKSs.js → executor-BgjsCon6.js} +1 -1
  71. package/dist/expo/index.js +3 -3
  72. package/dist/{extras-BUIrkbFZ.d.ts → extras-C258FsPj.d.ts} +1 -1
  73. package/dist/{framework-B2sjpHOX.js → framework-DSGTH9p6.js} +1 -1
  74. package/dist/generators/factories/index.d.ts +1 -1
  75. package/dist/generators/factories/index.js +1 -1
  76. package/dist/generators/index.d.ts +2 -2
  77. package/dist/generators/json-schema/index.d.ts +2 -2
  78. package/dist/generators/json-schema/index.js +1 -1
  79. package/dist/generators/nuqs/index.d.ts +1 -1
  80. package/dist/generators/nuqs/index.js +1 -1
  81. package/dist/generators/standard-schema/index.d.ts +1 -1
  82. package/dist/generators/standard-schema/index.js +1 -1
  83. package/dist/generators/valibot/index.d.ts +1 -1
  84. package/dist/generators/valibot/index.js +1 -1
  85. package/dist/generators/zod/index.d.ts +1 -1
  86. package/dist/generators/zod/index.js +1 -1
  87. package/dist/hono/index.js +3 -3
  88. package/dist/{index-DYIGj6Qq.d.ts → index-CIVA5x1i.d.ts} +1 -1
  89. package/dist/{index-C1UeevYS.d.ts → index-DRKAMZV3.d.ts} +1 -1
  90. package/dist/{json-schema-CjKyPNYA.js → json-schema-Ba8xSQxR.js} +1 -1
  91. package/dist/mapper/bin.js +5 -5
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/sdk/index.js +1 -1
  94. package/dist/{mcp-CzzpcpQl.js → mcp-CaC-3JB3.js} +3 -3
  95. package/dist/next/index.js +2 -2
  96. package/dist/orpc/index.js +2 -2
  97. package/dist/otel/index.js +5 -5
  98. package/dist/{ports-_zS9fGcE.js → ports-BXtpOQRz.js} +1 -1
  99. package/dist/powersync/index.js +1 -1
  100. package/dist/preset/index.d.ts +3 -3
  101. package/dist/{project-I5wL8liz.js → project-Bgz2gbh5.js} +1 -1
  102. package/dist/react-router/index.js +3 -3
  103. package/dist/server/index.js +4 -4
  104. package/dist/{server-DwF_O2Lx.js → server-DFxO9Dyz.js} +1 -1
  105. package/dist/solid-start/index.js +3 -3
  106. package/dist/spec/index.js +2 -2
  107. package/dist/sql/index.d.ts +4 -4
  108. package/dist/sql/index.js +1 -1
  109. package/dist/{sql-C4eWk1yb.js → sql-BbaGokNJ.js} +45 -26
  110. package/dist/sqlite/index.js +1 -1
  111. package/dist/sveltekit/index.js +3 -3
  112. package/dist/tanstack-start/index.js +3 -3
  113. package/dist/testing/index.d.ts +1 -1
  114. package/dist/testing/index.js +2 -2
  115. package/dist/{types-B7t7smOy.d.ts → types-BidEA6pZ.d.ts} +1 -1
  116. package/dist/{version-4Go_CIFV.js → version-Ce4Rk4uV.js} +1 -1
  117. package/dist/webmcp/index.js +1 -1
  118. package/package.json +1 -1
  119. package/dist/cli/add-Ck4nVuBp.js +0 -1
  120. package/dist/cli/powersync-BQSUM-F9.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h as INTEGRATIONS } from "./config-NxPVkM-K.js";
2
- import { l as schemaModulePath } from "./emit-CvADhyWe.js";
2
+ import { l as schemaModulePath } from "./emit-Diublx-B.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { splitStatements } from "better-supabase/sql";
@@ -1,5 +1,5 @@
1
1
  import { i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
2
- import { i as migrationsDir, l as sqlPlan } from "./sql-layout-DoiFr1yL.js";
2
+ import { i as migrationsDir, l as sqlPlan } from "./sql-layout-CpbXj-r9.js";
3
3
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
5
5
  import { resolve } from "node:path";
@@ -3,7 +3,7 @@ import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js"
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-D7d0_esL.js";
6
+ import { n as ident } from "./live-D07gGcoV.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-B3Rowfv5.js";
8
8
  // src/cli/commands/partition.ts
9
9
  const DEFAULT_BATCH = 5e4;
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-WhAasez3.js";
@@ -1,10 +1,10 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
3
3
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
4
- import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-DoiFr1yL.js";
4
+ import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-CpbXj-r9.js";
5
5
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
6
- import { r as layoutFor } from "./providers-CwsjSukl.js";
7
- import { n as renderBlocksCached } from "./render-cache-D-mQmPU3.js";
6
+ import { r as layoutFor } from "./providers-B4QIwuqF.js";
7
+ import { n as renderBlocksCached } from "./render-cache-BoFKfBx6.js";
8
8
  import { d as subjectFromTag } from "./config-NxPVkM-K.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { join, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-B7i-VGxk.js";
2
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-D3eboFLN.js";
3
- import { n as layout } from "./providers-CwsjSukl.js";
2
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-Cl-I5j0j.js";
3
+ import { n as layout } from "./providers-B4QIwuqF.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 { a as entitlementsMode, o as moduleKeyProblems, t as accessProviderMode } from "./authorization-CNWhpdKb.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
4
- import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-DoiFr1yL.js";
4
+ import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-CpbXj-r9.js";
5
5
  import { moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
6
6
  import { FormerPermissionKeyError } from "better-supabase/config";
7
7
  // src/cli/sql/providers.ts
@@ -3,7 +3,7 @@ import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js"
3
3
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
4
4
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { t as connect } from "./db-B_xr3ZvK.js";
6
- import { n as ident } from "./live-D7d0_esL.js";
6
+ import { n as ident } from "./live-D07gGcoV.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-B3Rowfv5.js";
8
8
  // src/cli/commands/prune-workflows.ts
9
9
  const TERMINAL = [
@@ -2,15 +2,15 @@ import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-NnXnawki.js";
4
4
  import { r as readIfExists, t as display } from "./io-CngfGyMA.js";
5
- import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-AGqgANt0.js";
5
+ import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-B63B07UG.js";
6
6
  import { t as detectProject } from "./detect-CHR-SAmE.js";
7
- import { l as sqlPlan } from "./sql-layout-DoiFr1yL.js";
8
- import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-PGMtNCB5.js";
7
+ import { l as sqlPlan } from "./sql-layout-CpbXj-r9.js";
8
+ import { _ as tidyInline, c as cutRange, i as addBlocksToJson, l as mask, n as isComposite, o as closingIndex, r as addBlocksToConfig, s as configObject, u as properties, v as wiringBlocks } from "./add-CBNxtc8h.js";
9
9
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
10
- import { r as layoutFor } from "./providers-CwsjSukl.js";
11
- import { n as guardedRemoval } from "./sync-B4TvyjWJ.js";
10
+ import { r as layoutFor } from "./providers-B4QIwuqF.js";
11
+ import { n as guardedRemoval } from "./sync-DHUrIa97.js";
12
12
  import { i as plain } from "./style-B5-nByxb.js";
13
- import { t as blockNames } from "./blocks-CvgKphq5.js";
13
+ import { t as blockNames } from "./blocks-DcMd8kRY.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import { resolve } from "node:path";
16
16
  import { readFile } from "node:fs/promises";
@@ -1,11 +1,11 @@
1
1
  import { n as importPath } from "./io-CngfGyMA.js";
2
2
  import { n as cacheEnabled, t as CACHE_DIR } from "./store-DP-nmqBt.js";
3
3
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
4
- import { o as typesModuleKey, r as cachedTypesModule, s as writeAtomic, t as cachedDatabaseTypes } from "./cache-BL0PV5bp.js";
5
- import { t as VERSION } from "./version-Coyg0Oh1.js";
6
- import { M as generateDatabaseTypes, N as oxfmtInstalled, n as appSchemaTexts, t as appColumnsFor, x as apiTypeSchemas } from "./sql-layout-DoiFr1yL.js";
4
+ import { o as typesModuleKey, r as cachedTypesModule, s as writeAtomic, t as cachedDatabaseTypes } from "./cache-Di8fhrqf.js";
5
+ import { t as VERSION } from "./version-Bm4K-iOw.js";
6
+ import { M as generateDatabaseTypes, N as oxfmtInstalled, n as appSchemaTexts, t as appColumnsFor, x as apiTypeSchemas } from "./sql-layout-CpbXj-r9.js";
7
7
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
8
- import { _ as prop, a as emitModule, b as singular, c as metaPaths, d as buildModel$1, f as generatorModel, g as pascal$2, h as identifier, i as emitMeta, l as schemaModulePath, n as emitFunctions, o as emitRuntime, r as emitFunctionsTypes, s as emitSchemaModule, t as GENERATED_HEADER, u as valueLists, v as q, x as applyCasing, y as runtimeSubpath } from "./emit-CvADhyWe.js";
8
+ import { _ as prop, a as emitModule, b as singular, c as metaPaths, d as buildModel$1, f as generatorModel, g as pascal$2, h as identifier, i as emitMeta, l as schemaModulePath, n as emitFunctions, o as emitRuntime, r as emitFunctionsTypes, s as emitSchemaModule, t as GENERATED_HEADER, u as valueLists, v as q, x as applyCasing, y as runtimeSubpath } from "./emit-Diublx-B.js";
9
9
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
10
10
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
11
11
  import { u as withTableTags } from "./config-NxPVkM-K.js";
@@ -1,5 +1,5 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
- import { t as VERSION } from "./version-Coyg0Oh1.js";
2
+ import { t as VERSION } from "./version-Bm4K-iOw.js";
3
3
  import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -1,17 +1,17 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
2
  import { a as entitlementsMode, c as unsafeKey, i as entitlementRequirements, n as accessRequirements, o as moduleKeyProblems, s as providerLabel } from "./authorization-CNWhpdKb.js";
3
- import { B as typegenVersionNotice, H as installedVersion, L as stabilizeMetadata, N as oxfmtInstalled, V as declaredPeers, W as satisfies, d as loadSnapshot, i as migrationsDir, z as typegenVersion } from "./sql-layout-DoiFr1yL.js";
4
- import { s as schemaStampPath } from "./content-mapper-4kvJb2Zr.js";
3
+ import { B as typegenVersionNotice, H as installedVersion, L as stabilizeMetadata, N as oxfmtInstalled, V as declaredPeers, W as satisfies, d as loadSnapshot, i as migrationsDir, z as typegenVersion } from "./sql-layout-CpbXj-r9.js";
4
+ import { s as schemaStampPath } from "./content-mapper-Dby_JOgB.js";
5
5
  import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-NnXnawki.js";
6
6
  import { a as sameText, t as display } from "./io-CngfGyMA.js";
7
- import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BEuVy9jZ.js";
7
+ import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-DUCrWiGS.js";
8
8
  import { r as errorText } from "./errors-B7i-VGxk.js";
9
- import { c as qualified, l as tableObject, r as exposed, s as policyObject, t as catalogOf } from "./shared-BOCyL4Jr.js";
10
- import { a as storeTypesModule, o as typesModuleKey, s as writeAtomic } from "./cache-BL0PV5bp.js";
9
+ import { c as qualified, l as tableObject, r as exposed, s as policyObject, t as catalogOf } from "./shared-B9fxx6uL.js";
10
+ import { a as storeTypesModule, o as typesModuleKey, s as writeAtomic } from "./cache-Di8fhrqf.js";
11
11
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
12
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-D3eboFLN.js";
12
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-Cl-I5j0j.js";
13
13
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
14
- import { n as render } from "./render-DpQu2hex.js";
14
+ import { n as render } from "./render-DinflArt.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
17
17
  import { readFile } from "node:fs/promises";
@@ -1,7 +1,7 @@
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-fqvJ0TdG.js";
2
2
  import { s as setCacheEnabled } from "./store-DP-nmqBt.js";
3
3
  import { n as highlight, r as painter } from "./style-B5-nByxb.js";
4
- import { t as VERSION } from "./version-Coyg0Oh1.js";
4
+ import { t as VERSION } from "./version-Bm4K-iOw.js";
5
5
  import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-BlYLJPzM.js";
6
6
  import { a as isActionRequired, l as toCliError, n as CliError, o as isReport, s as isRetryable } from "./errors-B7i-VGxk.js";
7
7
  import { r as splitCommandLine } from "./shell-omi9-T2X.js";
@@ -21,48 +21,48 @@ const LOADERS = [
21
21
  ["login", () => import("./account-BzhVD6jJ.js").then((m) => m.loginCommand)],
22
22
  ["logout", () => import("./account-BzhVD6jJ.js").then((m) => m.logoutCommand)],
23
23
  ["whoami", () => import("./account-BzhVD6jJ.js").then((m) => m.whoamiCommand)],
24
- ["init", () => import("./init-PfhcsqFp.js").then((m) => m.initCommand)],
25
- ["add", () => import("./add-Ck4nVuBp.js").then((m) => m.addCommand)],
26
- ["remove", () => import("./remove-BJXH69GK.js").then((m) => m.removeCommand)],
27
- ["upgrade", () => import("./upgrade-MiBhMtCR.js").then((m) => m.upgradeCommand)],
24
+ ["init", () => import("./init-1gNLko5F.js").then((m) => m.initCommand)],
25
+ ["add", () => import("./add-CeZUs_jU.js").then((m) => m.addCommand)],
26
+ ["remove", () => import("./remove-H86BDqeG.js").then((m) => m.removeCommand)],
27
+ ["upgrade", () => import("./upgrade-N7lDosgT.js").then((m) => m.upgradeCommand)],
28
28
  ["table", () => import("./table-CcO-m_7t.js").then((m) => m.tableCommand)],
29
- ["migrate schema-first", () => import("./migrate-BaOQ2TRl.js").then((m) => m.migrateSchemaFirstCommand)],
30
- ["gen", () => import("./gen-DMIJFtUS.js").then((m) => m.genCommand)],
31
- ["doctor", () => import("./doctor-9H-4NFvs.js").then((m) => m.doctorCommand)],
29
+ ["migrate schema-first", () => import("./migrate-D4gNS4gj.js").then((m) => m.migrateSchemaFirstCommand)],
30
+ ["gen", () => import("./gen-BgTMpJhV.js").then((m) => m.genCommand)],
31
+ ["doctor", () => import("./doctor-C_GPFp8I.js").then((m) => m.doctorCommand)],
32
32
  ["codes", () => import("./codes-DNq30BZg.js").then((m) => m.codesCommand)],
33
33
  ["db query", () => import("./db-od92zIrO.js").then((m) => m.dbQueryCommand)],
34
34
  ["db diff", () => import("./db-od92zIrO.js").then((m) => m.dbDiffCommand)],
35
35
  ["db seed", () => import("./seed-Dlm5jjPn.js").then((m) => m.seedCommand)],
36
- ["db backfill", () => import("./backfill-DQky-bnQ.js").then((m) => m.dbBackfillCommand)],
36
+ ["db backfill", () => import("./backfill-ff_y-n3l.js").then((m) => m.dbBackfillCommand)],
37
37
  ["db verify", () => import("./verify-BFLaU6w3.js").then((m) => m.dbVerifyCommand)],
38
- ["db partition", () => import("./partition-DWO1HSmo.js").then((m) => m.dbPartitionCommand)],
39
- ["db squash", () => import("./squash-COXoWW5e.js").then((m) => m.dbSquashCommand)],
40
- ["workflows prune", () => import("./prune-workflows-Y-8-5f6g.js").then((m) => m.workflowsPruneCommand)],
41
- ["dev", () => import("./dev-DZPgvArG.js").then((m) => m.devCommand)],
38
+ ["db partition", () => import("./partition-C5G03PgD.js").then((m) => m.dbPartitionCommand)],
39
+ ["db squash", () => import("./squash-DLXeXmpI.js").then((m) => m.dbSquashCommand)],
40
+ ["workflows prune", () => import("./prune-workflows-BRLMJAN3.js").then((m) => m.workflowsPruneCommand)],
41
+ ["dev", () => import("./dev-CJnbxe_s.js").then((m) => m.devCommand)],
42
42
  ["dev env", () => import("./env-bItpF97w.js").then((m) => m.envCommand)],
43
43
  ["dev run", () => import("./run-DbR0NaN_.js").then((m) => m.runCommand)],
44
44
  ["dev keys", () => import("./keys-f9iMQepr.js").then((m) => m.keysCommand)],
45
45
  ["dev stack ls", () => import("./stack-BUrc8jsg.js").then((m) => m.stackLsCommand)],
46
46
  ["dev stack prune", () => import("./stack-BUrc8jsg.js").then((m) => m.stackPruneCommand)],
47
47
  ["automations list", () => import("./automations-C1yZj3mn.js").then((m) => m.automationsListCommand)],
48
- ["blocks list", () => import("./blocks-C4gf-NCB.js").then((m) => m.blocksListCommand)],
49
- ["blocks view", () => import("./blocks-C4gf-NCB.js").then((m) => m.blocksViewCommand)],
50
- ["blocks search", () => import("./blocks-C4gf-NCB.js").then((m) => m.blocksSearchCommand)],
51
- ["powersync streams", () => import("./powersync-BQSUM-F9.js").then((m) => m.powersyncStreamsCommand)],
52
- ["spec emit", () => import("./spec-B8BagkH4.js").then((m) => m.specEmitCommand)],
53
- ["spec validate", () => import("./spec-B8BagkH4.js").then((m) => m.specValidateCommand)],
54
- ["mcp", () => import("./mcp-3zkYyT1k.js").then((m) => m.mcpCommand)],
48
+ ["blocks list", () => import("./blocks-BuwjO--N.js").then((m) => m.blocksListCommand)],
49
+ ["blocks view", () => import("./blocks-BuwjO--N.js").then((m) => m.blocksViewCommand)],
50
+ ["blocks search", () => import("./blocks-BuwjO--N.js").then((m) => m.blocksSearchCommand)],
51
+ ["powersync streams", () => import("./powersync-TDly6ptq.js").then((m) => m.powersyncStreamsCommand)],
52
+ ["spec emit", () => import("./spec--0tYexnO.js").then((m) => m.specEmitCommand)],
53
+ ["spec validate", () => import("./spec--0tYexnO.js").then((m) => m.specValidateCommand)],
54
+ ["mcp", () => import("./mcp-BwMLfpxa.js").then((m) => m.mcpCommand)],
55
55
  ["skills list", () => import("./skills-C4vNmuxw.js").then((m) => m.skillsListCommand)],
56
56
  ["skills install", () => import("./skills-C4vNmuxw.js").then((m) => m.skillsInstallCommand)],
57
- ["codemod naming", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("naming"))],
58
- ["codemod extra-columns", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("extra-columns"))],
59
- ["codemod owned-columns", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("owned-columns"))],
60
- ["codemod config", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("config"))],
61
- ["codemod table-modules", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("table-modules"))],
62
- ["codemod account-calls", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("account-calls"))],
63
- ["codemod server-imports", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("server-imports"))],
64
- ["codemod generators", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("generators"))],
65
- ["codemod read-many", () => import("./codemod-CfMLArut.js").then((m) => m.codemodCommand("read-many"))],
57
+ ["codemod naming", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("naming"))],
58
+ ["codemod extra-columns", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("extra-columns"))],
59
+ ["codemod owned-columns", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("owned-columns"))],
60
+ ["codemod config", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("config"))],
61
+ ["codemod table-modules", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("table-modules"))],
62
+ ["codemod account-calls", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("account-calls"))],
63
+ ["codemod server-imports", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("server-imports"))],
64
+ ["codemod generators", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("generators"))],
65
+ ["codemod read-many", () => import("./codemod-Bu77IP-l.js").then((m) => m.codemodCommand("read-many"))],
66
66
  ["completion", () => import("./completion-Ct0kXYpV.js").then((m) => m.completionCommand)],
67
67
  ["cache purge", () => import("./cache-DwdJCb29.js").then((m) => m.cachePurgeCommand)],
68
68
  ["config", () => import("./config-J8LaJ0Nl.js").then((m) => m.configCommand)]
@@ -746,7 +746,7 @@ function cliFromTree(init, extra = {}) {
746
746
  digest: globals["effects-digest"]
747
747
  });
748
748
  };
749
- await import("./memo-backend-u47k0fen.js").then(({ installMemo }) => installMemo(config.root));
749
+ await import("./memo-backend-yki17W-K.js").then(({ installMemo }) => installMemo(config.root));
750
750
  context = {
751
751
  cwd,
752
752
  config,
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-Di9xMdUa.js";
1
+ import { a as toCatalog } from "./source-Dwn8SwJg.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
  /**
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-Coyg0Oh1.js";
1
+ import { t as VERSION } from "./version-Bm4K-iOw.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { r as redactUrl } from "./redact--zOGdWzo.js";
4
4
  import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
@@ -1 +1 @@
1
- export { n as specEmitCommand, i as specValidateCommand } from "./spec-CKLkRyUY.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-BFlvbXVb.js";
@@ -4,8 +4,8 @@ import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
4
4
  import { i as failedResult, n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
5
5
  import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
6
6
  import { t as display } from "./io-CngfGyMA.js";
7
- import { s as writeAtomic } from "./cache-BL0PV5bp.js";
8
- import { t as VERSION } from "./version-Coyg0Oh1.js";
7
+ import { s as writeAtomic } from "./cache-Di8fhrqf.js";
8
+ import { t as VERSION } from "./version-Bm4K-iOw.js";
9
9
  import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
10
10
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
11
11
  import { t as loadTopics } from "./topics-CqhOV1S0.js";
@@ -4,8 +4,8 @@ import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, n as declarative
4
4
  import { n as databaseUrl, p as accessToken } from "./config-NxPVkM-K.js";
5
5
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
6
6
  import { t as connect } from "./db-B_xr3ZvK.js";
7
- import { c as TYPEGEN_VERSION, n as cachedIntrospect, u as readExtras } from "./cache-BL0PV5bp.js";
8
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-Di9xMdUa.js";
7
+ import { c as TYPEGEN_VERSION, n as cachedIntrospect, u as readExtras } from "./cache-Di8fhrqf.js";
8
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-Dwn8SwJg.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { dirname, join, posix, relative, resolve, sep } from "node:path";
11
11
  import { glob, readFile, readdir } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
3
3
  import { r as supabaseCli } from "./exec-DBgtTCHK.js";
4
- import { i as migrationsDir } from "./sql-layout-DoiFr1yL.js";
4
+ import { i as migrationsDir } from "./sql-layout-CpbXj-r9.js";
5
5
  import { r as migrationStamp } from "./migration-names-7zAdXfcd.js";
6
6
  import { resolve } from "node:path";
7
7
  import { readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -1,12 +1,12 @@
1
1
  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-NnXnawki.js";
2
2
  import { t as display } from "./io-CngfGyMA.js";
3
- import { i as migrationsDir, l as sqlPlan } from "./sql-layout-DoiFr1yL.js";
3
+ import { i as migrationsDir, l as sqlPlan } from "./sql-layout-CpbXj-r9.js";
4
4
  import { n as CliError } from "./errors-B7i-VGxk.js";
5
5
  import { t as loadTopics } from "./topics-CqhOV1S0.js";
6
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-D3eboFLN.js";
6
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-Cl-I5j0j.js";
7
7
  import { t as orphanedBlockFiles } from "./orphans-ByB0gKOp.js";
8
- import { r as layoutFor } from "./providers-CwsjSukl.js";
9
- import { n as renderBlocksCached, t as cacheOf } from "./render-cache-D-mQmPU3.js";
8
+ import { r as layoutFor } from "./providers-B4QIwuqF.js";
9
+ import { n as renderBlocksCached, t as cacheOf } from "./render-cache-BoFKfBx6.js";
10
10
  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";
11
11
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
12
12
  import { dirname, join, resolve } from "node:path";
@@ -1,12 +1,12 @@
1
1
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-NnXnawki.js";
2
2
  import { t as display } from "./io-CngfGyMA.js";
3
- import { i as migrationsDir, l as sqlPlan } from "./sql-layout-DoiFr1yL.js";
3
+ import { i as migrationsDir, l as sqlPlan } from "./sql-layout-CpbXj-r9.js";
4
4
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
5
- import { a as write, r as nextStep, s as topicPolicyFile } from "./sync-B4TvyjWJ.js";
5
+ import { a as write, r as nextStep, s as topicPolicyFile } from "./sync-DHUrIa97.js";
6
6
  import { n as migrationFile } from "./migration-names-7zAdXfcd.js";
7
- 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-D3eboFLN.js";
8
- import { r as layoutFor } from "./providers-CwsjSukl.js";
9
- import { n as renderBlocksCached, t as cacheOf } from "./render-cache-D-mQmPU3.js";
7
+ 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-Cl-I5j0j.js";
8
+ import { r as layoutFor } from "./providers-B4QIwuqF.js";
9
+ import { n as renderBlocksCached, t as cacheOf } from "./render-cache-BoFKfBx6.js";
10
10
  import { resolve } from "node:path";
11
11
  import { readFile, readdir } from "node:fs/promises";
12
12
  import { PRELUDE_FUNCTIONS, PRELUDE_MODULE, SQL_MODULES, buildModel, conflicts, duplicatePolicies, entityRenamePlan, moduleFileVersion, moduleTopics, sameBlockFile, upgradePlan } from "better-supabase/sql";
@@ -1,10 +1,10 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
- import { t as shadowedBlockColumns } from "./column-renames-OREkqj_i.js";
3
- import { n as appSchemaTexts } from "./sql-layout-DoiFr1yL.js";
2
+ import { t as shadowedBlockColumns } from "./column-renames-B8tfoufA.js";
3
+ import { n as appSchemaTexts } from "./sql-layout-CpbXj-r9.js";
4
4
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
5
- import { o as dataMigration, t as syncModules } from "./sync-B4TvyjWJ.js";
6
- import { r as renderStats } from "./render-cache-D-mQmPU3.js";
7
- import { t as upgrade } from "./upgrade-AyAHttUG.js";
5
+ import { o as dataMigration, t as syncModules } from "./sync-DHUrIa97.js";
6
+ import { r as renderStats } from "./render-cache-BoFKfBx6.js";
7
+ import { t as upgrade } from "./upgrade-DKfXHex4.js";
8
8
  import { i as plain } from "./style-B5-nByxb.js";
9
9
  // src/cli/commands/upgrade.ts
10
10
  const UPGRADE_ARGS = {
@@ -1,3 +1,3 @@
1
1
  // src/cli/version.ts
2
- const VERSION = "0.58.0";
2
+ const VERSION = "0.58.1";
3
3
  export { VERSION as t };
@@ -1,5 +1,5 @@
1
1
  import { i as parsePublicEnv } from "../public-CCEJuurM.js";
2
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-_zS9fGcE.js";
2
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../ports-BXtpOQRz.js";
3
3
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D7fPUY4P.js";
4
4
  import { n as dbError } from "../errors-DK1wGb9z.js";
5
5
  import { i as isProblem, r as fromProblem } from "../problem-BwplIuhI.js";
@@ -1,5 +1,5 @@
1
- import { t as provideConnectionRuntime } from "../../define-runtime-full-BbAQ7sWI.js";
2
- import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-_zS9fGcE.js";
1
+ import { t as provideConnectionRuntime } from "../../define-runtime-full-D6v1ST7M.js";
2
+ import { n as storageUpload, r as bindClient, t as memoryStorage } from "../../ports-BXtpOQRz.js";
3
3
  import { i as signInWithOAuthBrowser, n as handleAuthDeepLink, r as linkParams, t as startNativeAuthzRefresh } from "../../authz-refresh-CNV_LFEh.js";
4
4
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../../authz-topic-D7fPUY4P.js";
5
5
  import { t as expoPushToken } from "../../push-token-CO28k46S.js";
@@ -1,5 +1,5 @@
1
1
  import { a as withAuthMode, i as withAuth, o as withJwtClaims, s as withUserClaims } from "./claims-DouHL7ZL.js";
2
- import { a as withSupport, i as withTenant, o as withServerContext, t as createServer } from "./server-DwF_O2Lx.js";
2
+ import { a as withSupport, i as withTenant, o as withServerContext, t as createServer } from "./server-DFxO9Dyz.js";
3
3
  import { c as serverCore, i as withSession } from "./sessions-Dedk1ubX.js";
4
4
  import { o as problemResponse } from "./problem-BwplIuhI.js";
5
5
  import { i as guard, n as defaultExpose } from "./respond-DLvLJwwN.js";
@@ -1,6 +1,6 @@
1
1
  import { N as Casing } from "../types-BJ4cg51a.js";
2
2
  import { Ft as SubjectTeam, It as SubjectsConfig, Mt as SubjectConfig, Nt as SubjectPermission, Pt as SubjectSearch, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, x as tenantNameOf } from "../blocks-RVd7m590.js";
3
3
  import { $r as SkillsAgent, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as PowerSyncGenConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_NAMES, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsConfig, ii as INTEGRATION_INFO, oi as IntegrationInfo, qr as GenConfig, ri as GEN_TASKS, si as SKILLS_AGENTS, un as FieldFormat } from "../define-block-kWv1wYf7.js";
4
- import { $ as flattenConfig, $n as SeedSampleConfig, $r as AppLookupConfig, Ai as ExtrasTable, Ar as GeneratorModule, At as BlockInput, B as claimPaths, Bi as RpcFunctionArg, Bt as ColumnPrivilege, Ci as CatalogTable, Cr as GeneratorFunction, Ct as ResolvedConfig, Di as ExtrasFunction, Dr as GeneratorInputSchema, Dt as AppTablesInput, Ei as ExtrasDomain, Er as GeneratorInput, Et as AppTableInput, Fi as GeneratorMetadata, Fr as RelationsConfig, Ft as SqlInput, G as blockEventRenames, Gr as APP_COLUMN_TYPES, Gt as ResolvedExpose, H as BlockEntity, Hi as RpcFunctionReturns, Ht as ExposePrivilege, Ii as PostgresColumn, Ir as SourceConfig, It as TenantConfig, J as FormerPermissionKeyError, Jn as RealtimeConfig, Jr as APP_TABLE_EVENT_KINDS, K as blockFormerFunctions, Kr as APP_ON_DELETE_ACTIONS, Li as PostgresFunction, Lr as TableConfig, Lt as ToolingConfig, Mi as Snapshot, Mr as GeneratorTable, Mt as DatabaseConfig, Ni as SnapshotBucket, Nr as JsonSchemaSource, Nt as EnvironmentConfig, Oi as ExtrasHook, Or as GeneratorJsonSchema, Ot as AuthConfig, Pi as SnapshotExtras, Pr as JsonTypeConfig, Pt as GenGroupConfig, Q as blockEntrySource, Qn as SeedDefaultsConfig, Qr as AppColumnType, R as ClaimPaths, Ri as PostgresFunctionArg, Rr as CONFIG_DEFAULTS, Rt as EntitlementPlansSource, Si as CatalogPolicy, Sr as GeneratorField, St as HooksFramework, Ti as CatalogUnique, Tr as GeneratorImports, Tt as ApiConfig, U as blockEntities, Ui as RpcReturnColumn, Ur as APP_COLUMN_ACCESS, Ut as ExposeRole, V as tenantClaimPaths, Vi as RpcFunctionOverload, Vt as ExposeConfig, W as blockEntityRenames, Wi as RpcTypeReference, Wr as APP_COLUMN_FORMATS, Wt as Privilege, X as RENAMED_BLOCK_KEYS, Xn as ResolvedSqlConfig, Xr as AppColumnConfig, Y as CONFIG_GROUPS, Yn as ResolvedSeedConfig, Yr as AppColumnAccess, Z as RENAMED_CONFIG_KEYS, Zn as SeedConfig, Zr as AppColumnFormat, _i as CatalogForeignKey, _r as GeneratorBlockEntity, ai as AppTableConfig, ar as TopicTriggerLookupConfig, at as generatorProblem, bi as CatalogGrant, br as GeneratorConfigView, bt as DataHooksSelect, ci as AppTableEvents, cr as TopicTriggerValueConfig, ct as BucketName, di as AppTablesConfig, dr as resolveJsonSchema, ei as AppOnDeleteAction, er as SeedSampleSize, et as groupConfig, fi as Catalog, fr as ClaimsConfig, ft as ExpandedConfig, gi as CatalogEnum, gr as GeneratorBlock, hi as CatalogColumnGrant, hr as Generator, ii as AppRollupConfig, ir as TopicTriggerConfig, it as defineConfig, ji as ForeignKeyAction, jr as GeneratorNoun, jt as BlocksInput, ki as ExtrasHookFunction, kr as GeneratorModel, kt as BetterSupabaseConfig, li as AppTableSubject, lr as VectorDistance, lt as ConfigReferences, mi as CatalogColumn, mr as GeneratedFile, ni as AppReferenceTarget, nr as SqlConfig, nt as CONFIG_SCHEMA_URL, oi as AppTableEmbedding, or as TopicTriggerPayloadValueConfig, ot as resolveConfig, pi as CatalogCheck, pr as CodecsConfig, q as blockSubjectTypes, qn as BucketConfig, qr as APP_ROLLUP_AGGREGATES, ri as AppRollupAggregate, rr as SqlWorkflow, rt as ResolveInput, si as AppTableEventKind, sr as TopicTriggerTopicConfig, st as BlockTableReference, ti as AppReference, tr as SqlBlockDefaults, tt as groupEntries, ui as AppTableVersions, ur as VectorSearchConfig, ut as RoleNames, vi as CatalogFunction, vr as GeneratorCapability, vt as DataHooksConfig, wi as CatalogTrigger, wr as GeneratorFunctionArg, wt as ResolvedExtensions, xi as CatalogIndex, xr as GeneratorEntitySchemas, xt as FlatConfig, yi as CatalogFunctionArg, yr as GeneratorColumn, yt as DataHooksFramework, z as DEFAULT_CLAIMS, zi as RpcFunction, zt as EntitlementsConfig } from "../context-CTVM2dnp.js";
4
+ import { $ as flattenConfig, $n as SeedSampleConfig, $r as AppLookupConfig, Ai as ExtrasTable, Ar as GeneratorModule, At as BlockInput, B as claimPaths, Bi as RpcFunctionArg, Bt as ColumnPrivilege, Ci as CatalogTable, Cr as GeneratorFunction, Ct as ResolvedConfig, Di as ExtrasFunction, Dr as GeneratorInputSchema, Dt as AppTablesInput, Ei as ExtrasDomain, Er as GeneratorInput, Et as AppTableInput, Fi as GeneratorMetadata, Fr as RelationsConfig, Ft as SqlInput, G as blockEventRenames, Gr as APP_COLUMN_TYPES, Gt as ResolvedExpose, H as BlockEntity, Hi as RpcFunctionReturns, Ht as ExposePrivilege, Ii as PostgresColumn, Ir as SourceConfig, It as TenantConfig, J as FormerPermissionKeyError, Jn as RealtimeConfig, Jr as APP_TABLE_EVENT_KINDS, K as blockFormerFunctions, Kr as APP_ON_DELETE_ACTIONS, Li as PostgresFunction, Lr as TableConfig, Lt as ToolingConfig, Mi as Snapshot, Mr as GeneratorTable, Mt as DatabaseConfig, Ni as SnapshotBucket, Nr as JsonSchemaSource, Nt as EnvironmentConfig, Oi as ExtrasHook, Or as GeneratorJsonSchema, Ot as AuthConfig, Pi as SnapshotExtras, Pr as JsonTypeConfig, Pt as GenGroupConfig, Q as blockEntrySource, Qn as SeedDefaultsConfig, Qr as AppColumnType, R as ClaimPaths, Ri as PostgresFunctionArg, Rr as CONFIG_DEFAULTS, Rt as EntitlementPlansSource, Si as CatalogPolicy, Sr as GeneratorField, St as HooksFramework, Ti as CatalogUnique, Tr as GeneratorImports, Tt as ApiConfig, U as blockEntities, Ui as RpcReturnColumn, Ur as APP_COLUMN_ACCESS, Ut as ExposeRole, V as tenantClaimPaths, Vi as RpcFunctionOverload, Vt as ExposeConfig, W as blockEntityRenames, Wi as RpcTypeReference, Wr as APP_COLUMN_FORMATS, Wt as Privilege, X as RENAMED_BLOCK_KEYS, Xn as ResolvedSqlConfig, Xr as AppColumnConfig, Y as CONFIG_GROUPS, Yn as ResolvedSeedConfig, Yr as AppColumnAccess, Z as RENAMED_CONFIG_KEYS, Zn as SeedConfig, Zr as AppColumnFormat, _i as CatalogForeignKey, _r as GeneratorBlockEntity, ai as AppTableConfig, ar as TopicTriggerLookupConfig, at as generatorProblem, bi as CatalogGrant, br as GeneratorConfigView, bt as DataHooksSelect, ci as AppTableEvents, cr as TopicTriggerValueConfig, ct as BucketName, di as AppTablesConfig, dr as resolveJsonSchema, ei as AppOnDeleteAction, er as SeedSampleSize, et as groupConfig, fi as Catalog, fr as ClaimsConfig, ft as ExpandedConfig, gi as CatalogEnum, gr as GeneratorBlock, hi as CatalogColumnGrant, hr as Generator, ii as AppRollupConfig, ir as TopicTriggerConfig, it as defineConfig, ji as ForeignKeyAction, jr as GeneratorNoun, jt as BlocksInput, ki as ExtrasHookFunction, kr as GeneratorModel, kt as BetterSupabaseConfig, li as AppTableSubject, lr as VectorDistance, lt as ConfigReferences, mi as CatalogColumn, mr as GeneratedFile, ni as AppReferenceTarget, nr as SqlConfig, nt as CONFIG_SCHEMA_URL, oi as AppTableEmbedding, or as TopicTriggerPayloadValueConfig, ot as resolveConfig, pi as CatalogCheck, pr as CodecsConfig, q as blockSubjectTypes, qn as BucketConfig, qr as APP_ROLLUP_AGGREGATES, ri as AppRollupAggregate, rr as SqlWorkflow, rt as ResolveInput, si as AppTableEventKind, sr as TopicTriggerTopicConfig, st as BlockTableReference, ti as AppReference, tr as SqlBlockDefaults, tt as groupEntries, ui as AppTableVersions, ur as VectorSearchConfig, ut as RoleNames, vi as CatalogFunction, vr as GeneratorCapability, vt as DataHooksConfig, wi as CatalogTrigger, wr as GeneratorFunctionArg, wt as ResolvedExtensions, xi as CatalogIndex, xr as GeneratorEntitySchemas, xt as FlatConfig, yi as CatalogFunctionArg, yr as GeneratorColumn, yt as DataHooksFramework, z as DEFAULT_CLAIMS, zi as RpcFunction, zt as EntitlementsConfig } from "../context-DMBXEzQa.js";
5
5
  import { _ as resolvePersonas, a as AuthorizationPermission, c as AuthorizationProvider, d as AuthorizationScope, f as AuthorizationTokenHook, g as providerApiProblem, h as permissionLevelKey, i as AuthorizationOperation, l as AuthorizationRequirement, m as PERMISSION_LEVEL_SEPARATOR, n as AuthorizationFunctions, o as AuthorizationPersona, p as AuthorizationVersions, r as AuthorizationMembership, s as AuthorizationPlatformRoles, t as AuthorizationFixtureRole, u as AuthorizationRoleSource, v as splitPermissionLevel } from "../authorization-Dq47C4vf.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 AppTableEmbedding, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFixtureRole, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationPersona, type AuthorizationPlatformRoles, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type AuthorizationVersions, 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 DataHooksConfig, type DataHooksFramework, type DataHooksSelect, 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 FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, FormerPermissionKeyError, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorCapability, type GeneratorColumn, type GeneratorConfigView, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorImports, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorModule, type GeneratorNoun, type GeneratorTable, type HooksFramework, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaSource, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type OwnTablePolicies, PERMISSION_LEVEL_SEPARATOR, 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 ResolvedSeedConfig, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SeedDefaultsConfig, type SeedSampleConfig, type SeedSampleSize, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlBlockDefaults, type SqlConfig, type SqlInput, type SqlWorkflow, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectTeam, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type VectorDistance, type VectorSearchConfig, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, claimPaths, defineConfig, flattenConfig, generatorProblem, groupConfig, groupEntries, permissionLevelKey, providerApiProblem, resolveConfig, resolveJsonSchema, resolvePersonas, splitPermissionLevel, tenantClaimPaths, tenantNameOf };
@@ -1562,7 +1562,7 @@ interface DeclaredForeignKey {
1562
1562
  */
1563
1563
  declare function sameTenantLayout(files: readonly {
1564
1564
  readonly text: string;
1565
- }[], schemas: readonly string[]): Required<Pick<BlockSqlLayout, "foreignKeys" | "declaredColumns" | "appTriggerColumns">> & {
1565
+ }[], schemas: readonly string[]): Required<Pick<BlockSqlLayout, "foreignKeys" | "declaredColumns" | "notNullColumns" | "appTriggerColumns">> & {
1566
1566
  /**
1567
1567
  * The function body of each app trigger, `schema.table` to bodies (doctor
1568
1568
  * BS398).
@@ -4186,6 +4186,12 @@ interface BlockSqlLayout {
4186
4186
  * `sameTenant.auto`.
4187
4187
  */
4188
4188
  readonly declaredColumns?: Readonly<Record<string, readonly string[]>>;
4189
+ /**
4190
+ * Each declared table's not-null columns, `schema.table` to names. A derived
4191
+ * `sameTenant` entry whose referenced tenant column may be null passes rows
4192
+ * with no tenant (`shared`).
4193
+ */
4194
+ readonly notNullColumns?: Readonly<Record<string, readonly string[]>>;
4189
4195
  /**
4190
4196
  * The columns the app's own triggers read or write, `schema.table` to names.
4191
4197
  * `sameTenant.auto` emits nothing for a column an app trigger already guards
@@ -7,7 +7,7 @@ import { r as CredentialProvider } from "../provider-r2RjlARm.js";
7
7
  import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-bkm44ycq.js";
8
8
  import { g as SessionSnapshot } from "../resolve-Chhtdk4M.js";
9
9
  import { n as ApprovalOptions } from "../server-types-C8zErBy9.js";
10
- import { n as BlockTables, t as BlockTable } from "../block-tables-DCB8f9J4.js";
10
+ import { n as BlockTables, t as BlockTable } from "../block-tables-DmDyNlJf.js";
11
11
  import { a as BootstrapPermissionsWire, i as BootstrapPermissionsFull, n as BootstrapPermissions, r as BootstrapPermissionsCompact } from "../bootstrap-permissions-hiWjQ2N7.js";
12
12
  /**
13
13
  * The types an authorization library implements or reads, in one entry with no
@@ -1,9 +1,9 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Kr as APP_ON_DELETE_ACTIONS, Nn as PresetSpec, Qr as AppColumnType, Qt as PresetName, Yr as AppColumnAccess, ei as AppOnDeleteAction, m as BlockSqlAccessProvider, pt as PresetInput, rn as CreateDesign } from "../context-CTVM2dnp.js";
3
- import { $ as keyColumnsOf, A as renameTable, B as eventsColumnsEdited, C as freeTableName, Ct as Issue, D as moveTables, E as isEmptyDesign, Et as IssueSource, F as updateTable, G as SchemaComputed, H as subjectColumnsEdited, I as userConnection, J as SchemaOptions, K as SchemaData, L as withDesign, M as setTableId, N as singular, O as referenceFrom, P as tidy, Q as SchemaTarget, R as AppEvents, S as editTable, St as tableWithoutComputed, T as isAppTable, Tt as IssueSeverity, U as subjectTypeError, V as subjectColumns, W as SchemaColumn, X as SchemaSource, Y as SchemaSoftRef, Z as SchemaTable, _ as connect, _t as prunedComputed, a as AppScope, at as AppRollup, b as deleteTable, bt as rollupSources, c as ConnectResult, ct as ROLLUP_AGGREGATES, d as EMPTY_DESIGN, dt as computedRows, et as parseSchema, f as NamedDesign, ft as computedTableRenamed, g as columnError, gt as lookupSources, h as appTableId, ht as isRollupAggregate, i as AppReference, it as AppLookup, j as setColumn, k as renameColumn, l as Connection, lt as RollupAggregate, m as addTable, mt as fittedRollup, n as APP_MODULE, nt as tableStatements, o as AppTable, ot as ComputedRow, p as TablePatch, pt as filterColumns, q as SchemaForeignKey, r as AppColumn, rt as tenantColumnOf, s as AppTableId, st as DraftRollup, t as PresetMigrationFile, tt as schemaRelations, u as Design, ut as computedColumnRenamed, v as defaultError, vt as readableColumns, w as identifierError, wt as IssueCode, x as duplicateTable, xt as tableWithComputed, y as deleteColumn, yt as rollupColumns, z as AppSubject } from "../types-B7t7smOy.js";
2
+ import { Kr as APP_ON_DELETE_ACTIONS, Nn as PresetSpec, Qr as AppColumnType, Qt as PresetName, Yr as AppColumnAccess, ei as AppOnDeleteAction, m as BlockSqlAccessProvider, pt as PresetInput, rn as CreateDesign } from "../context-DMBXEzQa.js";
3
+ import { $ as keyColumnsOf, A as renameTable, B as eventsColumnsEdited, C as freeTableName, Ct as Issue, D as moveTables, E as isEmptyDesign, Et as IssueSource, F as updateTable, G as SchemaComputed, H as subjectColumnsEdited, I as userConnection, J as SchemaOptions, K as SchemaData, L as withDesign, M as setTableId, N as singular, O as referenceFrom, P as tidy, Q as SchemaTarget, R as AppEvents, S as editTable, St as tableWithoutComputed, T as isAppTable, Tt as IssueSeverity, U as subjectTypeError, V as subjectColumns, W as SchemaColumn, X as SchemaSource, Y as SchemaSoftRef, Z as SchemaTable, _ as connect, _t as prunedComputed, a as AppScope, at as AppRollup, b as deleteTable, bt as rollupSources, c as ConnectResult, ct as ROLLUP_AGGREGATES, d as EMPTY_DESIGN, dt as computedRows, et as parseSchema, f as NamedDesign, ft as computedTableRenamed, g as columnError, gt as lookupSources, h as appTableId, ht as isRollupAggregate, i as AppReference, it as AppLookup, j as setColumn, k as renameColumn, l as Connection, lt as RollupAggregate, m as addTable, mt as fittedRollup, n as APP_MODULE, nt as tableStatements, o as AppTable, ot as ComputedRow, p as TablePatch, pt as filterColumns, q as SchemaForeignKey, r as AppColumn, rt as tenantColumnOf, s as AppTableId, st as DraftRollup, t as PresetMigrationFile, tt as schemaRelations, u as Design, ut as computedColumnRenamed, v as defaultError, vt as readableColumns, w as identifierError, wt as IssueCode, x as duplicateTable, xt as tableWithComputed, y as deleteColumn, yt as rollupColumns, z as AppSubject } from "../types-BidEA6pZ.js";
4
4
  import { kr as Preset } from "../define-block-kWv1wYf7.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
- import { b as DesignChange } from "../index-DYIGj6Qq.js";
6
+ import { b as DesignChange } from "../index-CIVA5x1i.js";
7
7
  /** What `checkDesign` returns. */
8
8
  export type DesignCheck = {
9
9
  readonly ok: true;
@@ -1,5 +1,5 @@
1
1
  import { A as APP_ON_DELETE_ACTIONS } from "../instances-07Lopbd1.js";
2
- import { $ as eventsColumnsEdited, A as renameColumn, B as computedColumnRenamed, C as editTable, D as isEmptyDesign, E as isAppTable, F as tidy, G as isRollupAggregate, H as computedTableRenamed, I as updateTable, J as readableColumns, K as lookupSources, L as userConnection, M as setColumn, N as setTableId, O as moveTables, P as singular, Q as tableWithoutComputed, R as withDesign, S as duplicateTable, T as identifierError, U as filterColumns, V as computedRows, W as fittedRollup, X as rollupSources, Y as rollupColumns, Z as tableWithComputed, _ as columnError, a as parseSchema, at as encryptable, b as deleteColumn, c as tenantColumnOf, ct as optionError, d as previewFiles, et as subjectColumns, f as designIssues, g as appTableId, h as addTable, i as keyColumnsOf, it as columnLabel, j as renameTable, k as referenceFrom, l as schemaData, lt as takesBounds, m as EMPTY_DESIGN, n as loadProject, nt as subjectTypeError, o as schemaRelations, ot as fitted, p as APP_MODULE, q as prunedComputed, r as checkDesign, rt as boundError, s as tableStatements, st as lockedWithoutDefault, t as checkProject, tt as subjectColumnsEdited, u as previewAccessProvider, ut as withBounds, v as connect, w as freeTableName, x as deleteTable, y as defaultError, z as ROLLUP_AGGREGATES } from "../project-I5wL8liz.js";
2
+ import { $ as eventsColumnsEdited, A as renameColumn, B as computedColumnRenamed, C as editTable, D as isEmptyDesign, E as isAppTable, F as tidy, G as isRollupAggregate, H as computedTableRenamed, I as updateTable, J as readableColumns, K as lookupSources, L as userConnection, M as setColumn, N as setTableId, O as moveTables, P as singular, Q as tableWithoutComputed, R as withDesign, S as duplicateTable, T as identifierError, U as filterColumns, V as computedRows, W as fittedRollup, X as rollupSources, Y as rollupColumns, Z as tableWithComputed, _ as columnError, a as parseSchema, at as encryptable, b as deleteColumn, c as tenantColumnOf, ct as optionError, d as previewFiles, et as subjectColumns, f as designIssues, g as appTableId, h as addTable, i as keyColumnsOf, it as columnLabel, j as renameTable, k as referenceFrom, l as schemaData, lt as takesBounds, m as EMPTY_DESIGN, n as loadProject, nt as subjectTypeError, o as schemaRelations, ot as fitted, p as APP_MODULE, q as prunedComputed, r as checkDesign, rt as boundError, s as tableStatements, st as lockedWithoutDefault, t as checkProject, tt as subjectColumnsEdited, u as previewAccessProvider, ut as withBounds, v as connect, w as freeTableName, x as deleteTable, y as defaultError, z as ROLLUP_AGGREGATES } from "../project-Bgz2gbh5.js";
3
3
  import { m as diffDesigns } from "../preset-HzYIrxUS.js";
4
4
  // src/create/column-kinds.ts
5
5
  /** The groups of the column type picker, in the order it shows them. */
@@ -1,5 +1,5 @@
1
- import { Ct as Issue, t as PresetMigrationFile, u as Design } from "../../types-B7t7smOy.js";
2
- import { pt as PresetInput, rn as CreateDesign } from "../../context-CTVM2dnp.js";
1
+ import { Ct as Issue, t as PresetMigrationFile, u as Design } from "../../types-BidEA6pZ.js";
2
+ import { pt as PresetInput, rn as CreateDesign } from "../../context-DMBXEzQa.js";
3
3
  import { st as SchemaMeta } from "../../types-BJ4cg51a.js";
4
4
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
5
5
  import { c as AuthorizationProvider } from "../../authorization-Dq47C4vf.js";
@@ -1,7 +1,7 @@
1
1
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-sBnEajcK.js";
2
2
  import { b as appDefaultError } from "../../instances-07Lopbd1.js";
3
- import { t as defineApi } from "../../api-CCA7xIEu.js";
4
- import { n as loadProject } from "../../project-I5wL8liz.js";
3
+ import { t as defineApi } from "../../api-D-YoZpRe.js";
4
+ import { n as loadProject } from "../../project-Bgz2gbh5.js";
5
5
  import { c as resolvePersonas } from "../../config-DzPViWQU.js";
6
6
  import { i as fillTemplate } from "../../access-sql-Dvl7BRy0.js";
7
7
  // src/create/lite/apply.ts
@@ -1375,9 +1375,10 @@ var Connector = class {
1375
1375
  return repository;
1376
1376
  };
1377
1377
  this.#build = build;
1378
- for (const key of /* @__PURE__ */ new Set([...Object.keys(this.meta.tables), ...Object.keys(this.meta.tableLoaders ?? {})])) this.#defineTable(tables, key);
1378
+ const keys = /* @__PURE__ */ new Set([...Object.keys(this.meta.tables), ...Object.keys(this.meta.tableLoaders ?? {})]);
1379
+ for (const key of keys) this.#defineTable(tables, key);
1379
1380
  const { blocks, temporal } = this.options;
1380
- this.#tables = blocks === void 0 ? tables : blocksPrototype(blocks, tables, Object.keys(this.meta.tables), this.events, temporal);
1381
+ this.#tables = blocks === void 0 ? tables : blocksPrototype(blocks, tables, [...keys], this.events, temporal);
1381
1382
  return this.#tables;
1382
1383
  }
1383
1384
  #build;
@@ -6,7 +6,7 @@ import { t as builderFor } from "./build-ByfDs2ru.js";
6
6
  import { t as decodeRows } from "./codec-CqLbYQ6z.js";
7
7
  import { n as isRecord } from "./guards-CsRa6v57.js";
8
8
  import { t as vectorLiteral } from "./search-DtbkD0h0.js";
9
- import { a as runSpec, i as NO_PLUGINS, n as decodeRpcResult, r as rpcFunction, t as provideLeanConnectionRuntime } from "./define-runtime-D65Va0N-.js";
9
+ import { a as runSpec, i as NO_PLUGINS, n as decodeRpcResult, r as rpcFunction, t as provideLeanConnectionRuntime } from "./define-runtime-BBF5JHl4.js";
10
10
  import { t as EventHub } from "./events-Da482tiF.js";
11
11
  import { f as isFunctionSpec, n as checkParams, o as isReadSet, p as isQuerySpec, t as bindParams } from "./read-set-DsIurGUE.js";
12
12
  import { n as StatsRecorder, r as recordStats } from "./stats-D2TN2c3B.js";
@@ -1,16 +1,16 @@
1
1
  import { n as dbError } from "../errors-DK1wGb9z.js";
2
2
  import { o as problemResponse } from "../problem-BwplIuhI.js";
3
3
  import { a as ok, r as err } from "../result-DijoXEFG.js";
4
- import { t as adapterBase } from "../adapter-base-xVHtNe6Y.js";
4
+ import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
5
5
  import { _ as withFlush, g as unexpectedResponse } from "../sessions-Dedk1ubX.js";
6
- import { t as withBetterSupabase } from "../composite-CE_0rQOp.js";
6
+ import { t as withBetterSupabase } from "../composite-6VIY4jUO.js";
7
7
  import { n as corsConfig, t as SUPABASE_CORS_HEADERS } from "../cors-DrDFLMNn.js";
8
8
  import { t as withExtra } from "../extra-Dz9n5y1s.js";
9
- import { t as EVERY_CALLER } from "../framework-B2sjpHOX.js";
9
+ import { t as EVERY_CALLER } from "../framework-DSGTH9p6.js";
10
10
  import { i as requireCaller } from "../kit-BgRTtW9w.js";
11
11
  import { n as resourceRouter } from "../resources-CM9wwyfa.js";
12
12
  import { o as respond, s as settle } from "../respond-DLvLJwwN.js";
13
- import { n as extendServer, t as createServer } from "../server-DwF_O2Lx.js";
13
+ import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
14
14
  import { i as defineAction } from "../resource-BxSmk1R1.js";
15
15
  import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
16
16
  import { n as validate } from "../standard-DM4THQrL.js";
@@ -6,7 +6,7 @@ import { p as isQuerySpec } from "./read-set-DsIurGUE.js";
6
6
  import { a as ok, r as err, s as toDbError } from "./result-DijoXEFG.js";
7
7
  import { n as simplifyOrFalse } from "./simplify-BzThKn5b.js";
8
8
  import { n as whereClause, t as integer } from "./shared-BRFaCh8n.js";
9
- import { t as provideConnectionRuntime } from "./define-runtime-full-BbAQ7sWI.js";
9
+ import { t as provideConnectionRuntime } from "./define-runtime-full-D6v1ST7M.js";
10
10
  // src/compile/sqlite.ts
11
11
  /**
12
12
  * The operation needs something the SQLite dialect can't express: full-text