@akal/supaforge 0.0.33 → 0.0.34

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 (39) hide show
  1. package/README.md +39 -2
  2. package/dist/base-command.js +4 -3
  3. package/dist/{chunk-DMIWAJRB.js → chunk-3WKWPSFN.js} +6 -6
  4. package/dist/{chunk-GZREXCQZ.js → chunk-5STH2A6K.js} +17 -10
  5. package/dist/{chunk-6LJERPUN.js → chunk-6ERVCWLY.js} +20 -12
  6. package/dist/{chunk-GEHPTPNZ.js → chunk-7DL63NWP.js} +3 -3
  7. package/dist/{chunk-UWAVXC57.js → chunk-DQJSSTIJ.js} +39 -15
  8. package/dist/{chunk-ORQJVE57.js → chunk-EFKQOQGG.js} +15 -16
  9. package/dist/{chunk-7NAZGZPV.js → chunk-F46FFUKC.js} +16 -17
  10. package/dist/chunk-GQPGH6YR.js +50 -0
  11. package/dist/{chunk-6Q7MHFBM.js → chunk-HNJ6BNNZ.js} +2 -2
  12. package/dist/{chunk-MIRLB5JM.js → chunk-ICSCHS72.js} +66 -14
  13. package/dist/{chunk-6WAMNZLO.js → chunk-KNXHLVF7.js} +126 -4
  14. package/dist/{chunk-SQPCWGQO.js → chunk-MG3SFV5J.js} +22 -121
  15. package/dist/{chunk-BUOWHE36.js → chunk-N5VNNOA2.js} +37 -52
  16. package/dist/{chunk-3HGAV5CC.js → chunk-OB5GP7UB.js} +19 -16
  17. package/dist/{chunk-4IVN7QVY.js → chunk-PYAGSMFB.js} +23 -15
  18. package/dist/{chunk-SC2XHGIS.js → chunk-S5L4A3UR.js} +3 -3
  19. package/dist/{chunk-2SELREHW.js → chunk-TPX2MAO4.js} +7 -9
  20. package/dist/{chunk-NTUASFQ3.js → chunk-V2SBZERO.js} +4 -4
  21. package/dist/{chunk-G2DIPIYU.js → chunk-WK5YTINL.js} +29 -2
  22. package/dist/{chunk-BLKJWDTL.js → chunk-ZI435CAU.js} +2 -2
  23. package/dist/commands/clone.js +11 -11
  24. package/dist/commands/diff.d.ts +13 -1
  25. package/dist/commands/diff.js +19 -16
  26. package/dist/commands/hukam.js +15 -14
  27. package/dist/commands/init.js +5 -1
  28. package/dist/commands/mcp.js +15 -9
  29. package/dist/commands/migrate/baseline.js +5 -4
  30. package/dist/commands/migrate/create.js +8 -7
  31. package/dist/commands/migrate/list.js +6 -5
  32. package/dist/commands/migrate/run.js +8 -7
  33. package/dist/commands/report.js +5 -4
  34. package/dist/commands/restore.js +13 -12
  35. package/dist/commands/snapshot.d.ts +7 -0
  36. package/dist/commands/snapshot.js +36 -8
  37. package/dist/commands/sync.js +15 -14
  38. package/dist/index.js +14 -14
  39. package/package.json +2 -2
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  Diff
3
- } from "../chunk-4IVN7QVY.js";
4
- import "../chunk-6Q7MHFBM.js";
5
- import "../chunk-GEHPTPNZ.js";
6
- import "../chunk-3HGAV5CC.js";
7
- import "../chunk-DMIWAJRB.js";
8
- import "../chunk-UWAVXC57.js";
9
- import "../chunk-BUOWHE36.js";
10
- import "../chunk-G2DIPIYU.js";
11
- import "../chunk-BLKJWDTL.js";
12
- import "../chunk-GZREXCQZ.js";
13
- import "../chunk-ORQJVE57.js";
14
- import "../chunk-MIRLB5JM.js";
3
+ } from "../chunk-PYAGSMFB.js";
4
+ import "../chunk-HNJ6BNNZ.js";
5
+ import "../chunk-7DL63NWP.js";
6
+ import "../chunk-OB5GP7UB.js";
7
+ import "../chunk-3WKWPSFN.js";
8
+ import "../chunk-DQJSSTIJ.js";
9
+ import "../chunk-N5VNNOA2.js";
10
+ import "../chunk-WK5YTINL.js";
11
+ import "../chunk-ZI435CAU.js";
12
+ import "../chunk-5STH2A6K.js";
13
+ import "../chunk-EFKQOQGG.js";
14
+ import "../chunk-ICSCHS72.js";
15
15
  import "../chunk-DQQ5E563.js";
