@akal/supaforge 0.0.42 → 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.
- package/dist/{chunk-UEF2NY7H.js → chunk-45UBDKAH.js} +2 -2
- package/dist/{chunk-BYPLCJW3.js → chunk-4PO4VB4C.js} +5 -5
- package/dist/{chunk-46QUNEET.js → chunk-DTLEH6LL.js} +2 -2
- package/dist/{chunk-QIJLIKB3.js → chunk-F2NXGOF3.js} +6 -6
- package/dist/{chunk-A5QPF4KH.js → chunk-FGHBEOUV.js} +4 -4
- package/dist/{chunk-UWFICLWO.js → chunk-GUNQ5FFO.js} +3 -3
- package/dist/{chunk-HUR5UWQA.js → chunk-HP4IDUCN.js} +4 -4
- package/dist/{chunk-33DONN5N.js → chunk-KPU6G6BO.js} +3 -3
- package/dist/{chunk-Q4YNLGV4.js → chunk-KTATU64Y.js} +3 -3
- package/dist/{chunk-UH4G2KRR.js → chunk-L72FDQ3K.js} +16 -4
- package/dist/{chunk-TES62VLH.js → chunk-M2OYKG65.js} +6 -3
- package/dist/{chunk-X3QQ64TU.js → chunk-USIOUMYL.js} +16 -1
- package/dist/{chunk-QWGXUFUQ.js → chunk-ZLNP3DUB.js} +19 -2
- package/dist/commands/clone.js +3 -3
- package/dist/commands/diff.js +7 -7
- package/dist/commands/hukam.js +7 -7
- package/dist/commands/mcp.js +7 -7
- package/dist/commands/migrate/create.js +5 -5
- package/dist/commands/migrate/run.js +4 -4
- package/dist/commands/restore.js +5 -5
- package/dist/commands/snapshot.js +3 -3
- package/dist/commands/sync.js +7 -7
- package/dist/index.js +11 -11
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CHECK_META,
|
|
3
3
|
isComparisonCheck
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
244
|
+
//# sourceMappingURL=chunk-45UBDKAH.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrationsDir,
|
|
3
3
|
writeMigrationFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FGHBEOUV.js";
|
|
5
5
|
import {
|
|
6
6
|
createDefaultRegistry,
|
|
7
7
|
proveBeforeApply,
|
|
8
8
|
scan
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L72FDQ3K.js";
|
|
10
10
|
import {
|
|
11
11
|
CHECK_NAMES,
|
|
12
12
|
promote
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M2OYKG65.js";
|
|
14
14
|
import {
|
|
15
15
|
captureSnapshot,
|
|
16
16
|
unrestorableSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
18
18
|
import {
|
|
19
19
|
checkConnection
|
|
20
20
|
} from "./chunk-RC7ZU7OV.js";
|
|
@@ -530,4 +530,4 @@ export {
|
|
|
530
530
|
clearLastScanResult,
|
|
531
531
|
createServer
|
|
532
532
|
};
|
|
533
|
-
//# sourceMappingURL=chunk-
|
|
533
|
+
//# sourceMappingURL=chunk-4PO4VB4C.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
comparedSchemas,
|
|
3
3
|
fingerprint
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
27
|
+
//# sourceMappingURL=chunk-DTLEH6LL.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
formatSkips,
|
|
7
7
|
renderDetailed,
|
|
8
8
|
renderSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-45UBDKAH.js";
|
|
10
10
|
import {
|
|
11
11
|
createDefaultRegistry,
|
|
12
12
|
proveBeforeApply,
|
|
13
13
|
scan,
|
|
14
14
|
summarizeByKind
|
|
15
|
-
} from "./chunk-
|
|
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-
|
|
27
|
+
} from "./chunk-M2OYKG65.js";
|
|
28
28
|
import {
|
|
29
29
|
isCommentOnly,
|
|
30
30
|
splitSqlStatements
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
isCloneDatabase,
|
|
40
40
|
sourceLooksLikeCloneOf
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KTATU64Y.js";
|
|
42
42
|
import {
|
|
43
43
|
describeMissingPgDump,
|
|
44
44
|
getServerMajorVersion,
|
|
45
45
|
parseFlagList,
|
|
46
46
|
resolvePgDumpPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-USIOUMYL.js";
|
|
48
48
|
import {
|
|
49
49
|
Preflight,
|
|
50
50
|
pgQuery,
|
|
@@ -756,4 +756,4 @@ export {
|
|
|
756
756
|
inertApplyFlags,
|
|
757
757
|
Diff
|
|
758
758
|
};
|
|
759
|
-
//# sourceMappingURL=chunk-
|
|
759
|
+
//# sourceMappingURL=chunk-F2NXGOF3.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainstLine
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DTLEH6LL.js";
|
|
5
5
|
import {
|
|
6
6
|
RolesCheck,
|
|
7
7
|
isDestructiveSql,
|
|
8
8
|
runDbDiff
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
15
|
+
} from "./chunk-USIOUMYL.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_MIGRATIONS_DIR,
|
|
18
18
|
pgQuery
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
writeMigrationFile,
|
|
92
92
|
generateTimestamp
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-FGHBEOUV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainst
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DTLEH6LL.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureMigrationsTable,
|
|
7
7
|
getAppliedVersions,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-HWRRFF55.js";
|
|
11
11
|
import {
|
|
12
12
|
isDestructiveSql
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M2OYKG65.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-GUNQ5FFO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadMigrations
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KPU6G6BO.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureMigrationsTable,
|
|
6
6
|
getAppliedVersions
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
rolesNamedBy,
|
|
19
19
|
sqlSkeleton,
|
|
20
20
|
statementSubject
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M2OYKG65.js";
|
|
22
22
|
import {
|
|
23
23
|
isCommentOnly,
|
|
24
24
|
isPsqlMetaCommand,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-WK5YTINL.js";
|
|
28
28
|
import {
|
|
29
29
|
loadSnapshot
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
31
31
|
import {
|
|
32
32
|
newPgClient,
|
|
33
33
|
pgQuery,
|
|
@@ -900,4 +900,4 @@ export {
|
|
|
900
900
|
previewMigrationRestore,
|
|
901
901
|
summarizeStatement
|
|
902
902
|
};
|
|
903
|
-
//# sourceMappingURL=chunk-
|
|
903
|
+
//# sourceMappingURL=chunk-HP4IDUCN.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
captureSnapshot,
|
|
7
7
|
findLatestSnapshot,
|
|
8
8
|
loadSnapshot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
10
10
|
import {
|
|
11
11
|
slugify
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
248
|
+
//# sourceMappingURL=chunk-KPU6G6BO.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
captureSnapshot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
4
4
|
import {
|
|
5
5
|
checkPgDumpCompat
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-USIOUMYL.js";
|
|
7
7
|
import {
|
|
8
8
|
newPgClient,
|
|
9
9
|
pgQuery,
|
|
@@ -653,4 +653,4 @@ export {
|
|
|
653
653
|
isCloneDatabase,
|
|
654
654
|
sourceLooksLikeCloneOf
|
|
655
655
|
};
|
|
656
|
-
//# sourceMappingURL=chunk-
|
|
656
|
+
//# sourceMappingURL=chunk-KTATU64Y.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sqlSkeleton,
|
|
19
19
|
sqlToIssues,
|
|
20
20
|
withoutAbsentRoles
|
|
21
|
-
} from "./chunk-
|
|
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-
|
|
36
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
37
37
|
import {
|
|
38
38
|
Check,
|
|
39
39
|
CheckSkipped,
|
|
@@ -2170,6 +2170,18 @@ var UPDATES_SQL = `
|
|
|
2170
2170
|
CROSS JOIN LATERAL pg_extension_update_paths(e.extname) p
|
|
2171
2171
|
WHERE p.source = e.extversion AND p.path IS NOT NULL
|
|
2172
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
|
+
}
|
|
2173
2185
|
function diffExtensions(source, target, reachable) {
|
|
2174
2186
|
const issues = [];
|
|
2175
2187
|
const sourceMap = new Map(source.map((e) => [e.name, e]));
|
|
@@ -2197,7 +2209,7 @@ function diffExtensions(source, target, reachable) {
|
|
|
2197
2209
|
}
|
|
2198
2210
|
}
|
|
2199
2211
|
for (const [name, ext] of targetMap) {
|
|
2200
|
-
if (!sourceMap.has(name)) {
|
|
2212
|
+
if (!sourceMap.has(name) && !isPlatformExtension(ext)) {
|
|
2201
2213
|
issues.push({
|
|
2202
2214
|
id: `ext-extra-${name}`,
|
|
2203
2215
|
check: "extensions",
|
|
@@ -2525,4 +2537,4 @@ export {
|
|
|
2525
2537
|
createDefaultRegistry,
|
|
2526
2538
|
proveBeforeApply
|
|
2527
2539
|
};
|
|
2528
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
14
|
+
} from "./chunk-USIOUMYL.js";
|
|
14
15
|
import {
|
|
15
16
|
Check,
|
|
16
17
|
heldSnapshot,
|
|
@@ -1162,9 +1163,11 @@ async function runDbDiff(options) {
|
|
|
1162
1163
|
const args = [...prefixArgs, ...buildDbDiffArgs(options, outputFile)];
|
|
1163
1164
|
const timeoutMs = resolveDbDiffTimeoutMs(options.timeoutSeconds);
|
|
1164
1165
|
try {
|
|
1166
|
+
const pgTools = options.type === "schema" ? await dbdiffPgToolsEnv([options.sourceUrl, options.targetUrl]) : {};
|
|
1165
1167
|
const running = execFileAsync(command, args, {
|
|
1166
1168
|
timeout: timeoutMs,
|
|
1167
|
-
maxBuffer: DBDIFF_MAX_BUFFER
|
|
1169
|
+
maxBuffer: DBDIFF_MAX_BUFFER,
|
|
1170
|
+
...Object.keys(pgTools).length ? { env: { ...process.env, ...pgTools } } : {}
|
|
1168
1171
|
});
|
|
1169
1172
|
attachProgress(running, options.onProgress);
|
|
1170
1173
|
const { stdout } = await running;
|
|
@@ -3266,4 +3269,4 @@ export {
|
|
|
3266
3269
|
residualHeldBack,
|
|
3267
3270
|
proofScope
|
|
3268
3271
|
};
|
|
3269
|
-
//# sourceMappingURL=chunk-
|
|
3272
|
+
//# sourceMappingURL=chunk-M2OYKG65.js.map
|
|
@@ -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-
|
|
257
|
+
//# sourceMappingURL=chunk-USIOUMYL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getServerMajorVersion,
|
|
5
5
|
normalizeRoles,
|
|
6
6
|
resolvePgDumpPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-USIOUMYL.js";
|
|
8
8
|
import {
|
|
9
9
|
Check,
|
|
10
10
|
inRolledBackTransaction,
|
|
@@ -491,6 +491,23 @@ function diffPublications(source, target) {
|
|
|
491
491
|
}
|
|
492
492
|
for (const pubname of targetPubs) {
|
|
493
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
|
+
}
|
|
494
511
|
issues.push({
|
|
495
512
|
id: `realtime-extra-pub-${pubname}`,
|
|
496
513
|
check: "realtime",
|
|
@@ -1232,4 +1249,4 @@ export {
|
|
|
1232
1249
|
DEFAULT_KEEP_COUNT,
|
|
1233
1250
|
pruneSnapshots
|
|
1234
1251
|
};
|
|
1235
|
-
//# sourceMappingURL=chunk-
|
|
1252
|
+
//# sourceMappingURL=chunk-ZLNP3DUB.js.map
|
package/dist/commands/clone.js
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
maintenanceUrl,
|
|
14
14
|
reconcileClones,
|
|
15
15
|
replaceDbName
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-KTATU64Y.js";
|
|
17
17
|
import {
|
|
18
18
|
captureSnapshot,
|
|
19
19
|
formatSnapshotLayers
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-ZLNP3DUB.js";
|
|
21
21
|
import {
|
|
22
22
|
checkPgDumpCompat
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-USIOUMYL.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_LOCAL_PORT,
|
|
26
26
|
LOCAL_PG_PASSWORD,
|
package/dist/commands/diff.js
CHANGED
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
Diff,
|
|
3
3
|
inertApplyFlags,
|
|
4
4
|
rollbackHint
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-F2NXGOF3.js";
|
|
6
6
|
import "../chunk-Q43MN6NE.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
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
12
|
import "../chunk-CKH6J7DI.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-KTATU64Y.js";
|
|
14
|
+
import "../chunk-ZLNP3DUB.js";
|
|
15
|
+
import "../chunk-USIOUMYL.js";
|
|
16
16
|
import "../chunk-RC7ZU7OV.js";
|
|
17
17
|
import "../chunk-KHXEES2M.js";
|
|
18
18
|
import "../chunk-SQ52YBKK.js";
|
package/dist/commands/hukam.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-F2NXGOF3.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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
10
|
import "../chunk-CKH6J7DI.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-KTATU64Y.js";
|
|
12
|
+
import "../chunk-ZLNP3DUB.js";
|
|
13
|
+
import "../chunk-USIOUMYL.js";
|
|
14
14
|
import "../chunk-RC7ZU7OV.js";
|
|
15
15
|
import "../chunk-KHXEES2M.js";
|
|
16
16
|
import "../chunk-SQ52YBKK.js";
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZLNP3DUB.js";
|
|
10
|
+
import "../chunk-USIOUMYL.js";
|
|
11
11
|
import "../chunk-RC7ZU7OV.js";
|
|
12
12
|
import {
|
|
13
13
|
installProcessGuard,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
truncateSql
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-GUNQ5FFO.js";
|
|
4
4
|
import {
|
|
5
5
|
generateTimestamp,
|
|
6
6
|
writeMigrationFile
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-FGHBEOUV.js";
|
|
8
|
+
import "../../chunk-DTLEH6LL.js";
|
|
9
9
|
import "../../chunk-HWRRFF55.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-M2OYKG65.js";
|
|
11
11
|
import "../../chunk-WK5YTINL.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseCommand
|
|
14
14
|
} from "../../chunk-CKH6J7DI.js";
|
|
15
15
|
import {
|
|
16
16
|
slugify
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-USIOUMYL.js";
|
|
18
18
|
import "../../chunk-RC7ZU7OV.js";
|
|
19
19
|
import "../../chunk-KHXEES2M.js";
|
|
20
20
|
import {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
MigrateRun,
|
|
3
3
|
findDestructiveStatements,
|
|
4
4
|
truncateSql
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-GUNQ5FFO.js";
|
|
6
|
+
import "../../chunk-DTLEH6LL.js";
|
|
7
7
|
import "../../chunk-HWRRFF55.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-M2OYKG65.js";
|
|
9
9
|
import "../../chunk-WK5YTINL.js";
|
|
10
10
|
import "../../chunk-CKH6J7DI.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-USIOUMYL.js";
|
|
12
12
|
import "../../chunk-RC7ZU7OV.js";
|
|
13
13
|
import "../../chunk-KHXEES2M.js";
|
|
14
14
|
import "../../chunk-SQ52YBKK.js";
|
package/dist/commands/restore.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
restoreFromMigrations,
|
|
6
6
|
restoreFromSnapshot,
|
|
7
7
|
summarizeStatement
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-HP4IDUCN.js";
|
|
9
|
+
import "../chunk-KPU6G6BO.js";
|
|
10
10
|
import "../chunk-HWRRFF55.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-M2OYKG65.js";
|
|
12
12
|
import "../chunk-WK5YTINL.js";
|
|
13
13
|
import {
|
|
14
14
|
renderTip
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
findLatestSnapshot,
|
|
21
21
|
listSnapshots
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-ZLNP3DUB.js";
|
|
23
|
+
import "../chunk-USIOUMYL.js";
|
|
24
24
|
import "../chunk-RC7ZU7OV.js";
|
|
25
25
|
import "../chunk-KHXEES2M.js";
|
|
26
26
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backup,
|
|
3
3
|
listMigrationFiles
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KPU6G6BO.js";
|
|
5
5
|
import "../chunk-WK5YTINL.js";
|
|
6
6
|
import {
|
|
7
7
|
renderTip
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
listSnapshots,
|
|
17
17
|
pruneSnapshots,
|
|
18
18
|
unrestorableSchema
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-ZLNP3DUB.js";
|
|
20
|
+
import "../chunk-USIOUMYL.js";
|
|
21
21
|
import "../chunk-RC7ZU7OV.js";
|
|
22
22
|
import "../chunk-KHXEES2M.js";
|
|
23
23
|
import {
|
package/dist/commands/sync.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-F2NXGOF3.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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
10
|
import "../chunk-CKH6J7DI.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-KTATU64Y.js";
|
|
12
|
+
import "../chunk-ZLNP3DUB.js";
|
|
13
|
+
import "../chunk-USIOUMYL.js";
|
|
14
14
|
import "../chunk-RC7ZU7OV.js";
|
|
15
15
|
import "../chunk-KHXEES2M.js";
|
|
16
16
|
import "../chunk-SQ52YBKK.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-4PO4VB4C.js";
|
|
7
7
|
import {
|
|
8
8
|
previewMigrationRestore,
|
|
9
9
|
previewSnapshotRestore,
|
|
10
10
|
restoreFromMigrations,
|
|
11
11
|
restoreFromSnapshot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HP4IDUCN.js";
|
|
13
13
|
import {
|
|
14
14
|
backup,
|
|
15
15
|
listMigrationFiles,
|
|
16
16
|
loadMigrations
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-KPU6G6BO.js";
|
|
18
|
+
import "./chunk-FGHBEOUV.js";
|
|
19
|
+
import "./chunk-DTLEH6LL.js";
|
|
20
20
|
import "./chunk-HWRRFF55.js";
|
|
21
21
|
import {
|
|
22
22
|
renderDetailed,
|
|
23
23
|
renderSummary
|
|
24
|
-
} from "./chunk-
|
|
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-
|
|
31
|
+
} from "./chunk-L72FDQ3K.js";
|
|
32
32
|
import {
|
|
33
33
|
CHECK_META,
|
|
34
34
|
CHECK_NAMES,
|
|
35
35
|
promote
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-M2OYKG65.js";
|
|
37
37
|
import "./chunk-WK5YTINL.js";
|
|
38
38
|
import {
|
|
39
39
|
BRANCH_DB_PREFIX,
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
listBranches,
|
|
44
44
|
loadManifest,
|
|
45
45
|
replaceDbName
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KTATU64Y.js";
|
|
47
47
|
import {
|
|
48
48
|
captureSnapshot,
|
|
49
49
|
findLatestSnapshot,
|
|
50
50
|
listSnapshots,
|
|
51
51
|
loadSnapshot
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-ZLNP3DUB.js";
|
|
53
|
+
import "./chunk-USIOUMYL.js";
|
|
54
54
|
import {
|
|
55
55
|
Check
|
|
56
56
|
} from "./chunk-RC7ZU7OV.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akal/supaforge",
|
|
3
|
-
"version": "0.0.
|
|
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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@akal/pg-conformance": "~0.0.19",
|
|
59
|
-
"@dbdiff/cli": "3.0.0-rc.
|
|
59
|
+
"@dbdiff/cli": "3.0.0-rc.35",
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
61
61
|
"@oclif/core": "^5.1.12",
|
|
62
62
|
"@supabase/supabase-js": "^2.103.0",
|