better-supabase 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-DekyKNQ8.d.ts → app-tables-yyVncXEt.d.ts} +1 -1
  3. package/dist/{authorization-C7nuWMuB.d.ts → authorization-CDU9tYA_.d.ts} +14 -0
  4. package/dist/{bind-DmUGUsBd.d.ts → bind-p7asfI6H.d.ts} +1 -1
  5. package/dist/{block-env-DWtZsqhH.d.ts → block-env-B8wG3xeh.d.ts} +3 -3
  6. package/dist/blocks/ai-chat/index.d.ts +3 -3
  7. package/dist/blocks/announcements/index.d.ts +3 -3
  8. package/dist/blocks/api-keys/index.d.ts +1 -1
  9. package/dist/blocks/attachments/index.d.ts +1 -1
  10. package/dist/blocks/audit/index.d.ts +2 -2
  11. package/dist/blocks/automations/index.d.ts +1 -1
  12. package/dist/blocks/billing/index.d.ts +1 -1
  13. package/dist/blocks/bookings/index.d.ts +1 -1
  14. package/dist/blocks/calendar/index.d.ts +1 -1
  15. package/dist/blocks/calendar/index.js +1 -1
  16. package/dist/blocks/comments/index.d.ts +4 -4
  17. package/dist/blocks/entitlements/index.d.ts +2 -2
  18. package/dist/blocks/forms/index.d.ts +1 -1
  19. package/dist/blocks/inbox/index.d.ts +4 -4
  20. package/dist/blocks/index.d.ts +1 -1
  21. package/dist/blocks/messaging/index.d.ts +4 -4
  22. package/dist/blocks/mfa/index.d.ts +1 -1
  23. package/dist/blocks/notifications/index.d.ts +3 -3
  24. package/dist/blocks/onboarding/index.d.ts +1 -1
  25. package/dist/blocks/organizations/index.d.ts +2 -2
  26. package/dist/blocks/permissions/index.d.ts +1 -1
  27. package/dist/blocks/push/index.d.ts +1 -1
  28. package/dist/blocks/reactions/index.d.ts +3 -3
  29. package/dist/blocks/saved-views/index.d.ts +1 -1
  30. package/dist/blocks/search/index.d.ts +2 -2
  31. package/dist/blocks/sessions/index.d.ts +1 -1
  32. package/dist/blocks/settings/index.d.ts +1 -1
  33. package/dist/blocks/subjects/index.d.ts +1 -1
  34. package/dist/blocks/tags/index.d.ts +1 -1
  35. package/dist/blocks/undo/index.d.ts +1 -1
  36. package/dist/blocks/usage/index.d.ts +1 -1
  37. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  38. package/dist/blocks/workflows/index.d.ts +3 -3
  39. package/dist/cli/add-BdhGOwkB.js +1 -0
  40. package/dist/cli/{add-CrQ3jS7t.js → add-D4w-Axib.js} +9 -9
  41. package/dist/cli/{add-BKkV99g9.js → add-Dggyehsy.js} +2 -2
  42. package/dist/cli/{app-table-files-PnPOpuB4.js → app-table-files-CiGuwLkO.js} +2 -2
  43. package/dist/cli/{backfill-DDDLhinm.js → backfill-DjVjXW_P.js} +1 -1
  44. package/dist/cli/bin.js +1 -1
  45. package/dist/cli/{blocks-BCVcjvbm.js → blocks-Bbmb6W_F.js} +1 -1
  46. package/dist/cli/{blocks-tRfYx_mh.js → blocks-jRL9K1R8.js} +1 -1
  47. package/dist/cli/{cache-DQZ09YOg.js → cache-BuoIFlUJ.js} +1 -1
  48. package/dist/cli/{codemod-HKuwQmi_.js → codemod-DRavXBCb.js} +1 -1
  49. package/dist/cli/{content-mapper-B0ehR7K-.js → content-mapper-BCtyfKXl.js} +2 -2
  50. package/dist/cli/{doctor-CXJOhwLB.js → doctor-Di2ZekfN.js} +49 -16
  51. package/dist/cli/{env-BM242BCV.js → env-B2CbnbzD.js} +1 -1
  52. package/dist/cli/env-CynGCICL.js +1 -0
  53. package/dist/cli/{gen-B7rw4j19.js → gen-STKC9vkK.js} +12 -12
  54. package/dist/cli/index.d.ts +1 -1
  55. package/dist/cli/index.js +6 -6
  56. package/dist/cli/{init-C1bXXB_P.js → init-DW6_nIwj.js} +8 -8
  57. package/dist/cli/{live-PpAh9pAc.js → live-0G4Plw3K.js} +2 -2
  58. package/dist/cli/{mcp-BRNAchdH.js → mcp-flKS8iU5.js} +2 -2
  59. package/dist/cli/{metadata-dAAKb_kR.js → metadata-VARUbXEe.js} +3 -3
  60. package/dist/cli/{migrate-BWYXFnaW.js → migrate-Bkq07XcT.js} +1 -1
  61. package/dist/cli/{migration-safety-DGQswWZy.js → migration-safety-BfVeza5j.js} +1 -1
  62. package/dist/cli/{migrations-Cqk-lJwu.js → migrations-BCq7Zs2E.js} +2 -2
  63. package/dist/cli/{module-migration-8-hMiZtW.js → module-migration-lbeUrsYv.js} +2 -2
  64. package/dist/cli/{powersync-BWQ-8T3G.js → powersync-B15CfH5Y.js} +3 -3
  65. package/dist/cli/powersync-DnBsDchT.js +1 -0
  66. package/dist/cli/{print-DSTnq5xz.js → print-DjxpBRnv.js} +2 -2
  67. package/dist/cli/{providers-Cjf5iOp5.js → providers-dyxcHQY3.js} +1 -1
  68. package/dist/cli/{remove-CwG8cPv1.js → remove-BLq5gbal.js} +5 -5
  69. package/dist/cli/{render-B18iAdsT.js → render-CizUf3RW.js} +3 -3
  70. package/dist/cli/{run-CvPl8iQd.js → run-ChEjR7yw.js} +2 -2
  71. package/dist/cli/{run-Wx_2Acgv.js → run-ChOY6s4o.js} +8 -8
  72. package/dist/cli/{run-C2Yg5MWt.js → run-MwM__teL.js} +24 -24
  73. package/dist/cli/{shared-BHbtUOvh.js → shared-DV5wIv-7.js} +1 -1
  74. package/dist/cli/{snapshot-CXgsUPGj.js → snapshot-B5LXkVMC.js} +2 -2
  75. package/dist/cli/{source-B6aMAoEK.js → source-BoLNG_2A.js} +1 -1
  76. package/dist/cli/{spec-EO0TP84d.js → spec-D6QeE2Zx.js} +1 -1
  77. package/dist/cli/{spec-BcYic005.js → spec-Dz-PGCaM.js} +2 -2
  78. package/dist/cli/{sql-layout-CkxDNVEH.js → sql-layout-zo02f3Dm.js} +2 -2
  79. package/dist/cli/{stack-env-6hS-WEmh.js → stack-env-3ziggrU3.js} +1 -1
  80. package/dist/cli/{sync-pq6gmlhG.js → sync-m-oZ_SyI.js} +4 -4
  81. package/dist/cli/{upgrade-Dp9p7A69.js → upgrade-C9sgVZ5z.js} +5 -5
  82. package/dist/cli/{upgrade-BoHb4h9P.js → upgrade-WwEJaX3i.js} +2 -2
  83. package/dist/cli/{version-CQHFm-ak.js → version-D2BQuqta.js} +1 -1
  84. package/dist/client/index.d.ts +5 -5
  85. package/dist/client/native/index.d.ts +4 -4
  86. package/dist/config/index.d.ts +2 -2
  87. package/dist/{context-B4TsE2gY.d.ts → context-nbYYjv7U.d.ts} +13 -1
  88. package/dist/{controller-CtwAsnVV.d.ts → controller-TRocodqG.d.ts} +1 -1
  89. package/dist/create/index.d.ts +3 -3
  90. package/dist/create/index.js +1 -1
  91. package/dist/create/lite/index.d.ts +3 -3
  92. package/dist/create/lite/index.js +1 -1
  93. package/dist/{entitlements-Bw3eYGKJ.d.ts → entitlements-B1i1-wfe.d.ts} +1 -1
  94. package/dist/{field-errors-DkzFduux.d.ts → field-errors-tJvehEFc.d.ts} +4 -4
  95. package/dist/{index-CBQT_nXf.d.ts → index-8US7qlvW.d.ts} +2 -2
  96. package/dist/{index-BNgpz_BV.d.ts → index-BKrxynq9.d.ts} +2 -2
  97. package/dist/{index-CB66nl14.d.ts → index-BkzXwuIN.d.ts} +1 -1
  98. package/dist/{index-BxckmAFc.d.ts → index-CWAQRWY8.d.ts} +2 -2
  99. package/dist/{index-Cw5gGSP8.d.ts → index-zsgNmE8m.d.ts} +6 -6
  100. package/dist/mapper/bin.js +5 -5
  101. package/dist/mcp/index.d.ts +1 -1
  102. package/dist/next/index.d.ts +86 -11
  103. package/dist/next/index.js +189 -49
  104. package/dist/{operations-CqmQrTKw.d.ts → operations-CB9atU2e.d.ts} +1 -1
  105. package/dist/{options-C4LuqmdG.js → options-BKBy5wM_.js} +2 -1
  106. package/dist/otel/index.js +4 -4
  107. package/dist/{ports-6LBgr1Aa.d.ts → ports-hpbyMySO.d.ts} +1 -1
  108. package/dist/powersync/index.d.ts +2 -2
  109. package/dist/preset/index.d.ts +3 -3
  110. package/dist/{project-C4NA_van.js → project-B32wb5J6.js} +1 -1
  111. package/dist/{push-token-BXsrJ7W9.d.ts → push-token-DQ1ycFPU.d.ts} +1 -1
  112. package/dist/react/index.d.ts +5 -5
  113. package/dist/react/native/index.d.ts +1 -1
  114. package/dist/react/server.d.ts +5 -5
  115. package/dist/realtime/index.d.ts +3 -3
  116. package/dist/records/index.d.ts +3 -3
  117. package/dist/server/index.d.ts +3 -3
  118. package/dist/server/index.js +1 -1
  119. package/dist/sign-in-BzihC_8k.d.ts +50 -0
  120. package/dist/{sign-in-NO7LWlw4.js → sign-in-Cyj3ZlFX.js} +120 -25
  121. package/dist/solid/index.d.ts +5 -5
  122. package/dist/sql/index.d.ts +4 -4
  123. package/dist/sql/index.js +2 -2
  124. package/dist/{sql-CoBySj2F.js → sql-CyeDg3Yh.js} +279 -171
  125. package/dist/ssr/index.d.ts +1 -1
  126. package/dist/svelte/index.d.ts +5 -5
  127. package/dist/{tenant-Ded341Qz.d.ts → tenant-C9YE_kqK.d.ts} +1 -1
  128. package/dist/testing/index.d.ts +3 -3
  129. package/dist/{topic-XDdKzlrn.d.ts → topic-breZqx_4.d.ts} +1 -1
  130. package/dist/{types-BFwB-E1j.d.ts → types-C3I7S51U.d.ts} +2 -2
  131. package/dist/vue/index.d.ts +5 -5
  132. package/dist/{watch-topic-DpN_GEoS.d.ts → watch-topic-ItO3dz8m.d.ts} +1 -1
  133. package/dist/workflow-sdk/world/index.js +1 -1
  134. package/dist/{workflow-sdk-CaEw822d.js → workflow-sdk-BWPsdzVK.js} +36 -8
  135. package/dist/yjs/index.d.ts +1 -1
  136. package/package.json +1 -1
  137. package/schemas/config-v1.json +2 -1
  138. package/schemas/doctor-report-v1.json +1 -0
  139. package/skills/better-supabase-auth/SKILL.md +8 -1
  140. package/dist/cli/add-CwhrRJz5.js +0 -1
  141. package/dist/cli/env-uqfUbUzk.js +0 -1
  142. package/dist/cli/powersync-CbYxLsjv.js +0 -1
  143. package/dist/sign-in-CfwJAJJL.d.ts +0 -24
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-CQHFm-ak.js";
1
+ import { t as VERSION } from "./version-D2BQuqta.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
4
4
  import { t as migrateCliCall } from "./moved-DNOtp9LA.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-CkxDNVEH.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-zo02f3Dm.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
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";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-DH1kcmmP.js";
2
- import { t as CACHE_DIR } from "./cache-DQZ09YOg.js";
3
- import { x as installedVersion } from "./snapshot-CXgsUPGj.js";
2
+ import { t as CACHE_DIR } from "./cache-BuoIFlUJ.js";
3
+ import { x as installedVersion } from "./snapshot-B5LXkVMC.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, m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-CQHFm-ak.js";
3
+ import { t as VERSION } from "./version-D2BQuqta.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-DQZ09YOg.js";
7
+ import { t as CACHE_DIR } from "./cache-BuoIFlUJ.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-CXgsUPGj.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-B18iAdsT.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-B5LXkVMC.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CizUf3RW.js";
11
11
  import { t as isRecord } from "./guards-CUlDNYZs.js";
