@prisma-next/framework-components 0.4.0-dev.9 → 0.4.1

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.
@@ -339,15 +339,6 @@ interface DataTransformOperation extends MigrationPlanOperation {
339
339
  interface MigrationOperationPolicy {
340
340
  readonly allowedOperationClasses: readonly MigrationOperationClass[];
341
341
  }
342
- /**
343
- * Minimal shape for operation descriptors at the framework level.
344
- * Targets produce richer types; this captures just enough for the
345
- * framework to scaffold migration.ts files and pass descriptors through.
346
- */
347
- interface OperationDescriptor {
348
- readonly kind: string;
349
- readonly [key: string]: unknown;
350
- }
351
342
  /**
352
343
  * A single migration operation for display purposes.
353
344
  * Contains only the fields needed for CLI output (tree view, JSON envelope).
@@ -360,6 +351,19 @@ interface MigrationPlanOperation {
360
351
  /** The class of operation (additive, widening, destructive). */
361
352
  readonly operationClass: MigrationOperationClass;
362
353
  }
354
+ /**
355
+ * Framework-level contract for a single factory call in a target's planner IR.
356
+ *
357
+ * @see ADR 195
358
+ */
359
+ interface OpFactoryCall {
360
+ /** The name of the factory that would produce this call's runtime op. */
361
+ readonly factoryName: string;
362
+ /** The operation's safety class (additive, widening, destructive, data). */
363
+ readonly operationClass: MigrationOperationClass;
364
+ /** Human-readable label for CLI output and diagnostics. */
365
+ readonly label: string;
366
+ }
363
367
  /**
364
368
  * A migration plan for display purposes.
365
369
  * Contains only the fields needed for CLI output (summary, JSON envelope).
@@ -391,14 +395,8 @@ interface MigrationPlan {
391
395
  * - hand the plan to the runner for execution (via `MigrationPlan`), and
392
396
  * - materialize the plan as an editable source file via `renderTypeScript()`.
393
397
  *
394
- * User-authored migrations (class-flow `Migration` subclasses) satisfy
395
- * `MigrationPlan` but not this interface: they are already the source.
396
- *
397
- * Descriptor-flow targets (e.g. Postgres) that do not materialize their
398
- * planner plans back to TypeScript provide a throwing stub so that
399
- * `MigrationPlannerSuccessResult.plan` has a uniform type at the framework
400
- * level. In practice the CLI only calls `renderTypeScript()` in the
401
- * class-flow branch of `migration plan`.
398
+ * User-authored migrations (`Migration` subclasses) satisfy `MigrationPlan`
399
+ * but not this interface: they are already the source.
402
400
  */
