@prisma/orm-framework 8.0.0-rc.18-dev.17 → 8.0.0-rc.18-dev.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-CDlR13tn.mjs → authoring-D8KPtnJg.mjs} +2 -2
- package/dist/authoring-D8KPtnJg.mjs.map +1 -0
- package/dist/{authoring-joNigE7w.d.mts → authoring-xQjRM5Pu.d.mts} +3 -3
- package/dist/{authoring-joNigE7w.d.mts.map → authoring-xQjRM5Pu.d.mts.map} +1 -1
- package/dist/{binder-BfzoRtNz-uIAexNtf.d.mts → binder-BfzoRtNz-COc5yVn5.d.mts} +9 -9
- package/dist/{binder-BfzoRtNz-uIAexNtf.d.mts.map → binder-BfzoRtNz-COc5yVn5.d.mts.map} +1 -1
- package/dist/{components-EV0zsCc7.d.mts → components-x4E7HR1C.d.mts} +2 -2
- package/dist/{components-EV0zsCc7.d.mts.map → components-x4E7HR1C.d.mts.map} +1 -1
- package/dist/components.d.mts +12 -12
- package/dist/components.mjs +5 -5
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +2 -2
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/components__runtime.mjs +1 -1
- package/dist/{config-types-Cz10_syo.d.mts → config-types-CWTAy1In.d.mts} +6 -6
- package/dist/{config-types-Cz10_syo.d.mts.map → config-types-CWTAy1In.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +2 -2
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{control-Bv8UK63M-D34GaTSa.mjs → control-Bv8UK63M-B2plYV6c.mjs} +2 -2
- package/dist/{control-Bv8UK63M-D34GaTSa.mjs.map → control-Bv8UK63M-B2plYV6c.mjs.map} +1 -1
- package/dist/{control-C_zs63JQ-BHMRNt82.d.mts → control-C_zs63JQ-ClziGCnK.d.mts} +2 -2
- package/dist/{control-C_zs63JQ-BHMRNt82.d.mts.map → control-C_zs63JQ-ClziGCnK.d.mts.map} +1 -1
- package/dist/{control-Bp6XS6M2.d.mts → control-ChAUqscy.d.mts} +25 -12
- package/dist/control-ChAUqscy.d.mts.map +1 -0
- package/dist/{control-5ocRB46M.mjs → control-EDGgvs_9.mjs} +21 -7
- package/dist/control-EDGgvs_9.mjs.map +1 -0
- package/dist/control-JxZycFiz.d.mts +1 -0
- package/dist/{declarations-DuSbyF44-DHxqQ1-X.mjs → declarations-DuSbyF44-Dmu71nd-.mjs} +2 -2
- package/dist/{declarations-DuSbyF44-DHxqQ1-X.mjs.map → declarations-DuSbyF44-Dmu71nd-.mjs.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-A4CaEPHk.d.mts → execution-CYRhpznv.d.mts} +3 -3
- package/dist/{execution-A4CaEPHk.d.mts.map → execution-CYRhpznv.d.mts.map} +1 -1
- package/dist/{execution-D_qcNa8s.mjs → execution-CgcGQHHb.mjs} +2 -2
- package/dist/{execution-D_qcNa8s.mjs.map → execution-CgcGQHHb.mjs.map} +1 -1
- package/dist/{execution-Db6roA4O.d.mts → execution-Cwf24TjM.d.mts} +2 -2
- package/dist/{execution-Db6roA4O.d.mts.map → execution-Cwf24TjM.d.mts.map} +1 -1
- package/dist/{framework-authoring-BYuHgXo6-BtKlRo4a.d.mts → framework-authoring-DmU1d8-I-CkAim7c8.d.mts} +6 -4
- package/dist/framework-authoring-DmU1d8-I-CkAim7c8.d.mts.map +1 -0
- package/dist/{framework-components-D_QZgxzO-D4b6r8ne.d.mts → framework-components-DIZJ4Jpy-DJwI95w-.d.mts} +4 -4
- package/dist/{framework-components-D_QZgxzO-D4b6r8ne.d.mts.map → framework-components-DIZJ4Jpy-DJwI95w-.d.mts.map} +1 -1
- package/dist/{migration-ClwEv4nY.d.mts → migration-BaRjNiyG.d.mts} +2 -2
- package/dist/{migration-ClwEv4nY.d.mts.map → migration-BaRjNiyG.d.mts.map} +1 -1
- package/dist/{migration-BpjWKFc_.mjs → migration-Do0woLo2.mjs} +2 -2
- package/dist/{migration-BpjWKFc_.mjs.map → migration-Do0woLo2.mjs.map} +1 -1
- package/dist/{mutation-default-types-DCgdIlXt-DSAdarYA.d.mts → mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts} +19 -3
- package/dist/{mutation-default-types-DCgdIlXt-DSAdarYA.d.mts.map → mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts.map} +1 -1
- package/dist/{parse-BxcaGLV1-CDTwA5qF.mjs → parse-BxcaGLV1-hxuk2zDI.mjs} +2 -2
- package/dist/{parse-BxcaGLV1-CDTwA5qF.mjs.map → parse-BxcaGLV1-hxuk2zDI.mjs.map} +1 -1
- package/dist/{parse-CJtBvEYy-b7iSU0ii.d.mts → parse-CJtBvEYy-CG3IsBbh.d.mts} +6 -6
- package/dist/{parse-CJtBvEYy-b7iSU0ii.d.mts.map → parse-CJtBvEYy-CG3IsBbh.d.mts.map} +1 -1
- package/dist/psl-ast-Ckg377Cn.d.mts +2 -0
- package/dist/{psl-ast-3tk7lIrz-u_05BsIo.d.mts → psl-ast-Da2RnM7t-BTLOxBh5.d.mts} +3 -3
- package/dist/{psl-ast-3tk7lIrz-u_05BsIo.d.mts.map → psl-ast-Da2RnM7t-BTLOxBh5.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +9 -9
- package/dist/psl-parser.mjs +3 -3
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +2 -2
- package/dist/psl-parser__interpret.d.mts +6 -6
- package/dist/psl-parser__interpret.mjs +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{runtime-_W8nv8Vz.d.mts → runtime-CW_0S1tZ.d.mts} +7 -7
- package/dist/runtime-CW_0S1tZ.d.mts.map +1 -0
- package/dist/{runtime-DZVNxupx.mjs → runtime-DAB3uLpb.mjs} +114 -64
- package/dist/runtime-DAB3uLpb.mjs.map +1 -0
- package/dist/{temporal-presets-CFRgwfiR-QTpEltz4.mjs → temporal-presets-woCv6gic-DW1VcyKs.mjs} +109 -7
- package/dist/temporal-presets-woCv6gic-DW1VcyKs.mjs.map +1 -0
- package/dist/{written-value-Dio_n0HT-CgpcE2lf.d.mts → written-value-aEELSm_V-BtFVjTrj.d.mts} +60 -10
- package/dist/written-value-aEELSm_V-BtFVjTrj.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-CDlR13tn.mjs.map +0 -1
- package/dist/control-5ocRB46M.mjs.map +0 -1
- package/dist/control-B7cfY071.d.mts +0 -1
- package/dist/control-Bp6XS6M2.d.mts.map +0 -1
- package/dist/framework-authoring-BYuHgXo6-BtKlRo4a.d.mts.map +0 -1
- package/dist/psl-ast-DIzWPqtl.d.mts +0 -2
- package/dist/runtime-DZVNxupx.mjs.map +0 -1
- package/dist/runtime-_W8nv8Vz.d.mts.map +0 -1
- package/dist/temporal-presets-CFRgwfiR-QTpEltz4.mjs.map +0 -1
- package/dist/written-value-Dio_n0HT-CgpcE2lf.d.mts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as DefaultFunctionArgumentsPrinter, c as LoweredDefaultResult, d as SourceDiagnostic, f as SourceSpan, i as ControlMutationDefaults, l as LoweredDefaultValue, n as ControlMutationDefaultEntry, o as DefaultFunctionLoweringContext, p as TypedDefaultFunctionCall, r as ControlMutationDefaultRegistry, s as DefaultFunctionPrinter, t as AssembledControlMutationDefaults, u as MutationDefaultGeneratorDescriptor } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
|
|
2
|
+
import { L as resolvePslBacktickEscapes, O as describeTaggedLiteralFailure, R as resolveTemplateTagEscapes, W as timestampNowControlDescriptor, d as TAGGED_LITERAL_MAX_BYTES } from "./written-value-aEELSm_V-BtFVjTrj.mjs";
|
|
3
3
|
import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
|
|
4
|
-
import { $ as MigrationRunner, $t as
|
|
5
|
-
export { APP_SPACE_ID, type AppliedMigrationStatement, type AssembledAuthoringContributions, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDriverConnectOptions, 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 DataTypeInvariantInput, type DefaultFunctionLoweringContext, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type FailedCast, type FailedCheck, type FailedConversion, type FailedTypeChange, type FieldCoordinate, type FieldCoordinateJson, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MigratableTargetDescriptor, type MigrationAccessChange, type MigrationDataLoss, type MigrationDataLossKind, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationOperationSubject, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanSubjects, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MigrationStatementJson, type MigrationSubject, type MigrationSubjectJson, type MigrationTemporaryValue, type ModelCoordinate, type ModelCoordinateJson, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PlanOrigin, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, type PslSourceSettings, type ResolvedFieldBackfillStatement, type ResolvedFieldConvertStatement, type ResolvedFieldRenameStatement, type ResolvedMigrationStatement, type ResolvedModelRenameStatement, type ResolvedRenameStatement, type RowsWithoutValue, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, TAGGED_LITERAL_MAX_BYTES, type TargetMigrationsCapability, type TypedDefaultFunctionCall, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeMigrationStatement, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractParameterizedOutputTypeImports, extractQueryOperationTypeImports, fieldStatementText, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, isRenameStatement, isStorageHashHex, issueOutcome, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, modelStatementText, orderIssuesByDependencies, planOriginOf, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, storageHashHex, timestampNowControlDescriptor };
|
|
4
|
+
import { $ as MigrationRunner, $t as VERIFY_CODE_SCHEMA_FAILURE, A as FailedTypeChange, An as isRenameStatement, At as ResolvedRenameStatement, B as MigrationOperationClass, Bn as sameMarkerHashes, Bt as SchemaTreeVisitor, C as DiffSubjectGranularity, Cn as fieldStatementText, Ct as PslContractInferCapable, D as FailedCast, Dn as hasPslContractInfer, Dt as ResolvedFieldRenameStatement, E as ExpectationFailureReason, En as hasPslContractBuild, Et as ResolvedFieldConvertStatement, F as MigratableTargetDescriptor, Fn as migrationSubjectKey, Ft as SchemaNodeRef, G as MigrationPlanOperation, Gt as SchemaViewNodeKind, H as MigrationOperationSubject, Ht as SchemaVerifyOptions, I as MigrationAccessChange, In as modelDisplayName, It as SchemaOwnership, J as MigrationPlanner, Jt as SpaceSigned, K as MigrationPlanSubjects, Kt as SpaceMarkerConflict, L as MigrationDataLoss, Ln as modelStatementText, Lt as SchemaSubjectClassifierCapable, M as FieldCoordinateJson, Mn as issueOutcome, Mt as SchemaDiff, N as IntrospectSchemaResult, Nn as migrationStatementJson, Nt as SchemaDiffIssue, O as FailedCheck, On as hasSchemaSubjectClassifier, Ot as ResolvedMigrationStatement, P as MarkerHashes, Pn as migrationSubjectJson, Pt as SchemaEntityCoordinate, Q as MigrationPlannerSuccessResult, Qt as VERIFY_CODE_MARKER_MISSING, R as MigrationDataLossKind, Rn as orderIssuesByDependencies, Rt as SchemaTreeNode, S as DataTypeInvariantInput, Sn as extractQueryOperationTypeImports, St as PslContractDocument, T as EmitContractResult, Tn as hasOperationPreview, Tt as ResolvedFieldBackfillStatement, U as MigrationPackage, Ut as SchemaVerifyResult, V as MigrationOperationPolicy, Vn as storageHashHex, Vt as SchemaVerifier, W as MigrationPlan, Wt as SchemaViewCapable, X as MigrationPlannerFailureResult, Xt as TargetMigrationsCapability, Y as MigrationPlannerConflict, Yt as SpaceToSign, Z as MigrationPlannerResult, Zt as VERIFY_CODE_HASH_MISMATCH, _ as ControlStack, _n as enforceDataTypeInvariants, _t as OperationPreview, a as ContractSerializer, an as VerifyDatabaseSchemaResult, at as MigrationRunnerSuccessValue, b as CoreSchemaView, bn as extractComponentIds, bt as PlanOrigin, c as ControlAdapterDescriptor, cn as assembleControlMutationDefaults, ct as MigrationSubject, d as ControlDriverDescriptor, dn as contractSnapshotJsonSpecifier, dt as MismatchCause, en as VERIFY_CODE_TARGET_MISMATCH, et as MigrationRunnerExecutionChecks, f as ControlDriverInstance, fn as contractSnapshotTypesSpecifier, ft as MismatchExplanation, g as ControlFamilyInstance, gn as dispositionForCategory, gt as OperationContext, h as ControlFamilyDescriptor, hn as diffSchemas, ht as OpFactoryCall, i as CONTRACT_SNAPSHOTS_DIRNAME, in as VerifyDatabaseResult, it as MigrationRunnerResult, j as FieldCoordinate, jn as isStorageHashHex, jt as RowsWithoutValue, k as FailedConversion, kn as hasSchemaView, kt as ResolvedModelRenameStatement, l as ControlAdapterInstance, ln as assertUniqueCodecOwner, lt as MigrationSubjectJson, m as ControlExtensionInstance, mn as describeMigrationStatement, mt as ModelCoordinateJson, n as AppliedMigrationStatement, nn as VerifierIssueCategory, nt as MigrationRunnerPerSpaceOptions, o as ContractSpace, on as assembleAuthoringContributions, ot as MigrationScaffoldContext, p as ControlExtensionDescriptor, pn as createControlStack, pt as ModelCoordinate, q as MigrationPlanWithAuthoringSurface, qt as SpaceSignature, r as AssembledAuthoringContributions, rn as VerifierOutcome, rt as MigrationRunnerPerSpaceSuccessValue, s as ContractSpaceHeadRef, sn as assembleAuthoringDataTypes, st as MigrationStatementJson, t as APP_SPACE_ID, tn as VerificationStatus, tt as MigrationRunnerFailure, u as ControlDriverConnectOptions, un as buildExtensionLoadOrder, ut as MigrationTemporaryValue, v as ControlTargetDescriptor, vn as extractCodecLookup, vt as OperationPreviewCapable, w as DiffableNode, wn as hasMigrations, wt as PslSourceSettings, x as CreateControlStackInput, xn as extractParameterizedOutputTypeImports, xt as PslContractBuildCapable, y as ControlTargetInstance, yn as extractCodecTypeImports, yt as OperationPreviewStatement, z as MigrationMetadata, zn as planOriginOf, zt as SchemaTreeNodeOptions } from "./control-ChAUqscy.mjs";
|
|
5
|
+
export { APP_SPACE_ID, type AppliedMigrationStatement, type AssembledAuthoringContributions, type AssembledControlMutationDefaults, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDriverConnectOptions, 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 DataTypeInvariantInput, type DefaultFunctionArgumentsPrinter, type DefaultFunctionLoweringContext, type DefaultFunctionPrinter, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type FailedCast, type FailedCheck, type FailedConversion, type FailedTypeChange, type FieldCoordinate, type FieldCoordinateJson, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MigratableTargetDescriptor, type MigrationAccessChange, type MigrationDataLoss, type MigrationDataLossKind, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationOperationSubject, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanSubjects, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MigrationStatementJson, type MigrationSubject, type MigrationSubjectJson, type MigrationTemporaryValue, type MismatchCause, type MismatchExplanation, type ModelCoordinate, type ModelCoordinateJson, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PlanOrigin, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, type PslSourceSettings, type ResolvedFieldBackfillStatement, type ResolvedFieldConvertStatement, type ResolvedFieldRenameStatement, type ResolvedMigrationStatement, type ResolvedModelRenameStatement, type ResolvedRenameStatement, type RowsWithoutValue, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, TAGGED_LITERAL_MAX_BYTES, type TargetMigrationsCapability, type TypedDefaultFunctionCall, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeMigrationStatement, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractParameterizedOutputTypeImports, extractQueryOperationTypeImports, fieldStatementText, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, isRenameStatement, isStorageHashHex, issueOutcome, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, modelStatementText, orderIssuesByDependencies, planOriginOf, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, storageHashHex, timestampNowControlDescriptor };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as hasPslContractInfer, B as modelStatementText, C as extractComponentIds, D as hasMigrations, E as fieldStatementText, F as issueOutcome, H as planOriginOf, I as migrationStatementJson, L as migrationSubjectJson, M as hasSchemaView, N as isRenameStatement, O as hasOperationPreview, P as isStorageHashHex, R as migrationSubjectKey, S as extractCodecTypeImports, T as extractQueryOperationTypeImports, U as sameMarkerHashes, V as orderIssuesByDependencies, W as storageHashHex, _ as describeMigrationStatement, a as VERIFY_CODE_HASH_MISMATCH, b as enforceDataTypeInvariants, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as hasSchemaSubjectClassifier, k as hasPslContractBuild, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as diffSchemas, w as extractParameterizedOutputTypeImports, x as extractCodecLookup, y as dispositionForCategory, z as modelDisplayName } from "./control-
|
|
1
|
+
import { M as resolvePslBacktickEscapes, N as resolveTemplateTagEscapes, R as timestampNowControlDescriptor, f as describeTaggedLiteralFailure, t as TAGGED_LITERAL_MAX_BYTES } from "./temporal-presets-woCv6gic-DW1VcyKs.mjs";
|
|
2
|
+
import { A as hasPslContractInfer, B as modelStatementText, C as extractComponentIds, D as hasMigrations, E as fieldStatementText, F as issueOutcome, H as planOriginOf, I as migrationStatementJson, L as migrationSubjectJson, M as hasSchemaView, N as isRenameStatement, O as hasOperationPreview, P as isStorageHashHex, R as migrationSubjectKey, S as extractCodecTypeImports, T as extractQueryOperationTypeImports, U as sameMarkerHashes, V as orderIssuesByDependencies, W as storageHashHex, _ as describeMigrationStatement, a as VERIFY_CODE_HASH_MISMATCH, b as enforceDataTypeInvariants, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as hasSchemaSubjectClassifier, k as hasPslContractBuild, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as diffSchemas, w as extractParameterizedOutputTypeImports, x as extractCodecLookup, y as dispositionForCategory, z as modelDisplayName } from "./control-EDGgvs_9.mjs";
|
|
3
3
|
export { APP_SPACE_ID, CONTRACT_SNAPSHOTS_DIRNAME, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeMigrationStatement, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractParameterizedOutputTypeImports, extractQueryOperationTypeImports, fieldStatementText, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, isRenameStatement, isStorageHashHex, issueOutcome, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, modelStatementText, orderIssuesByDependencies, planOriginOf, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, storageHashHex, timestampNowControlDescriptor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-
|
|
1
|
+
import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-Cwf24TjM.mjs";
|
|
2
2
|
export { type ExecutionStack, type ExecutionStackInstance, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeTargetDescriptor, type RuntimeTargetInstance, assertRuntimeContractRequirementsSatisfied, createExecutionStack, instantiateExecutionStack };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, R as PslExtensionBlockAttribute, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-
|
|
2
|
-
import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-
|
|
3
|
-
import "./psl-ast-
|
|
1
|
+
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, R as PslExtensionBlockAttribute, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-DmU1d8-I-CkAim7c8.mjs";
|
|
2
|
+
import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-Da2RnM7t-BTLOxBh5.mjs";
|
|
3
|
+
import "./psl-ast-Ckg377Cn.mjs";
|
|
4
4
|
export { type AuthoringPslBlockDescriptorNamespace, BUILTIN_PSL_KIND_KEYS, type ContributedPslDiagnosticCode, type ParsedPslExtensionBlock, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, flatPslCompositeTypes, flatPslModels, makePslNamespace, makePslNamespaceEntries, namespacePslExtensionBlocks };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
|
|
2
|
-
import { $ as RuntimeStatementStats, A as GeneratorStability, B as QueryPlan, C as ClientActivityRegistry, Ct as defineAnnotation, D as DefineAnnotationOptions, Dt as startClientActivity, E as CrossFamilyMiddleware, Et as runtimeAborted, F as MutationDefaultsOp, G as RuntimeAbortedPhase, H as RelationKeys, I as MutationDefaultsOptions, J as RuntimeExecuteOptions, K as RuntimeCore, L as OperationKind, M as MetaBuilder, N as MutationDefaultGeneratorContributor, O as ExecuteInterceptResult, Ot as startTransactionActivity, P as MutationDefaults, Q as RuntimeMutationDefaultGenerator, R as ParamRefMutator, S as ClientActivityOptions, St as createStateStore, T as ClientActivityRun, Tt as raceAgainstAbort, U as RelationNamesOf, V as RUNTIME_ABORTED, W as ResultType, X as RuntimeLog, Y as RuntimeExecutor, Z as RuntimeMiddleware, _ as AsyncIterableResult, _t as checkAborted, a as ActivityContext, at as StatementActivityRun, b as ClientActivityEnded, bt as createContextBeneath, c as ActivityFinalizedResult, ct as TransactionActivity, d as ActivityParent, dt as TransactionEnded, et as Scalars, f as ActivityStateStore, ft as TransactionSettlement, g as AppliedMutationDefault, gt as assertMutationDefaultGeneratorsAvailable, h as AnnotationValue, ht as assertAnnotationsApplicable, i as ActivityChildSlot, it as StatementActivity, j as LaneMetaBuilder, k as ExecutionPlan, kt as streamStatement, l as ActivityInterceptResult, lt as TransactionActivityOptions, m as AnnotationSource, mt as applyMutationDefaults, n as ActivityBase, nt as ShapeSpec, o as ActivityContextFields, ot as StatementEnded, p as AnnotationHandle, pt as ValidAnnotations, q as RuntimeCoreOptions, r as ActivityChild, rt as StartActivity, s as ActivityEndedResult, st as StatementOptions, t as Activity, tt as Shape, u as ActivityObserver, ut as TransactionActivityRun, v as ClientActivity, vt as checkMiddlewareCompatibility, w as ClientActivityResult, wt as executeStatement, x as ClientActivityKind, xt as createMetaBuilder, y as ClientActivityEnd, yt as collectMutationDefaultGenerators, z as QueryInterceptResult } from "./runtime-
|
|
2
|
+
import { $ as RuntimeStatementStats, A as GeneratorStability, B as QueryPlan, C as ClientActivityRegistry, Ct as defineAnnotation, D as DefineAnnotationOptions, Dt as startClientActivity, E as CrossFamilyMiddleware, Et as runtimeAborted, F as MutationDefaultsOp, G as RuntimeAbortedPhase, H as RelationKeys, I as MutationDefaultsOptions, J as RuntimeExecuteOptions, K as RuntimeCore, L as OperationKind, M as MetaBuilder, N as MutationDefaultGeneratorContributor, O as ExecuteInterceptResult, Ot as startTransactionActivity, P as MutationDefaults, Q as RuntimeMutationDefaultGenerator, R as ParamRefMutator, S as ClientActivityOptions, St as createStateStore, T as ClientActivityRun, Tt as raceAgainstAbort, U as RelationNamesOf, V as RUNTIME_ABORTED, W as ResultType, X as RuntimeLog, Y as RuntimeExecutor, Z as RuntimeMiddleware, _ as AsyncIterableResult, _t as checkAborted, a as ActivityContext, at as StatementActivityRun, b as ClientActivityEnded, bt as createContextBeneath, c as ActivityFinalizedResult, ct as TransactionActivity, d as ActivityParent, dt as TransactionEnded, et as Scalars, f as ActivityStateStore, ft as TransactionSettlement, g as AppliedMutationDefault, gt as assertMutationDefaultGeneratorsAvailable, h as AnnotationValue, ht as assertAnnotationsApplicable, i as ActivityChildSlot, it as StatementActivity, j as LaneMetaBuilder, k as ExecutionPlan, kt as streamStatement, l as ActivityInterceptResult, lt as TransactionActivityOptions, m as AnnotationSource, mt as applyMutationDefaults, n as ActivityBase, nt as ShapeSpec, o as ActivityContextFields, ot as StatementEnded, p as AnnotationHandle, pt as ValidAnnotations, q as RuntimeCoreOptions, r as ActivityChild, rt as StartActivity, s as ActivityEndedResult, st as StatementOptions, t as Activity, tt as Shape, u as ActivityObserver, ut as TransactionActivityRun, v as ClientActivity, vt as checkMiddlewareCompatibility, w as ClientActivityResult, wt as executeStatement, x as ClientActivityKind, xt as createMetaBuilder, y as ClientActivityEnd, yt as collectMutationDefaultGenerators, z as QueryInterceptResult } from "./runtime-CW_0S1tZ.mjs";
|
|
3
3
|
export { type Activity, type ActivityBase, type ActivityChild, type ActivityChildSlot, type ActivityContext, type ActivityContextFields, type ActivityEndedResult, type ActivityFinalizedResult, type ActivityInterceptResult, type ActivityObserver, type ActivityParent, type ActivityStateStore, type AnnotationHandle, type AnnotationSource, type AnnotationValue, type AppliedMutationDefault, AsyncIterableResult, type ClientActivity, type ClientActivityEnd, type ClientActivityEnded, type ClientActivityKind, type ClientActivityOptions, type ClientActivityRegistry, type ClientActivityResult, type ClientActivityRun, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type GeneratorStability, type LaneMetaBuilder, type MetaBuilder, type MutationDefaultGeneratorContributor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type OperationKind, type ParamRefMutator, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, RuntimeCore, type RuntimeCoreOptions, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeLog, type RuntimeMiddleware, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type Scalars, type Shape, type ShapeSpec, type StartActivity, type StatementActivity, type StatementActivityRun, type StatementEnded, type StatementOptions, type TransactionActivity, type TransactionActivityOptions, type TransactionActivityRun, type TransactionEnded, type TransactionSettlement, type ValidAnnotations, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createContextBeneath, createMetaBuilder, createStateStore, defineAnnotation, executeStatement, isRuntimeError, raceAgainstAbort, runtimeAborted, runtimeError, startClientActivity, startTransactionActivity, streamStatement };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as runtimeError, t as isRuntimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
|
|
2
|
-
import { _ as runtimeAborted, a as applyMutationDefaults, b as streamStatement, c as checkAborted, d as createContextBeneath, f as createMetaBuilder, g as raceAgainstAbort, h as executeStatement, i as RuntimeCore, l as checkMiddlewareCompatibility, m as defineAnnotation, n as RUNTIME_ABORTED, o as assertAnnotationsApplicable, p as createStateStore, r as RelationKeys, s as assertMutationDefaultGeneratorsAvailable, t as AsyncIterableResult, u as collectMutationDefaultGenerators, v as startClientActivity, y as startTransactionActivity } from "./runtime-
|
|
2
|
+
import { _ as runtimeAborted, a as applyMutationDefaults, b as streamStatement, c as checkAborted, d as createContextBeneath, f as createMetaBuilder, g as raceAgainstAbort, h as executeStatement, i as RuntimeCore, l as checkMiddlewareCompatibility, m as defineAnnotation, n as RUNTIME_ABORTED, o as assertAnnotationsApplicable, p as createStateStore, r as RelationKeys, s as assertMutationDefaultGeneratorsAvailable, t as AsyncIterableResult, u as collectMutationDefaultGenerators, v as startClientActivity, y as startTransactionActivity } from "./runtime-DAB3uLpb.mjs";
|
|
3
3
|
export { AsyncIterableResult, RUNTIME_ABORTED, RelationKeys, RuntimeCore, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createContextBeneath, createMetaBuilder, createStateStore, defineAnnotation, executeStatement, isRuntimeError, raceAgainstAbort, runtimeAborted, runtimeError, startClientActivity, startTransactionActivity, streamStatement };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as Contract } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
|
|
2
2
|
import { p as CodecLookupWithDescriptors } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { i as ControlMutationDefaults } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
|
-
import { n as DataTypeSupport } from "./written-value-
|
|
6
|
-
import "./authoring-
|
|
5
|
+
import { n as DataTypeSupport } from "./written-value-aEELSm_V-BtFVjTrj.mjs";
|
|
6
|
+
import "./authoring-xQjRM5Pu.mjs";
|
|
7
7
|
import "./codec-BxNHu928.mjs";
|
|
8
8
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
9
|
-
import "./components-
|
|
10
|
-
import { c as ControlAdapterDescriptor, d as ControlDriverDescriptor, f as ControlDriverInstance, h as ControlFamilyDescriptor, p as ControlExtensionDescriptor, r as AssembledAuthoringContributions, v as ControlTargetDescriptor } from "./control-
|
|
9
|
+
import "./components-x4E7HR1C.mjs";
|
|
10
|
+
import { c as ControlAdapterDescriptor, d as ControlDriverDescriptor, f as ControlDriverInstance, h as ControlFamilyDescriptor, p as ControlExtensionDescriptor, r as AssembledAuthoringContributions, v as ControlTargetDescriptor } from "./control-ChAUqscy.mjs";
|
|
11
11
|
//#region ../../../1-framework/1-core/config/dist/config-types.d.mts
|
|
12
12
|
//#region src/contract-source-types.d.ts
|
|
13
13
|
interface ContractSourceDiagnosticPosition {
|
|
@@ -204,4 +204,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
|
|
|
204
204
|
declare function defaultContractOutputPath(contractPath: string): string;
|
|
205
205
|
//#endregion
|
|
206
206
|
export { defaultContractOutputPath as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, PrismaNextConfig as f, TypeScriptContractSourceProvider as g, PslParserOptions as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslGrammar as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PslContractSourceProvider as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u, defineConfig as v, normalizeContractConfig as y };
|
|
207
|
-
//# sourceMappingURL=config-types-
|
|
207
|
+
//# sourceMappingURL=config-types-CWTAy1In.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-CWTAy1In.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;UAOU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,WAAW;WACX,yBAAyB;;;;;;;WAOzB;WACA,cAAc;WACd;;;;WAIA,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-CWTAy1In.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-CWTAy1In.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { p as CodecLookupWithDescriptors } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
|
|
3
|
-
import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-
|
|
4
|
-
import { a as EncodedEnumMember } from "./authoring-
|
|
3
|
+
import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-DmU1d8-I-CkAim7c8.mjs";
|
|
4
|
+
import { a as EncodedEnumMember } from "./authoring-xQjRM5Pu.mjs";
|
|
5
5
|
import { s as ColumnTypeDescriptor } from "./codec-BxNHu928.mjs";
|
|
6
6
|
//#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
|
|
7
7
|
//#region src/authoring-argument-types.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
2
|
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
3
|
import { t as assertDefined } from "./assertions-Dw1lZz_Q.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { f as errorEnumCodecNotInPackStack } from "./control-Bv8UK63M-
|
|
6
|
-
import { d as encodeEnumMembers } from "./authoring-
|
|
4
|
+
import { D as mergeAuthoringNamespaces, g as instantiateAuthoringEntityType, x as isAuthoringFieldPresetDescriptor } from "./temporal-presets-woCv6gic-DW1VcyKs.mjs";
|
|
5
|
+
import { f as errorEnumCodecNotInPackStack } from "./control-Bv8UK63M-B2plYV6c.mjs";
|
|
6
|
+
import { d as encodeEnumMembers } from "./authoring-D8KPtnJg.mjs";
|
|
7
7
|
//#region ../../../1-framework/2-authoring/contract/dist/index.mjs
|
|
8
8
|
/**
|
|
9
9
|
* Deep-merges any number of capability matrices into a single matrix.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
2
2
|
import { r as docsUrlFor } from "./structured-error-BXbihKQ-.mjs";
|
|
3
3
|
import "./namespace-VUH2dgnS-By5y75h9.mjs";
|
|
4
|
-
import { I as migrationStatementJson } from "./control-
|
|
4
|
+
import { I as migrationStatementJson } from "./control-EDGgvs_9.mjs";
|
|
5
5
|
//#region ../../../1-framework/1-core/errors/dist/control-Bv8UK63M.mjs
|
|
6
6
|
/** Where the upgrade instructions of every release are published, as a skill. */
|
|
7
7
|
const UPGRADE_GUIDES_URL = "https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading";
|
|
@@ -377,4 +377,4 @@ function errorUnexpected(message, options) {
|
|
|
377
377
|
//#endregion
|
|
378
378
|
export { errorTargetMigrationNotSupported as C, errorQueryRunnerFactoryRequired as S, errorMigrationCliConfigNotFound as _, errorConfigValidation as a, errorMigrationPlanningFailed as b, errorContractMissingExtensions as c, errorDriverRequired as d, errorEnumCodecNotInPackStack as f, errorJsonFormatNotSupported as g, errorInvalidOutputFormat as h, errorConfigFileNotFound as i, errorContractValidationFailed as l, errorFileNotFound as m, UPGRADE_GUIDES_URL as n, errorConfigVersionMarkerMissing as o, errorFamilyReadMarkerSqlRequired as p, errorConfigEvaluationFailed as r, errorContractConfigMissing as s, CliStructuredError as t, errorDatabaseConnectionRequired as u, errorMigrationCliInvalidConfigArg as v, errorUnexpected as w, errorOutputFormatMutex as x, errorMigrationCliUnknownFlag as y };
|
|
379
379
|
|
|
380
|
-
//# sourceMappingURL=control-Bv8UK63M-
|
|
380
|
+
//# sourceMappingURL=control-Bv8UK63M-B2plYV6c.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-Bv8UK63M-D34GaTSa.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-Bv8UK63M.mjs"],"sourcesContent":["import { migrationStatementJson } from \"@internal/framework-components/control\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { docsUrlFor } from \"@internal/utils/structured-error\";\n//#region src/upgrade-guides.ts\n/** Where the upgrade instructions of every release are published, as a skill. */\nconst UPGRADE_GUIDES_URL = \"https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading\";\n/** The upgrade instructions for an application, as opposed to an extension. */\nconst APP_UPGRADE_GUIDES_URL = `${UPGRADE_GUIDES_URL}/app`;\n//#endregion\n//#region src/control.ts\n/**\n* Structured CLI error that contains all information needed for error envelopes.\n* Call sites throw these errors with full context.\n*\n* A `CliStructuredError` is a `StructuredError` (see\n* `@internal/utils/structured-error`): `code` is a dotted\n* `NAMESPACE.SUBCODE` string, and the namespace prefix is the error's\n* category — there is no separate `domain` field. See\n* [ADR 239](../../../../../docs/architecture%20docs/adrs/ADR%20239%20-%20Errors%20are%20structural%20envelopes%20with%20dotted%20namespace%20codes.md)\n* for the namespace taxonomy.\n*/\nvar CliStructuredError = class extends Error {\n\tcode;\n\tseverity;\n\tconstructor(code, summary, options) {\n\t\tsuper(summary, options?.cause !== void 0 ? { cause: options.cause } : void 0);\n\t\tthis.name = \"CliStructuredError\";\n\t\tthis.code = code;\n\t\tthis.severity = options?.severity ?? \"error\";\n\t\tconst fix = options?.fix === options?.why ? void 0 : options?.fix;\n\t\tconst where = options?.where ? {\n\t\t\t...ifDefined(\"path\", options.where.path),\n\t\t\t...ifDefined(\"line\", options.where.line)\n\t\t} : void 0;\n\t\tObject.assign(this, {\n\t\t\t...ifDefined(\"why\", options?.why),\n\t\t\t...ifDefined(\"fix\", fix),\n\t\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t\t...ifDefined(\"where\", where),\n\t\t\t...ifDefined(\"meta\", options?.meta),\n\t\t\t...ifDefined(\"docsUrl\", options?.docsUrl)\n\t\t});\n\t}\n\t/**\n\t* Converts this error to a CLI error envelope for output formatting.\n\t*\n\t* This is the boundary that emits the envelope, so it is where a missing\n\t* `nextActions` becomes `[]`.\n\t*/\n\ttoEnvelope() {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tcode: this.code,\n\t\t\tseverity: this.severity,\n\t\t\tsummary: this.message,\n\t\t\t...ifDefined(\"why\", this.why),\n\t\t\t...ifDefined(\"fix\", this.fix),\n\t\t\tnextActions: this.nextActions ?? [],\n\t\t\t...ifDefined(\"diagnostics\", this.diagnostics),\n\t\t\t...ifDefined(\"where\", this.where),\n\t\t\t...ifDefined(\"meta\", this.meta),\n\t\t\t...ifDefined(\"docsUrl\", this.docsUrl)\n\t\t};\n\t}\n\t/**\n\t* Type guard to check if an error is a CliStructuredError.\n\t* Uses duck-typing to work across module boundaries where instanceof may fail.\n\t*/\n\tstatic is(error) {\n\t\tif (!(error instanceof Error)) return false;\n\t\tconst candidate = error;\n\t\treturn candidate.name === \"CliStructuredError\" && typeof candidate.code === \"string\" && typeof candidate.toEnvelope === \"function\";\n\t}\n};\n/**\n* Config file not found or missing.\n*/\nfunction errorConfigFileNotFound(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.FILE_NOT_FOUND\", \"Config file not found\", {\n\t\t...options?.why ? { why: options.why } : { why: \"Config file not found\" },\n\t\tfix: \"Run '{bin} orm init' to create a config file\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Create a config file\",\n\t\t\tcommand: \"{bin} orm init\"\n\t\t}],\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FILE_NOT_FOUND\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Config module failed to evaluate (syntax error, module threw during import).\n*/\nfunction errorConfigEvaluationFailed(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.EVALUATION_FAILED\", \"Config file could not be evaluated\", {\n\t\twhy: options.why,\n\t\tfix: \"Fix the error in your prisma.config.ts so the module evaluates, then rerun the command\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.EVALUATION_FAILED\"),\n\t\t...configPath ? { where: { path: configPath } } : {},\n\t\t...options.cause !== void 0 ? { cause: options.cause } : {}\n\t});\n}\n/**\n* Config module evaluated, but its export does not carry the definePrismaConfig\n* version marker (plain object export, or a config produced by a different\n* defineConfig such as classic Prisma's).\n*/\nfunction errorConfigVersionMarkerMissing(configPath) {\n\treturn new CliStructuredError(\"CONFIG.VERSION_MARKER_MISSING\", \"Config is not a definePrismaConfig result\", {\n\t\twhy: \"The config module evaluated, but its default export was not created by a current definePrismaConfig\",\n\t\tfix: \"Create the config with definePrismaConfig from '@prisma/cli-engine', nest your settings under its `orm` section, and export its return value directly\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VERSION_MARKER_MISSING\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Contract configuration missing from config.\n*/\nfunction errorContractConfigMissing(options) {\n\treturn new CliStructuredError(\"CONFIG.CONTRACT_MISSING\", \"Contract configuration missing\", {\n\t\twhy: options?.why ?? \"The contract configuration is required for emit\",\n\t\tfix: \"Add contract configuration to your prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.CONTRACT_MISSING\")\n\t});\n}\n/**\n* Contract validation failed.\n*/\nfunction errorContractValidationFailed(reason, options) {\n\treturn new CliStructuredError(\"CONTRACT.VALIDATION_FAILED\", \"Contract validation failed\", {\n\t\twhy: reason,\n\t\tfix: `If an earlier release emitted this contract, follow the app upgrade instructions of each release since, which rewrite the contract and its migration snapshots: ${APP_UPGRADE_GUIDES_URL}. If this release emitted it, re-run \\`{bin} contract emit\\`, or fix the contract file if you edited it, and try again`,\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"open-url\",\n\t\t\t\tlabel: \"If an earlier release emitted the contract, follow the app upgrade instructions\",\n\t\t\t\turl: APP_UPGRADE_GUIDES_URL\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"If this release emitted the contract, re-emit it\",\n\t\t\t\tcommand: \"{bin} contract emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"edit-file\",\n\t\t\t\tlabel: \"Fix the contract file, then re-run the command\",\n\t\t\t\treason\n\t\t\t}\n\t\t],\n\t\tdocsUrl: docsUrlFor(\"CONTRACT.VALIDATION_FAILED\"),\n\t\t...options?.where ? { where: options.where } : {},\n\t\t...ifDefined(\"cause\", options?.cause),\n\t\t...ifDefined(\"meta\", options?.meta)\n\t});\n}\n/**\n* File not found.\n*/\nfunction errorFileNotFound(filePath, options) {\n\treturn new CliStructuredError(\"CLI.FILE_NOT_FOUND\", \"File not found\", {\n\t\twhy: options?.why ?? `File not found: ${filePath}`,\n\t\tfix: options?.fix ?? \"Check that the file path is correct\",\n\t\twhere: { path: filePath },\n\t\t...options?.docsUrl ? { docsUrl: options.docsUrl } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Database connection is required but not provided.\n*/\nfunction errorDatabaseConnectionRequired(options) {\n\tconst runHint = options?.retryCommand ? `Run \\`${options.retryCommand}\\`` : options?.commandName ? `Run \\`{bin} ${options.commandName} --db <url>\\`` : \"Provide `--db <url>`\";\n\treturn new CliStructuredError(\"CONFIG.DB_CONNECTION_REQUIRED\", \"Database connection is required\", {\n\t\twhy: options?.why ?? \"Database connection is required for this command\",\n\t\tfix: `${runHint}, or set \\`db: { connection: \"postgres://…\" }\\` in prisma.config.ts`,\n\t\t...options?.missingFlags !== void 0 ? { meta: { missingFlags: [...options.missingFlags] } } : {}\n\t});\n}\n/**\n* Query runner factory is required but not provided in config.\n*/\nfunction errorQueryRunnerFactoryRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\", \"Query runner factory is required\", {\n\t\twhy: options?.why ?? \"Config.db.queryRunnerFactory is required for db verify\",\n\t\tfix: \"Add db.queryRunnerFactory to prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\")\n\t});\n}\n/**\n* Family verify.readMarker is required but not provided.\n*/\nfunction errorFamilyReadMarkerSqlRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\", \"Family readMarker() is required\", {\n\t\twhy: options?.why ?? \"Family verify.readMarker is required for db verify\",\n\t\tfix: \"Ensure family.verify.readMarker() is exported by your family package\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\")\n\t});\n}\n/**\n* JSON output format not supported.\n*/\nfunction errorJsonFormatNotSupported(options) {\n\treturn new CliStructuredError(\"CLI.JSON_FORMAT_UNSUPPORTED\", \"Unsupported JSON format\", {\n\t\twhy: `The ${options.command} command does not support --json ${options.format}`,\n\t\tfix: `Use --json ${options.supportedFormats.join(\" or \")}, or omit --json for human output`,\n\t\tmeta: {\n\t\t\tcommand: options.command,\n\t\t\tformat: options.format,\n\t\t\tsupportedFormats: options.supportedFormats\n\t\t}\n\t});\n}\n/**\n* Driver is required for DB-connected commands but not provided.\n*/\nfunction errorDriverRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.DRIVER_REQUIRED\", \"Driver is required for DB-connected commands\", {\n\t\twhy: options?.why ?? \"Config.driver is required for DB-connected commands\",\n\t\tfix: \"Add a control-plane driver to prisma.config.ts (e.g. import a driver descriptor and set `driver: postgresDriver`)\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.DRIVER_REQUIRED\")\n\t});\n}\n/**\n* Contract requires extension packs that are not provided by config descriptors.\n*/\nfunction errorContractMissingExtensions(options) {\n\tconst missing = [...options.missingExtensions].sort();\n\treturn new CliStructuredError(\"CONFIG.MISSING_EXTENSION_PACKS\", \"Missing extension packs in config\", {\n\t\twhy: missing.length === 1 ? `Contract requires extension pack '${missing[0]}', but CLI config does not provide a matching descriptor.` : `Contract requires extension packs ${missing.map((p) => `'${p}'`).join(\", \")}, but CLI config does not provide matching descriptors.`,\n\t\tfix: \"Add the missing extension descriptors to `extensions` in prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.MISSING_EXTENSION_PACKS\"),\n\t\tmeta: {\n\t\t\tmissingExtensions: missing,\n\t\t\tprovidedComponentIds: [...options.providedComponentIds].sort()\n\t\t}\n\t});\n}\nfunction locationJson(location) {\n\tif (location.namespaceId !== UNBOUND_NAMESPACE_ID) return location;\n\tconst { namespaceId: _unbound, ...rest } = location;\n\treturn rest;\n}\nfunction conflictJson(conflict) {\n\treturn {\n\t\t...conflict,\n\t\t...conflict.location === void 0 ? {} : { location: locationJson(conflict.location) },\n\t\t...conflict.refusedStatement === void 0 ? {} : { refusedStatement: migrationStatementJson(conflict.refusedStatement) }\n\t};\n}\n/**\n* Migration planning failed due to conflicts.\n*/\nfunction errorMigrationPlanningFailed(options) {\n\tconst conflictSummaries = options.conflicts.map((c) => c.summary);\n\tconst computedWhy = options.why ?? conflictSummaries.join(\"\\n\");\n\tconst conflictFixes = options.conflicts.map((c) => c.why).filter((why) => typeof why === \"string\");\n\treturn new CliStructuredError(\"MIGRATION.PLANNING_FAILED\", \"Migration planning failed\", {\n\t\twhy: computedWhy,\n\t\tfix: conflictFixes.length > 0 ? conflictFixes.join(\"\\n\") : \"Use `db verify --schema-only` to inspect conflicts, or ensure the database is empty\",\n\t\tmeta: { conflicts: options.conflicts.map(conflictJson) },\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.PLANNING_FAILED\")\n\t});\n}\n/**\n* Target does not support migrations (missing createPlanner/createRunner).\n*/\nfunction errorTargetMigrationNotSupported(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_UNSUPPORTED\", \"Target does not support migrations\", {\n\t\twhy: options?.why ?? \"The configured target does not provide migration planner/runner\",\n\t\tfix: \"Select a target that provides migrations (it must export `target.migrations` for db init)\",\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.TARGET_UNSUPPORTED\")\n\t});\n}\n/**\n* Without `--config`, the migration-file CLI found no config whose migrations directory holds the migration.\n*/\nfunction errorMigrationCliConfigNotFound(options) {\n\tconst rule = `Without --config, a migration.ts uses the prisma.config.ts whose migrations directory holds it: the nearest one above ${options.migrationDir}, else the one in the working directory.`;\n\tconst found = options.checked.map(({ configPath, migrationsDir, loadFailure }) => loadFailure === void 0 ? `${configPath} keeps migrations in ${migrationsDir}` : `${configPath} failed to load (${loadFailure})`);\n\treturn new CliStructuredError(\"CLI.MIGRATION_CONFIG_NOT_FOUND\", \"No config found for this migration\", {\n\t\twhy: found.length === 0 ? `${rule} There is neither.` : `${rule} None of them does: ${found.join(\"; \")}.`,\n\t\tfix: \"Run it again with `--config <path to the config of the project this migration belongs to>`.\",\n\t\tmeta: {\n\t\t\tmigrationDir: options.migrationDir,\n\t\t\tchecked: options.checked.map(({ configPath }) => configPath)\n\t\t}\n\t});\n}\n/**\n* The migration-file CLI received `--config` without a path argument (either\n* a bare trailing `--config`, or `--config` followed by another flag like\n* `--config --dry-run`). Surfacing this as a structured error fails fast\n* rather than silently consuming the next flag as the config path or\n* falling back to default discovery against the wrong project.\n*/\nfunction errorMigrationCliInvalidConfigArg(options) {\n\treturn new CliStructuredError(\"CLI.CONFIG_ARG_MISSING_PATH\", \"--config flag requires a path argument\", {\n\t\twhy: options?.nextToken !== void 0 ? `\\`--config\\` was followed by another flag (\\`${options.nextToken}\\`) instead of a path argument.` : \"`--config` was passed without a following path argument.\",\n\t\tfix: \"Pass a config path: `--config <path>` or `--config=<path>`.\",\n\t\tmeta: options?.nextToken !== void 0 ? { nextToken: options.nextToken } : {}\n\t});\n}\n/**\n* The migration-file CLI received a flag it does not recognise. Surfaced as a\n* structured error so consumers can render their own \"did you mean\"\n* suggestions from `meta.knownFlags` rather than parsing the message.\n*\n* Designed to wrap clipanion's `UnknownSyntaxError` at the parser boundary:\n* pass the offending token as `flag` and the option declarations as\n* `knownFlags`.\n*/\nfunction errorMigrationCliUnknownFlag(options) {\n\tconst knownList = options.knownFlags.join(\", \");\n\treturn new CliStructuredError(\"CLI.UNKNOWN_FLAG\", \"Unknown migration CLI flag\", {\n\t\twhy: `Unknown flag \\`${options.flag}\\`.`,\n\t\tfix: `Known flags: ${knownList}. Run with \\`--help\\` to see the full list.`,\n\t\tmeta: {\n\t\t\tflag: options.flag,\n\t\t\tknownFlags: options.knownFlags\n\t\t}\n\t});\n}\n/**\n* The main CLI received an unsupported `--format` value.\n*/\nfunction errorInvalidOutputFormat(value) {\n\treturn new CliStructuredError(\"CLI.INVALID_OUTPUT_FORMAT\", `Invalid --format value \"${value}\". Allowed values: pretty, json.`, { meta: {\n\t\tvalue,\n\t\tallowed: [\"pretty\", \"json\"]\n\t} });\n}\n/**\n* The main CLI received mutually exclusive output format flags\n* (`--format pretty` together with `--json`).\n*/\nfunction errorOutputFormatMutex() {\n\treturn new CliStructuredError(\"CLI.OUTPUT_FORMAT_CONFLICT\", \"Cannot use --format pretty together with --json. Use --format json or --json alone for JSON output.\");\n}\n/**\n* Config validation error (missing required fields).\n*/\nfunction errorConfigValidation(field, options) {\n\treturn new CliStructuredError(\"CONFIG.VALIDATION_FAILED\", \"Config validation error\", {\n\t\twhy: options?.why ?? `Config must have a \"${field}\" field`,\n\t\tfix: \"Check your prisma.config.ts and ensure all required fields are provided\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VALIDATION_FAILED\"),\n\t\tmeta: {\n\t\t\tfield,\n\t\t\t...options?.section !== void 0 ? { section: options.section } : {}\n\t\t}\n\t});\n}\n/**\n* An enum declares a codecId that no component in the contract's pack stack provides,\n* so its member values cannot be encoded. Thrown by both authoring paths (TS `defineContract`\n* and PSL interpretation) when the codec lookup built from the contract's packs has no\n* descriptor for the codecId.\n*/\nfunction errorEnumCodecNotInPackStack(options) {\n\treturn new CliStructuredError(\"CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK\", `Enum codec \"${options.codecId}\" is not part of the contract's pack stack`, {\n\t\twhy: `An enum uses codec \"${options.codecId}\", but no family, target, or extension pack in the contract provides it.`,\n\t\tfix: \"Use a codec provided by the contract's target/extension packs, or add the pack that supplies this codec.\",\n\t\tmeta: { codecId: options.codecId }\n\t});\n}\n/**\n* Generic unexpected error.\n*/\nfunction errorUnexpected(message, options) {\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", \"Unexpected error\", {\n\t\twhy: options?.why ?? message,\n\t\tfix: options?.fix ?? \"Check the error message and try again\",\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorUnexpected as C, errorTargetMigrationNotSupported as S, errorMigrationCliInvalidConfigArg as _, errorConfigVersionMarkerMissing as a, errorOutputFormatMutex as b, errorContractValidationFailed as c, errorEnumCodecNotInPackStack as d, errorFamilyReadMarkerSqlRequired as f, errorMigrationCliConfigNotFound as g, errorJsonFormatNotSupported as h, errorConfigValidation as i, errorDatabaseConnectionRequired as l, errorInvalidOutputFormat as m, errorConfigEvaluationFailed as n, errorContractConfigMissing as o, errorFileNotFound as p, errorConfigFileNotFound as r, errorContractMissingExtensions as s, CliStructuredError as t, errorDriverRequired as u, errorMigrationCliUnknownFlag as v, UPGRADE_GUIDES_URL as w, errorQueryRunnerFactoryRequired as x, errorMigrationPlanningFailed as y };\n\n//# sourceMappingURL=control-Bv8UK63M.mjs.map"],"mappings":";;;;;;AAMA,MAAM,qBAAqB;;AAE3B,MAAM,yBAAyB,GAAG,mBAAmB;;;;;;;;;;;;AAcrD,IAAI,qBAAqB,cAAc,MAAM;CAC5C;CACA;CACA,YAAY,MAAM,SAAS,SAAS;EACnC,MAAM,SAAS,SAAS,UAAU,KAAK,IAAI,EAAE,OAAO,QAAQ,MAAM,IAAI,KAAK,CAAC;EAC5E,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,WAAW,SAAS,YAAY;EACrC,MAAM,MAAM,SAAS,QAAQ,SAAS,MAAM,KAAK,IAAI,SAAS;EAC9D,MAAM,QAAQ,SAAS,QAAQ;GAC9B,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;GACvC,GAAG,UAAU,QAAQ,QAAQ,MAAM,IAAI;EACxC,IAAI,KAAK;EACT,OAAO,OAAO,MAAM;GACnB,GAAG,UAAU,OAAO,SAAS,GAAG;GAChC,GAAG,UAAU,OAAO,GAAG;GACvB,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,eAAe,SAAS,WAAW;GAChD,GAAG,UAAU,SAAS,KAAK;GAC3B,GAAG,UAAU,QAAQ,SAAS,IAAI;GAClC,GAAG,UAAU,WAAW,SAAS,OAAO;EACzC,CAAC;CACF;;;;;;;CAOA,aAAa;EACZ,OAAO;GACN,IAAI;GACJ,MAAM,KAAK;GACX,UAAU,KAAK;GACf,SAAS,KAAK;GACd,GAAG,UAAU,OAAO,KAAK,GAAG;GAC5B,GAAG,UAAU,OAAO,KAAK,GAAG;GAC5B,aAAa,KAAK,eAAe,CAAC;GAClC,GAAG,UAAU,eAAe,KAAK,WAAW;GAC5C,GAAG,UAAU,SAAS,K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AS,SAAS;CAC1C,OAAO,IAAI,mBAAmB,kBAAkB,oBAAoB;EACnE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
|
|
1
|
+
{"version":3,"file":"control-Bv8UK63M-B2plYV6c.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-Bv8UK63M.mjs"],"sourcesContent":["import { migrationStatementJson } from \"@internal/framework-components/control\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { docsUrlFor } from \"@internal/utils/structured-error\";\n//#region src/upgrade-guides.ts\n/** Where the upgrade instructions of every release are published, as a skill. */\nconst UPGRADE_GUIDES_URL = \"https://github.com/prisma/orm/tree/main/skills/prisma-8/upgrading\";\n/** The upgrade instructions for an application, as opposed to an extension. */\nconst APP_UPGRADE_GUIDES_URL = `${UPGRADE_GUIDES_URL}/app`;\n//#endregion\n//#region src/control.ts\n/**\n* Structured CLI error that contains all information needed for error envelopes.\n* Call sites throw these errors with full context.\n*\n* A `CliStructuredError` is a `StructuredError` (see\n* `@internal/utils/structured-error`): `code` is a dotted\n* `NAMESPACE.SUBCODE` string, and the namespace prefix is the error's\n* category — there is no separate `domain` field. See\n* [ADR 239](../../../../../docs/architecture%20docs/adrs/ADR%20239%20-%20Errors%20are%20structural%20envelopes%20with%20dotted%20namespace%20codes.md)\n* for the namespace taxonomy.\n*/\nvar CliStructuredError = class extends Error {\n\tcode;\n\tseverity;\n\tconstructor(code, summary, options) {\n\t\tsuper(summary, options?.cause !== void 0 ? { cause: options.cause } : void 0);\n\t\tthis.name = \"CliStructuredError\";\n\t\tthis.code = code;\n\t\tthis.severity = options?.severity ?? \"error\";\n\t\tconst fix = options?.fix === options?.why ? void 0 : options?.fix;\n\t\tconst where = options?.where ? {\n\t\t\t...ifDefined(\"path\", options.where.path),\n\t\t\t...ifDefined(\"line\", options.where.line)\n\t\t} : void 0;\n\t\tObject.assign(this, {\n\t\t\t...ifDefined(\"why\", options?.why),\n\t\t\t...ifDefined(\"fix\", fix),\n\t\t\t...ifDefined(\"nextActions\", options?.nextActions),\n\t\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t\t...ifDefined(\"where\", where),\n\t\t\t...ifDefined(\"meta\", options?.meta),\n\t\t\t...ifDefined(\"docsUrl\", options?.docsUrl)\n\t\t});\n\t}\n\t/**\n\t* Converts this error to a CLI error envelope for output formatting.\n\t*\n\t* This is the boundary that emits the envelope, so it is where a missing\n\t* `nextActions` becomes `[]`.\n\t*/\n\ttoEnvelope() {\n\t\treturn {\n\t\t\tok: false,\n\t\t\tcode: this.code,\n\t\t\tseverity: this.severity,\n\t\t\tsummary: this.message,\n\t\t\t...ifDefined(\"why\", this.why),\n\t\t\t...ifDefined(\"fix\", this.fix),\n\t\t\tnextActions: this.nextActions ?? [],\n\t\t\t...ifDefined(\"diagnostics\", this.diagnostics),\n\t\t\t...ifDefined(\"where\", this.where),\n\t\t\t...ifDefined(\"meta\", this.meta),\n\t\t\t...ifDefined(\"docsUrl\", this.docsUrl)\n\t\t};\n\t}\n\t/**\n\t* Type guard to check if an error is a CliStructuredError.\n\t* Uses duck-typing to work across module boundaries where instanceof may fail.\n\t*/\n\tstatic is(error) {\n\t\tif (!(error instanceof Error)) return false;\n\t\tconst candidate = error;\n\t\treturn candidate.name === \"CliStructuredError\" && typeof candidate.code === \"string\" && typeof candidate.toEnvelope === \"function\";\n\t}\n};\n/**\n* Config file not found or missing.\n*/\nfunction errorConfigFileNotFound(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.FILE_NOT_FOUND\", \"Config file not found\", {\n\t\t...options?.why ? { why: options.why } : { why: \"Config file not found\" },\n\t\tfix: \"Run '{bin} orm init' to create a config file\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Create a config file\",\n\t\t\tcommand: \"{bin} orm init\"\n\t\t}],\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FILE_NOT_FOUND\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Config module failed to evaluate (syntax error, module threw during import).\n*/\nfunction errorConfigEvaluationFailed(configPath, options) {\n\treturn new CliStructuredError(\"CONFIG.EVALUATION_FAILED\", \"Config file could not be evaluated\", {\n\t\twhy: options.why,\n\t\tfix: \"Fix the error in your prisma.config.ts so the module evaluates, then rerun the command\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.EVALUATION_FAILED\"),\n\t\t...configPath ? { where: { path: configPath } } : {},\n\t\t...options.cause !== void 0 ? { cause: options.cause } : {}\n\t});\n}\n/**\n* Config module evaluated, but its export does not carry the definePrismaConfig\n* version marker (plain object export, or a config produced by a different\n* defineConfig such as classic Prisma's).\n*/\nfunction errorConfigVersionMarkerMissing(configPath) {\n\treturn new CliStructuredError(\"CONFIG.VERSION_MARKER_MISSING\", \"Config is not a definePrismaConfig result\", {\n\t\twhy: \"The config module evaluated, but its default export was not created by a current definePrismaConfig\",\n\t\tfix: \"Create the config with definePrismaConfig from '@prisma/cli-engine', nest your settings under its `orm` section, and export its return value directly\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VERSION_MARKER_MISSING\"),\n\t\t...configPath ? { where: { path: configPath } } : {}\n\t});\n}\n/**\n* Contract configuration missing from config.\n*/\nfunction errorContractConfigMissing(options) {\n\treturn new CliStructuredError(\"CONFIG.CONTRACT_MISSING\", \"Contract configuration missing\", {\n\t\twhy: options?.why ?? \"The contract configuration is required for emit\",\n\t\tfix: \"Add contract configuration to your prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.CONTRACT_MISSING\")\n\t});\n}\n/**\n* Contract validation failed.\n*/\nfunction errorContractValidationFailed(reason, options) {\n\treturn new CliStructuredError(\"CONTRACT.VALIDATION_FAILED\", \"Contract validation failed\", {\n\t\twhy: reason,\n\t\tfix: `If an earlier release emitted this contract, follow the app upgrade instructions of each release since, which rewrite the contract and its migration snapshots: ${APP_UPGRADE_GUIDES_URL}. If this release emitted it, re-run \\`{bin} contract emit\\`, or fix the contract file if you edited it, and try again`,\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"open-url\",\n\t\t\t\tlabel: \"If an earlier release emitted the contract, follow the app upgrade instructions\",\n\t\t\t\turl: APP_UPGRADE_GUIDES_URL\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"If this release emitted the contract, re-emit it\",\n\t\t\t\tcommand: \"{bin} contract emit\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"edit-file\",\n\t\t\t\tlabel: \"Fix the contract file, then re-run the command\",\n\t\t\t\treason\n\t\t\t}\n\t\t],\n\t\tdocsUrl: docsUrlFor(\"CONTRACT.VALIDATION_FAILED\"),\n\t\t...options?.where ? { where: options.where } : {},\n\t\t...ifDefined(\"cause\", options?.cause),\n\t\t...ifDefined(\"meta\", options?.meta)\n\t});\n}\n/**\n* File not found.\n*/\nfunction errorFileNotFound(filePath, options) {\n\treturn new CliStructuredError(\"CLI.FILE_NOT_FOUND\", \"File not found\", {\n\t\twhy: options?.why ?? `File not found: ${filePath}`,\n\t\tfix: options?.fix ?? \"Check that the file path is correct\",\n\t\twhere: { path: filePath },\n\t\t...options?.docsUrl ? { docsUrl: options.docsUrl } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/**\n* Database connection is required but not provided.\n*/\nfunction errorDatabaseConnectionRequired(options) {\n\tconst runHint = options?.retryCommand ? `Run \\`${options.retryCommand}\\`` : options?.commandName ? `Run \\`{bin} ${options.commandName} --db <url>\\`` : \"Provide `--db <url>`\";\n\treturn new CliStructuredError(\"CONFIG.DB_CONNECTION_REQUIRED\", \"Database connection is required\", {\n\t\twhy: options?.why ?? \"Database connection is required for this command\",\n\t\tfix: `${runHint}, or set \\`db: { connection: \"postgres://…\" }\\` in prisma.config.ts`,\n\t\t...options?.missingFlags !== void 0 ? { meta: { missingFlags: [...options.missingFlags] } } : {}\n\t});\n}\n/**\n* Query runner factory is required but not provided in config.\n*/\nfunction errorQueryRunnerFactoryRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\", \"Query runner factory is required\", {\n\t\twhy: options?.why ?? \"Config.db.queryRunnerFactory is required for db verify\",\n\t\tfix: \"Add db.queryRunnerFactory to prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.QUERY_RUNNER_FACTORY_REQUIRED\")\n\t});\n}\n/**\n* Family verify.readMarker is required but not provided.\n*/\nfunction errorFamilyReadMarkerSqlRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\", \"Family readMarker() is required\", {\n\t\twhy: options?.why ?? \"Family verify.readMarker is required for db verify\",\n\t\tfix: \"Ensure family.verify.readMarker() is exported by your family package\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.FAMILY_READ_MARKER_REQUIRED\")\n\t});\n}\n/**\n* JSON output format not supported.\n*/\nfunction errorJsonFormatNotSupported(options) {\n\treturn new CliStructuredError(\"CLI.JSON_FORMAT_UNSUPPORTED\", \"Unsupported JSON format\", {\n\t\twhy: `The ${options.command} command does not support --json ${options.format}`,\n\t\tfix: `Use --json ${options.supportedFormats.join(\" or \")}, or omit --json for human output`,\n\t\tmeta: {\n\t\t\tcommand: options.command,\n\t\t\tformat: options.format,\n\t\t\tsupportedFormats: options.supportedFormats\n\t\t}\n\t});\n}\n/**\n* Driver is required for DB-connected commands but not provided.\n*/\nfunction errorDriverRequired(options) {\n\treturn new CliStructuredError(\"CONFIG.DRIVER_REQUIRED\", \"Driver is required for DB-connected commands\", {\n\t\twhy: options?.why ?? \"Config.driver is required for DB-connected commands\",\n\t\tfix: \"Add a control-plane driver to prisma.config.ts (e.g. import a driver descriptor and set `driver: postgresDriver`)\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.DRIVER_REQUIRED\")\n\t});\n}\n/**\n* Contract requires extension packs that are not provided by config descriptors.\n*/\nfunction errorContractMissingExtensions(options) {\n\tconst missing = [...options.missingExtensions].sort();\n\treturn new CliStructuredError(\"CONFIG.MISSING_EXTENSION_PACKS\", \"Missing extension packs in config\", {\n\t\twhy: missing.length === 1 ? `Contract requires extension pack '${missing[0]}', but CLI config does not provide a matching descriptor.` : `Contract requires extension packs ${missing.map((p) => `'${p}'`).join(\", \")}, but CLI config does not provide matching descriptors.`,\n\t\tfix: \"Add the missing extension descriptors to `extensions` in prisma.config.ts\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.MISSING_EXTENSION_PACKS\"),\n\t\tmeta: {\n\t\t\tmissingExtensions: missing,\n\t\t\tprovidedComponentIds: [...options.providedComponentIds].sort()\n\t\t}\n\t});\n}\nfunction locationJson(location) {\n\tif (location.namespaceId !== UNBOUND_NAMESPACE_ID) return location;\n\tconst { namespaceId: _unbound, ...rest } = location;\n\treturn rest;\n}\nfunction conflictJson(conflict) {\n\treturn {\n\t\t...conflict,\n\t\t...conflict.location === void 0 ? {} : { location: locationJson(conflict.location) },\n\t\t...conflict.refusedStatement === void 0 ? {} : { refusedStatement: migrationStatementJson(conflict.refusedStatement) }\n\t};\n}\n/**\n* Migration planning failed due to conflicts.\n*/\nfunction errorMigrationPlanningFailed(options) {\n\tconst conflictSummaries = options.conflicts.map((c) => c.summary);\n\tconst computedWhy = options.why ?? conflictSummaries.join(\"\\n\");\n\tconst conflictFixes = options.conflicts.map((c) => c.why).filter((why) => typeof why === \"string\");\n\treturn new CliStructuredError(\"MIGRATION.PLANNING_FAILED\", \"Migration planning failed\", {\n\t\twhy: computedWhy,\n\t\tfix: conflictFixes.length > 0 ? conflictFixes.join(\"\\n\") : \"Use `db verify --schema-only` to inspect conflicts, or ensure the database is empty\",\n\t\tmeta: { conflicts: options.conflicts.map(conflictJson) },\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.PLANNING_FAILED\")\n\t});\n}\n/**\n* Target does not support migrations (missing createPlanner/createRunner).\n*/\nfunction errorTargetMigrationNotSupported(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_UNSUPPORTED\", \"Target does not support migrations\", {\n\t\twhy: options?.why ?? \"The configured target does not provide migration planner/runner\",\n\t\tfix: \"Select a target that provides migrations (it must export `target.migrations` for db init)\",\n\t\tdocsUrl: docsUrlFor(\"MIGRATION.TARGET_UNSUPPORTED\")\n\t});\n}\n/**\n* Without `--config`, the migration-file CLI found no config whose migrations directory holds the migration.\n*/\nfunction errorMigrationCliConfigNotFound(options) {\n\tconst rule = `Without --config, a migration.ts uses the prisma.config.ts whose migrations directory holds it: the nearest one above ${options.migrationDir}, else the one in the working directory.`;\n\tconst found = options.checked.map(({ configPath, migrationsDir, loadFailure }) => loadFailure === void 0 ? `${configPath} keeps migrations in ${migrationsDir}` : `${configPath} failed to load (${loadFailure})`);\n\treturn new CliStructuredError(\"CLI.MIGRATION_CONFIG_NOT_FOUND\", \"No config found for this migration\", {\n\t\twhy: found.length === 0 ? `${rule} There is neither.` : `${rule} None of them does: ${found.join(\"; \")}.`,\n\t\tfix: \"Run it again with `--config <path to the config of the project this migration belongs to>`.\",\n\t\tmeta: {\n\t\t\tmigrationDir: options.migrationDir,\n\t\t\tchecked: options.checked.map(({ configPath }) => configPath)\n\t\t}\n\t});\n}\n/**\n* The migration-file CLI received `--config` without a path argument (either\n* a bare trailing `--config`, or `--config` followed by another flag like\n* `--config --dry-run`). Surfacing this as a structured error fails fast\n* rather than silently consuming the next flag as the config path or\n* falling back to default discovery against the wrong project.\n*/\nfunction errorMigrationCliInvalidConfigArg(options) {\n\treturn new CliStructuredError(\"CLI.CONFIG_ARG_MISSING_PATH\", \"--config flag requires a path argument\", {\n\t\twhy: options?.nextToken !== void 0 ? `\\`--config\\` was followed by another flag (\\`${options.nextToken}\\`) instead of a path argument.` : \"`--config` was passed without a following path argument.\",\n\t\tfix: \"Pass a config path: `--config <path>` or `--config=<path>`.\",\n\t\tmeta: options?.nextToken !== void 0 ? { nextToken: options.nextToken } : {}\n\t});\n}\n/**\n* The migration-file CLI received a flag it does not recognise. Surfaced as a\n* structured error so consumers can render their own \"did you mean\"\n* suggestions from `meta.knownFlags` rather than parsing the message.\n*\n* Designed to wrap clipanion's `UnknownSyntaxError` at the parser boundary:\n* pass the offending token as `flag` and the option declarations as\n* `knownFlags`.\n*/\nfunction errorMigrationCliUnknownFlag(options) {\n\tconst knownList = options.knownFlags.join(\", \");\n\treturn new CliStructuredError(\"CLI.UNKNOWN_FLAG\", \"Unknown migration CLI flag\", {\n\t\twhy: `Unknown flag \\`${options.flag}\\`.`,\n\t\tfix: `Known flags: ${knownList}. Run with \\`--help\\` to see the full list.`,\n\t\tmeta: {\n\t\t\tflag: options.flag,\n\t\t\tknownFlags: options.knownFlags\n\t\t}\n\t});\n}\n/**\n* The main CLI received an unsupported `--format` value.\n*/\nfunction errorInvalidOutputFormat(value) {\n\treturn new CliStructuredError(\"CLI.INVALID_OUTPUT_FORMAT\", `Invalid --format value \"${value}\". Allowed values: pretty, json.`, { meta: {\n\t\tvalue,\n\t\tallowed: [\"pretty\", \"json\"]\n\t} });\n}\n/**\n* The main CLI received mutually exclusive output format flags\n* (`--format pretty` together with `--json`).\n*/\nfunction errorOutputFormatMutex() {\n\treturn new CliStructuredError(\"CLI.OUTPUT_FORMAT_CONFLICT\", \"Cannot use --format pretty together with --json. Use --format json or --json alone for JSON output.\");\n}\n/**\n* Config validation error (missing required fields).\n*/\nfunction errorConfigValidation(field, options) {\n\treturn new CliStructuredError(\"CONFIG.VALIDATION_FAILED\", \"Config validation error\", {\n\t\twhy: options?.why ?? `Config must have a \"${field}\" field`,\n\t\tfix: \"Check your prisma.config.ts and ensure all required fields are provided\",\n\t\tdocsUrl: docsUrlFor(\"CONFIG.VALIDATION_FAILED\"),\n\t\tmeta: {\n\t\t\tfield,\n\t\t\t...options?.section !== void 0 ? { section: options.section } : {}\n\t\t}\n\t});\n}\n/**\n* An enum declares a codecId that no component in the contract's pack stack provides,\n* so its member values cannot be encoded. Thrown by both authoring paths (TS `defineContract`\n* and PSL interpretation) when the codec lookup built from the contract's packs has no\n* descriptor for the codecId.\n*/\nfunction errorEnumCodecNotInPackStack(options) {\n\treturn new CliStructuredError(\"CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK\", `Enum codec \"${options.codecId}\" is not part of the contract's pack stack`, {\n\t\twhy: `An enum uses codec \"${options.codecId}\", but no family, target, or extension pack in the contract provides it.`,\n\t\tfix: \"Use a codec provided by the contract's target/extension packs, or add the pack that supplies this codec.\",\n\t\tmeta: { codecId: options.codecId }\n\t});\n}\n/**\n* Generic unexpected error.\n*/\nfunction errorUnexpected(message, options) {\n\treturn new CliStructuredError(\"CLI.UNEXPECTED\", \"Unexpected error\", {\n\t\twhy: options?.why ?? message,\n\t\tfix: options?.fix ?? \"Check the error message and try again\",\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorUnexpected as C, errorTargetMigrationNotSupported as S, errorMigrationCliInvalidConfigArg as _, errorConfigVersionMarkerMissing as a, errorOutputFormatMutex as b, errorContractValidationFailed as c, errorEnumCodecNotInPackStack as d, errorFamilyReadMarkerSqlRequired as f, errorMigrationCliConfigNotFound as g, errorJsonFormatNotSupported as h, errorConfigValidation as i, errorDatabaseConnectionRequired as l, errorInvalidOutputFormat as m, errorConfigEvaluationFailed as n, errorContractConfigMissing as o, errorFileNotFound as p, errorConfigFileNotFound as r, errorContractMissingExtensions as s, CliStructuredError as t, errorDriverRequired as u, errorMigrationCliUnknownFlag as v, UPGRADE_GUIDES_URL as w, errorQueryRunnerFactoryRequired as x, errorMigrationPlanningFailed as y };\n\n//# sourceMappingURL=control-Bv8UK63M.mjs.map"],"mappings":";;;;;;AAMA,MAAM,qBAAqB;;AAE3B,MAAM,yBAAyB,GAAG,mBAAmB;;;;;;;;;;;;AAcrD,I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Statement } from "./control-ChAUqscy.mjs";
|
|
2
2
|
import { a as StructuredError, i as NextAction, r as Diagnostic } from "./structured-error-Cc7AIRsp.mjs";
|
|
3
3
|
//#region ../../../1-framework/1-core/errors/dist/control-C_zs63JQ.d.mts
|
|
4
4
|
//#region src/control.d.ts
|
|
@@ -268,4 +268,4 @@ declare function errorUnexpected(message: string, options?: {
|
|
|
268
268
|
}): CliStructuredError;
|
|
269
269
|
//#endregion
|
|
270
270
|
export { errorOutputFormatMutex as C, errorUnexpected as E, errorMigrationPlanningFailed as S, errorTargetMigrationNotSupported as T, errorInvalidOutputFormat as _, errorConfigEvaluationFailed as a, errorMigrationCliInvalidConfigArg as b, errorConfigVersionMarkerMissing as c, errorContractValidationFailed as d, errorDatabaseConnectionRequired as f, errorFileNotFound as g, errorFamilyReadMarkerSqlRequired as h, CliStructuredError as i, errorContractConfigMissing as l, errorEnumCodecNotInPackStack as m, CliErrorConflict as n, errorConfigFileNotFound as o, errorDriverRequired as p, CliErrorEnvelope as r, errorConfigValidation as s, CheckedMigrationConfig as t, errorContractMissingExtensions as u, errorJsonFormatNotSupported as v, errorQueryRunnerFactoryRequired as w, errorMigrationCliUnknownFlag as x, errorMigrationCliConfigNotFound as y };
|
|
271
|
-
//# sourceMappingURL=control-C_zs63JQ-
|
|
271
|
+
//# sourceMappingURL=control-C_zs63JQ-ClziGCnK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-C_zs63JQ-
|
|
1
|
+
{"version":3,"file":"control-C_zs63JQ-ClziGCnK.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-C_zs63JQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;WACA;WACA;WACA;WACA;WACA,sBAAsB;WACtB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;WAEA,mBAAmB;;WAEnB,WAAW,SAAS;aAClB;;;;;;;;;;;;;;cAcC,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA,uBAAuB;WACvB,uBAAuB;WACvB;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA,uBAAuB;aACvB,uBAAuB;aACvB;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;;;;EAQX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,4BAA4B,gCAAgC;WAClE;WACA;IACP;;;;;;iBAMa,gCAAgC,sBAAsB;;;;iBAItD,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;;WAEA,OAAO;IACd;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;UAEM;WACC;WACA;WACA;;;;;iBAKM,gCAAgC;WACtC;WACA,kBAAkB;IACzB;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;WACA;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA,OAAO;WACP;IACP"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { T as ContractWithDomain, U as NamespaceId, V as LedgerEntryRecord, m as ContractMarkerRecord } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { i as ControlPolicy, t as Contract } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
|
|
3
3
|
import { _ as DataType, h as CodecRegistry, t as AnyCodecDescriptor, v as DataTypeId, y as DataTypeLookup } from "./codec-types-BNVa23xn-DLZmMFiC.mjs";
|
|
4
|
-
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, N as DataTypeAuthoringEntry, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, r as AuthoringAttributeSpecContributions, u as AuthoringEntityTypeNamespace } from "./framework-authoring-
|
|
5
|
-
import {
|
|
4
|
+
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, N as DataTypeAuthoringEntry, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, r as AuthoringAttributeSpecContributions, u as AuthoringEntityTypeNamespace } from "./framework-authoring-DmU1d8-I-CkAim7c8.mjs";
|
|
5
|
+
import { t as AssembledControlMutationDefaults } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
|
|
6
6
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
7
|
-
import { n as DataTypeSupport } from "./written-value-
|
|
7
|
+
import { a as FieldPresetsByCodecAndGenerator, n as DataTypeSupport } from "./written-value-aEELSm_V-BtFVjTrj.mjs";
|
|
8
8
|
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-BlKcW9tz-BxhTG7Oc.mjs";
|
|
9
9
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
10
|
-
import { a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, y as TargetDescriptor } from "./framework-components-
|
|
10
|
+
import { a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, y as TargetDescriptor } from "./framework-components-DIZJ4Jpy-DJwI95w-.mjs";
|
|
11
11
|
import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-4eOAB7Fb-B-L5H9gM.mjs";
|
|
12
|
-
import { f as PslDocumentAst } from "./psl-ast-
|
|
12
|
+
import { f as PslDocumentAst } from "./psl-ast-Da2RnM7t-BTLOxBh5.mjs";
|
|
13
13
|
import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
|
|
14
14
|
import { n as JsonObject } from "./json-Dkqr3say.mjs";
|
|
15
15
|
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-Cd9oGzy7-2SoDBziD.mjs";
|
|
@@ -128,8 +128,19 @@ interface SchemaDiffIssue<TNode extends DiffableNode = DiffableNode> {
|
|
|
128
128
|
* (the dependency is satisfied by reality).
|
|
129
129
|
*/
|
|
130
130
|
readonly dependsOn?: readonly (readonly string[])[];
|
|
131
|
-
/** Why the actual node is not equal to the expected one,
|
|
132
|
-
readonly explanation?:
|
|
131
|
+
/** Why the actual node is not equal to the expected one, when the expected node can say. Not an outcome: read that with `issueOutcome`. */
|
|
132
|
+
readonly explanation?: MismatchExplanation;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The cause of a mismatch the expected node can name: the two sides hold different values
|
|
136
|
+
* (`differs`), or the database may hold the expected value in a form of its own, so the two may
|
|
137
|
+
* mean the same (`possibly-equivalent`). A tool that chooses actions from the cause maps every value.
|
|
138
|
+
*/
|
|
139
|
+
type MismatchCause = 'differs' | 'possibly-equivalent';
|
|
140
|
+
interface MismatchExplanation {
|
|
141
|
+
/** The explanation as text for people. */
|
|
142
|
+
readonly text: string;
|
|
143
|
+
readonly cause: MismatchCause;
|
|
133
144
|
}
|
|
134
145
|
/**
|
|
135
146
|
* The three ways an actual state can fail an expectation: it lacks a node that
|
|
@@ -183,7 +194,7 @@ interface DiffableNode {
|
|
|
183
194
|
* the two values, such as an expected value the node's type refuses. Called after `isEqualTo`
|
|
184
195
|
* returned false, and with `undefined` when the actual side has no such node.
|
|
185
196
|
*/
|
|
186
|
-
explainMismatch?(actual: DiffableNode | undefined):
|
|
197
|
+
explainMismatch?(actual: DiffableNode | undefined): MismatchExplanation | undefined;
|
|
187
198
|
children(): readonly DiffableNode[];
|
|
188
199
|
}
|
|
189
200
|
/**
|
|
@@ -1397,7 +1408,9 @@ interface ControlStack<TFamilyId extends string = string, TTargetId extends stri
|
|
|
1397
1408
|
}>;
|
|
1398
1409
|
/** Names of the top-level zero-arg type constructors in the assembled authoring namespace — the base scalars of the composed stack. */
|
|
1399
1410
|
readonly scalarTypes: ReadonlyArray<string>;
|
|
1400
|
-
readonly controlMutationDefaults:
|
|
1411
|
+
readonly controlMutationDefaults: AssembledControlMutationDefaults;
|
|
1412
|
+
/** For each codec, the field preset `contract print` writes a column of it with each generator. */
|
|
1413
|
+
readonly fieldPresetsByCodecAndGenerator: FieldPresetsByCodecAndGenerator;
|
|
1401
1414
|
readonly capabilities: CapabilityMatrix;
|
|
1402
1415
|
}
|
|
1403
1416
|
interface CreateControlStackInput<TFamilyId extends string = string, TTargetId extends string = string> {
|
|
@@ -1475,7 +1488,7 @@ interface ContributedConstructor {
|
|
|
1475
1488
|
declare function enforceDataTypeInvariants(input: DataTypeInvariantInput): void;
|
|
1476
1489
|
declare function assembleControlMutationDefaults(descriptors: ReadonlyArray<Pick<ComponentMetadata, 'controlMutationDefaults'> & {
|
|
1477
1490
|
readonly id?: string;
|
|
1478
|
-
}>):
|
|
1491
|
+
}>): AssembledControlMutationDefaults;
|
|
1479
1492
|
declare function extractCodecLookup(descriptors: ReadonlyArray<Pick<ComponentMetadata & {
|
|
1480
1493
|
id: string;
|
|
1481
1494
|
}, 'types' | 'id'>>): CodecRegistry;
|
|
@@ -1792,5 +1805,5 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
|
|
|
1792
1805
|
*/
|
|
1793
1806
|
declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
|
|
1794
1807
|
//#endregion
|
|
1795
|
-
export { MigrationRunner as $,
|
|
1796
|
-
//# sourceMappingURL=control-
|
|
1808
|
+
export { MigrationRunner as $, VERIFY_CODE_SCHEMA_FAILURE as $t, FailedTypeChange as A, isRenameStatement as An, ResolvedRenameStatement as At, MigrationOperationClass as B, sameMarkerHashes as Bn, SchemaTreeVisitor as Bt, DiffSubjectGranularity as C, fieldStatementText as Cn, PslContractInferCapable as Ct, FailedCast as D, hasPslContractInfer as Dn, ResolvedFieldRenameStatement as Dt, ExpectationFailureReason as E, hasPslContractBuild as En, ResolvedFieldConvertStatement as Et, MigratableTargetDescriptor as F, migrationSubjectKey as Fn, SchemaNodeRef as Ft, MigrationPlanOperation as G, SchemaViewNodeKind as Gt, MigrationOperationSubject as H, SchemaVerifyOptions as Ht, MigrationAccessChange as I, modelDisplayName as In, SchemaOwnership as It, MigrationPlanner as J, SpaceSigned as Jt, MigrationPlanSubjects as K, SpaceMarkerConflict as Kt, MigrationDataLoss as L, modelStatementText as Ln, SchemaSubjectClassifierCapable as Lt, FieldCoordinateJson as M, issueOutcome as Mn, SchemaDiff as Mt, IntrospectSchemaResult as N, migrationStatementJson as Nn, SchemaDiffIssue as Nt, FailedCheck as O, hasSchemaSubjectClassifier as On, ResolvedMigrationStatement as Ot, MarkerHashes as P, migrationSubjectJson as Pn, SchemaEntityCoordinate as Pt, MigrationPlannerSuccessResult as Q, VERIFY_CODE_MARKER_MISSING as Qt, MigrationDataLossKind as R, orderIssuesByDependencies as Rn, SchemaTreeNode as Rt, DataTypeInvariantInput as S, extractQueryOperationTypeImports as Sn, PslContractDocument as St, EmitContractResult as T, hasOperationPreview as Tn, ResolvedFieldBackfillStatement as Tt, MigrationPackage as U, SchemaVerifyResult as Ut, MigrationOperationPolicy as V, storageHashHex as Vn, SchemaVerifier as Vt, MigrationPlan as W, SchemaViewCapable as Wt, MigrationPlannerFailureResult as X, TargetMigrationsCapability as Xt, MigrationPlannerConflict as Y, SpaceToSign as Yt, MigrationPlannerResult as Z, VERIFY_CODE_HASH_MISMATCH as Zt, ControlStack as _, enforceDataTypeInvariants as _n, OperationPreview as _t, ContractSerializer as a, VerifyDatabaseSchemaResult as an, MigrationRunnerSuccessValue as at, CoreSchemaView as b, extractComponentIds as bn, PlanOrigin as bt, ControlAdapterDescriptor as c, assembleControlMutationDefaults as cn, MigrationSubject as ct, ControlDriverDescriptor as d, contractSnapshotJsonSpecifier as dn, MismatchCause as dt, VERIFY_CODE_TARGET_MISMATCH as en, MigrationRunnerExecutionChecks as et, ControlDriverInstance as f, contractSnapshotTypesSpecifier as fn, MismatchExplanation as ft, ControlFamilyInstance as g, dispositionForCategory as gn, OperationContext as gt, ControlFamilyDescriptor as h, diffSchemas as hn, OpFactoryCall as ht, CONTRACT_SNAPSHOTS_DIRNAME as i, VerifyDatabaseResult as in, MigrationRunnerResult as it, FieldCoordinate as j, isStorageHashHex as jn, RowsWithoutValue as jt, FailedConversion as k, hasSchemaView as kn, ResolvedModelRenameStatement as kt, ControlAdapterInstance as l, assertUniqueCodecOwner as ln, MigrationSubjectJson as lt, ControlExtensionInstance as m, describeMigrationStatement as mn, ModelCoordinateJson as mt, AppliedMigrationStatement as n, VerifierIssueCategory as nn, MigrationRunnerPerSpaceOptions as nt, ContractSpace as o, assembleAuthoringContributions as on, MigrationScaffoldContext as ot, ControlExtensionDescriptor as p, createControlStack as pn, ModelCoordinate as pt, MigrationPlanWithAuthoringSurface as q, SpaceSignature as qt, AssembledAuthoringContributions as r, VerifierOutcome as rn, MigrationRunnerPerSpaceSuccessValue as rt, ContractSpaceHeadRef as s, assembleAuthoringDataTypes as sn, MigrationStatementJson as st, APP_SPACE_ID as t, VerificationStatus as tn, MigrationRunnerFailure as tt, ControlDriverConnectOptions as u, buildExtensionLoadOrder as un, MigrationTemporaryValue as ut, ControlTargetDescriptor as v, extractCodecLookup as vn, OperationPreviewCapable as vt, DiffableNode as w, hasMigrations as wn, PslSourceSettings as wt, CreateControlStackInput as x, extractParameterizedOutputTypeImports as xn, PslContractBuildCapable as xt, ControlTargetInstance as y, extractCodecTypeImports as yn, OperationPreviewStatement as yt, MigrationMetadata as z, planOriginOf as zn, SchemaTreeNodeOptions as zt };
|
|
1809
|
+
//# sourceMappingURL=control-ChAUqscy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-ChAUqscy.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA+BU,mBAAmB;;;;;;;;;;;;EAY3B,oBAAoB,UAAU,YAAY,WAAW,gBAAgB;;;;;;;;;;EAUrE,kBAAkB,UAAU,YAAY;;;;;;;;WAQ/B,sBAAsB;;;;;;;;WAQtB,cAAc;;;;;;;;;;;;;;;WAed;aACE,sBAAsB;aACtB,cAAc;;;;;cAKb;;iBAEG,iBAAiB;;iBAEjB,eAAe;;iBAEf,8BAA8B,6BAA6B;;iBAE3D,+BAA+B,6BAA6B;;;;;;;;;;KAUxE;WACM;WACA;;UAED,gBAAgB,cAAc,eAAe;;WAE5C;;WAEA,WAAW;;WAEX,SAAS;;;;;;;;WAQT;;WAEA,cAAc;;;;;;;KAOpB;UACK;;WAEC;WACA,OAAO;;;;;;;;;;;;;;;;KAgBb;;;;;;;iBAOY,aAAa,OAAO,kBAAkB;;;;;;;;;;;;;;;UAe7C;WACC;WACA;;;;;;;WAOA,qBAAqB;EAC9B,UAAU,OAAO;;;;;;EAMjB,iBAAiB,Q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U,sBAAsB,WAAW,aAAa,YAAY,sBAAsB,WAAW,aAAa;;;;;;;;;;;;;KAavL;;;;;;;;;;;;;;;;;UAiBK;EACR,2BAA2B,OAAO,kBAAkB;EACpD,mBAAmB,OAAO;;iBAEX,2BAA2B,0BAA0B,WAAW,UAAU,sBAAsB,WAAW,aAAa,YAAY,sBAAsB,WAAW,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BlL,0BAA0B,cAAc,eAAe,cAAc,iBAAiB,gBAAgB,oBAAoB,gBAAgB;;;;;;;;;;;;;;;;;;UAkBjJ,eAAe,WAAW;EAClC,aAAa,SAAS,oBAAoB,WAAW,WAAW;;;;;;;;UAQxD,oBAAoB,WAAW;WAC9B,UAAU;WACV,QAAQ;;;;;;;;UAQT;WACC;WACA,iBAAiB;;;;KAIvB;KACA,kBAAkB;;;;;;;;;;;;;;;;;KAiBlB;;;;;;;;;;iBAUY,uBAAuB,eAAe,eAAe,UAAU,wBAAwB"}
|
|
@@ -5,7 +5,7 @@ import { n as runtimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
|
|
|
5
5
|
import { h as objectSchemaKeys, o as assembleDataTypes } from "./data-type-Yz-2OZh--ZEUqit-7.mjs";
|
|
6
6
|
import { n as codecDescriptorMissing, r as codecForRef } from "./resolve-codec-qqMjZrmn-Cok8elAo.mjs";
|
|
7
7
|
import { a as mergeCapabilityMatrices, n as isAggregateDescriptor, t as aggregateDescriptorKey } from "./capabilities-Cn-Kepnv-B8FOAyUu.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { D as mergeAuthoringNamespaces, E as mergeAuthoringAttributeSpecs, T as isAuthoringTypeConstructorDescriptor, a as assembleFieldPresetsByCodecAndGenerator, d as collectScalarTypeConstructors, o as assertNoCrossRegistryCollisions, s as assertResolvableTypeConstructorTemplates, u as collectContributedDescriptorPaths, x as isAuthoringFieldPresetDescriptor, y as isAuthoringArgRef } from "./temporal-presets-woCv6gic-DW1VcyKs.mjs";
|
|
9
9
|
//#region ../../../1-framework/1-core/framework-components/dist/control.mjs
|
|
10
10
|
const CONTRACT_SNAPSHOTS_DIRNAME = "snapshots";
|
|
11
11
|
const STORAGE_HASH_PATTERN = /^[0-9a-f]{64}$/;
|
|
@@ -327,27 +327,40 @@ function assembleControlMutationDefaults(descriptors) {
|
|
|
327
327
|
const defaultFunctionRegistry = /* @__PURE__ */ new Map();
|
|
328
328
|
const functionOwners = /* @__PURE__ */ new Map();
|
|
329
329
|
const generatorMap = /* @__PURE__ */ new Map();
|
|
330
|
-
const
|
|
330
|
+
const componentIdsByGenerator = /* @__PURE__ */ new Map();
|
|
331
|
+
const defaultFunctionPrintersByGenerator = /* @__PURE__ */ new Map();
|
|
332
|
+
const printerOwners = /* @__PURE__ */ new Map();
|
|
331
333
|
for (const descriptor of descriptors) {
|
|
332
334
|
const contributions = descriptor.controlMutationDefaults;
|
|
333
335
|
if (!contributions) continue;
|
|
334
336
|
const descriptorId = descriptor.id ?? "<unknown>";
|
|
335
337
|
for (const generatorDescriptor of contributions.generatorDescriptors) {
|
|
336
|
-
|
|
337
|
-
if (existingOwner !== void 0) throw new InternalError(`Duplicate mutation default generator id "${generatorDescriptor.id}". Descriptor "${descriptorId}" conflicts with "${existingOwner}".`);
|
|
338
|
+
if (generatorMap.has(generatorDescriptor.id)) throw new InternalError(`Duplicate mutation default generator id "${generatorDescriptor.id}". Descriptor "${descriptorId}" conflicts with "${componentIdsByGenerator.get(generatorDescriptor.id) ?? "<unknown>"}".`);
|
|
338
339
|
generatorMap.set(generatorDescriptor.id, generatorDescriptor);
|
|
339
|
-
|
|
340
|
+
componentIdsByGenerator.set(generatorDescriptor.id, descriptor.id);
|
|
340
341
|
}
|
|
341
342
|
for (const [functionName, handler] of contributions.defaultFunctionRegistry) {
|
|
342
343
|
const existingOwner = functionOwners.get(functionName);
|
|
343
344
|
if (existingOwner !== void 0) throw new InternalError(`Duplicate mutation default function "${functionName}". Descriptor "${descriptorId}" conflicts with "${existingOwner}".`);
|
|
344
345
|
defaultFunctionRegistry.set(functionName, handler);
|
|
345
346
|
functionOwners.set(functionName, descriptorId);
|
|
347
|
+
for (const [generatorId, printArguments] of Object.entries(handler.printArguments ?? {})) {
|
|
348
|
+
const existingPrinter = defaultFunctionPrintersByGenerator.get(generatorId);
|
|
349
|
+
if (existingPrinter !== void 0) throw runtimeError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Duplicate PSL call for mutation default generator "${generatorId}". Function "${functionName}" from "${descriptorId}" conflicts with function "${existingPrinter.functionName}" from "${printerOwners.get(generatorId)}".`);
|
|
350
|
+
defaultFunctionPrintersByGenerator.set(generatorId, {
|
|
351
|
+
functionName,
|
|
352
|
+
printArguments
|
|
353
|
+
});
|
|
354
|
+
printerOwners.set(generatorId, descriptorId);
|
|
355
|
+
}
|
|
346
356
|
}
|
|
347
357
|
}
|
|
358
|
+
for (const [generatorId, printer] of defaultFunctionPrintersByGenerator) if (!generatorMap.has(generatorId)) throw runtimeError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Mutation default function "${printer.functionName}" from "${printerOwners.get(generatorId)}" writes a PSL call for generator "${generatorId}", which no generator descriptor in the stack registers.`);
|
|
348
359
|
return {
|
|
349
360
|
defaultFunctionRegistry,
|
|
350
|
-
generatorDescriptors: Array.from(generatorMap.values())
|
|
361
|
+
generatorDescriptors: Array.from(generatorMap.values()),
|
|
362
|
+
defaultFunctionPrintersByGenerator,
|
|
363
|
+
componentIdsByGenerator
|
|
351
364
|
};
|
|
352
365
|
}
|
|
353
366
|
/**
|
|
@@ -548,6 +561,7 @@ function createControlStack(input) {
|
|
|
548
561
|
authoringContributions,
|
|
549
562
|
scalarTypes: [...collectScalarTypeConstructors(authoringContributions.type).keys()],
|
|
550
563
|
controlMutationDefaults: assembleControlMutationDefaults(allDescriptors),
|
|
564
|
+
fieldPresetsByCodecAndGenerator: assembleFieldPresetsByCodecAndGenerator(authoringContributions.field),
|
|
551
565
|
capabilities: mergeCapabilityMatrices({}, [
|
|
552
566
|
target,
|
|
553
567
|
...adapter ? [adapter] : [],
|
|
@@ -922,4 +936,4 @@ function dispositionForCategory(controlPolicy, category) {
|
|
|
922
936
|
//#endregion
|
|
923
937
|
export { hasPslContractInfer as A, modelStatementText as B, extractComponentIds as C, hasMigrations as D, fieldStatementText as E, issueOutcome as F, planOriginOf as H, migrationStatementJson as I, migrationSubjectJson as L, hasSchemaView as M, isRenameStatement as N, hasOperationPreview as O, isStorageHashHex as P, migrationSubjectKey as R, extractCodecTypeImports as S, extractQueryOperationTypeImports as T, sameMarkerHashes as U, orderIssuesByDependencies as V, storageHashHex as W, describeMigrationStatement as _, VERIFY_CODE_HASH_MISMATCH as a, enforceDataTypeInvariants as b, VERIFY_CODE_TARGET_MISMATCH as c, assembleControlMutationDefaults as d, assertUniqueCodecOwner as f, createControlStack as g, contractSnapshotTypesSpecifier as h, SchemaTreeNode as i, hasSchemaSubjectClassifier as j, hasPslContractBuild as k, assembleAuthoringContributions as l, contractSnapshotJsonSpecifier as m, CONTRACT_SNAPSHOTS_DIRNAME as n, VERIFY_CODE_MARKER_MISSING as o, buildExtensionLoadOrder as p, SchemaDiff as r, VERIFY_CODE_SCHEMA_FAILURE as s, APP_SPACE_ID as t, assembleAuthoringDataTypes as u, diffSchemas as v, extractParameterizedOutputTypeImports as w, extractCodecLookup as x, dispositionForCategory as y, modelDisplayName as z };
|
|
924
938
|
|
|
925
|
-
//# sourceMappingURL=control-
|
|
939
|
+
//# sourceMappingURL=control-EDGgvs_9.mjs.map
|