better-supabase 0.58.2 → 0.58.3

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 (105) hide show
  1. package/dist/{adapter-base-8PuJ3OoB.js → adapter-base-BbnpIsy4.js} +1 -1
  2. package/dist/{api-D8E2jvT5.js → api-DsFkhsYI.js} +1 -1
  3. package/dist/astro/index.js +3 -3
  4. package/dist/blocks/crm/index.js +1 -1
  5. package/dist/blocks/index.js +2 -2
  6. package/dist/{build-6vLM3d_J.js → build-Cb9yLxtS.js} +1 -1
  7. package/dist/cli/{add-Ctv6m6Up.js → add-BQZyQh4f.js} +2 -2
  8. package/dist/cli/add-DHvo6zQZ.js +1 -0
  9. package/dist/cli/{add-B77M4v-f.js → add-dbBQf6Vy.js} +9 -9
  10. package/dist/cli/{app-table-files-Cj0LsH5w.js → app-table-files-CITEmvRS.js} +3 -3
  11. package/dist/cli/{app-tables-Cwgr3GTi.js → app-tables-BBqu3dow.js} +2 -2
  12. package/dist/cli/{backfill-BN81Sthj.js → backfill-bBk3QjfK.js} +1 -1
  13. package/dist/cli/bin.js +1 -1
  14. package/dist/cli/{blocks-i6YzVQLK.js → blocks-CsQNweG8.js} +1 -1
  15. package/dist/cli/{blocks-BgKD3-I9.js → blocks-D-DV2aCE.js} +1 -1
  16. package/dist/cli/{cache-BV7WlzUF.js → cache-sR8AQqSV.js} +1 -1
  17. package/dist/cli/{codemod-Dn8JZhKC.js → codemod-BkPcyPnF.js} +4 -4
  18. package/dist/cli/{codemod-naming-8eUxJ86U.js → codemod-naming-BLoVSmVF.js} +1 -1
  19. package/dist/cli/{column-renames-rRIoozHD.js → column-renames-brM-D_th.js} +2 -2
  20. package/dist/cli/{content-mapper-DBMKbB16.js → content-mapper-DMi2HOKi.js} +1 -1
  21. package/dist/cli/{dev-Bd5y9TWU.js → dev-ClH-7fB0.js} +3 -3
  22. package/dist/cli/{doctor-3L2SV9yp.js → doctor-C_BEuEGg.js} +16 -16
  23. package/dist/cli/{emit-DS6N1chg.js → emit-CTzFdffA.js} +2 -2
  24. package/dist/cli/{gen-CITLb2eh.js → gen-RKf7q3L5.js} +3 -3
  25. package/dist/cli/{gen-tasks-gpTX1KW5.js → gen-tasks-DmDvgVBV.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-CI-WwnYW.js → init-B_CCByIh.js} +8 -8
  29. package/dist/cli/{live-TK2YbWEB.js → live-DjjMID3V.js} +2 -2
  30. package/dist/cli/{mcp-C08VfeGU.js → mcp-BYwrZHp1.js} +2 -2
  31. package/dist/cli/{memo-backend-Bjl2s-LJ.js → memo-backend-BIHqP1uE.js} +1 -1
  32. package/dist/cli/{metadata-VfgaGwPp.js → metadata-DCtLUYqR.js} +4 -4
  33. package/dist/cli/{migrate-BHQ0pQ8v.js → migrate-Bq6CUPbE.js} +1 -1
  34. package/dist/cli/{migration-safety-CIDbpK_i.js → migration-safety-BvJ-JK5n.js} +1 -1
  35. package/dist/cli/{module-migration-N79wX1lQ.js → module-migration-Dv6VV1om.js} +1 -1
  36. package/dist/cli/{partition-BWiWQ7Wv.js → partition-C4g7WAwh.js} +1 -1
  37. package/dist/cli/{powersync-B-K1msIl.js → powersync-1HMiZhFF.js} +3 -3
  38. package/dist/cli/powersync-DLUNuNl4.js +1 -0
  39. package/dist/cli/{print-BMDcJD64.js → print-D9biMrfv.js} +2 -2
  40. package/dist/cli/{providers-CjF7HAPk.js → providers-C5fw9XC_.js} +1 -1
  41. package/dist/cli/{prune-workflows-CJ4jrmPf.js → prune-workflows-DxpPCevB.js} +1 -1
  42. package/dist/cli/{remove-JJ4j1UPX.js → remove-CyhSdPkK.js} +6 -6
  43. package/dist/cli/{render-t8Y_8QIm.js → render-DOz25g5T.js} +4 -4
  44. package/dist/cli/{render-cache-D-L0uCUa.js → render-cache-CInSNFhV.js} +1 -1
  45. package/dist/cli/{run-C89xFeXI.js → run-0bMsZ1VV.js} +7 -7
  46. package/dist/cli/{run-BIL3hTIL.js → run-DVdkD1MI.js} +30 -30
  47. package/dist/cli/{shared-DJ0--OEH.js → shared-D2i8_u-U.js} +1 -1
  48. package/dist/cli/{source-3EDa7rPw.js → source-BGVOuWXq.js} +1 -1
  49. package/dist/cli/{spec-DP9TaDgC.js → spec-COotILIk.js} +2 -2
  50. package/dist/cli/{spec-D2Xwy1gO.js → spec-C_JKo_dP.js} +1 -1
  51. package/dist/cli/{sql-layout-COn2WEKP.js → sql-layout-D8dIzdy9.js} +2 -2
  52. package/dist/cli/{squash-bcwO1H_W.js → squash-xCseaSP1.js} +1 -1
  53. package/dist/cli/{sync-DqvkQ5MB.js → sync-Ceqa-3R6.js} +4 -4
  54. package/dist/cli/{upgrade-DmMKImiC.js → upgrade-CUNKALDw.js} +5 -5
  55. package/dist/cli/{upgrade-ecIafbIb.js → upgrade-DiMHauEU.js} +5 -5
  56. package/dist/cli/{version-DvQcNR10.js → version-C7imaHag.js} +1 -1
  57. package/dist/client/index.js +1 -1
  58. package/dist/client/native/index.js +2 -2
  59. package/dist/{codec-CqLbYQ6z.js → codec-Cjquuv8M.js} +1 -1
  60. package/dist/{composite-6VIY4jUO.js → composite-DYAp3Znr.js} +1 -1
  61. package/dist/{composite-reads-CbPYsvlz.js → composite-reads-BJeDe1yV.js} +1 -1
  62. package/dist/create/index.js +1 -1
  63. package/dist/create/lite/index.js +2 -2
  64. package/dist/{define-runtime-BBF5JHl4.js → define-runtime-Dv8OYnKW.js} +59 -6
  65. package/dist/{define-runtime-full-D6v1ST7M.js → define-runtime-full-Bh5c_01f.js} +3 -3
  66. package/dist/edge/index.js +4 -4
  67. package/dist/{executor-BgjsCon6.js → executor-B0nTn-4Q.js} +2 -2
  68. package/dist/expo/index.js +3 -3
  69. package/dist/{framework-DSGTH9p6.js → framework-C9UiMaOq.js} +1 -1
  70. package/dist/generators/factories/index.js +1 -1
  71. package/dist/generators/json-schema/index.js +1 -1
  72. package/dist/generators/nuqs/index.js +1 -1
  73. package/dist/generators/standard-schema/index.js +1 -1
  74. package/dist/generators/valibot/index.js +1 -1
  75. package/dist/generators/zod/index.js +1 -1
  76. package/dist/hono/index.js +3 -3
  77. package/dist/index.js +2 -2
  78. package/dist/{json-schema-DxVQGZbL.js → json-schema-CgwH39-G.js} +1 -1
  79. package/dist/mapper/bin.js +5 -5
  80. package/dist/mcp/index.js +1 -1
  81. package/dist/mcp/sdk/index.js +1 -1
  82. package/dist/{mcp-Cl8x5Ffg.js → mcp-CoJbu0Hk.js} +3 -3
  83. package/dist/next/index.js +3 -3
  84. package/dist/orpc/index.js +2 -2
  85. package/dist/otel/index.js +5 -5
  86. package/dist/{ports-BXtpOQRz.js → ports-DfDzwMCR.js} +2 -2
  87. package/dist/powersync/index.js +1 -1
  88. package/dist/{project-Ch2b_g1M.js → project-CxoixIpG.js} +1 -1
  89. package/dist/react-router/index.js +3 -3
  90. package/dist/{read-set-DsIurGUE.js → read-set-BptYceHc.js} +1 -1
  91. package/dist/server/index.js +4 -4
  92. package/dist/{server-DFxO9Dyz.js → server-CqRpnOo0.js} +2 -2
  93. package/dist/solid-start/index.js +3 -3
  94. package/dist/spec/index.js +2 -2
  95. package/dist/sql/index.js +1 -1
  96. package/dist/{sql-Cukwmnm3.js → sql-ZLYXNvXw.js} +16 -4
  97. package/dist/sqlite/index.js +1 -1
  98. package/dist/sveltekit/index.js +3 -3
  99. package/dist/tanstack-start/index.js +3 -3
  100. package/dist/testing/index.js +3 -3
  101. package/dist/{version-BAL_8E6V.js → version-DRVVrk-u.js} +1 -1
  102. package/dist/webmcp/index.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/cli/add-CuKMP5du.js +0 -1
  105. package/dist/cli/powersync-C5u6SbHy.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { o as problemResponse } from "./problem-BwplIuhI.js";