12
- import { i as request } from "./source-B6aMAoEK.js";
12
+ import { i as request } from "./source-BoLNG_2A.js";
13
13
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-Cskysxp-.js";
14
- import { a as compiledReadSets, d as providerLabel } from "./providers-Cjf5iOp5.js";
14
+ import { a as compiledReadSets, d as providerLabel } from "./providers-dyxcHQY3.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-BK0xKMeU.js";
17
17
  import { n as readStackStatus } from "./stack-status-BkkYRlXG.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-B0ehR7K-.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-BCtyfKXl.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-Wx_2Acgv.js";
22
- import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-CkxDNVEH.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-BHbtUOvh.js";
24
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-8-hMiZtW.js";
25
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-DGQswWZy.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-ChOY6s4o.js";
22
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-zo02f3Dm.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-DV5wIv-7.js";
24
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-lbeUrsYv.js";
25
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-BfVeza5j.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-PpAh9pAc.js";
27
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-0G4Plw3K.js";
28
28
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-v8ljFDfc.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-Cp-tVPj2.js";
31
- import { i as staleVariables, r as stackEnvValues, t as PREFIX_NAMES } from "./stack-env-6hS-WEmh.js";
31
+ import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-3ziggrU3.js";
32
32
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-CiDBH1dB.js";
33
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-dAAKb_kR.js";
33
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-VARUbXEe.js";
34
34
  import { existsSync } from "node:fs";
