@prisma-next/cli 0.3.0-dev.3 → 0.3.0-dev.30

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 (101) hide show
  1. package/README.md +111 -27
  2. package/dist/{chunk-BZMBKEEQ.js → chunk-AGOTG4L3.js} +44 -76
  3. package/dist/chunk-AGOTG4L3.js.map +1 -0
  4. package/dist/chunk-HLLI4YL7.js +180 -0
  5. package/dist/chunk-HLLI4YL7.js.map +1 -0
  6. package/dist/chunk-VG2R7DGF.js +735 -0
  7. package/dist/chunk-VG2R7DGF.js.map +1 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +1502 -968
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/contract-emit.d.ts +2 -4
  13. package/dist/commands/contract-emit.d.ts.map +1 -0
  14. package/dist/commands/contract-emit.js +3 -2
  15. package/dist/commands/db-init.d.ts +2 -4
  16. package/dist/commands/db-init.d.ts.map +1 -0
  17. package/dist/commands/db-init.js +205 -289
  18. package/dist/commands/db-init.js.map +1 -1
  19. package/dist/commands/db-introspect.d.ts +2 -4
  20. package/dist/commands/db-introspect.d.ts.map +1 -0
  21. package/dist/commands/db-introspect.js +108 -143
  22. package/dist/commands/db-introspect.js.map +1 -1
  23. package/dist/commands/db-schema-verify.d.ts +2 -4
  24. package/dist/commands/db-schema-verify.d.ts.map +1 -0
  25. package/dist/commands/db-schema-verify.js +120 -113
  26. package/dist/commands/db-schema-verify.js.map +1 -1
  27. package/dist/commands/db-sign.d.ts +2 -4
  28. package/dist/commands/db-sign.d.ts.map +1 -0
  29. package/dist/commands/db-sign.js +152 -156
  30. package/dist/commands/db-sign.js.map +1 -1
  31. package/dist/commands/db-verify.d.ts +2 -4
  32. package/dist/commands/db-verify.d.ts.map +1 -0
  33. package/dist/commands/db-verify.js +142 -122
  34. package/dist/commands/db-verify.js.map +1 -1
  35. package/dist/config-loader.d.ts +3 -5
  36. package/dist/config-loader.d.ts.map +1 -0
  37. package/dist/control-api/client.d.ts +13 -0
  38. package/dist/control-api/client.d.ts.map +1 -0
  39. package/dist/control-api/operations/db-init.d.ts +29 -0
  40. package/dist/control-api/operations/db-init.d.ts.map +1 -0
  41. package/dist/control-api/types.d.ts +387 -0
  42. package/dist/control-api/types.d.ts.map +1 -0
  43. package/dist/exports/config-types.d.ts +3 -0
  44. package/dist/exports/config-types.d.ts.map +1 -0
  45. package/dist/exports/config-types.js.map +1 -0
  46. package/dist/exports/control-api.d.ts +13 -0
  47. package/dist/exports/control-api.d.ts.map +1 -0
  48. package/dist/exports/control-api.js +7 -0
  49. package/dist/exports/control-api.js.map +1 -0
  50. package/dist/exports/index.d.ts +4 -0
  51. package/dist/exports/index.d.ts.map +1 -0
  52. package/dist/{index.js → exports/index.js} +4 -3
  53. package/dist/exports/index.js.map +1 -0
  54. package/dist/{index.d.ts → load-ts-contract.d.ts} +4 -8
  55. package/dist/load-ts-contract.d.ts.map +1 -0
  56. package/dist/utils/cli-errors.d.ts +7 -0
  57. package/dist/utils/cli-errors.d.ts.map +1 -0
  58. package/dist/utils/command-helpers.d.ts +12 -0
  59. package/dist/utils/command-helpers.d.ts.map +1 -0
  60. package/dist/utils/framework-components.d.ts +70 -0
  61. package/dist/utils/framework-components.d.ts.map +1 -0
  62. package/dist/utils/global-flags.d.ts +25 -0
  63. package/dist/utils/global-flags.d.ts.map +1 -0
  64. package/dist/utils/output.d.ts +142 -0
  65. package/dist/utils/output.d.ts.map +1 -0
  66. package/dist/utils/progress-adapter.d.ts +26 -0
  67. package/dist/utils/progress-adapter.d.ts.map +1 -0
  68. package/dist/utils/result-handler.d.ts +15 -0
  69. package/dist/utils/result-handler.d.ts.map +1 -0
  70. package/package.json +30 -26
  71. package/src/cli.ts +260 -0
  72. package/src/commands/contract-emit.ts +259 -0
  73. package/src/commands/db-init.ts +360 -0
  74. package/src/commands/db-introspect.ts +227 -0
  75. package/src/commands/db-schema-verify.ts +238 -0
  76. package/src/commands/db-sign.ts +279 -0
  77. package/src/commands/db-verify.ts +258 -0
  78. package/src/config-loader.ts +76 -0
  79. package/src/control-api/client.ts +589 -0
  80. package/src/control-api/operations/db-init.ts +281 -0
  81. package/src/control-api/types.ts +461 -0
  82. package/src/exports/config-types.ts +6 -0
  83. package/src/exports/control-api.ts +46 -0
  84. package/src/exports/index.ts +4 -0
  85. package/src/load-ts-contract.ts +217 -0
  86. package/src/utils/cli-errors.ts +26 -0
  87. package/src/utils/command-helpers.ts +26 -0
  88. package/src/utils/framework-components.ts +177 -0
  89. package/src/utils/global-flags.ts +75 -0
  90. package/src/utils/output.ts +1471 -0
  91. package/src/utils/progress-adapter.ts +86 -0
  92. package/src/utils/result-handler.ts +44 -0
  93. package/dist/chunk-464LNZCE.js +0 -134
  94. package/dist/chunk-464LNZCE.js.map +0 -1
  95. package/dist/chunk-BZMBKEEQ.js.map +0 -1
  96. package/dist/chunk-ZKYEJROM.js +0 -94
  97. package/dist/chunk-ZKYEJROM.js.map +0 -1
  98. package/dist/config-types.d.ts +0 -1
  99. package/dist/config-types.js.map +0 -1
  100. package/dist/index.js.map +0 -1
  101. /package/dist/{config-types.js → exports/config-types.js} +0 -0
