better-supabase 0.18.0 → 0.18.2

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 (74) hide show
  1. package/dist/{app-tables-XwCviyhP.d.ts → app-tables-atP-tZKZ.d.ts} +1 -1
  2. package/dist/blocks/audit/index.d.ts +1 -1
  3. package/dist/cli/{add-B1S3yK4L.js → add-CbUFLPVA.js} +9 -9
  4. package/dist/cli/{add-D7YIXslp.js → add-ee805E_R.js} +2 -2
  5. package/dist/cli/add-k8gdux-e.js +1 -0
  6. package/dist/cli/{backfill-BwkyNhlC.js → backfill-CCNXzDjt.js} +1 -1
  7. package/dist/cli/bin.js +1 -1
  8. package/dist/cli/{blocks-DDm1Zc2S.js → blocks-CKp4EfLe.js} +1 -1
  9. package/dist/cli/{blocks-CBqENu3C.js → blocks-DNgcfS8X.js} +1 -1
  10. package/dist/cli/{cache-DE2IH1-C.js → cache-CDNVq1vO.js} +1 -1
  11. package/dist/cli/{codemod-OHKhVV-v.js → codemod-B621vQYQ.js} +2 -2
  12. package/dist/cli/{content-mapper-CaygHH_k.js → content-mapper-Chm3txER.js} +2 -2
  13. package/dist/cli/{doctor-D_nrsd9E.js → doctor-EWtWH8I9.js} +15 -15
  14. package/dist/cli/{gen-D7gMEwvg.js → gen-D-g9TAmr.js} +11 -11
  15. package/dist/cli/index.d.ts +1 -1
  16. package/dist/cli/index.js +6 -6
  17. package/dist/cli/{init-ch-HWJyp.js → init-D0SxtKH5.js} +5 -5
  18. package/dist/cli/{legacy-prefix-DkTA3Rhx.js → legacy-prefix-R7UChFFl.js} +18 -5
  19. package/dist/cli/{live-B38ePuRS.js → live-PaO1MC10.js} +2 -2
  20. package/dist/cli/{mcp-P9RP2SJ3.js → mcp-CHpzdlOg.js} +2 -2
  21. package/dist/cli/{metadata-BTihErEc.js → metadata-KKCdxMLb.js} +3 -3
  22. package/dist/cli/{migration-safety-DYo1vVWC.js → migration-safety-Cgr44KLM.js} +1 -1
  23. package/dist/cli/{migrations-BoIyGczt.js → migrations-VmJloDtq.js} +1 -1
  24. package/dist/cli/{module-migration-DXvo0EqU.js → module-migration-D4lirR47.js} +2 -2
  25. package/dist/cli/powersync-Bo16K2S6.js +1 -0
  26. package/dist/cli/{powersync-D-0yV_L_.js → powersync-Cc9Ad_Mn.js} +2 -2
  27. package/dist/cli/{print-CRon4lXf.js → print-CXmXGe3Y.js} +2 -2
  28. package/dist/cli/{remove-D89s99ha.js → remove-CJi3fvpP.js} +5 -5
  29. package/dist/cli/{render-BJF9ytUi.js → render-CVTKsacY.js} +3 -3
  30. package/dist/cli/{run-x9ZY4Tm0.js → run-DvK2vagi.js} +21 -21
  31. package/dist/cli/{run-jeplMBOK.js → run-x9l841K2.js} +8 -8
  32. package/dist/cli/{shared-B38Chjgd.js → shared-FhGSrA9E.js} +1 -1
  33. package/dist/cli/{snapshot-BXmU3IXN.js → snapshot-B12QpZNf.js} +2 -2
  34. package/dist/cli/{source-irttnsEb.js → source-DP8KOgax.js} +1 -1
  35. package/dist/cli/{spec-DzD5wMVF.js → spec-CIQBAQgr.js} +1 -1
  36. package/dist/cli/{spec-CDxfokey.js → spec-D-NPgLTj.js} +2 -2
  37. package/dist/cli/{sql-layout-D8QrNvt4.js → sql-layout-DTczUfCt.js} +2 -2
  38. package/dist/cli/{sync-s1iKFIos.js → sync-DHJ6UBod.js} +3 -3
  39. package/dist/cli/{upgrade-B4FPlK-_.js → upgrade-B69K7-JE.js} +5 -5
  40. package/dist/cli/{upgrade-CluxP3JJ.js → upgrade-C7SEKT4b.js} +2 -2
  41. package/dist/cli/{version-TgFM8sOd.js → version-DmaGTP3L.js} +1 -1
  42. package/dist/config/index.d.ts +1 -1
  43. package/dist/{context-D24k1Cpc.d.ts → context-Cj-9gE6l.d.ts} +4 -2
  44. package/dist/create/index.d.ts +2 -2
  45. package/dist/create/index.js +1 -1
  46. package/dist/{field-errors-DucQdLl7.d.ts → field-errors-DkAemDoc.d.ts} +1 -1
  47. package/dist/{index-XAyzdLns.d.ts → index-DTbJAsrT.d.ts} +2 -2
  48. package/dist/{index-BAcQz5DS.d.ts → index-DVYEoVMK.d.ts} +1 -1
  49. package/dist/{index-4WT_uRRL.d.ts → index-DZylLz7h.d.ts} +1 -1
  50. package/dist/{index-BH3NYExp.d.ts → index-DmbCyl6Z.d.ts} +7 -3
  51. package/dist/mapper/bin.js +5 -5
  52. package/dist/next/index.d.ts +1 -1
  53. package/dist/otel/index.js +4 -4
  54. package/dist/preset/index.d.ts +3 -3
  55. package/dist/react/index.d.ts +3 -3
  56. package/dist/react/index.js +1 -1
  57. package/dist/react/server.d.ts +3 -3
  58. package/dist/react/server.js +1 -1
  59. package/dist/{react-CZUZYn9E.js → react-zBTxLsV6.js} +1 -1
  60. package/dist/realtime/index.d.ts +1 -1
  61. package/dist/realtime/index.js +1 -1
  62. package/dist/{relay-gKvKJ3xf.js → relay-CIKcAVjf.js} +61 -21
  63. package/dist/server/index.d.ts +3 -2
  64. package/dist/server/index.js +11 -4
  65. package/dist/solid/index.d.ts +1 -1
  66. package/dist/sql/index.d.ts +3 -3
  67. package/dist/sql/index.js +1 -1
  68. package/dist/{sql-fHTjZGqR.js → sql-D2Sc6BTr.js} +39 -10
  69. package/dist/svelte/index.d.ts +1 -1
  70. package/dist/testing/index.d.ts +1 -1
  71. package/dist/vue/index.d.ts +1 -1
  72. package/package.json +1 -1
  73. package/dist/cli/add-BQPJnapO.js +0 -1
  74. package/dist/cli/powersync-DXVsKkAu.js +0 -1