35
35
  import { dirname, resolve } from "node:path";
36
36
  import { createHash } from "node:crypto";
@@ -46,6 +46,16 @@ const PUBLIC_PREFIXES = [
46
46
  "EXPO_PUBLIC_",
47
47
  "NUXT_PUBLIC_"
48
48
  ];
49
+ /** `SUPABASE_URL`, plain or with a browser prefix. */
50
+ const URL_VARIABLE = new RegExp(`^(?:${PUBLIC_PREFIXES.join("|")})?SUPABASE_URL$`);
51
+ /** The URL without a trailing slash, `null` for a value that isn't one. */
52
+ function normalizedUrl(value) {
53
+ try {
54
+ return new URL(value).href.replace(/\/+$/, "");
55
+ } catch {
56
+ return null;
57
+ }
58
+ }
49
59
  function envEntries(file) {
50
60
  return file.text.split("\n").flatMap((raw, index) => {
51
61
  const match = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/.exec(raw);
@@ -89,7 +99,10 @@ async function loadStackEnvCheck(root, env, signal) {
89
99
  return { skipped: errorText(cause) };
90
100
  }
91
101
  }
92
- /** Checks on env files and the variables the shell exports (BS501 to BS503). */
102
+ /**
103
+ * Checks on env files and the variables the shell exports (BS501 to BS503 and
104
+ * BS506).
105
+ */
93
106
  const ENV_RULES = [
94
107
  {
95
108
  code: "BS501",
@@ -139,6 +152,26 @@ const ENV_RULES = [
139
152
  target: stale.variable,
140
153
  message: `${stale.message} Unset it or start the app with better-supabase dev run -- <cmd>.`
141
154
  }))
155
+ },
156
+ {
157
+ code: "BS506",
158
+ severity: "warning",
159
+ title: "Server and browser Supabase URLs differ",
160
+ description: "The session cookie name comes from the project URL. When SUPABASE_URL and a browser-prefixed spelling such as NEXT_PUBLIC_SUPABASE_URL point at different URLs, the server and the browser client read different cookies, and a sign-in on one side is invisible to the other. Use one URL, or set auth.cookie.name on both clients when the split is intended (a custom domain in the browser, the project URL on the server).",
161
+ check: (context) => context.envFiles.flatMap((file) => {
162
+ const urls = envEntries(file).filter((entry) => URL_VARIABLE.test(entry.key) && entry.value !== "");
163
+ const [server] = urls;
164
+ if (!server) return [];
165
+ const expected = normalizedUrl(server.value);
166
+ return urls.filter((entry) => expected !== null && normalizedUrl(entry.value) !== null && normalizedUrl(entry.value) !== expected).map((entry) => ({
167
+ message: `${entry.key} in ${file.path} (${redactValue(entry.value)}) differs from ${server.key} (${redactValue(server.value)}). The server and the browser then read different session cookies. Use one URL, or set auth.cookie.name on both clients.`,
168
+ target: `${file.path}:${entry.key}`,
169
+ location: {
170
+ file: file.path,
171
+ line: entry.line
172
+ }
173
+ }));
174
+ })
142
175
  }
143
176
  ];
