@akal/supaforge 0.0.41 → 0.0.43

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 (33) hide show
  1. package/README.md +1 -1
  2. package/bin/run.js +8 -0
  3. package/dist/base-command.js +2 -2
  4. package/dist/{chunk-SDTV4G66.js → chunk-45UBDKAH.js} +2 -2
  5. package/dist/{chunk-5Y743EVJ.js → chunk-4PO4VB4C.js} +6 -6
  6. package/dist/{chunk-OXS42LJH.js → chunk-CKH6J7DI.js} +2 -2
  7. package/dist/{chunk-JCZYFP5N.js → chunk-DTLEH6LL.js} +2 -2
  8. package/dist/{chunk-7WESFKKX.js → chunk-F2NXGOF3.js} +8 -8
  9. package/dist/{chunk-URUJINKJ.js → chunk-FGHBEOUV.js} +5 -5
  10. package/dist/{chunk-LVQNNASY.js → chunk-GUNQ5FFO.js} +5 -5
  11. package/dist/{chunk-4CIDCZVO.js → chunk-HP4IDUCN.js} +6 -6
  12. package/dist/{chunk-AL6INEFX.js → chunk-HWRRFF55.js} +2 -2
  13. package/dist/{chunk-EWNZIRCD.js → chunk-KPU6G6BO.js} +3 -3
  14. package/dist/{chunk-CEKRRFFL.js → chunk-KTATU64Y.js} +4 -4
  15. package/dist/{chunk-7ERV7MP3.js → chunk-L72FDQ3K.js} +33 -5
  16. package/dist/{chunk-JUZ7PSAH.js → chunk-M2OYKG65.js} +9 -4
  17. package/dist/{chunk-KT7NMELZ.js → chunk-RC7ZU7OV.js} +3 -1
  18. package/dist/{chunk-Z2YUOA4W.js → chunk-USIOUMYL.js} +17 -2
  19. package/dist/{chunk-5UHIWFQG.js → chunk-ZLNP3DUB.js} +21 -3
  20. package/dist/commands/clone.js +5 -5
  21. package/dist/commands/diff.js +9 -9
  22. package/dist/commands/hukam.js +9 -9
  23. package/dist/commands/mcp.js +8 -8
  24. package/dist/commands/migrate/baseline.js +3 -3
  25. package/dist/commands/migrate/create.js +8 -8
  26. package/dist/commands/migrate/list.js +3 -3
  27. package/dist/commands/migrate/run.js +7 -7
  28. package/dist/commands/report.js +2 -2
  29. package/dist/commands/restore.js +8 -8
  30. package/dist/commands/snapshot.js +5 -5
  31. package/dist/commands/sync.js +9 -9
  32. package/dist/index.js +13 -13
  33. package/package.json +9 -5
package/README.md CHANGED
@@ -48,7 +48,7 @@ Everything that writes previews first. Add `--apply` to make it happen.
48
48
  | VS Code and its forks | The SupaForge extension: commands, and the MCP server for the editor's agent. Each [release](https://github.com/akalsoftware/supaforge/releases/latest) carries it as a `.vsix` |
49
49
  | Cursor, VS Code, Claude | One-click installs of the MCP server — see [MCP](#mcp-ai-agents) |
50
50
 
51
- It needs Node.js 20 or newer. DBDiff, its diff engine, comes with it as a
51
+ It needs Node.js 22 or newer. DBDiff, its diff engine, comes with it as a
52
52
  native binary for your platform, so there is nothing else to install. The
53
53
  Docker image needs nothing at all, and carries the PostgreSQL client tools
54
54
  `--prove` uses; pass connection strings with `-e`, and mount the project at
package/bin/run.js CHANGED
@@ -8,6 +8,14 @@ import {execute, settings} from '@oclif/core'
8
8
  // not find it. A checkout keeps the lookup, which its tests rely on.
9
9
  if (!existsSync(new URL('../src', import.meta.url))) settings.enableAutoTranspile = false
10
10
 
11
+ // A reader that stops early (supaforge --help | head) closes stdout. oclif
12
+ // then waits for a drain that never comes and Node exits 13 with a warning;
13
+ // there is nothing left to write to, so finish as a completed run would.
14
+ process.stdout.on('error', (err) => {
15
+ if (err?.code === 'EPIPE') process.exit(process.exitCode ?? 0)
16
+ throw err
17
+ })
18
+
11
19
  await execute({dir: import.meta.url}).catch((err) => {
12
20
  // oclif handles CLIError internally — this catches truly unexpected errors.
13
21
  if (err && typeof err === 'object' && 'oclif' in err) return
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "./chunk-OXS42LJH.js";
4
- import "./chunk-KT7NMELZ.js";
3
+ } from "./chunk-CKH6J7DI.js";
4
+ import "./chunk-RC7ZU7OV.js";
5
5
  import "./chunk-KHXEES2M.js";
6
6
  import "./chunk-SQ52YBKK.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CHECK_META,
3
3
  isComparisonCheck
4
- } from "./chunk-JUZ7PSAH.js";
4
+ } from "./chunk-M2OYKG65.js";
5
5
  import {
6
6
  CHECK_LINE_PADDING,
7
7
  bold,
@@ -241,4 +241,4 @@ export {
241
241
  renderDetailed,
242
242
  formatSkips
243
243
  };
244
- //# sourceMappingURL=chunk-SDTV4G66.js.map
244
+ //# sourceMappingURL=chunk-45UBDKAH.js.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  migrationsDir,
3
3
  writeMigrationFile
4
- } from "./chunk-URUJINKJ.js";
4
+ } from "./chunk-FGHBEOUV.js";
5
5
  import {
6
6
  createDefaultRegistry,
7
7
  proveBeforeApply,
8
8
  scan
9
- } from "./chunk-7ERV7MP3.js";
9
+ } from "./chunk-L72FDQ3K.js";
10
10
  import {
11
11
  CHECK_NAMES,
12
12
  promote
13
- } from "./chunk-JUZ7PSAH.js";
13
+ } from "./chunk-M2OYKG65.js";
14
14
  import {
15
15
  captureSnapshot,
16
16
  unrestorableSchema
17
- } from "./chunk-5UHIWFQG.js";
17
+ } from "./chunk-ZLNP3DUB.js";
18
18
  import {
19
19
  checkConnection
20
- } from "./chunk-KT7NMELZ.js";
20
+ } from "./chunk-RC7ZU7OV.js";
21
21
  import {
22
22
  describeFailure,
23
23
  redactUrls,
@@ -530,4 +530,4 @@ export {
530
530
  clearLastScanResult,
531
531
  createServer
532
532
  };
533
- //# sourceMappingURL=chunk-5Y743EVJ.js.map
533
+ //# sourceMappingURL=chunk-4PO4VB4C.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_MIGRATIONS_DIR,
3
3
  Preflight
4
- } from "./chunk-KT7NMELZ.js";
4
+ } from "./chunk-RC7ZU7OV.js";
5
5
  import {
6
6
  installProcessGuard,
7
7
  noteJsonWritten
@@ -211,4 +211,4 @@ export {
211
211
  readRunLog,
212
212
  BaseCommand
213
213
  };
214
- //# sourceMappingURL=chunk-OXS42LJH.js.map
214
+ //# sourceMappingURL=chunk-CKH6J7DI.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  comparedSchemas,
3
3
  fingerprint
4
- } from "./chunk-JUZ7PSAH.js";
4
+ } from "./chunk-M2OYKG65.js";
5
5
 
