@prisma-next/framework-components 0.5.0-dev.6 → 0.5.0-dev.61

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 (92) hide show
  1. package/README.md +63 -3
  2. package/dist/authoring.d.mts +2 -2
  3. package/dist/authoring.mjs +2 -121
  4. package/dist/codec-BUBJeOk4.d.mts +168 -0
  5. package/dist/codec-BUBJeOk4.d.mts.map +1 -0
  6. package/dist/codec.d.mts +49 -2
  7. package/dist/codec.d.mts.map +1 -0
  8. package/dist/codec.mjs +68 -3
  9. package/dist/codec.mjs.map +1 -1
  10. package/dist/components.d.mts +3 -1
  11. package/dist/components.mjs +1 -1
  12. package/dist/control.d.mts +110 -71
  13. package/dist/control.d.mts.map +1 -1
  14. package/dist/control.mjs +47 -45
  15. package/dist/control.mjs.map +1 -1
  16. package/dist/emission-types-DzNgwiFC.d.mts +39 -0
  17. package/dist/emission-types-DzNgwiFC.d.mts.map +1 -0
  18. package/dist/emission.d.mts +2 -2
  19. package/dist/execution.d.mts +7 -5
  20. package/dist/execution.d.mts.map +1 -1
  21. package/dist/execution.mjs +3 -3
  22. package/dist/execution.mjs.map +1 -1
  23. package/dist/{framework-authoring-D1-JZ37B.d.mts → framework-authoring-DJbiXhmf.d.mts} +41 -12
  24. package/dist/framework-authoring-DJbiXhmf.d.mts.map +1 -0
  25. package/dist/framework-authoring-gi_BJlNO.mjs +206 -0
  26. package/dist/framework-authoring-gi_BJlNO.mjs.map +1 -0
  27. package/dist/{framework-components-EJXe-pum.d.mts → framework-components-BVqm1I48.d.mts} +45 -55
  28. package/dist/framework-components-BVqm1I48.d.mts.map +1 -0
  29. package/dist/{framework-components-C8ZhSwXe.mjs → framework-components-BsWST1Rn.mjs} +2 -2
  30. package/dist/framework-components-BsWST1Rn.mjs.map +1 -0
  31. package/dist/psl-ast-BlDveJZ4.d.mts +159 -0
  32. package/dist/psl-ast-BlDveJZ4.d.mts.map +1 -0
  33. package/dist/psl-ast.d.mts +2 -0
  34. package/dist/psl-ast.mjs +1 -0
  35. package/dist/runtime.d.mts +346 -19
  36. package/dist/runtime.d.mts.map +1 -1
  37. package/dist/runtime.mjs +256 -4
  38. package/dist/runtime.mjs.map +1 -1
  39. package/dist/{types-import-spec-C4sc7wbb.d.mts → types-import-spec-CPhrNJIV.d.mts} +2 -2
  40. package/dist/types-import-spec-CPhrNJIV.d.mts.map +1 -0
  41. package/package.json +7 -4
  42. package/src/control/control-capabilities.ts +71 -0
  43. package/src/{control-descriptors.ts → control/control-descriptors.ts} +7 -7
  44. package/src/{control-instances.ts → control/control-instances.ts} +6 -6
  45. package/src/{control-migration-types.ts → control/control-migration-types.ts} +57 -60
  46. package/src/control/control-operation-preview.ts +23 -0
  47. package/src/{control-stack.ts → control/control-stack.ts} +77 -94
  48. package/src/control/emission-types.ts +49 -0
  49. package/src/control/psl-ast.ts +193 -0
  50. package/src/{execution-descriptors.ts → execution/execution-descriptors.ts} +7 -7
  51. package/src/{execution-instances.ts → execution/execution-instances.ts} +1 -1
  52. package/src/{execution-requirements.ts → execution/execution-requirements.ts} +1 -1
  53. package/src/execution/query-plan.ts +53 -0
  54. package/src/execution/race-against-abort.ts +85 -0
  55. package/src/execution/run-with-middleware.ts +132 -0
  56. package/src/execution/runtime-core.ts +133 -0
  57. package/src/execution/runtime-error.ts +83 -0
  58. package/src/execution/runtime-middleware.ts +182 -0
  59. package/src/exports/authoring.ts +5 -2
  60. package/src/exports/codec.ts +27 -2
  61. package/src/exports/components.ts +2 -2
  62. package/src/exports/control.ts +26 -13
  63. package/src/exports/emission.ts +2 -2
  64. package/src/exports/execution.ts +5 -5
  65. package/src/exports/psl-ast.ts +1 -0
  66. package/src/exports/runtime.ts +17 -5
  67. package/src/shared/codec-descriptor.ts +87 -0
  68. package/src/shared/codec-types.ts +79 -0
  69. package/src/shared/codec.ts +80 -0
  70. package/src/shared/column-spec.ts +83 -0
  71. package/src/{framework-authoring.ts → shared/framework-authoring.ts} +202 -23
  72. package/src/{framework-components.ts → shared/framework-components.ts} +22 -48
  73. package/src/{mutation-default-types.ts → shared/mutation-default-types.ts} +22 -2
  74. package/dist/authoring.mjs.map +0 -1
  75. package/dist/codec-types-B58nCJiu.d.mts +0 -40
  76. package/dist/codec-types-B58nCJiu.d.mts.map +0 -1
  77. package/dist/emission-types-BPAALJbF.d.mts +0 -24
  78. package/dist/emission-types-BPAALJbF.d.mts.map +0 -1
  79. package/dist/framework-authoring-D1-JZ37B.d.mts.map +0 -1
  80. package/dist/framework-components-C8ZhSwXe.mjs.map +0 -1
  81. package/dist/framework-components-EJXe-pum.d.mts.map +0 -1
  82. package/dist/types-import-spec-C4sc7wbb.d.mts.map +0 -1
  83. package/src/codec-types.ts +0 -46
  84. package/src/control-capabilities.ts +0 -34
  85. package/src/emission-types.ts +0 -28
  86. package/src/runtime-error.ts +0 -39
  87. package/src/runtime-middleware.ts +0 -83
  88. /package/src/{control-result-types.ts → control/control-result-types.ts} +0 -0
  89. /package/src/{control-schema-view.ts → control/control-schema-view.ts} +0 -0
  90. /package/src/{async-iterable-result.ts → execution/async-iterable-result.ts} +0 -0
  91. /package/src/{execution-stack.ts → execution/execution-stack.ts} +0 -0
  92. /package/src/{types-import-spec.ts → shared/types-import-spec.ts} +0 -0