144
177
  //#endregion
@@ -4,7 +4,7 @@ import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
4
4
  import { n as readStackStatus, t as parseStackStatus } from "./stack-status-BkkYRlXG.js";
5
5
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
6
6
  import { r as publicPrefix, t as detectProject } from "./detect-D9JaAX20.js";
7
- import { n as prefixFromFlag, r as stackEnvValues } from "./stack-env-6hS-WEmh.js";
7
+ import { i as stackEnvValues, n as prefixFromFlag } from "./stack-env-3ziggrU3.js";
8
8
  import { existsSync } from "node:fs";
9
9
  import { resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
@@ -0,0 +1 @@
1
+ export { n as envCommand } from "./env-B2CbnbzD.js";
@@ -1,22 +1,22 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.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-DQZ09YOg.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-CXgsUPGj.js";
4
+ import { u as catalogFingerprint } from "./cache-BuoIFlUJ.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-B5LXkVMC.js";
6
6
  import { d as GEN_TASKS, p as isGenTask } from "./config-Cskysxp-.js";
7
7
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
8
- import { n as runGen } from "./run-Wx_2Acgv.js";
9
- import { n as dataMigration } from "./migrations-Cqk-lJwu.js";
10
- import { t as syncModules } from "./sync-pq6gmlhG.js";
11
- import { t as addModules } from "./add-BKkV99g9.js";
12
- import { n as listModules, t as printModule } from "./print-DSTnq5xz.js";
8
+ import { n as runGen } from "./run-ChOY6s4o.js";
9
+ import { n as dataMigration } from "./migrations-BCq7Zs2E.js";
10
+ import { t as syncModules } from "./sync-m-oZ_SyI.js";
11
+ import { t as addModules } from "./add-Dggyehsy.js";
12
+ import { n as listModules, t as printModule } from "./print-DjxpBRnv.js";
13
13
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-v8ljFDfc.js";
14
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-dAAKb_kR.js";
15
- import { a as runEnv } from "./env-BM242BCV.js";
16
- import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BcYic005.js";
17
- import { n as runPowerSync } from "./powersync-BWQ-8T3G.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-VARUbXEe.js";
15
+ import { a as runEnv } from "./env-B2CbnbzD.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-Dz-PGCaM.js";
17
+ import { n as runPowerSync } from "./powersync-B15CfH5Y.js";
18
18
  import { t as runSeed } from "./seed-CDnL4Tnc.js";
19
- import { t as upgrade } from "./upgrade-Dp9p7A69.js";
19
+ import { t as upgrade } from "./upgrade-C9sgVZ5z.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  //#region src/cli/commands/sql.ts
@@ -804,6 +804,6 @@ export declare function loadConfig(cwd: string, explicit?: string, environment?:
804
804
  }): Promise<ResolvedConfig>;