2
2
  import { p as flushEvents } from "./sessions-Dedk1ubX.js";
3
3
  import { n as defaultExpose } from "./respond-DLvLJwwN.js";
4
- import { n as extendServer } from "./server-DFxO9Dyz.js";
4
+ import { n as extendServer } from "./server-CqRpnOo0.js";
5
5
  // src/server/adapter-base.ts
6
6
  /**
7
7
  * What every framework adapter shares: the `exposeErrors` default, event
@@ -1,6 +1,6 @@
1
1
  import { r as isPlainObject } from "./clone-H_gCsL29.js";
2
2
  import { t as SPEC_PINS } from "./spec-pins-Dlz8OVqi.js";
3
- import { d as mergeJson, f as pointerToken, n as publishedResources, o as publishedBlocks, t as defineApiModel, u as pascal } from "./build-6vLM3d_J.js";
3
+ import { d as mergeJson, f as pointerToken, n as publishedResources, o as publishedBlocks, t as defineApiModel, u as pascal } from "./build-Cb9yLxtS.js";
4
4
  // src/spec/format.ts
5
5
  /**
6
6
  * Identity helper that fixes `apiVersion` and checks that the default version
@@ -1,10 +1,10 @@
1
1
  import { t as around } from "../shared-Ci1g9nl4.js";
2
- import { t as adapterBase } from "../adapter-base-8PuJ3OoB.js";
2
+ import { t as adapterBase } from "../adapter-base-BbnpIsy4.js";
3
3
  import { p as flushEvents } from "../sessions-Dedk1ubX.js";
4
- import { i as localsOf, r as frameworkEntry } from "../framework-DSGTH9p6.js";
4
+ import { i as localsOf, r as frameworkEntry } from "../framework-C9UiMaOq.js";
5
5
  import { i as requireCaller, o as runAction } from "../kit-BgRTtW9w.js";
6
6
  import { r as refusalResponse } from "../refusal-CgSrkirX.js";
7
- import { n as extendServer, t as createServer } from "../server-DFxO9Dyz.js";
7
+ import { n as extendServer, t as createServer } from "../server-CqRpnOo0.js";
8
8
  import { i as storageImageUrl } from "../image-url-bsGeybeg.js";
9
9
  // src/astro/index.ts
10
10
  function runtimeEnv(locals) {
@@ -17,7 +17,7 @@ import { r as withBlockHooks } from "../../block-hooks-B8Z1Rp6f.js";
17
17
  import { a as ok, t as AsyncResult } from "../../result-DijoXEFG.js";
18
18
  import { t as temporal } from "../../temporal-required-DQ1KN6UV.js";
19
19
  import { r as createDealClosers } from "../../sales-D_yZoFUU.js";
20
- import { t as compositeReadSet } from "../../composite-reads-CbPYsvlz.js";
20
+ import { t as compositeReadSet } from "../../composite-reads-BJeDe1yV.js";
21
21
  // src/blocks/crm/crm.ts
22
22
  const fraction = (progress, goal) => goal === 0n ? 0 : Number(progress * 10000n / goal) / 1e4;
23
23
  /** The share of `[start, end]` (both days included) that has passed on `on`. */
