zenstack-kit 0.1.4 → 0.1.7

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 (36) hide show
  1. package/README.md +18 -6
  2. package/dist/cli/app.d.ts.map +1 -1
  3. package/dist/cli/app.js +7 -1
  4. package/dist/cli/commands.d.ts +2 -0
  5. package/dist/cli/commands.d.ts.map +1 -1
  6. package/dist/cli/commands.js +97 -6
  7. package/dist/cli/prompts.d.ts.map +1 -1
  8. package/dist/cli/prompts.js +1 -3
  9. package/dist/config/loader.d.ts +1 -1
  10. package/dist/config/loader.d.ts.map +1 -1
  11. package/dist/config/loader.js +11 -9
  12. package/dist/migrations/prisma/apply.d.ts +54 -0
  13. package/dist/migrations/prisma/apply.d.ts.map +1 -0
  14. package/dist/migrations/prisma/apply.js +384 -0
  15. package/dist/migrations/prisma/create.d.ts +63 -0
  16. package/dist/migrations/prisma/create.d.ts.map +1 -0
  17. package/dist/migrations/prisma/create.js +119 -0
  18. package/dist/migrations/prisma/diff.d.ts +104 -0
  19. package/dist/migrations/prisma/diff.d.ts.map +1 -0
  20. package/dist/migrations/prisma/diff.js +442 -0
  21. package/dist/migrations/prisma/log.d.ts +31 -0
  22. package/dist/migrations/prisma/log.d.ts.map +1 -0
  23. package/dist/migrations/prisma/log.js +101 -0
  24. package/dist/migrations/prisma/rename.d.ts +23 -0
  25. package/dist/migrations/prisma/rename.d.ts.map +1 -0
  26. package/dist/migrations/prisma/rename.js +57 -0
  27. package/dist/migrations/prisma/snapshot.d.ts +32 -0
  28. package/dist/migrations/prisma/snapshot.d.ts.map +1 -0
  29. package/dist/migrations/prisma/snapshot.js +65 -0
  30. package/dist/migrations/prisma.d.ts +5 -202
  31. package/dist/migrations/prisma.d.ts.map +1 -1
  32. package/dist/migrations/prisma.js +5 -1168
  33. package/dist/schema/pull.d.ts +2 -0
  34. package/dist/schema/pull.d.ts.map +1 -1
  35. package/dist/schema/pull.js +102 -4
  36. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import type { SchemaSnapshot } from "../../schema/snapshot.js";