805
805
  //#endregion
806
806
  //#region src/cli/version.d.ts
807
- export declare const VERSION = "0.29.0";
807
+ export declare const VERSION = "0.30.0";
808
808
  //#endregion
809
809
  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-DIPmo0wh.js";
2
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-C2Yg5MWt.js";
3
- import { t as VERSION } from "./version-CQHFm-ak.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-MwM__teL.js";
3
+ import { t as VERSION } from "./version-D2BQuqta.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-CXgsUPGj.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-B18iAdsT.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-B6aMAoEK.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-B5LXkVMC.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-CizUf3RW.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BoLNG_2A.js";
8
8
  import { s as loadConfig } from "./config-Cskysxp-.js";
9
- import { n as runGen } from "./run-Wx_2Acgv.js";
9
+ import { n as runGen } from "./run-ChOY6s4o.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,17 +2,17 @@ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-DI
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-DQZ09YOg.js";
6
- import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-CXgsUPGj.js";
7
- import { a as toCatalog } from "./source-B6aMAoEK.js";
5
+ import { l as TYPEGEN_VERSION } from "./cache-BuoIFlUJ.js";
6
+ import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-B5LXkVMC.js";
7
+ import { a as toCatalog } from "./source-BoLNG_2A.js";
8
8
  import { a as findConfig, s as loadConfig } from "./config-Cskysxp-.js";
9
- import { r as contentMapperFiles } from "./content-mapper-B0ehR7K-.js";
9
+ import { r as contentMapperFiles } from "./content-mapper-BCtyfKXl.js";
10
10
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
11
- import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-CrQ3jS7t.js";
12
- import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-DGQswWZy.js";
11
+ import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-D4w-Axib.js";
12
+ import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-BfVeza5j.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
14
- import { s as enablePgDelta, t as syncModules } from "./sync-pq6gmlhG.js";
15
- import { t as appTablePlan } from "./app-table-files-PnPOpuB4.js";
14
+ import { s as enablePgDelta, t as syncModules } from "./sync-m-oZ_SyI.js";
15
+ import { t as appTablePlan } from "./app-table-files-CiGuwLkO.js";
16
16
  import { existsSync } from "node:fs";
17
17
  import { join, posix, resolve } from "node:path";
18
18
  import { glob, readFile, readdir } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-BTe6A15O.js";