@@ -1,4 +1,4 @@
1
- import { hr as AppTableConfig } from "./context-D24k1Cpc.js";
1
+ import { hr as AppTableConfig } from "./context-Cj-9gE6l.js";
2
2
  //#region src/config/app-tables.d.ts
3
3
  /**
4
4
  * The columns every app table gets, which `columns` may not name: `id`,
@@ -13,7 +13,7 @@ import { i as EventSink, t as CloudEvent } from "../../cloud-event-CzZTJkXv.js";
13
13
  import { i as ListDefinition } from "../../list-query-DxjuIHEL.js";
14
14
  import { n as Controller, t as AuthPort } from "../../controller-BR7CZ1R9.js";
15
15
  import { a as UndoToken } from "../../undo-B1jwnVyN.js";
16
- import { n as AuditCategory } from "../../context-D24k1Cpc.js";
16
+ import { n as AuditCategory } from "../../context-Cj-9gE6l.js";
17
17
  //#region src/blocks/audit/audit.d.ts
18
18
  interface PurgeAuditLogOptions extends BlockTemporalOptions {
19
19
  /**
@@ -1,21 +1,21 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { a as parseNames, n as CliError } from "./errors-BTe6A15O.js";
5
5
  import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
6
- import { t as loadSnapshot } from "./snapshot-BXmU3IXN.js";
6
+ import { t as loadSnapshot } from "./snapshot-B12QpZNf.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
- import { a as toCatalog } from "./source-irttnsEb.js";
9
- import { n as dataMigration } from "./migrations-BoIyGczt.js";
8
+ import { a as toCatalog } from "./source-DP8KOgax.js";
9
+ import { n as dataMigration } from "./migrations-VmJloDtq.js";
10
10
  import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-BJSqMi04.js";
11
11
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
12
- 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-DYo1vVWC.js";
12
+ 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-Cgr44KLM.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
14
14
  import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-CrWfk8s3.js";
15
- import { t as syncModules } from "./sync-s1iKFIos.js";
16
- import { t as addModules } from "./add-D7YIXslp.js";
17
- import { n as ident } from "./live-B38ePuRS.js";
18
- import { t as blockNames } from "./blocks-DDm1Zc2S.js";
15
+ import { t as syncModules } from "./sync-DHJ6UBod.js";
16
+ import { t as addModules } from "./add-ee805E_R.js";
17
+ import { n as ident } from "./live-PaO1MC10.js";
18
+ import { t as blockNames } from "./blocks-CKp4EfLe.js";
19
19
  import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-DlckPVje.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { dirname, join, posix, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-BoIyGczt.js";
2
+ import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-VmJloDtq.js";
3
3
  import { r as applyPlan } from "./files-CX71yBm8.js";
4
4
  import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-CrWfk8s3.js";
5
- import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-s1iKFIos.js";
5
+ import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-DHJ6UBod.js";
6
6
  import { basename, dirname } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as addCommand } from "./add-CbUFLPVA.js";
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
4
4
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BJSqMi04.js";
5
5
  import { t as connect } from "./db-CQCLx7cx.js";
6
- import { n as ident } from "./live-B38ePuRS.js";
6
+ import { n as ident } from "./live-PaO1MC10.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-DlckPVje.js";
8
8
  //#region 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-x9ZY4Tm0.js";
2
+ import { i as run } from "./run-DvK2vagi.js";
3
3
  import { t as colorEnabled } from "./style-Bm2X5JrN.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
4
- import { n as listModules, t as printModule } from "./print-CRon4lXf.js";
4
+ import { n as listModules, t as printModule } from "./print-CXmXGe3Y.js";
5
5
  import { t as decodePresetInput } from "./preset-BwmIfFnh.js";
6
6
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-DDm1Zc2S.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-CKp4EfLe.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-TgFM8sOd.js";
1
+ import { t as VERSION } from "./version-DmaGTP3L.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -4,9 +4,9 @@ import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { t as migrateCliCall } from "./moved-DVwgE8lV.js";
5
5
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
6
6
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
7
- import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-D8QrNvt4.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DTczUfCt.js";
8
8
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-CrWfk8s3.js";
9
- import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-DkTA3Rhx.js";
9
+ import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-R7UChFFl.js";
10
10
  import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
11
11
  import { a as RECORD_BINDING_RENAMES, n as groupConfigJson, r as groupConfigSource, t as cutRange } from "./config-group-C8tjut39.js";
12
12
  import { existsSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-DH1kcmmP.js";
2
- import { t as CACHE_DIR } from "./cache-DE2IH1-C.js";
3
- import { x as installedVersion } from "./snapshot-BXmU3IXN.js";
2
+ import { t as CACHE_DIR } from "./cache-CDNVq1vO.js";
3
+ import { x as installedVersion } from "./snapshot-B12QpZNf.js";
4
4
  import { t as i } from "./jsonc-D5Fu67jw.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
@@ -1,36 +1,36 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
5
5
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
6
6
  import { a as sameText, t as display } from "./io-DH1kcmmP.js";
7
- import { t as CACHE_DIR } from "./cache-DE2IH1-C.js";
7
+ import { t as CACHE_DIR } from "./cache-CDNVq1vO.js";
8
8
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
9
- import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-BXmU3IXN.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-BJF9ytUi.js";
9
+ import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-B12QpZNf.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CVTKsacY.js";
11
11
  import { t as isRecord } from "./guards-CUlDNYZs.js";
12
- import { i as request } from "./source-irttnsEb.js";
13
- import { g as providerLabel, u as compiledReadSets } from "./migrations-BoIyGczt.js";
12
+ import { i as request } from "./source-DP8KOgax.js";
13
+ import { g as providerLabel, u as compiledReadSets } from "./migrations-VmJloDtq.js";
14
14
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BJSqMi04.js";
15
15
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
16
16
  import { t as PROCESS_ENV } from "./env-DMgjB_4y.js";
17
17
  import { n as readStackStatus } from "./stack-status-B_Ipd_-z.js";
18
18
  import { t as connect } from "./db-CQCLx7cx.js";
19
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-CaygHH_k.js";
19
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-Chm3txER.js";
20
20
  import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
21
- import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-jeplMBOK.js";
22
- import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-D8QrNvt4.js";
23
- import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-B38Chjgd.js";
24
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-DXvo0EqU.js";
25
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DYo1vVWC.js";
21
+ import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-x9l841K2.js";
22
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-DTczUfCt.js";
23
+ import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-FhGSrA9E.js";
24
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-D4lirR47.js";
25
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Cgr44KLM.js";
26
26
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
27
- import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-B38ePuRS.js";
27
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-PaO1MC10.js";
28
28
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-DlckPVje.js";
29
29
  import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
30
30
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-DQTW53Vf.js";
31
31
  import { i as staleVariables, r as stackEnvValues, t as PREFIX_NAMES } from "./stack-env-6hS-WEmh.js";
32
32
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-BYlQ96WS.js";
33
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-BTihErEc.js";
33
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-KKCdxMLb.js";
34
34
  import { existsSync } from "node:fs";
35
35
  import { dirname, resolve } from "node:path";
36
36
  import { createHash } from "node:crypto";
@@ -383,7 +383,7 @@ const ADOPTION_RULES = [
383
383
  code: "BS342",
384
384
  severity: "error",
385
385
  title: "Enum column of the app's that a module writes as text",
386
- description: "A module writes a text parameter or computed text value into a column of the app's table that the snapshot declares as an enum; string literals are fine. Postgres has no implicit cast from text to an enum, so the module's functions fail when they run. Columns the module casts to their declared type, such as the tags `kind` and the numbering `entity`, may be enums.",
386
+ description: "A module writes a text parameter or computed text value into a column of the app's table that the snapshot declares as an enum; string literals are fine. Postgres has no implicit cast from text to an enum, so the module's functions fail when they run. Columns the module casts to their declared type, such as the tags `kind`, the numbering `entity` and the profiles `locale`, may be enums.",
387
387
  check: (context) => {
388
388
  const { tables } = catalogOf(context);
389
389
  const ownTables = Object.fromEntries(tables.map((table) => [qualified(table), "database"]));
@@ -1,22 +1,22 @@
1
1
  import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { a as parseNames, i as failedResult, n as CliError } from "./errors-BTe6A15O.js";
4
- import { u as catalogFingerprint } from "./cache-DE2IH1-C.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BXmU3IXN.js";
6
- import { n as dataMigration } from "./migrations-BoIyGczt.js";
4
+ import { u as catalogFingerprint } from "./cache-CDNVq1vO.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-B12QpZNf.js";
6
+ import { n as dataMigration } from "./migrations-VmJloDtq.js";
7
7
  import { d as GEN_TASKS, p as isGenTask } from "./config-BJSqMi04.js";
8
8
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
9
- import { n as runGen } from "./run-jeplMBOK.js";
10
- import { t as syncModules } from "./sync-s1iKFIos.js";
11
- import { t as addModules } from "./add-D7YIXslp.js";
12
- import { n as listModules, t as printModule } from "./print-CRon4lXf.js";
9
+ import { n as runGen } from "./run-x9l841K2.js";
10
+ import { t as syncModules } from "./sync-DHJ6UBod.js";
11
+ import { t as addModules } from "./add-ee805E_R.js";
12
+ import { n as listModules, t as printModule } from "./print-CXmXGe3Y.js";
13
13
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-DlckPVje.js";
14
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-BTihErEc.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-KKCdxMLb.js";
15
15
  import { a as runEnv } from "./env-BCgVZkcb.js";
16
- import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-CDxfokey.js";
17
- import { n as runPowerSync } from "./powersync-D-0yV_L_.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-D-NPgLTj.js";
17
+ import { n as runPowerSync } from "./powersync-Cc9Ad_Mn.js";
18
18
  import { t as runSeed } from "./seed-D9mt8bnW.js";
19
- import { t as upgrade } from "./upgrade-B4FPlK-_.js";
19
+ import { t as upgrade } from "./upgrade-B69K7-JE.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  //#region src/cli/commands/sql.ts
@@ -798,6 +798,6 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
798
798
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined): Promise<ResolvedConfig>;
799
799
  //#endregion
800
800
  //#region src/cli/version.d.ts
801
- export declare const VERSION = "0.18.0";
801
+ export declare const VERSION = "0.18.2";
802
802
  //#endregion
803
803
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
package/dist/cli/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { a as list, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-x9ZY4Tm0.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-DvK2vagi.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-BTe6A15O.js";
5
- import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-BXmU3IXN.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-BJF9ytUi.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-irttnsEb.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-B12QpZNf.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-CVTKsacY.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-DP8KOgax.js";
8
8
  import { s as loadConfig } from "./config-BJSqMi04.js";
9
- import { n as runGen } from "./run-jeplMBOK.js";
9
+ import { n as runGen } from "./run-x9l841K2.js";
10
10
  //#region src/cli/introspect/from-catalog.ts
11
11
  /**
12
12
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
@@ -2,14 +2,14 @@ import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BW
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { r as readIfExists } from "./io-DH1kcmmP.js";
5
- import { l as TYPEGEN_VERSION } from "./cache-DE2IH1-C.js";
5
+ import { l as TYPEGEN_VERSION } from "./cache-CDNVq1vO.js";
6
6
  import { a as findConfig, s as loadConfig } from "./config-BJSqMi04.js";
7
- import { r as contentMapperFiles } from "./content-mapper-CaygHH_k.js";
7
+ import { r as contentMapperFiles } from "./content-mapper-Chm3txER.js";
8
8
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
9
- import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-B1S3yK4L.js";
10
- 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-DYo1vVWC.js";
9
+ import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-CbUFLPVA.js";
10
+ 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-Cgr44KLM.js";
11
11
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
12
- import { s as enablePgDelta, t as syncModules } from "./sync-s1iKFIos.js";
12
+ import { s as enablePgDelta, t as syncModules } from "./sync-DHJ6UBod.js";
13
13
  import { existsSync } from "node:fs";
14
14
  import { join, posix, resolve } from "node:path";
15
15
  import { glob, readFile } from "node:fs/promises";
@@ -21,11 +21,11 @@ function legacyPrefixNames(text) {
21
21
  }
22
22
  const array = (values) => `array[${values.map((value) => `'${value.replaceAll("'", "''")}'`).join(", ")}]::text[]`;
23
23
  /**
24
- * Renames the installed `bs_` triggers, policies, constraints, indexes and
25
- * functions to `bsb_`, so the module files' `drop ... if exists bsb_x` replace
26
- * them instead of adding a second copy. Only the names in `names` and the
27
- * runtime prefixes are renamed, and only while the new name is free, so the
28
- * step can run again.
24
+ * Renames the installed `bs_` triggers, event triggers, policies, constraints,
25
+ * indexes and functions to `bsb_`, so the module files' `drop ... if exists
26
+ * bsb_x` replace them instead of adding a second copy. Only the names in
27
+ * `names` and the runtime prefixes are renamed, and only while the new name is
28
+ * free, so the step can run again.
29
29
  */
