@prisma/orm-toolchain 8.0.0-rc.18-dev.15 → 8.0.0-rc.18-dev.17

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 (78) hide show
  1. package/dist/{aggregate-CJjYCgNP.mjs → aggregate-C0qscKli.mjs} +15 -11
  2. package/dist/aggregate-C0qscKli.mjs.map +1 -0
  3. package/dist/{aggregate-MAVa_CD0.d.mts → aggregate-Da8PGnzg.d.mts} +5 -3
  4. package/dist/aggregate-Da8PGnzg.d.mts.map +1 -0
  5. package/dist/{caught-errors-olsx_RBn-Cg0ilJtv.mjs → caught-errors-olsx_RBn-BC8azlie.mjs} +2 -2
  6. package/dist/{caught-errors-olsx_RBn-Cg0ilJtv.mjs.map → caught-errors-olsx_RBn-BC8azlie.mjs.map} +1 -1
  7. package/dist/cli-telemetry.mjs +1 -1
  8. package/dist/cli.mjs +46 -31
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/cli__control-api.d.mts +7 -4
  11. package/dist/cli__control-api.d.mts.map +1 -1
  12. package/dist/cli__control-api.mjs +2 -2
  13. package/dist/cli__control-api__testing.d.mts +1 -1
  14. package/dist/cli__control-api__testing.mjs +1 -1
  15. package/dist/cli__control-api__testing.mjs.map +1 -1
  16. package/dist/cli__migration-cli.mjs +4 -4
  17. package/dist/config-loader.mjs +1 -1
  18. package/dist/{contract-snapshot-store-CNu34KAd-D9xN1Sll.mjs → contract-snapshot-store-DwEs5EOp-3qAvnEf3.mjs} +3 -3
  19. package/dist/{contract-snapshot-store-CNu34KAd-D9xN1Sll.mjs.map → contract-snapshot-store-DwEs5EOp-3qAvnEf3.mjs.map} +1 -1
  20. package/dist/{db-sign-JgxFUHAx-BnA61Q5l.d.mts → db-sign-C3GY7-1h-C0whdey8.d.mts} +3 -3
  21. package/dist/{db-sign-JgxFUHAx-BnA61Q5l.d.mts.map → db-sign-C3GY7-1h-C0whdey8.d.mts.map} +1 -1
  22. package/dist/{domain-type-generation-B_tgVA9W-DdPq_876.d.mts → domain-type-generation-CINeP3Ed-D05XzCGK.d.mts} +3 -3
  23. package/dist/{domain-type-generation-B_tgVA9W-DdPq_876.d.mts.map → domain-type-generation-CINeP3Ed-D05XzCGK.d.mts.map} +1 -1
  24. package/dist/emitter.d.mts +2 -2
  25. package/dist/emitter.mjs +1 -1
  26. package/dist/emitter__domain-type-generation.d.mts +1 -1
  27. package/dist/{errors-KWM8yBAL.d.mts → errors-GnmirXRU.d.mts} +4 -1
  28. package/dist/{errors-KWM8yBAL.d.mts.map → errors-GnmirXRU.d.mts.map} +1 -1
  29. package/dist/{errors-B1xJ5JTo-CrQL55Qf.mjs → errors-nnIQQvmN-oeANP4Yi.mjs} +10 -2
  30. package/dist/errors-nnIQQvmN-oeANP4Yi.mjs.map +1 -0
  31. package/dist/{exports-D1qqHTu1.mjs → exports-DH1C-t5Q.mjs} +2 -2
  32. package/dist/{exports-D1qqHTu1.mjs.map → exports-DH1C-t5Q.mjs.map} +1 -1
  33. package/dist/{exports-DsqGwQ1B.mjs → exports-R5Bj59KS.mjs} +6 -4
  34. package/dist/exports-R5Bj59KS.mjs.map +1 -0
  35. package/dist/{exports-CBaM-1YD-CJuFjV3_.mjs → exports-o91c4INl-_M3b_rty.mjs} +4 -3
  36. package/dist/exports-o91c4INl-_M3b_rty.mjs.map +1 -0
  37. package/dist/{graph-membership-C-5WMh1R-BUtW54H2.mjs → graph-membership-ul46Kb0W-B8HahKEu.mjs} +3 -3
  38. package/dist/{graph-membership-C-5WMh1R-BUtW54H2.mjs.map → graph-membership-ul46Kb0W-B8HahKEu.mjs.map} +1 -1
  39. package/dist/{index-Co6ho75S.d.mts → index-DbIFi6KU.d.mts} +4 -4
  40. package/dist/{index-Co6ho75S.d.mts.map → index-DbIFi6KU.d.mts.map} +1 -1
  41. package/dist/{invariants-1xSrwDkH-BoUuNrf4.mjs → invariants-Jgsl_-rJ-0ieZ1n7L.mjs} +3 -3
  42. package/dist/{invariants-1xSrwDkH-BoUuNrf4.mjs.map → invariants-Jgsl_-rJ-0ieZ1n7L.mjs.map} +1 -1
  43. package/dist/{io-CUFeeOVP-CEgOEVwW.mjs → io-QeCr3NPS-Bk-Rfef2.mjs} +5 -5
  44. package/dist/{io-CUFeeOVP-CEgOEVwW.mjs.map → io-QeCr3NPS-Bk-Rfef2.mjs.map} +1 -1
  45. package/dist/{migration-CZrQ_3zY.mjs → migration-Cp6vkFMP.mjs} +3 -3
  46. package/dist/{migration-CZrQ_3zY.mjs.map → migration-Cp6vkFMP.mjs.map} +1 -1
  47. package/dist/migration-tools.d.mts +2 -2
  48. package/dist/migration-tools.mjs +11 -11
  49. package/dist/migration-tools__aggregate.d.mts +1 -1
  50. package/dist/migration-tools__aggregate.mjs +1 -1
  51. package/dist/migration-tools__contract-snapshot-store.mjs +1 -1
  52. package/dist/migration-tools__errors.d.mts +1 -1
  53. package/dist/migration-tools__errors.mjs +1 -1
  54. package/dist/migration-tools__invariants.mjs +1 -1
  55. package/dist/migration-tools__io.mjs +1 -1
  56. package/dist/migration-tools__migration-graph.mjs +1 -1
  57. package/dist/migration-tools__migration.mjs +1 -1
  58. package/dist/migration-tools__ref-resolution.mjs +1 -1
  59. package/dist/migration-tools__refs.mjs +1 -1
  60. package/dist/migration-tools__spaces.mjs +2 -2
  61. package/dist/{ref-CPPMhLAs-Bxf2BJcA.mjs → ref-UzwhFoEX-BdXkOZFM.mjs} +72 -32
  62. package/dist/ref-UzwhFoEX-BdXkOZFM.mjs.map +1 -0
  63. package/dist/{ref-resolution-kNMjYJ26.mjs → ref-resolution-CCIgrFwK.mjs} +2 -2
  64. package/dist/{ref-resolution-kNMjYJ26.mjs.map → ref-resolution-CCIgrFwK.mjs.map} +1 -1
  65. package/dist/{refs-CS997f-J-BxkRLuCE.mjs → refs-BIzM-guE-qMvITMOL.mjs} +3 -3
  66. package/dist/{refs-CS997f-J-BxkRLuCE.mjs.map → refs-BIzM-guE-qMvITMOL.mjs.map} +1 -1
  67. package/dist/{spaces-CtxjvIS0.mjs → spaces-BoFEHLeH.mjs} +5 -5
  68. package/dist/{spaces-CtxjvIS0.mjs.map → spaces-BoFEHLeH.mjs.map} +1 -1
  69. package/dist/{verify-contract-spaces-sL5mlmCX-K2P69KDp.mjs → verify-contract-spaces-BFH2o5RL-CI6uhB5B.mjs} +4 -4
  70. package/dist/{verify-contract-spaces-sL5mlmCX-K2P69KDp.mjs.map → verify-contract-spaces-BFH2o5RL-CI6uhB5B.mjs.map} +1 -1
  71. package/dist/vite-plugin-contract-emit.mjs +3 -3
  72. package/package.json +12 -12
  73. package/dist/aggregate-CJjYCgNP.mjs.map +0 -1
  74. package/dist/aggregate-MAVa_CD0.d.mts.map +0 -1
  75. package/dist/errors-B1xJ5JTo-CrQL55Qf.mjs.map +0 -1
  76. package/dist/exports-CBaM-1YD-CJuFjV3_.mjs.map +0 -1
  77. package/dist/exports-DsqGwQ1B.mjs.map +0 -1
  78. package/dist/ref-CPPMhLAs-Bxf2BJcA.mjs.map +0 -1
@@ -6,9 +6,9 @@ import "./contract-snapshot-store-DrIwu5pn.mjs";
6
6
  import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
7
7
  import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
8
8
  import { a as MigrationRef, t as ContractRef } from "./ref-resolution-BPhR-kta.mjs";
9
- import { $ as executeDbVerify, A as EmitResult, B as PlanQuestion, C as DbUpdateOptions, D as EmitFailure, E as EmitContractConfig, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, H as RenderContractDtsFailure, I as IntrospectOptions, J as StatementText, K as RenderContractDtsSuccess, M as ExecuteDbSignOptions, N as ExecuteDbSignResult, O as EmitFailureCode, P as ExecuteDbVerifyOptions, Q as executeDbSign, R as OnControlProgress, S as DbUpdateFailureCode, T as DbUpdateSuccess, U as RenderContractDtsFailureCode, V as PlanQuestionVerb, W as RenderContractDtsOptions, X as TemporaryValueReport, Y as StatementVerb, Z as VerifyOptions, _ as DbInitSuccess, a as CliStructuredError$2, b as DbSignSpaceOutcome, c as ControlActionName, d as ControlProgressEvent, f as CreateControlClient, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as EmitSuccess, k as EmitOptions, l as ControlClient, m as DbInitFailureCode, n as AppliedStatementReport, o as ContractEmitOptions, p as DbInitFailure, q as SchemaVerifyOptions, r as AskedDataLoss, s as ContractEmitResult, t as AnswerPlanQuestions, u as ControlClientOptions, v as DbSignOptions, w as DbUpdateResult, x as DbUpdateFailure, y as DbSignSpaceFailure, z as PlanAnswer } from "./db-sign-JgxFUHAx-BnA61Q5l.mjs";
10
- import { a as emit } from "./index-Co6ho75S.mjs";
11
- import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-MAVa_CD0.mjs";
9
+ import { $ as executeDbVerify, A as EmitResult, B as PlanQuestion, C as DbUpdateOptions, D as EmitFailure, E as EmitContractConfig, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, H as RenderContractDtsFailure, I as IntrospectOptions, J as StatementText, K as RenderContractDtsSuccess, M as ExecuteDbSignOptions, N as ExecuteDbSignResult, O as EmitFailureCode, P as ExecuteDbVerifyOptions, Q as executeDbSign, R as OnControlProgress, S as DbUpdateFailureCode, T as DbUpdateSuccess, U as RenderContractDtsFailureCode, V as PlanQuestionVerb, W as RenderContractDtsOptions, X as TemporaryValueReport, Y as StatementVerb, Z as VerifyOptions, _ as DbInitSuccess, a as CliStructuredError$2, b as DbSignSpaceOutcome, c as ControlActionName, d as ControlProgressEvent, f as CreateControlClient, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as EmitSuccess, k as EmitOptions, l as ControlClient, m as DbInitFailureCode, n as AppliedStatementReport, o as ContractEmitOptions, p as DbInitFailure, q as SchemaVerifyOptions, r as AskedDataLoss, s as ContractEmitResult, t as AnswerPlanQuestions, u as ControlClientOptions, v as DbSignOptions, w as DbUpdateResult, x as DbUpdateFailure, y as DbSignSpaceFailure, z as PlanAnswer } from "./db-sign-C3GY7-1h-C0whdey8.mjs";
10
+ import { a as emit } from "./index-DbIFi6KU.mjs";
11
+ import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-Da8PGnzg.mjs";
12
12
  import "./metadata-BtscDay2.mjs";
13
13
  import "./package-N9PPdFV_.mjs";
14
14
  import { CliStructuredError } from "@prisma/orm-framework/errors/control";