16
- import "../chunk-SQPCWGQO.js";
17
- import "../chunk-6WAMNZLO.js";
16
+ import "../chunk-MG3SFV5J.js";
17
+ import "../chunk-GQPGH6YR.js";
18
+ import "../chunk-KNXHLVF7.js";
18
19
 
19
20
  // src/commands/hukam.ts
20
21
  var Hukam = class extends Diff {
@@ -1,3 +1,6 @@
1
+ import {
2
+ installProcessGuard
3
+ } from "../chunk-GQPGH6YR.js";
1
4
  import {
2
5
  INIT_HINTS,
3
6
  SUPAFORGE_DIR,
@@ -12,7 +15,7 @@ import {
12
15
  validateConfig,
13
16
  validateSingleEnvConfig,
14
17
  warn
15
- } from "../chunk-6WAMNZLO.js";
18
+ } from "../chunk-KNXHLVF7.js";
16
19
 
17
20
  // src/commands/init.ts
18
21
  import { Command, Flags } from "@oclif/core";
@@ -248,6 +251,7 @@ var Init = class _Init extends Command {
248
251
  })
249
252
  };
250
253
  async run() {
254
+ installProcessGuard(this.argv);
251
255
  const { flags } = await this.parse(_Init);
252
256
  const configPath = resolve(process.cwd(), CONFIG_FILENAME);
253
257
  if (!flags.force) {
@@ -1,15 +1,19 @@
1
1
  import {
2
2
  createServer
3
- } from "../chunk-6LJERPUN.js";
4
- import "../chunk-NTUASFQ3.js";
5
- import "../chunk-3HGAV5CC.js";
6
- import "../chunk-UWAVXC57.js";
7
- import "../chunk-BUOWHE36.js";
8
- import "../chunk-G2DIPIYU.js";
9
- import "../chunk-MIRLB5JM.js";
3
+ } from "../chunk-6ERVCWLY.js";
4
+ import "../chunk-V2SBZERO.js";
5
+ import "../chunk-OB5GP7UB.js";
6
+ import "../chunk-DQJSSTIJ.js";
7
+ import "../chunk-N5VNNOA2.js";
8
+ import "../chunk-WK5YTINL.js";
9
+ import "../chunk-ICSCHS72.js";
10
10
  import "../chunk-DQQ5E563.js";
11
- import "../chunk-SQPCWGQO.js";
12
- import "../chunk-6WAMNZLO.js";
11
+ import "../chunk-MG3SFV5J.js";
12
+ import {
13
+ installProcessGuard,
14
+ keepRunningOnStrayErrors
15
+ } from "../chunk-GQPGH6YR.js";
16
+ import "../chunk-KNXHLVF7.js";
13
17
 
14
18
  // src/commands/mcp.ts
15
19
  import { existsSync, statSync } from "fs";
@@ -34,6 +38,8 @@ var Mcp = class _Mcp extends Command {
34
38
  })
35
39
  };
