@prisma/orm-framework 8.0.0-rc.1-dev.21 → 8.0.0-rc.1-dev.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/config-types-BqhNxw0z.mjs +67 -0
  2. package/dist/config-types-BqhNxw0z.mjs.map +1 -0
  3. package/dist/{config-types-W-87vhZ4-DQk0SSmj.d.mts → config-types-gou0jUAD.d.mts} +19 -5
  4. package/dist/config-types-gou0jUAD.d.mts.map +1 -0
  5. package/dist/config-validation-DPt5hwQx.mjs +168 -0
  6. package/dist/config-validation-DPt5hwQx.mjs.map +1 -0
  7. package/dist/config-validation-Wiqew2J9.d.mts +21 -0
  8. package/dist/config-validation-Wiqew2J9.d.mts.map +1 -0
  9. package/dist/config.d.mts +3 -4
  10. package/dist/config.mjs +3 -3
  11. package/dist/config__config-types.d.mts +2 -3
  12. package/dist/config__config-types.mjs +2 -2
  13. package/dist/config__config-validation.d.mts +2 -2
  14. package/dist/config__config-validation.mjs +2 -2
  15. package/dist/{control-CwRPkRJ7-Dk0c6D_5.d.mts → control-BWHddgfQ-CHZkHCnz.d.mts} +17 -3
  16. package/dist/control-BWHddgfQ-CHZkHCnz.d.mts.map +1 -0
  17. package/dist/{control-NxsoLvV7-CEAZQk3h.mjs → control-C_8057XM-DMCFN-Wb.mjs} +33 -4
  18. package/dist/control-C_8057XM-DMCFN-Wb.mjs.map +1 -0
  19. package/dist/errors.d.mts +4 -4
  20. package/dist/errors.mjs +4 -4
  21. package/dist/errors__control.d.mts +2 -2
  22. package/dist/errors__control.mjs +2 -2
  23. package/dist/errors__execution.d.mts +1 -1
  24. package/dist/errors__execution.mjs +1 -1
  25. package/dist/errors__migration.d.mts +1 -1
  26. package/dist/errors__migration.mjs +1 -1
  27. package/dist/{execution-D1Tn68OX.mjs → execution-BRMViM_W.mjs} +2 -2
  28. package/dist/{execution-D1Tn68OX.mjs.map → execution-BRMViM_W.mjs.map} +1 -1
  29. package/dist/{execution-D_ARq2Yb.d.mts → execution-CStuUgUf.d.mts} +2 -2
  30. package/dist/{execution-D_ARq2Yb.d.mts.map → execution-CStuUgUf.d.mts.map} +1 -1
  31. package/dist/{migration-Ds6n8w-H.mjs → migration-DdUmzx06.mjs} +2 -2
  32. package/dist/{migration-Ds6n8w-H.mjs.map → migration-DdUmzx06.mjs.map} +1 -1
  33. package/dist/{migration-C02YXQMR.d.mts → migration-dka5vLtm.d.mts} +2 -2
  34. package/dist/{migration-C02YXQMR.d.mts.map → migration-dka5vLtm.d.mts.map} +1 -1
  35. package/dist/psl-parser__interpret.d.mts +1 -2
  36. package/dist/psl-parser__interpret.d.mts.map +1 -1
  37. package/package.json +15 -15
  38. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs +0 -9
  39. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs.map +0 -1
  40. package/dist/config-types-C9MZ-mH9.d.mts +0 -1
  41. package/dist/config-types-Cf9lVsHR.mjs +0 -62
  42. package/dist/config-types-Cf9lVsHR.mjs.map +0 -1
  43. package/dist/config-types-W-87vhZ4-DQk0SSmj.d.mts.map +0 -1
  44. package/dist/config-validation-9rldVCTn.d.mts +0 -14
  45. package/dist/config-validation-9rldVCTn.d.mts.map +0 -1
  46. package/dist/config-validation-ByGTw6zQ.mjs +0 -99
  47. package/dist/config-validation-ByGTw6zQ.mjs.map +0 -1
  48. package/dist/control-CwRPkRJ7-Dk0c6D_5.d.mts.map +0 -1
  49. package/dist/control-NxsoLvV7-CEAZQk3h.mjs.map +0 -1