@@ -1,6 +1,6 @@
1
1
  import { a as fillTopic, c as blockNames, i as defineBlocks, l as renameKeys, n as createBlockClient, o as generatedOptions, r as createBlocks, s as columnsSchema, t as BLOCK_EVENT_SOURCE } from "../create-blocks-BNd5HtJf.js";
2
2
  import { n as defineBlock, t as BLOCK_CATEGORIES } from "../define-block-D3uNVp2k.js";
3
- import { n as defineCompositeReadSet, t as compositeReadSet } from "../composite-reads-CbPYsvlz.js";
3
+ import { n as defineCompositeReadSet, t as compositeReadSet } from "../composite-reads-BJeDe1yV.js";
4
4
  import { i as optionsJsonSchema, n as blockOptions, r as option, t as NO_OPTIONS } from "../options-Bfd-k6yw.js";
5
5
  import { i as entityNames } from "../entity-naming-CUsC8bC1.js";
6
6
  import { r as subjectKey } from "../block-subjects-GErrEs0y.js";
@@ -13,7 +13,7 @@ import { n as event, r as mergeEvents, t as defineEvents } from "../event-map-DL
13
13
  import { t as onBlockEvent } from "../block-event-listener-iD8R2IRl.js";
14
14
  import { t as FINAL_RUN_STATES } from "../run-state-DGiyDQxH.js";
15
15
  import { n as blockFields } from "../block-fields-4hvV0uWO.js";
16
- import { u as blockRead } from "../read-set-DsIurGUE.js";
16
+ import { u as blockRead } from "../read-set-BptYceHc.js";
17
17
  // src/blocks/block-hints.ts