@@ -1,2 +1,4 @@
1
- import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-EJXe-pum.mjs";
1
+ import "./framework-authoring-DJbiXhmf.mjs";
2
+ import "./codec-BUBJeOk4.mjs";
3
+ import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-BVqm1I48.mjs";
2
4
  export { type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type DriverDescriptor, type DriverInstance, type DriverPackRef, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type PackRefBase, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetPackRef, checkContractComponentRequirements };
@@ -1,3 +1,3 @@
1
- import { t as checkContractComponentRequirements } from "./framework-components-C8ZhSwXe.mjs";
1
+ import { t as checkContractComponentRequirements } from "./framework-components-BsWST1Rn.mjs";
2
2
 
3
3
  export { checkContractComponentRequirements };
@@ -1,12 +1,13 @@
1
- import { a as AuthoringFieldNamespace, d as AuthoringTypeNamespace, i as AuthoringContributions } from "./framework-authoring-D1-JZ37B.mjs";
2
- import { n as CodecLookup } from "./codec-types-B58nCJiu.mjs";
3
- import { A as LoweredDefaultResult, C as ControlMutationDefaultEntry, D as DefaultFunctionLoweringHandler, E as DefaultFunctionLoweringContext, F as SourceSpan, M as MutationDefaultGeneratorDescriptor, N as ParsedDefaultFunctionCall, O as DefaultFunctionRegistry, P as SourceDiagnostic, T as ControlMutationDefaults, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, j as LoweredDefaultValue, k as DefaultFunctionRegistryEntry, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, w as ControlMutationDefaultRegistry, y as TargetDescriptor } from "./framework-components-EJXe-pum.mjs";
4
- import { t as TypesImportSpec } from "./types-import-spec-C4sc7wbb.mjs";
5
- import { t as EmissionSpi } from "./emission-types-BPAALJbF.mjs";
1
+ import { a as AuthoringFieldNamespace, d as AuthoringTypeNamespace, i as AuthoringContributions } from "./framework-authoring-DJbiXhmf.mjs";
2
+ import { c as CodecLookup } from "./codec-BUBJeOk4.mjs";
3
+ import { A as LoweredDefaultResult, C as ControlMutationDefaultEntry, D as DefaultFunctionLoweringHandler, E as DefaultFunctionLoweringContext, F as SourceSpan, M as MutationDefaultGeneratorDescriptor, N as ParsedDefaultFunctionCall, O as DefaultFunctionRegistry, P as SourceDiagnostic, T as ControlMutationDefaults, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, j as LoweredDefaultValue, k as DefaultFunctionRegistryEntry, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, w as ControlMutationDefaultRegistry, y as TargetDescriptor } from "./framework-components-BVqm1I48.mjs";
4
+ import { t as TypesImportSpec } from "./types-import-spec-CPhrNJIV.mjs";
5
+ import { t as EmissionSpi } from "./emission-types-DzNgwiFC.mjs";
6
+ import { m as PslDocumentAst } from "./psl-ast-BlDveJZ4.mjs";
6
7
  import { Contract, ContractMarkerRecord } from "@prisma-next/contract/types";
7
8
  import { Result } from "@prisma-next/utils/result";
8
9
 