403
401
  interface MigrationPlanWithAuthoringSurface extends MigrationPlan {
404
402
  /**
@@ -423,10 +421,7 @@ interface MigrationPlannerConflict {
423
421
  * Successful planner result with the migration plan.
424
422
  *
425
423
  * The plan is typed as `MigrationPlanWithAuthoringSurface` so the CLI can
426
- * uniformly ask any plan to render itself to TypeScript. Targets whose
427
- * planners do not support that (descriptor-flow targets like Postgres)
428
- * supply a throwing `renderTypeScript()` stub — the CLI only calls it in
429
- * the class-flow branch of `migration plan`.
424
+ * uniformly ask any plan to render itself to TypeScript.
430
425
  */
431
426
  interface MigrationPlannerSuccessResult {
432
427
  readonly kind: 'success';
@@ -502,11 +497,19 @@ interface MigrationPlanner<TFamilyId extends string = string, TTargetId extends
502
497
  readonly policy: MigrationOperationPolicy;
503
498
  /**
504
499
  * Storage hash of the "from" contract (the state the planner assumes the
505
- * database starts at). Class-flow planners use this to populate
506
- * `describe()` on the produced plan so the rendered `migration.ts` has
507
- * correct `from`/`to` metadata.
500
+ * database starts at). Planners use this to populate `describe()` on the
501
+ * produced plan so the rendered `migration.ts` has correct `from`/`to`
502
+ * metadata.
508
503
  */
509
504
  readonly fromHash: string;
505
+ /**
506
+ * The "from" contract (the state the planner assumes the database starts
507
+ * at). Planners pass this to data-safety strategies so they can compare
508
+ * `from` and `to` column shapes (e.g. to detect unsafe type changes).
509
+ * `db update` / `db init` reconcile against the live schema and have no
510
+ * "from" contract; only `migration plan` provides one.
511
+ */
512
+ readonly fromContract?: unknown;
510
513
  /**
511
514
  * Active framework components participating in this composition.
512
515
  * Families/targets can interpret this list to derive family-specific metadata.
@@ -517,10 +520,9 @@ interface MigrationPlanner<TFamilyId extends string = string, TTargetId extends
517
520
  /**
518
521
  * Produce an empty migration with the target's authoring conventions.
519
522
  *
520
- * Used by `migration new` to scaffold a fresh `migration.ts` without the
521
- * CLI needing to know whether the target uses descriptor-flow or class-flow
522
- * authoring. The returned plan has no operations; its `renderTypeScript()`
523
- * yields a stub the user can edit.
523
+ * Used by `migration new` to scaffold a fresh `migration.ts`. The
524
+ * returned plan has no operations; its `renderTypeScript()` yields a
525
+ * stub the user can edit.
524
526
  */
525
527
  emptyMigration(context: MigrationScaffoldContext): MigrationPlanWithAuthoringSurface;
526
528
  }
@@ -575,82 +577,13 @@ interface TargetMigrationsCapability<TFamilyId extends string = string, TTargetI
575
577
  * @returns Family-specific schema IR (e.g., `SqlSchemaIR` for SQL targets).
576
578
  */
577
579
  contractToSchema(contract: Contract | null, frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>): unknown;
578
- /**
579
- * Plans a migration using the descriptor-based planner.
580
- * Returns operation descriptors that the caller scaffolds into a
581
- * `migration.ts` file. Whether the resulting migration can be emitted
582
- * end-to-end is determined at emit time (via `placeholder()` errors
583
- * thrown for unfilled slots), not by the planner.
584
- */
585
- planWithDescriptors?(context: {
586
- readonly fromContract: Contract | null;
587
- readonly toContract: Contract;
588
- readonly frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
589
- }): {
590
- readonly ok: true;
591
- readonly descriptors: readonly OperationDescriptor[];
592
- } | {
593
- readonly ok: false;
594
- readonly conflicts: readonly MigrationPlannerConflict[];
595
- };
596
- /**
597
- * Resolves operation descriptors into target-specific migration plan operations
598
- * with SQL/DDL, prechecks, and postchecks. Called by `migration emit` to
599
- * serialize migration.ts into ops.json.
600
- */
601
- resolveDescriptors?(descriptors: readonly OperationDescriptor[], context: {
602
- readonly fromContract: Contract | null;
603
- readonly toContract: Contract;
604
- readonly schemaName?: string;
605
- readonly frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
606
- }): readonly MigrationPlanOperation[];
607
- /**
608
- * Optional: render a descriptor list back to a populated `migration.ts`
609
- * source string.
610
- *
611
- * Descriptor-flow targets (e.g. Postgres) implement this so that
612
- * `migration plan` can hand the user an editable authoring surface that
613
- * already captures the planner's decisions. Class-flow targets do not
614
- * implement it — their planner already returns a renderable plan via
615
- * `MigrationPlannerSuccessResult.plan.renderTypeScript()`.
616
- */
617
- renderDescriptorTypeScript?(descriptors: readonly OperationDescriptor[], context: MigrationScaffoldContext): string;
618
- /**
619
- * Optional: in-process emit capability for class-flow migration files.
620
- *
621
- * Targets that author `migration.ts` as an executable class (rather than
622
- * an array of descriptors) implement `emit` to produce `ops.json` from
623
- * the source file directly. The framework dispatches to `emit` whenever
624
- * `resolveDescriptors` is not present on the target.
625
- *
626
- * The capability runs in the same Node process as the CLI:
627
- * - The target dynamically imports `<dir>/migration.ts`, locates the
628
- * authored class on the module's default export, and invokes whatever
629
- * runtime machinery it needs to obtain the operations list.
630
- * - Structured errors thrown during evaluation (notably
631
- * `errorUnfilledPlaceholder` with code `PN-MIG-2001`) propagate as
632
- * real JS exceptions so the CLI's normal error envelope can render
633
- * them with full structured metadata. No subprocess is spawned.
634
- * - The target is responsible for calling `writeMigrationOps(dir, ops)`
635
- * so that `ops.json` ends up on disk before `emit` returns. The
636
- * framework's `emitMigration` helper is the single owner of
637
- * `attestMigration(dir)` — the target MUST NOT call
638
- * `attestMigration` itself.
639
- * - The returned `MigrationPlanOperation[]` is the display-oriented
640
- * shape the CLI uses for output (id, label, operationClass).
641
- */
642
- emit?(options: {
643
- readonly dir: string;
644
- readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
645
- }): Promise<readonly MigrationPlanOperation[]>;
646
580
  }