package/dist/errors.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as errorOutputFormatMutex, a as errorContractMissingExtensions, b as errorUnexpected, c as errorDriverRequired, d as errorFileNotFound, f as errorInvalidOutputFormat, g as errorMigrationPlanningFailed, h as errorMigrationCliUnknownFlag, i as errorContractConfigMissing, l as errorEnumCodecNotInPackStack, m as errorMigrationCliInvalidConfigArg, n as errorConfigFileNotFound, o as errorContractValidationFailed, p as errorJsonFormatNotSupported, r as errorConfigValidation, s as errorDatabaseConnectionRequired, t as CliStructuredError, u as errorFamilyReadMarkerSqlRequired, v as errorQueryRunnerFactoryRequired, y as errorTargetMigrationNotSupported } from "./control-NxsoLvV7-CEAZQk3h.mjs";
2
- import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-D1Tn68OX.mjs";
3
- import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-Ds6n8w-H.mjs";
4
- export { CliStructuredError, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
1
+ import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigVersionMarkerMissing, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigValidation, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as errorConfigEvaluationFailed, o as errorContractConfigMissing, p as errorFileNotFound, r as errorConfigFileNotFound, s as errorContractMissingExtensions, t as CliStructuredError, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-C_8057XM-DMCFN-Wb.mjs";
2
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-BRMViM_W.mjs";
3
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-DdUmzx06.mjs";
4
+ export { CliStructuredError, ERROR_CODE_DESTRUCTIVE_CHANGES, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDestructiveChanges, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -1,2 +1,2 @@
1
- import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigValidation, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigFileNotFound, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as CliErrorEnvelope, o as errorContractConfigMissing, p as errorFileNotFound, r as CliStructuredError, s as errorContractMissingExtensions, t as CliErrorConflict, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-CwRPkRJ7-Dk0c6D_5.mjs";
2
- export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
1
+ import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorJsonFormatNotSupported, a as errorConfigFileNotFound, b as errorMigrationPlanningFailed, c as errorContractConfigMissing, d as errorDatabaseConnectionRequired, f as errorDriverRequired, g as errorInvalidOutputFormat, h as errorFileNotFound, i as errorConfigEvaluationFailed, l as errorContractMissingExtensions, m as errorFamilyReadMarkerSqlRequired, n as CliErrorEnvelope, o as errorConfigValidation, p as errorEnumCodecNotInPackStack, r as CliStructuredError, s as errorConfigVersionMarkerMissing, t as CliErrorConflict, u as errorContractValidationFailed, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-BWHddgfQ-CHZkHCnz.mjs";
2
+ export { type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -1,2 +1,2 @@
1
- import { _ as errorOutputFormatMutex, a as errorContractMissingExtensions, b as errorUnexpected, c as errorDriverRequired, d as errorFileNotFound, f as errorInvalidOutputFormat, g as errorMigrationPlanningFailed, h as errorMigrationCliUnknownFlag, i as errorContractConfigMissing, l as errorEnumCodecNotInPackStack, m as errorMigrationCliInvalidConfigArg, n as errorConfigFileNotFound, o as errorContractValidationFailed, p as errorJsonFormatNotSupported, r as errorConfigValidation, s as errorDatabaseConnectionRequired, t as CliStructuredError, u as errorFamilyReadMarkerSqlRequired, v as errorQueryRunnerFactoryRequired, y as errorTargetMigrationNotSupported } from "./control-NxsoLvV7-CEAZQk3h.mjs";
2
- export { CliStructuredError, errorConfigFileNotFound, errorConfigValidation, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
1
+ import { S as errorUnexpected, _ as errorMigrationCliUnknownFlag, a as errorConfigVersionMarkerMissing, b as errorQueryRunnerFactoryRequired, c as errorContractValidationFailed, d as errorEnumCodecNotInPackStack, f as errorFamilyReadMarkerSqlRequired, g as errorMigrationCliInvalidConfigArg, h as errorJsonFormatNotSupported, i as errorConfigValidation, l as errorDatabaseConnectionRequired, m as errorInvalidOutputFormat, n as errorConfigEvaluationFailed, o as errorContractConfigMissing, p as errorFileNotFound, r as errorConfigFileNotFound, s as errorContractMissingExtensions, t as CliStructuredError, u as errorDriverRequired, v as errorMigrationPlanningFailed, x as errorTargetMigrationNotSupported, y as errorOutputFormatMutex } from "./control-C_8057XM-DMCFN-Wb.mjs";
2
+ export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
@@ -1,2 +1,2 @@
1
- import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-D_ARq2Yb.mjs";
1
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-CStuUgUf.mjs";
2
2
  export { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -1,2 +1,2 @@
1
- import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-D1Tn68OX.mjs";
1
+ import { a as errorMarkerReadFailed, c as errorRunnerFailed, d as errorTargetMismatch, f as parseMarkerRowSafely, i as errorMarkerMissing, l as errorRuntime, m as withMarkerReadErrorHandling, n as errorDestructiveChanges, o as errorMarkerRequired, p as rethrowMarkerReadError, r as errorHashMismatch, s as errorMarkerRowCorrupt, t as ERROR_CODE_DESTRUCTIVE_CHANGES, u as errorSchemaVerificationFailed } from "./execution-BRMViM_W.mjs";
2
2
  export { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
@@ -1,2 +1,2 @@
1
- import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-C02YXQMR.mjs";
1
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-dka5vLtm.mjs";
2
2
  export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
@@ -1,2 +1,2 @@
1
- import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-Ds6n8w-H.mjs";
1
+ import { a as errorMigrationTargetMismatch, i as errorMigrationPlanNotArray, n as errorMigrationFileMissing, o as errorUnfilledPlaceholder, r as errorMigrationInvalidDefaultExport, s as placeholder, t as errorDataTransformContractMismatch } from "./migration-DdUmzx06.mjs";
2
2
  export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
@@ -1,5 +1,5 @@
1
1
  import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
2
- import { t as CliStructuredError } from "./control-NxsoLvV7-CEAZQk3h.mjs";
2
+ import { t as CliStructuredError } from "./control-C_8057XM-DMCFN-Wb.mjs";
3
3
  //#region ../../../1-framework/1-core/errors/dist/execution.mjs
4
4
  /**
5
5
  * Contract marker not found in database.
@@ -169,4 +169,4 @@ function errorRuntime(code, summary, options) {
169
169
  //#endregion
170
170
  export { errorMarkerReadFailed as a, errorRunnerFailed as c, errorTargetMismatch as d, parseMarkerRowSafely as f, errorMarkerMissing as i, errorRuntime as l, withMarkerReadErrorHandling as m, errorDestructiveChanges as n, errorMarkerRequired as o, rethrowMarkerReadError as p, errorHashMismatch as r, errorMarkerRowCorrupt as s, ERROR_CODE_DESTRUCTIVE_CHANGES as t, errorSchemaVerificationFailed as u };
171
171
 
172
- //# sourceMappingURL=execution-D1Tn68OX.mjs.map
172
+ //# sourceMappingURL=execution-BRMViM_W.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-D1Tn68OX.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-NxsoLvV7.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `prisma-next db sign --db <url>` to sign the database\"\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`prisma-next db sign --db <url>\\` to write a fresh marker.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction isLegacyMarkerShapeReadError(message) {\n\tconst normalized = message.toLowerCase();\n\treturn normalized.includes(\"column \\\"space\\\" does not exist\") || normalized.includes(\"no such column: space\");\n}\nfunction errorLegacyMarkerShape(options) {\n\treturn errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \\`space\\` column). Prisma Next is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \\`${options.markerLocation}\\` and re-run \\`prisma-next db init\\` to reinitialise from a clean baseline.`, {\n\t\twhy: options.why,\n\t\tfix: \"Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `prisma-next db init` to recreate it with the current per-space schema.\",\n\t\tmeta: { runnerErrorCode: \"MIGRATION.LEGACY_MARKER_SHAPE\" },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tconst message = err instanceof Error ? err.message : String(err);\n\tif (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({\n\t\twhy: message,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `prisma-next db init` first to sign the database\"\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `prisma-next db update` to reconcile, or adjust your contract to match the database\",\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...options?.meta ? { meta: options.meta } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/** Error code for destructive changes that require explicit confirmation. */\nconst ERROR_CODE_DESTRUCTIVE_CHANGES = \"MIGRATION.DESTRUCTIVE_CHANGES\";\n/**\n* Destructive operations require explicit confirmation via -y/--yes.\n*/\nfunction errorDestructiveChanges(summary, options) {\n\treturn new CliStructuredError(ERROR_CODE_DESTRUCTIVE_CHANGES, summary, {\n\t\twhy: options?.why ?? \"Planned operations include destructive changes that require confirmation\",\n\t\tfix: options?.fix ?? \"Re-run with `-y` to apply, or use `--dry-run` to preview first\",\n\t\t...options?.meta ? { meta: options.meta } : {}\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;AAMA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;CACN,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,O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CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;EAC7C,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF;;AAEA,MAAM,iCAAiC;;;;AAIvC,SAAS,wBAAwB,SAAS,SAAS;CAClD,OAAO,IAAI,mBAAmB,gCAAgC,SAAS;EACtE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;CAC9C,CAAC;AACF;;;;AAIA,SAAS,aAAa,MAAM,SAAS,SAAS;CAC7C,OAAO,IAAI,mBAAmB,MAAM,SAAS;EAC5C,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
1
+ {"version":3,"file":"execution-BRMViM_W.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-C_8057XM.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `prisma-next db sign --db <url>` to sign the database\"\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`prisma-next db sign --db <url>\\` to write a fresh marker.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction isLegacyMarkerShapeReadError(message) {\n\tconst normalized = message.toLowerCase();\n\treturn normalized.includes(\"column \\\"space\\\" does not exist\") || normalized.includes(\"no such column: space\");\n}\nfunction errorLegacyMarkerShape(options) {\n\treturn errorRunnerFailed(`Legacy marker-table shape detected on ${options.markerLocation} (no \\`space\\` column). Prisma Next is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. Drop \\`${options.markerLocation}\\` and re-run \\`prisma-next db init\\` to reinitialise from a clean baseline.`, {\n\t\twhy: options.why,\n\t\tfix: \"Legacy marker-table shape detected. Drop `prisma_contract.marker` (Postgres) or `_prisma_marker` (SQLite) and re-run `prisma-next db init` to recreate it with the current per-space schema.\",\n\t\tmeta: { runnerErrorCode: \"MIGRATION.LEGACY_MARKER_SHAPE\" },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tconst message = err instanceof Error ? err.message : String(err);\n\tif (isLegacyMarkerShapeReadError(message)) throw errorLegacyMarkerShape({\n\t\twhy: message,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `prisma-next db init` first to sign the database\"\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `prisma-next db update` to reconcile, or adjust your contract to match the database\",\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Migration runner failed during execution.\n*/\nfunction errorRunnerFailed(summary, options) {\n\treturn new CliStructuredError(\"MIGRATION.RUNNER_FAILED\", summary, {\n\t\twhy: options?.why ?? \"Migration runner failed\",\n\t\tfix: options?.fix ?? \"Inspect the reported conflict and reconcile schema drift\",\n\t\t...options?.meta ? { meta: options.meta } : {},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n/** Error code for destructive changes that require explicit confirmation. */\nconst ERROR_CODE_DESTRUCTIVE_CHANGES = \"MIGRATION.DESTRUCTIVE_CHANGES\";\n/**\n* Destructive operations require explicit confirmation via -y/--yes.\n*/\nfunction errorDestructiveChanges(summary, options) {\n\treturn new CliStructuredError(ERROR_CODE_DESTRUCTIVE_CHANGES, summary, {\n\t\twhy: options?.why ?? \"Planned operations include destructive changes that require confirmation\",\n\t\tfix: options?.fix ?? \"Re-run with `-y` to apply, or use `--dry-run` to preview first\",\n\t\t...options?.meta ? { meta: options.meta } : {}\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { ERROR_CODE_DESTRUCTIVE_CHANGES, errorDestructiveChanges, errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRunnerFailed, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;AAMA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;CACN,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,OAAO,IAAI,mBAAmB,4BAA4B,iBAAiB;EAC1E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,GAAG,SAAS,aAAa,KAAK,KAAK,SAAS,WAAW,KAAK,IAAI,EAAE,MAAM;GACvE,GAAG,UAAU,YAAY,SAAS,QAAQ;GAC1C,GAAG,UAAU,UAAU,SAAS,MAAM;EACvC,EAAE,IAAI,CAAC;CACR,CAAC;AACF;;;;AAIA,SAAS,oBAAoB,UAAU,QAAQ,SAAS;CACvD,OAAO,IAAI,mBAAmB,4BAA4B,mBAAmB;EAC5E,KAAK,SAAS,OAAO,2DAA2D,SAAS,YAAY,OAAO;EAC5G,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,yCAAyC;EACrG,KAAK,QAAQ;EACb,KAAK,OAAO,QAAQ,eAAe,kBAAkB,QAAQ,MAAM;EACnE,MAAM,EAAE,OAAO,QAAQ,MAAM;EAC7B,GAAG,UAAU,SAAS,QAAQ,KAAK;CACpC,CAAC;AACF;;;;AAIA,SAAS,sBAAsB,SAAS;CACvC,OAAO,IAAI,mBAAmB,+BAA+B,gDAAgD;EAC5G,KAAK,QAAQ;EACb,KAAK,4BAA4B,QAAQ,eAAe,cAAc,QAAQ,MAAM;EACpF,MAAM,EAAE,OAAO,QAAQ,MAAM;EAC7B,GAAG,UAAU,SAAS,QAAQ,KAAK;CACpC,CAAC;AACF;AACA,SAAS,sBAAsB,KAAK;CACnC,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O;EACrB,KAAK,SAAS,OAAO;CACtB,CAAC;AACF;;;;;AAKA,SAAS,8BAA8B,SAAS;CAC/C,OAAO,IAAI,mBAAmB,uCAAuC,QAAQ,SAAS;EACrF,KAAK;EACL,KAAK;EACL,MAAM;GACL,oBAAoB,QAAQ;GAC5B,GAAG,UAAU,UAAU,QAAQ,MAAM;EACtC;CACD,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS,SAAS;CAC5C,OAAO,IAAI,mBAAmB,2BAA2B,SAAS;EACjE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;EAC7C,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF;;AAEA,MAAM,iCAAiC;;;;AAIvC,SAAS,wBAAwB,SAAS,SAAS;CAClD,OAAO,IAAI,mBAAmB,gCAAgC,SAAS;EACtE,KAAK,SAAS,OAAO;EACrB,KAAK,SAAS,OAAO;EACrB,GAAG,SAAS,OAAO,EAAE,MAAM,QAAQ,KAAK,IAAI,CAAC;CAC9C,CAAC;AACF;;;;AAIA,SAAS,aAAa,MAAM,SAAS,SAAS;CAC7C,OAAO,IAAI,mBAAmB,MAAM,SAAS;EAC5C,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,OAAO,SAAS,GAAG;EAChC,GAAG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { $ as SchemaDiffIssue, St as VerifyDatabaseSchemaResult } from "./control-tgMv-peQ.mjs";
2
- import { r as CliStructuredError } from "./control-CwRPkRJ7-Dk0c6D_5.mjs";
2
+ import { r as CliStructuredError } from "./control-BWHddgfQ-CHZkHCnz.mjs";
3
3
  //#region ../../../1-framework/1-core/errors/dist/execution.d.mts
4
4
  //#region src/execution.d.ts
5
5
  /**
@@ -99,4 +99,4 @@ declare function errorRuntime(code: `${string}.${string}`, summary: string, opti
99
99
  }): CliStructuredError;
100
100
  //#endregion
101
101
  export { errorMarkerReadFailed as a, errorRunnerFailed as c, errorTargetMismatch as d, parseMarkerRowSafely as f, errorMarkerMissing as i, errorRuntime as l, withMarkerReadErrorHandling as m, errorDestructiveChanges as n, errorMarkerRequired as o, rethrowMarkerReadError as p, errorHashMismatch as r, errorMarkerRowCorrupt as s, ERROR_CODE_DESTRUCTIVE_CHANGES as t, errorSchemaVerificationFailed as u };
102
- //# sourceMappingURL=execution-D_ARq2Yb.d.mts.map
102
+ //# sourceMappingURL=execution-CStuUgUf.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-D_ARq2Yb.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;iBAMiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;iBACa,uBAAuB,cAAc;WAC3C;WACA;;iBAEM,4BAA4B,GAAG,iBAAiB,QAAQ,IAAI;WAClE;WACA;IACP,QAAQ;iBACK,qBAAqB,GAAG,cAAc,QAAQ,mBAAmB,GAAG;WAC1E;WACA;IACP;;;;;iBAKa,oBAAoB;WAC1B;WACA;IACP;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,OAAO;WACP;IACP;;cAEU;;;;iBAIG,wBAAwB,iBAAiB;WAC/C;WACA;WACA,OAAO;IACd;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,OAAO;WACP;IACP"}
1
+ {"version":3,"file":"execution-CStuUgUf.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.d.mts"],"mappings":";;;;;;;iBAMiB,mBAAmB;WACzB;IACP;;;;iBAIa,kBAAkB;WACxB;WACA;WACA;IACP;;;;iBAIa,oBAAoB,kBAAkB,gBAAgB;WAC5D;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;;;;iBAIa,sBAAsB;WAC5B;WACA;WACA;WACA;IACP;iBACa,uBAAuB,cAAc;WAC3C;WACA;;iBAEM,4BAA4B,GAAG,iBAAiB,QAAQ,IAAI;WAClE;WACA;IACP,QAAQ;iBACK,qBAAqB,GAAG,cAAc,QAAQ,mBAAmB,GAAG;WAC1E;WACA;IACP;;;;;iBAKa,oBAAoB;WAC1B;WACA;IACP;;;;;iBAKa,8BAA8B;WACpC;WACA,oBAAoB;WACpB,kBAAkB;IACzB;;;;iBAIa,kBAAkB,iBAAiB;WACzC;WACA;WACA,OAAO;WACP;IACP;;cAEU;;;;iBAIG,wBAAwB,iBAAiB;WAC/C;WACA;WACA,OAAO;IACd;;;;iBAIa,aAAa,6BAA6B,iBAAiB;WACjE;WACA;WACA,OAAO;WACP;IACP"}
@@ -1,4 +1,4 @@
1
- import { t as CliStructuredError } from "./control-NxsoLvV7-CEAZQk3h.mjs";
1
+ import { t as CliStructuredError } from "./control-C_8057XM-DMCFN-Wb.mjs";
2
2
  //#region ../../../1-framework/1-core/errors/dist/migration.mjs
3
3
  /**
4
4
  * A scaffolded migration contains a placeholder slot that was never filled in.
@@ -115,4 +115,4 @@ function errorMigrationPlanNotArray(dir, actualValueDescription) {
115
115
  //#endregion
116
116
  export { errorMigrationTargetMismatch as a, errorMigrationPlanNotArray as i, errorMigrationFileMissing as n, errorUnfilledPlaceholder as o, errorMigrationInvalidDefaultExport as r, placeholder as s, errorDataTransformContractMismatch as t };
117
117
 
118
- //# sourceMappingURL=migration-Ds6n8w-H.mjs.map
118
+ //# sourceMappingURL=migration-DdUmzx06.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-Ds6n8w-H.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-NxsoLvV7.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `prisma-next migration new` or `prisma-next migration plan`.\",\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma-next.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma-next.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,OAAO,IAAI,mBAAmB,kCAAkC,kCAAkC;EACjG,KAAK,qEAAqE;EAC1E,KAAK;EACL,MAAM,EAAE,KAAK;CACd,CAAC;AACF;;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,aAAa,uBAAuB,IAAI,CAAC;EACnF;CACD,CAAC;AACF"}
1
+ {"version":3,"file":"migration-DdUmzx06.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-C_8057XM.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `prisma-next migration new` or `prisma-next migration plan`.\",\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma-next.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma-next.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,OAAO,IAAI,mBAAmB,kCAAkC,kCAAkC;EAC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,IAAI;EACnN,KAAK;EACL,MAAM;GACL;GACA,GAAG,2BAA2B,KAAK,IAAI,EAAE,aAAa,uBAAuB,IAAI,CAAC;EACnF;CACD,CAAC;AACF"}
@@ -1,4 +1,4 @@
1
- import { r as CliStructuredError } from "./control-CwRPkRJ7-Dk0c6D_5.mjs";
1
+ import { r as CliStructuredError } from "./control-BWHddgfQ-CHZkHCnz.mjs";
2
2
  //#region ../../../1-framework/1-core/errors/dist/migration.d.mts
3
3
  //#region src/migration.d.ts
4
4
  /**
@@ -71,4 +71,4 @@ declare function errorMigrationTargetMismatch(options: {
71
71
  declare function errorMigrationPlanNotArray(dir: string, actualValueDescription?: string): CliStructuredError;
72
72
  //#endregion
73
73
  export { errorMigrationTargetMismatch as a, errorMigrationPlanNotArray as i, errorMigrationFileMissing as n, errorUnfilledPlaceholder as o, errorMigrationInvalidDefaultExport as r, placeholder as s, errorDataTransformContractMismatch as t };
74
- //# sourceMappingURL=migration-C02YXQMR.d.mts.map
74
+ //# sourceMappingURL=migration-dka5vLtm.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-C02YXQMR.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.d.mts"],"mappings":";;;;;;;;;;iBASiB,yBAAyB,eAAe;;;;;;;;;;iBAUxC,YAAY;;;;;;;;;;;;;iBAaZ,mCAAmC;WACzC;WACA;WACA;IACP;;;;;;iBAMa,0BAA0B,cAAc;;;;;;;;;;iBAUxC,mCAAmC,aAAa,mCAAmC;;;;;;;;;iBASnF,6BAA6B;WACnC;WACA;IACP;;;;;iBAKa,2BAA2B,aAAa,kCAAkC"}
1
+ {"version":3,"file":"migration-dka5vLtm.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.d.mts"],"mappings":";;;;;;;;;;iBASiB,yBAAyB,eAAe;;;;;;;;;;iBAUxC,YAAY;;;;;;;;;;;;;iBAaZ,mCAAmC;WACzC;WACA;WACA;IACP;;;;;;iBAMa,0BAA0B,cAAc;;;;;;;;;;iBAUxC,mCAAmC,aAAa,mCAAmC;;;;;;;;;iBASnF,6BAA6B;WACnC;WACA;IACP;;;;;iBAKa,2BAA2B,aAAa,kCAAkC"}
@@ -1,7 +1,6 @@
1
1
  import { t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
2
2
  import { r as Result } from "./result-Bpupv5vO.mjs";
3
- import { c as ContractSourceProvider, m as PslContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, r as ContractSourceDiagnostic } from "./config-types-W-87vhZ4-DQk0SSmj.mjs";
4
- import "./config-types-C9MZ-mH9.mjs";
3
+ import { h as PslContractSourceProvider, i as ContractSourceDiagnostic, l as ContractSourceProvider, r as ContractSourceContext, s as ContractSourceDiagnostics } from "./config-types-gou0jUAD.mjs";
5
4
  import { I as SourceFile, d as DocumentAst } from "./parse-0ZJjj_2N-Ds7oY9eP.mjs";
6
5
  import { f as SymbolTable } from "./symbol-table-CZ7EVCTL-HNuzTvNC.mjs";
7
6
  //#region ../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts
@@ -1 +1 @@
1
- {"version":3,"file":"psl-parser__interpret.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,UAAU;WACV,YAAY;WACZ,aAAa;WACb;;;;;;;;UAQD,4BAA4B;EACpC,UAAU,OAAO,mBAAmB,SAAS,wBAAwB,OAAO,UAAU;;;;;;;;iBAQvE,oBAAoB,QAAQ,OAAO,UAAU,4BAA4B,0BAA0B,6BAA6B,OAAO,UAAU;;iBAEjJ,kBAAkB,QAAQ,yBAAyB,UAAU"}
1
+ {"version":3,"file":"psl-parser__interpret.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts"],"mappings":";;;;;;;;;;;;UAWU;WACC,UAAU;WACV,YAAY;WACZ,aAAa;WACb;;;;;;;;UAQD,4BAA4B;EACpC,UAAU,OAAO,mBAAmB,SAAS,wBAAwB,OAAO,UAAU;;;;;;;;iBAQvE,oBAAoB,QAAQ,OAAO,UAAU,4BAA4B,0BAA0B,6BAA6B,OAAO,UAAU;;iBAEjJ,kBAAkB,QAAQ,yBAAyB,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-framework",
3
- "version": "8.0.0-rc.1-dev.21",
3
+ "version": "8.0.0-rc.1-dev.23",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,20 +15,20 @@
15
15
  "uniku": "^0.5.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@internal/config": "8.0.0-rc.1-dev.21",
19
- "@internal/contract": "8.0.0-rc.1-dev.21",
20
- "@internal/contract-authoring": "8.0.0-rc.1-dev.21",
21
- "@internal/errors": "8.0.0-rc.1-dev.21",
22
- "@internal/framework-components": "8.0.0-rc.1-dev.21",
23
- "@internal/ids": "8.0.0-rc.1-dev.21",
24
- "@internal/operations": "8.0.0-rc.1-dev.21",
25
- "@internal/psl-parser": "8.0.0-rc.1-dev.21",
26
- "@internal/psl-printer": "8.0.0-rc.1-dev.21",
27
- "@internal/ts-render": "8.0.0-rc.1-dev.21",
28
- "@repo/tsconfig": "8.0.0-rc.1-dev.21",
29
- "@internal/publish-surface": "8.0.0-rc.1-dev.21",
30
- "@repo/tsdown": "8.0.0-rc.1-dev.21",
31
- "@internal/utils": "8.0.0-rc.1-dev.21",
18
+ "@internal/config": "8.0.0-rc.1-dev.23",
19
+ "@internal/contract": "8.0.0-rc.1-dev.23",
20
+ "@internal/contract-authoring": "8.0.0-rc.1-dev.23",
21
+ "@internal/errors": "8.0.0-rc.1-dev.23",
22
+ "@internal/framework-components": "8.0.0-rc.1-dev.23",
23
+ "@internal/ids": "8.0.0-rc.1-dev.23",
24
+ "@internal/operations": "8.0.0-rc.1-dev.23",
25
+ "@internal/psl-parser": "8.0.0-rc.1-dev.23",
26
+ "@internal/psl-printer": "8.0.0-rc.1-dev.23",
27
+ "@internal/ts-render": "8.0.0-rc.1-dev.23",
28
+ "@repo/tsconfig": "8.0.0-rc.1-dev.23",
29
+ "@internal/publish-surface": "8.0.0-rc.1-dev.23",
30
+ "@repo/tsdown": "8.0.0-rc.1-dev.23",
31
+ "@internal/utils": "8.0.0-rc.1-dev.23",
32
32
  "tsdown": "0.22.14",
33
33
  "typescript": "5.9.3",
34
34
  "vitest": "4.1.10"
@@ -1,9 +0,0 @@
1
- import { a as structuredError } from "./structured-error-H6WU9Kjt.mjs";
2
- //#region ../../../1-framework/1-core/config/dist/config-errors-CBdiX587.mjs
3
- function configError(code, message, options) {
4
- return structuredError(code, message, options);
5
- }
6
- //#endregion
7
- export { configError as t };
8
-
9
- //# sourceMappingURL=config-errors-CBdiX587-DwIyJIX9.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-errors-CBdiX587-DwIyJIX9.mjs","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-errors-CBdiX587.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\n//#region src/config-errors.ts\nfunction configError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\nexport { configError as t };\n\n//# sourceMappingURL=config-errors-CBdiX587.mjs.map"],"mappings":";;AAEA,SAAS,YAAY,MAAM,SAAS,SAAS;CAC5C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C"}
@@ -1 +0,0 @@
1
- import "./config-types-W-87vhZ4-DQk0SSmj.mjs";
@@ -1,62 +0,0 @@
1
- import { t as configError } from "./config-errors-CBdiX587-DwIyJIX9.mjs";
2
- import { type } from "arktype";
3
- //#region ../../../1-framework/1-core/config/dist/config-types.mjs
4
- /**
5
- * Default *source* directory for the contract file the user authors at `init`
6
- * time. Output artefacts colocate with source per the same rule path-bearing
7
- * providers apply.
8
- */
9
- const DEFAULT_CONTRACT_SOURCE_DIR = "src/prisma";
10
- function normalizeContractConfig(contract) {
11
- const inMemoryFallbackOutput = `${DEFAULT_CONTRACT_SOURCE_DIR}/contract.json`;
12
- return {
13
- source: contract.source,
14
- output: contract.output ?? inMemoryFallbackOutput
15
- };
16
- }
17
- const PrismaNextConfigSchema = type({
18
- family: "unknown",
19
- target: "unknown",
20
- adapter: "unknown",
21
- "extensions?": "unknown[]",
22
- "driver?": "unknown",
23
- "db?": "unknown",
24
- "contract?": type({
25
- source: type({
26
- "format?": "string",
27
- "inputs?": type("string").array(),
28
- load: "Function"
29
- }),
30
- "output?": "string"
31
- }),
32
- "migrations?": type({ "dir?": "string" }),
33
- "formatter?": type({
34
- "indent?": type("number.integer >= 1").or("'tab'"),
35
- "newline?": "'LF' | 'CRLF'"
36
- })
37
- });
38
- /**
39
- * Helper function to define a Prisma Next config.
40
- * Validates and normalizes the config using Arktype, then returns the normalized IR.
41
- *
42
- * Normalization:
43
- * - contract.output defaults to a path colocated with DEFAULT_CONTRACT_SOURCE_DIR
44
- * when missing (in-memory-only providers)
45
- *
46
- * @param config - Raw config input from user
47
- * @returns Normalized config IR with defaults applied
48
- * @throws Error if config structure is invalid
49
- */
50
- function defineConfig(config) {
51
- const validated = PrismaNextConfigSchema(config);
52
- if (validated instanceof type.errors) throw configError("CONFIG.VALIDATION_FAILED", `Config validation failed: ${validated.map((p) => p.message).join("; ")}`);
53
- if (config.contract) return {
54
- ...config,
55
- contract: normalizeContractConfig(config.contract)
56
- };
57
- return config;
58
- }
59
- //#endregion
60
- export { defineConfig as n, normalizeContractConfig as r, DEFAULT_CONTRACT_SOURCE_DIR as t };
61
-
62
- //# sourceMappingURL=config-types-Cf9lVsHR.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-types-Cf9lVsHR.mjs","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.mjs"],"sourcesContent":["import { t as configError } from \"./config-errors-CBdiX587.mjs\";\nimport { type } from \"arktype\";\n//#region src/config-types.ts\n/**\n* Default *source* directory for the contract file the user authors at `init`\n* time. Output artefacts colocate with source per the same rule path-bearing\n* providers apply.\n*/\nconst DEFAULT_CONTRACT_SOURCE_DIR = \"src/prisma\";\nfunction normalizeContractConfig(contract) {\n\tconst inMemoryFallbackOutput = `${DEFAULT_CONTRACT_SOURCE_DIR}/contract.json`;\n\treturn {\n\t\tsource: contract.source,\n\t\toutput: contract.output ?? inMemoryFallbackOutput\n\t};\n}\nconst PrismaNextConfigSchema = type({\n\tfamily: \"unknown\",\n\ttarget: \"unknown\",\n\tadapter: \"unknown\",\n\t\"extensions?\": \"unknown[]\",\n\t\"driver?\": \"unknown\",\n\t\"db?\": \"unknown\",\n\t\"contract?\": type({\n\t\tsource: type({\n\t\t\t\"format?\": \"string\",\n\t\t\t\"inputs?\": type(\"string\").array(),\n\t\t\tload: \"Function\"\n\t\t}),\n\t\t\"output?\": \"string\"\n\t}),\n\t\"migrations?\": type({ \"dir?\": \"string\" }),\n\t\"formatter?\": type({\n\t\t\"indent?\": type(\"number.integer >= 1\").or(\"'tab'\"),\n\t\t\"newline?\": \"'LF' | 'CRLF'\"\n\t})\n});\n/**\n* Helper function to define a Prisma Next config.\n* Validates and normalizes the config using Arktype, then returns the normalized IR.\n*\n* Normalization:\n* - contract.output defaults to a path colocated with DEFAULT_CONTRACT_SOURCE_DIR\n* when missing (in-memory-only providers)\n*\n* @param config - Raw config input from user\n* @returns Normalized config IR with defaults applied\n* @throws Error if config structure is invalid\n*/\nfunction defineConfig(config) {\n\tconst validated = PrismaNextConfigSchema(config);\n\tif (validated instanceof type.errors) throw configError(\"CONFIG.VALIDATION_FAILED\", `Config validation failed: ${validated.map((p) => p.message).join(\"; \")}`);\n\tif (config.contract) return {\n\t\t...config,\n\t\tcontract: normalizeContractConfig(config.contract)\n\t};\n\treturn config;\n}\n//#endregion\nexport { DEFAULT_CONTRACT_SOURCE_DIR, defineConfig, normalizeContractConfig };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,8BAA8B;AACpC,SAAS,wBAAwB,UAAU;CAC1C,MAAM,yBAAyB,GAAG,4BAA4B;CAC9D,OAAO;EACN,QAAQ,SAAS;EACjB,QAAQ,SAAS,UAAU;CAC5B;AACD;AACA,MAAM,yBAAyB,KAAK;CACnC,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,eAAe;CACf,WAAW;CACX,OAAO;CACP,aAAa,KAAK;EACjB,QAAQ,KAAK;GACZ,WAAW;GACX,WAAW,KAAK,QAAQ,CAAC,CAAC,MAAM;GAChC,MAAM;EACP,CAAC;EACD,WAAW;CACZ,CAAC;CACD,eAAe,KAAK,EAAE,QAAQ,SAAS,CAAC;CACxC,cAAc,KAAK;EAClB,WAAW,KAAK,qBAAqB,CAAC,CAAC,GAAG,OAAO;EACjD,YAAY;CACb,CAAC;AACF,CAAC;;;;;;;;;;;;;AAaD,SAAS,aAAa,QAAQ;CAC7B,MAAM,YAAY,uBAAuB,MAAM;CAC/C,IAAI,qBAAqB,KAAK,QAAQ,MAAM,YAAY,4BAA4B,6BAA6B,UAAU,KAAK,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,GAAG;CAC7J,IAAI,OAAO,UAAU,OAAO;EAC3B,GAAG;EACH,UAAU,wBAAwB,OAAO,QAAQ;CAClD;CACA,OAAO;AACR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-types-W-87vhZ4-DQk0SSmj.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types-W-87vhZ4.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;;;;;WAMP,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;WACb,yBAAyB;WACzB;WACA,cAAc;;;KAGpB;UACK;WACC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;UAEpE,kCAAkC;WACjC;;UAED,yCAAyC;WACxC;;;;;;;;UAQD,qCAAqC;WACpC;;KAEN,yBAAyB,4BAA4B,mCAAmC;;;;;;UAMnF;;;;;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;;;;;;;;;;;;;;iBAcN,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW"}
@@ -1,14 +0,0 @@
1
- import { p as PrismaNextConfig } from "./config-types-W-87vhZ4-DQk0SSmj.mjs";
2
- //#region ../../../1-framework/1-core/config/dist/config-validation.d.mts
3
- //#region src/config-validation.d.ts
4
- /**
5
- * Validates that the config has the required structure.
6
- * This is pure validation logic with no file I/O or CLI awareness.
7
- *
8
- * @param config - Config object to validate
9
- * @throws a `CONFIG.VALIDATION_FAILED` structured error if config structure is invalid
10
- */
11
- declare function validateConfig(config: unknown): asserts config is PrismaNextConfig;
12
- //#endregion
13
- export { validateConfig as t };
14
- //# sourceMappingURL=config-validation-9rldVCTn.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-validation-9rldVCTn.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-validation.d.mts"],"mappings":";;;;;;;;;;iBASiB,eAAe,0BAA0B,UAAU"}
@@ -1,99 +0,0 @@
1
- import { t as configError } from "./config-errors-CBdiX587-DwIyJIX9.mjs";
2
- //#region ../../../1-framework/1-core/config/dist/config-validation.mjs
3
- function throwValidation(field, why) {
4
- const message = why ?? `Config must have a "${field}" field`;
5
- throw configError("CONFIG.VALIDATION_FAILED", message, {
6
- why: message,
7
- meta: { field }
8
- });
9
- }
10
- function validateContractConfig(contract) {
11
- if (!Object.hasOwn(contract, "source")) throwValidation("contract.source", "Config.contract.source is required when contract is provided");
12
- const source = contract["source"];
13
- if (!source || typeof source !== "object") throwValidation("contract.source", "Config.contract.source must be a provider object");
14
- const sourceConfig = source;
15
- const inputs = Object.hasOwn(sourceConfig, "inputs") ? sourceConfig["inputs"] : void 0;
16
- if (inputs !== void 0) {
17
- if (!Array.isArray(inputs)) throwValidation("contract.source.inputs", "Config.contract.source.inputs must be an array of strings when provided");
18
- for (const input of inputs) if (typeof input !== "string") throwValidation("contract.source.inputs[]", "Config.contract.source.inputs must contain only strings");
19
- }
20
- if (!Object.hasOwn(sourceConfig, "load") || typeof sourceConfig["load"] !== "function") throwValidation("contract.source.load", "Config.contract.source.load must be a function");
21
- const output = Object.hasOwn(contract, "output") ? contract["output"] : void 0;
22
- if (output !== void 0 && typeof output !== "string") throwValidation("contract.output", "Config.contract.output must be a string when provided");
23
- }
24
- /**
25
- * Validates that the config has the required structure.
26
- * This is pure validation logic with no file I/O or CLI awareness.
27
- *
28
- * @param config - Config object to validate
29
- * @throws a `CONFIG.VALIDATION_FAILED` structured error if config structure is invalid
30
- */
31
- function validateConfig(config) {
32
- if (!config || typeof config !== "object") throwValidation("object", "Config must be an object");
33
- const configObj = config;
34
- if (!configObj["family"]) throwValidation("family");
35
- if (!configObj["target"]) throwValidation("target");
36
- if (!configObj["adapter"]) throwValidation("adapter");
37
- const family = configObj["family"];
38
- if (family["kind"] !== "family") throwValidation("family.kind", "Config.family must have kind: \"family\"");
39
- if (typeof family["id"] !== "string") throwValidation("family.id", "Config.family must have id: string");
40
- if (typeof family["familyId"] !== "string") throwValidation("family.familyId", "Config.family must have familyId: string");
41
- if (typeof family["version"] !== "string") throwValidation("family.version", "Config.family must have version: string");
42
- if (!family["emission"] || typeof family["emission"] !== "object") throwValidation("family.emission", "Config.family must have emission: EmissionSpi");
43
- if (typeof family["create"] !== "function") throwValidation("family.create", "Config.family must have create: function");
44
- const familyId = family["familyId"];
45
- const target = configObj["target"];
46
- if (target["kind"] !== "target") throwValidation("target.kind", "Config.target must have kind: \"target\"");
47
- if (typeof target["id"] !== "string") throwValidation("target.id", "Config.target must have id: string");
48
- if (typeof target["familyId"] !== "string") throwValidation("target.familyId", "Config.target must have familyId: string");
49
- if (typeof target["version"] !== "string") throwValidation("target.version", "Config.target must have version: string");
50
- if (target["familyId"] !== familyId) throwValidation("target.familyId", `Config.target.familyId must match Config.family.familyId (expected: ${familyId}, got: ${target["familyId"]})`);
51
- if (typeof target["targetId"] !== "string") throwValidation("target.targetId", "Config.target must have targetId: string");
52
- if (typeof target["create"] !== "function") throwValidation("target.create", "Config.target must have create: function");
53
- const expectedTargetId = target["targetId"];
54
- const adapter = configObj["adapter"];
55
- if (adapter["kind"] !== "adapter") throwValidation("adapter.kind", "Config.adapter must have kind: \"adapter\"");
56
- if (typeof adapter["id"] !== "string") throwValidation("adapter.id", "Config.adapter must have id: string");
57
- if (typeof adapter["familyId"] !== "string") throwValidation("adapter.familyId", "Config.adapter must have familyId: string");
58
- if (typeof adapter["version"] !== "string") throwValidation("adapter.version", "Config.adapter must have version: string");
59
- if (adapter["familyId"] !== familyId) throwValidation("adapter.familyId", `Config.adapter.familyId must match Config.family.familyId (expected: ${familyId}, got: ${adapter["familyId"]})`);
60
- if (typeof adapter["targetId"] !== "string") throwValidation("adapter.targetId", "Config.adapter must have targetId: string");
61
- if (adapter["targetId"] !== expectedTargetId) throwValidation("adapter.targetId", `Config.adapter.targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${adapter["targetId"]})`);
62
- if (typeof adapter["create"] !== "function") throwValidation("adapter.create", "Config.adapter must have create: function");
63
- if (configObj["extensionPacks"] !== void 0) throwValidation("extensionPacks", "Config.extensionPacks is no longer supported; rename it to Config.extensions");
64
- if (configObj["extensions"] !== void 0) {
65
- if (!Array.isArray(configObj["extensions"])) throwValidation("extensions", "Config.extensions must be an array");
66
- for (const ext of configObj["extensions"]) {
67
- if (!ext || typeof ext !== "object") throwValidation("extensions[]", "Config.extensions must contain ControlExtensionDescriptor objects");
68
- const extObj = ext;
69
- if (extObj["kind"] !== "extension") throwValidation("extensions[].kind", "Config.extensions items must have kind: \"extension\"");
70
- if (typeof extObj["id"] !== "string") throwValidation("extensions[].id", "Config.extensions items must have id: string");
71
- if (typeof extObj["familyId"] !== "string") throwValidation("extensions[].familyId", "Config.extensions items must have familyId: string");
72
- if (typeof extObj["version"] !== "string") throwValidation("extensions[].version", "Config.extensions items must have version: string");
73
- if (extObj["familyId"] !== familyId) throwValidation("extensions[].familyId", `Config.extensions[].familyId must match Config.family.familyId (expected: ${familyId}, got: ${extObj["familyId"]})`);
74
- if (typeof extObj["targetId"] !== "string") throwValidation("extensions[].targetId", "Config.extensions items must have targetId: string");
75
- if (extObj["targetId"] !== expectedTargetId) throwValidation("extensions[].targetId", `Config.extensions[].targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${extObj["targetId"]})`);
76
- if (typeof extObj["create"] !== "function") throwValidation("extensions[].create", "Config.extensions items must have create: function");
77
- }
78
- }
79
- if (configObj["driver"] !== void 0) {
80
- const driver = configObj["driver"];
81
- if (driver["kind"] !== "driver") throwValidation("driver.kind", "Config.driver must have kind: \"driver\"");
82
- if (typeof driver["id"] !== "string") throwValidation("driver.id", "Config.driver must have id: string");
83
- if (typeof driver["version"] !== "string") throwValidation("driver.version", "Config.driver must have version: string");
84
- if (typeof driver["familyId"] !== "string") throwValidation("driver.familyId", "Config.driver must have familyId: string");
85
- if (driver["familyId"] !== familyId) throwValidation("driver.familyId", `Config.driver.familyId must match Config.family.familyId (expected: ${familyId}, got: ${driver["familyId"]})`);
86
- if (typeof driver["targetId"] !== "string") throwValidation("driver.targetId", "Config.driver must have targetId: string");
87
- if (driver["targetId"] !== expectedTargetId) throwValidation("driver.targetId", `Config.driver.targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${driver["targetId"]})`);
88
- if (typeof driver["create"] !== "function") throwValidation("driver.create", "Config.driver must have create: function");
89
- }
90
- if (configObj["contract"] !== void 0) {
91
- const contract = configObj["contract"];
92
- if (!contract || typeof contract !== "object") throwValidation("contract", "Config.contract must be an object");
93
- validateContractConfig(contract);
94
- }
95
- }
96
- //#endregion
97
- export { validateConfig as t };
98
-
99
- //# sourceMappingURL=config-validation-ByGTw6zQ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-validation-ByGTw6zQ.mjs","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-validation.mjs"],"sourcesContent":["import { t as configError } from \"./config-errors-CBdiX587.mjs\";\n//#region src/config-validation.ts\nfunction throwValidation(field, why) {\n\tconst message = why ?? `Config must have a \"${field}\" field`;\n\tthrow configError(\"CONFIG.VALIDATION_FAILED\", message, {\n\t\twhy: message,\n\t\tmeta: { field }\n\t});\n}\nfunction validateContractConfig(contract) {\n\tif (!Object.hasOwn(contract, \"source\")) throwValidation(\"contract.source\", \"Config.contract.source is required when contract is provided\");\n\tconst source = contract[\"source\"];\n\tif (!source || typeof source !== \"object\") throwValidation(\"contract.source\", \"Config.contract.source must be a provider object\");\n\tconst sourceConfig = source;\n\tconst inputs = Object.hasOwn(sourceConfig, \"inputs\") ? sourceConfig[\"inputs\"] : void 0;\n\tif (inputs !== void 0) {\n\t\tif (!Array.isArray(inputs)) throwValidation(\"contract.source.inputs\", \"Config.contract.source.inputs must be an array of strings when provided\");\n\t\tfor (const input of inputs) if (typeof input !== \"string\") throwValidation(\"contract.source.inputs[]\", \"Config.contract.source.inputs must contain only strings\");\n\t}\n\tif (!Object.hasOwn(sourceConfig, \"load\") || typeof sourceConfig[\"load\"] !== \"function\") throwValidation(\"contract.source.load\", \"Config.contract.source.load must be a function\");\n\tconst output = Object.hasOwn(contract, \"output\") ? contract[\"output\"] : void 0;\n\tif (output !== void 0 && typeof output !== \"string\") throwValidation(\"contract.output\", \"Config.contract.output must be a string when provided\");\n}\n/**\n* Validates that the config has the required structure.\n* This is pure validation logic with no file I/O or CLI awareness.\n*\n* @param config - Config object to validate\n* @throws a `CONFIG.VALIDATION_FAILED` structured error if config structure is invalid\n*/\nfunction validateConfig(config) {\n\tif (!config || typeof config !== \"object\") throwValidation(\"object\", \"Config must be an object\");\n\tconst configObj = config;\n\tif (!configObj[\"family\"]) throwValidation(\"family\");\n\tif (!configObj[\"target\"]) throwValidation(\"target\");\n\tif (!configObj[\"adapter\"]) throwValidation(\"adapter\");\n\tconst family = configObj[\"family\"];\n\tif (family[\"kind\"] !== \"family\") throwValidation(\"family.kind\", \"Config.family must have kind: \\\"family\\\"\");\n\tif (typeof family[\"id\"] !== \"string\") throwValidation(\"family.id\", \"Config.family must have id: string\");\n\tif (typeof family[\"familyId\"] !== \"string\") throwValidation(\"family.familyId\", \"Config.family must have familyId: string\");\n\tif (typeof family[\"version\"] !== \"string\") throwValidation(\"family.version\", \"Config.family must have version: string\");\n\tif (!family[\"emission\"] || typeof family[\"emission\"] !== \"object\") throwValidation(\"family.emission\", \"Config.family must have emission: EmissionSpi\");\n\tif (typeof family[\"create\"] !== \"function\") throwValidation(\"family.create\", \"Config.family must have create: function\");\n\tconst familyId = family[\"familyId\"];\n\tconst target = configObj[\"target\"];\n\tif (target[\"kind\"] !== \"target\") throwValidation(\"target.kind\", \"Config.target must have kind: \\\"target\\\"\");\n\tif (typeof target[\"id\"] !== \"string\") throwValidation(\"target.id\", \"Config.target must have id: string\");\n\tif (typeof target[\"familyId\"] !== \"string\") throwValidation(\"target.familyId\", \"Config.target must have familyId: string\");\n\tif (typeof target[\"version\"] !== \"string\") throwValidation(\"target.version\", \"Config.target must have version: string\");\n\tif (target[\"familyId\"] !== familyId) throwValidation(\"target.familyId\", `Config.target.familyId must match Config.family.familyId (expected: ${familyId}, got: ${target[\"familyId\"]})`);\n\tif (typeof target[\"targetId\"] !== \"string\") throwValidation(\"target.targetId\", \"Config.target must have targetId: string\");\n\tif (typeof target[\"create\"] !== \"function\") throwValidation(\"target.create\", \"Config.target must have create: function\");\n\tconst expectedTargetId = target[\"targetId\"];\n\tconst adapter = configObj[\"adapter\"];\n\tif (adapter[\"kind\"] !== \"adapter\") throwValidation(\"adapter.kind\", \"Config.adapter must have kind: \\\"adapter\\\"\");\n\tif (typeof adapter[\"id\"] !== \"string\") throwValidation(\"adapter.id\", \"Config.adapter must have id: string\");\n\tif (typeof adapter[\"familyId\"] !== \"string\") throwValidation(\"adapter.familyId\", \"Config.adapter must have familyId: string\");\n\tif (typeof adapter[\"version\"] !== \"string\") throwValidation(\"adapter.version\", \"Config.adapter must have version: string\");\n\tif (adapter[\"familyId\"] !== familyId) throwValidation(\"adapter.familyId\", `Config.adapter.familyId must match Config.family.familyId (expected: ${familyId}, got: ${adapter[\"familyId\"]})`);\n\tif (typeof adapter[\"targetId\"] !== \"string\") throwValidation(\"adapter.targetId\", \"Config.adapter must have targetId: string\");\n\tif (adapter[\"targetId\"] !== expectedTargetId) throwValidation(\"adapter.targetId\", `Config.adapter.targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${adapter[\"targetId\"]})`);\n\tif (typeof adapter[\"create\"] !== \"function\") throwValidation(\"adapter.create\", \"Config.adapter must have create: function\");\n\tif (configObj[\"extensionPacks\"] !== void 0) throwValidation(\"extensionPacks\", \"Config.extensionPacks is no longer supported; rename it to Config.extensions\");\n\tif (configObj[\"extensions\"] !== void 0) {\n\t\tif (!Array.isArray(configObj[\"extensions\"])) throwValidation(\"extensions\", \"Config.extensions must be an array\");\n\t\tfor (const ext of configObj[\"extensions\"]) {\n\t\t\tif (!ext || typeof ext !== \"object\") throwValidation(\"extensions[]\", \"Config.extensions must contain ControlExtensionDescriptor objects\");\n\t\t\tconst extObj = ext;\n\t\t\tif (extObj[\"kind\"] !== \"extension\") throwValidation(\"extensions[].kind\", \"Config.extensions items must have kind: \\\"extension\\\"\");\n\t\t\tif (typeof extObj[\"id\"] !== \"string\") throwValidation(\"extensions[].id\", \"Config.extensions items must have id: string\");\n\t\t\tif (typeof extObj[\"familyId\"] !== \"string\") throwValidation(\"extensions[].familyId\", \"Config.extensions items must have familyId: string\");\n\t\t\tif (typeof extObj[\"version\"] !== \"string\") throwValidation(\"extensions[].version\", \"Config.extensions items must have version: string\");\n\t\t\tif (extObj[\"familyId\"] !== familyId) throwValidation(\"extensions[].familyId\", `Config.extensions[].familyId must match Config.family.familyId (expected: ${familyId}, got: ${extObj[\"familyId\"]})`);\n\t\t\tif (typeof extObj[\"targetId\"] !== \"string\") throwValidation(\"extensions[].targetId\", \"Config.extensions items must have targetId: string\");\n\t\t\tif (extObj[\"targetId\"] !== expectedTargetId) throwValidation(\"extensions[].targetId\", `Config.extensions[].targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${extObj[\"targetId\"]})`);\n\t\t\tif (typeof extObj[\"create\"] !== \"function\") throwValidation(\"extensions[].create\", \"Config.extensions items must have create: function\");\n\t\t}\n\t}\n\tif (configObj[\"driver\"] !== void 0) {\n\t\tconst driver = configObj[\"driver\"];\n\t\tif (driver[\"kind\"] !== \"driver\") throwValidation(\"driver.kind\", \"Config.driver must have kind: \\\"driver\\\"\");\n\t\tif (typeof driver[\"id\"] !== \"string\") throwValidation(\"driver.id\", \"Config.driver must have id: string\");\n\t\tif (typeof driver[\"version\"] !== \"string\") throwValidation(\"driver.version\", \"Config.driver must have version: string\");\n\t\tif (typeof driver[\"familyId\"] !== \"string\") throwValidation(\"driver.familyId\", \"Config.driver must have familyId: string\");\n\t\tif (driver[\"familyId\"] !== familyId) throwValidation(\"driver.familyId\", `Config.driver.familyId must match Config.family.familyId (expected: ${familyId}, got: ${driver[\"familyId\"]})`);\n\t\tif (typeof driver[\"targetId\"] !== \"string\") throwValidation(\"driver.targetId\", \"Config.driver must have targetId: string\");\n\t\tif (driver[\"targetId\"] !== expectedTargetId) throwValidation(\"driver.targetId\", `Config.driver.targetId must match Config.target.targetId (expected: ${expectedTargetId}, got: ${driver[\"targetId\"]})`);\n\t\tif (typeof driver[\"create\"] !== \"function\") throwValidation(\"driver.create\", \"Config.driver must have create: function\");\n\t}\n\tif (configObj[\"contract\"] !== void 0) {\n\t\tconst contract = configObj[\"contract\"];\n\t\tif (!contract || typeof contract !== \"object\") throwValidation(\"contract\", \"Config.contract must be an object\");\n\t\tvalidateContractConfig(contract);\n\t}\n}\n//#endregion\nexport { validateConfig };\n\n//# sourceMappingURL=config-validation.mjs.map"],"mappings":";;AAEA,SAAS,gBAAgB,OAAO,KAAK;CACpC,MAAM,UAAU,OAAO,uBAAuB,MAAM;CACpD,MAAM,YAAY,4BAA4B,SAAS;EACtD,KAAK;EACL,MAAM,EAAE,MAAM;CACf,CAAC;AACF;AACA,SAAS,uBAAuB,UAAU;CACzC,IAAI,CAAC,OAAO,OAAO,UAAU,QAAQ,GAAG,gBAAgB,mBAAmB,8DAA8D;CACzI,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,UAAU,OAAO,WAAW,UAAU,gBAAgB,mBAAmB,kDAAkD;CAChI,MAAM,eAAe;CACrB,MAAM,SAAS,OAAO,OAAO,cAAc,QAAQ,IAAI,aAAa,YAAY,KAAK;CACrF,IAAI,WAAW,KAAK,GAAG;EACtB,IAAI,CAAC,MAAM,QAAQ,MAAM,GAAG,gBAAgB,0BAA0B,yEAAyE;EAC/I,KAAK,MAAM,SAAS,QAAQ,IAAI,OAAO,UAAU,UAAU,gBAAgB,4BAA4B,yDAAyD;CACjK;CACA,IAAI,CAAC,OAAO,OAAO,cAAc,MAAM,KAAK,OAAO,aAAa,YAAY,YAAY,gBAAgB,wBAAwB,gDAAgD;CAChL,MAAM,SAAS,OAAO,OAAO,UAAU,QAAQ,IAAI,SAAS,YAAY,KAAK;CAC7E,IAAI,WAAW,KAAK,KAAK,OAAO,WAAW,UAAU,gBAAgB,mBAAmB,uDAAuD;AAChJ;;;;;;;;AAQA,SAAS,eAAe,QAAQ;CAC/B,IAAI,CAAC,UAAU,OAAO,WAAW,UAAU,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AAS,OAAO,YAAY,EAAE;GAClN,IAAI,OAAO,OAAO,cAAc,YAAY,gBAAgB,uBAAuB,oDAAoD;EACxI;CACD;CACA,IAAI,UAAU,cAAc,KAAK,GAAG;EACnC,MAAM,SAAS,UAAU;EACzB,IAAI,OAAO,YAAY,UAAU,gBAAgB,eAAe,0CAA0C;EAC1G,IAAI,OAAO,OAAO,UAAU,UAAU,gBAAgB,aAAa,oCAAoC;EACvG,IAAI,OAAO,OAAO,eAAe,UAAU,gBAAgB,kBAAkB,yCAAyC;EACtH,IAAI,OAAO,OAAO,gBAAgB,UAAU,gBAAgB,mBAAmB,0CAA0C;EACzH,IAAI,OAAO,gBAAgB,UAAU,gBAAgB,mBAAmB,uEAAuE,SAAS,SAAS,OAAO,YAAY,EAAE;EACtL,IAAI,OAAO,OAAO,gBAAgB,UAAU,gBAAgB,mBAAmB,0CAA0C;EACzH,IAAI,OAAO,gBAAgB,kBAAkB,gBAAgB,mBAAmB,uEAAuE,iBAAiB,SAAS,OAAO,YAAY,EAAE;EACtM,IAAI,OAAO,OAAO,cAAc,YAAY,gBAAgB,iBAAiB,0CAA0C;CACxH;CACA,IAAI,UAAU,gBAAgB,KAAK,GAAG;EACrC,MAAM,WAAW,UAAU;EAC3B,IAAI,CAAC,YAAY,OAAO,aAAa,UAAU,gBAAgB,YAAY,mCAAmC;EAC9G,uBAAuB,QAAQ;CAChC;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"control-CwRPkRJ7-Dk0c6D_5.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-CwRPkRJ7.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;;;;;;;;;;;;cAaG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;aAEF,OAAO;aACP;aACA;;;;;EAKX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;WAEF;IACP;;;;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;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;WACA;IACP"}