6
6
  // src/written-against.ts
7
7
  import { createHash } from "crypto";
@@ -24,4 +24,4 @@ export {
24
24
  writtenAgainstLine,
25
25
  writtenAgainst
26
26
  };
27
- //# sourceMappingURL=chunk-JCZYFP5N.js.map
27
+ //# sourceMappingURL=chunk-DTLEH6LL.js.map
@@ -6,13 +6,13 @@ import {
6
6
  formatSkips,
7
7
  renderDetailed,
8
8
  renderSummary
9
- } from "./chunk-SDTV4G66.js";
9
+ } from "./chunk-45UBDKAH.js";
10
10
  import {
11
11
  createDefaultRegistry,
12
12
  proveBeforeApply,
13
13
  scan,
14
14
  summarizeByKind
15
- } from "./chunk-7ERV7MP3.js";
15
+ } from "./chunk-L72FDQ3K.js";
16
16
  import {
17
17
  CHECK_META,
18
18
  CHECK_NAMES,
@@ -24,7 +24,7 @@ import {
24
24
  psqlBeside,
25
25
  resolveTableFilter,
26
26
  withDatabase
27
- } from "./chunk-JUZ7PSAH.js";
27
+ } from "./chunk-M2OYKG65.js";
28
28
  import {
29
29
  isCommentOnly,
30
30
  splitSqlStatements
@@ -34,22 +34,22 @@ import {
34
34
  } from "./chunk-RQCXGO37.js";
35
35
  import {
36
36
  BaseCommand
37
- } from "./chunk-OXS42LJH.js";
37
+ } from "./chunk-CKH6J7DI.js";
38
38
  import {
39
39
  isCloneDatabase,
40
40
  sourceLooksLikeCloneOf
41
- } from "./chunk-CEKRRFFL.js";
41
+ } from "./chunk-KTATU64Y.js";
42
42
  import {
43
43
  describeMissingPgDump,
44
44
  getServerMajorVersion,
45
45
  parseFlagList,
46
46
  resolvePgDumpPath
47
- } from "./chunk-Z2YUOA4W.js";
47
+ } from "./chunk-USIOUMYL.js";
48
48
  import {
49
49
  Preflight,
50
50
  pgQuery,
51
51
  quoteName
52
- } from "./chunk-KT7NMELZ.js";
52
+ } from "./chunk-RC7ZU7OV.js";
53
53
  import {
54
54
  CLONE_SKIP_FLAGS,
55
55
  DEFAULT_IGNORE_SCHEMAS,
@@ -756,4 +756,4 @@ export {
756
756
  inertApplyFlags,
757
757
  Diff
758
758
  };
759
- //# sourceMappingURL=chunk-7WESFKKX.js.map
759
+ //# sourceMappingURL=chunk-F2NXGOF3.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  targetFingerprint,
3
3
  writtenAgainstLine
4
- } from "./chunk-JCZYFP5N.js";
4
+ } from "./chunk-DTLEH6LL.js";
5
5
  import {
6
6
  RolesCheck,
7
7
  isDestructiveSql,
8
8
  runDbDiff
9
- } from "./chunk-JUZ7PSAH.js";
9
+ } from "./chunk-M2OYKG65.js";
10
10
  import {
11
11
  splitSqlStatements
12
12
  } from "./chunk-WK5YTINL.js";
13
13
  import {
14
14
  slugify
15
- } from "./chunk-Z2YUOA4W.js";
15
+ } from "./chunk-USIOUMYL.js";
16
16
  import {
17
17
  DEFAULT_MIGRATIONS_DIR,
18
18
  pgQuery
19
- } from "./chunk-KT7NMELZ.js";
19
+ } from "./chunk-RC7ZU7OV.js";
20
20
  import {
21
21
  DEFAULT_IGNORE_SCHEMAS
22
22
  } from "./chunk-SQ52YBKK.js";
@@ -91,4 +91,4 @@ export {
91
91
  writeMigrationFile,
92
92
  generateTimestamp
93
93
  };
94
- //# sourceMappingURL=chunk-URUJINKJ.js.map
94
+ //# sourceMappingURL=chunk-FGHBEOUV.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  targetFingerprint,
3
3
  writtenAgainst
4
- } from "./chunk-JCZYFP5N.js";
4
+ } from "./chunk-DTLEH6LL.js";
5
5
  import {
6
6
  ensureMigrationsTable,
7
7
  getAppliedVersions,
8
8
  getPendingMigrations,
9
9
  runMigration
10
- } from "./chunk-AL6INEFX.js";
10
+ } from "./chunk-HWRRFF55.js";
11
11
  import {
12
12
  isDestructiveSql
13
- } from "./chunk-JUZ7PSAH.js";
13
+ } from "./chunk-M2OYKG65.js";
14
14
  import {
15
15
  splitSqlStatements
16
16
  } from "./chunk-WK5YTINL.js";