2
+ import { type SchemaSnapshotFile } from "../../schema/snapshot.js";
3
+ /**
4
+ * Get paths for snapshot file
5
+ */
6
+ export declare function getSnapshotPaths(outputPath: string): {
7
+ metaDir: string;
8
+ snapshotPath: string;
9
+ };
10
+ /**
11
+ * Read existing snapshot
12
+ */
13
+ export declare function readSnapshot(snapshotPath: string): Promise<SchemaSnapshotFile | null>;
14
+ /**
15
+ * Write snapshot to file
16
+ */
17
+ export declare function writeSnapshot(snapshotPath: string, schema: SchemaSnapshot): Promise<void>;
18
+ /**
19
+ * Check if snapshot exists
20
+ */
21
+ export declare function hasSnapshot(outputPath: string): Promise<boolean>;
22
+ /**
23
+ * Initialize snapshot from schema without generating migration
24
+ */
25
+ export declare function initializeSnapshot(options: {
26
+ schemaPath: string;
27
+ outputPath: string;
28
+ }): Promise<{
29
+ snapshotPath: string;
30
+ tableCount: number;
31
+ }>;
32
+ //# sourceMappingURL=snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/migrations/prisma/snapshot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAkB,KAAK,kBAAkB,EAA0B,MAAM,0BAA0B,CAAC;AAE3G;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM;;;EAMlD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAc3F;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/F;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQtE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAUxD"}
@@ -0,0 +1,65 @@
1
+ import * as fs from "fs/promises";
2
+ import * as path from "path";
3
+ import { createSnapshot, generateSchemaSnapshot } from "../../schema/snapshot.js";
4
+ /**
5
+ * Get paths for snapshot file
6
+ */
7
+ export function getSnapshotPaths(outputPath) {
8
+ const metaDir = path.join(outputPath, "meta");
9
+ return {
10
+ metaDir,
11
+ snapshotPath: path.join(metaDir, "_snapshot.json"),
12
+ };
13
+ }
14
+ /**
15
+ * Read existing snapshot
16
+ */
17
+ export async function readSnapshot(snapshotPath) {
18
+ try {
19
+ const content = await fs.readFile(snapshotPath, "utf-8");
20
+ const snapshot = JSON.parse(content);
21
+ if (!snapshot || snapshot.version !== 2 || !snapshot.schema) {
22
+ throw new Error("Snapshot format is invalid");
23
+ }
24
+ return snapshot;
25
+ }
26
+ catch (error) {
27
+ if (error instanceof Error && "code" in error && error.code === "ENOENT") {
28
+ return null;
29
+ }
30
+ throw error;
31
+ }
32
+ }
33
+ /**
34
+ * Write snapshot to file
35
+ */
36
+ export async function writeSnapshot(snapshotPath, schema) {
37
+ const snapshot = createSnapshot(schema);
38
+ await fs.mkdir(path.dirname(snapshotPath), { recursive: true });
39
+ await fs.writeFile(snapshotPath, JSON.stringify(snapshot, null, 2), "utf-8");
40
+ }
41
+ /**
42
+ * Check if snapshot exists
43
+ */
44
+ export async function hasSnapshot(outputPath) {
45
+ const { snapshotPath } = getSnapshotPaths(outputPath);
46
+ try {
47
+ await fs.access(snapshotPath);
48
+ return true;
49
+ }
50
+ catch {
51
+ return false;
52
+ }
53
+ }
54
+ /**
55
+ * Initialize snapshot from schema without generating migration
56
+ */
57
+ export async function initializeSnapshot(options) {
58
+ const currentSchema = await generateSchemaSnapshot(options.schemaPath);
59
+ const { snapshotPath } = getSnapshotPaths(options.outputPath);
60
+ await writeSnapshot(snapshotPath, currentSchema);
61
+ return {
62
+ snapshotPath,
63
+ tableCount: currentSchema.tables.length,
64
+ };
65
+ }
@@ -1,203 +1,6 @@
1
- /**
2
- * Prisma-compatible migrations
3
- *
4
- * Generates migrations in Prisma format:
5
- * - Folder structure: migrations/<timestamp>_<name>/migration.sql
6
- * - Tracks migrations in _prisma_migrations table
7
- * - Compatible with `prisma migrate deploy`
8
- */
9
- import type { KyselyDialect } from "../sql/kysely-adapter.js";
10
- import type { SchemaSnapshot } from "../schema/snapshot.js";
11
- export interface PrismaMigrationOptions {
12
- /** Migration name */
13
- name: string;
14
- /** Path to ZenStack schema file */
15
- schemaPath: string;
16
- /** Output directory for migration files */
17
- outputPath: string;
18
- /** Database dialect for SQL generation */
19
- dialect: KyselyDialect;
20
- /** Table rename mappings */
21
- renameTables?: Array<{
22
- from: string;
23
- to: string;
24
- }>;
25
- /** Column rename mappings */
26
- renameColumns?: Array<{
27
- table: string;
28
- from: string;
29
- to: string;
30
- }>;
31
- }
32
- export interface PrismaMigration {
33
- /** Migration folder name (timestamp_name) */
34
- folderName: string;
35
- /** Full path to migration folder */
36
- folderPath: string;
37
- /** SQL content */
38
- sql: string;
39
- /** Timestamp */
40
- timestamp: number;
41
- }
42
- export interface ApplyPrismaMigrationsOptions {
43
- /** Migrations folder path */
44
- migrationsFolder: string;
45
- /** Database dialect */
46
- dialect: KyselyDialect;
47
- /** Database connection URL */
48
- connectionUrl?: string;
49
- /** SQLite database path */
50
- databasePath?: string;
51
- /** Migrations table name (default: _prisma_migrations) */
52
- migrationsTable?: string;
53
- /** Migrations schema (PostgreSQL only, default: public) */
54
- migrationsSchema?: string;
55
- }
56
- export interface ApplyPrismaMigrationsResult {
57
- applied: Array<{
58
- migrationName: string;
59
- duration: number;
60
- }>;
61
- alreadyApplied: string[];
62
- failed?: {
63
- migrationName: string;
64
- error: string;
65
- };
66
- coherenceErrors?: MigrationCoherenceError[];
67
- }
68
- export interface MigrationCoherenceError {
69
- type: "missing_from_log" | "missing_from_db" | "missing_from_disk" | "order_mismatch" | "checksum_mismatch";
70
- migrationName: string;
71
- details: string;
72
- }
73
- export interface MigrationCoherenceResult {
74
- isCoherent: boolean;
75
- errors: MigrationCoherenceError[];
76
- }
77
- export interface PreviewPrismaMigrationsResult {
78
- pending: Array<{
79
- name: string;
80
- sql: string;
81
- }>;
82
- alreadyApplied: string[];
83
- }
84
- /**
85
- * Generate timestamp string for migration folder name
86
- */
87
- export declare function generateTimestamp(): string;
88
- /**
89
- * Get paths for snapshot file
90
- */
91
- declare function getSnapshotPaths(outputPath: string): {
92
- metaDir: string;
93
- snapshotPath: string;
94
- };
95
- /**
96
- * Write snapshot to file
97
- */
98
- export declare function writeSnapshot(snapshotPath: string, schema: SchemaSnapshot): Promise<void>;
99
- /**
100
- * Create a Prisma-compatible migration
101
- */
102
- export declare function createPrismaMigration(options: PrismaMigrationOptions): Promise<PrismaMigration | null>;
103
- export interface CreateInitialMigrationOptions {
104
- /** Migration name (default: "init") */
105
- name?: string;
106
- /** Path to ZenStack schema file */
107
- schemaPath: string;
108
- /** Output directory for migration files */
109
- outputPath: string;
110
- /** Database dialect for SQL generation */
111
- dialect: KyselyDialect;
112
- }
113
- /**
114
- * Create an initial migration that creates all tables from scratch.
115
- * This is used when initializing a project where the database is empty.
116
- */
117
- export declare function createInitialMigration(options: CreateInitialMigrationOptions): Promise<PrismaMigration>;
118
- /**
119
- * Calculate SHA256 checksum of migration SQL
120
- */
121
- export declare function calculateChecksum(sql: string): string;
122
- /**
123
- * Apply pending Prisma migrations
124
- */
125
- export declare function applyPrismaMigrations(options: ApplyPrismaMigrationsOptions): Promise<ApplyPrismaMigrationsResult>;
126
- /**
127
- * Preview pending migrations without applying them
128
- */
129
- export declare function previewPrismaMigrations(options: ApplyPrismaMigrationsOptions): Promise<PreviewPrismaMigrationsResult>;
130
- /**
131
- * Check if there are schema changes
132
- */
133
- export declare function hasPrismaSchemaChanges(options: {
134
- schemaPath: string;
135
- outputPath: string;
136
- }): Promise<boolean>;
137
- export interface PotentialTableRename {
138
- from: string;
139
- to: string;
140
- }
141
- export interface PotentialColumnRename {
142
- table: string;
143
- from: string;
144
- to: string;
145
- }
146
- export interface PotentialRenames {
147
- tables: PotentialTableRename[];
148
- columns: PotentialColumnRename[];
149
- }
150
- /**
151
- * Detect potential renames by finding removed+added pairs.
152
- * A table rename is detected when one table is removed and one is added.
153
- * A column rename is detected when within the same table, one column is removed and one is added.
154
- */
155
- export declare function detectPotentialRenames(options: {
156
- schemaPath: string;
157
- outputPath: string;
158
- }): Promise<PotentialRenames>;
159
- export interface MigrationLogEntry {
160
- /** Migration folder name e.g. "20260108120000_init" */
161
- name: string;
162
- /** SHA256 checksum of migration.sql content (64 hex chars) */
163
- checksum: string;
164
- }
165
- /**
166
- * Get the path to the migration log file
167
- */
168
- export declare function getMigrationLogPath(outputPath: string): string;
169
- /**
170
- * Read migration log file
171
- */
172
- export declare function readMigrationLog(outputPath: string): Promise<MigrationLogEntry[]>;
173
- /**
174
- * Write migration log file
175
- */
176
- export declare function writeMigrationLog(outputPath: string, entries: MigrationLogEntry[]): Promise<void>;
177
- /**
178
- * Append a single entry to the migration log
179
- */
180
- export declare function appendToMigrationLog(outputPath: string, entry: MigrationLogEntry): Promise<void>;
181
- /**
182
- * Scan migration folders and compute checksums for each
183
- */
184
- export declare function scanMigrationFolders(outputPath: string): Promise<MigrationLogEntry[]>;
185
- /**
186
- * Check if snapshot exists
187
- */
188
- export declare function hasSnapshot(outputPath: string): Promise<boolean>;
189
- /**
190
- * Initialize snapshot from schema without generating migration
191
- */
192
- export declare function initializeSnapshot(options: {
193
- schemaPath: string;
194
- outputPath: string;
195
- }): Promise<{
196
- snapshotPath: string;
197
- tableCount: number;
198
- }>;
199
- /**
200
- * Export getSnapshotPaths for external use
201
- */
202
- export { getSnapshotPaths };
1
+ export { createPrismaMigration, createInitialMigration, hasPrismaSchemaChanges, type PrismaMigrationOptions, type PrismaMigration, type CreateInitialMigrationOptions, } from "./prisma/create.js";
2
+ export { applyPrismaMigrations, previewPrismaMigrations, type ApplyPrismaMigrationsOptions, type ApplyPrismaMigrationsResult, type PreviewPrismaMigrationsResult, type MigrationCoherenceError, type MigrationCoherenceResult, } from "./prisma/apply.js";
3
+ export { readMigrationLog, writeMigrationLog, appendToMigrationLog, scanMigrationFolders, getMigrationLogPath, calculateChecksum, type MigrationLogEntry, } from "./prisma/log.js";
4
+ export { initializeSnapshot, hasSnapshot, getSnapshotPaths, writeSnapshot, } from "./prisma/snapshot.js";
5
+ export { detectPotentialRenames, type PotentialTableRename, type PotentialColumnRename, type PotentialRenames, } from "./prisma/rename.js";
203
6
  //# sourceMappingURL=prisma.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/migrations/prisma.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAA6B,MAAM,uBAAuB,CAAC;AAkBvF,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,OAAO,EAAE,aAAa,CAAC;IACvB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,6BAA6B;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAA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