@akal/supaforge 0.0.39 → 0.0.40
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.
- package/dist/{chunk-5RMEQPPU.js → chunk-74WHN535.js} +2 -2
- package/dist/{chunk-FD2JKEJA.js → chunk-CEKRRFFL.js} +24 -11
- package/dist/{chunk-LJY3AK2P.js → chunk-IYDZ2M5D.js} +2 -2
- package/dist/{chunk-PE5PENCB.js → chunk-JCKQ5MUQ.js} +2 -2
- package/dist/{chunk-FBYONIJS.js → chunk-PAU4BGXZ.js} +3 -3
- package/dist/{chunk-EETO4RJO.js → chunk-RKAATBY5.js} +2 -2
- package/dist/{chunk-35TXJGDQ.js → chunk-U6LWDMTS.js} +5 -5
- package/dist/{chunk-EHJWKKFL.js → chunk-U7GNRHEU.js} +3 -3
- package/dist/{chunk-2HJPUDPP.js → chunk-UYXYRZ23.js} +5 -1
- package/dist/{chunk-64S3EP7Y.js → chunk-ZAJ4GBDS.js} +4 -4
- package/dist/commands/clone.d.ts +1 -1
- package/dist/commands/clone.js +6 -5
- package/dist/commands/diff.js +5 -5
- package/dist/commands/hukam.js +5 -5
- package/dist/commands/mcp.js +5 -5
- package/dist/commands/migrate/create.js +4 -4
- package/dist/commands/migrate/run.js +3 -3
- package/dist/commands/restore.js +2 -2
- package/dist/commands/sync.js +5 -5
- package/dist/index.js +8 -8
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
comparedSchemas,
|
|
3
3
|
fingerprint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UYXYRZ23.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-
|
|
27
|
+
//# sourceMappingURL=chunk-74WHN535.js.map
|
|
@@ -99,6 +99,17 @@ function replaceDbName(sourceUrl, dbName) {
|
|
|
99
99
|
u.pathname = `/${dbName}`;
|
|
100
100
|
return u.toString();
|
|
101
101
|
}
|
|
102
|
+
function dbNameOf(url) {
|
|
103
|
+
return decodeURIComponent(new URL(url).pathname.replace(/^\//, ""));
|
|
104
|
+
}
|
|
105
|
+
function maintenanceUrl(baseUrl, dbName) {
|
|
106
|
+
return dbNameOf(baseUrl) === dbName ? replaceDbName(baseUrl, "postgres") : baseUrl;
|
|
107
|
+
}
|
|
108
|
+
function cloneTargetName(localUrl, explicit) {
|
|
109
|
+
if (explicit) return explicit;
|
|
110
|
+
const named = dbNameOf(localUrl);
|
|
111
|
+
return named && named !== "postgres" ? named : "supaforge_local";
|
|
112
|
+
}
|
|
102
113
|
function parseUrl(url) {
|
|
103
114
|
const u = new URL(url);
|
|
104
115
|
return {
|
|
@@ -176,8 +187,8 @@ async function createBranch(opts) {
|
|
|
176
187
|
}
|
|
177
188
|
async function tryTemplateCopy(sourceUrl, newDb) {
|
|
178
189
|
const { database } = parseUrl(sourceUrl);
|
|
179
|
-
const
|
|
180
|
-
const client = newPgClient(
|
|
190
|
+
const maintenanceUrl2 = replaceDbName(sourceUrl, "postgres");
|
|
191
|
+
const client = newPgClient(maintenanceUrl2);
|
|
181
192
|
try {
|
|
182
193
|
await client.connect();
|
|
183
194
|
await client.query(`CREATE DATABASE ${quoteName(newDb)} TEMPLATE ${quoteName(database)}`);
|
|
@@ -189,8 +200,8 @@ async function tryTemplateCopy(sourceUrl, newDb) {
|
|
|
189
200
|
}
|
|
190
201
|
}
|
|
191
202
|
async function tryDumpRestore(sourceUrl, newDb, schemaOnly, pgDumpPath = "pg_dump", pgRestorePath = "pg_restore") {
|
|
192
|
-
const
|
|
193
|
-
const client = newPgClient(
|
|
203
|
+
const maintenanceUrl2 = replaceDbName(sourceUrl, "postgres");
|
|
204
|
+
const client = newPgClient(maintenanceUrl2);
|
|
194
205
|
try {
|
|
195
206
|
await client.connect();
|
|
196
207
|
await client.query(`CREATE DATABASE ${quoteName(newDb)}`);
|
|
@@ -257,7 +268,7 @@ async function tryDumpRestore(sourceUrl, newDb, schemaOnly, pgDumpPath = "pg_dum
|
|
|
257
268
|
});
|
|
258
269
|
return true;
|
|
259
270
|
} catch {
|
|
260
|
-
const cleanup = newPgClient(
|
|
271
|
+
const cleanup = newPgClient(maintenanceUrl2);
|
|
261
272
|
try {
|
|
262
273
|
await cleanup.connect();
|
|
263
274
|
await cleanup.query(`DROP DATABASE IF EXISTS ${quoteName(newDb)}`);
|
|
@@ -272,8 +283,8 @@ async function listBranches(cwd = process.cwd()) {
|
|
|
272
283
|
return manifest.branches;
|
|
273
284
|
}
|
|
274
285
|
async function listServerDatabases(serverUrl) {
|
|
275
|
-
const
|
|
276
|
-
const client = newPgClient(
|
|
286
|
+
const maintenanceUrl2 = replaceDbName(serverUrl, "postgres");
|
|
287
|
+
const client = newPgClient(maintenanceUrl2);
|
|
277
288
|
try {
|
|
278
289
|
await client.connect();
|
|
279
290
|
const { rows } = await client.query(
|
|
@@ -334,8 +345,8 @@ async function deleteBranch(name, sourceUrl, cwd = process.cwd()) {
|
|
|
334
345
|
const idx = manifest.branches.findIndex((b) => b.name === name);
|
|
335
346
|
if (idx === -1) throw new Error(`Branch "${name}" not found.`);
|
|
336
347
|
const branch = manifest.branches[idx];
|
|
337
|
-
const
|
|
338
|
-
const client = newPgClient(
|
|
348
|
+
const maintenanceUrl2 = replaceDbName(sourceUrl, "postgres");
|
|
349
|
+
const client = newPgClient(maintenanceUrl2);
|
|
339
350
|
try {
|
|
340
351
|
await client.connect();
|
|
341
352
|
await client.query(
|
|
@@ -354,7 +365,7 @@ async function cloneRemoteToLocal(opts) {
|
|
|
354
365
|
if (!compat.compatible) {
|
|
355
366
|
throw new Error(compat.message);
|
|
356
367
|
}
|
|
357
|
-
const localMaintenanceUrl = opts.localBaseUrl;
|
|
368
|
+
const localMaintenanceUrl = maintenanceUrl(opts.localBaseUrl, opts.localDbName);
|
|
358
369
|
const localDbUrl = replaceDbName(opts.localBaseUrl, opts.localDbName);
|
|
359
370
|
const client = newPgClient(localMaintenanceUrl);
|
|
360
371
|
try {
|
|
@@ -630,6 +641,8 @@ export {
|
|
|
630
641
|
BRANCH_DB_PREFIX,
|
|
631
642
|
branchDbName,
|
|
632
643
|
replaceDbName,
|
|
644
|
+
maintenanceUrl,
|
|
645
|
+
cloneTargetName,
|
|
633
646
|
loadManifest,
|
|
634
647
|
createBranch,
|
|
635
648
|
listBranches,
|
|
@@ -640,4 +653,4 @@ export {
|
|
|
640
653
|
isCloneDatabase,
|
|
641
654
|
sourceLooksLikeCloneOf
|
|
642
655
|
};
|
|
643
|
-
//# sourceMappingURL=chunk-
|
|
656
|
+
//# sourceMappingURL=chunk-CEKRRFFL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CHECK_META,
|
|
3
3
|
isComparisonCheck
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UYXYRZ23.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-
|
|
244
|
+
//# sourceMappingURL=chunk-IYDZ2M5D.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sqlSkeleton,
|
|
19
19
|
sqlToIssues,
|
|
20
20
|
withoutAbsentRoles
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UYXYRZ23.js";
|
|
22
22
|
import {
|
|
23
23
|
splitSqlStatements
|
|
24
24
|
} from "./chunk-WK5YTINL.js";
|
|
@@ -2509,4 +2509,4 @@ export {
|
|
|
2509
2509
|
createDefaultRegistry,
|
|
2510
2510
|
proveBeforeApply
|
|
2511
2511
|
};
|
|
2512
|
-
//# sourceMappingURL=chunk-
|
|
2512
|
+
//# sourceMappingURL=chunk-JCKQ5MUQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainst
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-74WHN535.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureMigrationsTable,
|
|
7
7
|
getAppliedVersions,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-AL6INEFX.js";
|
|
11
11
|
import {
|
|
12
12
|
isDestructiveSql
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UYXYRZ23.js";
|
|
14
14
|
import {
|
|
15
15
|
splitSqlStatements
|
|
16
16
|
} from "./chunk-WK5YTINL.js";
|
|
@@ -180,4 +180,4 @@ export {
|
|
|
180
180
|
findDestructiveStatements,
|
|
181
181
|
truncateSql
|
|
182
182
|
};
|
|
183
|
-
//# sourceMappingURL=chunk-
|
|
183
|
+
//# sourceMappingURL=chunk-PAU4BGXZ.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
rolesNamedBy,
|
|
19
19
|
sqlSkeleton,
|
|
20
20
|
statementSubject
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UYXYRZ23.js";
|
|
22
22
|
import {
|
|
23
23
|
isCommentOnly,
|
|
24
24
|
isPsqlMetaCommand,
|
|
@@ -900,4 +900,4 @@ export {
|
|
|
900
900
|
previewMigrationRestore,
|
|
901
901
|
summarizeStatement
|
|
902
902
|
};
|
|
903
|
-
//# sourceMappingURL=chunk-
|
|
903
|
+
//# sourceMappingURL=chunk-RKAATBY5.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
formatSkips,
|
|
7
7
|
renderDetailed,
|
|
8
8
|
renderSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IYDZ2M5D.js";
|
|
10
10
|
import {
|
|
11
11
|
createDefaultRegistry,
|
|
12
12
|
proveBeforeApply,
|
|
13
13
|
scan,
|
|
14
14
|
summarizeByKind
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JCKQ5MUQ.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-
|
|
27
|
+
} from "./chunk-UYXYRZ23.js";
|
|
28
28
|
import {
|
|
29
29
|
isCommentOnly,
|
|
30
30
|
splitSqlStatements
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
isCloneDatabase,
|
|
40
40
|
sourceLooksLikeCloneOf
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CEKRRFFL.js";
|
|
42
42
|
import {
|
|
43
43
|
describeMissingPgDump,
|
|
44
44
|
getServerMajorVersion,
|
|
@@ -756,4 +756,4 @@ export {
|
|
|
756
756
|
inertApplyFlags,
|
|
757
757
|
Diff
|
|
758
758
|
};
|
|
759
|
-
//# sourceMappingURL=chunk-
|
|
759
|
+
//# sourceMappingURL=chunk-U6LWDMTS.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainstLine
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-74WHN535.js";
|
|
5
5
|
import {
|
|
6
6
|
RolesCheck,
|
|
7
7
|
isDestructiveSql,
|
|
8
8
|
runDbDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UYXYRZ23.js";
|
|
10
10
|
import {
|
|
11
11
|
splitSqlStatements
|
|
12
12
|
} from "./chunk-WK5YTINL.js";
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
writeMigrationFile,
|
|
92
92
|
generateTimestamp
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-U7GNRHEU.js.map
|
|
@@ -2053,6 +2053,7 @@ function withoutAbsentRoles(issues, targetRoles) {
|
|
|
2053
2053
|
|
|
2054
2054
|
// src/pg-errors.ts
|
|
2055
2055
|
var ABSENT_ON_TARGET = /* @__PURE__ */ new Set(["42P01", "42883", "3F000", "42704"]);
|
|
2056
|
+
var DEPENDENT_OBJECTS_STILL_EXIST = "2BP01";
|
|
2056
2057
|
var UNDEFINED_COLUMN = "42703";
|
|
2057
2058
|
var EXTENSION_UNAVAILABLE = /* @__PURE__ */ new Set(["0A000", "58P01"]);
|
|
2058
2059
|
function sqlState(err) {
|
|
@@ -2359,6 +2360,9 @@ function unmetDependency(sql, err, olderTarget = false) {
|
|
|
2359
2360
|
if (ABSENT_ON_TARGET.has(code) || code === UNDEFINED_COLUMN) {
|
|
2360
2361
|
return "it needs something the target does not have";
|
|
2361
2362
|
}
|
|
2363
|
+
if (code === DEPENDENT_OBJECTS_STILL_EXIST && /^\s*DROP\s+ROLE\b/i.test(sqlSkeleton(sql))) {
|
|
2364
|
+
return "the role still owns or is granted objects on this server, in this or another database; reassign or drop those (REASSIGN OWNED / DROP OWNED in each database) before dropping it";
|
|
2365
|
+
}
|
|
2362
2366
|
return void 0;
|
|
2363
2367
|
}
|
|
2364
2368
|
function revokesFromAbsent(sql) {
|
|
@@ -3255,4 +3259,4 @@ export {
|
|
|
3255
3259
|
residualHeldBack,
|
|
3256
3260
|
proofScope
|
|
3257
3261
|
};
|
|
3258
|
-
//# sourceMappingURL=chunk-
|
|
3262
|
+
//# sourceMappingURL=chunk-UYXYRZ23.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrationsDir,
|
|
3
3
|
writeMigrationFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U7GNRHEU.js";
|
|
5
5
|
import {
|
|
6
6
|
createDefaultRegistry,
|
|
7
7
|
proveBeforeApply,
|
|
8
8
|
scan
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JCKQ5MUQ.js";
|
|
10
10
|
import {
|
|
11
11
|
CHECK_NAMES,
|
|
12
12
|
promote
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UYXYRZ23.js";
|
|
14
14
|
import {
|
|
15
15
|
captureSnapshot,
|
|
16
16
|
unrestorableSchema
|
|
@@ -530,4 +530,4 @@ export {
|
|
|
530
530
|
clearLastScanResult,
|
|
531
531
|
createServer
|
|
532
532
|
};
|
|
533
|
-
//# sourceMappingURL=chunk-
|
|
533
|
+
//# sourceMappingURL=chunk-ZAJ4GBDS.js.map
|
package/dist/commands/clone.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare class Clone extends BaseCommand {
|
|
|
18
18
|
static examples: string[];
|
|
19
19
|
static flags: {
|
|
20
20
|
env: _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
|
|
21
|
-
'local-db': _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
|
|
21
|
+
'local-db': _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
|
|
22
22
|
'local-url': _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
|
|
23
23
|
'start-local': _oclif_core_interfaces.BooleanFlag<boolean>;
|
|
24
24
|
'schema-only': _oclif_core_interfaces.BooleanFlag<boolean>;
|
package/dist/commands/clone.js
CHANGED
|
@@ -7,11 +7,13 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
addBranchToManifest,
|
|
9
9
|
cloneRemoteToLocal,
|
|
10
|
+
cloneTargetName,
|
|
10
11
|
deleteBranch,
|
|
11
12
|
listBranches,
|
|
13
|
+
maintenanceUrl,
|
|
12
14
|
reconcileClones,
|
|
13
15
|
replaceDbName
|
|
14
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-CEKRRFFL.js";
|
|
15
17
|
import {
|
|
16
18
|
captureSnapshot,
|
|
17
19
|
formatSnapshotLayers
|
|
@@ -68,8 +70,7 @@ var Clone = class _Clone extends BaseCommand {
|
|
|
68
70
|
description: "Source environment to clone from (defaults to config source)"
|
|
69
71
|
}),
|
|
70
72
|
"local-db": Flags.string({
|
|
71
|
-
description: "Name for the local database (default: supaforge_local)"
|
|
72
|
-
default: "supaforge_local"
|
|
73
|
+
description: "Name for the local database (default: the one --local-url names, else supaforge_local)"
|
|
73
74
|
}),
|
|
74
75
|
"local-url": Flags.string({
|
|
75
76
|
description: "Local PostgreSQL URL (default: postgres://postgres:postgres@localhost:5432/postgres)",
|
|
@@ -178,7 +179,6 @@ var Clone = class _Clone extends BaseCommand {
|
|
|
178
179
|
return;
|
|
179
180
|
}
|
|
180
181
|
const { envName, env } = this.resolveEnv(config, flags.env);
|
|
181
|
-
const localDbName = flags["local-db"];
|
|
182
182
|
let localBaseUrl = flags["local-url"];
|
|
183
183
|
if (flags["start-local"]) {
|
|
184
184
|
this.log(`
|
|
@@ -189,6 +189,7 @@ var Clone = class _Clone extends BaseCommand {
|
|
|
189
189
|
this.log(` ${ok("\u2713")} PostgreSQL running via ${bold(info.runtime)} on port ${info.port}
|
|
190
190
|
`);
|
|
191
191
|
}
|
|
192
|
+
const localDbName = cloneTargetName(localBaseUrl, flags["local-db"]);
|
|
192
193
|
const localDbUrl = replaceDbName(localBaseUrl, localDbName);
|
|
193
194
|
const pre = this.createPreflight("Clone preflight checks").addDatabase("Remote", envName, env.dbUrl).addInfo("Local DB", localDbName).addInfo("Local URL", dim(redactUrls(localDbUrl))).addInfo("Schema only", String(flags["schema-only"]));
|
|
194
195
|
if (flags["start-local"]) {
|
|
@@ -212,7 +213,7 @@ var Clone = class _Clone extends BaseCommand {
|
|
|
212
213
|
});
|
|
213
214
|
pre.addCheck("Target database", async () => {
|
|
214
215
|
try {
|
|
215
|
-
const client = newPgClient(localBaseUrl);
|
|
216
|
+
const client = newPgClient(maintenanceUrl(localBaseUrl, localDbName));
|
|
216
217
|
await client.connect();
|
|
217
218
|
const { rows } = await client.query(
|
|
218
219
|
"SELECT 1 FROM pg_database WHERE datname = $1",
|
package/dist/commands/diff.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
Diff,
|
|
3
3
|
inertApplyFlags,
|
|
4
4
|
rollbackHint
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-U6LWDMTS.js";
|
|
6
6
|
import "../chunk-Q43MN6NE.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-IYDZ2M5D.js";
|
|
8
|
+
import "../chunk-JCKQ5MUQ.js";
|
|
9
|
+
import "../chunk-UYXYRZ23.js";
|
|
10
10
|
import "../chunk-WK5YTINL.js";
|
|
11
11
|
import "../chunk-RQCXGO37.js";
|
|
12
12
|
import "../chunk-OXS42LJH.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-CEKRRFFL.js";
|
|
14
14
|
import "../chunk-5UHIWFQG.js";
|
|
15
15
|
import "../chunk-Z2YUOA4W.js";
|
|
16
16
|
import "../chunk-KT7NMELZ.js";
|
package/dist/commands/hukam.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-U6LWDMTS.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-IYDZ2M5D.js";
|
|
6
|
+
import "../chunk-JCKQ5MUQ.js";
|
|
7
|
+
import "../chunk-UYXYRZ23.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
9
|
import "../chunk-RQCXGO37.js";
|
|
10
10
|
import "../chunk-OXS42LJH.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-CEKRRFFL.js";
|
|
12
12
|
import "../chunk-5UHIWFQG.js";
|
|
13
13
|
import "../chunk-Z2YUOA4W.js";
|
|
14
14
|
import "../chunk-KT7NMELZ.js";
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-ZAJ4GBDS.js";
|
|
4
|
+
import "../chunk-U7GNRHEU.js";
|
|
5
|
+
import "../chunk-74WHN535.js";
|
|
6
|
+
import "../chunk-JCKQ5MUQ.js";
|
|
7
|
+
import "../chunk-UYXYRZ23.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
9
|
import "../chunk-5UHIWFQG.js";
|
|
10
10
|
import "../chunk-Z2YUOA4W.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
truncateSql
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-PAU4BGXZ.js";
|
|
4
4
|
import {
|
|
5
5
|
generateTimestamp,
|
|
6
6
|
writeMigrationFile
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-U7GNRHEU.js";
|
|
8
|
+
import "../../chunk-74WHN535.js";
|
|
9
9
|
import "../../chunk-AL6INEFX.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-UYXYRZ23.js";
|
|
11
11
|
import "../../chunk-WK5YTINL.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseCommand
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
MigrateRun,
|
|
3
3
|
findDestructiveStatements,
|
|
4
4
|
truncateSql
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-PAU4BGXZ.js";
|
|
6
|
+
import "../../chunk-74WHN535.js";
|
|
7
7
|
import "../../chunk-AL6INEFX.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-UYXYRZ23.js";
|
|
9
9
|
import "../../chunk-WK5YTINL.js";
|
|
10
10
|
import "../../chunk-OXS42LJH.js";
|
|
11
11
|
import "../../chunk-Z2YUOA4W.js";
|
package/dist/commands/restore.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
restoreFromMigrations,
|
|
6
6
|
restoreFromSnapshot,
|
|
7
7
|
summarizeStatement
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-RKAATBY5.js";
|
|
9
9
|
import "../chunk-EWNZIRCD.js";
|
|
10
10
|
import "../chunk-AL6INEFX.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-UYXYRZ23.js";
|
|
12
12
|
import "../chunk-WK5YTINL.js";
|
|
13
13
|
import {
|
|
14
14
|
renderTip
|
package/dist/commands/sync.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-U6LWDMTS.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-IYDZ2M5D.js";
|
|
6
|
+
import "../chunk-JCKQ5MUQ.js";
|
|
7
|
+
import "../chunk-UYXYRZ23.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
9
|
import "../chunk-RQCXGO37.js";
|
|
10
10
|
import "../chunk-OXS42LJH.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-CEKRRFFL.js";
|
|
12
12
|
import "../chunk-5UHIWFQG.js";
|
|
13
13
|
import "../chunk-Z2YUOA4W.js";
|
|
14
14
|
import "../chunk-KT7NMELZ.js";
|
package/dist/index.js
CHANGED
|
@@ -3,37 +3,37 @@ import {
|
|
|
3
3
|
createServer,
|
|
4
4
|
getLastScanResult,
|
|
5
5
|
setLastScanResult
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZAJ4GBDS.js";
|
|
7
7
|
import {
|
|
8
8
|
previewMigrationRestore,
|
|
9
9
|
previewSnapshotRestore,
|
|
10
10
|
restoreFromMigrations,
|
|
11
11
|
restoreFromSnapshot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RKAATBY5.js";
|
|
13
13
|
import {
|
|
14
14
|
backup,
|
|
15
15
|
listMigrationFiles,
|
|
16
16
|
loadMigrations
|
|
17
17
|
} from "./chunk-EWNZIRCD.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-U7GNRHEU.js";
|
|
19
|
+
import "./chunk-74WHN535.js";
|
|
20
20
|
import "./chunk-AL6INEFX.js";
|
|
21
21
|
import {
|
|
22
22
|
renderDetailed,
|
|
23
23
|
renderSummary
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IYDZ2M5D.js";
|
|
25
25
|
import {
|
|
26
26
|
CheckRegistry,
|
|
27
27
|
computeScore,
|
|
28
28
|
createDefaultRegistry,
|
|
29
29
|
scan,
|
|
30
30
|
summarize
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JCKQ5MUQ.js";
|
|
32
32
|
import {
|
|
33
33
|
CHECK_META,
|
|
34
34
|
CHECK_NAMES,
|
|
35
35
|
promote
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UYXYRZ23.js";
|
|
37
37
|
import "./chunk-WK5YTINL.js";
|
|
38
38
|
import {
|
|
39
39
|
BRANCH_DB_PREFIX,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
listBranches,
|
|
44
44
|
loadManifest,
|
|
45
45
|
replaceDbName
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CEKRRFFL.js";
|
|
47
47
|
import {
|
|
48
48
|
captureSnapshot,
|
|
49
49
|
findLatestSnapshot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akal/supaforge",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"mcpName": "io.github.akalsoftware/supaforge",
|
|
5
5
|
"description": "Diff and sync your Supabase environments",
|
|
6
6
|
"author": "Akal Software Ltd",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"topicSeparator": " "
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@akal/pg-conformance": "~0.0.
|
|
59
|
-
"@dbdiff/cli": "3.0.0-rc.
|
|
58
|
+
"@akal/pg-conformance": "~0.0.17",
|
|
59
|
+
"@dbdiff/cli": "3.0.0-rc.32",
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
61
61
|
"@oclif/core": "^4",
|
|
62
62
|
"@supabase/supabase-js": "^2.103.0",
|