17
17
  import {
18
18
  BaseCommand
19
- } from "./chunk-OXS42LJH.js";
19
+ } from "./chunk-CKH6J7DI.js";
20
20
  import {
21
21
  DEFAULT_IGNORE_SCHEMAS,
22
22
  bold,
@@ -180,4 +180,4 @@ export {
180
180
  findDestructiveStatements,
181
181
  truncateSql
182
182
  };
183
- //# sourceMappingURL=chunk-LVQNNASY.js.map
183
+ //# sourceMappingURL=chunk-GUNQ5FFO.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  loadMigrations
3
- } from "./chunk-EWNZIRCD.js";
3
+ } from "./chunk-KPU6G6BO.js";
4
4
  import {
5
5
  ensureMigrationsTable,
6
6
  getAppliedVersions
7
- } from "./chunk-AL6INEFX.js";
7
+ } from "./chunk-HWRRFF55.js";
8
8
  import {
9
9
  ABSENT_ON_TARGET,
10
10
  EXTENSION_UNAVAILABLE,
@@ -18,7 +18,7 @@ import {
18
18
  rolesNamedBy,
19
19
  sqlSkeleton,
20
20
  statementSubject
21
- } from "./chunk-JUZ7PSAH.js";
21
+ } from "./chunk-M2OYKG65.js";
22
22
  import {
23
23
  isCommentOnly,
24
24
  isPsqlMetaCommand,
@@ -27,14 +27,14 @@ import {
27
27
  } from "./chunk-WK5YTINL.js";
28
28
  import {
29
29
  loadSnapshot
30
- } from "./chunk-5UHIWFQG.js";
30
+ } from "./chunk-ZLNP3DUB.js";
31
31
  import {
32
32
  newPgClient,
33
33
  pgQuery,
34
34
  quoteIdent,
35
35
  quoteLiteral,
36
36
  quoteName
37
- } from "./chunk-KT7NMELZ.js";
37
+ } from "./chunk-RC7ZU7OV.js";
38
38
  import {
39
39
  DEFAULT_IGNORE_SCHEMAS,
40
40
  MIGRATIONS_TABLE,
@@ -900,4 +900,4 @@ export {
900
900
  previewMigrationRestore,
901
901
  summarizeStatement
902
902
  };
903
- //# sourceMappingURL=chunk-4CIDCZVO.js.map
903
+ //# sourceMappingURL=chunk-HP4IDUCN.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  pgQuery,
3
3
  readLocalMigrations
4
- } from "./chunk-KT7NMELZ.js";
4
+ } from "./chunk-RC7ZU7OV.js";
5
5
  import {
6
6
  MIGRATIONS_SCHEMA,
7
7
  MIGRATIONS_TABLE
@@ -119,4 +119,4 @@ export {
119
119
  runMigration,
120
120
  baselineMigrations
121
121
  };
122
- //# sourceMappingURL=chunk-AL6INEFX.js.map
122
+ //# sourceMappingURL=chunk-HWRRFF55.js.map
@@ -6,10 +6,10 @@ import {
6
6
  captureSnapshot,
7
7
  findLatestSnapshot,
8
8
  loadSnapshot
9
- } from "./chunk-5UHIWFQG.js";
9
+ } from "./chunk-ZLNP3DUB.js";
10
10
  import {
11
11
  slugify
12
- } from "./chunk-Z2YUOA4W.js";
12
+ } from "./chunk-USIOUMYL.js";
13
13
  import {
14
14
  MIGRATIONS_SUBDIR,
15
15
  SUPAFORGE_DIR
@@ -245,4 +245,4 @@ export {
245
245
  loadMigrations,
246
246
  listMigrationFiles
247
247
  };
248
- //# sourceMappingURL=chunk-EWNZIRCD.js.map
248
+ //# sourceMappingURL=chunk-KPU6G6BO.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  captureSnapshot
3
- } from "./chunk-5UHIWFQG.js";
3
+ } from "./chunk-ZLNP3DUB.js";
4
4
  import {
5
5
  checkPgDumpCompat
6
- } from "./chunk-Z2YUOA4W.js";
6
+ } from "./chunk-USIOUMYL.js";
7
7
  import {
8
8
  newPgClient,
9
9
  pgQuery,
10
10
  quoteName
11
- } from "./chunk-KT7NMELZ.js";
11
+ } from "./chunk-RC7ZU7OV.js";
12
12
  import {
13
13
  BRANCHES_FILE,
14
14
  CLONE_PROGRESS_INTERVAL_MS,
@@ -653,4 +653,4 @@ export {
653
653
  isCloneDatabase,
654
654
  sourceLooksLikeCloneOf
655
655
  };
656
- //# sourceMappingURL=chunk-CEKRRFFL.js.map
656
+ //# sourceMappingURL=chunk-KTATU64Y.js.map
@@ -18,7 +18,7 @@ import {
18
18
  sqlSkeleton,
19
19
  sqlToIssues,
20
20
  withoutAbsentRoles
21
- } from "./chunk-JUZ7PSAH.js";
21
+ } from "./chunk-M2OYKG65.js";
22
22
  import {
23
23
  splitSqlStatements
24
24
  } from "./chunk-WK5YTINL.js";