36
40
  async run() {
41
+ keepRunningOnStrayErrors();
42
+ installProcessGuard(this.argv);
37
43
  const { flags } = await this.parse(_Mcp);
38
44
  const project = resolve(flags.project ?? process.cwd());
39
45
  if (!existsSync(project) || !statSync(project).isDirectory()) {
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  baselineMigrations
3
- } from "../../chunk-SC2XHGIS.js";
3
+ } from "../../chunk-S5L4A3UR.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-GZREXCQZ.js";
7
- import "../../chunk-SQPCWGQO.js";
6
+ } from "../../chunk-5STH2A6K.js";
7
+ import "../../chunk-MG3SFV5J.js";
8
+ import "../../chunk-GQPGH6YR.js";
8
9
  import {
9
10
  bold,
10
11
  dim,
11
12
  ok
12
- } from "../../chunk-6WAMNZLO.js";
13
+ } from "../../chunk-KNXHLVF7.js";
13
14
 
14
15
  // src/commands/migrate/baseline.ts
15
16
  import { Flags } from "@oclif/core";
@@ -1,21 +1,22 @@
1
1
  import {
2
2
  truncateSql
3
- } from "../../chunk-2SELREHW.js";
4
- import "../../chunk-SC2XHGIS.js";
3
+ } from "../../chunk-TPX2MAO4.js";
4
+ import "../../chunk-S5L4A3UR.js";
5
5
  import {
6
6
  isDestructiveSql,
7
7
  runDbDiff
8
- } from "../../chunk-BUOWHE36.js";
8
+ } from "../../chunk-N5VNNOA2.js";
9
9
  import {
10
10
  splitSqlStatements
11
- } from "../../chunk-G2DIPIYU.js";
11
+ } from "../../chunk-WK5YTINL.js";
12
12
  import {
13
13
  BaseCommand
14
- } from "../../chunk-GZREXCQZ.js";
14
+ } from "../../chunk-5STH2A6K.js";
15
15
  import {
16
16
  slugify
17
17
  } from "../../chunk-DQQ5E563.js";
18
- import "../../chunk-SQPCWGQO.js";
18
+ import "../../chunk-MG3SFV5J.js";
19
+ import "../../chunk-GQPGH6YR.js";
19
20
  import {
20
21
  DEFAULT_IGNORE_SCHEMAS,
21
22
  bold,
@@ -23,7 +24,7 @@ import {
23
24
  dim,
24
25
  ok,
25
26
  warn
26
- } from "../../chunk-6WAMNZLO.js";
27
+ } from "../../chunk-KNXHLVF7.js";
27
28
 
28
29
  // src/commands/migrate/create.ts
29
30
  import { writeFile, mkdir } from "fs/promises";
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  getAppliedVersions
3
- } from "../../chunk-SC2XHGIS.js";
3
+ } from "../../chunk-S5L4A3UR.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-GZREXCQZ.js";
6
+ } from "../../chunk-5STH2A6K.js";
7
7
  import {
8
- errMsg,
9
8
  pgQuery,
10
9
  readLocalMigrations
11
- } from "../../chunk-SQPCWGQO.js";
10
+ } from "../../chunk-MG3SFV5J.js";
11
+ import "../../chunk-GQPGH6YR.js";
12
12
  import {
13
13
  bold,
14
14
  dim,
15
+ errMsg,
15
16
  ok,
16
17
  warn
17
- } from "../../chunk-6WAMNZLO.js";
18
+ } from "../../chunk-KNXHLVF7.js";
18
19
 
19
20
  // src/commands/migrate/list.ts
20
21
  import { Flags } from "@oclif/core";
@@ -2,14 +2,15 @@ import {
2
2
  MigrateRun,
3
3
  findDestructiveStatements,
4
4
  truncateSql
5
- } from "../../chunk-2SELREHW.js";
6
- import "../../chunk-SC2XHGIS.js";
7
- import "../../chunk-BUOWHE36.js";
8
- import "../../chunk-G2DIPIYU.js";
9
- import "../../chunk-GZREXCQZ.js";
5
+ } from "../../chunk-TPX2MAO4.js";
6
+ import "../../chunk-S5L4A3UR.js";
7
+ import "../../chunk-N5VNNOA2.js";
8
+ import "../../chunk-WK5YTINL.js";
9
+ import "../../chunk-5STH2A6K.js";
10
10
  import "../../chunk-DQQ5E563.js";
