@prisma-next/core-control-plane 0.1.0-dev.22 → 0.1.0-dev.23

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.
@@ -106,6 +106,27 @@ interface MigrationRunnerFailure {
106
106
  * Result type for migration runner execution.
107
107
  */
108
108
  type MigrationRunnerResult = Result<MigrationRunnerSuccessValue, MigrationRunnerFailure>;
109
+ /**
110
+ * Execution-time checks configuration for migration runners.
111
+ * All checks default to `true` (enabled) when omitted.
112
+ */
113
+ interface MigrationRunnerExecutionChecks {
114
+ /**
115
+ * Whether to run prechecks before executing operations.
116
+ * Defaults to `true` (prechecks are run).
117
+ */
118
+ readonly prechecks?: boolean;
119
+ /**
120
+ * Whether to run postchecks after executing operations.
121
+ * Defaults to `true` (postchecks are run).
122
+ */
123
+ readonly postchecks?: boolean;
124
+ /**
125
+ * Whether to run idempotency probe (check if postcheck is already satisfied before execution).
126
+ * Defaults to `true` (idempotency probe is run).
127
+ */
128
+ readonly idempotencyChecks?: boolean;
129
+ }
109
130
  /**
110
131
  * Migration planner interface for planning schema changes.
111
132
  * This is the minimal interface that CLI commands use.
@@ -143,6 +164,11 @@ interface MigrationRunner<TFamilyId extends string = string, TTargetId extends s
143
164
  onOperationStart?(op: MigrationPlanOperation): void;
144
165
  onOperationComplete?(op: MigrationPlanOperation): void;
145
166
  };
167
+ /**
168
+ * Execution-time checks configuration.
169
+ * All checks default to `true` (enabled) when omitted.
170
+ */
171
+ readonly executionChecks?: MigrationRunnerExecutionChecks;
146
172
  /**
147
173
  * Active framework components participating in this composition.
148
174
  * Families/targets can interpret this list to derive family-specific metadata.
@@ -558,4 +584,4 @@ interface SignDatabaseResult {
558
584
  };
559
585
  }
560
586
 
561
- export type { ControlAdapterDescriptor, ControlAdapterInstance, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlExtensionInstance, ControlFamilyDescriptor, ControlFamilyInstance, ControlTargetDescriptor, ControlTargetInstance, EmitContractResult, IntrospectSchemaResult, MigrationOperationClass, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerResult, MigrationPlannerSuccessResult, MigrationRunner, MigrationRunnerFailure, MigrationRunnerResult, MigrationRunnerSuccessValue, OperationContext, SchemaIssue, SchemaVerificationNode, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult };
587
+ export type { ControlAdapterDescriptor, ControlAdapterInstance, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlExtensionInstance, ControlFamilyDescriptor, ControlFamilyInstance, ControlTargetDescriptor, ControlTargetInstance, EmitContractResult, IntrospectSchemaResult, MigrationOperationClass, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerResult, MigrationPlannerSuccessResult, MigrationRunner, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerResult, MigrationRunnerSuccessValue, OperationContext, SchemaIssue, SchemaVerificationNode, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@prisma-next/core-control-plane",
3
- "version": "0.1.0-dev.22",
3
+ "version": "0.1.0-dev.23",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Control plane domain actions, config types, validation, and error factories for Prisma Next",
7
7
  "dependencies": {
8
8
  "arktype": "^2.1.26",
9
9
  "prettier": "^3.3.3",
10
- "@prisma-next/contract": "0.1.0-dev.22",
11
- "@prisma-next/operations": "0.1.0-dev.22",
12
- "@prisma-next/utils": "0.1.0-dev.22"
10
+ "@prisma-next/contract": "0.1.0-dev.23",
11
+ "@prisma-next/operations": "0.1.0-dev.23",
12
+ "@prisma-next/utils": "0.1.0-dev.23"
13
13
  },
14
14
  "devDependencies": {
15
15
  "tsup": "^8.3.0",