@@ -33,7 +33,7 @@ import {
33
33
  readJsonArray,
34
34
  readJsonObject,
35
35
  schemaPolicySql
36
- } from "./chunk-5UHIWFQG.js";
36
+ } from "./chunk-ZLNP3DUB.js";
37
37
  import {
38
38
  Check,
39
39
  CheckSkipped,
@@ -48,7 +48,7 @@ import {
48
48
  releaseSnapshots,
49
49
  setSnapshotsOff,
50
50
  sqlLiteral
51
- } from "./chunk-KT7NMELZ.js";
51
+ } from "./chunk-RC7ZU7OV.js";
52
52
  import {
53
53
  DEFAULT_IGNORE_SCHEMAS,
54
54
  SCORE_MAX,
@@ -388,6 +388,8 @@ var SchemaCheck = class extends Check {
388
388
  this.runFn = runFn;
389
389
  this.queryFn = queryFn;
390
390
  }
391
+ runFn;
392
+ queryFn;
391
393
  name = "schema";
392
394
  async scan(ctx) {
393
395
  try {
@@ -464,6 +466,7 @@ var RlsCheck = class extends Check {
464
466
  super();
465
467
  this.queryFn = queryFn;
466
468
  }
469
+ queryFn;
467
470
  name = "rls";
468
471
  async scan(ctx) {
469
472
  const ignoreSchemas = ctx.config.ignoreSchemas ?? [];
@@ -643,6 +646,7 @@ var RlsCoverageCheck = class extends Check {
643
646
  super();
644
647
  this.queryFn = queryFn;
645
648
  }
649
+ queryFn;
646
650
  name = "rls-coverage";
647
651
  async scan(ctx) {
648
652
  const ignoreSchemas = ctx.config.ignoreSchemas ?? [];
@@ -795,6 +799,7 @@ var EdgeFunctionsCheck = class extends Check {
795
799
  super();
796
800
  this.fetchFn = fetchFn;
797
801
  }
802
+ fetchFn;
798
803
  name = "edge-functions";
799
804
  async scan(ctx) {
800
805
  const sourceRef = ctx.source.projectRef;
@@ -1132,6 +1137,8 @@ var StorageCheck = class extends Check {
1132
1137
  this.queryFn = queryFn;
1133
1138
  this.includeFiles = includeFiles;
1134
1139
  }
1140
+ queryFn;
1141
+ includeFiles;
1135
1142
  name = "storage";
1136
1143
  async scan(ctx) {
1137
1144
  const [srcHasStorage, tgtHasStorage] = await Promise.all([
@@ -1595,6 +1602,7 @@ var AuthCheck = class extends Check {
1595
1602
  super();
1596
1603
  this.fetchFn = fetchFn;
1597
1604
  }
1605
+ fetchFn;
1598
1606
  name = "auth";
1599
1607
  async scan(ctx) {
1600
1608
  const sourceSrc = resolveAuthSource(ctx.source);
@@ -1686,6 +1694,7 @@ var CronCheck = class extends Check {
1686
1694
  super();
1687
1695
  this.queryFn = queryFn;
1688
1696
  }
1697
+ queryFn;
1689
1698
  name = "cron";
1690
1699
  async scan(ctx) {
1691
1700
  const [source, target] = await Promise.all([
@@ -1836,6 +1845,8 @@ var DataCheck = class extends Check {
1836
1845
  this.runFn = runFn;
1837
1846
  this.queryFn = queryFn;
1838
1847
  }
1848
+ runFn;
1849
+ queryFn;
1839
1850
  name = "data";
1840
1851
  async scan(ctx) {
1841
1852
  const configured = ctx.config.checks?.data?.tables;
@@ -1879,6 +1890,7 @@ var WebhooksCheck = class extends Check {
1879
1890
  super();
1880
1891
  this.queryFn = queryFn;
1881
1892
  }
1893
+ queryFn;
1882
1894
  name = "webhooks";
1883
1895
  async scan(ctx) {
1884
1896
  const [sourceHooks, targetHooks, sourceNet, targetNet] = await Promise.all([
@@ -2004,6 +2016,7 @@ var VaultCheck = class extends Check {
2004
2016
  super();
2005
2017
  this.queryFn = queryFn;
2006
2018
  }
2019
+ queryFn;
2007
2020
  name = "vault";
2008
2021
  async scan(ctx) {
2009
2022
  const [source, target] = await Promise.all([
@@ -2117,6 +2130,7 @@ var ExtensionsCheck = class extends Check {
2117
2130
  super();
2118
2131
  this.queryFn = queryFn;
2119
2132
  }
2133
+ queryFn;
2120
2134
  name = "extensions";
2121
2135
  async scan(ctx) {
2122
2136
  const [source, target, reachable] = await Promise.all([
@@ -2156,6 +2170,18 @@ var UPDATES_SQL = `
2156
2170
  CROSS JOIN LATERAL pg_extension_update_paths(e.extname) p
2157
2171
  WHERE p.source = e.extversion AND p.path IS NOT NULL
2158
2172
  `;
2173
+ var SUPABASE_PLATFORM_EXTENSIONS = [
2174
+ { name: "pg_graphql", schemas: ["graphql"] },
2175
+ { name: "supabase_vault", schemas: ["vault"] },
2176
+ { name: "pgsodium", schemas: ["pgsodium"] },
2177
+ { name: "pg_stat_statements", schemas: ["extensions"] },
2178
+ { name: "pgcrypto", schemas: ["extensions"] },
2179
+ { name: "pgjwt", schemas: ["extensions"] },
2180
+ { name: "uuid-ossp", schemas: ["extensions"] }
2181
+ ];
2182
+ function isPlatformExtension(ext) {
2183
+ return SUPABASE_PLATFORM_EXTENSIONS.some((p) => p.name === ext.name && p.schemas.includes(ext.schema));
2184
+ }
2159
2185
  function diffExtensions(source, target, reachable) {
2160
2186
  const issues = [];
2161
2187
  const sourceMap = new Map(source.map((e) => [e.name, e]));
@@ -2183,7 +2209,7 @@ function diffExtensions(source, target, reachable) {
2183
2209
  }
2184
2210
  }
2185
2211
  for (const [name, ext] of targetMap) {
2186
- if (!sourceMap.has(name)) {
2212
+ if (!sourceMap.has(name) && !isPlatformExtension(ext)) {
2187
2213
  issues.push({
2188
2214
  id: `ext-extra-${name}`,
2189
2215
  check: "extensions",
@@ -2225,6 +2251,7 @@ var QueuesCheck = class extends Check {
2225
2251
  super();
2226
2252
  this.queryFn = queryFn;
2227
2253
  }
2254
+ queryFn;
2228
2255
  name = "queues";
2229
2256
  async scan(ctx) {
2230
2257
  const [source, target] = await Promise.all([
@@ -2326,6 +2353,7 @@ var PartitionsCheck = class extends Check {
2326
2353
  super();
2327
2354
  this.queryFn = queryFn;
2328
2355
  }
2356
+ queryFn;
2329
2357
  name = "partitions";
2330
2358
  async scan(ctx) {
2331
2359
  const [source, target] = await Promise.all([this.fetch(ctx.source.dbUrl), this.fetch(ctx.target.dbUrl)]);
@@ -2509,4 +2537,4 @@ export {
2509
2537
  createDefaultRegistry,
2510
2538
  proveBeforeApply
2511
2539
  };
2512
- //# sourceMappingURL=chunk-7ERV7MP3.js.map
2540
+ //# sourceMappingURL=chunk-L72FDQ3K.js.map
@@ -3,6 +3,7 @@ import {
3
3
  splitSqlStatements
4
4
  } from "./chunk-WK5YTINL.js";
5
5
  import {
6
+ dbdiffPgToolsEnv,
6
7
  describeMissingPgDump,
7
8
  escapeRegex,
8
9
  getServerMajorVersion,
@@ -10,7 +11,7 @@ import {
10
11
  matchesGlob,
11
12
  parseFlagList,
12
13
  resolvePgDumpPath
13
- } from "./chunk-Z2YUOA4W.js";
14
+ } from "./chunk-USIOUMYL.js";
14
15
  import {
15
16
  Check,
16
17
  heldSnapshot,
@@ -20,7 +21,7 @@ import {
20
21
  quoteLiteral,
21
22
  quoteName,
22
23
  snapshotsOff
23
- } from "./chunk-KT7NMELZ.js";
24
+ } from "./chunk-RC7ZU7OV.js";
24
25
  import {
25
26
  DBDIFF_EXEC_TIMEOUT_MS,
26
27
  DBDIFF_MAX_BUFFER,
@@ -346,6 +347,8 @@ var RolesCheck = class extends Check {
346
347
  this.queryFn = queryFn;
347
348
  this.options = options;
348
349
  }
350
+ queryFn;
351
+ options;
349
352
  name = "roles";
350
353
  async scan(ctx) {
351
354
  const ignore = ctx.config.ignoreSchemas ?? [];
@@ -1160,9 +1163,11 @@ async function runDbDiff(options) {
1160
1163
  const args = [...prefixArgs, ...buildDbDiffArgs(options, outputFile)];
1161
1164
  const timeoutMs = resolveDbDiffTimeoutMs(options.timeoutSeconds);
1162
1165
  try {
1166
+ const pgTools = options.type === "schema" ? await dbdiffPgToolsEnv([options.sourceUrl, options.targetUrl]) : {};
1163
1167
  const running = execFileAsync(command, args, {
1164
1168
  timeout: timeoutMs,
1165
- maxBuffer: DBDIFF_MAX_BUFFER
1169
+ maxBuffer: DBDIFF_MAX_BUFFER,
1170
+ ...Object.keys(pgTools).length ? { env: { ...process.env, ...pgTools } } : {}
1166
1171
  });
1167
1172
  attachProgress(running, options.onProgress);
1168
1173
  const { stdout } = await running;
@@ -3264,4 +3269,4 @@ export {
3264
3269
  residualHeldBack,
3265
3270
  proofScope
3266
3271
  };
3267
- //# sourceMappingURL=chunk-JUZ7PSAH.js.map
3272
+ //# sourceMappingURL=chunk-M2OYKG65.js.map
@@ -499,6 +499,8 @@ var MigrationsCheck = class extends Check {
499
499
  this.queryFn = queryFn;
500
500
  this.readDirFn = readDirFn;
501
501
  }
502
+ queryFn;
503
+ readDirFn;
502
504
  name = "migrations";
503
505
  async scan(ctx) {
504
506
  const dir = ctx.config.checks?.migrations?.dir ?? DEFAULT_MIGRATIONS_DIR;
@@ -625,4 +627,4 @@ export {
625
627
  MigrationsCheck,
626
628
  readLocalMigrations
627
629
  };
628
- //# sourceMappingURL=chunk-KT7NMELZ.js.map
630
+ //# sourceMappingURL=chunk-RC7ZU7OV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  newPgClient
3
- } from "./chunk-KT7NMELZ.js";
3
+ } from "./chunk-RC7ZU7OV.js";
4
4
 
5
5
  // src/utils/strings.ts
6
6
  var MAX_SLUG_LENGTH = 60;
@@ -61,6 +61,7 @@ function arrayLiteralElements(literal) {
61
61
  import { execFile } from "child_process";
62
62
  import { platform } from "os";
63
63
  import { existsSync } from "fs";
64
+ import { dirname, join } from "path";
64
65
  function parsePgDumpVersion(output) {
65
66
  const m = output.match(/(\d+)(?:\.\d+)?/);
66
67
  return m ? Number(m[1]) : null;
@@ -163,6 +164,19 @@ async function getServerMajorVersion(dbUrl) {
163
164
  await client.end();
164
165
  }
165
166
  }
167
+ async function dbdiffPgToolsEnv(dbUrls) {
168
+ if (process.env.DBDIFF_PG_DUMP || process.env.DBDIFF_PG_RESTORE) return {};
169
+ try {
170
+ const majors = await Promise.all(dbUrls.map((url) => getServerMajorVersion(url)));
171
+ const resolved = await resolvePgDumpPath(Math.max(...majors));
172
+ if (!resolved || resolved.path === "pg_dump") return {};
173
+ const pgRestore = join(dirname(resolved.path), "pg_restore");
174
+ if (!existsSync(pgRestore)) return {};
175
+ return { DBDIFF_PG_DUMP: resolved.path, DBDIFF_PG_RESTORE: pgRestore };
176
+ } catch {
177
+ return {};
178
+ }
179
+ }
166
180
  async function checkPgDumpCompat(dbUrl) {
167
181
  const serverMajor = await getServerMajorVersion(dbUrl);
168
182
  const resolved = await resolvePgDumpPath(serverMajor);
@@ -237,6 +251,7 @@ export {
237
251
  assertPgBinUsable,
238
252
  describeMissingPgDump,
239
253
  getServerMajorVersion,
254
+ dbdiffPgToolsEnv,
240
255
  checkPgDumpCompat
241
256
  };
242
- //# sourceMappingURL=chunk-Z2YUOA4W.js.map
257
+ //# sourceMappingURL=chunk-USIOUMYL.js.map
@@ -4,7 +4,7 @@ import {
4
4
  getServerMajorVersion,
5
5
  normalizeRoles,
6
6
  resolvePgDumpPath
7
- } from "./chunk-Z2YUOA4W.js";
7
+ } from "./chunk-USIOUMYL.js";
8
8
  import {
9
9
  Check,
10
10
  inRolledBackTransaction,
@@ -15,7 +15,7 @@ import {
15
15
  quoteLiteral,
16
16
  quoteName,
17
17
  readOrAbsent
18
- } from "./chunk-KT7NMELZ.js";
18
+ } from "./chunk-RC7ZU7OV.js";
19
19
  import {
20
20
  DEFAULT_IGNORE_SCHEMAS,
21
21
  MIGRATIONS_SUBDIR,
@@ -423,6 +423,7 @@ var RealtimeCheck = class extends Check {
423
423
  super();
424
424
  this.queryFn = queryFn;
425
425
  }
426
+ queryFn;
426
427
  name = "realtime";
427
428
  async scan(ctx) {
428
429
  const [source, target] = await Promise.all([
@@ -490,6 +491,23 @@ function diffPublications(source, target) {
490
491
  }
491
492
  for (const pubname of targetPubs) {
492
493
  if (!sourcePubs.has(pubname)) {
494
+ if (pubname === "supabase_realtime") {
495
+ for (const t of target.filter((p) => p.pubname === pubname && p.tablename)) {
496
+ const fqn = `${t.schemaname}.${t.tablename}`;
497
+ issues.push({
498
+ id: `realtime-extra-table-${pubname}-${fqn}`,
499
+ check: "realtime",
500
+ severity: "warning",
501
+ title: `Extra published table: ${fqn} in ${pubname}`,
502
+ description: `Table "${fqn}" streams its changes to Realtime clients in target, but source publishes nothing for Realtime.`,
503
+ sql: {
504
+ up: `ALTER PUBLICATION ${quoteName(pubname)} DROP TABLE ${quoteName(t.schemaname)}.${quoteName(t.tablename)};`,
505
+ down: `ALTER PUBLICATION ${quoteName(pubname)} ADD TABLE ${quoteName(t.schemaname)}.${quoteName(t.tablename)};`
506
+ }
507
+ });
508
+ }
509
+ continue;
510
+ }
493
511
  issues.push({
494
512
  id: `realtime-extra-pub-${pubname}`,
495
513
  check: "realtime",
@@ -1231,4 +1249,4 @@ export {
1231
1249
  DEFAULT_KEEP_COUNT,
1232
1250
  pruneSnapshots
1233
1251
  };
1234
- //# sourceMappingURL=chunk-5UHIWFQG.js.map
1252
+ //# sourceMappingURL=chunk-ZLNP3DUB.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-RQCXGO37.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../chunk-OXS42LJH.js";
6
+ } from "../chunk-CKH6J7DI.js";
7
7
  import {
8
8
  addBranchToManifest,
9
9
  cloneRemoteToLocal,
@@ -13,21 +13,21 @@ import {
13
13
  maintenanceUrl,
14
14
  reconcileClones,
15
15
  replaceDbName
16
- } from "../chunk-CEKRRFFL.js";
16
+ } from "../chunk-KTATU64Y.js";
17
17
  import {
18
18
  captureSnapshot,
19
19
  formatSnapshotLayers
20
- } from "../chunk-5UHIWFQG.js";
20
+ } from "../chunk-ZLNP3DUB.js";
21
21
  import {
22
22
  checkPgDumpCompat
23
- } from "../chunk-Z2YUOA4W.js";
23
+ } from "../chunk-USIOUMYL.js";
24
24
  import {
25
25
  DEFAULT_LOCAL_PORT,
26
26
  LOCAL_PG_PASSWORD,
27
27
  LOCAL_PG_USER,
28
28
  newPgClient,
29
29
  startLocalPg
30
- } from "../chunk-KT7NMELZ.js";
30
+ } from "../chunk-RC7ZU7OV.js";
31
31
  import "../chunk-KHXEES2M.js";
32
32
  import {
33
33
  CLONE_EXTRA_EXCLUDE_SCHEMAS,
@@ -2,18 +2,18 @@ import {
2
2
  Diff,
3
3
  inertApplyFlags,
4
4
  rollbackHint
5
- } from "../chunk-7WESFKKX.js";
5
+ } from "../chunk-F2NXGOF3.js";
6
6
  import "../chunk-Q43MN6NE.js";
7
- import "../chunk-SDTV4G66.js";
8
- import "../chunk-7ERV7MP3.js";
9
- import "../chunk-JUZ7PSAH.js";
7
+ import "../chunk-45UBDKAH.js";
8
+ import "../chunk-L72FDQ3K.js";
9
+ import "../chunk-M2OYKG65.js";
10
10
  import "../chunk-WK5YTINL.js";
11
11
  import "../chunk-RQCXGO37.js";
12
- import "../chunk-OXS42LJH.js";
13
- import "../chunk-CEKRRFFL.js";
14
- import "../chunk-5UHIWFQG.js";
15
- import "../chunk-Z2YUOA4W.js";
16
- import "../chunk-KT7NMELZ.js";
12
+ import "../chunk-CKH6J7DI.js";
13
+ import "../chunk-KTATU64Y.js";
14
+ import "../chunk-ZLNP3DUB.js";
15
+ import "../chunk-USIOUMYL.js";
16
+ import "../chunk-RC7ZU7OV.js";
17
17
  import "../chunk-KHXEES2M.js";
18
18
  import "../chunk-SQ52YBKK.js";
19
19
  export {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Diff
3
- } from "../chunk-7WESFKKX.js";
3
+ } from "../chunk-F2NXGOF3.js";
4
4
  import "../chunk-Q43MN6NE.js";
5
- import "../chunk-SDTV4G66.js";
6
- import "../chunk-7ERV7MP3.js";
7
- import "../chunk-JUZ7PSAH.js";
5
+ import "../chunk-45UBDKAH.js";
6
+ import "../chunk-L72FDQ3K.js";
7
+ import "../chunk-M2OYKG65.js";
8
8
  import "../chunk-WK5YTINL.js";
9
9
  import "../chunk-RQCXGO37.js";
10
- import "../chunk-OXS42LJH.js";
11
- import "../chunk-CEKRRFFL.js";
12
- import "../chunk-5UHIWFQG.js";
13
- import "../chunk-Z2YUOA4W.js";
14
- import "../chunk-KT7NMELZ.js";
10
+ import "../chunk-CKH6J7DI.js";
11
+ import "../chunk-KTATU64Y.js";
12
+ import "../chunk-ZLNP3DUB.js";
13
+ import "../chunk-USIOUMYL.js";
14
+ import "../chunk-RC7ZU7OV.js";
15
15
  import "../chunk-KHXEES2M.js";
16
16
  import "../chunk-SQ52YBKK.js";
17
17
 
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createServer
3
- } from "../chunk-5Y743EVJ.js";
4
- import "../chunk-URUJINKJ.js";
5
- import "../chunk-JCZYFP5N.js";
6
- import "../chunk-7ERV7MP3.js";
7
- import "../chunk-JUZ7PSAH.js";
3
+ } from "../chunk-4PO4VB4C.js";
4
+ import "../chunk-FGHBEOUV.js";
5
+ import "../chunk-DTLEH6LL.js";
6
+ import "../chunk-L72FDQ3K.js";
7
+ import "../chunk-M2OYKG65.js";
8
8
  import "../chunk-WK5YTINL.js";
9
- import "../chunk-5UHIWFQG.js";
10
- import "../chunk-Z2YUOA4W.js";
11
- import "../chunk-KT7NMELZ.js";
9
+ import "../chunk-ZLNP3DUB.js";
10
+ import "../chunk-USIOUMYL.js";
11
+ import "../chunk-RC7ZU7OV.js";
12
12
  import {
13
13
  installProcessGuard,
14
14
  keepRunningOnStrayErrors
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  baselineMigrations
3
- } from "../../chunk-AL6INEFX.js";
3
+ } from "../../chunk-HWRRFF55.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-OXS42LJH.js";
7
- import "../../chunk-KT7NMELZ.js";
6
+ } from "../../chunk-CKH6J7DI.js";
7
+ import "../../chunk-RC7ZU7OV.js";
8
8
  import "../../chunk-KHXEES2M.js";
9
9
  import {
10
10
  bold,
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  truncateSql
3
- } from "../../chunk-LVQNNASY.js";
3
+ } from "../../chunk-GUNQ5FFO.js";
4
4
  import {
5
5
  generateTimestamp,
6
6
  writeMigrationFile
7
- } from "../../chunk-URUJINKJ.js";
8
- import "../../chunk-JCZYFP5N.js";
9
- import "../../chunk-AL6INEFX.js";
10
- import "../../chunk-JUZ7PSAH.js";
7
+ } from "../../chunk-FGHBEOUV.js";
8
+ import "../../chunk-DTLEH6LL.js";
9
+ import "../../chunk-HWRRFF55.js";
10
+ import "../../chunk-M2OYKG65.js";
11
11
  import "../../chunk-WK5YTINL.js";
12
12
  import {
13
13
  BaseCommand
14
- } from "../../chunk-OXS42LJH.js";
14
+ } from "../../chunk-CKH6J7DI.js";
15
15
  import {
16
16
  slugify
17
- } from "../../chunk-Z2YUOA4W.js";
18
- import "../../chunk-KT7NMELZ.js";
17
+ } from "../../chunk-USIOUMYL.js";
18
+ import "../../chunk-RC7ZU7OV.js";
19
19
  import "../../chunk-KHXEES2M.js";
20
20
  import {
21
21
  bold,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getAppliedVersions
3
- } from "../../chunk-AL6INEFX.js";
3
+ } from "../../chunk-HWRRFF55.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-OXS42LJH.js";
6
+ } from "../../chunk-CKH6J7DI.js";
7
7
  import {
8
8
  pgQuery,
9
9
  readLocalMigrations
10
- } from "../../chunk-KT7NMELZ.js";
10
+ } from "../../chunk-RC7ZU7OV.js";
11
11
  import "../../chunk-KHXEES2M.js";
12
12
  import {
13
13
  bold,
@@ -2,14 +2,14 @@ import {
2
2
  MigrateRun,
3
3
  findDestructiveStatements,
4
4
  truncateSql
5
- } from "../../chunk-LVQNNASY.js";
6
- import "../../chunk-JCZYFP5N.js";
7
- import "../../chunk-AL6INEFX.js";
8
- import "../../chunk-JUZ7PSAH.js";
5
+ } from "../../chunk-GUNQ5FFO.js";
6
+ import "../../chunk-DTLEH6LL.js";
7
+ import "../../chunk-HWRRFF55.js";
8
+ import "../../chunk-M2OYKG65.js";
9
9
  import "../../chunk-WK5YTINL.js";
10
- import "../../chunk-OXS42LJH.js";
11
- import "../../chunk-Z2YUOA4W.js";
12
- import "../../chunk-KT7NMELZ.js";
10
+ import "../../chunk-CKH6J7DI.js";
11
+ import "../../chunk-USIOUMYL.js";
12
+ import "../../chunk-RC7ZU7OV.js";
13
13
  import "../../chunk-KHXEES2M.js";
14
14
  import "../../chunk-SQ52YBKK.js";
15
15
  export {
@@ -5,8 +5,8 @@ import {
5
5
  BaseCommand,
6
6
  readRunLog,
7
7
  runLogPath
8
- } from "../chunk-OXS42LJH.js";
9
- import "../chunk-KT7NMELZ.js";
8
+ } from "../chunk-CKH6J7DI.js";
9
+ import "../chunk-RC7ZU7OV.js";
10
10
  import "../chunk-KHXEES2M.js";
11
11
  import {
12
12
  bold,
@@ -5,23 +5,23 @@ import {
5
5
  restoreFromMigrations,
6
6
  restoreFromSnapshot,
7
7
  summarizeStatement
8
- } from "../chunk-4CIDCZVO.js";
9
- import "../chunk-EWNZIRCD.js";
10
- import "../chunk-AL6INEFX.js";
11
- import "../chunk-JUZ7PSAH.js";
8
+ } from "../chunk-HP4IDUCN.js";
9
+ import "../chunk-KPU6G6BO.js";
10
+ import "../chunk-HWRRFF55.js";
11
+ import "../chunk-M2OYKG65.js";
12
12
  import "../chunk-WK5YTINL.js";
13
13
  import {
14
14
  renderTip
15
15
  } from "../chunk-RQCXGO37.js";
16
16
  import {
17
17
  BaseCommand
18
- } from "../chunk-OXS42LJH.js";
18
+ } from "../chunk-CKH6J7DI.js";
19
19
  import {
20
20
  findLatestSnapshot,
21
21
  listSnapshots
22
- } from "../chunk-5UHIWFQG.js";
23
- import "../chunk-Z2YUOA4W.js";
24
- import "../chunk-KT7NMELZ.js";
22
+ } from "../chunk-ZLNP3DUB.js";
23
+ import "../chunk-USIOUMYL.js";
24
+ import "../chunk-RC7ZU7OV.js";
25
25
  import "../chunk-KHXEES2M.js";
26
26
  import {
27
27
  cmd,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  backup,
3
3
  listMigrationFiles
4
- } from "../chunk-EWNZIRCD.js";
4
+ } from "../chunk-KPU6G6BO.js";
5
5
  import "../chunk-WK5YTINL.js";
6
6
  import {
7
7
  renderTip
8
8
  } from "../chunk-RQCXGO37.js";
9
9
  import {
10
10
  BaseCommand
11
- } from "../chunk-OXS42LJH.js";
11
+ } from "../chunk-CKH6J7DI.js";
12
12
  import {
13
13
  DEFAULT_KEEP_COUNT,
14
14
  captureSnapshot,
@@ -16,9 +16,9 @@ import {
16
16
  listSnapshots,
17
17
  pruneSnapshots,
18
18
  unrestorableSchema
19
- } from "../chunk-5UHIWFQG.js";
20
- import "../chunk-Z2YUOA4W.js";
21
- import "../chunk-KT7NMELZ.js";
19
+ } from "../chunk-ZLNP3DUB.js";
20
+ import "../chunk-USIOUMYL.js";
21
+ import "../chunk-RC7ZU7OV.js";
22
22
  import "../chunk-KHXEES2M.js";
23
23
  import {
24
24
  bold,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Diff
3
- } from "../chunk-7WESFKKX.js";
3
+ } from "../chunk-F2NXGOF3.js";
4
4
  import "../chunk-Q43MN6NE.js";
5
- import "../chunk-SDTV4G66.js";
6
- import "../chunk-7ERV7MP3.js";
7
- import "../chunk-JUZ7PSAH.js";
5
+ import "../chunk-45UBDKAH.js";
6
+ import "../chunk-L72FDQ3K.js";
7
+ import "../chunk-M2OYKG65.js";
8
8
  import "../chunk-WK5YTINL.js";
9
9
  import "../chunk-RQCXGO37.js";
10
- import "../chunk-OXS42LJH.js";
11
- import "../chunk-CEKRRFFL.js";
12
- import "../chunk-5UHIWFQG.js";
13
- import "../chunk-Z2YUOA4W.js";
14
- import "../chunk-KT7NMELZ.js";
10
+ import "../chunk-CKH6J7DI.js";
11
+ import "../chunk-KTATU64Y.js";
12
+ import "../chunk-ZLNP3DUB.js";
13
+ import "../chunk-USIOUMYL.js";
14
+ import "../chunk-RC7ZU7OV.js";
15
15
  import "../chunk-KHXEES2M.js";
16
16
  import "../chunk-SQ52YBKK.js";
17
17
 
package/dist/index.js CHANGED
@@ -3,37 +3,37 @@ import {
3
3
  createServer,
4
4
  getLastScanResult,
5
5
  setLastScanResult
6
- } from "./chunk-5Y743EVJ.js";
6
+ } from "./chunk-4PO4VB4C.js";
7
7
  import {
8
8
  previewMigrationRestore,
9
9
  previewSnapshotRestore,
10
10
  restoreFromMigrations,
11
11
  restoreFromSnapshot
12
- } from "./chunk-4CIDCZVO.js";
12
+ } from "./chunk-HP4IDUCN.js";
13
13
  import {
14
14
  backup,
15
15
  listMigrationFiles,
16
16
  loadMigrations
17
- } from "./chunk-EWNZIRCD.js";
18
- import "./chunk-URUJINKJ.js";
19
- import "./chunk-JCZYFP5N.js";
20
- import "./chunk-AL6INEFX.js";
17
+ } from "./chunk-KPU6G6BO.js";
18
+ import "./chunk-FGHBEOUV.js";
19
+ import "./chunk-DTLEH6LL.js";
20
+ import "./chunk-HWRRFF55.js";
21
21
  import {
22
22
  renderDetailed,
23
23
  renderSummary
24
- } from "./chunk-SDTV4G66.js";
24
+ } from "./chunk-45UBDKAH.js";
25
25
  import {
26
26
  CheckRegistry,
27
27
  computeScore,
28
28
  createDefaultRegistry,
29
29
  scan,
30
30
  summarize
31
- } from "./chunk-7ERV7MP3.js";
31
+ } from "./chunk-L72FDQ3K.js";
32
32
  import {
33
33
  CHECK_META,
34
34
  CHECK_NAMES,
35
35
  promote
36
- } from "./chunk-JUZ7PSAH.js";
36
+ } from "./chunk-M2OYKG65.js";
37
37
  import "./chunk-WK5YTINL.js";
38
38
  import {
39
39
  BRANCH_DB_PREFIX,
@@ -43,17 +43,17 @@ import {
43
43
  listBranches,
44
44
  loadManifest,
45
45
  replaceDbName
46
- } from "./chunk-CEKRRFFL.js";
46
+ } from "./chunk-KTATU64Y.js";
47
47
  import {
48
48
  captureSnapshot,
49
49
  findLatestSnapshot,
50
50
  listSnapshots,
51
51
  loadSnapshot
52
- } from "./chunk-5UHIWFQG.js";
53
- import "./chunk-Z2YUOA4W.js";
52
+ } from "./chunk-ZLNP3DUB.js";
53
+ import "./chunk-USIOUMYL.js";
54
54
  import {
55
55
  Check
56
- } from "./chunk-KT7NMELZ.js";
56
+ } from "./chunk-RC7ZU7OV.js";
57
57
  import {
58
58
  loadConfig,
59
59
  resolveConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akal/supaforge",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "mcpName": "io.github.akalsoftware/supaforge",
5
5
  "description": "Diff and sync your Supabase environments",
6
6
  "author": "Akal Software Ltd",
@@ -55,10 +55,10 @@
55
55
  "topicSeparator": " "
56
56
  },
57
57
  "dependencies": {
58
- "@akal/pg-conformance": "~0.0.18",
59
- "@dbdiff/cli": "3.0.0-rc.33",
58
+ "@akal/pg-conformance": "~0.0.19",
59
+ "@dbdiff/cli": "3.0.0-rc.35",
60
60
  "@modelcontextprotocol/sdk": "^1.32.1",
61
- "@oclif/core": "^4",
61
+ "@oclif/core": "^5.1.12",
62
62
  "@supabase/supabase-js": "^2.103.0",
63
63
  "libpg-query": "~18.1.5",
64
64
  "pg": "^8",
@@ -73,6 +73,10 @@
73
73
  "vitest": "^4.1.11"
74
74
  },
75
75
  "engines": {
76
- "node": ">=20.0.0"
76
+ "node": ">=22.0.0"
77
+ },
78
+ "overrides": {
79
+ "minimatch": "^11.0.5",
80
+ "esbuild": "^0.28.2"
77
81
  }
78
82
  }