30
30
  function legacyPrefixSql(names) {
31
31
  return `do $bsb_rename$
@@ -48,6 +48,19 @@ begin
48
48
  end;
49
49
  end loop;
50
50
 
51
+ for r in
52
+ select e.evtname as name
53
+ from pg_event_trigger e
54
+ where (e.evtname = any (v_names) or exists (select 1 from unnest(v_prefixes) x where starts_with(e.evtname, x)))
55
+ and not exists (select 1 from pg_event_trigger f where f.evtname = 'bsb_' || substr(e.evtname, 4))
56
+ loop
57
+ begin
58
+ execute format('alter event trigger %I rename to %I', r.name, 'bsb_' || substr(r.name, 4));
59
+ exception when insufficient_privilege then
60
+ raise warning 'better-supabase: rename % to bsb_% by hand; the migration role does not own it', r.name, substr(r.name, 4);
61
+ end;
62
+ end loop;
63
+
51
64
  for r in
52
65
  select p.polname as name, p.polrelid::regclass::text as rel
53
66
  from pg_policy p
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-BTe6A15O.js";
2
- import "./source-irttnsEb.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-B38Chjgd.js";
2
+ import "./source-DP8KOgax.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-FhGSrA9E.js";
4
4
  //#region src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,6 +1,6 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { a as envelope, i as run } from "./run-x9ZY4Tm0.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
2
+ import { a as envelope, i as run } from "./run-DvK2vagi.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { n as CliError } from "./errors-BTe6A15O.js";
5
5
  import { n as consentToken } from "./agent-CbuPvI2x.js";
6
6
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, o as boolean, t as PROCESS_ENV, x as object } from "./env-DMgjB_4y.js";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { i as readStdin } from "./io-DH1kcmmP.js";
3
- import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-BXmU3IXN.js";
4
- import { c as metaPaths, n as render } from "./render-BJF9ytUi.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-jeplMBOK.js";
3
+ import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-B12QpZNf.js";
4
+ import { c as metaPaths, n as render } from "./render-CVTKsacY.js";
5
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-x9l841K2.js";
6
6
  import { basename, join, relative, resolve, sep } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
@@ -1,5 +1,5 @@
1
1
  import { f as INTEGRATIONS } from "./config-BJSqMi04.js";
2
- import { c as splitStatements } from "./shared-B38Chjgd.js";
2
+ import { c as splitStatements } from "./shared-FhGSrA9E.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
@@ -2,7 +2,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
2
2
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
4
4
  import { i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
5
- import { a as sqlPlan, i as schemasDirOf, n as migrationsDir, r as moduleLayoutFor } from "./sql-layout-D8QrNvt4.js";
5
+ import { a as sqlPlan, i as schemasDirOf, n as migrationsDir, r as moduleLayoutFor } from "./sql-layout-DTczUfCt.js";
6
6
  import { resolve } from "node:path";
7
7
  import { readFile, readdir } from "node:fs/promises";
8
8
  import { MODULE_ID_TYPES, compileReadSets, moduleIdType, moduleLayout, modulePermissionKeys, moduleSchemaExtensions, renderBlocks, resolveBlocks, scopeProblems, templateFunctions } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
- import { i as stampAfter } from "./migrations-BoIyGczt.js";
1
+ import { i as stampAfter } from "./migrations-VmJloDtq.js";
2
2
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  import { i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
4
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-D8QrNvt4.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DTczUfCt.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions } from "better-supabase/sql";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-Cc9Ad_Mn.js";
@@ -1,7 +1,7 @@
1
1
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
- import { c as layoutFor, i as stampAfter } from "./migrations-BoIyGczt.js";
2
+ import { c as layoutFor, i as stampAfter } from "./migrations-VmJloDtq.js";
3
3
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
4
- import { n as migrationsDir } from "./sql-layout-D8QrNvt4.js";
4
+ import { n as migrationsDir } from "./sql-layout-DTczUfCt.js";
5
5
  import { existsSync } from "node:fs";
6
6
  import { join, resolve } from "node:path";
7
7
  import { readFile, readdir } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { s as layout } from "./migrations-BoIyGczt.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-DXvo0EqU.js";
2
+ import { s as layout } from "./migrations-VmJloDtq.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-D4lirR47.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";
@@ -2,15 +2,15 @@ import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
5
- import { c as layoutFor } from "./migrations-BoIyGczt.js";
5
+ import { c as layoutFor } from "./migrations-VmJloDtq.js";
6
6
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-CX71yBm8.js";
7
- import { a as sqlPlan } from "./sql-layout-D8QrNvt4.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-B1S3yK4L.js";
7
+ import { a as sqlPlan } from "./sql-layout-DTczUfCt.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-CbUFLPVA.js";
9
9
  import { t as detectProject } from "./detect-D9JaAX20.js";
10
10
  import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-CrWfk8s3.js";
11
- import { n as guardedRemoval } from "./sync-s1iKFIos.js";
11
+ import { n as guardedRemoval } from "./sync-DHJ6UBod.js";
12
12
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
13
- import { t as blockNames } from "./blocks-DDm1Zc2S.js";
13
+ import { t as blockNames } from "./blocks-CKp4EfLe.js";
14
14
  import { i as tidyInline, t as cutRange } from "./config-group-C8tjut39.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { n as importPath } from "./io-DH1kcmmP.js";
3
- import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-DE2IH1-C.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-CDNVq1vO.js";
4
4
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
5
- import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-BXmU3IXN.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-B12QpZNf.js";
6
6
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
7
- import { a as toCatalog } from "./source-irttnsEb.js";
7
+ import { a as toCatalog } from "./source-DP8KOgax.js";
8
8
  import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
9
9
  import { entityNames } from "better-supabase/blocks";
10
10
  import { DEFAULT_CLAIMS, blockEntities, blockEntityRenames, blockSubjectTypes, tenantClaimPaths, tenantNameOf } from "better-supabase/config";
@@ -1,6 +1,6 @@
1
1
  import { c as COMMANDS, d as GROUPS, f as RESERVED_NAMES, h as runCommand, i as joinRepeated, m as parseArgs$2, o as listArgs, s as runsWithInvalidConfig, t as GLOBAL_ARGS, u as DOCS_ORIGIN } from "./command-BWEEXmtz.js";
2
2
  import { n as highlight, r as painter } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { n as CliError, o as toCliError } from "./errors-BTe6A15O.js";
5
5
  import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-CbuPvI2x.js";
6
6
  import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-B079x40m.js";
@@ -16,36 +16,36 @@ import { resolve } from "node:path";
16
16
  * loads on demand, so `--version` and `--help` import no command.
17
17
  */
18
18
  const LOADERS = [
19
- ["init", () => import("./init-ch-HWJyp.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-BQPJnapO.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-D89s99ha.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-CluxP3JJ.js").then((m) => m.upgradeCommand)],
23
- ["gen", () => import("./gen-D7gMEwvg.js").then((m) => m.genCommand)],
24
- ["doctor", () => import("./doctor-D_nrsd9E.js").then((m) => m.doctorCommand)],
19
+ ["init", () => import("./init-D0SxtKH5.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-k8gdux-e.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-CJi3fvpP.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-C7SEKT4b.js").then((m) => m.upgradeCommand)],
23
+ ["gen", () => import("./gen-D-g9TAmr.js").then((m) => m.genCommand)],
24
+ ["doctor", () => import("./doctor-EWtWH8I9.js").then((m) => m.doctorCommand)],
25
25
  ["db query", () => import("./db-DYU5hUcd.js").then((m) => m.dbQueryCommand)],
26
26
  ["db diff", () => import("./db-DYU5hUcd.js").then((m) => m.dbDiffCommand)],
27
27
  ["db seed", () => import("./seed-EPO6AvLG.js").then((m) => m.seedCommand)],
28
- ["db backfill", () => import("./backfill-BwkyNhlC.js").then((m) => m.dbBackfillCommand)],
28
+ ["db backfill", () => import("./backfill-CCNXzDjt.js").then((m) => m.dbBackfillCommand)],
29
29
  ["dev env", () => import("./env-xhwXk5Ri.js").then((m) => m.envCommand)],
30
30
  ["dev run", () => import("./run-DmOTMa44.js").then((m) => m.runCommand)],
31
31
  ["dev keys", () => import("./keys-CbaL0lnw.js").then((m) => m.keysCommand)],
32
32
  ["dev stack ls", () => import("./stack-DgASZP0K.js").then((m) => m.stackLsCommand)],
33
33
  ["dev stack prune", () => import("./stack-DgASZP0K.js").then((m) => m.stackPruneCommand)],
34
- ["blocks list", () => import("./blocks-CBqENu3C.js").then((m) => m.blocksListCommand)],
35
- ["blocks view", () => import("./blocks-CBqENu3C.js").then((m) => m.blocksViewCommand)],
36
- ["blocks search", () => import("./blocks-CBqENu3C.js").then((m) => m.blocksSearchCommand)],
37
- ["powersync streams", () => import("./powersync-DXVsKkAu.js").then((m) => m.powersyncStreamsCommand)],
38
- ["spec emit", () => import("./spec-DzD5wMVF.js").then((m) => m.specEmitCommand)],
39
- ["spec validate", () => import("./spec-DzD5wMVF.js").then((m) => m.specValidateCommand)],
40
- ["mcp", () => import("./mcp-P9RP2SJ3.js").then((m) => m.mcpCommand)],
34
+ ["blocks list", () => import("./blocks-DNgcfS8X.js").then((m) => m.blocksListCommand)],
35
+ ["blocks view", () => import("./blocks-DNgcfS8X.js").then((m) => m.blocksViewCommand)],
36
+ ["blocks search", () => import("./blocks-DNgcfS8X.js").then((m) => m.blocksSearchCommand)],
37
+ ["powersync streams", () => import("./powersync-Bo16K2S6.js").then((m) => m.powersyncStreamsCommand)],
38
+ ["spec emit", () => import("./spec-CIQBAQgr.js").then((m) => m.specEmitCommand)],
39
+ ["spec validate", () => import("./spec-CIQBAQgr.js").then((m) => m.specValidateCommand)],
40
+ ["mcp", () => import("./mcp-CHpzdlOg.js").then((m) => m.mcpCommand)],
41
41
  ["skills list", () => import("./skills-FXAVPLzp.js").then((m) => m.skillsListCommand)],
42
42
  ["skills install", () => import("./skills-FXAVPLzp.js").then((m) => m.skillsInstallCommand)],
43
- ["codemod 0.4", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.4"))],
44
- ["codemod 0.5", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.5"))],
45
- ["codemod 0.6", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.6"))],
46
- ["codemod 0.9", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.9"))],
47
- ["codemod 0.11", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.11"))],
48
- ["codemod 0.15", () => import("./codemod-OHKhVV-v.js").then((m) => m.codemodCommand("0.15"))],
43
+ ["codemod 0.4", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.4"))],
44
+ ["codemod 0.5", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.5"))],
45
+ ["codemod 0.6", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.6"))],
46
+ ["codemod 0.9", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.9"))],
47
+ ["codemod 0.11", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.11"))],
48
+ ["codemod 0.15", () => import("./codemod-B621vQYQ.js").then((m) => m.codemodCommand("0.15"))],
49
49
  ["completion", () => import("./completion-BfnKI4QZ.js").then((m) => m.completionCommand)],
50
50
  ["config", () => import("./config-WKDixoGK.js").then((m) => m.configCommand)]
51
51
  ];
@@ -1,15 +1,15 @@
1
1
  import { r as errorText } from "./errors-BTe6A15O.js";
2
2
  import { a as sameText, t as display } from "./io-DH1kcmmP.js";
3
- import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-DE2IH1-C.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-CDNVq1vO.js";
4
4
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
5
- import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-BXmU3IXN.js";
6
- import { n as render } from "./render-BJF9ytUi.js";
7
- import { _ as unsafeKey, d as accessProviderMode, f as accessRequirements, g as providerLabel, h as moduleKeyProblems, m as entitlementsMode, p as entitlementRequirements, u as compiledReadSets } from "./migrations-BoIyGczt.js";
8
- import { s as schemaStampPath } from "./content-mapper-CaygHH_k.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-B12QpZNf.js";
6
+ import { n as render } from "./render-CVTKsacY.js";
7
+ import { _ as unsafeKey, d as accessProviderMode, f as accessRequirements, g as providerLabel, h as moduleKeyProblems, m as entitlementsMode, p as entitlementRequirements, u as compiledReadSets } from "./migrations-VmJloDtq.js";
8
+ import { s as schemaStampPath } from "./content-mapper-Chm3txER.js";
9
9
  import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-CX71yBm8.js";
10
- import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-D8QrNvt4.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-B38Chjgd.js";
12
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-DXvo0EqU.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DTczUfCt.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-FhGSrA9E.js";
12
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-D4lirR47.js";
13
13
  import { existsSync } from "node:fs";
14
14
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
15
15
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-irttnsEb.js";
1
+ import { a as toCatalog } from "./source-DP8KOgax.js";
2
2
  import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-CncmQbO0.js";
3
3
  //#region src/cli/doctor/shared.ts
4
4
  const catalogs = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
2
- import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-DE2IH1-C.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-CDNVq1vO.js";
3
3
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
4
- import { n as managementSource, r as pgSource } from "./source-irttnsEb.js";
4
+ import { n as managementSource, r as pgSource } from "./source-DP8KOgax.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-BJSqMi04.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
7
7
  import { t as connect } from "./db-CQCLx7cx.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-TgFM8sOd.js";
1
+ import { t as VERSION } from "./version-DmaGTP3L.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { r as redactUrl } from "./redact-KGAk2Ul9.js";
4
4
  import { n as HTTP_CHANNEL } from "./trace-VbdO6bcN.js";
@@ -1 +1 @@
1
- export { n as specEmitCommand, i as specValidateCommand } from "./spec-CDxfokey.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-D-NPgLTj.js";
@@ -1,9 +1,9 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
2
2
  import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
3
- import { t as VERSION } from "./version-TgFM8sOd.js";
3
+ import { t as VERSION } from "./version-DmaGTP3L.js";
4
4
  import { i as failedResult, n as CliError, r as errorText } from "./errors-BTe6A15O.js";
5
5
  import { t as display } from "./io-DH1kcmmP.js";
6
- import { c as writeAtomic, t as CACHE_DIR } from "./cache-DE2IH1-C.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-CDNVq1vO.js";
7
7
  import { t as isRecord } from "./guards-CUlDNYZs.js";
8
8
  import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
9
9
  import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";