647
581
  /**
648
582
  * Context for rendering migration source files.
649
583
  *
650
584
  * Kept minimal: only the paths a target might need to compute relative imports
651
585
  * (e.g. the contract `.d.ts` import for typed-contract builders). Passed to
652
- * `MigrationPlanner.emptyMigration(context)` and to
653
- * `TargetMigrationsCapability.renderDescriptorTypeScript(descriptors, context)`.
586
+ * `MigrationPlanner.emptyMigration(context)`.
654
587
  */
655
588
  interface MigrationScaffoldContext {
656
589
  /** Absolute path to the migration package directory. Used by targets to compute relative imports. */
@@ -658,9 +591,9 @@ interface MigrationScaffoldContext {
658
591
  /** Absolute path to the contract.json file, if one exists. Used by targets that emit typed-contract imports. */
659
592
  readonly contractJsonPath?: string;
660
593
  /**
661
- * Storage hash of the "from" contract. Class-flow targets (e.g. Mongo) use
662
- * this to populate `describe()` on the rendered empty migration so that
663
- * `migration.json` generated at emit time has correct identity metadata.
594
+ * Storage hash of the "from" contract. Targets use this to populate
595
+ * `describe()` on the rendered empty migration so that identity metadata
596
+ * is correctly populated.
664
597
  */
665
598
  readonly fromHash: string;
666
599
  /**
@@ -719,5 +652,5 @@ interface SchemaViewCapable<TSchemaIR = unknown> {
719
652
  }
720
653
  declare function hasSchemaView<TFamilyId extends string, TSchemaIR>(instance: ControlFamilyInstance<TFamilyId, TSchemaIR>): instance is ControlFamilyInstance<TFamilyId, TSchemaIR> & SchemaViewCapable<TSchemaIR>;
721
654
  //#endregion
722
- 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 OperationContext, type OperationDescriptor, 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 };
655
+ 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 };
723
656
  //# 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":";;;;;;;;;cAAa,0BAAA;cACA,yBAAA;cACA,2BAAA;cACA,0BAAA;UAEI,gBAAA;;;kBAGC,SAAS;;AARd,UAWI,oBAAA,CAXsB;EAC1B,SAAA,EAAA,EAAA,OAAA;EACA,SAAA,IAAA,CAAA,EAAA,MAAA;EACA,SAAA,OAAA,EAAA,MAAA;EAEI,SAAA,QAAA,EAAgB;IAMhB,SAAA,WAAoB,EAAA,MAAA;IA2BpB,SAAA,WAAe,CAAA,EAAA,MAAA;EAiCf,CAAA;EAQL,SAAA,MAAW,CAAA,EAAA;IAEN,SAAA,WAAA,CAAsB,EAAA,MAAA;IAYtB,SAAA,WAAA,CAAA,EAAA,MA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A,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-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":";;;;;;;;;cAAa,0BAAA;cACA,yBAAA;cACA,2BAAA;cACA,0BAAA;UAEI,gBAAA;;;kBAGC,SAAS;;AARd,UAWI,oBAAA,CAXsB;EAC1B,SAAA,EAAA,EAAA,OAAA;EACA,SAAA,IAAA,CAAA,EAAA,MAAA;EACA,SAAA,OAAA,EAAA,MAAA;EAEI,SAAA,QAAA,EAAgB;IAMhB,SAAA,WAAoB,EAAA,MAAA;IA2BpB,SAAA,WAAe,CAAA,EAAA,MAAA;EAiCf,CAAA;EAQL,SAAA,MAAW,CAAA,EAAA;IAEN,SAAA,WAAA,CAAsB,EAAA,MAAA;IAYtB,SAAA,WAAA,CAAA,EAAA,MAA0B;EAgC1B,CAAA;EAQA,SAAA,MAAA,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AAA,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"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@prisma-next/framework-components",
3
- "version": "0.4.0-dev.9",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Framework component types, assembly logic, and stack creation for Prisma Next",
7
7
  "dependencies": {
8
- "@prisma-next/operations": "0.4.0-dev.9",
9
- "@prisma-next/contract": "0.4.0-dev.9",
10
- "@prisma-next/utils": "0.4.0-dev.9"
8
+ "@prisma-next/contract": "0.4.1",
9
+ "@prisma-next/operations": "0.4.1",
10
+ "@prisma-next/utils": "0.4.1"
11
11
  },
12
12
  "devDependencies": {
13
13
  "tsdown": "0.18.4",
@@ -94,16 +94,6 @@ export interface MigrationOperationPolicy {
94
94
  // Plan Types (Display-Oriented)
95
95
  // ============================================================================
96
96
 
97
- /**
98
- * Minimal shape for operation descriptors at the framework level.
99
- * Targets produce richer types; this captures just enough for the
100
- * framework to scaffold migration.ts files and pass descriptors through.
101
- */
102
- export interface OperationDescriptor {
103
- readonly kind: string;
104
- readonly [key: string]: unknown;
105
- }
106
-
107
97
  /**
108
98
  * A single migration operation for display purposes.
109
99
  * Contains only the fields needed for CLI output (tree view, JSON envelope).
@@ -117,6 +107,24 @@ export interface MigrationPlanOperation {
117
107
  readonly operationClass: MigrationOperationClass;
118
108
  }
119
109
 
110
+ // ============================================================================
111
+ // Planner IR — Op Factory Calls
112
+ // ============================================================================
113
+
114
+ /**
115
+ * Framework-level contract for a single factory call in a target's planner IR.
116
+ *
117
+ * @see ADR 195
118
+ */
119
+ export interface OpFactoryCall {
120
+ /** The name of the factory that would produce this call's runtime op. */
121
+ readonly factoryName: string;
122
+ /** The operation's safety class (additive, widening, destructive, data). */
123
+ readonly operationClass: MigrationOperationClass;
124
+ /** Human-readable label for CLI output and diagnostics. */
125
+ readonly label: string;
126
+ }
127
+
120
128
  // ============================================================================
121
129
  // Plan Types (Display-Oriented)
122
130
  // ============================================================================
@@ -153,14 +161,8 @@ export interface MigrationPlan {
153
161
  * - hand the plan to the runner for execution (via `MigrationPlan`), and
154
162
  * - materialize the plan as an editable source file via `renderTypeScript()`.
155
163
  *
156
- * User-authored migrations (class-flow `Migration` subclasses) satisfy
157
- * `MigrationPlan` but not this interface: they are already the source.
158
- *
159
- * Descriptor-flow targets (e.g. Postgres) that do not materialize their
160
- * planner plans back to TypeScript provide a throwing stub so that
161
- * `MigrationPlannerSuccessResult.plan` has a uniform type at the framework
162
- * level. In practice the CLI only calls `renderTypeScript()` in the
163
- * class-flow branch of `migration plan`.
164
+ * User-authored migrations (`Migration` subclasses) satisfy `MigrationPlan`
165
+ * but not this interface: they are already the source.
164
166
  */
165
167
  export interface MigrationPlanWithAuthoringSurface extends MigrationPlan {
166
168
  /**
@@ -191,10 +193,7 @@ export interface MigrationPlannerConflict {
191
193
  * Successful planner result with the migration plan.
192
194
  *
193
195
  * The plan is typed as `MigrationPlanWithAuthoringSurface` so the CLI can
194
- * uniformly ask any plan to render itself to TypeScript. Targets whose
195
- * planners do not support that (descriptor-flow targets like Postgres)
196
- * supply a throwing `renderTypeScript()` stub — the CLI only calls it in
197
- * the class-flow branch of `migration plan`.
196
+ * uniformly ask any plan to render itself to TypeScript.
198
197
  */
199
198
  export interface MigrationPlannerSuccessResult {
200
199
  readonly kind: 'success';
@@ -292,11 +291,19 @@ export interface MigrationPlanner<
292
291
  readonly policy: MigrationOperationPolicy;
293
292
  /**
294
293
  * Storage hash of the "from" contract (the state the planner assumes the
295
- * database starts at). Class-flow planners use this to populate
296
- * `describe()` on the produced plan so the rendered `migration.ts` has
297
- * correct `from`/`to` metadata.
294
+ * database starts at). Planners use this to populate `describe()` on the
295
+ * produced plan so the rendered `migration.ts` has correct `from`/`to`
296
+ * metadata.
298
297
  */
299
298
  readonly fromHash: string;
299
+ /**
300
+ * The "from" contract (the state the planner assumes the database starts
301
+ * at). Planners pass this to data-safety strategies so they can compare
302
+ * `from` and `to` column shapes (e.g. to detect unsafe type changes).
303
+ * `db update` / `db init` reconcile against the live schema and have no
304
+ * "from" contract; only `migration plan` provides one.
305
+ */
306
+ readonly fromContract?: unknown;
300
307
  /**
301
308
  * Active framework components participating in this composition.
302
309
  * Families/targets can interpret this list to derive family-specific metadata.
@@ -310,10 +317,9 @@ export interface MigrationPlanner<
310
317
  /**
311
318
  * Produce an empty migration with the target's authoring conventions.
312
319
  *
313
- * Used by `migration new` to scaffold a fresh `migration.ts` without the
314
- * CLI needing to know whether the target uses descriptor-flow or class-flow
315
- * authoring. The returned plan has no operations; its `renderTypeScript()`
316
- * yields a stub the user can edit.
320
+ * Used by `migration new` to scaffold a fresh `migration.ts`. The
321
+ * returned plan has no operations; its `renderTypeScript()` yields a
322
+ * stub the user can edit.
317
323
  */
318
324
  emptyMigration(context: MigrationScaffoldContext): MigrationPlanWithAuthoringSurface;
319
325
  }
@@ -389,92 +395,6 @@ export interface TargetMigrationsCapability<
389
395
  contract: Contract | null,
390
396
  frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>,
391
397
  ): unknown;
392
-
393
- /**
394
- * Plans a migration using the descriptor-based planner.
395
- * Returns operation descriptors that the caller scaffolds into a
396
- * `migration.ts` file. Whether the resulting migration can be emitted
397
- * end-to-end is determined at emit time (via `placeholder()` errors
398
- * thrown for unfilled slots), not by the planner.
399
- */
400
- planWithDescriptors?(context: {
401
- readonly fromContract: Contract | null;
402
- readonly toContract: Contract;
403
- readonly frameworkComponents?: ReadonlyArray<
404
- TargetBoundComponentDescriptor<TFamilyId, TTargetId>
405
- >;
406
- }):
407
- | {
408
- readonly ok: true;
409
- readonly descriptors: readonly OperationDescriptor[];
410
- }
411
- | {
412
- readonly ok: false;
413
- readonly conflicts: readonly MigrationPlannerConflict[];
414
- };
415
-
416
- /**
417
- * Resolves operation descriptors into target-specific migration plan operations
418
- * with SQL/DDL, prechecks, and postchecks. Called by `migration emit` to
419
- * serialize migration.ts into ops.json.
420
- */
421
- resolveDescriptors?(
422
- descriptors: readonly OperationDescriptor[],
423
- context: {
424
- readonly fromContract: Contract | null;
425
- readonly toContract: Contract;
426
- readonly schemaName?: string;
427
- readonly frameworkComponents?: ReadonlyArray<
428
- TargetBoundComponentDescriptor<TFamilyId, TTargetId>
429
- >;
430
- },
431
- ): readonly MigrationPlanOperation[];
432
-
433
- /**
434
- * Optional: render a descriptor list back to a populated `migration.ts`
435
- * source string.
436
- *
437
- * Descriptor-flow targets (e.g. Postgres) implement this so that
438
- * `migration plan` can hand the user an editable authoring surface that
439
- * already captures the planner's decisions. Class-flow targets do not
440
- * implement it — their planner already returns a renderable plan via
441
- * `MigrationPlannerSuccessResult.plan.renderTypeScript()`.
442
- */
443
- renderDescriptorTypeScript?(
444
- descriptors: readonly OperationDescriptor[],
445
- context: MigrationScaffoldContext,
446
- ): string;
447
-
448
- /**
449
- * Optional: in-process emit capability for class-flow migration files.
450
- *
451
- * Targets that author `migration.ts` as an executable class (rather than
452
- * an array of descriptors) implement `emit` to produce `ops.json` from
453
- * the source file directly. The framework dispatches to `emit` whenever
454
- * `resolveDescriptors` is not present on the target.
455
- *
456
- * The capability runs in the same Node process as the CLI:
457
- * - The target dynamically imports `<dir>/migration.ts`, locates the
458
- * authored class on the module's default export, and invokes whatever
459
- * runtime machinery it needs to obtain the operations list.
460
- * - Structured errors thrown during evaluation (notably
461
- * `errorUnfilledPlaceholder` with code `PN-MIG-2001`) propagate as
462
- * real JS exceptions so the CLI's normal error envelope can render
463
- * them with full structured metadata. No subprocess is spawned.
464
- * - The target is responsible for calling `writeMigrationOps(dir, ops)`
465
- * so that `ops.json` ends up on disk before `emit` returns. The
466
- * framework's `emitMigration` helper is the single owner of
467
- * `attestMigration(dir)` — the target MUST NOT call
468
- * `attestMigration` itself.
469
- * - The returned `MigrationPlanOperation[]` is the display-oriented
470
- * shape the CLI uses for output (id, label, operationClass).
471
- */
472
- emit?(options: {
473
- readonly dir: string;
474
- readonly frameworkComponents: ReadonlyArray<
475
- TargetBoundComponentDescriptor<TFamilyId, TTargetId>
476
- >;
477
- }): Promise<readonly MigrationPlanOperation[]>;
478
398
  }
479
399
 
480
400
  // ============================================================================
@@ -486,8 +406,7 @@ export interface TargetMigrationsCapability<
486
406
  *
487
407
  * Kept minimal: only the paths a target might need to compute relative imports
488
408
  * (e.g. the contract `.d.ts` import for typed-contract builders). Passed to
489
- * `MigrationPlanner.emptyMigration(context)` and to
490
- * `TargetMigrationsCapability.renderDescriptorTypeScript(descriptors, context)`.
409
+ * `MigrationPlanner.emptyMigration(context)`.
491
410
  */
492
411
  export interface MigrationScaffoldContext {
493
412
  /** Absolute path to the migration package directory. Used by targets to compute relative imports. */
@@ -495,9 +414,9 @@ export interface MigrationScaffoldContext {
495
414
  /** Absolute path to the contract.json file, if one exists. Used by targets that emit typed-contract imports. */
496
415
  readonly contractJsonPath?: string;
497
416
  /**
498
- * Storage hash of the "from" contract. Class-flow targets (e.g. Mongo) use
499
- * this to populate `describe()` on the rendered empty migration so that
500
- * `migration.json` generated at emit time has correct identity metadata.
417
+ * Storage hash of the "from" contract. Targets use this to populate
418
+ * `describe()` on the rendered empty migration so that identity metadata
419
+ * is correctly populated.
501
420
  */
502
421
  readonly fromHash: string;
503
422
  /**
@@ -32,7 +32,7 @@ export type {
32
32
  MigrationRunnerResult,
33
33
  MigrationRunnerSuccessValue,
34
34
  MigrationScaffoldContext,
35
- OperationDescriptor,
35
+ OpFactoryCall,
36
36
  SerializedQueryPlan,
37
37
  TargetMigrationsCapability,
38
38
  } from '../control-migration-types';