18
18
  /**
19
19
  * Whether `error` carries one of `hints`, narrowing its `hint` to them:
@@ -1,7 +1,7 @@
1
1
  import { r as isPlainObject } from "./clone-H_gCsL29.js";
2
2
  import { t as instanceProperty } from "./instance-property-BlH7QSDl.js";
3
3
  import { s as problemType, t as PROBLEM_CONTENT_TYPE } from "./problem-BwplIuhI.js";
4
- import { n as toJsonSchema } from "./json-schema-DxVQGZbL.js";
4
+ import { n as toJsonSchema } from "./json-schema-CgwH39-G.js";
5
5
  import { n as pageQuery, r as pageSchema } from "./resource-schemas-Bq0g2RCQ.js";
6
6
  import { r as planResource } from "./resource-DQ4kIBpa.js";
7
7
  import { n as isRecord } from "./guards-CsRa6v57.js";
@@ -3,8 +3,8 @@ import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { r as applyPlan } from "./files-NnXnawki.js";
4
4
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
5
5
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
6
- import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-CjF7HAPk.js";
7
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-DqvkQ5MB.js";
6
+ import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-C5fw9XC_.js";
7
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-Ceqa-3R6.js";
8
8
  import { basename, dirname } from "node:path";
9
9
  import { readFile } from "node:fs/promises";
10
10
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-dbBQf6Vy.js";
@@ -2,18 +2,18 @@ import { c as parseNames, n as CliError } from "./errors-B7i-VGxk.js";
2
2
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
3
3
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
4
4
  import { r as readIfExists, t as display } from "./io-CngfGyMA.js";
5
- import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-CIDbpK_i.js";
6
- import { t as VERSION } from "./version-DvQcNR10.js";
5
+ import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-BvJ-JK5n.js";
6
+ import { t as VERSION } from "./version-C7imaHag.js";
7
7
  import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
8
- import { a as addBlocksToWiring, d as setBlockInConfig, f as setBlockInJson, g as setPresetInJson, h as setPresetInConfig, i as addBlocksToJson, m as setPathInJson, p as setPathInConfig, r as addBlocksToConfig, t as addModules } from "./add-Ctv6m6Up.js";
9
- import { o as dataMigration, t as syncModules } from "./sync-DqvkQ5MB.js";
10
- import { n as adoptionContext } from "./app-tables-Cwgr3GTi.js";
11
- import { a as toCatalog } from "./source-3EDa7rPw.js";
8
+ import { a as addBlocksToWiring, d as setBlockInConfig, f as setBlockInJson, g as setPresetInJson, h as setPresetInConfig, i as addBlocksToJson, m as setPathInJson, p as setPathInConfig, r as addBlocksToConfig, t as addModules } from "./add-BQZyQh4f.js";
9
+ import { o as dataMigration, t as syncModules } from "./sync-Ceqa-3R6.js";
10
+ import { n as adoptionContext } from "./app-tables-BBqu3dow.js";
11
+ import { a as toCatalog } from "./source-BGVOuWXq.js";
12
12
  import { i as plain } from "./style-B5-nByxb.js";
13
- import { d as loadSnapshot } from "./sql-layout-COn2WEKP.js";
13
+ import { d as loadSnapshot } from "./sql-layout-D8dIzdy9.js";
14
14
  import { a as findConfig, h as INTEGRATIONS, s as loadConfig } from "./config-NxPVkM-K.js";
15
- import { t as appTablePlan } from "./app-table-files-Cj0LsH5w.js";
16
- import { t as blockNames } from "./blocks-BgKD3-I9.js";
15
+ import { t as appTablePlan } from "./app-table-files-CITEmvRS.js";
16
+ import { t as blockNames } from "./blocks-D-DV2aCE.js";
17
17
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-B3Rowfv5.js";
18
18
  import { existsSync } from "node:fs";
19
19
  import { dirname, join, posix, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-B7i-VGxk.js";
2
2
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
3
- import { r as literal } from "./live-TK2YbWEB.js";
4
- import { r as layoutFor } from "./providers-CjF7HAPk.js";
5
- import { n as renderBlocksCached } from "./render-cache-D-L0uCUa.js";
3
+ import { r as literal } from "./live-DjjMID3V.js";
4
+ import { r as layoutFor } from "./providers-C5fw9XC_.js";
5
+ import { n as renderBlocksCached } from "./render-cache-CInSNFhV.js";
6
6
  import { f as subjectTagArgs } from "./config-NxPVkM-K.js";
7
7
  import { join, resolve, sep } from "node:path";
8
8
  import { APP_TABLES_MODULE, setTableFeature } from "better-supabase/sql";
@@ -1,6 +1,6 @@
1
1
  import { t as accessProviderMode } from "./authorization-CNWhpdKb.js";
2
- import { u as writtenByBlocks } from "./sql-layout-COn2WEKP.js";
3
- import { c as qualified, t as catalogOf } from "./shared-DJ0--OEH.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-D8dIzdy9.js";
3
+ import { c as qualified, t as catalogOf } from "./shared-D2i8_u-U.js";
4
4
  import { declaredTables, resolveBlocks } from "better-supabase/sql";
5
5
  // src/cli/doctor/app-tables.ts
6
6
  /**
@@ -3,7 +3,7 @@ import { 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-TK2YbWEB.js";
6
+ import { n as ident } from "./live-DjjMID3V.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-B3Rowfv5.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-BIL3hTIL.js";
2
+ import { i as run } from "./run-DVdkD1MI.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-BgKD3-I9.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-D-DV2aCE.js";
@@ -1,7 +1,7 @@
1
1
  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 { t as SQL_ARGS } from "./args-CS_64_tg.js";
4
- import { n as listModules, t as printModule } from "./print-BMDcJD64.js";
4
+ import { n as listModules, t as printModule } from "./print-D9biMrfv.js";
5
5
  import { t as decodePresetInput } from "./preset-CWfLlmTO.js";
6
6
  import { SQL_MODULES } from "better-supabase/sql";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1,5 +1,5 @@
1
1
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
2
- import { t as VERSION } from "./version-DvQcNR10.js";
2
+ import { t as VERSION } from "./version-C7imaHag.js";
3
3
  import { dirname, resolve } from "node:path";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
5
5
  import { createHash } from "node:crypto";
@@ -1,10 +1,10 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-8eUxJ86U.js";
2
+ import { i as pinReview, n as namingCodemod, o as configCodemod, r as columnPins, t as NAMING_RENAMES } from "./codemod-naming-BLoVSmVF.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
- import { r as layoutFor } from "./providers-CjF7HAPk.js";
5
- import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-COn2WEKP.js";
4
+ import { r as layoutFor } from "./providers-C5fw9XC_.js";
5
+ import { c as snapshotColumnTypes, i as migrationsDir, o as ownLayout, u as writtenByBlocks } from "./sql-layout-D8dIzdy9.js";
6
6
  import { r as arrayEntries, t as PROMISE_ALL } from "./round-trips-D2KD5Hpq.js";
7
- import { l as schemaModulePath } from "./emit-DS6N1chg.js";
7
+ import { l as schemaModulePath } from "./emit-CTzFdffA.js";
8
8
  import { n as databaseUrl, s as loadConfig } from "./config-NxPVkM-K.js";
9
9
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
10
10
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
@@ -1,5 +1,5 @@
1
1
  import { t as codeRanges } from "./code-ranges-uTOKmIXC.js";
2
- import { o as ownLayout } from "./sql-layout-COn2WEKP.js";
2
+ import { o as ownLayout } from "./sql-layout-D8dIzdy9.js";
3
3
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
4
4
  import { LEGACY_OPTION, SQL_MODULES, bsbPolicyName, moduleContext, readPolicies, redundantNulls } from "better-supabase/sql";
5
5
  // src/cli/codemod-config.ts
@@ -1,5 +1,5 @@
1
- import { t as NAMING_RENAMES } from "./codemod-naming-8eUxJ86U.js";
2
- import { u as writtenByBlocks } from "./sql-layout-COn2WEKP.js";
1
+ import { t as NAMING_RENAMES } from "./codemod-naming-BLoVSmVF.js";
2
+ import { u as writtenByBlocks } from "./sql-layout-D8dIzdy9.js";
3
3
  import { SQL_MODULES } from "better-supabase/sql";
4
4
  // src/cli/doctor/column-renames.ts
5
5
  const ADD_COLUMN = /\balter\s+table\s+(?:if\s+exists\s+)?(?:only\s+)?((?:"?[\w$]+"?\s*\.\s*)?"?[\w$]+"?)\s+add\s+column\s+if\s+not\s+exists\s+("?[\w$]+"?)/gi;
@@ -1,7 +1,7 @@
1
1
  import { t as i } from "./jsonc-Dyww6wHM.js";
2
2
  import { r as readIfExists } from "./io-CngfGyMA.js";
3
3
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
4
- import { H as installedVersion } from "./sql-layout-COn2WEKP.js";
4
+ import { H as installedVersion } from "./sql-layout-D8dIzdy9.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
7
7
  // src/cli/content-mapper.ts
@@ -1,9 +1,9 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
3
  import { m as GEN_TASKS } from "./config-NxPVkM-K.js";
4
- import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-DP9TaDgC.js";
5
- import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-gpTX1KW5.js";
6
- import { g as snapshotFile, p as openSource } from "./sql-layout-COn2WEKP.js";
4
+ import { c as stampFiles, l as watchLoop, o as fileWaker, s as parseInterval } from "./spec-COotILIk.js";
5
+ import { a as stepInputs, i as selectTasks, n as runTasks, r as parseTasks, t as poll } from "./gen-tasks-DmDvgVBV.js";
6
+ import { g as snapshotFile, p as openSource } from "./sql-layout-D8dIzdy9.js";
7
7
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-B3Rowfv5.js";
8
8
  import { dirname, resolve } from "node:path";
9
9
  import { readdir } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  import { d as subjectFromTag, l as stdinDatabaseUrl, n as databaseUrl, u as withTableTags } from "./config-NxPVkM-K.js";
2
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-DBMKbB16.js";
2
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-DMi2HOKi.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-BlYLJPzM.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
@@ -7,35 +7,35 @@ import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-NnXna
7
7
  import { a as sameText, t as display } from "./io-CngfGyMA.js";
8
8
  import { t as connect } from "./db-B_xr3ZvK.js";
9
9
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
10
- import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-COn2WEKP.js";
11
- import { i as request } from "./source-3EDa7rPw.js";
10
+ import { C as dataFiles, D as sourceFiles, E as seedFiles, H as installedVersion, O as sqlFiles, S as ENV_FILES, T as readText, U as peerVersions, W as satisfies, _ as liteDriverOf, a as moduleLayoutFor, d as loadSnapshot, f as managementTarget, g as snapshotFile, i as migrationsDir, j as MetadataRejectedError, p as openSource, r as blockDeclaredTables, u as writtenByBlocks, v as isSqliteLiteDriver, w as functionFiles } from "./sql-layout-D8dIzdy9.js";
11
+ import { i as request } from "./source-BGVOuWXq.js";
12
12
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
13
13
  import { r as supabaseCli } from "./exec-DBgtTCHK.js";
14
14
  import { t as CACHE_DIR } from "./store-DP-nmqBt.js";
15
- import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-C89xFeXI.js";
16
- import { r as renderFiles } from "./render-t8Y_8QIm.js";
17
- import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-DS6N1chg.js";
15
+ import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$7, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-0bMsZ1VV.js";
16
+ import { r as renderFiles } from "./render-DOz25g5T.js";
17
+ import { l as schemaModulePath, m as configFor, p as notNullTag } from "./emit-CTzFdffA.js";
18
18
  import { t as orphanedBlockFiles } from "./orphans-ByB0gKOp.js";
19
- import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-8eUxJ86U.js";
19
+ import { a as renameArguments, s as tenantEntries, t as NAMING_RENAMES } from "./codemod-naming-BLoVSmVF.js";
20
20
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
21
- import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-Cwgr3GTi.js";
22
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-N79wX1lQ.js";
23
- import { n as renderBlocksCached } from "./render-cache-D-L0uCUa.js";
24
- import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-DJ0--OEH.js";
25
- import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-rRIoozHD.js";
26
- import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-TK2YbWEB.js";
21
+ import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BBqu3dow.js";
22
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-Dv6VV1om.js";
23
+ import { n as renderBlocksCached } from "./render-cache-CInSNFhV.js";
24
+ import { a as lineOf, c as qualified, i as exposedSchemas, l as tableObject, n as deniesAll, o as permissionCatalogKeys, r as exposed, s as policyObject, t as catalogOf, u as workflowOf } from "./shared-D2i8_u-U.js";
25
+ import { n as staleRenameKeys, t as shadowedBlockColumns } from "./column-renames-brM-D_th.js";
26
+ import { a as reservedRoles, i as statementsView, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-DjjMID3V.js";
27
27
  import { t as projectionsOf } from "./projection-DlVB5YL-.js";
28
28
  import { s as providerLabel } from "./authorization-CNWhpdKb.js";
29
- import { t as VERSION$1 } from "./version-DvQcNR10.js";
29
+ import { t as VERSION$1 } from "./version-C7imaHag.js";
30
30
  import { t as PROCESS_ENV } from "./env-CQ831uY0.js";
31
31
  import { a as stackEnvValues, i as redactValue, o as staleVariables, t as PREFIX_NAMES } from "./stack-env-CtkfVXsR.js";
32
32
  import { n as readStackStatus } from "./stack-status-rNPCacin.js";
33
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-CIDbpK_i.js";
33
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-BvJ-JK5n.js";
34
34
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-3e1LT1bn.js";
35
35
  import { n as ROUND_TRIP_RULES } from "./round-trips-D2KD5Hpq.js";
36
36
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-Eu6d45F8.js";
37
37
  import { i as plain$2 } from "./style-B5-nByxb.js";
38
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-VfgaGwPp.js";
38
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-DCtLUYqR.js";
39
39
  import { t as compiledReadSets } from "./read-sets-77o7SxpK.js";
40
40
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-B3Rowfv5.js";
41
41
  import { existsSync } from "node:fs";
@@ -2,8 +2,8 @@ import { t as byCodePoint } from "./compare-yl4sSwVn.js";
2
2
  import { r as claimMarkerOverrides } from "./authorization-CNWhpdKb.js";
3
3
  import { n as CliError } from "./errors-B7i-VGxk.js";
4
4
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
5
- import { a as toCatalog } from "./source-3EDa7rPw.js";
6
- import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-COn2WEKP.js";
5
+ import { a as toCatalog } from "./source-BGVOuWXq.js";
6
+ import { F as restrictSchemas, R as tsTypeOf, b as bootstrapTables } from "./sql-layout-D8dIzdy9.js";
7
7
  import { resolveBlock, resolveProviderSql } from "better-supabase/sql";
8
8
  import { DEFAULT_CLAIMS, tenantClaimPaths } from "better-supabase/config";
9
9
  import { toCamel } from "better-supabase";
@@ -1,10 +1,10 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
2
  import { n as CliError } from "./errors-B7i-VGxk.js";
3
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-VfgaGwPp.js";
3
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-DCtLUYqR.js";
4
4
  import { m as GEN_TASKS } from "./config-NxPVkM-K.js";
5
- import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-gpTX1KW5.js";
5
+ import { i as selectTasks, n as runTasks, r as parseTasks } from "./gen-tasks-DmDvgVBV.js";
6
6
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
- import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-COn2WEKP.js";
7
+ import { F as restrictSchemas, I as serializeGenerator, d as loadSnapshot, h as serializeSnapshot } from "./sql-layout-D8dIzdy9.js";
8
8
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-B3Rowfv5.js";
9
9
  // src/cli/commands/save-snapshot.ts
10
10
  /** The flags `gen --save-snapshot` reads. */