2
- import "./source-B6aMAoEK.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-BHbtUOvh.js";
2
+ import "./source-BoLNG_2A.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-DV5wIv-7.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 { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
- import { a as envelope, i as run } from "./run-C2Yg5MWt.js";
3
- import { t as VERSION } from "./version-CQHFm-ak.js";
2
+ import { a as envelope, i as run } from "./run-MwM__teL.js";
3
+ import { t as VERSION } from "./version-D2BQuqta.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, t as PROCESS_ENV, x as object } from "./env-BK0xKMeU.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-CXgsUPGj.js";
4
- import { c as metaPaths, n as render } from "./render-B18iAdsT.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-Wx_2Acgv.js";
3
+ import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-B5LXkVMC.js";
4
+ import { c as metaPaths, n as render } from "./render-CizUf3RW.js";
5
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-ChOY6s4o.js";
6
6
  import { basename, join, relative, resolve, sep } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
2
  import { i as plain } from "./style-Bm2X5JrN.js";
3
3
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
4
- import { t as appTablePlan } from "./app-table-files-PnPOpuB4.js";
4
+ import { t as appTablePlan } from "./app-table-files-CiGuwLkO.js";
5
5
  //#region src/cli/commands/migrate.ts
6
6
  const MIGRATE_ARGS = {};
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { f as INTEGRATIONS } from "./config-Cskysxp-.js";
2
- import { c as splitStatements } from "./shared-BHbtUOvh.js";
2
+ import { c as splitStatements } from "./shared-DV5wIv-7.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
@@ -1,7 +1,7 @@
1
- import { r as layoutFor } from "./providers-Cjf5iOp5.js";
1
+ import { r as layoutFor } from "./providers-dyxcHQY3.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-CkxDNVEH.js";
4
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions, renderBlocks } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
2
2
  import { i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CkxDNVEH.js";
4
- import { i as stampAfter } from "./migrations-Cqk-lJwu.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
4
+ import { i as stampAfter } from "./migrations-BCq7Zs2E.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";
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
- import { r as layoutFor } from "./providers-Cjf5iOp5.js";
2
+ import { r as layoutFor } from "./providers-dyxcHQY3.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-CkxDNVEH.js";
5
- import { i as stampAfter } from "./migrations-Cqk-lJwu.js";
4
+ import { n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
5
+ import { i as stampAfter } from "./migrations-BCq7Zs2E.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join, resolve } from "node:path";
8
8
  import { readFile, readdir } from "node:fs/promises";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-B15CfH5Y.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
- import { n as layout } from "./providers-Cjf5iOp5.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-8-hMiZtW.js";
2
+ import { n as layout } from "./providers-dyxcHQY3.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-lbeUrsYv.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,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
2
  import { t as importFresh } from "./fresh-import-DzgsGHkX.js";
3
- import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-CkxDNVEH.js";
3
+ import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-zo02f3Dm.js";
4
4
  import { resolve } from "node:path";
5
5
  import { MODULE_ID_TYPES, compileReadSets, moduleIdType, moduleLayout, modulePermissionKeys, resolveBlocks, scopeProblems, templateFunctions } from "better-supabase/sql";
6
6
  import { isReadSet } from "better-supabase";
@@ -2,15 +2,15 @@ import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.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 { r as layoutFor } from "./providers-Cjf5iOp5.js";
5
+ import { r as layoutFor } from "./providers-dyxcHQY3.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-CkxDNVEH.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-CrQ3jS7t.js";
7
+ import { a as sqlPlan } from "./sql-layout-zo02f3Dm.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-D4w-Axib.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-pq6gmlhG.js";
11
+ import { n as guardedRemoval } from "./sync-m-oZ_SyI.js";
12
12
  import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
13
- import { t as blockNames } from "./blocks-tRfYx_mh.js";
13
+ import { t as blockNames } from "./blocks-jRL9K1R8.js";
14
14
  import { i as tidyInline, t as cutRange } from "./config-group-CP-B9uRt.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-DQZ09YOg.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-BuoIFlUJ.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-CXgsUPGj.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-B5LXkVMC.js";
6
6
  import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
7
- import { a as toCatalog } from "./source-B6aMAoEK.js";
7
+ import { a as toCatalog } from "./source-BoLNG_2A.js";
8
8
  import { m as withTableTags } from "./config-Cskysxp-.js";
9
9
  import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
10
10
  import { entityNames } from "better-supabase/blocks";
@@ -2,8 +2,8 @@ import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
2
2
  import { n as CliError } from "./errors-BTe6A15O.js";
3
3
  import { t as PROCESS_ENV } from "./env-BK0xKMeU.js";
4
4
  import { n as spawnInherited } from "./exec-Ca5s-ygi.js";
5
- import { i as staleVariables } from "./stack-env-6hS-WEmh.js";
6
- import { i as readStackEnv } from "./env-BM242BCV.js";
5
+ import { a as staleVariables } from "./stack-env-3ziggrU3.js";
6
+ import { i as readStackEnv } from "./env-B2CbnbzD.js";
7
7
  //#region src/cli/commands/run.ts
8
8
  const ARGS = {
9
9
  prefix: {
@@ -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-DQZ09YOg.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-BuoIFlUJ.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-CXgsUPGj.js";
6
- import { n as render } from "./render-B18iAdsT.js";
7
- import { a as compiledReadSets, c as entitlementRequirements, d as providerLabel, f as unsafeKey, l as entitlementsMode, o as accessProviderMode, s as accessRequirements, u as moduleKeyProblems } from "./providers-Cjf5iOp5.js";
8
- import { s as schemaStampPath } from "./content-mapper-B0ehR7K-.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-B5LXkVMC.js";
6
+ import { n as render } from "./render-CizUf3RW.js";
7
+ import { a as compiledReadSets, c as entitlementRequirements, d as providerLabel, f as unsafeKey, l as entitlementsMode, o as accessProviderMode, s as accessRequirements, u as moduleKeyProblems } from "./providers-dyxcHQY3.js";
8
+ import { s as schemaStampPath } from "./content-mapper-BCtyfKXl.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-CkxDNVEH.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-BHbtUOvh.js";
12
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-8-hMiZtW.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-zo02f3Dm.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-DV5wIv-7.js";
12
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-lbeUrsYv.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,6 +1,6 @@
1
1
  import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-DIPmo0wh.js";
2
2
  import { n as highlight, r as painter } from "./style-Bm2X5JrN.js";
3
- import { t as VERSION } from "./version-CQHFm-ak.js";
3
+ import { t as VERSION } from "./version-D2BQuqta.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-BPf3kGnc.js";
@@ -16,38 +16,38 @@ 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-C1bXXB_P.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-CwhrRJz5.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-CwG8cPv1.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-BoHb4h9P.js").then((m) => m.upgradeCommand)],
19
+ ["init", () => import("./init-DW6_nIwj.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-BdhGOwkB.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-BLq5gbal.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-WwEJaX3i.js").then((m) => m.upgradeCommand)],
23
23
  ["table", () => import("./table-dyKddjwo.js").then((m) => m.tableCommand)],
24
- ["migrate schema-first", () => import("./migrate-BWYXFnaW.js").then((m) => m.migrateSchemaFirstCommand)],
25
- ["gen", () => import("./gen-B7rw4j19.js").then((m) => m.genCommand)],
26
- ["doctor", () => import("./doctor-CXJOhwLB.js").then((m) => m.doctorCommand)],
24
+ ["migrate schema-first", () => import("./migrate-Bkq07XcT.js").then((m) => m.migrateSchemaFirstCommand)],
25
+ ["gen", () => import("./gen-STKC9vkK.js").then((m) => m.genCommand)],
26
+ ["doctor", () => import("./doctor-Di2ZekfN.js").then((m) => m.doctorCommand)],
27
27
  ["db query", () => import("./db-CWvH1_46.js").then((m) => m.dbQueryCommand)],
28
28
  ["db diff", () => import("./db-CWvH1_46.js").then((m) => m.dbDiffCommand)],
29
29
  ["db seed", () => import("./seed-BOun22-k.js").then((m) => m.seedCommand)],
30
- ["db backfill", () => import("./backfill-DDDLhinm.js").then((m) => m.dbBackfillCommand)],
31
- ["dev env", () => import("./env-uqfUbUzk.js").then((m) => m.envCommand)],
32
- ["dev run", () => import("./run-CvPl8iQd.js").then((m) => m.runCommand)],
30
+ ["db backfill", () => import("./backfill-DjVjXW_P.js").then((m) => m.dbBackfillCommand)],
31
+ ["dev env", () => import("./env-CynGCICL.js").then((m) => m.envCommand)],
32
+ ["dev run", () => import("./run-ChEjR7yw.js").then((m) => m.runCommand)],
33
33
  ["dev keys", () => import("./keys-V-HcO-21.js").then((m) => m.keysCommand)],
34
34
  ["dev stack ls", () => import("./stack-ClESAZYf.js").then((m) => m.stackLsCommand)],
35
35
  ["dev stack prune", () => import("./stack-ClESAZYf.js").then((m) => m.stackPruneCommand)],
36
- ["blocks list", () => import("./blocks-BCVcjvbm.js").then((m) => m.blocksListCommand)],
37
- ["blocks view", () => import("./blocks-BCVcjvbm.js").then((m) => m.blocksViewCommand)],
38
- ["blocks search", () => import("./blocks-BCVcjvbm.js").then((m) => m.blocksSearchCommand)],
39
- ["powersync streams", () => import("./powersync-CbYxLsjv.js").then((m) => m.powersyncStreamsCommand)],
40
- ["spec emit", () => import("./spec-EO0TP84d.js").then((m) => m.specEmitCommand)],
41
- ["spec validate", () => import("./spec-EO0TP84d.js").then((m) => m.specValidateCommand)],
42
- ["mcp", () => import("./mcp-BRNAchdH.js").then((m) => m.mcpCommand)],
36
+ ["blocks list", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksListCommand)],
37
+ ["blocks view", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksViewCommand)],
38
+ ["blocks search", () => import("./blocks-Bbmb6W_F.js").then((m) => m.blocksSearchCommand)],
39
+ ["powersync streams", () => import("./powersync-DnBsDchT.js").then((m) => m.powersyncStreamsCommand)],
40
+ ["spec emit", () => import("./spec-D6QeE2Zx.js").then((m) => m.specEmitCommand)],
41
+ ["spec validate", () => import("./spec-D6QeE2Zx.js").then((m) => m.specValidateCommand)],
42
+ ["mcp", () => import("./mcp-flKS8iU5.js").then((m) => m.mcpCommand)],
43
43
  ["skills list", () => import("./skills-DM3oeIxY.js").then((m) => m.skillsListCommand)],
44
44
  ["skills install", () => import("./skills-DM3oeIxY.js").then((m) => m.skillsInstallCommand)],
45
- ["codemod 0.4", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.4"))],
46
- ["codemod 0.5", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.5"))],
47
- ["codemod 0.6", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.6"))],
48
- ["codemod 0.9", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.9"))],
49
- ["codemod 0.11", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.11"))],
50
- ["codemod 0.15", () => import("./codemod-HKuwQmi_.js").then((m) => m.codemodCommand("0.15"))],
45
+ ["codemod 0.4", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.4"))],
46
+ ["codemod 0.5", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.5"))],
47
+ ["codemod 0.6", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.6"))],
48
+ ["codemod 0.9", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.9"))],
49
+ ["codemod 0.11", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.11"))],
50
+ ["codemod 0.15", () => import("./codemod-DRavXBCb.js").then((m) => m.codemodCommand("0.15"))],
51
51
  ["completion", () => import("./completion-FUgqm2-N.js").then((m) => m.completionCommand)],
52
52
  ["config", () => import("./config-BfapErxs.js").then((m) => m.configCommand)]
53
53
  ];
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-B6aMAoEK.js";
1
+ import { a as toCatalog } from "./source-BoLNG_2A.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-DQZ09YOg.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-BuoIFlUJ.js";
3
3
  import { t as byCodePoint } from "./compare-BmIWVEui.js";
4
- import { n as managementSource, r as pgSource } from "./source-B6aMAoEK.js";
4
+ import { n as managementSource, r as pgSource } from "./source-BoLNG_2A.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-Cskysxp-.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-CQHFm-ak.js";
1
+ import { t as VERSION } from "./version-D2BQuqta.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-BcYic005.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-Dz-PGCaM.js";
@@ -1,9 +1,9 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
2
2
  import { m as commandMeta, r as defineCliCommand } from "./command-DIPmo0wh.js";
3
- import { t as VERSION } from "./version-CQHFm-ak.js";
3
+ import { t as VERSION } from "./version-D2BQuqta.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-DQZ09YOg.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-BuoIFlUJ.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";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CXgsUPGj.js";
2
- import { a as toCatalog } from "./source-B6aMAoEK.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-B5LXkVMC.js";
2
+ import { a as toCatalog } from "./source-BoLNG_2A.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -90,4 +90,4 @@ function staleVariables(shell, values) {
90
90
  });
91
91
  }
92
92
  //#endregion
93
- export { staleVariables as i, prefixFromFlag as n, stackEnvValues as r, PREFIX_NAMES as t };
93
+ export { staleVariables as a, stackEnvValues as i, prefixFromFlag as n, redactValue as r, PREFIX_NAMES as t };
@@ -1,11 +1,11 @@
1
1
  import { n as CliError } from "./errors-BTe6A15O.js";
2
2
  import { t as display } from "./io-DH1kcmmP.js";
3
- import { r as layoutFor } from "./providers-Cjf5iOp5.js";
3
+ import { r as layoutFor } from "./providers-dyxcHQY3.js";
4
4
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-CncmQbO0.js";
5
5
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-CX71yBm8.js";
6
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CkxDNVEH.js";
7
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-Cqk-lJwu.js";
8
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-8-hMiZtW.js";
6
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-zo02f3Dm.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-BCq7Zs2E.js";
8
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-lbeUrsYv.js";
9
9
  import { t as loadTopics } from "./topics-BpdnYmWb.js";
10
10
  import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
11
11
  import { dirname, join, resolve } from "node:path";