@@ -0,0 +1,461 @@
1
+ import type { CoreSchemaView } from '@prisma-next/core-control-plane/schema-view';
2
+ import type {
3
+ ControlAdapterDescriptor,
4
+ ControlDriverDescriptor,
5
+ ControlExtensionDescriptor,
6
+ ControlFamilyDescriptor,
7
+ ControlTargetDescriptor,
8
+ MigrationPlannerConflict,
9
+ SignDatabaseResult,
10
+ VerifyDatabaseResult,
11
+ VerifyDatabaseSchemaResult,
12
+ } from '@prisma-next/core-control-plane/types';
13
+ import type { Result } from '@prisma-next/utils/result';
14
+
15
+ // ============================================================================
16
+ // Client Options
17
+ // ============================================================================
18
+
19
+ /**
20
+ * Options for creating a control client.
21
+ *
22
+ * Note: This is NOT the same as CLI config. There's no `contract` field,
23
+ * no file paths. The client is config-agnostic.
24
+ *
25
+ * The descriptor types use permissive `any` because family-specific descriptors
26
+ * (e.g., SqlFamilyDescriptor) have more specific `create` method signatures that
27
+ * are not compatible with the base ControlFamilyDescriptor type due to TypeScript
28
+ * variance rules. The client implementation casts these internally.
29
+ */
30
+ export interface ControlClientOptions {
31
+ // biome-ignore lint/suspicious/noExplicitAny: required for contravariance - SqlFamilyDescriptor.create has specific parameter types
32
+ readonly family: ControlFamilyDescriptor<any, any>;
33
+ // biome-ignore lint/suspicious/noExplicitAny: required for contravariance - SqlControlTargetDescriptor extends with additional methods
34
+ readonly target: ControlTargetDescriptor<any, any, any, any>;
35
+ // biome-ignore lint/suspicious/noExplicitAny: required for contravariance in adapter.create()
36
+ readonly adapter: ControlAdapterDescriptor<any, any, any>;
37
+ /** Optional - control client can be created without driver for offline operations */
38
+ // biome-ignore lint/suspicious/noExplicitAny: required for contravariance in driver.create()
39
+ readonly driver?: ControlDriverDescriptor<any, any, any, any>;
40
+ // biome-ignore lint/suspicious/noExplicitAny: required for contravariance in extension.create()
41
+ readonly extensionPacks?: ReadonlyArray<ControlExtensionDescriptor<any, any, any>>;
42
+ /**
43
+ * Optional default connection for auto-connect.
44
+ * When provided, operations will auto-connect if not already connected.
45
+ * The type is driver-specific (e.g., string URL for Postgres).
46
+ */
47
+ readonly connection?: unknown;
48
+ }
49
+
50
+ // ============================================================================
51
+ // Progress Events
52
+ // ============================================================================
53
+
54
+ /**
55
+ * Action names for control-api operations that can emit progress events.
56
+ */
57
+ export type ControlActionName =
58
+ | 'dbInit'
59
+ | 'verify'
60
+ | 'schemaVerify'
61
+ | 'sign'
62
+ | 'introspect'
63
+ | 'emit';
64
+
65
+ /**
66
+ * Progress event emitted during control-api operation execution.
67
+ *
68
+ * Events model operation progress using a span-based model:
69
+ * - `spanStart`: Begin a timed segment (supports nesting via parentSpanId)
70
+ * - `spanEnd`: Complete a timed segment
71
+ *
72
+ * All operation-specific progress (e.g., per-migration-operation) is modeled
73
+ * as nested spans rather than special event types.
74
+ *
75
+ * Events are delivered via an optional `onProgress` callback to avoid polluting
76
+ * return types. If the callback is absent, operations emit no events (zero overhead).
77
+ */
78
+ export type ControlProgressEvent =
79
+ | {
80
+ readonly action: ControlActionName;
81
+ readonly kind: 'spanStart';
82
+ readonly spanId: string;
83
+ readonly parentSpanId?: string;
84
+ readonly label: string;
85
+ }
86
+ | {
87
+ readonly action: ControlActionName;
88
+ readonly kind: 'spanEnd';
89
+ readonly spanId: string;
90
+ readonly outcome: 'ok' | 'skipped' | 'error';
91
+ };
92
+
93
+ /**
94
+ * Callback function for receiving progress events during control-api operations.
95
+ *
96
+ * @param event - The progress event emitted by the operation
97
+ */
98
+ export type OnControlProgress = (event: ControlProgressEvent) => void;
99
+
100
+ // ============================================================================
101
+ // Operation Options
102
+ // ============================================================================
103
+
104
+ /**
105
+ * Options for the verify operation.
106
+ */
107
+ export interface VerifyOptions {
108
+ /** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
109
+ readonly contractIR: unknown;
110
+ /**
111
+ * Database connection. If provided, verify will connect before executing.
112
+ * If omitted, the client must already be connected.
113
+ * The type is driver-specific (e.g., string URL for Postgres).
114
+ */
115
+ readonly connection?: unknown;
116
+ /** Optional progress callback for observing operation progress */
117
+ readonly onProgress?: OnControlProgress;
118
+ }
119
+
120
+ /**
121
+ * Options for the schemaVerify operation.
122
+ */
123
+ export interface SchemaVerifyOptions {
124
+ /** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
125
+ readonly contractIR: unknown;
126
+ /**
127
+ * Whether to use strict mode for schema verification.
128
+ * In strict mode, extra tables/columns are reported as issues.
129
+ * Default: false (tolerant mode - allows superset)
130
+ */
131
+ readonly strict?: boolean;
132
+ /**
133
+ * Database connection. If provided, schemaVerify will connect before executing.
134
+ * If omitted, the client must already be connected.
135
+ * The type is driver-specific (e.g., string URL for Postgres).
136
+ */
137
+ readonly connection?: unknown;
138
+ /** Optional progress callback for observing operation progress */
139
+ readonly onProgress?: OnControlProgress;
140
+ }
141
+
142
+ /**
143
+ * Options for the sign operation.
144
+ */
145
+ export interface SignOptions {
146
+ /** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
147
+ readonly contractIR: unknown;
148
+ /**
149
+ * Path to the contract file (for metadata in the result).
150
+ */
151
+ readonly contractPath?: string;
152
+ /**
153
+ * Path to the config file (for metadata in the result).
154
+ */
155
+ readonly configPath?: string;
156
+ /**
157
+ * Database connection. If provided, sign will connect before executing.
158
+ * If omitted, the client must already be connected.
159
+ * The type is driver-specific (e.g., string URL for Postgres).
160
+ */
161
+ readonly connection?: unknown;
162
+ /** Optional progress callback for observing operation progress */
163
+ readonly onProgress?: OnControlProgress;
164
+ }
165
+
166
+ /**
167
+ * Options for the dbInit operation.
168
+ */
169
+ export interface DbInitOptions {
170
+ /** Contract IR or unvalidated JSON - validated at runtime via familyInstance.validateContractIR() */
171
+ readonly contractIR: unknown;
172
+ /**
173
+ * Mode for the dbInit operation.
174
+ * - 'plan': Returns planned operations without applying
175
+ * - 'apply': Applies operations and writes marker
176
+ */
177
+ readonly mode: 'plan' | 'apply';
178
+ /**
179
+ * Database connection. If provided, dbInit will connect before executing.
180
+ * If omitted, the client must already be connected.
181
+ * The type is driver-specific (e.g., string URL for Postgres).
182
+ */
183
+ readonly connection?: unknown;
184
+ /** Optional progress callback for observing operation progress */
185
+ readonly onProgress?: OnControlProgress;
186
+ }
187
+
188
+ /**
189
+ * Options for the introspect operation.
190
+ */
191
+ export interface IntrospectOptions {
192
+ /**
193
+ * Optional schema name to introspect.
194
+ */
195
+ readonly schema?: string;
196
+ /**
197
+ * Database connection. If provided, introspect will connect before executing.
198
+ * If omitted, the client must already be connected.
199
+ * The type is driver-specific (e.g., string URL for Postgres).
200
+ */
201
+ readonly connection?: unknown;
202
+ /** Optional progress callback for observing operation progress */
203
+ readonly onProgress?: OnControlProgress;
204
+ }
205
+
206
+ /**
207
+ * Contract source as a raw value (any JSON-serializable value).
208
+ */
209
+ export interface ContractSourceValue {
210
+ readonly kind: 'value';
211
+ readonly value: unknown;
212
+ }
213
+
214
+ /**
215
+ * Contract source as a lazy loader function.
216
+ */
217
+ export interface ContractSourceLoader {
218
+ readonly kind: 'loader';
219
+ readonly load: () => unknown | Promise<unknown>;
220
+ }
221
+
222
+ /**
223
+ * Discriminated union for contract source.
224
+ * Use `kind` to determine how to resolve the contract.
225
+ */
226
+ export type EmitContractSource = ContractSourceValue | ContractSourceLoader;
227
+
228
+ /**
229
+ * Contract configuration for emit operation.
230
+ */
231
+ export interface EmitContractConfig {
232
+ /**
233
+ * Contract source - either a raw value or a loader function.
234
+ * Switch on `source.kind` to determine how to resolve.
235
+ */
236
+ readonly source: EmitContractSource;
237
+ /**
238
+ * Output path for contract.json.
239
+ * Should be an absolute or relative path.
240
+ */
241
+ readonly output: string;
242
+ /**
243
+ * Output path for contract.d.ts.
244
+ * Should be an absolute or relative path.
245
+ */
246
+ readonly types: string;
247
+ }
248
+
249
+ /**
250
+ * Options for the emit operation.
251
+ */
252
+ export interface EmitOptions {
253
+ /**
254
+ * Contract configuration containing source, output, and types paths.
255
+ */
256
+ readonly contractConfig: EmitContractConfig;
257
+ /** Optional progress callback for observing operation progress */
258
+ readonly onProgress?: OnControlProgress;
259
+ }
260
+
261
+ // ============================================================================
262
+ // Result Types
263
+ // ============================================================================
264
+
265
+ /**
266
+ * Successful dbInit result.
267
+ */
268
+ export interface DbInitSuccess {
269
+ readonly mode: 'plan' | 'apply';
270
+ readonly plan: {
271
+ readonly operations: ReadonlyArray<{
272
+ readonly id: string;
273
+ readonly label: string;
274
+ readonly operationClass: string;
275
+ }>;
276
+ };
277
+ readonly execution?: {
278
+ readonly operationsPlanned: number;
279
+ readonly operationsExecuted: number;
280
+ };
281
+ readonly marker?: {
282
+ readonly coreHash: string;
283
+ readonly profileHash?: string;
284
+ };
285
+ readonly summary: string;
286
+ }
287
+
288
+ /**
289
+ * Failure codes for dbInit operation.
290
+ */
291
+ export type DbInitFailureCode = 'PLANNING_FAILED' | 'MARKER_ORIGIN_MISMATCH' | 'RUNNER_FAILED';
292
+
293
+ /**
294
+ * Failure details for dbInit operation.
295
+ */
296
+ export interface DbInitFailure {
297
+ readonly code: DbInitFailureCode;
298
+ readonly summary: string;
299
+ readonly why: string | undefined;
300
+ readonly conflicts: ReadonlyArray<MigrationPlannerConflict> | undefined;
301
+ readonly meta: Record<string, unknown> | undefined;
302
+ readonly marker?: {
303
+ readonly coreHash?: string;
304
+ readonly profileHash?: string;
305
+ };
306
+ readonly destination?: {
307
+ readonly coreHash: string;
308
+ readonly profileHash?: string | undefined;
309
+ };
310
+ }
311
+
312
+ /**
313
+ * Result type for dbInit operation.
314
+ * Uses Result pattern: success returns DbInitSuccess, failure returns DbInitFailure.
315
+ */
316
+ export type DbInitResult = Result<DbInitSuccess, DbInitFailure>;
317
+
318
+ /**
319
+ * Successful emit result.
320
+ * Contains the hashes and paths of emitted files.
321
+ */
322
+ export interface EmitSuccess {
323
+ /** Core hash of the emitted contract */
324
+ readonly coreHash: string;
325
+ /** Profile hash of the emitted contract (target-specific) */
326
+ readonly profileHash: string;
327
+ /** The emitted contract as JSON string */
328
+ readonly contractJson: string;
329
+ /** The emitted contract TypeScript declarations */
330
+ readonly contractDts: string;
331
+ }
332
+
333
+ /**
334
+ * Failure codes for emit operation.
335
+ */
336
+ export type EmitFailureCode = 'CONTRACT_SOURCE_INVALID' | 'EMIT_FAILED';
337
+
338
+ /**
339
+ * Failure details for emit operation.
340
+ */
341
+ export interface EmitFailure {
342
+ readonly code: EmitFailureCode;
343
+ readonly summary: string;
344
+ readonly why: string | undefined;
345
+ readonly meta: Record<string, unknown> | undefined;
346
+ }
347
+
348
+ /**
349
+ * Result type for emit operation.
350
+ * Uses Result pattern: success returns EmitSuccess, failure returns EmitFailure.
351
+ */
352
+ export type EmitResult = Result<EmitSuccess, EmitFailure>;
353
+
354
+ // ============================================================================
355
+ // Client Interface
356
+ // ============================================================================
357
+
358
+ /**
359
+ * Programmatic control client for Prisma Next operations.
360
+ *
361
+ * Lifecycle: `connect(connection)` before operations, `close()` when done.
362
+ * Both `init()` and `connect()` are auto-called by operations if needed,
363
+ * but `connect()` requires a connection so must be called explicitly first
364
+ * unless a default connection was provided in options.
365
+ *
366
+ * @see README.md "Programmatic Control API" section for usage examples
367
+ */
368
+ export interface ControlClient {
369
+ /**
370
+ * Initializes the client by creating the control plane stack,
371
+ * family instance, and validating framework components.
372
+ *
373
+ * Idempotent (safe to call multiple times).
374
+ * Called automatically by `connect()` if not already initialized.
375
+ */
376
+ init(): void;
377
+
378
+ /**
379
+ * Establishes a database connection.
380
+ * Auto-calls `init()` if not already initialized.
381
+ * Must be called before any database operations unless a default connection
382
+ * was provided in options.
383
+ *
384
+ * @param connection - Driver-specific connection input (e.g., URL string for Postgres).
385
+ * If omitted, uses the default connection from options (if provided).
386
+ * @throws If connection fails, already connected, driver is not configured,
387
+ * or no connection provided and no default connection in options.
388
+ */
389
+ connect(connection?: unknown): Promise<void>;
390
+
391
+ /**
392
+ * Closes the database connection.
393
+ * Idempotent (safe to call multiple times).
394
+ * After close(), can call `connect()` again with same or different URL.
395
+ */
396
+ close(): Promise<void>;
397
+
398
+ /**
399
+ * Verifies database marker matches the contract.
400
+ * Compares coreHash and profileHash.
401
+ *
402
+ * @returns Structured result (ok: false for mismatch, not throwing)
403
+ * @throws If not connected or infrastructure failure
404
+ */
405
+ verify(options: VerifyOptions): Promise<VerifyDatabaseResult>;
406
+
407
+ /**
408
+ * Verifies database schema satisfies the contract requirements.
409
+ *
410
+ * @param options.strict - If true, extra tables/columns are issues. Default: false
411
+ * @returns Structured result with schema issues
412
+ * @throws If not connected or infrastructure failure
413
+ */
414
+ schemaVerify(options: SchemaVerifyOptions): Promise<VerifyDatabaseSchemaResult>;
415
+
416
+ /**
417
+ * Signs the database with a contract marker.
418
+ * Writes or updates the contract marker if schema verification passes.
419
+ * Idempotent (no-op if marker already matches).
420
+ *
421
+ * @returns Structured result
422
+ * @throws If not connected or infrastructure failure
423
+ */
424
+ sign(options: SignOptions): Promise<SignDatabaseResult>;
425
+
426
+ /**
427
+ * Initializes database schema from contract.
428
+ * Uses additive-only policy (no destructive changes).
429
+ *
430
+ * @param options.mode - 'plan' to preview, 'apply' to execute
431
+ * @returns Result pattern: Ok with planned/executed operations, NotOk with failure details
432
+ * @throws If not connected, target doesn't support migrations, or infrastructure failure
433
+ */
434
+ dbInit(options: DbInitOptions): Promise<DbInitResult>;
435
+
436
+ /**
437
+ * Introspects the database schema.
438
+ *
439
+ * @returns Raw schema IR
440
+ * @throws If not connected or infrastructure failure
441
+ */
442
+ introspect(options?: IntrospectOptions): Promise<unknown>;
443
+
444
+ /**
445
+ * Converts a schema IR to a schema view for CLI tree rendering.
446
+ * Delegates to the family instance's toSchemaView method.
447
+ *
448
+ * @param schemaIR - The schema IR from introspect()
449
+ * @returns CoreSchemaView if the family supports it, undefined otherwise
450
+ */
451
+ toSchemaView(schemaIR: unknown): CoreSchemaView | undefined;
452
+
453
+ /**
454
+ * Emits the contract to JSON and TypeScript declarations.
455
+ * This is an offline operation that does NOT require a database connection.
456
+ * Uses `init()` to create the stack but does NOT call `connect()`.
457
+ *
458
+ * @returns Result pattern: Ok with emit details, NotOk with failure details
459
+ */
460
+ emit(options: EmitOptions): Promise<EmitResult>;
461
+ }
@@ -0,0 +1,6 @@
1
+ // Re-export core-control-plane config types for convenience
2
+ export type {
3
+ ContractConfig,
4
+ PrismaNextConfig,
5
+ } from '@prisma-next/core-control-plane/config-types';
6
+ export { defineConfig } from '@prisma-next/core-control-plane/config-types';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Programmatic Control API for Prisma Next.
3
+ *
4
+ * This module exports the control client factory and types for programmatic
5
+ * access to control-plane operations without using the CLI.
6
+ *
7
+ * @see README.md "Programmatic Control API" section for usage examples
8
+ * @module
9
+ */
10
+
11
+ // Re-export core control plane types for consumer convenience
12
+ export type {
13
+ ControlPlaneStack,
14
+ SignDatabaseResult,
15
+ VerifyDatabaseResult,
16
+ VerifyDatabaseSchemaResult,
17
+ } from '@prisma-next/core-control-plane/types';
18
+ // Client factory
19
+ export { createControlClient } from '../control-api/client';
20
+
21
+ // CLI-specific types
22
+ export type {
23
+ ContractSourceLoader,
24
+ ContractSourceValue,
25
+ ControlActionName,
26
+ ControlClient,
27
+ ControlClientOptions,
28
+ ControlProgressEvent,
29
+ DbInitFailure,
30
+ DbInitFailureCode,
31
+ DbInitOptions,
32
+ DbInitResult,
33
+ DbInitSuccess,
34
+ EmitContractConfig,
35
+ EmitContractSource,
36
+ EmitFailure,
37
+ EmitFailureCode,
38
+ EmitOptions,
39
+ EmitResult,
40
+ EmitSuccess,
41
+ IntrospectOptions,
42
+ OnControlProgress,
43
+ SchemaVerifyOptions,
44
+ SignOptions,
45
+ VerifyOptions,
46
+ } from '../control-api/types';
@@ -0,0 +1,4 @@
1
+ // CLI-specific exports
2
+ export { createContractEmitCommand } from '../commands/contract-emit';
3
+ export type { LoadTsContractOptions } from '../load-ts-contract';
4
+ export { loadContractFromTs } from '../load-ts-contract';