@@ -1,17 +1,17 @@
1
1
  import { c as parseNames, i as failedResult, n as CliError } from "./errors-B7i-VGxk.js";
2
- import { n as runGen } from "./run-C89xFeXI.js";
3
- import { l as catalogFingerprint } from "./cache-BV7WlzUF.js";
2
+ import { n as runGen } from "./run-0bMsZ1VV.js";
3
+ import { l as catalogFingerprint } from "./cache-sR8AQqSV.js";
4
4
  import { i as plain } from "./style-B5-nByxb.js";
5
5
  import { g as isGenTask, m as GEN_TASKS } from "./config-NxPVkM-K.js";
6
6
  import { i as runEnv } from "./env-DtJNOdyD.js";
7
- import { n as runPowerSync } from "./powersync-B-K1msIl.js";
7
+ import { n as runPowerSync } from "./powersync-1HMiZhFF.js";
8
8
  import { t as runSeed } from "./seed-DVKgi-7l.js";
9
- import { r as specOptionsFromConfig, t as runSpec } from "./spec-DP9TaDgC.js";
10
- import { t as addModules } from "./add-Ctv6m6Up.js";
11
- import { n as listModules, t as printModule } from "./print-BMDcJD64.js";
12
- import { o as dataMigration, t as syncModules } from "./sync-DqvkQ5MB.js";
13
- import { t as upgrade } from "./upgrade-DmMKImiC.js";
14
- import { d as loadSnapshot } from "./sql-layout-COn2WEKP.js";
9
+ import { r as specOptionsFromConfig, t as runSpec } from "./spec-COotILIk.js";
10
+ import { t as addModules } from "./add-BQZyQh4f.js";
11
+ import { n as listModules, t as printModule } from "./print-D9biMrfv.js";
12
+ import { o as dataMigration, t as syncModules } from "./sync-Ceqa-3R6.js";
13
+ import { t as upgrade } from "./upgrade-CUNKALDw.js";
14
+ import { d as loadSnapshot } from "./sql-layout-D8dIzdy9.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
17
17
  // src/cli/commands/sql.ts