11
- import "../../chunk-SQPCWGQO.js";
12
- import "../../chunk-6WAMNZLO.js";
11
+ import "../../chunk-MG3SFV5J.js";
12
+ import "../../chunk-GQPGH6YR.js";
13
+ import "../../chunk-KNXHLVF7.js";
13
14
  export {
14
15
  MigrateRun as default,
15
16
  findDestructiveStatements,
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  sanitizeForReport
3
- } from "../chunk-6Q7MHFBM.js";
3
+ } from "../chunk-HNJ6BNNZ.js";
4
4
  import {
5
5
  BaseCommand,
6
6
  readRunLog,
7
7
  runLogPath
8
- } from "../chunk-GZREXCQZ.js";
9
- import "../chunk-SQPCWGQO.js";
8
+ } from "../chunk-5STH2A6K.js";
9
+ import "../chunk-MG3SFV5J.js";
10
+ import "../chunk-GQPGH6YR.js";
10
11
  import {
11
12
  bold,
12
13
  cmd,
13
14
  dim,
14
15
  ok,
15
16
  warn
16
- } from "../chunk-6WAMNZLO.js";
17
+ } from "../chunk-KNXHLVF7.js";
17
18
 
18
19
  // src/commands/report.ts
19
20
  import { Flags } from "@oclif/core";
@@ -5,29 +5,30 @@ import {
5
5
  restoreFromMigrations,
6
6
  restoreFromSnapshot,
7
7
  summarizeStatement
8
- } from "../chunk-7NAZGZPV.js";
9
- import "../chunk-NTUASFQ3.js";
10
- import "../chunk-SC2XHGIS.js";
11
- import "../chunk-DMIWAJRB.js";
12
- import "../chunk-UWAVXC57.js";
13
- import "../chunk-BUOWHE36.js";
14
- import "../chunk-G2DIPIYU.js";
8
+ } from "../chunk-F46FFUKC.js";
9
+ import "../chunk-V2SBZERO.js";
10
+ import "../chunk-S5L4A3UR.js";
11
+ import "../chunk-3WKWPSFN.js";
12
+ import "../chunk-DQJSSTIJ.js";
13
+ import "../chunk-N5VNNOA2.js";
14
+ import "../chunk-WK5YTINL.js";
15
15
  import {
16
16
  renderTip
17
- } from "../chunk-BLKJWDTL.js";
17
+ } from "../chunk-ZI435CAU.js";
18
18
  import {
19
19
  BaseCommand
20
- } from "../chunk-GZREXCQZ.js";
20
+ } from "../chunk-5STH2A6K.js";
21
21
  import {
22
22
  findLatestSnapshot,
23
23
  listSnapshots
24
- } from "../chunk-MIRLB5JM.js";
24
+ } from "../chunk-ICSCHS72.js";
25
25
  import "../chunk-DQQ5E563.js";
26
- import "../chunk-SQPCWGQO.js";
26
+ import "../chunk-MG3SFV5J.js";
27
+ import "../chunk-GQPGH6YR.js";
27
28
  import {
28
29
  cmd,
29
30
  warn
30
- } from "../chunk-6WAMNZLO.js";
31
+ } from "../chunk-KNXHLVF7.js";
31
32
 
32
33
  // src/commands/restore.ts
33
34
  import { Flags } from "@oclif/core";
