@prisma-next/cli 0.3.0-dev.6 → 0.3.0-dev.64
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/LICENSE +201 -0
- package/README.md +314 -80
- package/dist/cli-errors-JlPTsazx.mjs +3 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.js +1 -2376
- package/dist/cli.mjs +203 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/client-PimzSD1f.mjs +981 -0
- package/dist/client-PimzSD1f.mjs.map +1 -0
- package/dist/commands/contract-emit.d.mts +7 -0
- package/dist/commands/contract-emit.d.mts.map +1 -0
- package/dist/commands/contract-emit.mjs +151 -0
- package/dist/commands/contract-emit.mjs.map +1 -0
- package/dist/commands/db-init.d.mts +7 -0
- package/dist/commands/db-init.d.mts.map +1 -0
- package/dist/commands/db-init.mjs +134 -0
- package/dist/commands/db-init.mjs.map +1 -0
- package/dist/commands/db-introspect.d.mts +7 -0
- package/dist/commands/db-introspect.d.mts.map +1 -0
- package/dist/commands/db-introspect.mjs +118 -0
- package/dist/commands/db-introspect.mjs.map +1 -0
- package/dist/commands/db-schema-verify.d.mts +7 -0
- package/dist/commands/db-schema-verify.d.mts.map +1 -0
- package/dist/commands/db-schema-verify.mjs +120 -0
- package/dist/commands/db-schema-verify.mjs.map +1 -0
- package/dist/commands/db-sign.d.mts +7 -0
- package/dist/commands/db-sign.d.mts.map +1 -0
- package/dist/commands/db-sign.mjs +142 -0
- package/dist/commands/db-sign.mjs.map +1 -0
- package/dist/commands/db-update.d.mts +7 -0
- package/dist/commands/db-update.d.mts.map +1 -0
- package/dist/commands/db-update.mjs +123 -0
- package/dist/commands/db-update.mjs.map +1 -0
- package/dist/commands/db-verify.d.mts +7 -0
- package/dist/commands/db-verify.d.mts.map +1 -0
- package/dist/commands/db-verify.mjs +133 -0
- package/dist/commands/db-verify.mjs.map +1 -0
- package/dist/commands/migration-apply.d.mts +23 -0
- package/dist/commands/migration-apply.d.mts.map +1 -0
- package/dist/commands/migration-apply.mjs +250 -0
- package/dist/commands/migration-apply.mjs.map +1 -0
- package/dist/commands/migration-plan.d.mts +25 -0
- package/dist/commands/migration-plan.d.mts.map +1 -0
- package/dist/commands/migration-plan.mjs +266 -0
- package/dist/commands/migration-plan.mjs.map +1 -0
- package/dist/commands/migration-show.d.mts +28 -0
- package/dist/commands/migration-show.d.mts.map +1 -0
- package/dist/commands/migration-show.mjs +138 -0
- package/dist/commands/migration-show.mjs.map +1 -0
- package/dist/commands/migration-status.d.mts +35 -0
- package/dist/commands/migration-status.d.mts.map +1 -0
- package/dist/commands/migration-status.mjs +260 -0
- package/dist/commands/migration-status.mjs.map +1 -0
- package/dist/commands/migration-verify.d.mts +16 -0
- package/dist/commands/migration-verify.d.mts.map +1 -0
- package/dist/commands/migration-verify.mjs +86 -0
- package/dist/commands/migration-verify.mjs.map +1 -0
- package/dist/config-loader-PPf4CtDj.mjs +43 -0
- package/dist/config-loader-PPf4CtDj.mjs.map +1 -0
- package/dist/{config-loader.d.ts → config-loader.d.mts} +8 -3
- package/dist/config-loader.d.mts.map +1 -0
- package/dist/config-loader.mjs +3 -0
- package/dist/exports/config-types.d.mts +2 -0
- package/dist/exports/config-types.mjs +3 -0
- package/dist/exports/control-api.d.mts +621 -0
- package/dist/exports/control-api.d.mts.map +1 -0
- package/dist/exports/control-api.mjs +98 -0
- package/dist/exports/control-api.mjs.map +1 -0
- package/dist/{load-ts-contract.d.ts → exports/index.d.mts} +10 -5
- package/dist/exports/index.d.mts.map +1 -0
- package/dist/exports/index.mjs +135 -0
- package/dist/exports/index.mjs.map +1 -0
- package/dist/extract-sql-ddl-BmlKvk4o.mjs +26 -0
- package/dist/extract-sql-ddl-BmlKvk4o.mjs.map +1 -0
- package/dist/framework-components-CjV_jD8f.mjs +59 -0
- package/dist/framework-components-CjV_jD8f.mjs.map +1 -0
- package/dist/migration-command-scaffold-DfY_F3ev.mjs +97 -0
- package/dist/migration-command-scaffold-DfY_F3ev.mjs.map +1 -0
- package/dist/progress-adapter-DENrzF6I.mjs +49 -0
- package/dist/progress-adapter-DENrzF6I.mjs.map +1 -0
- package/dist/result-handler-iA9JtUC7.mjs +1186 -0
- package/dist/result-handler-iA9JtUC7.mjs.map +1 -0
- package/package.json +75 -38
- package/src/cli.ts +43 -0
- package/src/commands/contract-emit.ts +221 -111
- package/src/commands/db-init.ts +217 -426
- package/src/commands/db-introspect.ts +148 -185
- package/src/commands/db-schema-verify.ts +162 -149
- package/src/commands/db-sign.ts +215 -202
- package/src/commands/db-update.ts +220 -0
- package/src/commands/db-verify.ts +193 -156
- package/src/commands/migration-apply.ts +431 -0
- package/src/commands/migration-plan.ts +446 -0
- package/src/commands/migration-show.ts +255 -0
- package/src/commands/migration-status.ts +436 -0
- package/src/commands/migration-verify.ts +151 -0
- package/src/config-loader.ts +13 -3
- package/src/control-api/client.ts +605 -0
- package/src/control-api/errors.ts +9 -0
- package/src/control-api/operations/contract-emit.ts +161 -0
- package/src/control-api/operations/db-init.ts +286 -0
- package/src/control-api/operations/db-update.ts +221 -0
- package/src/control-api/operations/extract-sql-ddl.ts +47 -0
- package/src/control-api/operations/migration-apply.ts +195 -0
- package/src/control-api/operations/migration-helpers.ts +49 -0
- package/src/control-api/types.ts +687 -0
- package/src/exports/config-types.ts +3 -3
- package/src/exports/control-api.ts +53 -0
- package/src/load-ts-contract.ts +16 -11
- package/src/utils/cli-errors.ts +3 -1
- package/src/utils/command-helpers.ts +92 -3
- package/src/utils/framework-components.ts +11 -30
- package/src/utils/migration-command-scaffold.ts +190 -0
- package/src/utils/output.ts +363 -25
- package/src/utils/progress-adapter.ts +86 -0
- package/dist/chunk-464LNZCE.js +0 -134
- package/dist/chunk-464LNZCE.js.map +0 -1
- package/dist/chunk-BZMBKEEQ.js +0 -997
- package/dist/chunk-BZMBKEEQ.js.map +0 -1
- package/dist/chunk-HWYQOCAJ.js +0 -47
- package/dist/chunk-HWYQOCAJ.js.map +0 -1
- package/dist/chunk-ZKYEJROM.js +0 -94
- package/dist/chunk-ZKYEJROM.js.map +0 -1
- package/dist/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/contract-emit.d.ts +0 -3
- package/dist/commands/contract-emit.d.ts.map +0 -1
- package/dist/commands/contract-emit.js +0 -9
- package/dist/commands/contract-emit.js.map +0 -1
- package/dist/commands/db-init.d.ts +0 -3
- package/dist/commands/db-init.d.ts.map +0 -1
- package/dist/commands/db-init.js +0 -341
- package/dist/commands/db-init.js.map +0 -1
- package/dist/commands/db-introspect.d.ts +0 -3
- package/dist/commands/db-introspect.d.ts.map +0 -1
- package/dist/commands/db-introspect.js +0 -190
- package/dist/commands/db-introspect.js.map +0 -1
- package/dist/commands/db-schema-verify.d.ts +0 -3
- package/dist/commands/db-schema-verify.d.ts.map +0 -1
- package/dist/commands/db-schema-verify.js +0 -164
- package/dist/commands/db-schema-verify.js.map +0 -1
- package/dist/commands/db-sign.d.ts +0 -3
- package/dist/commands/db-sign.d.ts.map +0 -1
- package/dist/commands/db-sign.js +0 -199
- package/dist/commands/db-sign.js.map +0 -1
- package/dist/commands/db-verify.d.ts +0 -3
- package/dist/commands/db-verify.d.ts.map +0 -1
- package/dist/commands/db-verify.js +0 -173
- package/dist/commands/db-verify.js.map +0 -1
- package/dist/config-loader.d.ts.map +0 -1
- package/dist/config-loader.js +0 -7
- package/dist/config-loader.js.map +0 -1
- package/dist/exports/config-types.d.ts +0 -3
- package/dist/exports/config-types.d.ts.map +0 -1
- package/dist/exports/config-types.js +0 -6
- package/dist/exports/config-types.js.map +0 -1
- package/dist/exports/index.d.ts +0 -4
- package/dist/exports/index.d.ts.map +0 -1
- package/dist/exports/index.js +0 -175
- package/dist/exports/index.js.map +0 -1
- package/dist/load-ts-contract.d.ts.map +0 -1
- package/dist/utils/action.d.ts +0 -16
- package/dist/utils/action.d.ts.map +0 -1
- package/dist/utils/cli-errors.d.ts +0 -7
- package/dist/utils/cli-errors.d.ts.map +0 -1
- package/dist/utils/command-helpers.d.ts +0 -12
- package/dist/utils/command-helpers.d.ts.map +0 -1
- package/dist/utils/framework-components.d.ts +0 -81
- package/dist/utils/framework-components.d.ts.map +0 -1
- package/dist/utils/global-flags.d.ts +0 -25
- package/dist/utils/global-flags.d.ts.map +0 -1
- package/dist/utils/output.d.ts +0 -142
- package/dist/utils/output.d.ts.map +0 -1
- package/dist/utils/result-handler.d.ts +0 -15
- package/dist/utils/result-handler.d.ts.map +0 -1
- package/dist/utils/spinner.d.ts +0 -29
- package/dist/utils/spinner.d.ts.map +0 -1
- package/src/utils/action.ts +0 -43
- package/src/utils/spinner.ts +0 -67
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { Result } from "@prisma-next/utils/result";
|
|
2
|
+
import { ContractSourceDiagnostics, ContractSourceProvider } from "@prisma-next/config/config-types";
|
|
3
|
+
import { ControlAdapterDescriptor, ControlDriverDescriptor, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlPlaneStack, ControlTargetDescriptor, MigrationPlannerConflict, SignDatabaseResult, SignDatabaseResult as SignDatabaseResult$1, VerifyDatabaseResult, VerifyDatabaseResult as VerifyDatabaseResult$1, VerifyDatabaseSchemaResult, VerifyDatabaseSchemaResult as VerifyDatabaseSchemaResult$1 } from "@prisma-next/core-control-plane/types";
|
|
4
|
+
import { ContractMarkerRecord } from "@prisma-next/contract/types";
|
|
5
|
+
import { CoreSchemaView } from "@prisma-next/core-control-plane/schema-view";
|
|
6
|
+
|
|
7
|
+
//#region src/control-api/types.d.ts
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Options for creating a control client.
|
|
11
|
+
*
|
|
12
|
+
* Note: This is NOT the same as CLI config. There's no `contract` field,
|
|
13
|
+
* no file paths. The client is config-agnostic.
|
|
14
|
+
*
|
|
15
|
+
* The descriptor types use permissive `any` because family-specific descriptors
|
|
16
|
+
* (e.g., SqlFamilyDescriptor) have more specific `create` method signatures that
|
|
17
|
+
* are not compatible with the base ControlFamilyDescriptor type due to TypeScript
|
|
18
|
+
* variance rules. The client implementation casts these internally.
|
|
19
|
+
*/
|
|
20
|
+
interface ControlClientOptions {
|
|
21
|
+
readonly family: ControlFamilyDescriptor<any, any>;
|
|
22
|
+
readonly target: ControlTargetDescriptor<any, any, any, any>;
|
|
23
|
+
readonly adapter: ControlAdapterDescriptor<any, any, any>;
|
|
24
|
+
/** Optional - control client can be created without driver for offline operations */
|
|
25
|
+
readonly driver?: ControlDriverDescriptor<any, any, any, any>;
|
|
26
|
+
readonly extensionPacks?: ReadonlyArray<ControlExtensionDescriptor<any, any, any>>;
|
|
27
|
+
/**
|
|
28
|
+
* Optional default connection for auto-connect.
|
|
29
|
+
* When provided, operations will auto-connect if not already connected.
|
|
30
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
31
|
+
*/
|
|
32
|
+
readonly connection?: unknown;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Action names for control-api operations that can emit progress events.
|
|
36
|
+
*/
|
|
37
|
+
type ControlActionName = 'dbInit' | 'dbUpdate' | 'migrationApply' | 'verify' | 'schemaVerify' | 'sign' | 'introspect' | 'emit';
|
|
38
|
+
/**
|
|
39
|
+
* Progress event emitted during control-api operation execution.
|
|
40
|
+
*
|
|
41
|
+
* Events model operation progress using a span-based model:
|
|
42
|
+
* - `spanStart`: Begin a timed segment (supports nesting via parentSpanId)
|
|
43
|
+
* - `spanEnd`: Complete a timed segment
|
|
44
|
+
*
|
|
45
|
+
* All operation-specific progress (e.g., per-migration-operation) is modeled
|
|
46
|
+
* as nested spans rather than special event types.
|
|
47
|
+
*
|
|
48
|
+
* Events are delivered via an optional `onProgress` callback to avoid polluting
|
|
49
|
+
* return types. If the callback is absent, operations emit no events (zero overhead).
|
|
50
|
+
*/
|
|
51
|
+
type ControlProgressEvent = {
|
|
52
|
+
readonly action: ControlActionName;
|
|
53
|
+
readonly kind: 'spanStart';
|
|
54
|
+
readonly spanId: string;
|
|
55
|
+
readonly parentSpanId?: string;
|
|
56
|
+
readonly label: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly action: ControlActionName;
|
|
59
|
+
readonly kind: 'spanEnd';
|
|
60
|
+
readonly spanId: string;
|
|
61
|
+
readonly outcome: 'ok' | 'skipped' | 'error';
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Callback function for receiving progress events during control-api operations.
|
|
65
|
+
*
|
|
66
|
+
* @param event - The progress event emitted by the operation
|
|
67
|
+
*/
|
|
68
|
+
type OnControlProgress = (event: ControlProgressEvent) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Options for the verify operation.
|
|
71
|
+
*/
|
|
72
|
+
interface VerifyOptions {
|
|
73
|
+
/** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
|
|
74
|
+
readonly contractIR: unknown;
|
|
75
|
+
/**
|
|
76
|
+
* Database connection. If provided, verify will connect before executing.
|
|
77
|
+
* If omitted, the client must already be connected.
|
|
78
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
79
|
+
*/
|
|
80
|
+
readonly connection?: unknown;
|
|
81
|
+
/** Optional progress callback for observing operation progress */
|
|
82
|
+
readonly onProgress?: OnControlProgress;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Options for the schemaVerify operation.
|
|
86
|
+
*/
|
|
87
|
+
interface SchemaVerifyOptions {
|
|
88
|
+
/** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
|
|
89
|
+
readonly contractIR: unknown;
|
|
90
|
+
/**
|
|
91
|
+
* Whether to use strict mode for schema verification.
|
|
92
|
+
* In strict mode, extra tables/columns are reported as issues.
|
|
93
|
+
* Default: false (tolerant mode - allows superset)
|
|
94
|
+
*/
|
|
95
|
+
readonly strict?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Database connection. If provided, schemaVerify will connect before executing.
|
|
98
|
+
* If omitted, the client must already be connected.
|
|
99
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
100
|
+
*/
|
|
101
|
+
readonly connection?: unknown;
|
|
102
|
+
/** Optional progress callback for observing operation progress */
|
|
103
|
+
readonly onProgress?: OnControlProgress;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Options for the sign operation.
|
|
107
|
+
*/
|
|
108
|
+
interface SignOptions {
|
|
109
|
+
/** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
|
|
110
|
+
readonly contractIR: unknown;
|
|
111
|
+
/**
|
|
112
|
+
* Path to the contract file (for metadata in the result).
|
|
113
|
+
*/
|
|
114
|
+
readonly contractPath?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Path to the config file (for metadata in the result).
|
|
117
|
+
*/
|
|
118
|
+
readonly configPath?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Database connection. If provided, sign will connect before executing.
|
|
121
|
+
* If omitted, the client must already be connected.
|
|
122
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
123
|
+
*/
|
|
124
|
+
readonly connection?: unknown;
|
|
125
|
+
/** Optional progress callback for observing operation progress */
|
|
126
|
+
readonly onProgress?: OnControlProgress;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Options for the dbInit operation.
|
|
130
|
+
*/
|
|
131
|
+
interface DbInitOptions {
|
|
132
|
+
/** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
|
|
133
|
+
readonly contractIR: unknown;
|
|
134
|
+
/**
|
|
135
|
+
* Mode for the dbInit operation.
|
|
136
|
+
* - 'plan': Returns planned operations without applying
|
|
137
|
+
* - 'apply': Applies operations and writes marker
|
|
138
|
+
*/
|
|
139
|
+
readonly mode: 'plan' | 'apply';
|
|
140
|
+
/**
|
|
141
|
+
* Database connection. If provided, dbInit will connect before executing.
|
|
142
|
+
* If omitted, the client must already be connected.
|
|
143
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
144
|
+
*/
|
|
145
|
+
readonly connection?: unknown;
|
|
146
|
+
/** Optional progress callback for observing operation progress */
|
|
147
|
+
readonly onProgress?: OnControlProgress;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Options for the dbUpdate operation.
|
|
151
|
+
*/
|
|
152
|
+
interface DbUpdateOptions {
|
|
153
|
+
/** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
|
|
154
|
+
readonly contractIR: unknown;
|
|
155
|
+
/**
|
|
156
|
+
* Mode for the dbUpdate operation.
|
|
157
|
+
* - 'plan': Returns planned operations without applying
|
|
158
|
+
* - 'apply': Applies operations and writes marker/ledger
|
|
159
|
+
*/
|
|
160
|
+
readonly mode: 'plan' | 'apply';
|
|
161
|
+
/**
|
|
162
|
+
* Database connection. If provided, dbUpdate will connect before executing.
|
|
163
|
+
* If omitted, the client must already be connected.
|
|
164
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
165
|
+
*/
|
|
166
|
+
readonly connection?: unknown;
|
|
167
|
+
/**
|
|
168
|
+
* When true, allows applying plans that contain destructive operations
|
|
169
|
+
* (e.g., DROP TABLE, DROP COLUMN, ALTER TYPE).
|
|
170
|
+
* When false (default), the operation returns a failure if the plan
|
|
171
|
+
* includes destructive operations, prompting the user to use --plan
|
|
172
|
+
* to preview and then re-run with --accept-data-loss.
|
|
173
|
+
*/
|
|
174
|
+
readonly acceptDataLoss?: boolean;
|
|
175
|
+
/** Optional progress callback for observing operation progress */
|
|
176
|
+
readonly onProgress?: OnControlProgress;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Options for the introspect operation.
|
|
180
|
+
*/
|
|
181
|
+
interface IntrospectOptions {
|
|
182
|
+
/**
|
|
183
|
+
* Optional schema name to introspect.
|
|
184
|
+
*/
|
|
185
|
+
readonly schema?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Database connection. If provided, introspect will connect before executing.
|
|
188
|
+
* If omitted, the client must already be connected.
|
|
189
|
+
* The type is driver-specific (e.g., string URL for Postgres).
|
|
190
|
+
*/
|
|
191
|
+
readonly connection?: unknown;
|
|
192
|
+
/** Optional progress callback for observing operation progress */
|
|
193
|
+
readonly onProgress?: OnControlProgress;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Contract configuration for emit operation.
|
|
197
|
+
*/
|
|
198
|
+
interface EmitContractConfig {
|
|
199
|
+
/**
|
|
200
|
+
* Contract source provider.
|
|
201
|
+
*/
|
|
202
|
+
readonly sourceProvider: ContractSourceProvider;
|
|
203
|
+
/**
|
|
204
|
+
* Output path for contract.json.
|
|
205
|
+
* The .d.ts types file will be colocated (e.g., contract.json → contract.d.ts).
|
|
206
|
+
*/
|
|
207
|
+
readonly output: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Options for the emit operation.
|
|
211
|
+
*/
|
|
212
|
+
interface EmitOptions {
|
|
213
|
+
/**
|
|
214
|
+
* Contract configuration containing source, output, and types paths.
|
|
215
|
+
*/
|
|
216
|
+
readonly contractConfig: EmitContractConfig;
|
|
217
|
+
/** Optional progress callback for observing operation progress */
|
|
218
|
+
readonly onProgress?: OnControlProgress;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Successful dbInit result.
|
|
222
|
+
*/
|
|
223
|
+
interface DbInitSuccess {
|
|
224
|
+
readonly mode: 'plan' | 'apply';
|
|
225
|
+
readonly plan: {
|
|
226
|
+
readonly operations: ReadonlyArray<{
|
|
227
|
+
readonly id: string;
|
|
228
|
+
readonly label: string;
|
|
229
|
+
readonly operationClass: string;
|
|
230
|
+
}>;
|
|
231
|
+
readonly sql?: ReadonlyArray<string>;
|
|
232
|
+
};
|
|
233
|
+
readonly destination: {
|
|
234
|
+
readonly storageHash: string;
|
|
235
|
+
readonly profileHash?: string;
|
|
236
|
+
};
|
|
237
|
+
readonly execution?: {
|
|
238
|
+
readonly operationsPlanned: number;
|
|
239
|
+
readonly operationsExecuted: number;
|
|
240
|
+
};
|
|
241
|
+
readonly marker?: {
|
|
242
|
+
readonly storageHash: string;
|
|
243
|
+
readonly profileHash?: string;
|
|
244
|
+
};
|
|
245
|
+
readonly summary: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Failure codes for dbInit operation.
|
|
249
|
+
*/
|
|
250
|
+
type DbInitFailureCode = 'PLANNING_FAILED' | 'MARKER_ORIGIN_MISMATCH' | 'RUNNER_FAILED';
|
|
251
|
+
/**
|
|
252
|
+
* Failure details for dbInit operation.
|
|
253
|
+
*/
|
|
254
|
+
interface DbInitFailure {
|
|
255
|
+
readonly code: DbInitFailureCode;
|
|
256
|
+
readonly summary: string;
|
|
257
|
+
readonly why: string | undefined;
|
|
258
|
+
readonly conflicts: ReadonlyArray<MigrationPlannerConflict> | undefined;
|
|
259
|
+
readonly meta: Record<string, unknown> | undefined;
|
|
260
|
+
readonly marker?: {
|
|
261
|
+
readonly storageHash?: string;
|
|
262
|
+
readonly profileHash?: string;
|
|
263
|
+
};
|
|
264
|
+
readonly destination?: {
|
|
265
|
+
readonly storageHash: string;
|
|
266
|
+
readonly profileHash?: string | undefined;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Result type for dbInit operation.
|
|
271
|
+
* Uses Result pattern: success returns DbInitSuccess, failure returns DbInitFailure.
|
|
272
|
+
*/
|
|
273
|
+
type DbInitResult = Result<DbInitSuccess, DbInitFailure>;
|
|
274
|
+
/**
|
|
275
|
+
* Successful dbUpdate result.
|
|
276
|
+
*/
|
|
277
|
+
interface DbUpdateSuccess {
|
|
278
|
+
readonly mode: 'plan' | 'apply';
|
|
279
|
+
readonly plan: {
|
|
280
|
+
readonly operations: ReadonlyArray<{
|
|
281
|
+
readonly id: string;
|
|
282
|
+
readonly label: string;
|
|
283
|
+
readonly operationClass: string;
|
|
284
|
+
}>;
|
|
285
|
+
readonly sql?: ReadonlyArray<string>;
|
|
286
|
+
};
|
|
287
|
+
readonly destination: {
|
|
288
|
+
readonly storageHash: string;
|
|
289
|
+
readonly profileHash?: string;
|
|
290
|
+
};
|
|
291
|
+
readonly execution?: {
|
|
292
|
+
readonly operationsPlanned: number;
|
|
293
|
+
readonly operationsExecuted: number;
|
|
294
|
+
};
|
|
295
|
+
readonly marker?: {
|
|
296
|
+
readonly storageHash: string;
|
|
297
|
+
readonly profileHash?: string;
|
|
298
|
+
};
|
|
299
|
+
readonly summary: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Failure codes for dbUpdate operation.
|
|
303
|
+
*/
|
|
304
|
+
type DbUpdateFailureCode = 'PLANNING_FAILED' | 'RUNNER_FAILED' | 'DESTRUCTIVE_CHANGES';
|
|
305
|
+
/**
|
|
306
|
+
* Failure details for dbUpdate operation.
|
|
307
|
+
*/
|
|
308
|
+
interface DbUpdateFailure {
|
|
309
|
+
readonly code: DbUpdateFailureCode;
|
|
310
|
+
readonly summary: string;
|
|
311
|
+
readonly why: string | undefined;
|
|
312
|
+
readonly conflicts: ReadonlyArray<MigrationPlannerConflict> | undefined;
|
|
313
|
+
readonly meta: Record<string, unknown> | undefined;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Result type for dbUpdate operation.
|
|
317
|
+
* Uses Result pattern: success returns DbUpdateSuccess, failure returns DbUpdateFailure.
|
|
318
|
+
*/
|
|
319
|
+
type DbUpdateResult = Result<DbUpdateSuccess, DbUpdateFailure>;
|
|
320
|
+
/**
|
|
321
|
+
* Successful emit result.
|
|
322
|
+
* Contains the hashes and paths of emitted files.
|
|
323
|
+
*/
|
|
324
|
+
interface EmitSuccess {
|
|
325
|
+
/** Storage hash of the emitted contract */
|
|
326
|
+
readonly storageHash: string;
|
|
327
|
+
/** Execution hash of the emitted contract (if execution section exists) */
|
|
328
|
+
readonly executionHash?: string;
|
|
329
|
+
/** Profile hash of the emitted contract (target-specific) */
|
|
330
|
+
readonly profileHash: string;
|
|
331
|
+
/** The emitted contract as JSON string */
|
|
332
|
+
readonly contractJson: string;
|
|
333
|
+
/** The emitted contract TypeScript declarations */
|
|
334
|
+
readonly contractDts: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Failure codes for emit operation.
|
|
338
|
+
*/
|
|
339
|
+
type EmitFailureCode = 'CONTRACT_SOURCE_INVALID' | 'CONTRACT_VALIDATION_FAILED' | 'EMIT_FAILED';
|
|
340
|
+
/**
|
|
341
|
+
* Failure details for emit operation.
|
|
342
|
+
*/
|
|
343
|
+
interface EmitFailure {
|
|
344
|
+
readonly code: EmitFailureCode;
|
|
345
|
+
readonly summary: string;
|
|
346
|
+
readonly why: string | undefined;
|
|
347
|
+
readonly meta: Record<string, unknown> | undefined;
|
|
348
|
+
readonly diagnostics?: ContractSourceDiagnostics;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Result type for emit operation.
|
|
352
|
+
* Uses Result pattern: success returns EmitSuccess, failure returns EmitFailure.
|
|
353
|
+
*/
|
|
354
|
+
type EmitResult = Result<EmitSuccess, EmitFailure>;
|
|
355
|
+
/**
|
|
356
|
+
* A pre-planned migration step ready for execution.
|
|
357
|
+
* Contains the manifest metadata and the serialized operations from ops.json.
|
|
358
|
+
*/
|
|
359
|
+
interface MigrationApplyStep {
|
|
360
|
+
readonly dirName: string;
|
|
361
|
+
readonly from: string;
|
|
362
|
+
readonly to: string;
|
|
363
|
+
readonly toContract: unknown;
|
|
364
|
+
readonly operations: ReadonlyArray<{
|
|
365
|
+
readonly id: string;
|
|
366
|
+
readonly label: string;
|
|
367
|
+
readonly operationClass: string;
|
|
368
|
+
readonly [key: string]: unknown;
|
|
369
|
+
}>;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Options for the migrationApply operation.
|
|
373
|
+
*/
|
|
374
|
+
interface MigrationApplyOptions {
|
|
375
|
+
/**
|
|
376
|
+
* Hash of the database state this apply path starts from.
|
|
377
|
+
* This is resolved by the caller (typically the CLI orchestration layer).
|
|
378
|
+
*/
|
|
379
|
+
readonly originHash: string;
|
|
380
|
+
/**
|
|
381
|
+
* Hash of the target contract this apply path must reach.
|
|
382
|
+
* This is resolved by the caller (typically the CLI orchestration layer).
|
|
383
|
+
*/
|
|
384
|
+
readonly destinationHash: string;
|
|
385
|
+
/**
|
|
386
|
+
* Ordered list of migrations to execute from originHash to destinationHash.
|
|
387
|
+
* The execution layer does not choose defaults; it only executes this explicit path.
|
|
388
|
+
*/
|
|
389
|
+
readonly pendingMigrations: readonly MigrationApplyStep[];
|
|
390
|
+
/**
|
|
391
|
+
* Database connection. If provided, migrationApply will connect before executing.
|
|
392
|
+
* If omitted, the client must already be connected.
|
|
393
|
+
*/
|
|
394
|
+
readonly connection?: unknown;
|
|
395
|
+
/** Optional progress callback for observing operation progress */
|
|
396
|
+
readonly onProgress?: OnControlProgress;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Record of a successfully applied migration.
|
|
400
|
+
*/
|
|
401
|
+
interface MigrationApplyAppliedEntry {
|
|
402
|
+
readonly dirName: string;
|
|
403
|
+
readonly from: string;
|
|
404
|
+
readonly to: string;
|
|
405
|
+
readonly operationsExecuted: number;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Successful migrationApply result.
|
|
409
|
+
*/
|
|
410
|
+
interface MigrationApplySuccess {
|
|
411
|
+
readonly migrationsApplied: number;
|
|
412
|
+
readonly markerHash: string;
|
|
413
|
+
readonly applied: readonly MigrationApplyAppliedEntry[];
|
|
414
|
+
readonly summary: string;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Failure codes for migrationApply operation.
|
|
418
|
+
*/
|
|
419
|
+
type MigrationApplyFailureCode = 'RUNNER_FAILED' | 'MIGRATION_PATH_NOT_FOUND';
|
|
420
|
+
/**
|
|
421
|
+
* Failure details for migrationApply operation.
|
|
422
|
+
*/
|
|
423
|
+
interface MigrationApplyFailure {
|
|
424
|
+
readonly code: MigrationApplyFailureCode;
|
|
425
|
+
readonly summary: string;
|
|
426
|
+
readonly why: string | undefined;
|
|
427
|
+
readonly meta: Record<string, unknown> | undefined;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Result type for migrationApply operation.
|
|
431
|
+
*/
|
|
432
|
+
type MigrationApplyResult = Result<MigrationApplySuccess, MigrationApplyFailure>;
|
|
433
|
+
/**
|
|
434
|
+
* Options for the standalone executeContractEmit function.
|
|
435
|
+
* Used by tooling (e.g., Vite plugin) that needs to emit contracts
|
|
436
|
+
* without the full ControlClient infrastructure.
|
|
437
|
+
*/
|
|
438
|
+
interface ContractEmitOptions {
|
|
439
|
+
/** Path to the prisma-next.config.ts file */
|
|
440
|
+
readonly configPath: string;
|
|
441
|
+
/** Optional AbortSignal for cancellation support */
|
|
442
|
+
readonly signal?: AbortSignal;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Result from the standalone executeContractEmit function.
|
|
446
|
+
*/
|
|
447
|
+
interface ContractEmitResult {
|
|
448
|
+
/** Hash of the storage contract (schema-level) */
|
|
449
|
+
readonly storageHash: string;
|
|
450
|
+
/** Hash of the execution contract (if execution section exists) */
|
|
451
|
+
readonly executionHash?: string;
|
|
452
|
+
/** Hash of the profile (target+extensions) */
|
|
453
|
+
readonly profileHash: string;
|
|
454
|
+
/** Paths to the emitted files */
|
|
455
|
+
readonly files: {
|
|
456
|
+
/** Path to the emitted contract.json file */
|
|
457
|
+
readonly json: string;
|
|
458
|
+
/** Path to the emitted contract.d.ts file */
|
|
459
|
+
readonly dts: string;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Programmatic control client for Prisma Next operations.
|
|
464
|
+
*
|
|
465
|
+
* Lifecycle: `connect(connection)` before operations, `close()` when done.
|
|
466
|
+
* Both `init()` and `connect()` are auto-called by operations if needed,
|
|
467
|
+
* but `connect()` requires a connection so must be called explicitly first
|
|
468
|
+
* unless a default connection was provided in options.
|
|
469
|
+
*
|
|
470
|
+
* @see README.md "Programmatic Control API" section for usage examples
|
|
471
|
+
*/
|
|
472
|
+
interface ControlClient {
|
|
473
|
+
/**
|
|
474
|
+
* Initializes the client by creating the control plane stack,
|
|
475
|
+
* family instance, and validating framework components.
|
|
476
|
+
*
|
|
477
|
+
* Idempotent (safe to call multiple times).
|
|
478
|
+
* Called automatically by `connect()` if not already initialized.
|
|
479
|
+
*/
|
|
480
|
+
init(): void;
|
|
481
|
+
/**
|
|
482
|
+
* Establishes a database connection.
|
|
483
|
+
* Auto-calls `init()` if not already initialized.
|
|
484
|
+
* Must be called before any database operations unless a default connection
|
|
485
|
+
* was provided in options.
|
|
486
|
+
*
|
|
487
|
+
* @param connection - Driver-specific connection input (e.g., URL string for Postgres).
|
|
488
|
+
* If omitted, uses the default connection from options (if provided).
|
|
489
|
+
* @throws If connection fails, already connected, driver is not configured,
|
|
490
|
+
* or no connection provided and no default connection in options.
|
|
491
|
+
*/
|
|
492
|
+
connect(connection?: unknown): Promise<void>;
|
|
493
|
+
/**
|
|
494
|
+
* Closes the database connection.
|
|
495
|
+
* Idempotent (safe to call multiple times).
|
|
496
|
+
* After close(), can call `connect()` again with same or different URL.
|
|
497
|
+
*/
|
|
498
|
+
close(): Promise<void>;
|
|
499
|
+
/**
|
|
500
|
+
* Verifies database marker matches the contract.
|
|
501
|
+
* Compares storageHash and profileHash.
|
|
502
|
+
*
|
|
503
|
+
* @returns Structured result (ok: false for mismatch, not throwing)
|
|
504
|
+
* @throws If not connected or infrastructure failure
|
|
505
|
+
*/
|
|
506
|
+
verify(options: VerifyOptions): Promise<VerifyDatabaseResult$1>;
|
|
507
|
+
/**
|
|
508
|
+
* Verifies database schema satisfies the contract requirements.
|
|
509
|
+
*
|
|
510
|
+
* @param options.strict - If true, extra tables/columns are issues. Default: false
|
|
511
|
+
* @returns Structured result with schema issues
|
|
512
|
+
* @throws If not connected or infrastructure failure
|
|
513
|
+
*/
|
|
514
|
+
schemaVerify(options: SchemaVerifyOptions): Promise<VerifyDatabaseSchemaResult$1>;
|
|
515
|
+
/**
|
|
516
|
+
* Signs the database with a contract signature.
|
|
517
|
+
* Writes or updates the signature if schema verification passes.
|
|
518
|
+
* Idempotent (no-op if signature already matches).
|
|
519
|
+
*
|
|
520
|
+
* @returns Structured result
|
|
521
|
+
* @throws If not connected or infrastructure failure
|
|
522
|
+
*/
|
|
523
|
+
sign(options: SignOptions): Promise<SignDatabaseResult$1>;
|
|
524
|
+
/**
|
|
525
|
+
* Initializes database schema from contract.
|
|
526
|
+
* Uses additive-only policy (no destructive changes).
|
|
527
|
+
*
|
|
528
|
+
* @param options.mode - 'plan' to preview, 'apply' to execute
|
|
529
|
+
* @returns Result pattern: Ok with planned/executed operations, NotOk with failure details
|
|
530
|
+
* @throws If not connected, target doesn't support migrations, or infrastructure failure
|
|
531
|
+
*/
|
|
532
|
+
dbInit(options: DbInitOptions): Promise<DbInitResult>;
|
|
533
|
+
/**
|
|
534
|
+
* Updates a database schema to match the current contract.
|
|
535
|
+
* Creates the signature table if it does not exist. No preconditions required.
|
|
536
|
+
* Allows additive, widening, and destructive operation classes.
|
|
537
|
+
*
|
|
538
|
+
* @param options.mode - 'plan' to preview, 'apply' to execute
|
|
539
|
+
* @returns Result pattern: Ok with planned/executed operations, NotOk with failure details
|
|
540
|
+
* @throws If not connected, target doesn't support migrations, or infrastructure failure
|
|
541
|
+
*/
|
|
542
|
+
dbUpdate(options: DbUpdateOptions): Promise<DbUpdateResult>;
|
|
543
|
+
/**
|
|
544
|
+
* Reads the contract marker from the database.
|
|
545
|
+
* Returns null if no marker exists (fresh database).
|
|
546
|
+
*
|
|
547
|
+
* @throws If not connected or infrastructure failure
|
|
548
|
+
*/
|
|
549
|
+
readMarker(): Promise<ContractMarkerRecord | null>;
|
|
550
|
+
/**
|
|
551
|
+
* Applies pre-planned on-disk migrations to the database.
|
|
552
|
+
* Each migration runs in its own transaction with full execution checks.
|
|
553
|
+
* Resume-safe: re-running after failure picks up from the last applied migration.
|
|
554
|
+
*
|
|
555
|
+
* @param options.originHash - Explicit source hash for the apply path
|
|
556
|
+
* @param options.destinationHash - Explicit destination hash for the apply path
|
|
557
|
+
* @param options.pendingMigrations - Ordered migrations to execute
|
|
558
|
+
* @returns Result pattern: Ok with applied details, NotOk with failure details
|
|
559
|
+
* @throws If not connected, target doesn't support migrations, or infrastructure failure
|
|
560
|
+
*/
|
|
561
|
+
migrationApply(options: MigrationApplyOptions): Promise<MigrationApplyResult>;
|
|
562
|
+
/**
|
|
563
|
+
* Introspects the database schema.
|
|
564
|
+
*
|
|
565
|
+
* @returns Raw schema IR
|
|
566
|
+
* @throws If not connected or infrastructure failure
|
|
567
|
+
*/
|
|
568
|
+
introspect(options?: IntrospectOptions): Promise<unknown>;
|
|
569
|
+
/**
|
|
570
|
+
* Converts a schema IR to a schema view for CLI tree rendering.
|
|
571
|
+
* Delegates to the family instance's toSchemaView method.
|
|
572
|
+
*
|
|
573
|
+
* @param schemaIR - The schema IR from introspect()
|
|
574
|
+
* @returns CoreSchemaView if the family supports it, undefined otherwise
|
|
575
|
+
*/
|
|
576
|
+
toSchemaView(schemaIR: unknown): CoreSchemaView | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* Emits the contract to JSON and TypeScript declarations.
|
|
579
|
+
* This is an offline operation that does NOT require a database connection.
|
|
580
|
+
* Uses `init()` to create the stack but does NOT call `connect()`.
|
|
581
|
+
*
|
|
582
|
+
* @returns Result pattern: Ok with emit details, NotOk with failure details
|
|
583
|
+
*/
|
|
584
|
+
emit(options: EmitOptions): Promise<EmitResult>;
|
|
585
|
+
}
|
|
586
|
+
//#endregion
|
|
587
|
+
//#region src/control-api/client.d.ts
|
|
588
|
+
/**
|
|
589
|
+
* Creates a programmatic control client for Prisma Next operations.
|
|
590
|
+
*
|
|
591
|
+
* The client accepts framework component descriptors at creation time,
|
|
592
|
+
* manages driver lifecycle via connect()/close(), and exposes domain
|
|
593
|
+
* operations that delegate to the existing family instance methods.
|
|
594
|
+
*
|
|
595
|
+
* @see {@link ControlClient} for the client interface
|
|
596
|
+
* @see README.md "Programmatic Control API" section for usage examples
|
|
597
|
+
*/
|
|
598
|
+
declare function createControlClient(options: ControlClientOptions): ControlClient;
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region src/control-api/operations/contract-emit.d.ts
|
|
601
|
+
/**
|
|
602
|
+
* Executes the contract emit operation.
|
|
603
|
+
*
|
|
604
|
+
* This is an offline operation that:
|
|
605
|
+
* 1. Loads the Prisma Next config from the specified path
|
|
606
|
+
* 2. Resolves the contract source from config
|
|
607
|
+
* 3. Creates a control plane stack and family instance
|
|
608
|
+
* 4. Emits contract artifacts (JSON and DTS)
|
|
609
|
+
* 5. Writes files to the paths specified in config
|
|
610
|
+
*
|
|
611
|
+
* Supports AbortSignal for cancellation, enabling "last change wins" behavior.
|
|
612
|
+
*
|
|
613
|
+
* @param options - Options including configPath and optional signal
|
|
614
|
+
* @returns File paths and hashes of emitted artifacts
|
|
615
|
+
* @throws If config loading fails, contract is invalid, or file I/O fails
|
|
616
|
+
* @throws signal.reason if cancelled via AbortSignal (typically DOMException with name 'AbortError')
|
|
617
|
+
*/
|
|
618
|
+
declare function executeContractEmit(options: ContractEmitOptions): Promise<ContractEmitResult>;
|
|
619
|
+
//#endregion
|
|
620
|
+
export { type ContractEmitOptions, type ContractEmitResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlPlaneStack, type ControlProgressEvent, type DbInitFailure, type DbInitFailureCode, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbUpdateFailure, type DbUpdateFailureCode, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type IntrospectOptions, type OnControlProgress, type SchemaVerifyOptions, type SignDatabaseResult, type SignOptions, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, createControlClient, executeContractEmit };
|
|
621
|
+
//# sourceMappingURL=control-api.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-api.d.mts","names":[],"sources":["../../src/control-api/types.ts","../../src/control-api/client.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