@@ -864,5 +864,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
864
864
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
865
865
  readonly legacyTables?: boolean;
866
866
  }): Promise<ResolvedConfig>;
867
- export declare const VERSION = "0.58.2";
867
+ export declare const VERSION = "0.58.3";
868
868
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CliValues, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
package/dist/cli/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-BIL3hTIL.js";
1
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-DVdkD1MI.js";
2
2
  import { a as list, r as defineCliCommand } from "./command-fqvJ0TdG.js";
3
3
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-B7i-VGxk.js";
4
- import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-t8Y_8QIm.js";
5
- import { n as runGen } from "./run-C89xFeXI.js";
6
- import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-COn2WEKP.js";
7
- import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-DS6N1chg.js";
8
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-3EDa7rPw.js";
4
+ import { a as emitBlockConfig, c as emitClientBlocks, o as emitBlockConfigModule, r as renderFiles, s as emitBlockReads } from "./render-DOz25g5T.js";
5
+ import { n as runGen } from "./run-0bMsZ1VV.js";
6
+ import { d as loadSnapshot, h as serializeSnapshot, m as parseSnapshot, y as introspect } from "./sql-layout-D8dIzdy9.js";
7
+ import { a as emitModule, d as buildModel, t as GENERATED_HEADER } from "./emit-CTzFdffA.js";
8
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BGVOuWXq.js";
9
9
  import { s as loadConfig } from "./config-NxPVkM-K.js";