@@ -24,9 +24,16 @@ declare class Snapshot extends BaseCommand {
24
24
  keep: _oclif_core_interfaces.OptionFlag<number, _oclif_core_interfaces.CustomOptions>;
25
25
  apply: _oclif_core_interfaces.BooleanFlag<boolean>;
26
26
  json: _oclif_core_interfaces.BooleanFlag<boolean>;
27
+ 'allow-schema-json-only': _oclif_core_interfaces.BooleanFlag<boolean>;
27
28
  output: _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
28
29
  };
29
30
  run(): Promise<void>;
31
+ /**
32
+ * A snapshot without schema.sql cannot restore its schema, and the time to
33
+ * find that out is not during a restore. It is kept — it can still be
34
+ * diffed — but the command fails unless that was asked for.
35
+ */
36
+ private failIfUnrestorable;
30
37
  private logSnapshotResult;
31
38
  }
32
39
 
@@ -1,30 +1,32 @@
1
1
  import {
2
2
  backup,
3
3
  listMigrationFiles
4
- } from "../chunk-NTUASFQ3.js";
5
- import "../chunk-G2DIPIYU.js";
4
+ } from "../chunk-V2SBZERO.js";
5
+ import "../chunk-WK5YTINL.js";
6
6
  import {
7
7
  renderTip
8
- } from "../chunk-BLKJWDTL.js";
8
+ } from "../chunk-ZI435CAU.js";
9
9
  import {
10
10
  BaseCommand
11
- } from "../chunk-GZREXCQZ.js";
11
+ } from "../chunk-5STH2A6K.js";
12
12
  import {
13
13
  DEFAULT_KEEP_COUNT,
14
14
  captureSnapshot,
15
15
  formatSnapshotLayers,
16
16
  listSnapshots,
17
- pruneSnapshots
18
- } from "../chunk-MIRLB5JM.js";
17
+ pruneSnapshots,
18
+ unrestorableSchema
19
+ } from "../chunk-ICSCHS72.js";
19
20
  import "../chunk-DQQ5E563.js";
20
- import "../chunk-SQPCWGQO.js";
21
+ import "../chunk-MG3SFV5J.js";
22
+ import "../chunk-GQPGH6YR.js";
21
23
  import {
22
24
  bold,
23
25
  cmd,
24
26
  dim,
25
27
  ok,
26
28
  warn
27
- } from "../chunk-6WAMNZLO.js";
29
+ } from "../chunk-KNXHLVF7.js";
28
30
 
29
31
  // src/commands/snapshot.ts
30
32
  import { Flags } from "@oclif/core";
@@ -84,6 +86,10 @@ var Snapshot = class _Snapshot extends BaseCommand {
84
86
  default: false
85
87
  }),
86
88
  json: Flags.boolean({ description: "Output results as JSON" }),
89
+ "allow-schema-json-only": Flags.boolean({
90
+ description: "Succeed even when no pg_dump could write schema.sql: the snapshot can still be diffed, but restore cannot recreate its schema. Without this, such a snapshot is kept and the command exits 1.",
91
+ default: false
92
+ }),
87
93
  output: Flags.string({
88
94
  char: "o",
89
95
  description: "Custom output directory for snapshot files (timestamp subfolder is created inside)"
@@ -194,6 +200,7 @@ Capturing snapshot of "${envName}" with migration...
194
200
  migration: result.migration,
195
201
  migrationFile: result.migrationFile
196
202
  });
203
+ this.failIfUnrestorable(result.snapshot.manifest, result.snapshot.dir, flags["allow-schema-json-only"]);
197
204
  return;
198
205
  }
199
206
  this.logSnapshotResult(result.snapshot.manifest);
@@ -211,6 +218,7 @@ Capturing snapshot of "${envName}" with migration...
211
218
  } else {
212
219
  this.log(` ${dim("Migration:")} none (no changes detected)`);
213
220
  }
221
+ this.failIfUnrestorable(result.snapshot.manifest, result.snapshot.dir, flags["allow-schema-json-only"]);
214
222
  this.log(`
215
223
  ${ok("Snapshot + migration complete.")}
216
224
  `);
