@akal/supaforge 0.0.40 → 0.0.42
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/README.md +1 -1
- package/bin/run.js +8 -0
- package/dist/base-command.js +2 -2
- package/dist/{chunk-EWNZIRCD.js → chunk-33DONN5N.js} +3 -3
- package/dist/{chunk-74WHN535.js → chunk-46QUNEET.js} +2 -2
- package/dist/{chunk-U7GNRHEU.js → chunk-A5QPF4KH.js} +5 -5
- package/dist/{chunk-ZAJ4GBDS.js → chunk-BYPLCJW3.js} +6 -6
- package/dist/{chunk-OXS42LJH.js → chunk-CKH6J7DI.js} +2 -2
- package/dist/{chunk-RKAATBY5.js → chunk-HUR5UWQA.js} +6 -6
- package/dist/{chunk-AL6INEFX.js → chunk-HWRRFF55.js} +2 -2
- package/dist/{chunk-CEKRRFFL.js → chunk-Q4YNLGV4.js} +4 -4
- package/dist/{chunk-U6LWDMTS.js → chunk-QIJLIKB3.js} +8 -8
- package/dist/{chunk-5UHIWFQG.js → chunk-QWGXUFUQ.js} +4 -3
- package/dist/{chunk-KT7NMELZ.js → chunk-RC7ZU7OV.js} +3 -1
- package/dist/{chunk-UYXYRZ23.js → chunk-TES62VLH.js} +12 -5
- package/dist/{chunk-IYDZ2M5D.js → chunk-UEF2NY7H.js} +2 -2
- package/dist/{chunk-JCKQ5MUQ.js → chunk-UH4G2KRR.js} +20 -4
- package/dist/{chunk-PAU4BGXZ.js → chunk-UWFICLWO.js} +5 -5
- package/dist/{chunk-Z2YUOA4W.js → chunk-X3QQ64TU.js} +2 -2
- package/dist/commands/clone.js +5 -5
- package/dist/commands/diff.js +9 -9
- package/dist/commands/hukam.js +9 -9
- package/dist/commands/mcp.js +8 -8
- package/dist/commands/migrate/baseline.js +3 -3
- package/dist/commands/migrate/create.js +8 -8
- package/dist/commands/migrate/list.js +3 -3
- package/dist/commands/migrate/run.js +7 -7
- package/dist/commands/report.js +2 -2
- package/dist/commands/restore.js +8 -8
- package/dist/commands/snapshot.js +5 -5
- package/dist/commands/sync.js +9 -9
- package/dist/index.js +13 -13
- 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
|
|
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
|
package/dist/base-command.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
captureSnapshot,
|
|
7
7
|
findLatestSnapshot,
|
|
8
8
|
loadSnapshot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QWGXUFUQ.js";
|
|
10
10
|
import {
|
|
11
11
|
slugify
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X3QQ64TU.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-33DONN5N.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
comparedSchemas,
|
|
3
3
|
fingerprint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TES62VLH.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-46QUNEET.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainstLine
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-46QUNEET.js";
|
|
5
5
|
import {
|
|
6
6
|
RolesCheck,
|
|
7
7
|
isDestructiveSql,
|
|
8
8
|
runDbDiff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TES62VLH.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-X3QQ64TU.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_MIGRATIONS_DIR,
|
|
18
18
|
pgQuery
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
94
|
+
//# sourceMappingURL=chunk-A5QPF4KH.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrationsDir,
|
|
3
3
|
writeMigrationFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A5QPF4KH.js";
|
|
5
5
|
import {
|
|
6
6
|
createDefaultRegistry,
|
|
7
7
|
proveBeforeApply,
|
|
8
8
|
scan
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UH4G2KRR.js";
|
|
10
10
|
import {
|
|
11
11
|
CHECK_NAMES,
|
|
12
12
|
promote
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TES62VLH.js";
|
|
14
14
|
import {
|
|
15
15
|
captureSnapshot,
|
|
16
16
|
unrestorableSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QWGXUFUQ.js";
|
|
18
18
|
import {
|
|
19
19
|
checkConnection
|
|
20
|
-
} from "./chunk-
|
|
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-
|
|
533
|
+
//# sourceMappingURL=chunk-BYPLCJW3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_MIGRATIONS_DIR,
|
|
3
3
|
Preflight
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
214
|
+
//# sourceMappingURL=chunk-CKH6J7DI.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadMigrations
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-33DONN5N.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureMigrationsTable,
|
|
6
6
|
getAppliedVersions
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
21
|
+
} from "./chunk-TES62VLH.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-
|
|
30
|
+
} from "./chunk-QWGXUFUQ.js";
|
|
31
31
|
import {
|
|
32
32
|
newPgClient,
|
|
33
33
|
pgQuery,
|
|
34
34
|
quoteIdent,
|
|
35
35
|
quoteLiteral,
|
|
36
36
|
quoteName
|
|
37
|
-
} from "./chunk-
|
|
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-
|
|
903
|
+
//# sourceMappingURL=chunk-HUR5UWQA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pgQuery,
|
|
3
3
|
readLocalMigrations
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
122
|
+
//# sourceMappingURL=chunk-HWRRFF55.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
captureSnapshot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QWGXUFUQ.js";
|
|
4
4
|
import {
|
|
5
5
|
checkPgDumpCompat
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X3QQ64TU.js";
|
|
7
7
|
import {
|
|
8
8
|
newPgClient,
|
|
9
9
|
pgQuery,
|
|
10
10
|
quoteName
|
|
11
|
-
} from "./chunk-
|
|
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-
|
|
656
|
+
//# sourceMappingURL=chunk-Q4YNLGV4.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
formatSkips,
|
|
7
7
|
renderDetailed,
|
|
8
8
|
renderSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UEF2NY7H.js";
|
|
10
10
|
import {
|
|
11
11
|
createDefaultRegistry,
|
|
12
12
|
proveBeforeApply,
|
|
13
13
|
scan,
|
|
14
14
|
summarizeByKind
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UH4G2KRR.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-TES62VLH.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-
|
|
37
|
+
} from "./chunk-CKH6J7DI.js";
|
|
38
38
|
import {
|
|
39
39
|
isCloneDatabase,
|
|
40
40
|
sourceLooksLikeCloneOf
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q4YNLGV4.js";
|
|
42
42
|
import {
|
|
43
43
|
describeMissingPgDump,
|
|
44
44
|
getServerMajorVersion,
|
|
45
45
|
parseFlagList,
|
|
46
46
|
resolvePgDumpPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-X3QQ64TU.js";
|
|
48
48
|
import {
|
|
49
49
|
Preflight,
|
|
50
50
|
pgQuery,
|
|
51
51
|
quoteName
|
|
52
|
-
} from "./chunk-
|
|
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-
|
|
759
|
+
//# sourceMappingURL=chunk-QIJLIKB3.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getServerMajorVersion,
|
|
5
5
|
normalizeRoles,
|
|
6
6
|
resolvePgDumpPath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3QQ64TU.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-
|
|
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([
|
|
@@ -1231,4 +1232,4 @@ export {
|
|
|
1231
1232
|
DEFAULT_KEEP_COUNT,
|
|
1232
1233
|
pruneSnapshots
|
|
1233
1234
|
};
|
|
1234
|
-
//# sourceMappingURL=chunk-
|
|
1235
|
+
//# sourceMappingURL=chunk-QWGXUFUQ.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-
|
|
630
|
+
//# sourceMappingURL=chunk-RC7ZU7OV.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
matchesGlob,
|
|
11
11
|
parseFlagList,
|
|
12
12
|
resolvePgDumpPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X3QQ64TU.js";
|
|
14
14
|
import {
|
|
15
15
|
Check,
|
|
16
16
|
heldSnapshot,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
quoteLiteral,
|
|
21
21
|
quoteName,
|
|
22
22
|
snapshotsOff
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RC7ZU7OV.js";
|
|
24
24
|
import {
|
|
25
25
|
DBDIFF_EXEC_TIMEOUT_MS,
|
|
26
26
|
DBDIFF_MAX_BUFFER,
|
|
@@ -346,6 +346,8 @@ var RolesCheck = class extends Check {
|
|
|
346
346
|
this.queryFn = queryFn;
|
|
347
347
|
this.options = options;
|
|
348
348
|
}
|
|
349
|
+
queryFn;
|
|
350
|
+
options;
|
|
349
351
|
name = "roles";
|
|
350
352
|
async scan(ctx) {
|
|
351
353
|
const ignore = ctx.config.ignoreSchemas ?? [];
|
|
@@ -2231,7 +2233,7 @@ function planWork(scanResult, options = {}) {
|
|
|
2231
2233
|
}
|
|
2232
2234
|
var DROPS_SUPPORTING_OBJECT = /^\s*DROP\s+(?:TYPE|DOMAIN|FUNCTION|PROCEDURE|ROUTINE|SEQUENCE)\s+(?:IF\s+EXISTS\s+)?((?:"[^"]+"|[\w$]+)(?:\s*\.\s*(?:"[^"]+"|[\w$]+))?)/i;
|
|
2233
2235
|
function holdBackDropsStillInUse(statements, keptBack, skipped, downs = /* @__PURE__ */ new Map()) {
|
|
2234
|
-
const kept = keptBack.map((k) => ({ issueId: k.issueId, skeleton:
|
|
2236
|
+
const kept = keptBack.map((k) => ({ issueId: k.issueId, skeleton: usesOf(k.definition) }));
|
|
2235
2237
|
let remaining = statements;
|
|
2236
2238
|
for (let changed = kept.length > 0; changed; ) {
|
|
2237
2239
|
changed = false;
|
|
@@ -2246,13 +2248,18 @@ function holdBackDropsStillInUse(statements, keptBack, skipped, downs = /* @__PU
|
|
|
2246
2248
|
reason: `Still used by what ${user.issueId} keeps, which is held back as destructive; re-run with --allow-destructive to apply both`
|
|
2247
2249
|
});
|
|
2248
2250
|
const definition = downs.get(statement.issueId);
|
|
2249
|
-
if (definition) kept.push({ issueId: user.issueId, skeleton:
|
|
2251
|
+
if (definition) kept.push({ issueId: user.issueId, skeleton: usesOf(definition) });
|
|
2250
2252
|
changed = true;
|
|
2251
2253
|
return false;
|
|
2252
2254
|
});
|
|
2253
2255
|
}
|
|
2254
2256
|
return remaining;
|
|
2255
2257
|
}
|
|
2258
|
+
function usesOf(definition) {
|
|
2259
|
+
const sequences = [...definition.matchAll(SEQUENCE_LITERAL)].map((m) => m[1] ?? m[2]);
|
|
2260
|
+
return [sqlSkeleton(definition), ...sequences].join(" ");
|
|
2261
|
+
}
|
|
2262
|
+
var SEQUENCE_LITERAL = /nextval\(\s*'((?:[^']|'')*)'|'((?:[^']|'')*)'\s*::\s*regclass/gi;
|
|
2256
2263
|
function droppedSupportingObjects(sql) {
|
|
2257
2264
|
const parts = splitSqlStatements(sql).filter((s) => !isCommentOnly(s));
|
|
2258
2265
|
const names2 = parts.map((s) => DROPS_SUPPORTING_OBJECT.exec(sqlSkeleton(s))?.[1]);
|
|
@@ -3259,4 +3266,4 @@ export {
|
|
|
3259
3266
|
residualHeldBack,
|
|
3260
3267
|
proofScope
|
|
3261
3268
|
};
|
|
3262
|
-
//# sourceMappingURL=chunk-
|
|
3269
|
+
//# sourceMappingURL=chunk-TES62VLH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CHECK_META,
|
|
3
3
|
isComparisonCheck
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TES62VLH.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-UEF2NY7H.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
sqlSkeleton,
|
|
19
19
|
sqlToIssues,
|
|
20
20
|
withoutAbsentRoles
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TES62VLH.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-QWGXUFUQ.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-
|
|
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([
|
|
@@ -2225,6 +2239,7 @@ var QueuesCheck = class extends Check {
|
|
|
2225
2239
|
super();
|
|
2226
2240
|
this.queryFn = queryFn;
|
|
2227
2241
|
}
|
|
2242
|
+
queryFn;
|
|
2228
2243
|
name = "queues";
|
|
2229
2244
|
async scan(ctx) {
|
|
2230
2245
|
const [source, target] = await Promise.all([
|
|
@@ -2326,6 +2341,7 @@ var PartitionsCheck = class extends Check {
|
|
|
2326
2341
|
super();
|
|
2327
2342
|
this.queryFn = queryFn;
|
|
2328
2343
|
}
|
|
2344
|
+
queryFn;
|
|
2329
2345
|
name = "partitions";
|
|
2330
2346
|
async scan(ctx) {
|
|
2331
2347
|
const [source, target] = await Promise.all([this.fetch(ctx.source.dbUrl), this.fetch(ctx.target.dbUrl)]);
|
|
@@ -2509,4 +2525,4 @@ export {
|
|
|
2509
2525
|
createDefaultRegistry,
|
|
2510
2526
|
proveBeforeApply
|
|
2511
2527
|
};
|
|
2512
|
-
//# sourceMappingURL=chunk-
|
|
2528
|
+
//# sourceMappingURL=chunk-UH4G2KRR.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
targetFingerprint,
|
|
3
3
|
writtenAgainst
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-46QUNEET.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureMigrationsTable,
|
|
7
7
|
getAppliedVersions,
|
|
8
8
|
getPendingMigrations,
|
|
9
9
|
runMigration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HWRRFF55.js";
|
|
11
11
|
import {
|
|
12
12
|
isDestructiveSql
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TES62VLH.js";
|
|
14
14
|
import {
|
|
15
15
|
splitSqlStatements
|
|
16
16
|
} from "./chunk-WK5YTINL.js";
|
|
17
17
|
import {
|
|
18
18
|
BaseCommand
|
|
19
|
-
} from "./chunk-
|
|
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-
|
|
183
|
+
//# sourceMappingURL=chunk-UWFICLWO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
newPgClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RC7ZU7OV.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/strings.ts
|
|
6
6
|
var MAX_SLUG_LENGTH = 60;
|
|
@@ -239,4 +239,4 @@ export {
|
|
|
239
239
|
getServerMajorVersion,
|
|
240
240
|
checkPgDumpCompat
|
|
241
241
|
};
|
|
242
|
-
//# sourceMappingURL=chunk-
|
|
242
|
+
//# sourceMappingURL=chunk-X3QQ64TU.js.map
|
package/dist/commands/clone.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../chunk-RQCXGO37.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../chunk-
|
|
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-
|
|
16
|
+
} from "../chunk-Q4YNLGV4.js";
|
|
17
17
|
import {
|
|
18
18
|
captureSnapshot,
|
|
19
19
|
formatSnapshotLayers
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-QWGXUFUQ.js";
|
|
21
21
|
import {
|
|
22
22
|
checkPgDumpCompat
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-X3QQ64TU.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-
|
|
30
|
+
} from "../chunk-RC7ZU7OV.js";
|
|
31
31
|
import "../chunk-KHXEES2M.js";
|
|
32
32
|
import {
|
|
33
33
|
CLONE_EXTRA_EXCLUDE_SCHEMAS,
|
package/dist/commands/diff.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
Diff,
|
|
3
3
|
inertApplyFlags,
|
|
4
4
|
rollbackHint
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-QIJLIKB3.js";
|
|
6
6
|
import "../chunk-Q43MN6NE.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-UEF2NY7H.js";
|
|
8
|
+
import "../chunk-UH4G2KRR.js";
|
|
9
|
+
import "../chunk-TES62VLH.js";
|
|
10
10
|
import "../chunk-WK5YTINL.js";
|
|
11
11
|
import "../chunk-RQCXGO37.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-CKH6J7DI.js";
|
|
13
|
+
import "../chunk-Q4YNLGV4.js";
|
|
14
|
+
import "../chunk-QWGXUFUQ.js";
|
|
15
|
+
import "../chunk-X3QQ64TU.js";
|
|
16
|
+
import "../chunk-RC7ZU7OV.js";
|
|
17
17
|
import "../chunk-KHXEES2M.js";
|
|
18
18
|
import "../chunk-SQ52YBKK.js";
|
|
19
19
|
export {
|
package/dist/commands/hukam.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QIJLIKB3.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-UEF2NY7H.js";
|
|
6
|
+
import "../chunk-UH4G2KRR.js";
|
|
7
|
+
import "../chunk-TES62VLH.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
9
|
import "../chunk-RQCXGO37.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CKH6J7DI.js";
|
|
11
|
+
import "../chunk-Q4YNLGV4.js";
|
|
12
|
+
import "../chunk-QWGXUFUQ.js";
|
|
13
|
+
import "../chunk-X3QQ64TU.js";
|
|
14
|
+
import "../chunk-RC7ZU7OV.js";
|
|
15
15
|
import "../chunk-KHXEES2M.js";
|
|
16
16
|
import "../chunk-SQ52YBKK.js";
|
|
17
17
|
|
package/dist/commands/mcp.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BYPLCJW3.js";
|
|
4
|
+
import "../chunk-A5QPF4KH.js";
|
|
5
|
+
import "../chunk-46QUNEET.js";
|
|
6
|
+
import "../chunk-UH4G2KRR.js";
|
|
7
|
+
import "../chunk-TES62VLH.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-QWGXUFUQ.js";
|
|
10
|
+
import "../chunk-X3QQ64TU.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-
|
|
3
|
+
} from "../../chunk-HWRRFF55.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
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-
|
|
3
|
+
} from "../../chunk-UWFICLWO.js";
|
|
4
4
|
import {
|
|
5
5
|
generateTimestamp,
|
|
6
6
|
writeMigrationFile
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-A5QPF4KH.js";
|
|
8
|
+
import "../../chunk-46QUNEET.js";
|
|
9
|
+
import "../../chunk-HWRRFF55.js";
|
|
10
|
+
import "../../chunk-TES62VLH.js";
|
|
11
11
|
import "../../chunk-WK5YTINL.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseCommand
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-CKH6J7DI.js";
|
|
15
15
|
import {
|
|
16
16
|
slugify
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
17
|
+
} from "../../chunk-X3QQ64TU.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-
|
|
3
|
+
} from "../../chunk-HWRRFF55.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-CKH6J7DI.js";
|
|
7
7
|
import {
|
|
8
8
|
pgQuery,
|
|
9
9
|
readLocalMigrations
|
|
10
|
-
} from "../../chunk-
|
|
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-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-UWFICLWO.js";
|
|
6
|
+
import "../../chunk-46QUNEET.js";
|
|
7
|
+
import "../../chunk-HWRRFF55.js";
|
|
8
|
+
import "../../chunk-TES62VLH.js";
|
|
9
9
|
import "../../chunk-WK5YTINL.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-CKH6J7DI.js";
|
|
11
|
+
import "../../chunk-X3QQ64TU.js";
|
|
12
|
+
import "../../chunk-RC7ZU7OV.js";
|
|
13
13
|
import "../../chunk-KHXEES2M.js";
|
|
14
14
|
import "../../chunk-SQ52YBKK.js";
|
|
15
15
|
export {
|
package/dist/commands/report.js
CHANGED
package/dist/commands/restore.js
CHANGED
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
restoreFromMigrations,
|
|
6
6
|
restoreFromSnapshot,
|
|
7
7
|
summarizeStatement
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-HUR5UWQA.js";
|
|
9
|
+
import "../chunk-33DONN5N.js";
|
|
10
|
+
import "../chunk-HWRRFF55.js";
|
|
11
|
+
import "../chunk-TES62VLH.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-
|
|
18
|
+
} from "../chunk-CKH6J7DI.js";
|
|
19
19
|
import {
|
|
20
20
|
findLatestSnapshot,
|
|
21
21
|
listSnapshots
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-QWGXUFUQ.js";
|
|
23
|
+
import "../chunk-X3QQ64TU.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-
|
|
4
|
+
} from "../chunk-33DONN5N.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-
|
|
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-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-QWGXUFUQ.js";
|
|
20
|
+
import "../chunk-X3QQ64TU.js";
|
|
21
|
+
import "../chunk-RC7ZU7OV.js";
|
|
22
22
|
import "../chunk-KHXEES2M.js";
|
|
23
23
|
import {
|
|
24
24
|
bold,
|
package/dist/commands/sync.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Diff
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QIJLIKB3.js";
|
|
4
4
|
import "../chunk-Q43MN6NE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-UEF2NY7H.js";
|
|
6
|
+
import "../chunk-UH4G2KRR.js";
|
|
7
|
+
import "../chunk-TES62VLH.js";
|
|
8
8
|
import "../chunk-WK5YTINL.js";
|
|
9
9
|
import "../chunk-RQCXGO37.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CKH6J7DI.js";
|
|
11
|
+
import "../chunk-Q4YNLGV4.js";
|
|
12
|
+
import "../chunk-QWGXUFUQ.js";
|
|
13
|
+
import "../chunk-X3QQ64TU.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-
|
|
6
|
+
} from "./chunk-BYPLCJW3.js";
|
|
7
7
|
import {
|
|
8
8
|
previewMigrationRestore,
|
|
9
9
|
previewSnapshotRestore,
|
|
10
10
|
restoreFromMigrations,
|
|
11
11
|
restoreFromSnapshot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HUR5UWQA.js";
|
|
13
13
|
import {
|
|
14
14
|
backup,
|
|
15
15
|
listMigrationFiles,
|
|
16
16
|
loadMigrations
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-33DONN5N.js";
|
|
18
|
+
import "./chunk-A5QPF4KH.js";
|
|
19
|
+
import "./chunk-46QUNEET.js";
|
|
20
|
+
import "./chunk-HWRRFF55.js";
|
|
21
21
|
import {
|
|
22
22
|
renderDetailed,
|
|
23
23
|
renderSummary
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UEF2NY7H.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-UH4G2KRR.js";
|
|
32
32
|
import {
|
|
33
33
|
CHECK_META,
|
|
34
34
|
CHECK_NAMES,
|
|
35
35
|
promote
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TES62VLH.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-
|
|
46
|
+
} from "./chunk-Q4YNLGV4.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-QWGXUFUQ.js";
|
|
53
|
+
import "./chunk-X3QQ64TU.js";
|
|
54
54
|
import {
|
|
55
55
|
Check
|
|
56
|
-
} from "./chunk-
|
|
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.
|
|
3
|
+
"version": "0.0.42",
|
|
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.
|
|
59
|
-
"@dbdiff/cli": "3.0.0-rc.
|
|
58
|
+
"@akal/pg-conformance": "~0.0.19",
|
|
59
|
+
"@dbdiff/cli": "3.0.0-rc.34",
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
61
|
-
"@oclif/core": "^
|
|
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": ">=
|
|
76
|
+
"node": ">=22.0.0"
|
|
77
|
+
},
|
|
78
|
+
"overrides": {
|
|
79
|
+
"minimatch": "^11.0.5",
|
|
80
|
+
"esbuild": "^0.28.2"
|
|
77
81
|
}
|
|
78
82
|
}
|