9
- //#region src/control-result-types.d.ts
10
+ //#region src/control/control-result-types.d.ts
10
11
  declare const VERIFY_CODE_MARKER_MISSING = "PN-RUN-3001";
11
12
  declare const VERIFY_CODE_HASH_MISMATCH = "PN-RUN-3002";
12
13
  declare const VERIFY_CODE_TARGET_MISMATCH = "PN-RUN-3003";
@@ -154,7 +155,7 @@ interface SignDatabaseResult {
154
155
  };
155
156
  }
156
157
  //#endregion
157
- //#region src/control-instances.d.ts
158
+ //#region src/control/control-instances.d.ts
158
159
  interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR> extends FamilyInstance<TFamilyId> {
159
160
  validateContract(contractJson: unknown): Contract;
160
161
  verify(options: {
@@ -196,7 +197,7 @@ interface ControlDriverInstance<TFamilyId extends string, TTargetId extends stri
196
197
  }
197
198
  interface ControlExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {}
198
199
  //#endregion
199
- //#region src/control-stack.d.ts
200
+ //#region src/control/control-stack.d.ts
200
201
  interface AssembledAuthoringContributions {
201
202
  readonly field: AuthoringFieldNamespace;
202
203
  readonly type: AuthoringTypeNamespace;
@@ -252,11 +253,11 @@ declare function assembleControlMutationDefaults(descriptors: ReadonlyArray<Pick
252
253
  readonly id?: string;
253
254
  }>): ControlMutationDefaults;
254
255
  declare function extractCodecLookup(descriptors: ReadonlyArray<Pick<ComponentMetadata & {
255
- id?: string;
256
+ id: string;
256
257
  }, 'types' | 'id'>>): CodecLookup;
257
258
  declare function createControlStack<TFamilyId extends string, TTargetId extends string>(input: CreateControlStackInput<TFamilyId, TTargetId>): ControlStack<TFamilyId, TTargetId>;
258
259
  //#endregion
259
- //#region src/control-descriptors.d.ts
260
+ //#region src/control/control-descriptors.d.ts
260
261
  interface ControlFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends ControlFamilyInstance<TFamilyId, unknown> = ControlFamilyInstance<TFamilyId, unknown>> extends FamilyDescriptor<TFamilyId> {
261
262
  readonly emission: EmissionSpi;
262
263
  create<TTargetId extends string>(stack: ControlStack<TFamilyId, TTargetId>): TFamilyInstance;
@@ -281,7 +282,7 @@ interface ControlExtensionDescriptor<TFamilyId extends string, TTargetId extends
281
282
  create(): TExtensionInstance;
282
283
  }
283
284
  //#endregion
284
- //#region src/control-migration-types.d.ts
285
+ //#region src/control/control-migration-types.d.ts
285
286
  /**
286
287
  * Migration operation classes define the safety level of an operation.
287
288
  * - 'additive': Adds new structures without modifying existing ones (safe)
@@ -294,52 +295,15 @@ type MigrationOperationClass = 'additive' | 'widening' | 'destructive' | 'data';
294
295
  * A lowered query statement as stored in ops.json.
295
296
  * Contains the SQL string and parameter values — ready for execution.
296
297
  * Lowering from query builder AST to SQL happens at verify time.
298
+ *
299
+ * The Postgres `dataTransform` factory uses this shape internally to
300
+ * carry the user's lowered `check`/`run` plans before wrapping them
301
+ * into precheck/execute/postcheck steps on the unified migration op.
297
302
  */
298
303
  interface SerializedQueryPlan {
299
304
  readonly sql: string;
300
305
  readonly params: readonly unknown[];
301
306
  }
302
- /**
303
- * A data transform operation within a migration edge.
304
- *
305
- * Data transforms are authored in TypeScript using the query builder,
306
- * serialized to JSON ASTs at verification time, and rendered to SQL
307
- * by the target adapter at apply time.
308
- *
309
- * The `name` serves as the invariant identity — it's recorded in the
310
- * ledger and used for invariant-aware routing via environment refs.
311
- *
312
- * In draft state (before verification), `check` and `run` are null.
313
- * After verification, they contain the serialized query ASTs.
314
- */
315
- interface DataTransformOperation extends MigrationPlanOperation {
316
- readonly operationClass: 'data';
317
- /**
318
- * The invariant name for this data transform.
319
- * Recorded in the ledger on successful edge completion.
320
- * Used by environment refs to declare required invariants.
321
- */
322
- readonly name: string;
323
- /**
324
- * Path to the TypeScript source file that produced this operation.
325
- * Not part of edgeId computation — for traceability only.
326
- */
327
- readonly source: string;
328
- /**
329
- * Serialized check query plan, or a boolean literal.
330
- * - SerializedQueryPlan: describes violations; empty result = already applied.
331
- * - false: always run (no check).
332
- * - true: always skip.
333
- * - null: not yet serialized (draft state).
334
- */
335
- readonly check: SerializedQueryPlan | boolean | null;
336
- /**
337
- * Serialized run query plans.
338
- * - Array of serialized query plans to execute sequentially.
339
- * - null: not yet serialized (draft state).
340
- */
341
- readonly run: readonly SerializedQueryPlan[] | null;
342
- }
343
307
  /**
344
308
  * Policy defining which operation classes are allowed during a migration.
345
309
  */
@@ -357,6 +321,17 @@ interface MigrationPlanOperation {
357
321
  readonly label: string;
358
322
  /** The class of operation (additive, widening, destructive). */
359
323
  readonly operationClass: MigrationOperationClass;
324
+ /**
325
+ * Optional opt-in routing identity for data-transform operations.
326
+ * Presence opts the transform into invariant-aware routing; absence
327
+ * means it is path-dependent and not referenceable from refs.
328
+ *
329
+ * Lives on the base op so the manifest emitter and
330
+ * `deriveProvidedInvariants` can read it without depending on a
331
+ * target-specific shape. Schema-DDL ops (additive / widening /
332
+ * destructive) leave it undefined.
333
+ */
334
+ readonly invariantId?: string;
360
335
  }
361
336
  /**
362
337
  * Framework-level contract for a single factory call in a target's planner IR.
@@ -393,6 +368,17 @@ interface MigrationPlan {
393
368
  };
394
369
  /** Ordered list of operations to execute. */
395
370
  readonly operations: readonly MigrationPlanOperation[];
371
+ /**
372
+ * Sorted, deduplicated invariant ids declared by this plan's data-transform
373
+ * ops. Authored migrations carry the canonical value from
374
+ * `migration.json.providedInvariants`; planner-built plans (`db init`,
375
+ * `db update`) omit it (the runner treats it as `[]`). Runners read this
376
+ * field for marker writes and self-edge no-op detection rather than
377
+ * re-deriving from `operations`, since the manifest is the canonical
378
+ * source for the invariant set across all runners (postgres, sqlite,
379
+ * mongo).
380
+ */
381
+ readonly providedInvariants?: readonly string[];
396
382
  }
397
383
  /**
398
384
  * A migration plan that can also render itself back to user-editable
@@ -502,21 +488,23 @@ interface MigrationPlanner<TFamilyId extends string = string, TTargetId extends
502
488
  readonly contract: unknown;
503
489
  readonly schema: unknown;
504
490
  readonly policy: MigrationOperationPolicy;
505
- /**
506
- * Storage hash of the "from" contract (the state the planner assumes the
507
- * database starts at). Planners use this to populate `describe()` on the
508
- * produced plan so the rendered `migration.ts` has correct `from`/`to`
509
- * metadata.
510
- */
511
- readonly fromHash: string;
512
491
  /**
513
492
  * The "from" contract (the state the planner assumes the database starts
514
- * at). Planners pass this to data-safety strategies so they can compare
515
- * `from` and `to` column shapes (e.g. to detect unsafe type changes).
516
- * `db update` / `db init` reconcile against the live schema and have no
517
- * "from" contract; only `migration plan` provides one.
493
+ * at), or `null` for a baseline plan with no prior state.
494
+ *
495
+ * Planners derive any "from" identity they need to stamp onto the
496
+ * produced plan's `describe()` from `fromContract?.storage.storageHash
497
+ * ?? null`. They also pass this to data-safety strategies so they can
498
+ * compare `from` and `to` column shapes (e.g. to detect unsafe type
499
+ * changes).
500
+ *
501
+ * Required at every call site to make the structural fact "I have a
502
+ * prior contract / I don't" visible in the type. Reconciliation
503
+ * commands (`db init`, `db update`) introspect a live schema and pass
504
+ * `null`; authoring commands (`migration plan`) pass the previous
505
+ * bundle's `metadata.toContract`.
518
506
  */
519
- readonly fromContract?: unknown;
507
+ readonly fromContract: Contract | null;
520
508
  /**
521
509
  * Active framework components participating in this composition.
522
510
  * Families/targets can interpret this list to derive family-specific metadata.
@@ -541,6 +529,16 @@ interface MigrationPlanner<TFamilyId extends string = string, TTargetId extends
541
529
  * @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
542
530
  */
543
531
  interface MigrationRunner<TFamilyId extends string = string, TTargetId extends string = string> {
532
+ /**
533
+ * Execute a migration plan against the configured driver.
534
+ *
535
+ * The `plan` parameter is trusted input. Callers are responsible for
536
+ * upstream verification of the originating migration package — typically
537
+ * by obtaining the package via `readMigrationPackage` from
538
+ * `@prisma-next/migration-tools/io`, which performs hash-integrity checks
539
+ * at the load boundary. Runners do not re-verify the plan and assume the
540
+ * `(metadata, ops)` pair on disk has not been tampered with since emit.
541
+ */
544
542
  execute(options: {
545
543
  readonly plan: MigrationPlan;
546
544
  readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
@@ -598,11 +596,12 @@ interface MigrationScaffoldContext {
598
596
  /** Absolute path to the contract.json file, if one exists. Used by targets that emit typed-contract imports. */
599
597
  readonly contractJsonPath?: string;
600
598
  /**
601
- * Storage hash of the "from" contract. Targets use this to populate
602
- * `describe()` on the rendered empty migration so that identity metadata
603
- * is correctly populated.
599
+ * Storage hash of the "from" contract, or `null` for a baseline scaffold
600
+ * with no prior state. Targets use this to populate `describe()` on the
601
+ * rendered empty migration so that identity metadata is correctly
602
+ * populated.
604
603
  */
605
- readonly fromHash: string;
604
+ readonly fromHash: string | null;
606
605
  /**
607
606
  * Storage hash of the "to" contract. Same purpose as `fromHash` — threaded
608
607
  * through so the rendered class's `describe()` declares the correct
@@ -611,7 +610,30 @@ interface MigrationScaffoldContext {
611
610
  readonly toHash: string;
612
611
  }
613
612
  //#endregion
614
- //#region src/control-schema-view.d.ts
613
+ //#region src/control/control-operation-preview.d.ts
614
+ /**
615
+ * Family-agnostic textual preview of a migration plan, used by the CLI to
616
+ * render a "DDL preview" section for `db init` / `db update` / `migration plan`
617
+ * / `migration show`. Each statement carries a free-form `language` tag so
618
+ * formatters can suffix `;` for SQL but render Mongo shell lines verbatim.
619
+ *
620
+ * Producers are family-specific: SQL emits `language: 'sql'` (existing DDL
621
+ * extraction); Mongo emits `language: 'mongodb-shell'` via the
622
+ * `MongoDdlCommandFormatter` visitor.
623
+ *
624
+ * The capability `OperationPreviewCapable` (declared in
625
+ * `./control-capabilities`) is how a family announces it can produce these.
626
+ */
627
+ interface OperationPreviewStatement {
628
+ readonly text: string;
629
+ /** Dialect identifier, e.g. `'sql'`, `'mongodb-shell'`. Free-form by design (OQ-3). */
630
+ readonly language: string;
631
+ }
632
+ interface OperationPreview {
633
+ readonly statements: readonly OperationPreviewStatement[];
634
+ }
635
+ //#endregion
636
+ //#region src/control/control-schema-view.d.ts
615
637
  /**
616
638
  * Core schema view types for family-agnostic schema visualization.
617
639
  *
@@ -649,7 +671,7 @@ interface CoreSchemaView {
649
671
  readonly root: SchemaTreeNode;
650
672
  }
651
673
  //#endregion
652
- //#region src/control-capabilities.d.ts
674
+ //#region src/control/control-capabilities.d.ts
653
675
  interface MigratableTargetDescriptor<TFamilyId extends string, TTargetId extends string, TFamilyInstance extends ControlFamilyInstance<TFamilyId, unknown> = ControlFamilyInstance<TFamilyId, unknown>> extends ControlTargetDescriptor<TFamilyId, TTargetId> {
654
676
  readonly migrations: TargetMigrationsCapability<TFamilyId, TTargetId, TFamilyInstance>;
655
677
  }
@@ -658,6 +680,23 @@ interface SchemaViewCapable<TSchemaIR = unknown> {
658
680
  toSchemaView(schema: TSchemaIR): CoreSchemaView;
659
681
  }
660
682
  declare function hasSchemaView<TFamilyId extends string, TSchemaIR>(instance: ControlFamilyInstance<TFamilyId, TSchemaIR>): instance is ControlFamilyInstance<TFamilyId, TSchemaIR> & SchemaViewCapable<TSchemaIR>;
683
+ /**
684
+ * Capability declaring that a family can infer a PSL contract AST from its
685
+ * opaque introspected schema IR. Consumed by `prisma-next contract infer`.
686
+ */
687
+ interface PslContractInferCapable<TSchemaIR = unknown> {
688
+ inferPslContract(schemaIR: TSchemaIR): PslDocumentAst;
689
+ }
690
+ declare function hasPslContractInfer<TFamilyId extends string, TSchemaIR>(instance: ControlFamilyInstance<TFamilyId, TSchemaIR>): instance is ControlFamilyInstance<TFamilyId, TSchemaIR> & PslContractInferCapable<TSchemaIR>;
691
+ /**
692
+ * Capability declaring that a family can render a textual preview of migration
693
+ * operations for the CLI's "DDL preview" output. SQL families emit
694
+ * `language: 'sql'` statements; Mongo families emit `language: 'mongodb-shell'`.
695
+ */
696
+ interface OperationPreviewCapable {
697
+ toOperationPreview(operations: readonly MigrationPlanOperation[]): OperationPreview;
698
+ }
699
+ declare function hasOperationPreview<TFamilyId extends string, TSchemaIR>(instance: ControlFamilyInstance<TFamilyId, TSchemaIR>): instance is ControlFamilyInstance<TFamilyId, TSchemaIR> & OperationPreviewCapable;
661
700
  //#endregion
662
- export { type AssembledAuthoringContributions, type BaseSchemaIssue, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DataTransformOperation, type DefaultFunctionLoweringContext, type DefaultFunctionLoweringHandler, type DefaultFunctionRegistry, type DefaultFunctionRegistryEntry, type EmitContractResult, type EnumValuesChangedIssue, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MigratableTargetDescriptor, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type ParsedDefaultFunctionCall, type SchemaIssue, type SchemaNodeKind, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerificationNode, type SchemaViewCapable, type SerializedQueryPlan, type SignDatabaseResult, type SourceDiagnostic, type SourceSpan, type TargetMigrationsCapability, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleControlMutationDefaults, assembleScalarTypeDescriptors, assertUniqueCodecOwner, createControlStack, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractOperationTypeImports, extractQueryOperationTypeImports, hasMigrations, hasSchemaView };
701
+ export { type AssembledAuthoringContributions, type BaseSchemaIssue, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DefaultFunctionLoweringContext, type DefaultFunctionLoweringHandler, type DefaultFunctionRegistry, type DefaultFunctionRegistryEntry, type EmitContractResult, type EnumValuesChangedIssue, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MigratableTargetDescriptor, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type ParsedDefaultFunctionCall, type PslContractInferCapable, type SchemaIssue, type SchemaNodeKind, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerificationNode, type SchemaViewCapable, type SerializedQueryPlan, type SignDatabaseResult, type SourceDiagnostic, type SourceSpan, type TargetMigrationsCapability, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleControlMutationDefaults, assembleScalarTypeDescriptors, assertUniqueCodecOwner, createControlStack, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractOperationTypeImports, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractInfer, hasSchemaView };
663
702
  //# sourceMappingURL=control.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.mts","names":[],"sources":["../src/control-result-types.ts","../src/control-instances.ts","../src/control-stack.ts","../src/control-descriptors.ts","../src/control-migration-types.ts","../src/control-schema-view.ts","../src/control-capabilities.ts"],"sourcesContent":[],"mappings":";;;;;;;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,cLlBD,CAAA,EKkBkB,CLlBS;AACxC;AAEiB,UKkBA,qBAAA,CLfU;EAGV,SAAA,IAAA,EKaA,cLboB;EA2BpB,SAAA,EAAA,EAAA,MAAe;EAiCf,SAAA,KAAA,EAAA,MAAA;EAQL,SAAA,IAAA,CAAW,EKpDL,MLoDK,CAAA,MAAG,EAAA,OAAA,CAAA;EAET,SAAA,QAAA,CAAA,EAAA,SKrDc,cL8DD,EAAA;AAG9B;AAgCiB,cK9FJ,cAAA,CL8FsB;EAQlB,SAAA,IAAA,EKrGA,cLqGsB;EAiBtB,SAAA,EAAA,EAAA,MAAA;;kBKnHC;+BACa;EJrBd,WAAA,CAAA,OAAA,EIuBM,qBJvBe;EACb,MAAA,CAAA,CAAA,CAAA,CAAA,OAAA,EI+BJ,iBJ/BI,CI+Bc,CJ/Bd,CAAA,CAAA,EI+BmB,CJ/BnB;;;;;;AAYkB,UI4B1B,cAAA,CJ5B0B;EAAtB,SAAA,IAAA,EI6BJ,cJ7BI;;;;UKvBJ,uGAGS,sBAAsB,sBAAsB,sBAClE,6BAGM,wBAAwB,WAAW;uBACtB,2BAA2B,WAAW,WAAW;;iBAGxD,0EACN,wBAAwB,WAAW,uBAChC,2BAA2B,WAAW;UAIlC;ENtBJ,YAAA,CAAA,MAAA,EMuBU,SNvBgB,CAAA,EMuBJ,cNvBI;AACvC;AACa,iBMwBG,aNxBwB,CAAA,kBAAA,MAAA,EAAA,SAAA,CAAA,CAAA,QAAA,EMyB5B,qBNzB4B,CMyBN,SNzBM,EMyBK,SNzBL,CAAA,CAAA,EAAA,QAAA,IM0BzB,qBN1ByB,CM0BH,SN1BG,EM0BQ,SN1BR,CAAA,GM0BqB,iBN1BrB,CM0BuC,SN1BvC,CAAA"}
1
+ {"version":3,"file":"control.d.mts","names":[],"sources":["../src/control/control-result-types.ts","../src/control/control-instances.ts","../src/control/control-stack.ts","../src/control/control-descriptors.ts","../src/control/control-migration-types.ts","../src/control/control-operation-preview.ts","../src/control/control-schema-view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EC,EO/EU,SP+EV,CAAA,CAAA,EAAA,QAAA,IO9EpB,qBP8EoB,CO9EE,SP8EF,EO9Ea,SP8Eb,CAAA,GO9E0B,uBP8E1B,CO9EkD,SP8ElD,CAAA;AAQnC;AAiBA;;;;ACvIiB,UM4CA,uBAAA,CN5CqB;EACb,kBAAA,CAAA,UAAA,EAAA,SM4CiB,sBN5CjB,EAAA,CAAA,EM4C4C,gBN5C5C;;AAIkB,iBM2C3B,mBN3C2B,CAAA,kBAAA,MAAA,EAAA,SAAA,CAAA,CAAA,QAAA,EM4C/B,qBN5C+B,CM4CT,SN5CS,EM4CE,SN5CF,CAAA,CAAA,EAAA,QAAA,IM6C5B,qBN7C4B,CM6CN,SN7CM,EM6CK,SN7CL,CAAA,GM6CkB,uBN7ClB"}
package/dist/control.mjs CHANGED
@@ -1,20 +1,28 @@
1
- //#region src/control-capabilities.ts
1
+ import { c as mergeAuthoringNamespaces, o as isAuthoringFieldPresetDescriptor, s as isAuthoringTypeConstructorDescriptor, t as assertNoCrossRegistryCollisions } from "./framework-authoring-gi_BJlNO.mjs";
2
+
3
+ //#region src/control/control-capabilities.ts
2
4
  function hasMigrations(target) {
3
5
  return "migrations" in target && !!target["migrations"];
4
6
  }
5
7
  function hasSchemaView(instance) {
6
8
  return "toSchemaView" in instance && typeof instance["toSchemaView"] === "function";
7
9
  }
10
+ function hasPslContractInfer(instance) {
11
+ return "inferPslContract" in instance && typeof instance["inferPslContract"] === "function";
12
+ }
13
+ function hasOperationPreview(instance) {
14
+ return "toOperationPreview" in instance && typeof instance["toOperationPreview"] === "function";
15
+ }
8
16
 
9
17
  //#endregion
10
- //#region src/control-result-types.ts
18
+ //#region src/control/control-result-types.ts
11
19
  const VERIFY_CODE_MARKER_MISSING = "PN-RUN-3001";
12
20
  const VERIFY_CODE_HASH_MISMATCH = "PN-RUN-3002";
13
21
  const VERIFY_CODE_TARGET_MISMATCH = "PN-RUN-3003";
14
22
  const VERIFY_CODE_SCHEMA_FAILURE = "PN-RUN-3010";
15
23
 
16
24
  //#endregion
17
- //#region src/control-schema-view.ts
25
+ //#region src/control/control-schema-view.ts
18
26
  var SchemaTreeNode = class {
19
27
  kind;
20
28
  id;
@@ -35,7 +43,7 @@ var SchemaTreeNode = class {
35
43
  };
36
44
 
37
45
  //#endregion
38
- //#region src/control-stack.ts
46
+ //#region src/control/control-stack.ts
39
47
  function addUniqueId(ids, seen, id) {
40
48
  if (!seen.has(id)) {
41
49
  ids.push(id);
@@ -80,43 +88,20 @@ function extractComponentIds(family, target, adapter, extensions) {
80
88
  for (const ext of extensions) addUniqueId(ids, seen, ext.id);
81
89
  return ids;
82
90
  }
83
- function isTypeConstructorDescriptor(value) {
84
- return typeof value === "object" && value !== null && value.kind === "typeConstructor";
85
- }
86
- function isFieldPresetDescriptor(value) {
87
- return typeof value === "object" && value !== null && value.kind === "fieldPreset";
88
- }
89
- function mergeAuthoringNamespaces(target, source, path, leafGuard, label) {
90
- const assertSafePath = (currentPath) => {
91
- const blockedSegment = currentPath.find((segment) => segment === "__proto__" || segment === "constructor" || segment === "prototype");
92
- if (blockedSegment) throw new Error(`Invalid authoring ${label} helper "${currentPath.join(".")}". Helper path segments must not use "${blockedSegment}".`);
93
- };
94
- for (const [key, sourceValue] of Object.entries(source)) {
95
- const currentPath = [...path, key];
96
- assertSafePath(currentPath);
97
- const hasExistingValue = Object.hasOwn(target, key);
98
- const existingValue = hasExistingValue ? target[key] : void 0;
99
- if (!hasExistingValue) {
100
- target[key] = sourceValue;
101
- continue;
102
- }
103
- const existingIsLeaf = leafGuard(existingValue);
104
- const sourceIsLeaf = leafGuard(sourceValue);
105
- if (existingIsLeaf || sourceIsLeaf) throw new Error(`Duplicate authoring ${label} helper "${currentPath.join(".")}". Descriptor contributions must be unique across composed components.`);
106
- mergeAuthoringNamespaces(existingValue, sourceValue, currentPath, leafGuard, label);
107
- }
108
- }
109
91
  function assembleAuthoringContributions(descriptors) {
110
92
  const field = {};
111
93
  const type = {};
112
94
  for (const descriptor of descriptors) {
113
- if (descriptor.authoring?.field) mergeAuthoringNamespaces(field, descriptor.authoring.field, [], isFieldPresetDescriptor, "field");
95
+ if (descriptor.authoring?.field) mergeAuthoringNamespaces(field, descriptor.authoring.field, [], isAuthoringFieldPresetDescriptor, "field");
114
96
  if (!descriptor.authoring?.type) continue;
115
- mergeAuthoringNamespaces(type, descriptor.authoring.type, [], isTypeConstructorDescriptor, "type");
97
+ mergeAuthoringNamespaces(type, descriptor.authoring.type, [], isAuthoringTypeConstructorDescriptor, "type");
116
98
  }
99
+ const fieldNamespace = field;
100
+ const typeNamespace = type;
101
+ assertNoCrossRegistryCollisions(typeNamespace, fieldNamespace);
117
102
  return {
118
- field,
119
- type
103
+ field: fieldNamespace,
104
+ type: typeNamespace
120
105
  };
121
106
  }
122
107
  function assembleScalarTypeDescriptors(descriptors) {
@@ -164,24 +149,41 @@ function assembleControlMutationDefaults(descriptors) {
164
149
  }
165
150
  function extractCodecLookup(descriptors) {
166
151
  const byId = /* @__PURE__ */ new Map();
152
+ const targetTypesById = /* @__PURE__ */ new Map();
153
+ const metaById = /* @__PURE__ */ new Map();
154
+ const renderersById = /* @__PURE__ */ new Map();
167
155
  const owners = /* @__PURE__ */ new Map();
168
156
  for (const descriptor of descriptors) {
169
- const codecInstances = descriptor.types?.codecTypes?.codecInstances;
170
- if (!codecInstances) continue;
171
- const descriptorId = descriptor.id ?? "<unknown>";
172
- for (const codec of codecInstances) {
157
+ const codecTypes = descriptor.types?.codecTypes;
158
+ const descriptorId = descriptor.id;
159
+ for (const codecDescriptor of codecTypes?.codecDescriptors ?? []) {
173
160
  assertUniqueCodecOwner({
174
- codecId: codec.id,
161
+ codecId: codecDescriptor.codecId,
175
162
  owners,
176
163
  descriptorId,
177
- entityLabel: "codec instance",
178
- entityOwnershipLabel: "codec instance provider"
164
+ entityLabel: "codec descriptor",
165
+ entityOwnershipLabel: "codec descriptor provider"
179
166
  });
180
- owners.set(codec.id, descriptorId);
181
- byId.set(codec.id, codec);
167
+ owners.set(codecDescriptor.codecId, descriptorId);
168
+ if (Array.isArray(codecDescriptor.targetTypes)) targetTypesById.set(codecDescriptor.codecId, codecDescriptor.targetTypes);
169
+ if (codecDescriptor.meta !== void 0) metaById.set(codecDescriptor.codecId, codecDescriptor.meta);
170
+ if (typeof codecDescriptor.renderOutputType === "function") renderersById.set(codecDescriptor.codecId, codecDescriptor.renderOutputType);
171
+ if (!byId.has(codecDescriptor.codecId)) if (codecDescriptor.isParameterized) try {
172
+ const representative = codecDescriptor.factory({})({ name: `<lookup:${codecDescriptor.codecId}>` });
173
+ byId.set(codecDescriptor.codecId, representative);
174
+ } catch {}
175
+ else {
176
+ const representative = codecDescriptor.factory(void 0)({ name: `<lookup:${codecDescriptor.codecId}>` });
177
+ byId.set(codecDescriptor.codecId, representative);
178
+ }
182
179
  }
183
180
  }
184
- return { get: (id) => byId.get(id) };
181
+ return {
182
+ get: (id) => byId.get(id),
183
+ targetTypesFor: (id) => targetTypesById.get(id),
184
+ metaFor: (id) => metaById.get(id),
185
+ renderOutputTypeFor: (id, params) => renderersById.get(id)?.(params)
186
+ };
185
187
  }
186
188
  function createControlStack(input) {
187
189
  const { family, target, adapter, driver, extensionPacks = [] } = input;
@@ -211,5 +213,5 @@ function createControlStack(input) {
211
213
  }
212
214
 
213
215
  //#endregion
214
- export { SchemaTreeNode, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleControlMutationDefaults, assembleScalarTypeDescriptors, assertUniqueCodecOwner, createControlStack, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractOperationTypeImports, extractQueryOperationTypeImports, hasMigrations, hasSchemaView };
216
+ export { SchemaTreeNode, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleControlMutationDefaults, assembleScalarTypeDescriptors, assertUniqueCodecOwner, createControlStack, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractOperationTypeImports, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractInfer, hasSchemaView };
215
217
  //# sourceMappingURL=control.mjs.map