@@ -223,11 +231,13 @@ Capturing snapshot of "${envName}"...
223
231
  const snapshot = await captureSnapshot({ envName, env, config, outputDir: flags.output });
224
232
  if (flags.json) {
225
233
  this.json(snapshot.manifest);
234
+ this.failIfUnrestorable(snapshot.manifest, snapshot.dir, flags["allow-schema-json-only"]);
226
235
  return;
227
236
  }
228
237
  this.logSnapshotResult(snapshot.manifest);
229
238
  this.log(`
230
239
  ${dim("Snapshot saved to:")} ${snapshot.dir}`);
240
+ this.failIfUnrestorable(snapshot.manifest, snapshot.dir, flags["allow-schema-json-only"]);
231
241
  const existing = await listMigrationFiles();
232
242
  if (existing.length > 0) {
233
243
  this.log(` \u2192 Run with ${cmd("--migration")} to also generate an incremental diff.`);
@@ -237,6 +247,24 @@ Capturing snapshot of "${envName}"...
237
247
  this.log("");
238
248
  this.log(renderTip({ command: "snapshot", snapshotMigration: false, snapshotList: false }));
239
249
  }
250
+ /**
251
+ * A snapshot without schema.sql cannot restore its schema, and the time to
252
+ * find that out is not during a restore. It is kept — it can still be
253
+ * diffed — but the command fails unless that was asked for.
254
+ */
255
+ failIfUnrestorable(manifest, dir, allowed) {
256
+ const reason = unrestorableSchema(manifest);
257
+ if (!reason) return;
258
+ if (allowed) {
259
+ this.warn(`This snapshot cannot restore the schema: ${reason}`);
260
+ return;
261
+ }
262
+ this.error(
263
+ `This snapshot cannot restore the schema: ${reason}.
264
+ It was kept at ${dir}, and can still be diffed. Install PostgreSQL client tools at least as new as the server (or set SUPAFORGE_PG_BIN to them) and snapshot again, or pass --allow-schema-json-only to accept a snapshot whose schema cannot be restored.`,
265
+ { exit: 1 }
266
+ );
267
+ }
240
268
  logSnapshotResult(manifest) {
241
269
  for (const line of formatSnapshotLayers(manifest)) {
242
270
  this.log(` ${line}`);
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  Diff
3
- } from "../chunk-4IVN7QVY.js";
4
- import "../chunk-6Q7MHFBM.js";
5
- import "../chunk-GEHPTPNZ.js";
6
- import "../chunk-3HGAV5CC.js";
7
- import "../chunk-DMIWAJRB.js";
8
- import "../chunk-UWAVXC57.js";
9
- import "../chunk-BUOWHE36.js";
10
- import "../chunk-G2DIPIYU.js";
11
- import "../chunk-BLKJWDTL.js";
12
- import "../chunk-GZREXCQZ.js";
13
- import "../chunk-ORQJVE57.js";
14
- import "../chunk-MIRLB5JM.js";
3
+ } from "../chunk-PYAGSMFB.js";
4
+ import "../chunk-HNJ6BNNZ.js";
5
+ import "../chunk-7DL63NWP.js";
6
+ import "../chunk-OB5GP7UB.js";
7
+ import "../chunk-3WKWPSFN.js";
8
+ import "../chunk-DQJSSTIJ.js";
9
+ import "../chunk-N5VNNOA2.js";
10
+ import "../chunk-WK5YTINL.js";
11
+ import "../chunk-ZI435CAU.js";
12
+ import "../chunk-5STH2A6K.js";
13
+ import "../chunk-EFKQOQGG.js";
14
+ import "../chunk-ICSCHS72.js";
15
15
  import "../chunk-DQQ5E563.js";
16
- import "../chunk-SQPCWGQO.js";
17
- import "../chunk-6WAMNZLO.js";
16
+ import "../chunk-MG3SFV5J.js";
17
+ import "../chunk-GQPGH6YR.js";
18
+ import "../chunk-KNXHLVF7.js";
18
19
 