10
- import { t as VERSION } from "./version-DvQcNR10.js";
10
+ import { t as VERSION } from "./version-C7imaHag.js";
11
11
  // src/cli/introspect/from-catalog.ts
12
12
  /**
13
13
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
@@ -1,17 +1,17 @@
1
1
  import { a as findConfig, s as loadConfig } from "./config-NxPVkM-K.js";
2
- import { r as contentMapperFiles } from "./content-mapper-DBMKbB16.js";
3
- import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-B77M4v-f.js";
2
+ import { r as contentMapperFiles } from "./content-mapper-DMi2HOKi.js";
3
+ import { C as withConventions, S as promptConventions, _ as CONVENTION_ARGS, a as writeDesign, b as defaultConventions, c as createUrlParam, d as integrationFiles, f as overwrite, g as templatePlan, h as templateContextFor, i as blocksWiringPath, l as CANCELLED, m as parseIntegrations, o as readPresetInput, p as packagesFor, r as blockConfigImport, s as AUTHZ_NOTE, u as chooseIntegrations, v as CONVENTION_COMPLETIONS, x as hasConventionFlags, y as conventionFlags } from "./add-dbBQf6Vy.js";
4
4
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
6
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-NnXnawki.js";
7
7
  import { r as readIfExists } from "./io-CngfGyMA.js";
8
- import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-CIDbpK_i.js";
9
- import { c as enablePgDelta, t as syncModules } from "./sync-DqvkQ5MB.js";
10
- import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-COn2WEKP.js";
11
- import { a as toCatalog } from "./source-3EDa7rPw.js";
12
- import { c as TYPEGEN_VERSION } from "./cache-BV7WlzUF.js";
8
+ import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-BvJ-JK5n.js";
9
+ import { c as enablePgDelta, t as syncModules } from "./sync-Ceqa-3R6.js";
10
+ import { A as suggestedPackage, d as loadSnapshot, h as serializeSnapshot, k as detectWorkspace } from "./sql-layout-D8dIzdy9.js";
11
+ import { a as toCatalog } from "./source-BGVOuWXq.js";
12
+ import { c as TYPEGEN_VERSION } from "./cache-sR8AQqSV.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-CHR-SAmE.js";
14
- import { t as appTablePlan } from "./app-table-files-Cj0LsH5w.js";
14
+ import { t as appTablePlan } from "./app-table-files-CITEmvRS.js";
15
15
  import { i as plain } from "./style-B5-nByxb.js";
16
16
  import { existsSync } from "node:fs";
17
17
  import { join, posix, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-B7i-VGxk.js";
2
- import "./source-3EDa7rPw.js";
3
- import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-DJ0--OEH.js";
2
+ import "./source-BGVOuWXq.js";
3
+ import { c as qualified, l as tableObject, r as exposed, t as catalogOf } from "./shared-D2i8_u-U.js";
4
4
  // src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,9 +1,9 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-fqvJ0TdG.js";
2
- import { a as errorDocument, i as run } from "./run-BIL3hTIL.js";
2
+ import { a as errorDocument, i as run } from "./run-DVdkD1MI.js";
3
3
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-CQ831uY0.js";
4
4
  import { n as consentDigest } from "./agent-BlYLJPzM.js";
5
5
  import { n as CliError } from "./errors-B7i-VGxk.js";
6
- import { t as VERSION } from "./version-DvQcNR10.js";
6
+ import { t as VERSION } from "./version-C7imaHag.js";
7
7
  import { createInterface } from "node:readline";
8
8
  import { answerLine } from "better-supabase/mcp";
9
9
  // src/cli/mcp/server.ts
@@ -1,5 +1,5 @@
1
1
  import { t as generatorHash } from "./generator-hash-BkdtEywR.js";
2
- import { t as VERSION } from "./version-DvQcNR10.js";
2
+ import { t as VERSION } from "./version-C7imaHag.js";
3
3
  import { n as cacheEnabled, r as cacheRoot } from "./store-DP-nmqBt.js";
4
4
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { n as CliError, r as errorText } from "./errors-B7i-VGxk.js";
2
2
  import { i as readStdin } from "./io-CngfGyMA.js";
3
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-C89xFeXI.js";
4
- import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-COn2WEKP.js";
5
- import { c as metaPaths } from "./emit-DS6N1chg.js";
6
- import { n as render } from "./render-t8Y_8QIm.js";
3
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-0bMsZ1VV.js";
4
+ import { P as parseMetadataDocument, j as MetadataRejectedError } from "./sql-layout-D8dIzdy9.js";
5
+ import { c as metaPaths } from "./emit-CTzFdffA.js";
6
+ import { n as render } from "./render-DOz25g5T.js";
7
7
  import { basename, join, relative, resolve, sep } from "node:path";
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { jsonSchema } from "better-supabase/generators/json-schema";
@@ -1,6 +1,6 @@
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
- import { t as appTablePlan } from "./app-table-files-Cj0LsH5w.js";
3
+ import { t as appTablePlan } from "./app-table-files-CITEmvRS.js";
4
4
  import { i as plain } from "./style-B5-nByxb.js";
5
5
  // src/cli/commands/migrate.ts
6
6
  const MIGRATE_ARGS = {};
@@ -1,5 +1,5 @@
1
1
  import { h as INTEGRATIONS } from "./config-NxPVkM-K.js";
2
- import { l as schemaModulePath } from "./emit-DS6N1chg.js";
2
+ import { l as schemaModulePath } from "./emit-CTzFdffA.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-COn2WEKP.js";
2
+ import { i as migrationsDir, l as sqlPlan } from "./sql-layout-D8dIzdy9.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-TK2YbWEB.js";
6
+ import { n as ident } from "./live-DjjMID3V.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;
@@ -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-COn2WEKP.js";
4
+ import { c as snapshotColumnTypes, i as migrationsDir, n as appSchemaTexts, s as schemasDirOf } from "./sql-layout-D8dIzdy9.js";
5
5
  import { n as migrationFile, t as hasMigrationSuffix } from "./migration-names-7zAdXfcd.js";
6
- import { r as layoutFor } from "./providers-CjF7HAPk.js";
7
- import { n as renderBlocksCached } from "./render-cache-D-L0uCUa.js";
6
+ import { r as layoutFor } from "./providers-C5fw9XC_.js";
7
+ import { n as renderBlocksCached } from "./render-cache-CInSNFhV.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";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-1HMiZhFF.js";
@@ -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-N79wX1lQ.js";
3
- import { n as layout } from "./providers-CjF7HAPk.js";
2
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-Dv6VV1om.js";
3
+ import { n as layout } from "./providers-C5fw9XC_.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-COn2WEKP.js";
4
+ import { a as moduleLayoutFor, s as schemasDirOf } from "./sql-layout-D8dIzdy9.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-TK2YbWEB.js";
6
+ import { n as ident } from "./live-DjjMID3V.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-B77M4v-f.js";
5
+ import { h as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-dbBQf6Vy.js";
6
6
  import { t as detectProject } from "./detect-CHR-SAmE.js";
7
- import { l as sqlPlan } from "./sql-layout-COn2WEKP.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-Ctv6m6Up.js";
7
+ import { l as sqlPlan } from "./sql-layout-D8dIzdy9.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-BQZyQh4f.js";
9
9
  import { t as SQL_ARGS } from "./args-CS_64_tg.js";
10
- import { r as layoutFor } from "./providers-CjF7HAPk.js";
11
- import { n as guardedRemoval } from "./sync-DqvkQ5MB.js";
10
+ import { r as layoutFor } from "./providers-C5fw9XC_.js";
11
+ import { n as guardedRemoval } from "./sync-Ceqa-3R6.js";
12
12
  import { i as plain } from "./style-B5-nByxb.js";
13
- import { t as blockNames } from "./blocks-BgKD3-I9.js";
13
+ import { t as blockNames } from "./blocks-D-DV2aCE.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import { resolve } from "node:path";
16
16
  import { readFile } from "node:fs/promises";