@@ -623,7 +623,10 @@ interface RunMigrationCheckInputs {
623
623
  * in by the caller, not here.
624
624
  */
625
625
  declare function runMigrationCheck(inputs: RunMigrationCheckInputs): Promise<Result<MigrationCheckResult, CliStructuredError$2>>;
626
- declare function loadAggregateIntegrityViolations(config: PrismaNextConfig$1, migrationsDir: string, verifySnapshotContent?: SnapshotContentVerifier): Promise<readonly IntegrityViolation[]>;
626
+ /**
627
+ * The integrity violations of the project's contract spaces. A contract the family refuses to load, the app's or a snapshot's, such as one holding a default its column type does not hold, is the error, with the refusal's meta; any other failure to load the aggregate leaves the violations to the other checks.
628
+ */
629
+ declare function loadAggregateIntegrityViolations(config: PrismaNextConfig$1, migrationsDir: string, verifySnapshotContent?: SnapshotContentVerifier): Promise<Result<readonly IntegrityViolation[], CliStructuredError$2>>;
627
630
  interface MigrationCheckOutcome {
628
631
  readonly result?: MigrationCheckResult;
629
632
  readonly error?: CliStructuredError$2;
@@ -1 +1 @@
1
- {"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;iBAQzG,gBAAgB,gBAAgB,MAAM,4BAA4B;WACxE;IACP;;;iBAGa,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;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ACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA,MAAM,eAAe;;UAEtB;WACC,QAAQ;;WAER;;iBAEM,qBAAqB,cAAc,uBAAuB,SAAS,sBAAsB,QAAQ,OAAO,cAAc;iBACtH,wBAAwB,cAAc,SAAS,sBAAsB,QAAQ,OAAO,iBAAiB;iBACrG,sBAAsB,SAAS,sBAAsB,QAAQ,OAAO,eAAe;;;;UAI1F;WACC;WACA;;UAED;WACC;aACE;aACA;;WAEF;aACE;aACA;;;cAGC,oBAAoB;iBACjB,0BAA0B;WAChC;WACA;;;;;;;;;;iBAUM,wBAAwB;WAC9B;WACA,cAAc;WACd;WACA;WACA,QAAQ,KAAK;IACpB,QAAQ,OAAO,YAAY;iBACd,sBAAsB,iBAAiB,uBAAuB,cAAc,cAAc,YAAY,aAAa;EAClI;EACA;;;;;;;iBAOe,0BAA0B;WAChC;WACA;WACA;WACA,YAAY;WACZ;WACA;IACP,QAAQ,OAAO,sBAAsB;;;;;iBAKxB,iBAAiB;WACvB;WACA;WACA;WACA;WACA,YAAY;IACnB,QAAQ;WACD;WACA;GACR;;;UAGO;WACC,OAAO;WACP,MAAM;WACN;;iBAEM,mBAAmB,eAAe,SAAS,uBAAuB,OAAO,aAAa;iBACtF,oBAAoB,eAAe;WACzC,OAAO;WACP,MAAM;IACb,OAAO,cAAc;;;;iBAIR,kBAAkB,kBAAkB,QAAQ,OAAO,MAAM;;;;;;;KAOrE;WACM;WACA,UAAU;;WAEV;WACA;WACA;;WAEA;;;;;;UAMD;;WAEC,qBAAqB;WACrB,QAAQ;WACR,aAAa;;;;;;;;;iBASP,kBAAkB,OAAO,yBAAyB,gBAAgB,gCAAgC;;;iBAGlG,iBAAiB"}
1
+ {"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,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gCAAgC;;;iBAGlG,iBAAiB"}
@@ -1,3 +1,3 @@
1
- import { w as errorFromCaught } from "./caught-errors-olsx_RBn-Cg0ilJtv.mjs";
2
- import { $ as refuseMissingInvariantPath, A as executeRefDeleteCommand, B as loadContractRawSafely, C as executeDbSign, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, J as preflightRefAdvancement, K as mapIntegrityViolations, L as listRefsByContractHash, M as executeRefSetCommand, O as executeMigrationPlanCommand, Q as refuseMarkerOutsideGraph, S as executeDbInit, T as executeDbVerify, U as loadContractSpaceAggregateForCli, V as loadContractSource, X as refuseContractSpaceIntegrity, Y as readMigrationRefs, Z as refuseDeclaredExtensionTargetMismatch, _ as deriveStatusEdgeAnnotations, at as resolveContractRefToSnapshot, b as enumerateCheckSpaces, c as appliedHashesFromLedger, ct as resolveStatements, d as buildReadAggregate, dt as runContractSpaceSeedPhase, et as refusePackageCorruptionOnAggregate, f as buildRefAdvancementFields, ft as runMigrationCheck, g as createControlClient, gt as statusForMigrationHash, it as resolveContractRef$1, j as executeRefListCommand, k as executeRefAdvancement, l as buildContractSpaceAggregate, lt as resolveToForPlan, m as computeRefAdvancementName, o as advanceRefSafely, ot as resolveFromForPlan, p as checkSingleTarget, pt as runMigrationList, q as migrationSpaceListEntriesFromAggregate, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveMigrationRef, tt as refuseUnknownInvariants, u as buildMigrationSpaceGraphEntries, v as disposeEmitQueue, w as executeDbUpdate, x as executeContractEmit, y as enrichContract, z as loadAggregateIntegrityViolations } from "./ref-CPPMhLAs-Bxf2BJcA.mjs";
1
+ import { w as errorFromCaught } from "./caught-errors-olsx_RBn-BC8azlie.mjs";
2
+ import { $ as refuseMarkerOutsideGraph, A as executeRefAdvancement, B as loadAggregateIntegrityViolations, C as executeDbInit, D as executeMigrateShowPlan, E as executeDbVerify, H as loadContractSource, I as hasMigrationPath, J as migrationSpaceListEntriesFromAggregate, K as mapContractAtError, M as executeRefListCommand, N as executeRefSetCommand, O as executeMigrationNewCommand, Q as refuseDeclaredExtensionTargetMismatch, R as listRefsByContractHash, S as executeContractEmit, T as executeDbUpdate, V as loadContractRawSafely, W as loadContractSpaceAggregateForCli, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as createControlClient, _t as statusForMigrationHash, at as resolveContractRef$1, b as enrichContract, c as appliedHashesFromLedger, ct as resolveMigrationRef, d as buildReadAggregate, et as refuseMissingInvariantPath, f as buildRefAdvancementFields, ft as runContractSpaceSeedPhase, j as executeRefDeleteCommand, k as executeMigrationPlanCommand, l as buildContractSpaceAggregate, lt as resolveStatements, m as computeRefAdvancementName, mt as runMigrationList, nt as refuseUnknownInvariants, o as advanceRefSafely, ot as resolveContractRefToSnapshot, p as checkSingleTarget, pt as runMigrationCheck, q as mapIntegrityViolations, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveFromForPlan, tt as refusePackageCorruptionOnAggregate, u as buildMigrationSpaceGraphEntries, ut as resolveToForPlan, v as deriveStatusEdgeAnnotations, w as executeDbSign, x as enumerateCheckSpaces, y as disposeEmitQueue } from "./ref-UzwhFoEX-BdXkOZFM.mjs";
3
3
  export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbSign, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveStatements, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
@@ -1,4 +1,4 @@
1
- import { A as EmitResult, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, L as MigrateResult, N as ExecuteDbSignResult, g as DbInitResult, l as ControlClient, w as DbUpdateResult } from "./db-sign-JgxFUHAx-BnA61Q5l.mjs";
1
+ import { A as EmitResult, F as ExecuteDbVerifyResult, G as RenderContractDtsResult, L as MigrateResult, N as ExecuteDbSignResult, g as DbInitResult, l as ControlClient, w as DbUpdateResult } from "./db-sign-C3GY7-1h-C0whdey8.mjs";
2
2
  import { CoreSchemaView, OperationPreview, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
3
3
  import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
4
4
  import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
@@ -231,7 +231,7 @@ var FixtureControlClientImpl = class {
231
231
  toSchemaView(schemaIR) {
232
232
  return this.record("toSchemaView", schemaIR, this.fixtures.toSchemaView);
233
233
  }
234
- inferPslContract(schemaIR) {
234
+ async inferPslContract(schemaIR) {
235
235
  return this.record("inferPslContract", schemaIR, this.fixtures.inferPslContract);
236
236
  }
237
237
  getPslBlockDescriptors() {
@@ -1 +1 @@
1
- {"version":3,"file":"cli__control-api__testing.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/errors/control\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { ok } from \"@internal/utils/result\";\n//#region src/control-api/testing/fixture-client.ts\nconst FIXTURE_STORAGE_HASH = \"7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26\";\nconst FIXTURE_PROFILE_HASH = \"2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae\";\nconst FIXTURE_MIGRATION_HASH = \"fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9\";\nconst FIXTURE_TIMESTAMP = \"2026-01-01T00:00:00.000Z\";\n/** Target id the default fixtures report; overridable per test. */\nconst FIXTURE_TARGET_ID = \"fixture-target\";\n/** Family id the default fixtures report in emitted contract payloads. */\nconst FIXTURE_FAMILY_ID = \"fixture-family\";\nconst fixtureOperation = {\n\tid: \"op-1\",\n\tlabel: \"create User\",\n\toperationClass: \"additive\"\n};\nfunction fixtureMarker() {\n\treturn {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\tcontractJson: null,\n\t\tcanonicalVersion: 1,\n\t\tupdatedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\tappTag: null,\n\t\tmeta: {},\n\t\tinvariants: []\n\t};\n}\n/**\n* Target-neutral defaults for every operation: a healthy database whose\n* marker, ledger, and schema all match the fixture contract.\n*/\nfunction defaultControlClientFixtures() {\n\tconst contract = {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH\n\t};\n\tconst target = {\n\t\texpected: FIXTURE_TARGET_ID,\n\t\tactual: FIXTURE_TARGET_ID\n\t};\n\tconst schemaVerify = {\n\t\tok: true,\n\t\tsummary: \"Schema satisfies contract\",\n\t\tcontract,\n\t\ttarget,\n\t\tschema: { issues: [] },\n\t\ttimings: { total: 5 }\n\t};\n\tconst applySuccess = {\n\t\tmode: \"apply\",\n\t\tappliedStatements: [],\n\t\tdataLoss: [],\n\t\taccessWidening: [],\n\t\ttemporaryValues: [],\n\t\tplan: { operations: [fixtureOperation] },\n\t\tdestination: contract,\n\t\texecution: {\n\t\t\toperationsPlanned: 1,\n\t\t\toperationsExecuted: 1\n\t\t},\n\t\tmarker: contract,\n\t\tperSpace: [{\n\t\t\tspaceId: APP_SPACE_ID,\n\t\t\tkind: \"app\",\n\t\t\toperations: [fixtureOperation],\n\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t}],\n\t\tsummary: \"Applied 1 operation\"\n\t};\n\treturn {\n\t\tverify: {\n\t\t\tok: true,\n\t\t\tsummary: \"Database matches contract\",\n\t\t\tcontract,\n\t\t\tmarker: contract,\n\t\t\ttarget,\n\t\t\ttimings: { total: 5 }\n\t\t},\n\t\tschemaVerify,\n\t\tdbInit: ok(applySuccess),\n\t\tdbUpdate: ok(applySuccess),\n\t\tdbVerify: ok({\n\t\t\tschemaResults: /* @__PURE__ */ new Map([[APP_SPACE_ID, schemaVerify]]),\n\t\t\tunclaimed: [],\n\t\t\tspaceOrder: [APP_SPACE_ID],\n\t\t\tappSpaceId: APP_SPACE_ID,\n\t\t\tmarkerDrift: null\n\t\t}),\n\t\tdbSign: ok({ spaces: [{\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tstatus: \"created\",\n\t\t\tcontract: {\n\t\t\t\tstorageHash: contract.storageHash,\n\t\t\t\tprofileHash: contract.profileHash\n\t\t\t}\n\t\t}] }),\n\t\treadMarker: fixtureMarker(),\n\t\treadAllMarkers: /* @__PURE__ */ new Map([[APP_SPACE_ID, fixtureMarker()]]),\n\t\treadLedger: [{\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tmigrationName: \"20260101000000_init\",\n\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\tfrom: null,\n\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\tappliedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\t\toperationCount: 1\n\t\t}],\n\t\tmigrate: ok({\n\t\t\tmigrationsApplied: 1,\n\t\t\tmarkerHash: FIXTURE_STORAGE_HASH,\n\t\t\tapplied: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tdirName: \"20260101000000_init\",\n\t\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\t\tfrom: FIXTURE_PROFILE_HASH,\n\t\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\t\toperationsExecuted: 1\n\t\t\t}],\n\t\t\tsummary: \"Applied 1 migration\",\n\t\t\tperSpace: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tkind: \"app\",\n\t\t\t\toperations: [fixtureOperation],\n\t\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t\t}]\n\t\t}),\n\t\tintrospect: {},\n\t\ttoSchemaView: void 0,\n\t\tinferPslContract: void 0,\n\t\tgetPslBlockDescriptors: {},\n\t\ttoOperationPreview: void 0,\n\t\temit: ok({\n\t\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\t\tcontractJson: `{\"targetFamily\":\"${FIXTURE_FAMILY_ID}\"}`,\n\t\t\tcontractDts: `export type Contract = { targetFamily: \"${FIXTURE_FAMILY_ID}\" };`\n\t\t}),\n\t\trenderContractDts: ok({ contractDts: `export type Contract = { targetFamily: \"${FIXTURE_FAMILY_ID}\" };` })\n\t};\n}\nvar FixtureControlClientImpl = class {\n\tcalls = [];\n\tconnected = false;\n\tinitialized = false;\n\tfixtures;\n\tconstructor(overrides) {\n\t\tthis.fixtures = {\n\t\t\t...defaultControlClientFixtures(),\n\t\t\t...overrides\n\t\t};\n\t}\n\trecord(operation, options, value) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation,\n\t\t\toptions\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Records an operation the real client runs against a driver, so a caller\n\t* that skipped `connect()` fails here exactly as it would in production.\n\t*/\n\trecordConnected(operation, options, value) {\n\t\tconst supplied = typeof options === \"object\" && options !== null ? Reflect.get(options, \"connection\") : void 0;\n\t\tif (supplied !== void 0) this.markConnected(supplied);\n\t\tif (!this.connected) throw new CliStructuredError(\"DRIVER.NOT_CONNECTED\", \"Not connected. Call connect(connection) first.\");\n\t\treturn this.record(operation, options, value);\n\t}\n\tinit() {\n\t\tif (this.initialized) return;\n\t\tthis.initialized = true;\n\t\tthis.calls.push({\n\t\t\toperation: \"init\",\n\t\t\toptions: void 0\n\t\t});\n\t}\n\tmarkConnected(connection) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation: \"connect\",\n\t\t\toptions: connection\n\t\t});\n\t\tthis.connected = true;\n\t}\n\tasync connect(connection) {\n\t\tthis.markConnected(connection);\n\t}\n\tasync close() {\n\t\tthis.calls.push({\n\t\t\toperation: \"close\",\n\t\t\toptions: void 0\n\t\t});\n\t\tthis.connected = false;\n\t}\n\tasync verify(options) {\n\t\treturn this.recordConnected(\"verify\", options, this.fixtures.verify);\n\t}\n\tasync schemaVerify(options) {\n\t\treturn this.recordConnected(\"schemaVerify\", options, this.fixtures.schemaVerify);\n\t}\n\tasync dbInit(options) {\n\t\treturn this.recordConnected(\"dbInit\", options, this.fixtures.dbInit);\n\t}\n\tasync dbUpdate(options) {\n\t\treturn this.recordConnected(\"dbUpdate\", options, this.fixtures.dbUpdate);\n\t}\n\tasync dbVerify(options) {\n\t\treturn this.recordConnected(\"dbVerify\", options, this.fixtures.dbVerify);\n\t}\n\tasync dbSign(options) {\n\t\treturn this.recordConnected(\"dbSign\", options, this.fixtures.dbSign);\n\t}\n\tasync readMarker() {\n\t\treturn this.recordConnected(\"readMarker\", void 0, this.fixtures.readMarker);\n\t}\n\tasync readAllMarkers() {\n\t\treturn this.recordConnected(\"readAllMarkers\", void 0, this.fixtures.readAllMarkers);\n\t}\n\tasync readLedger(space) {\n\t\treturn this.recordConnected(\"readLedger\", space, this.fixtures.readLedger);\n\t}\n\tasync migrate(options) {\n\t\treturn this.recordConnected(\"migrate\", options, this.fixtures.migrate);\n\t}\n\tasync introspect(options) {\n\t\treturn this.recordConnected(\"introspect\", options, this.fixtures.introspect);\n\t}\n\ttoSchemaView(schemaIR) {\n\t\treturn this.record(\"toSchemaView\", schemaIR, this.fixtures.toSchemaView);\n\t}\n\tinferPslContract(schemaIR) {\n\t\treturn this.record(\"inferPslContract\", schemaIR, this.fixtures.inferPslContract);\n\t}\n\tgetPslBlockDescriptors() {\n\t\treturn this.record(\"getPslBlockDescriptors\", void 0, this.fixtures.getPslBlockDescriptors);\n\t}\n\ttoOperationPreview(operations) {\n\t\treturn this.record(\"toOperationPreview\", operations, this.fixtures.toOperationPreview);\n\t}\n\tasync emit(options) {\n\t\treturn this.record(\"emit\", options, this.fixtures.emit);\n\t}\n\tasync renderContractDts(options) {\n\t\treturn this.record(\"renderContractDts\", options, this.fixtures.renderContractDts);\n\t}\n};\n/**\n* Creates a fixture-backed {@link ControlClient} double for host and product\n* tests: every operation resolves a realistic fixture payload without a\n* database or driver, and each fixture is overridable per test.\n*/\nfunction createFixtureControlClient(overrides) {\n\treturn new FixtureControlClientImpl(overrides);\n}\n//#endregion\nexport { FIXTURE_FAMILY_ID, FIXTURE_MIGRATION_HASH, FIXTURE_PROFILE_HASH, FIXTURE_STORAGE_HASH, FIXTURE_TARGET_ID, createFixtureControlClient, defaultControlClientFixtures };\n\n//# sourceMappingURL=control-api-testing.mjs.map"],"mappings":";;;;AAIA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;CACxB,IAAI;CACJ,OAAO;CACP,gBAAgB;AACjB;AACA,SAAS,gBAAgB;CACxB,OAAO;EACN,aAAa;EACb,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,2BAA2B,IAAI,KAAK,iBAAiB;EACrD,QAAQ;EACR,MAAM,CAAC;EACP,YAAY,CAAC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S,UAAU;CAC5E;CACA,aAAa,UAAU;EACtB,OAAO,KAAK,OAAO,gBAAgB,UAAU,KAAK,SAAS,YAAY;CACxE;CACA,iBAAiB,UAAU;EAC1B,OAAO,KAAK,OAAO,oBAAoB,UAAU,KAAK,SAAS,gBAAgB;CAChF;CACA,yBAAyB;EACxB,OAAO,KAAK,OAAO,0BAA0B,KAAK,GAAG,KAAK,SAAS,sBAAsB;CAC1F;CACA,mBAAmB,YAAY;EAC9B,OAAO,KAAK,OAAO,sBAAsB,YAAY,KAAK,SAAS,kBAAkB;CACtF;CACA,MAAM,KAAK,SAAS;EACnB,OAAO,KAAK,OAAO,QAAQ,SAAS,KAAK,SAAS,IAAI;CACvD;CACA,MAAM,kBAAkB,SAAS;EAChC,OAAO,KAAK,OAAO,qBAAqB,SAAS,KAAK,SAAS,iBAAiB;CACjF;AACD;;;;;;AAMA,SAAS,2BAA2B,WAAW;CAC9C,OAAO,IAAI,yBAAyB,SAAS;AAC9C"}
1
+ {"version":3,"file":"cli__control-api__testing.mjs","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api-testing.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/errors/control\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { ok } from \"@internal/utils/result\";\n//#region src/control-api/testing/fixture-client.ts\nconst FIXTURE_STORAGE_HASH = \"7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26\";\nconst FIXTURE_PROFILE_HASH = \"2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae\";\nconst FIXTURE_MIGRATION_HASH = \"fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9\";\nconst FIXTURE_TIMESTAMP = \"2026-01-01T00:00:00.000Z\";\n/** Target id the default fixtures report; overridable per test. */\nconst FIXTURE_TARGET_ID = \"fixture-target\";\n/** Family id the default fixtures report in emitted contract payloads. */\nconst FIXTURE_FAMILY_ID = \"fixture-family\";\nconst fixtureOperation = {\n\tid: \"op-1\",\n\tlabel: \"create User\",\n\toperationClass: \"additive\"\n};\nfunction fixtureMarker() {\n\treturn {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\tcontractJson: null,\n\t\tcanonicalVersion: 1,\n\t\tupdatedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\tappTag: null,\n\t\tmeta: {},\n\t\tinvariants: []\n\t};\n}\n/**\n* Target-neutral defaults for every operation: a healthy database whose\n* marker, ledger, and schema all match the fixture contract.\n*/\nfunction defaultControlClientFixtures() {\n\tconst contract = {\n\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\tprofileHash: FIXTURE_PROFILE_HASH\n\t};\n\tconst target = {\n\t\texpected: FIXTURE_TARGET_ID,\n\t\tactual: FIXTURE_TARGET_ID\n\t};\n\tconst schemaVerify = {\n\t\tok: true,\n\t\tsummary: \"Schema satisfies contract\",\n\t\tcontract,\n\t\ttarget,\n\t\tschema: { issues: [] },\n\t\ttimings: { total: 5 }\n\t};\n\tconst applySuccess = {\n\t\tmode: \"apply\",\n\t\tappliedStatements: [],\n\t\tdataLoss: [],\n\t\taccessWidening: [],\n\t\ttemporaryValues: [],\n\t\tplan: { operations: [fixtureOperation] },\n\t\tdestination: contract,\n\t\texecution: {\n\t\t\toperationsPlanned: 1,\n\t\t\toperationsExecuted: 1\n\t\t},\n\t\tmarker: contract,\n\t\tperSpace: [{\n\t\t\tspaceId: APP_SPACE_ID,\n\t\t\tkind: \"app\",\n\t\t\toperations: [fixtureOperation],\n\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t}],\n\t\tsummary: \"Applied 1 operation\"\n\t};\n\treturn {\n\t\tverify: {\n\t\t\tok: true,\n\t\t\tsummary: \"Database matches contract\",\n\t\t\tcontract,\n\t\t\tmarker: contract,\n\t\t\ttarget,\n\t\t\ttimings: { total: 5 }\n\t\t},\n\t\tschemaVerify,\n\t\tdbInit: ok(applySuccess),\n\t\tdbUpdate: ok(applySuccess),\n\t\tdbVerify: ok({\n\t\t\tschemaResults: /* @__PURE__ */ new Map([[APP_SPACE_ID, schemaVerify]]),\n\t\t\tunclaimed: [],\n\t\t\tspaceOrder: [APP_SPACE_ID],\n\t\t\tappSpaceId: APP_SPACE_ID,\n\t\t\tmarkerDrift: null\n\t\t}),\n\t\tdbSign: ok({ spaces: [{\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tstatus: \"created\",\n\t\t\tcontract: {\n\t\t\t\tstorageHash: contract.storageHash,\n\t\t\t\tprofileHash: contract.profileHash\n\t\t\t}\n\t\t}] }),\n\t\treadMarker: fixtureMarker(),\n\t\treadAllMarkers: /* @__PURE__ */ new Map([[APP_SPACE_ID, fixtureMarker()]]),\n\t\treadLedger: [{\n\t\t\tspace: APP_SPACE_ID,\n\t\t\tmigrationName: \"20260101000000_init\",\n\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\tfrom: null,\n\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\tappliedAt: /* @__PURE__ */ new Date(FIXTURE_TIMESTAMP),\n\t\t\toperationCount: 1\n\t\t}],\n\t\tmigrate: ok({\n\t\t\tmigrationsApplied: 1,\n\t\t\tmarkerHash: FIXTURE_STORAGE_HASH,\n\t\t\tapplied: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tdirName: \"20260101000000_init\",\n\t\t\t\tmigrationHash: FIXTURE_MIGRATION_HASH,\n\t\t\t\tfrom: FIXTURE_PROFILE_HASH,\n\t\t\t\tto: FIXTURE_STORAGE_HASH,\n\t\t\t\toperationsExecuted: 1\n\t\t\t}],\n\t\t\tsummary: \"Applied 1 migration\",\n\t\t\tperSpace: [{\n\t\t\t\tspaceId: APP_SPACE_ID,\n\t\t\t\tkind: \"app\",\n\t\t\t\toperations: [fixtureOperation],\n\t\t\t\tmarker: { storageHash: FIXTURE_STORAGE_HASH }\n\t\t\t}]\n\t\t}),\n\t\tintrospect: {},\n\t\ttoSchemaView: void 0,\n\t\tinferPslContract: void 0,\n\t\tgetPslBlockDescriptors: {},\n\t\ttoOperationPreview: void 0,\n\t\temit: ok({\n\t\t\tstorageHash: FIXTURE_STORAGE_HASH,\n\t\t\tprofileHash: FIXTURE_PROFILE_HASH,\n\t\t\tcontractJson: `{\"targetFamily\":\"${FIXTURE_FAMILY_ID}\"}`,\n\t\t\tcontractDts: `export type Contract = { targetFamily: \"${FIXTURE_FAMILY_ID}\" };`\n\t\t}),\n\t\trenderContractDts: ok({ contractDts: `export type Contract = { targetFamily: \"${FIXTURE_FAMILY_ID}\" };` })\n\t};\n}\nvar FixtureControlClientImpl = class {\n\tcalls = [];\n\tconnected = false;\n\tinitialized = false;\n\tfixtures;\n\tconstructor(overrides) {\n\t\tthis.fixtures = {\n\t\t\t...defaultControlClientFixtures(),\n\t\t\t...overrides\n\t\t};\n\t}\n\trecord(operation, options, value) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation,\n\t\t\toptions\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Records an operation the real client runs against a driver, so a caller\n\t* that skipped `connect()` fails here exactly as it would in production.\n\t*/\n\trecordConnected(operation, options, value) {\n\t\tconst supplied = typeof options === \"object\" && options !== null ? Reflect.get(options, \"connection\") : void 0;\n\t\tif (supplied !== void 0) this.markConnected(supplied);\n\t\tif (!this.connected) throw new CliStructuredError(\"DRIVER.NOT_CONNECTED\", \"Not connected. Call connect(connection) first.\");\n\t\treturn this.record(operation, options, value);\n\t}\n\tinit() {\n\t\tif (this.initialized) return;\n\t\tthis.initialized = true;\n\t\tthis.calls.push({\n\t\t\toperation: \"init\",\n\t\t\toptions: void 0\n\t\t});\n\t}\n\tmarkConnected(connection) {\n\t\tthis.init();\n\t\tthis.calls.push({\n\t\t\toperation: \"connect\",\n\t\t\toptions: connection\n\t\t});\n\t\tthis.connected = true;\n\t}\n\tasync connect(connection) {\n\t\tthis.markConnected(connection);\n\t}\n\tasync close() {\n\t\tthis.calls.push({\n\t\t\toperation: \"close\",\n\t\t\toptions: void 0\n\t\t});\n\t\tthis.connected = false;\n\t}\n\tasync verify(options) {\n\t\treturn this.recordConnected(\"verify\", options, this.fixtures.verify);\n\t}\n\tasync schemaVerify(options) {\n\t\treturn this.recordConnected(\"schemaVerify\", options, this.fixtures.schemaVerify);\n\t}\n\tasync dbInit(options) {\n\t\treturn this.recordConnected(\"dbInit\", options, this.fixtures.dbInit);\n\t}\n\tasync dbUpdate(options) {\n\t\treturn this.recordConnected(\"dbUpdate\", options, this.fixtures.dbUpdate);\n\t}\n\tasync dbVerify(options) {\n\t\treturn this.recordConnected(\"dbVerify\", options, this.fixtures.dbVerify);\n\t}\n\tasync dbSign(options) {\n\t\treturn this.recordConnected(\"dbSign\", options, this.fixtures.dbSign);\n\t}\n\tasync readMarker() {\n\t\treturn this.recordConnected(\"readMarker\", void 0, this.fixtures.readMarker);\n\t}\n\tasync readAllMarkers() {\n\t\treturn this.recordConnected(\"readAllMarkers\", void 0, this.fixtures.readAllMarkers);\n\t}\n\tasync readLedger(space) {\n\t\treturn this.recordConnected(\"readLedger\", space, this.fixtures.readLedger);\n\t}\n\tasync migrate(options) {\n\t\treturn this.recordConnected(\"migrate\", options, this.fixtures.migrate);\n\t}\n\tasync introspect(options) {\n\t\treturn this.recordConnected(\"introspect\", options, this.fixtures.introspect);\n\t}\n\ttoSchemaView(schemaIR) {\n\t\treturn this.record(\"toSchemaView\", schemaIR, this.fixtures.toSchemaView);\n\t}\n\tasync inferPslContract(schemaIR) {\n\t\treturn this.record(\"inferPslContract\", schemaIR, this.fixtures.inferPslContract);\n\t}\n\tgetPslBlockDescriptors() {\n\t\treturn this.record(\"getPslBlockDescriptors\", void 0, this.fixtures.getPslBlockDescriptors);\n\t}\n\ttoOperationPreview(operations) {\n\t\treturn this.record(\"toOperationPreview\", operations, this.fixtures.toOperationPreview);\n\t}\n\tasync emit(options) {\n\t\treturn this.record(\"emit\", options, this.fixtures.emit);\n\t}\n\tasync renderContractDts(options) {\n\t\treturn this.record(\"renderContractDts\", options, this.fixtures.renderContractDts);\n\t}\n};\n/**\n* Creates a fixture-backed {@link ControlClient} double for host and product\n* tests: every operation resolves a realistic fixture payload without a\n* database or driver, and each fixture is overridable per test.\n*/\nfunction createFixtureControlClient(overrides) {\n\treturn new FixtureControlClientImpl(overrides);\n}\n//#endregion\nexport { FIXTURE_FAMILY_ID, FIXTURE_MIGRATION_HASH, FIXTURE_PROFILE_HASH, FIXTURE_STORAGE_HASH, FIXTURE_TARGET_ID, createFixtureControlClient, defaultControlClientFixtures };\n\n//# sourceMappingURL=control-api-testing.mjs.map"],"mappings":";;;;AAIA,MAAM,uBAAuB;AAC7B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;;AAE1B,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;CACxB,IAAI;CACJ,OAAO;CACP,gBAAgB;AACjB;AACA,SAAS,gBAAgB;CACxB,OAAO;EACN,aAAa;EACb,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,2BAA2B,IAAI,KAAK,iBAAiB;EACrD,QAAQ;EACR,MAAM,CAAC;EACP,YAAY,CAAC;CACd;AACD;;;;;AAKA,SAAS,+BAA+B;CACvC,MAAM,WAAW;EAChB,aAAa;EACb,aAAa;CACd;CACA,MAAM,SAAS;EACd,UAAU;EACV,QAAQ;CACT;CACA,MAAM,eAAe;EACpB,IAAI;EACJ,SAAS;EACT;EACA;EACA,QAAQ,EAAE,QAAQ,CAAC,EAAE;EACrB,SAAS,EAAE,OAAO,EAAE;CACrB;CACA,MAAM,eAAe;EACpB,MAAM;EACN,mBAAmB,CAAC;EACpB,UAAU,CAAC;EACX,gBAAgB,CAAC;EACjB,iBAAiB,CAAC;EAClB,MAAM,EAAE,YAAY,CAAC,gBAAgB,EAAE;EACvC,aAAa;EACb,WAAW;GACV,mBAAm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CACvD;CACA,MAAM,kBAAkB,SAAS;EAChC,OAAO,KAAK,OAAO,qBAAqB,SAAS,KAAK,SAAS,iBAAiB;CACjF;AACD;;;;;;AAMA,SAAS,2BAA2B,WAAW;CAC9C,OAAO,IAAI,yBAAyB,SAAS;AAC9C"}
@@ -1,7 +1,7 @@
1
- import { g as requireConfigSections, p as loadConfigForSections, s as findNearestConfigPathForFile, t as CONFIG_FILENAME, u as loadConfig } from "./exports-D1qqHTu1.mjs";
2
- import { g as errorInvalidJson } from "./errors-B1xJ5JTo-CrQL55Qf.mjs";
3
- import { rt as migrationsDirFor, w as errorFromCaught } from "./caught-errors-olsx_RBn-Cg0ilJtv.mjs";
4
- import { r as buildMigrationArtifacts } from "./migration-CZrQ_3zY.mjs";
1
+ import { g as requireConfigSections, p as loadConfigForSections, s as findNearestConfigPathForFile, t as CONFIG_FILENAME, u as loadConfig } from "./exports-DH1C-t5Q.mjs";
2
+ import { g as errorInvalidJson } from "./errors-nnIQQvmN-oeANP4Yi.mjs";
3
+ import { rt as migrationsDirFor, w as errorFromCaught } from "./caught-errors-olsx_RBn-BC8azlie.mjs";
4
+ import { r as buildMigrationArtifacts } from "./migration-Cp6vkFMP.mjs";
5
5
  import { errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag } from "@prisma/orm-framework/errors/control";
6
6
  import { createControlStack } from "@prisma/orm-framework/components/control";
7
7
  import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
@@ -1,2 +1,2 @@
1
- import { _ as validateOrmSection, a as expandContractInputs, c as globContractInputMatching, d as loadConfigFiles, f as loadConfigForFile, g as requireConfigSections, h as ormConfigSection, i as evaluateConfigModule, l as isConfigSection, m as ormConfigSchema, n as ORM_CONFIG_SECTION_NAME, p as loadConfigForSections, r as buildLoadedConfig, s as findNearestConfigPathForFile, t as CONFIG_FILENAME, u as loadConfig } from "./exports-D1qqHTu1.mjs";
1
+ import { _ as validateOrmSection, a as expandContractInputs, c as globContractInputMatching, d as loadConfigFiles, f as loadConfigForFile, g as requireConfigSections, h as ormConfigSection, i as evaluateConfigModule, l as isConfigSection, m as ormConfigSchema, n as ORM_CONFIG_SECTION_NAME, p as loadConfigForSections, r as buildLoadedConfig, s as findNearestConfigPathForFile, t as CONFIG_FILENAME, u as loadConfig } from "./exports-DH1C-t5Q.mjs";
2
2
  export { CONFIG_FILENAME, ORM_CONFIG_SECTION_NAME, buildLoadedConfig, evaluateConfigModule, expandContractInputs, findNearestConfigPathForFile, globContractInputMatching, isConfigSection, loadConfig, loadConfigFiles, loadConfigForFile, loadConfigForSections, ormConfigSchema, ormConfigSection, requireConfigSections, validateOrmSection };
@@ -1,4 +1,4 @@
1
- import { a as errorContractSnapshotHashMismatch, g as errorInvalidJson, i as errorContractSnapshotContentMismatch, o as errorContractSnapshotMissing, t as MigrationToolsError } from "./errors-B1xJ5JTo-CrQL55Qf.mjs";
1
+ import { a as errorContractSnapshotHashMismatch, g as errorInvalidJson, i as errorContractSnapshotContentMismatch, o as errorContractSnapshotMissing, t as MigrationToolsError } from "./errors-nnIQQvmN-oeANP4Yi.mjs";
2
2
  import { n as recomputePublishedStorageHash } from "./hash-BAZVWU4a-BQovI7hF.mjs";
3
3
  import { CONTRACT_SNAPSHOTS_DIRNAME, storageHashHex } from "@prisma/orm-framework/components/control";
4
4
  import { join, relative } from "pathe";
@@ -6,7 +6,7 @@ import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
6
6
  import { randomBytes } from "node:crypto";
7
7
  import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
8
8
  import { blindCast } from "@prisma/orm-framework/utils/casts";
9
- //#region ../../../1-framework/3-tooling/migration/dist/contract-snapshot-store-CNu34KAd.mjs
9
+ //#region ../../../1-framework/3-tooling/migration/dist/contract-snapshot-store-DwEs5EOp.mjs
10
10
  const CONTRACT_JSON_FILE = "contract.json";
11
11
  const CONTRACT_DTS_FILE = "contract.d.ts";
12
12
  function hasErrnoCode(error, code) {
@@ -143,4 +143,4 @@ function snapshotsImportPathFrom(packageDir, migrationsDir) {
143
143
  //#endregion
144
144
  export { snapshotsImportPathFrom as a, readContractSnapshotJsonTolerant as i, createSnapshotContentVerifier as n, writeContractSnapshot as o, readContractSnapshotJson as r, contractSnapshotDir as t };
145
145
 
146
- //# sourceMappingURL=contract-snapshot-store-CNu34KAd-D9xN1Sll.mjs.map
146
+ //# sourceMappingURL=contract-snapshot-store-DwEs5EOp-3qAvnEf3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-snapshot-store-CNu34KAd-D9xN1Sll.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/contract-snapshot-store-CNu34KAd.mjs"],"sourcesContent":["import { a as errorContractSnapshotHashMismatch, g as errorInvalidJson, i as errorContractSnapshotContentMismatch, o as errorContractSnapshotMissing, t as MigrationToolsError } from \"./errors-B1xJ5JTo.mjs\";\nimport { n as recomputePublishedStorageHash } from \"./hash-BAZVWU4a.mjs\";\nimport { join, relative } from \"pathe\";\nimport { mkdir, readFile, rename, rm, stat, writeFile } from \"node:fs/promises\";\nimport { randomBytes } from \"node:crypto\";\nimport { CONTRACT_SNAPSHOTS_DIRNAME, storageHashHex } from \"@internal/framework-components/control\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/contract-snapshot-store.ts\nconst CONTRACT_JSON_FILE = \"contract.json\";\nconst CONTRACT_DTS_FILE = \"contract.d.ts\";\nfunction hasErrnoCode(error, code) {\n\treturn error instanceof Error && blindCast(error).code === code;\n}\nasync function directoryExists(p) {\n\ttry {\n\t\treturn (await stat(p)).isDirectory();\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) return false;\n\t\tthrow error;\n\t}\n}\nfunction contractSnapshotDir(migrationsDir, storageHash) {\n\treturn join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME, storageHashHex(storageHash));\n}\nfunction createSnapshotContentVerifier(hooks) {\n\treturn { assertSnapshotContentMatches(contractJson, storageHash, jsonPath) {\n\t\tconst record = blindCast(contractJson ?? {});\n\t\tconst computedHash = recomputePublishedStorageHash({\n\t\t\ttarget: record.target,\n\t\t\ttargetFamily: record.targetFamily,\n\t\t\tstorage: record.storage,\n\t\t\thooks\n\t\t});\n\t\tif (computedHash !== storageHash) throw errorContractSnapshotContentMismatch({\n\t\t\tstorageHash,\n\t\t\tcomputedHash,\n\t\t\tjsonPath\n\t\t});\n\t} };\n}\nasync function writeContractSnapshot(migrationsDir, storageHash, input) {\n\tconst dir = contractSnapshotDir(migrationsDir, storageHash);\n\tconst actualStorageHash = blindCast(input.contractJson).storage?.storageHash;\n\tif (actualStorageHash !== storageHash) throw errorContractSnapshotHashMismatch(storageHash, typeof actualStorageHash === \"string\" ? actualStorageHash : String(actualStorageHash), dir);\n\tif (await directoryExists(dir)) return {\n\t\twritten: false,\n\t\tdir\n\t};\n\tconst tmpDir = join(join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME), `.tmp-${storageHashHex(storageHash)}-${Date.now()}-${randomBytes(4).toString(\"hex\")}`);\n\tawait mkdir(tmpDir, { recursive: true });\n\tconst jsonContent = `${canonicalizeJson(input.contractJson)}\\n`;\n\tconst dtsContent = input.contractDts.endsWith(\"\\n\") ? input.contractDts : `${input.contractDts}\\n`;\n\ttry {\n\t\tawait writeFile(join(tmpDir, CONTRACT_JSON_FILE), jsonContent);\n\t\tawait writeFile(join(tmpDir, CONTRACT_DTS_FILE), dtsContent);\n\t\tawait rename(tmpDir, dir);\n\t} catch (error) {\n\t\tawait rm(tmpDir, {\n\t\t\trecursive: true,\n\t\t\tforce: true\n\t\t});\n\t\tif (hasErrnoCode(error, \"EEXIST\") || hasErrnoCode(error, \"ENOTEMPTY\")) return {\n\t\t\twritten: false,\n\t\t\tdir\n\t\t};\n\t\tthrow error;\n\t}\n\treturn {\n\t\twritten: true,\n\t\tdir\n\t};\n}\n/**\n* When `verifyContent` is supplied, the parsed snapshot's content is checked\n* against the hash it was addressed by before being returned — the store is\n* content-addressed, and a snapshot edited in place under an unchanged hash\n* would otherwise flow into planning as if it were the recorded contract.\n*/\nasync function readContractSnapshotJson(migrationsDir, storageHash, verifyContent) {\n\tconst jsonPath = join(contractSnapshotDir(migrationsDir, storageHash), CONTRACT_JSON_FILE);\n\tlet raw;\n\ttry {\n\t\traw = await readFile(jsonPath, \"utf-8\");\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) throw errorContractSnapshotMissing(storageHash, jsonPath);\n\t\tthrow error;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch (e) {\n\t\tthrow errorInvalidJson(jsonPath, e instanceof Error ? e.message : String(e));\n\t}\n\tverifyContent?.assertSnapshotContentMatches(parsed, storageHash, jsonPath);\n\treturn parsed;\n}\n/**\n* Tolerant read: a missing store entry (ENOENT), an unparseable\n* `contract.json`, the JSON literal `null`, or a `storageHash` that isn't a\n* well-formed 64-hex value all resolve to `undefined` rather than\n* throwing — parity with the catch-all tolerance of the pre-store\n* `readEndContractJson` (`io.ts`), which never validated the hash it was\n* keyed by either. Any other fs error (e.g. `EACCES` on a present-but-\n* unreadable file) propagates rather than silently loading a contract-less\n* package. When `verifyContent` is supplied, an entry whose content does not\n* recompute to its address also resolves to `undefined` — tampered content\n* must not flow onward, and the strict store reads report the same file\n* loudly as `MIGRATION.CONTRACT_SNAPSHOT_CONTENT_MISMATCH`.\n*/\nasync function readContractSnapshotJsonTolerant(migrationsDir, storageHash, verifyContent) {\n\tlet jsonPath;\n\ttry {\n\t\tjsonPath = join(contractSnapshotDir(migrationsDir, storageHash), CONTRACT_JSON_FILE);\n\t} catch {\n\t\treturn;\n\t}\n\tlet raw;\n\ttry {\n\t\traw = await readFile(jsonPath, \"utf-8\");\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) return;\n\t\tthrow error;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch {\n\t\treturn;\n\t}\n\tif (parsed === null) return;\n\ttry {\n\t\tverifyContent?.assertSnapshotContentMatches(parsed, storageHash, jsonPath);\n\t} catch (error) {\n\t\tif (MigrationToolsError.is(error) && error.code === \"MIGRATION.CONTRACT_SNAPSHOT_CONTENT_MISMATCH\") return;\n\t\tthrow error;\n\t}\n\treturn parsed;\n}\nfunction snapshotsImportPathFrom(packageDir, migrationsDir) {\n\treturn relative(packageDir, join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME)).split(\"\\\\\").join(\"/\");\n}\n//#endregion\nexport { snapshotsImportPathFrom as a, readContractSnapshotJsonTolerant as i, createSnapshotContentVerifier as n, writeContractSnapshot as o, readContractSnapshotJson as r, contractSnapshotDir as t };\n\n//# sourceMappingURL=contract-snapshot-store-CNu34KAd.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,SAAS,aAAa,OAAO,MAAM;CAClC,OAAO,iBAAiB,SAAS,UAAU,KAAK,CAAC,CAAC,SAAS;AAC5D;AACA,eAAe,gBAAgB,GAAG;CACjC,IAAI;EACH,QAAQ,MAAM,KAAK,CAAC,EAAA,CAAG,YAAY;CACpC,SAAS,OAAO;EACf,IAAI,aAAa,OAAO,QAAQ,GAAG,OAAO;EAC1C,MAAM;CACP;AACD;AACA,SAAS,oBAAoB,eAAe,aAAa;CACxD,OAAO,KAAK,eAAe,4BAA4B,eAAe,WAAW,CAAC;AACnF;AACA,SAAS,8BAA8B,OAAO;CAC7C,OAAO,EAAE,6BAA6B,cAAc,aAAa,UAAU;EAC1E,MAAM,SAAS,UAAU,gBAAgB,CAAC,CAAC;EAC3C,MAAM,eAAe,8BAA8B;GAClD,QAAQ,OAAO;GACf,cAAc,OAAO;GACrB,SAAS,OAAO;GAChB;EACD,CAAC;EACD,IAAI,iBAAiB,aAAa,MAAM,qCAAqC;GAC5E;GACA;GACA;EACD,CAAC;CACF,EAAE;AACH;AACA,eAAe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AC3F,MAAM;CACP;CACA,IAAI;CACJ,IAAI;EACH,SAAS,KAAK,MAAM,GAAG;CACxB,SAAS,GAAG;EACX,MAAM,iBAAiB,UAAU,aAAa,QAAQ,EAAE,UAAU,OAAO,CAAC,CAAC;CAC5E;CACA,eAAe,6BAA6B,QAAQ,aAAa,QAAQ;CACzE,OAAO;AACR;;;;;;;;;;;;;;AAcA,eAAe,iCAAiC,eAAe,aAAa,eAAe;CAC1F,IAAI;CACJ,IAAI;EACH,WAAW,KAAK,oBAAoB,eAAe,WAAW,GAAG,kBAAkB;CACpF,QAAQ;EACP;CACD;CACA,IAAI;CACJ,IAAI;EACH,MAAM,MAAM,SAAS,UAAU,OAAO;CACvC,SAAS,OAAO;EACf,IAAI,aAAa,OAAO,QAAQ,GAAG;EACnC,MAAM;CACP;CACA,IAAI;CACJ,IAAI;EACH,SAAS,KAAK,MAAM,GAAG;CACxB,QAAQ;EACP;CACD;CACA,IAAI,WAAW,MAAM;CACrB,IAAI;EACH,eAAe,6BAA6B,QAAQ,aAAa,QAAQ;CAC1E,SAAS,OAAO;EACf,IAAI,oBAAoB,GAAG,KAAK,KAAK,MAAM,SAAS,gDAAgD;EACpG,MAAM;CACP;CACA,OAAO;AACR;AACA,SAAS,wBAAwB,YAAY,eAAe;CAC3D,OAAO,SAAS,YAAY,KAAK,eAAe,0BAA0B,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,GAAG;AAClG"}
1
+ {"version":3,"file":"contract-snapshot-store-DwEs5EOp-3qAvnEf3.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/contract-snapshot-store-DwEs5EOp.mjs"],"sourcesContent":["import { a as errorContractSnapshotHashMismatch, g as errorInvalidJson, i as errorContractSnapshotContentMismatch, o as errorContractSnapshotMissing, t as MigrationToolsError } from \"./errors-nnIQQvmN.mjs\";\nimport { n as recomputePublishedStorageHash } from \"./hash-BAZVWU4a.mjs\";\nimport { join, relative } from \"pathe\";\nimport { mkdir, readFile, rename, rm, stat, writeFile } from \"node:fs/promises\";\nimport { randomBytes } from \"node:crypto\";\nimport { CONTRACT_SNAPSHOTS_DIRNAME, storageHashHex } from \"@internal/framework-components/control\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/contract-snapshot-store.ts\nconst CONTRACT_JSON_FILE = \"contract.json\";\nconst CONTRACT_DTS_FILE = \"contract.d.ts\";\nfunction hasErrnoCode(error, code) {\n\treturn error instanceof Error && blindCast(error).code === code;\n}\nasync function directoryExists(p) {\n\ttry {\n\t\treturn (await stat(p)).isDirectory();\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) return false;\n\t\tthrow error;\n\t}\n}\nfunction contractSnapshotDir(migrationsDir, storageHash) {\n\treturn join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME, storageHashHex(storageHash));\n}\nfunction createSnapshotContentVerifier(hooks) {\n\treturn { assertSnapshotContentMatches(contractJson, storageHash, jsonPath) {\n\t\tconst record = blindCast(contractJson ?? {});\n\t\tconst computedHash = recomputePublishedStorageHash({\n\t\t\ttarget: record.target,\n\t\t\ttargetFamily: record.targetFamily,\n\t\t\tstorage: record.storage,\n\t\t\thooks\n\t\t});\n\t\tif (computedHash !== storageHash) throw errorContractSnapshotContentMismatch({\n\t\t\tstorageHash,\n\t\t\tcomputedHash,\n\t\t\tjsonPath\n\t\t});\n\t} };\n}\nasync function writeContractSnapshot(migrationsDir, storageHash, input) {\n\tconst dir = contractSnapshotDir(migrationsDir, storageHash);\n\tconst actualStorageHash = blindCast(input.contractJson).storage?.storageHash;\n\tif (actualStorageHash !== storageHash) throw errorContractSnapshotHashMismatch(storageHash, typeof actualStorageHash === \"string\" ? actualStorageHash : String(actualStorageHash), dir);\n\tif (await directoryExists(dir)) return {\n\t\twritten: false,\n\t\tdir\n\t};\n\tconst tmpDir = join(join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME), `.tmp-${storageHashHex(storageHash)}-${Date.now()}-${randomBytes(4).toString(\"hex\")}`);\n\tawait mkdir(tmpDir, { recursive: true });\n\tconst jsonContent = `${canonicalizeJson(input.contractJson)}\\n`;\n\tconst dtsContent = input.contractDts.endsWith(\"\\n\") ? input.contractDts : `${input.contractDts}\\n`;\n\ttry {\n\t\tawait writeFile(join(tmpDir, CONTRACT_JSON_FILE), jsonContent);\n\t\tawait writeFile(join(tmpDir, CONTRACT_DTS_FILE), dtsContent);\n\t\tawait rename(tmpDir, dir);\n\t} catch (error) {\n\t\tawait rm(tmpDir, {\n\t\t\trecursive: true,\n\t\t\tforce: true\n\t\t});\n\t\tif (hasErrnoCode(error, \"EEXIST\") || hasErrnoCode(error, \"ENOTEMPTY\")) return {\n\t\t\twritten: false,\n\t\t\tdir\n\t\t};\n\t\tthrow error;\n\t}\n\treturn {\n\t\twritten: true,\n\t\tdir\n\t};\n}\n/**\n* When `verifyContent` is supplied, the parsed snapshot's content is checked\n* against the hash it was addressed by before being returned — the store is\n* content-addressed, and a snapshot edited in place under an unchanged hash\n* would otherwise flow into planning as if it were the recorded contract.\n*/\nasync function readContractSnapshotJson(migrationsDir, storageHash, verifyContent) {\n\tconst jsonPath = join(contractSnapshotDir(migrationsDir, storageHash), CONTRACT_JSON_FILE);\n\tlet raw;\n\ttry {\n\t\traw = await readFile(jsonPath, \"utf-8\");\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) throw errorContractSnapshotMissing(storageHash, jsonPath);\n\t\tthrow error;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch (e) {\n\t\tthrow errorInvalidJson(jsonPath, e instanceof Error ? e.message : String(e));\n\t}\n\tverifyContent?.assertSnapshotContentMatches(parsed, storageHash, jsonPath);\n\treturn parsed;\n}\n/**\n* Tolerant read: a missing store entry (ENOENT), an unparseable\n* `contract.json`, the JSON literal `null`, or a `storageHash` that isn't a\n* well-formed 64-hex value all resolve to `undefined` rather than\n* throwing — parity with the catch-all tolerance of the pre-store\n* `readEndContractJson` (`io.ts`), which never validated the hash it was\n* keyed by either. Any other fs error (e.g. `EACCES` on a present-but-\n* unreadable file) propagates rather than silently loading a contract-less\n* package. When `verifyContent` is supplied, an entry whose content does not\n* recompute to its address also resolves to `undefined` — tampered content\n* must not flow onward, and the strict store reads report the same file\n* loudly as `MIGRATION.CONTRACT_SNAPSHOT_CONTENT_MISMATCH`.\n*/\nasync function readContractSnapshotJsonTolerant(migrationsDir, storageHash, verifyContent) {\n\tlet jsonPath;\n\ttry {\n\t\tjsonPath = join(contractSnapshotDir(migrationsDir, storageHash), CONTRACT_JSON_FILE);\n\t} catch {\n\t\treturn;\n\t}\n\tlet raw;\n\ttry {\n\t\traw = await readFile(jsonPath, \"utf-8\");\n\t} catch (error) {\n\t\tif (hasErrnoCode(error, \"ENOENT\")) return;\n\t\tthrow error;\n\t}\n\tlet parsed;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch {\n\t\treturn;\n\t}\n\tif (parsed === null) return;\n\ttry {\n\t\tverifyContent?.assertSnapshotContentMatches(parsed, storageHash, jsonPath);\n\t} catch (error) {\n\t\tif (MigrationToolsError.is(error) && error.code === \"MIGRATION.CONTRACT_SNAPSHOT_CONTENT_MISMATCH\") return;\n\t\tthrow error;\n\t}\n\treturn parsed;\n}\nfunction snapshotsImportPathFrom(packageDir, migrationsDir) {\n\treturn relative(packageDir, join(migrationsDir, CONTRACT_SNAPSHOTS_DIRNAME)).split(\"\\\\\").join(\"/\");\n}\n//#endregion\nexport { snapshotsImportPathFrom as a, readContractSnapshotJsonTolerant as i, createSnapshotContentVerifier as n, writeContractSnapshot as o, readContractSnapshotJson as r, contractSnapshotDir as t };\n\n//# sourceMappingURL=contract-snapshot-store-DwEs5EOp.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,qBAAqB;AAC3B,MAAM,oBAAoB;AAC1B,SAAS,aAAa,OAAO,MAAM;CAClC,OAAO,iBAAiB,SAAS,UAAU,KAA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Aa,QAAQ;CAC1E,SAAS,OAAO;EACf,IAAI,oBAAoB,GAAG,KAAK,KAAK,MAAM,SAAS,gDAAgD;EACpG,MAAM;CACP;CACA,OAAO;AACR;AACA,SAAS,wBAAwB,YAAY,eAAe;CAC3D,OAAO,SAAS,YAAY,KAAK,eAAe,0BAA0B,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,GAAG;AAClG"}
@@ -13,7 +13,7 @@ import { Contract, ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-f
13
13
  import "@prisma/cli-engine/protocol";
14
14
  import { ContractSourceDiagnostic, ContractSourceDiagnostics, ContractSourceProvider, PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
15
15
  import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
16
- //#region ../../../1-framework/3-tooling/cli/dist/db-sign-JgxFUHAx.d.mts
16
+ //#region ../../../1-framework/3-tooling/cli/dist/db-sign-C3GY7-1h.d.mts
17
17
  //#region src/control-api/statements/statement-text.d.ts
18
18
  /** The verbs a statement can have. */
19
19
  type StatementVerb = 'rename' | 'delete' | 'allow' | 'convert' | 'backfill';
@@ -1072,7 +1072,7 @@ interface ControlClient {
1072
1072
  * @param schemaIR - The schema IR from introspect()
1073
1073
  * @returns PslDocumentAst if the family supports the capability, undefined otherwise
1074
1074
  */
1075
- inferPslContract(schemaIR: unknown): PslDocumentAst | undefined;
1075
+ inferPslContract(schemaIR: unknown): Promise<PslDocumentAst | undefined>;
1076
1076
  /**
1077
1077
  * Returns the assembled PSL block descriptors from the control stack — the full
1078
1078
  * set of extension-contributed top-level block descriptors. The CLI's
@@ -1143,4 +1143,4 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
1143
1143
  declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
1144
1144
  //#endregion
1145
1145
  export { executeDbVerify as $, EmitResult as A, PlanQuestion as B, DbUpdateOptions as C, EmitFailure as D, EmitContractConfig as E, ExecuteDbVerifyResult as F, RenderContractDtsResult as G, RenderContractDtsFailure as H, IntrospectOptions as I, StatementText as J, RenderContractDtsSuccess as K, MigrateResult as L, ExecuteDbSignOptions as M, ExecuteDbSignResult as N, EmitFailureCode as O, ExecuteDbVerifyOptions as P, executeDbSign as Q, OnControlProgress as R, DbUpdateFailureCode as S, DbUpdateSuccess as T, RenderContractDtsFailureCode as U, PlanQuestionVerb as V, RenderContractDtsOptions as W, TemporaryValueReport as X, StatementVerb as Y, VerifyOptions as Z, DbInitSuccess as _, CliStructuredError$2 as a, DbSignSpaceOutcome as b, ControlActionName as c, ControlProgressEvent as d, CreateControlClient as f, DbInitResult as g, DbInitOptions as h, AskedSubject as i, EmitSuccess as j, EmitOptions as k, ControlClient as l, DbInitFailureCode as m, AppliedStatementReport as n, ContractEmitOptions as o, DbInitFailure as p, SchemaVerifyOptions as q, AskedDataLoss as r, ContractEmitResult as s, AnswerPlanQuestions as t, ControlClientOptions as u, DbSignOptions as v, DbUpdateResult as w, DbUpdateFailure as x, DbSignSpaceFailure as y, PlanAnswer as z };
1146
- //# sourceMappingURL=db-sign-JgxFUHAx-BnA61Q5l.d.mts.map
1146
+ //# sourceMappingURL=db-sign-C3GY7-1h-C0whdey8.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"db-sign-JgxFUHAx-BnA61Q5l.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-JgxFUHAx.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;KAiBK;;;;;;UAMK;WACC,MAAM;WACN;;;;;;;;;;;;;UAaD,uBAAuB,0BAA0B;WAChD,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;WACtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E;WACA;WACA;;WAEA,wBAAwB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W,iBAAiB,iBAAiB;;;;;;;;;;;;;;EAc7C,QAAQ,SAAS,iBAAiB,QAAQ;;;;;;;EAO1C,WAAW,UAAU,oBAAoB;;;;;;;;EAQzC,aAAa,oBAAoB;;;;;;;;EAQjC,iBAAiB,oBAAoB,QAAQ;;;;;;;;EAQ7C,0BAA0B;;;;;;;;;EAS1B,mBAAmB,qBAAqB,2BAA2B;;;;;;;;EAQnE,KAAK,SAAS,cAAc,QAAQ;;;;;;;;EAQpC,kBAAkB,SAAS,2BAA2B,QAAQ;;;;UAItD,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;;WAEtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E,wBAAwB;WACxB,aAAa;;;UAGd;WACC;WACA;WACA,UAAU;WACV,QAAQ;;;;;KAKd,qBAAqB,iBAAiB;UACjC;;WAEC,iBAAiB;;KAEvB,sBAAsB,OAAO,sBAAsB;;;;iBAIvC,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ"}
@@ -1,7 +1,7 @@
1
1
  import { ImportSpecifierResolver, TypesImportSpec } from "@prisma/orm-framework/components/emission";
2
- import { ContractField, ContractModelBase, ContractValueObject, CrossReference, JsonValue } from "@prisma/orm-framework/contract/types";
3
2
  import { CodecLookup } from "@prisma/orm-framework/components/codec";
4
- //#region ../../../1-framework/3-tooling/emitter/dist/domain-type-generation-B_tgVA9W.d.mts
3
+ import { ContractField, ContractModelBase, ContractValueObject, CrossReference, JsonValue } from "@prisma/orm-framework/contract/types";
4
+ //#region ../../../1-framework/3-tooling/emitter/dist/domain-type-generation-CINeP3Ed.d.mts
5
5
  //#region src/domain-type-generation.d.ts
6
6
  declare function serializeValue(value: unknown): string;
7
7
  declare function serializeObjectKey(key: string): string;
@@ -103,4 +103,4 @@ declare function renderTypeOverridesMap(entries: ReadonlyArray<readonly [string,
103
103
  declare function generateFieldTypeOverridesMap(namespaceModels: ReadonlyArray<readonly [string, Record<string, ContractModelBase>]>, codecLookup: CodecLookup | undefined, resolveFieldValueSet: FieldValueSetResolver | undefined): string;
104
104
  //#endregion
105
105
  export { parameterizedOutputTypeFunctionsAlias as A, serializeCrossReference as B, generateModelFieldsType as C, generateValueObjectType as D, generateRootsType as E, renderValueSetType as F, serializeNamespaceId as H, resolveFieldType as I, resolveFieldTypeOverride as L, renderTypeOverride as M, renderTypeOverridesMap as N, generateValueObjectTypeAliases as O, renderValueSetOverride as P, resolveModelFieldType as R, generateModelFieldEntry as S, generateModelsType as T, serializeObjectKey as U, serializeExecutionType as V, serializeValue as W, generateFieldResolvedType as _, ResolvedFieldType as a, generateHashTypeAliases as b, codecInputType as c, deduplicateImports as d, generateBothFieldTypesMaps as f, generateFieldOutputTypesMap as g, generateFieldInputTypesMap as h, PARAMETERIZED_OUTPUT_TYPE_FUNCTIONS as i, renderCodecTypeOverride as j, generateValueObjectsDescriptorType as k, codecOutputForAlias as l, generateContractFieldDescriptor as m, FieldValueSetResolver as n, ResolvedFieldValueSet as o, generateCodecTypeIntersection as p, ModelFieldTypeResolvers as r, TypeOverride as s, CODEC_OUTPUT_FOR as t, codecOutputType as u, generateFieldTypeOverridesMap as v, generateModelRelationsType as w, generateImportLines as x, generateFieldTypesMapsByNamespace as y, resolveValueObjectType as z };
106
- //# sourceMappingURL=domain-type-generation-B_tgVA9W-DdPq_876.d.mts.map
106
+ //# sourceMappingURL=domain-type-generation-CINeP3Ed-D05XzCGK.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"domain-type-generation-B_tgVA9W-DdPq_876.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/emitter/dist/domain-type-generation-B_tgVA9W.d.mts"],"mappings":";;;;;iBAIiB,eAAe;iBACf,mBAAmB;iBACnB,qBAAqB;iBACrB,wBAAwB,KAAK;iBAC7B,kBAAkB,OAAO,eAAe;iBACxC,wBAAwB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mC,cAAc,eAAe;iBAChE,+BAA+B,cAAc,eAAe,kCAAkC,cAAc;;KAExH;WACM;WACA;;;;;iBAKM,yBAAyB,OAAO,eAAe,aAAa,yBAAyB,kBAAkB,oCAAoC;;iBAE3I,uBAAuB,iBAAiB,aAAa,iBAAiB,aAAa,0BAA0B;;iBAE7G,wBAAwB,iBAAiB,YAAY,qCAAqC,aAAa,0BAA0B;iBACjI,mBAAmB,UAAU;;iBAE7B,uBAAuB,SAAS,gDAAgD;;iBAEhF,8BAA8B,iBAAiB,gCAAgC,eAAe,sBAAsB,aAAa,yBAAyB,sBAAsB"}
1
+ {"version":3,"file":"domain-type-generation-CINeP3Ed-D05XzCGK.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/emitter/dist/domain-type-generation-CINeP3Ed.d.mts"],"mappings":";;;;;iBAIiB,eAAe;iBACf,mBAAmB;iBACnB,qBAAqB;iBACrB,wBAAwB,KAAK;iBAC7B,kBAAkB,OAAO,eAAe;iBACxC,wBAAwB,mBAAmB,OAAO;iBAClD,wBAAwB,QAAQ,eAAe;iBAC/C,2BAA2B,WAAW;iBACtC,mBAAmB,QAAQ,eAAe,oBAAoB,uBAAuB,mBAAmB,OAAO;iBAC/G,mBAAmB,SAAS,oBAAoB;iBAChD,oBAAoB,SAAS,mBAAmB,yBAAyB;iBACzE,8BAA8B,SAAS,cAAc,kBAAkB;iBACvE,uBAAuB,WAAW;iBAClC,wBAAwB;WAC9B;WACA;WACA;;KAEN;WACM;WACA;;;;;;;KAON;WACM,wBAAwB;WACxB;;KAEN,yBAAyB,mBAAmB,mBAAmB,OAAO,sBAAsB;;;;;;;;;;;iBAWhF,mBAAmB,iBAAiB,aAAa,iBAAiB,0BAA0B,aAAa;;cAE5G;;cAEA;;cAEA;;iBAEG,sCAAsC,eAAe,cAAc;;;;iBAInE,gBAAgB,iBAAiB,YAAY,qCAAqC,aAAa;;iBAE/F,eAAe,iBAAiB,YAAY,qCAAqC,aAAa;iBAC9F,iBAAiB,OAAO,eAAe,cAAc,aAAa,mBAAmB,wBAAwB;iBAC7G,0BAA0B,OAAO,eAAe,cAAc,aAAa;KACvF;WACM,aAAa;WACb,sBAAsB;;WAEtB;;;;;;;iBAOM,sBAAsB,mBAAmB,mBAAmB,OAAO,eAAe,OAAO,mBAAmB,WAAW,0BAA0B;iBACjJ,2BAA2B,QAAQ,eAAe,gCAAgC,cAAc,aAAa,uBAAuB,wBAAwB;iBAC5J,kCAAkC,iBAAiB,gCAAgC,eAAe,sBAAsB,cAAc,aAAa,uBAAuB,wBAAwB;iBAClM,4BAA4B,QAAQ,eAAe,gCAAgC,cAAc;iBACjG,2BAA2B,QAAQ,eAAe,gCAAgC,cAAc;iBAChG,wBAAwB,iBAAiB,IAAI,qBAAqB,eAAe,eAAe,sBAAsB,2BAA2B,cAAc;iBAC/J,uBAAuB,iBAAiB,IAAI,qBAAqB,eAAe,eAAe,sBAAsB,cAAc,cAAc;iBACjJ,gCAAgC,mBAAmB,OAAO;iBAC1D,mCAAmC,cAAc,eAAe;iBAChE,+BAA+B,cAAc,eAAe,kCAAkC,cAAc;;KAExH;WACM;WACA;;;;;iBAKM,yBAAyB,OAAO,eAAe,aAAa,yBAAyB,kBAAkB,oCAAoC;;iBAE3I,uBAAuB,iBAAiB,aAAa,iBAAiB,aAAa,0BAA0B;;iBAE7G,wBAAwB,iBAAiB,YAAY,qCAAqC,aAAa,0BAA0B;iBACjI,mBAAmB,UAAU;;iBAE7B,uBAAuB,SAAS,gDAAgD;;iBAEhF,8BAA8B,iBAAiB,gCAAgC,eAAe,sBAAsB,aAAa,yBAAyB,sBAAsB"}
@@ -1,3 +1,3 @@
1
- import { E as generateRootsType, U as serializeObjectKey, W as serializeValue, b as generateHashTypeAliases, d as deduplicateImports, g as generateFieldOutputTypesMap, p as generateCodecTypeIntersection, w as generateModelRelationsType, x as generateImportLines } from "./domain-type-generation-B_tgVA9W-DdPq_876.mjs";
2
- import { a as emit, i as EmittedArtifactPaths, n as EmitResult, o as generateContractDts, r as EmitStackInput, s as getEmittedArtifactPaths, t as EmitOptions } from "./index-Co6ho75S.mjs";
1
+ import { E as generateRootsType, U as serializeObjectKey, W as serializeValue, b as generateHashTypeAliases, d as deduplicateImports, g as generateFieldOutputTypesMap, p as generateCodecTypeIntersection, w as generateModelRelationsType, x as generateImportLines } from "./domain-type-generation-CINeP3Ed-D05XzCGK.mjs";
2
+ import { a as emit, i as EmittedArtifactPaths, n as EmitResult, o as generateContractDts, r as EmitStackInput, s as getEmittedArtifactPaths, t as EmitOptions } from "./index-DbIFi6KU.mjs";
3
3
  export { type EmitOptions, type EmitResult, type EmitStackInput, type EmittedArtifactPaths, deduplicateImports, emit, generateCodecTypeIntersection, generateContractDts, generateFieldOutputTypesMap, generateHashTypeAliases, generateImportLines, generateModelRelationsType, generateRootsType, getEmittedArtifactPaths, serializeObjectKey, serializeValue };
package/dist/emitter.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { B as serializeValue, S as generateRootsType, _ as generateImportLines, b as generateModelRelationsType, f as generateFieldOutputTypesMap, g as generateHashTypeAliases, l as generateCodecTypeIntersection, o as deduplicateImports, z as serializeObjectKey } from "./domain-type-generation-BRVQvoy8-CcRke3tl.mjs";
2
- import { n as generateContractDts, r as getEmittedArtifactPaths, t as emit } from "./exports-CBaM-1YD-CJuFjV3_.mjs";
2
+ import { n as generateContractDts, r as getEmittedArtifactPaths, t as emit } from "./exports-o91c4INl-_M3b_rty.mjs";
3
3
  export { deduplicateImports, emit, generateCodecTypeIntersection, generateContractDts, generateFieldOutputTypesMap, generateHashTypeAliases, generateImportLines, generateModelRelationsType, generateRootsType, getEmittedArtifactPaths, serializeObjectKey, serializeValue };
@@ -1,2 +1,2 @@
1
- import { A as parameterizedOutputTypeFunctionsAlias, B as serializeCrossReference, C as generateModelFieldsType, D as generateValueObjectType, E as generateRootsType, F as renderValueSetType, H as serializeNamespaceId, I as resolveFieldType, L as resolveFieldTypeOverride, M as renderTypeOverride, N as renderTypeOverridesMap, O as generateValueObjectTypeAliases, P as renderValueSetOverride, R as resolveModelFieldType, S as generateModelFieldEntry, T as generateModelsType, U as serializeObjectKey, V as serializeExecutionType, W as serializeValue, _ as generateFieldResolvedType, a as ResolvedFieldType, b as generateHashTypeAliases, c as codecInputType, d as deduplicateImports, f as generateBothFieldTypesMaps, g as generateFieldOutputTypesMap, h as generateFieldInputTypesMap, i as PARAMETERIZED_OUTPUT_TYPE_FUNCTIONS, j as renderCodecTypeOverride, k as generateValueObjectsDescriptorType, l as codecOutputForAlias, m as generateContractFieldDescriptor, n as FieldValueSetResolver, o as ResolvedFieldValueSet, p as generateCodecTypeIntersection, r as ModelFieldTypeResolvers, s as TypeOverride, t as CODEC_OUTPUT_FOR, u as codecOutputType, v as generateFieldTypeOverridesMap, w as generateModelRelationsType, x as generateImportLines, y as generateFieldTypesMapsByNamespace, z as resolveValueObjectType } from "./domain-type-generation-B_tgVA9W-DdPq_876.mjs";
1
+ import { A as parameterizedOutputTypeFunctionsAlias, B as serializeCrossReference, C as generateModelFieldsType, D as generateValueObjectType, E as generateRootsType, F as renderValueSetType, H as serializeNamespaceId, I as resolveFieldType, L as resolveFieldTypeOverride, M as renderTypeOverride, N as renderTypeOverridesMap, O as generateValueObjectTypeAliases, P as renderValueSetOverride, R as resolveModelFieldType, S as generateModelFieldEntry, T as generateModelsType, U as serializeObjectKey, V as serializeExecutionType, W as serializeValue, _ as generateFieldResolvedType, a as ResolvedFieldType, b as generateHashTypeAliases, c as codecInputType, d as deduplicateImports, f as generateBothFieldTypesMaps, g as generateFieldOutputTypesMap, h as generateFieldInputTypesMap, i as PARAMETERIZED_OUTPUT_TYPE_FUNCTIONS, j as renderCodecTypeOverride, k as generateValueObjectsDescriptorType, l as codecOutputForAlias, m as generateContractFieldDescriptor, n as FieldValueSetResolver, o as ResolvedFieldValueSet, p as generateCodecTypeIntersection, r as ModelFieldTypeResolvers, s as TypeOverride, t as CODEC_OUTPUT_FOR, u as codecOutputType, v as generateFieldTypeOverridesMap, w as generateModelRelationsType, x as generateImportLines, y as generateFieldTypesMapsByNamespace, z as resolveValueObjectType } from "./domain-type-generation-CINeP3Ed-D05XzCGK.mjs";
2
2
  export { CODEC_OUTPUT_FOR, FieldValueSetResolver, ModelFieldTypeResolvers, PARAMETERIZED_OUTPUT_TYPE_FUNCTIONS, ResolvedFieldType, ResolvedFieldValueSet, TypeOverride, codecInputType, codecOutputForAlias, codecOutputType, deduplicateImports, generateBothFieldTypesMaps, generateCodecTypeIntersection, generateContractFieldDescriptor, generateFieldInputTypesMap, generateFieldOutputTypesMap, generateFieldResolvedType, generateFieldTypeOverridesMap, generateFieldTypesMapsByNamespace, generateHashTypeAliases, generateImportLines, generateModelFieldEntry, generateModelFieldsType, generateModelRelationsType, generateModelsType, generateRootsType, generateValueObjectType, generateValueObjectTypeAliases, generateValueObjectsDescriptorType, parameterizedOutputTypeFunctionsAlias, renderCodecTypeOverride, renderTypeOverride, renderTypeOverridesMap, renderValueSetOverride, renderValueSetType, resolveFieldType, resolveFieldTypeOverride, resolveModelFieldType, resolveValueObjectType, serializeCrossReference, serializeExecutionType, serializeNamespaceId, serializeObjectKey, serializeValue };
@@ -68,6 +68,9 @@ declare function errorUnknownInvariant(args: {
68
68
  readonly unknown: readonly string[];
69
69
  readonly declared: readonly string[];
70
70
  }): MigrationToolsError;
71
+ /**
72
+ * A contract at `filePath` that failed to load. When the family refused it for its contents, such as defaults its column types do not hold, the refusal's meta (`refusedDefaults`) is kept beside the file path.
73
+ */
71
74
  declare function errorContractDeserializationFailed(filePath: string, message: string, options?: {
72
75
  readonly cause?: unknown;
73
76
  }): MigrationToolsError;
@@ -75,4 +78,4 @@ declare function errorContractSnapshotMissing(storageHash: string, expectedPath:
75
78
  declare function errorContractSnapshotHashMismatch(storageHash: string, actualHash: string, dir: string): MigrationToolsError;
76
79
  //#endregion
77
80
  export { errorContractSnapshotMissing as a, errorInvalidRefName as c, errorContractSnapshotHashMismatch as i, errorNoInvariantPath as l, NoInvariantPathStructuralEdge as n, errorDescriptorHeadHashMismatch as o, errorContractDeserializationFailed as r, errorInvalidJson as s, MigrationToolsError as t, errorUnknownInvariant as u };
78
- //# sourceMappingURL=errors-KWM8yBAL.d.mts.map
81
+ //# sourceMappingURL=errors-GnmirXRU.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-KWM8yBAL.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/errors.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;cAmBc,4BAA4B;WAC/B;WACA;WACA;WACA;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA,uBAAuB;aACvB,OAAO;aACP;;SAEJ,GAAG,iBAAiB,SAAS;;iBAErB,iBAAiB,kBAAkB,qBAAqB;iBACxD,gCAAgC;WACtC;WACA;WACA;IACP;iBACa,oBAAoB,kBAAkB;;;;;;;;;;;;UAY7C;WACC;WACA;WACA;WACA;WACA;;iBAEM,qBAAqB;WAC3B;WACA;WACA;WACA,yBAAyB;IAChC;iBACa,sBAAsB;WAC5B;WACA;WACA;IACP;iBACa,mCAAmC,kBAAkB,iBAAiB;WAC5E;IACP;iBACa,6BAA6B,qBAAqB,uBAAuB;iBACzE,kCAAkC,qBAAqB,oBAAoB,cAAc"}
1
+ {"version":3,"file":"errors-GnmirXRU.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/exports/errors.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;cAmBc,4BAA4B;WAC/B;WACA;WACA;WACA;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA,uBAAuB;aACvB,OAAO;aACP;;SAEJ,GAAG,iBAAiB,SAAS;;iBAErB,iBAAiB,kBAAkB,qBAAqB;iBACxD,gCAAgC;WACtC;WACA;WACA;IACP;iBACa,oBAAoB,kBAAkB;;;;;;;;;;;;UAY7C;WACC;WACA;WACA;WACA;WACA;;iBAEM,qBAAqB;WAC3B;WACA;WACA;WACA,yBAAyB;IAChC;iBACa,sBAAsB;WAC5B;WACA;WACA;IACP;;;;iBAIa,mCAAmC,kBAAkB,iBAAiB;WAC5E;IACP;iBACa,6BAA6B,qBAAqB,uBAAuB;iBACzE,kCAAkC,qBAAqB,oBAAoB,cAAc"}
@@ -1,7 +1,8 @@
1
1
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
2
2
  import { CliStructuredError } from "@prisma/orm-framework/errors/control";
3
+ import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
3
4
  import { dirname, relative } from "pathe";
4
- //#region ../../../1-framework/3-tooling/migration/dist/errors-B1xJ5JTo.mjs
5
+ //#region ../../../1-framework/3-tooling/migration/dist/errors-nnIQQvmN.mjs
5
6
  /**
6
7
  * Build the canonical "re-emit this package" remediation hint.
7
8
  *
@@ -306,17 +307,24 @@ function errorBundleNotFoundForGraphNode(hash, explicitLabel) {
306
307
  }
307
308
  });
308
309
  }
310
+ /**
311
+ * A contract at `filePath` that failed to load. When the family refused it for its contents, such as defaults its column types do not hold, the refusal's meta (`refusedDefaults`) is kept beside the file path.
312
+ */
309
313
  function errorContractDeserializationFailed(filePath, message, options) {
310
314
  return new MigrationToolsError("MIGRATION.CONTRACT_DESERIALIZATION_FAILED", "Contract failed to deserialize", {
311
315
  why: `Contract at "${filePath}" failed to deserialize: ${message}`,
312
316
  fix: reemitHint(dirname(filePath), "or restore the directory from version control."),
313
317
  meta: {
318
+ ...refusalMetaOf(options?.cause),
314
319
  filePath,
315
320
  message
316
321
  },
317
322
  ...ifDefined("cause", options?.cause)
318
323
  });
319
324
  }
325
+ function refusalMetaOf(cause) {
326
+ return isStructuredError(cause) && cause.code === "CONTRACT.VALIDATION_FAILED" ? cause.meta : void 0;
327
+ }
320
328
  function errorHashNotInGraph(hash, graph) {
321
329
  const reachableHashes = [...graph.nodes].sort();
322
330
  const reachableList = reachableHashes.length > 0 ? reachableHashes.join(", ") : "(none)";
@@ -400,4 +408,4 @@ function errorMigrationContractViewMissing(className, accessor, jsonField) {
400
408
  //#endregion
401
409
  export { errorRefNotResolvable as A, errorInvalidSpaceId as C, errorNoInvariantPath as D, errorMissingFile as E, errorUnknownInvariant as M, errorOperationsNotArray as O, errorInvalidSlug as S, errorMigrationHashMismatch as T, errorInvalidManifest as _, errorContractSnapshotHashMismatch as a, errorInvalidRefName as b, errorDescribeMissingEndContract as c, errorDuplicateInvariantInEdge as d, errorDuplicateSpaceId as f, errorInvalidJson as g, errorInvalidInvariantId as h, errorContractSnapshotContentMismatch as i, errorSpaceHeadRefMissing as j, errorProvidedInvariantsMismatch as k, errorDescriptorHeadHashMismatch as l, errorInvalidDestName as m, errorBundleNotFoundForGraphNode as n, errorContractSnapshotMissing as o, errorHashNotInGraph as p, errorContractDeserializationFailed as r, errorDescribeInvalidMetadata as s, MigrationToolsError as t, errorDirectoryExists as u, errorInvalidOperationEntry as v, errorMigrationContractViewMissing as w, errorInvalidRefValue as x, errorInvalidRefFile as y };
402
410
 
403
- //# sourceMappingURL=errors-B1xJ5JTo-CrQL55Qf.mjs.map
411
+ //# sourceMappingURL=errors-nnIQQvmN-oeANP4Yi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-nnIQQvmN-oeANP4Yi.mjs","names":[],"sources":["../../../../1-framework/3-tooling/migration/dist/errors-nnIQQvmN.mjs"],"sourcesContent":["import { CliStructuredError } from \"@internal/errors/control\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { dirname, relative } from \"pathe\";\n//#region src/errors.ts\n/**\n* Build the canonical \"re-emit this package\" remediation hint.\n*\n* Every on-disk migration package ships its own `migration.ts` author-time\n* file. Running it regenerates `migration.json` and `ops.json` with the\n* correct hash + metadata, so it is the right primitive whenever a single\n* package's on-disk artifacts are missing, malformed, or otherwise corrupt.\n* Pointing users at `migration plan` would emit a *new* package rather than\n* heal the broken one.\n*/\nfunction reemitHint(dir, fallback) {\n\tconst reemit = `Re-emit the package by running \\`node \"${relative(process.cwd(), dir)}/migration.ts\"\\`, adding the \\`--config <path>\\` you gave this command, if any`;\n\treturn fallback ? `${reemit}, ${fallback}` : `${reemit}.`;\n}\n/**\n* Structured error for migration tooling operations.\n*\n* Follows the NAMESPACE.SUBCODE convention from ADR 027. All codes live under\n* the MIGRATION namespace. These are tooling-time errors (file I/O, hash\n* verification, migration history reconstruction), distinct from the runtime\n* MIGRATION.* codes for apply-time failures (PRECHECK_FAILED, POSTCHECK_FAILED,\n* etc.).\n*\n* Fields:\n* - code: Stable machine-readable code (MIGRATION.SUBCODE)\n* - category: Always 'MIGRATION'\n* - why: Explains the cause in plain language\n* - fix: Actionable remediation step\n* - meta: Machine-readable structured data for agents\n*/\nvar MigrationToolsError = class extends CliStructuredError {\n\tcategory;\n\tconstructor(code, summary, options) {\n\t\tsuper(code, summary, options);\n\t\tthis.category = \"MIGRATION\";\n\t}\n\tstatic is(error) {\n\t\treturn CliStructuredError.is(error) && \"category\" in error && error.category === \"MIGRATION\" && error.code.startsWith(\"MIGRATION.\");\n\t}\n};\nfunction errorDirectoryExists(dir) {\n\treturn new MigrationToolsError(\"MIGRATION.DIR_EXISTS\", \"Migration directory already exists\", {\n\t\twhy: `The directory \"${dir}\" already exists. Each migration must have a unique directory.`,\n\t\tfix: \"Use --name to pick a different name, or delete the existing directory and re-run.\",\n\t\tmeta: { dir }\n\t});\n}\nfunction errorMissingFile(file, dir) {\n\treturn new MigrationToolsError(\"MIGRATION.FILE_MISSING\", `Missing ${file}`, {\n\t\twhy: `Expected \"${file}\" in \"${dir}\" but the file does not exist.`,\n\t\tfix: reemitHint(dir, \"or delete the directory if the migration is unwanted and the source TypeScript is gone.\"),\n\t\tmeta: {\n\t\t\tfile,\n\t\t\tdir\n\t\t}\n\t});\n}\nfunction errorInvalidJson(filePath, parseError) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_JSON\", \"Invalid JSON in migration file\", {\n\t\twhy: `Failed to parse \"${filePath}\": ${parseError}`,\n\t\tfix: reemitHint(dirname(filePath), \"or restore the directory from version control.\"),\n\t\tmeta: {\n\t\t\tfilePath,\n\t\t\tparseError\n\t\t}\n\t});\n}\nfunction errorInvalidManifest(filePath, reason) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_MANIFEST\", \"Invalid migration manifest\", {\n\t\twhy: `Migration manifest at \"${filePath}\" is invalid: ${reason}`,\n\t\tfix: reemitHint(dirname(filePath), \"or restore the directory from version control.\"),\n\t\tmeta: {\n\t\t\tfilePath,\n\t\t\treason\n\t\t}\n\t});\n}\nfunction errorDescribeMissingEndContract() {\n\treturn new MigrationToolsError(\"MIGRATION.DESCRIBE_INVALID\", \"Migration.describe(): provide endContractJson or override describe() — a migration needs a destination contract hash.\", {\n\t\twhy: \"Migration.describe() was called on a migration that carries no endContractJson and does not override describe(), so no destination contract hash can be derived.\",\n\t\tfix: \"Set endContractJson on the migration, or override describe() to return the { from, to } metadata explicitly.\",\n\t\tmeta: { reason: \"missing-end-contract\" }\n\t});\n}\nfunction errorDescribeInvalidMetadata(summary) {\n\treturn new MigrationToolsError(\"MIGRATION.DESCRIBE_INVALID\", `describe() returned invalid metadata: ${summary}`, {\n\t\twhy: `The migration's describe() returned metadata that failed schema validation: ${summary}.`,\n\t\tfix: \"Ensure describe() returns { from: string | null, to: string } with valid contract hashes.\",\n\t\tmeta: {\n\t\t\treason: \"invalid-metadata\",\n\t\t\tsummary\n\t\t}\n\t});\n}\nfunction errorOperationsNotArray() {\n\treturn new MigrationToolsError(\"MIGRATION.PLAN_NOT_ARRAY\", \"operations must be an array\", {\n\t\twhy: \"The migration instance's `operations` getter returned a non-array value.\",\n\t\tfix: \"Ensure the `operations` getter returns an array of migration operations.\",\n\t\tmeta: {}\n\t});\n}\nfunction errorSpaceHeadRefMissing(spaceId) {\n\treturn new MigrationToolsError(\"MIGRATION.CHECK_HEAD_REF_MISSING\", `Contract space \"${spaceId}\" has no head ref; its contract cannot be resolved from the snapshot store without one.`, {\n\t\twhy: `Contract space \"${spaceId}\" declares no refs/head.json, so there is no hash to resolve its contract against the snapshot store.`,\n\t\tfix: \"Re-emit the contract-space migrations and head-ref artifacts (the extension's contract-space build), or restore refs/head.json from version control.\",\n\t\tmeta: { spaceId }\n\t});\n}\nfunction errorInvalidOperationEntry(index, reason) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_OPERATION_ENTRY\", \"Migration operation entry is malformed\", {\n\t\twhy: `Operation at index ${index} returned by the migration class failed schema validation: ${reason}.`,\n\t\tfix: \"Update the migration class so each entry of `operations` carries `id` (string), `label` (string), and `operationClass` (one of 'additive' | 'widening' | 'destructive' | 'data').\",\n\t\tmeta: {\n\t\t\tindex,\n\t\t\treason\n\t\t}\n\t});\n}\nfunction errorInvalidSlug(slug) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_NAME\", \"Invalid migration name\", {\n\t\twhy: `The slug \"${slug}\" contains no valid characters after sanitization (only a-z, 0-9 are kept).`,\n\t\tfix: \"Provide a name with at least one alphanumeric character, e.g. --name add_users.\",\n\t\tmeta: { slug }\n\t});\n}\nfunction errorInvalidDestName(destName) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_DEST_NAME\", \"Invalid copy destination name\", {\n\t\twhy: `The destination name \"${destName}\" must be a single path segment (no \"..\" or directory separators).`,\n\t\tfix: \"Use a simple file name such as \\\"contract.json\\\" for each destination in the copy list.\",\n\t\tmeta: { destName }\n\t});\n}\nfunction errorInvalidSpaceId(spaceId) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_SPACE_ID\", \"Invalid contract space identifier\", {\n\t\twhy: `The space id \"${spaceId}\" does not match the required pattern /^[a-z][a-z0-9_-]{0,63}$/. Space ids are used as filesystem directory names under \\`migrations/\\`, so the pattern is conservative on purpose.`,\n\t\tfix: \"Pick a lowercase identifier that begins with a letter and contains only lowercase letters, digits, hyphens, or underscores; max 64 characters total.\",\n\t\tmeta: { spaceId }\n\t});\n}\nfunction errorDescriptorHeadHashMismatch(args) {\n\tconst { extensionId, recomputedHash, headRefHash } = args;\n\treturn new MigrationToolsError(\"MIGRATION.DESCRIPTOR_HEAD_HASH_MISMATCH\", \"Extension descriptor's headRef.hash does not match its contractJson\", {\n\t\twhy: `Extension \"${extensionId}\" publishes a \\`contractSpace\\` whose \\`headRef.hash\\` (${headRefHash}) does not match the canonical hash recomputed from \\`contractSpace.contractJson\\` (${recomputedHash}). This means the extension descriptor was published with stale \\`headRef.hash\\` — typically because the contract was bumped without rerunning the extension's emit pipeline.`,\n\t\tfix: \"Re-run the extension authoring pipeline so `contractJson.storage.storageHash` and `headRef.hash` agree, then republish the extension. If you are the extension author and you intentionally bumped `contractJson`, recompute and update `headRef.hash` (and refresh any on-disk migration metadata that derives from it).\",\n\t\tmeta: {\n\t\t\textensionId,\n\t\t\trecomputedHash,\n\t\t\theadRefHash\n\t\t}\n\t});\n}\nfunction errorDuplicateSpaceId(spaceId) {\n\treturn new MigrationToolsError(\"MIGRATION.DUPLICATE_SPACE_ID\", \"Duplicate contract space identifier\", {\n\t\twhy: `The space id \"${spaceId}\" appears more than once in the per-space planner input. Each space id must be unique across the inputs (the per-space planner emits one output entry per id).`,\n\t\tfix: \"Deduplicate the inputs before passing them to `planAllSpaces` — typically by checking your `extensions` declaration for repeated entries.\",\n\t\tmeta: { spaceId }\n\t});\n}\nfunction errorInvalidRefFile(filePath, reason) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_REF_FILE\", \"Invalid ref file\", {\n\t\twhy: `Ref file at \"${filePath}\" is invalid: ${reason}`,\n\t\tfix: \"Ensure the ref file contains valid JSON with { \\\"hash\\\": \\\"<64 hex chars>\\\", \\\"invariants\\\": [\\\"...\\\"] }.\",\n\t\tmeta: {\n\t\t\tpath: filePath,\n\t\t\treason\n\t\t}\n\t});\n}\nfunction errorInvalidRefName(refName) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_REF_NAME\", \"Invalid ref name\", {\n\t\twhy: `Ref name \"${refName}\" is invalid. Names must be lowercase alphanumeric with hyphens or forward slashes (no \".\" or \"..\" segments).`,\n\t\tfix: `Use a valid ref name (e.g., \"staging\", \"envs/production\").`,\n\t\tmeta: { refName }\n\t});\n}\nfunction errorInvalidRefValue(value) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_REF_VALUE\", \"Invalid ref value\", {\n\t\twhy: `Ref value \"${value}\" is not a valid contract hash. Values must be a 64-character hex digest or \"empty\".`,\n\t\tfix: \"Use a valid storage hash from `{bin} contract emit` output or an existing migration.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Emit the contract to obtain a valid storage hash\",\n\t\t\tcommand: \"{bin} contract emit\"\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"List existing migrations to reuse one of their hashes\",\n\t\t\tcommand: \"{bin} migration list\"\n\t\t}],\n\t\tmeta: { value }\n\t});\n}\nfunction errorInvalidInvariantId(invariantId) {\n\treturn new MigrationToolsError(\"MIGRATION.INVALID_INVARIANT_ID\", \"Invalid invariantId\", {\n\t\twhy: `invariantId ${JSON.stringify(invariantId)} is invalid. Ids must be non-empty and contain no whitespace or control characters (including Unicode whitespace like NBSP); other content (kebab-case, camelCase, namespaced, Unicode letters) is allowed.`,\n\t\tfix: \"Pick an invariantId without spaces, tabs, newlines, or control characters — e.g. \\\"backfill-user-phone\\\", \\\"users/backfill-phone\\\", or \\\"BackfillUserPhone\\\".\",\n\t\tmeta: { invariantId }\n\t});\n}\nfunction errorDuplicateInvariantInEdge(invariantId) {\n\treturn new MigrationToolsError(\"MIGRATION.DUPLICATE_INVARIANT_IN_EDGE\", \"Duplicate invariantId on a single migration\", {\n\t\twhy: `invariantId \"${invariantId}\" is declared by more than one dataTransform on the same migration. The marker stores invariants as a set and the routing layer treats them as edge-level, so two ops cannot share a routing identity.`,\n\t\tfix: \"Rename one of the conflicting dataTransform invariantIds, or drop invariantId on the op that does not need to be routing-visible.\",\n\t\tmeta: { invariantId }\n\t});\n}\nfunction errorProvidedInvariantsMismatch(filePath, stored, derived) {\n\tconst storedSet = new Set(stored);\n\tconst derivedSet = new Set(derived);\n\tconst missing = [...derivedSet].filter((id) => !storedSet.has(id));\n\tconst extra = [...storedSet].filter((id) => !derivedSet.has(id));\n\treturn new MigrationToolsError(\"MIGRATION.PROVIDED_INVARIANTS_MISMATCH\", \"providedInvariants on migration.json disagrees with ops.json\", {\n\t\twhy: missing.length === 0 && extra.length === 0 ? `migration.json at \"${filePath}\" stores providedInvariants ${JSON.stringify(stored)}, but the canonical value derived from ops.json is ${JSON.stringify(derived)} — same ids, different order. Canonical providedInvariants is sorted ascending.` : `migration.json at \"${filePath}\" stores providedInvariants ${JSON.stringify(stored)}, but the value derived from ops.json is ${JSON.stringify(derived)}. The manifest copy was likely hand-edited without re-emitting.`,\n\t\tfix: reemitHint(dirname(filePath), \"or restore the directory from version control.\"),\n\t\tmeta: {\n\t\t\tfilePath,\n\t\t\tstored,\n\t\t\tderived,\n\t\t\tdifference: {\n\t\t\t\tmissing,\n\t\t\t\textra\n\t\t\t}\n\t\t}\n\t});\n}\nfunction errorNoInvariantPath(args) {\n\tconst { refName, required, missing, structuralPath } = args;\n\tconst refClause = refName ? `Ref \"${refName}\"` : \"Target\";\n\tconst missingList = missing.map((id) => JSON.stringify(id)).join(\", \");\n\treturn new MigrationToolsError(\"MIGRATION.NO_INVARIANT_PATH\", \"No path covers the required invariants\", {\n\t\twhy: `${refClause} requires invariants the reachable path doesn't cover. required=[${required.map((id) => JSON.stringify(id)).join(\", \")}], missing=[${missingList}].`,\n\t\tfix: \"Add a migration on the path that runs `dataTransform({ invariantId: \\\"<id>\\\", … })` for each missing invariant, or retarget the ref to a hash whose path already provides them.\",\n\t\tmeta: {\n\t\t\trequired,\n\t\t\tmissing,\n\t\t\tstructuralPath,\n\t\t\t...ifDefined(\"refName\", refName)\n\t\t}\n\t});\n}\nfunction errorUnknownInvariant(args) {\n\tconst { refName, unknown, declared } = args;\n\treturn new MigrationToolsError(\"MIGRATION.UNKNOWN_INVARIANT\", \"Ref declares invariants no migration in the graph provides\", {\n\t\twhy: `${refName ? `Ref \"${refName}\" declares` : \"Declares\"} invariants no migration in the graph provides. unknown=[${unknown.map((id) => JSON.stringify(id)).join(\", \")}].`,\n\t\tfix: \"Either the ref has a typo, or the declaring migration has not been authored/attested yet. Re-check the ref file and the migrations directory.\",\n\t\tmeta: {\n\t\t\tunknown,\n\t\t\tdeclared,\n\t\t\t...ifDefined(\"refName\", refName)\n\t\t}\n\t});\n}\nfunction errorMigrationHashMismatch(dir, storedHash, computedHash) {\n\treturn new MigrationToolsError(\"MIGRATION.HASH_MISMATCH\", \"Migration package is corrupt\", {\n\t\twhy: `Stored migrationHash \"${storedHash}\" does not match the recomputed hash \"${computedHash}\" for \"${relative(process.cwd(), dir)}\". The migration.json or ops.json has been edited or partially written since emit.`,\n\t\tfix: reemitHint(dir, \"or restore the directory from version control.\"),\n\t\tmeta: {\n\t\t\tdir,\n\t\t\tstoredHash,\n\t\t\tcomputedHash\n\t\t}\n\t});\n}\n/**\n* A ref name that resolves to nothing: no pointer file named `refName`\n* exists, and the hash being resolved (the `contractAt` argument, used as a\n* fallback when the pointer is absent) is not a node in the migration graph\n* either. There is no contract to materialize.\n*/\nfunction errorRefNotResolvable(refName) {\n\treturn new MigrationToolsError(\"MIGRATION.REF_NOT_RESOLVABLE\", `Ref \"${refName}\" is not resolvable`, {\n\t\twhy: `Ref \"${refName}\" has no pointer file, and the hash being resolved is not a node in the migration graph either — there is nothing to materialize a contract from.`,\n\t\tfix: `Create the ref with \"{bin} migration ref set ${refName} <hash>\" (or advance it via \"{bin} db update --advance-ref ${refName}\"), or pass a hash that is a node in the migration graph.`,\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: `Create the ref \"${refName}\"`,\n\t\t\t\tcommand: `{bin} migration ref set ${refName} <hash>`\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: `Advance the ref \"${refName}\" as part of an update`,\n\t\t\t\tcommand: `{bin} db update --advance-ref ${refName}`\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"user-choice\",\n\t\t\t\tlabel: \"Pass a hash that is already a node in the migration graph\"\n\t\t\t}\n\t\t],\n\t\tmeta: {\n\t\t\trefName,\n\t\t\tidentifier: refName\n\t\t}\n\t});\n}\nfunction errorBundleNotFoundForGraphNode(hash, explicitLabel) {\n\treturn new MigrationToolsError(\"MIGRATION.BUNDLE_NOT_FOUND_FOR_GRAPH_NODE\", explicitLabel ? `No migration bundle found for reference \"${explicitLabel}\" (resolved hash: ${hash})` : `No migration bundle found for graph node ${hash}`, {\n\t\twhy: `The hash ${hash} is a graph node but no on-disk migration package has a destination (\\`to\\`) hash matching it.`,\n\t\tfix: \"Provide a ref or hash that corresponds to an existing migration package, or run `{bin} migration list` to see available migrations.\",\n\t\tmeta: {\n\t\t\thash,\n\t\t\t...explicitLabel ? { explicitLabel } : {}\n\t\t}\n\t});\n}\n/**\n* A contract at `filePath` that failed to load. When the family refused it for its contents, such as defaults its column types do not hold, the refusal's meta (`refusedDefaults`) is kept beside the file path.\n*/\nfunction errorContractDeserializationFailed(filePath, message, options) {\n\treturn new MigrationToolsError(\"MIGRATION.CONTRACT_DESERIALIZATION_FAILED\", \"Contract failed to deserialize\", {\n\t\twhy: `Contract at \"${filePath}\" failed to deserialize: ${message}`,\n\t\tfix: reemitHint(dirname(filePath), \"or restore the directory from version control.\"),\n\t\tmeta: {\n\t\t\t...refusalMetaOf(options?.cause),\n\t\t\tfilePath,\n\t\t\tmessage\n\t\t},\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\nfunction refusalMetaOf(cause) {\n\treturn isStructuredError(cause) && cause.code === \"CONTRACT.VALIDATION_FAILED\" ? cause.meta : void 0;\n}\nfunction errorHashNotInGraph(hash, graph) {\n\tconst reachableHashes = [...graph.nodes].sort();\n\tconst reachableList = reachableHashes.length > 0 ? reachableHashes.join(\", \") : \"(none)\";\n\treturn new MigrationToolsError(\"MIGRATION.HASH_NOT_IN_GRAPH\", `Hash \"${hash}\" is not a node in the migration graph`, {\n\t\twhy: `The migration graph contains nodes ${reachableList}; \"${hash}\" isn't one of them.`,\n\t\tfix: `Pass a hash that's the from-or-to of an on-disk migration bundle, use --from with a graph-node hash, or run \"{bin} migration plan\" to introduce it.`,\n\t\tnextActions: [{\n\t\t\tkind: \"user-choice\",\n\t\t\tlabel: \"Pass a hash that is the from-or-to of an on-disk migration bundle, or use --from with a graph-node hash\",\n\t\t\treason: `Graph nodes: ${reachableList}.`\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: `Introduce \"${hash}\" by planning a migration for it`,\n\t\t\tcommand: \"{bin} migration plan\"\n\t\t}],\n\t\tmeta: {\n\t\t\thash,\n\t\t\treachableHashes\n\t\t}\n\t});\n}\nfunction errorContractSnapshotMissing(storageHash, expectedPath) {\n\treturn new MigrationToolsError(\"MIGRATION.CONTRACT_SNAPSHOT_MISSING\", \"Contract snapshot is missing\", {\n\t\twhy: `Expected a contract snapshot for ${storageHash} at \"${expectedPath}\" but the file does not exist.`,\n\t\tfix: \"Re-emit the contract snapshot by re-running the command that authored the migration referencing this hash (`{bin} migration plan` for app-space migrations; the extension's contract-space build for extension spaces), or restore migrations/snapshots/ from version control.\",\n\t\tnextActions: [\n\t\t\t{\n\t\t\t\tkind: \"run-command\",\n\t\t\t\tlabel: \"Re-emit the snapshot for an app-space migration\",\n\t\t\t\tcommand: \"{bin} migration plan\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"user-choice\",\n\t\t\t\tlabel: \"For an extension space, re-run that extension's contract-space build instead\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"user-choice\",\n\t\t\t\tlabel: \"Restore migrations/snapshots/ from version control\"\n\t\t\t}\n\t\t],\n\t\tmeta: {\n\t\t\tstorageHash,\n\t\t\texpectedPath\n\t\t}\n\t});\n}\nfunction errorContractSnapshotHashMismatch(storageHash, actualHash, dir) {\n\treturn new MigrationToolsError(\"MIGRATION.CONTRACT_SNAPSHOT_HASH_MISMATCH\", \"Contract snapshot hash mismatch\", {\n\t\twhy: `The contract JSON's inner storage.storageHash (\"${actualHash}\") does not match the requested storage hash (\"${storageHash}\") for snapshot directory \"${dir}\".`,\n\t\tfix: \"Pass a contractJson whose storage.storageHash equals the storageHash argument passed to writeContractSnapshot — the two must agree by construction.\",\n\t\tmeta: {\n\t\t\tstorageHash,\n\t\t\tactualHash,\n\t\t\tdir\n\t\t}\n\t});\n}\nfunction errorContractSnapshotContentMismatch(args) {\n\tconst { storageHash, computedHash, jsonPath } = args;\n\treturn new MigrationToolsError(\"MIGRATION.CONTRACT_SNAPSHOT_CONTENT_MISMATCH\", \"Contract snapshot content does not match its hash\", {\n\t\twhy: `The contract snapshot at \"${jsonPath}\" is addressed by storage hash ${storageHash}, but its content recomputes to ${computedHash}. The file has been edited (or corrupted) since it was written.`,\n\t\tfix: \"Restore migrations/snapshots/ from version control, or re-run the command that authored the migration referencing this hash to regenerate the snapshot.\",\n\t\tmeta: {\n\t\t\tstorageHash,\n\t\t\tcomputedHash,\n\t\t\tjsonPath\n\t\t}\n\t});\n}\nfunction errorMigrationContractViewMissing(className, accessor, jsonField) {\n\treturn new MigrationToolsError(\"MIGRATION.CONTRACT_VIEW_MISSING\", `${className}.${accessor} requires ${jsonField}`, {\n\t\twhy: `${className}.${accessor} was read, but this instance has no ${jsonField} to build the view from.`,\n\t\tfix: `Set ${jsonField} to the migration's committed contract JSON, or avoid reading ${accessor} on a migration that overrides describe() and carries no contract.`,\n\t\tmeta: {\n\t\t\tclassName,\n\t\t\taccessor,\n\t\t\tjsonField\n\t\t}\n\t});\n}\n//#endregion\nexport { errorRefNotResolvable as A, errorInvalidSpaceId as C, errorNoInvariantPath as D, errorMissingFile as E, errorUnknownInvariant as M, errorOperationsNotArray as O, errorInvalidSlug as S, errorMigrationHashMismatch as T, errorInvalidManifest as _, errorContractSnapshotHashMismatch as a, errorInvalidRefName as b, errorDescribeMissingEndContract as c, errorDuplicateInvariantInEdge as d, errorDuplicateSpaceId as f, errorInvalidJson as g, errorInvalidInvariantId as h, errorContractSnapshotContentMismatch as i, errorSpaceHeadRefMissing as j, errorProvidedInvariantsMismatch as k, errorDescriptorHeadHashMismatch as l, errorInvalidDestName as m, errorBundleNotFoundForGraphNode as n, errorContractSnapshotMissing as o, errorHashNotInGraph as p, errorContractDeserializationFailed as r, errorDescribeInvalidMetadata as s, MigrationToolsError as t, errorDirectoryExists as u, errorInvalidOperationEntry as v, errorMigrationContractViewMissing as w, errorInvalidRefValue as x, errorInvalidRefFile as y };\n\n//# sourceMappingURL=errors-nnIQQvmN.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAS,WAAW,KAAK,UAAU;CAClC,MAAM,SAAS,0CAA0C,SAAS,QAAQ,IAAI,GAAG,GAAG,EAAE;CACtF,OAAO,WAAW,GAAG,OAAO,IAAI,aAAa,GAAG,OAAO;AACxD;;;;;;;;;;;;;;;;;AAiBA,IAAI,sBAAsB,cAAc,mBAAmB;CAC1D;CACA,YAAY,MAAM,SAAS,SAAS;EACnC,MAAM,MAAM,SAAS,OAAO;EAC5B,KAAK,WAAW;CACjB;CACA,OAAO,GAAG,OAAO;EAChB,OAAO,mBAAmB,GAAG,KAAK,KAAK,cAAc,SAAS,MAAM,aAAa,eAAe,MAAM,KAAK,WAAW,YAAY;CACnI;AACD;AACA,SAAS,qBAAqB,KAAK;CAClC,OAAO,IAAI,oBAAoB,wBAAwB,sCAAsC;EAC5F,KAAK,kBAAkB,IAAI;EAC3B,KAAK;EACL,MAAM,EAAE,IAAI;CACb,CAAC;AACF;AACA,SAAS,iBAAiB,MAAM,KAAK;CACpC,OAAO,IAAI,oBAAoB,0BAA0B,WAAW,QAAQ;EAC3E,KAAK,aAAa,KAAK,QAAQ,IAAI;EACnC,KAAK,WAAW,KAAK,yFAAyF;EAC9G,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;AACA,SAAS,iBAAiB,UAAU,YAAY;CAC/C,OAAO,IAA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,OAAO;GACR;GACA;IACC,MAAM;IACN,OAAO;GACR;EACD;EACA,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;AACA,SAAS,kCAAkC,aAAa,YAAY,KAAK;CACxE,OAAO,IAAI,oBAAoB,6CAA6C,mCAAmC;EAC9G,KAAK,mDAAmD,WAAW,iDAAiD,YAAY,6BAA6B,IAAI;EACjK,KAAK;EACL,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;AACF;AACA,SAAS,qCAAqC,MAAM;CACnD,MAAM,EAAE,aAAa,cAAc,aAAa;CAChD,OAAO,IAAI,oBAAoB,gDAAgD,qDAAqD;EACnI,KAAK,6BAA6B,SAAS,iCAAiC,YAAY,kCAAkC,aAAa;EACvI,KAAK;EACL,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;AACF;AACA,SAAS,kCAAkC,WAAW,UAAU,WAAW;CAC1E,OAAO,IAAI,oBAAoB,mCAAmC,GAAG,UAAU,GAAG,SAAS,YAAY,aAAa;EACnH,KAAK,GAAG,UAAU,GAAG,SAAS,sCAAsC,UAAU;EAC9E,KAAK,OAAO,UAAU,gEAAgE,SAAS;EAC/F,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;AACF"}
@@ -1,4 +1,4 @@
1
- import { r as getEmittedArtifactPaths } from "./exports-CBaM-1YD-CJuFjV3_.mjs";
1
+ import { r as getEmittedArtifactPaths } from "./exports-o91c4INl-_M3b_rty.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  import { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing } from "@prisma/orm-framework/errors/control";
@@ -536,4 +536,4 @@ async function loadConfigForFile(filePath) {
536
536
  //#endregion
537
537
  export { validateOrmSection as _, expandContractInputs as a, globContractInputMatching as c, loadConfigFiles as d, loadConfigForFile as f, requireConfigSections as g, ormConfigSection as h, evaluateConfigModule as i, isConfigSection as l, ormConfigSchema as m, ORM_CONFIG_SECTION_NAME as n, exports_exports as o, loadConfigForSections as p, buildLoadedConfig as r, findNearestConfigPathForFile as s, CONFIG_FILENAME as t, loadConfig as u };
538
538
 
539
- //# sourceMappingURL=exports-D1qqHTu1.mjs.map
539
+ //# sourceMappingURL=exports-DH1C-t5Q.mjs.map