19
20
  // src/commands/sync.ts
20
21
  var Sync = class extends Diff {
package/dist/index.js CHANGED
@@ -3,38 +3,38 @@ import {
3
3
  createServer,
4
4
  getLastScanResult,
5
5
  setLastScanResult
6
- } from "./chunk-6LJERPUN.js";
6
+ } from "./chunk-6ERVCWLY.js";
7
7
  import {
8
8
  previewMigrationRestore,
9
9
  previewSnapshotRestore,
10
10
  restoreFromMigrations,
11
11
  restoreFromSnapshot
12
- } from "./chunk-7NAZGZPV.js";
12
+ } from "./chunk-F46FFUKC.js";
13
13
  import {
14
14
  backup,
15
15
  listMigrationFiles,
16
16
  loadMigrations
17
- } from "./chunk-NTUASFQ3.js";
18
- import "./chunk-SC2XHGIS.js";
17
+ } from "./chunk-V2SBZERO.js";
18
+ import "./chunk-S5L4A3UR.js";
19
19
  import {
20
20
  renderDetailed,
21
21
  renderSummary
22
- } from "./chunk-GEHPTPNZ.js";
22
+ } from "./chunk-7DL63NWP.js";
23
23
  import {
24
24
  CheckRegistry,
25
25
  computeScore,
26
26
  createDefaultRegistry,
27
27
  scan,
28
28
  summarize
29
- } from "./chunk-3HGAV5CC.js";
30
- import "./chunk-DMIWAJRB.js";
29
+ } from "./chunk-OB5GP7UB.js";
30
+ import "./chunk-3WKWPSFN.js";
31
31
  import {
32
32
  CHECK_META,
33
33
  CHECK_NAMES,
34
34
  promote
35
- } from "./chunk-UWAVXC57.js";
36
- import "./chunk-BUOWHE36.js";
37
- import "./chunk-G2DIPIYU.js";
35
+ } from "./chunk-DQJSSTIJ.js";
36
+ import "./chunk-N5VNNOA2.js";
37
+ import "./chunk-WK5YTINL.js";
38
38
  import {
39
39
  BRANCH_DB_PREFIX,
40
40
  branchDbName,
@@ -43,23 +43,23 @@ import {
43
43
  listBranches,
44
44
  loadManifest,
45
45
  replaceDbName
46
- } from "./chunk-ORQJVE57.js";
46
+ } from "./chunk-EFKQOQGG.js";
47
47
  import {
48
48
  captureSnapshot,
49
49
  findLatestSnapshot,
50
50
  listSnapshots,
51
51
  loadSnapshot
52
- } from "./chunk-MIRLB5JM.js";
52
+ } from "./chunk-ICSCHS72.js";
53
53
  import "./chunk-DQQ5E563.js";
54
54
  import {
55
55
  Check
56
- } from "./chunk-SQPCWGQO.js";
56
+ } from "./chunk-MG3SFV5J.js";
57
57
  import {
58
58
  loadConfig,
59
59
  resolveConfig,
60
60
  validateConfig,
61
61
  validateSingleEnvConfig
62
- } from "./chunk-6WAMNZLO.js";
62
+ } from "./chunk-KNXHLVF7.js";
63
63
 
64
64
  // src/hooks.ts
65
65
  var HookBus = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akal/supaforge",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "mcpName": "io.github.akalsoftware/supaforge",
5
5
  "description": "Diff and sync your Supabase environments",
6
6
  "author": "Akal Software Ltd",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@akal/pg-conformance": "~0.0.16",
59
- "@dbdiff/cli": "3.0.0-rc.27",
59
+ "@dbdiff/cli": "3.0.0-rc.28",
60
60
  "@modelcontextprotocol/sdk": "^1.32.1",
61
61
  "@oclif/core": "^4",
62
62
  "@supabase/supabase-js": "^2.103.0",