@prisma/orm-toolchain 8.0.0-rc.19-dev.2 → 8.0.0-rc.19-dev.4

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 (32) hide show
  1. package/dist/{aggregate-B9HIfbq6.mjs → aggregate-C30LiAd-.mjs} +3 -3
  2. package/dist/{aggregate-B9HIfbq6.mjs.map → aggregate-C30LiAd-.mjs.map} +1 -1
  3. package/dist/{caught-errors-VVhfmaAC-B-4FGHb0.mjs → caught-errors-Dijk7Hgg-DBua0IMw.mjs} +12 -5
  4. package/dist/caught-errors-Dijk7Hgg-DBua0IMw.mjs.map +1 -0
  5. package/dist/cli.mjs +9 -9
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/cli__control-api.mjs +2 -2
  8. package/dist/cli__migration-cli.mjs +2 -2
  9. package/dist/cli__migration-cli.mjs.map +1 -1
  10. package/dist/{io-BJ-LXfIc-BDm7pWEw.mjs → io-BNxFm3eg-DYD82QeZ.mjs} +3 -3
  11. package/dist/{io-BJ-LXfIc-BDm7pWEw.mjs.map → io-BNxFm3eg-DYD82QeZ.mjs.map} +1 -1
  12. package/dist/{migration-wBxEFdXP.mjs → migration-CWyjX9vz.mjs} +2 -2
  13. package/dist/{migration-wBxEFdXP.mjs.map → migration-CWyjX9vz.mjs.map} +1 -1
  14. package/dist/migration-tools.mjs +5 -5
  15. package/dist/migration-tools__aggregate.mjs +1 -1
  16. package/dist/migration-tools__io.mjs +1 -1
  17. package/dist/migration-tools__migration.mjs +1 -1
  18. package/dist/migration-tools__spaces.mjs +2 -2
  19. package/dist/op-schema-3tXg0LTS-DqpOKDEa.mjs +23 -0
  20. package/dist/op-schema-3tXg0LTS-DqpOKDEa.mjs.map +1 -0
  21. package/dist/{ref-DLqjHXyn-CsLViutC.mjs → ref-BCcYHMHw-CY5QunMw.mjs} +100 -70
  22. package/dist/ref-BCcYHMHw-CY5QunMw.mjs.map +1 -0
  23. package/dist/{spaces-COXaiv-z.mjs → spaces-c9xdiXW8.mjs} +3 -3
  24. package/dist/{spaces-COXaiv-z.mjs.map → spaces-c9xdiXW8.mjs.map} +1 -1
  25. package/dist/{verify-contract-spaces-DkXWDLa0-R1nU6Hq1.mjs → verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs} +3 -3
  26. package/dist/{verify-contract-spaces-DkXWDLa0-R1nU6Hq1.mjs.map → verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs.map} +1 -1
  27. package/dist/vite-plugin-contract-emit.mjs +1 -1
  28. package/package.json +12 -12
  29. package/dist/caught-errors-VVhfmaAC-B-4FGHb0.mjs.map +0 -1
  30. package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs +0 -13
  31. package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs.map +0 -1
  32. package/dist/ref-DLqjHXyn-CsLViutC.mjs.map +0 -1
package/dist/cli.mjs CHANGED
@@ -2,16 +2,16 @@ import { a as expandContractInputs, c as globContractInputMatching, d as loadCon
2
2
  import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
3
3
  import { t as MigrationToolsError } from "./errors-DXha_4l--relAaiI4.mjs";
4
4
  import { t as contractSnapshotDir } from "./contract-snapshot-store-6gIBcUeb-DJK3OM0j.mjs";
5
- import { s as readMigrationsDir } from "./io-BJ-LXfIc-BDm7pWEw.mjs";
6
- import { c as spaceMigrationDirectory, l as spaceRefsDirectory } from "./verify-contract-spaces-DkXWDLa0-R1nU6Hq1.mjs";
7
- import { A as errorMarkerMissing, C as errorDriverRequired, E as errorHashMismatch, H as errorSignRefsNotWritten, J as errorStatementNeedsMigrationFile, N as errorNoMigrations, O as errorLegendHumanOnly, Q as errorTargetMismatch, S as errorDatabaseConnectionRequired, T as errorFromCaught, V as errorRuntime, Z as errorTargetMigrationNotSupported, _ as errorConfigValidation$1, a as appRefsDirFor, at as printedPlanCommand, b as errorContractValidationFailed, c as cliCommand, ct as requireLiveDatabase, d as closeQuietly, dt as runCommandAction, ft as selfEmitCommand, h as errorAdvanceRefArgConflict, ht as targetSupportsMigrations, i as appMigrationsDirFor, j as errorMigrationPackageNotFound, m as displayPath, mt as statementFlag, n as CliStructuredError$1$1, nt as maskConnectionUrl, o as baseDirFor, ot as readContractEnvelope, p as contractPathFor, pt as shellQuoted, rt as migrationsDirFor, s as chooseAction, st as redactUrlCredentials, u as cliInvocation, v as errorContractArgConflict, w as errorFileNotFound, x as errorConvertAndDelete, y as errorContractConfigMissing } from "./caught-errors-VVhfmaAC-B-4FGHb0.mjs";
5
+ import { s as readMigrationsDir } from "./io-BNxFm3eg-DYD82QeZ.mjs";
6
+ import { c as spaceMigrationDirectory, l as spaceRefsDirectory } from "./verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs";
7
+ import { $ as errorTargetMismatch, C as errorDatabaseConnectionRequired, D as errorHashMismatch, E as errorFromCaught, H as errorRuntime, M as errorMigrationPackageNotFound, P as errorNoMigrations, Q as errorTargetMigrationNotSupported, S as errorConvertAndDelete, T as errorFileNotFound, U as errorSignRefsNotWritten, Y as errorStatementNeedsMigrationFile, a as appRefsDirFor, b as errorContractConfigMissing, c as cliCommand, ct as redactUrlCredentials, d as closeQuietly, ft as runCommandAction, g as errorAdvanceRefArgConflict, gt as targetSupportsMigrations, ht as statementFlag, i as appMigrationsDirFor, it as migrationsDirFor, j as errorMarkerMissing, k as errorLegendHumanOnly, lt as requireLiveDatabase, m as displayPath, mt as shellQuoted, n as CliStructuredError$1$1, o as baseDirFor, ot as printedPlanCommand, p as contractPathFor, pt as selfEmitCommand, rt as maskConnectionUrl, s as chooseAction, st as readContractEnvelope, u as cliInvocation, v as errorConfigValidation$1, w as errorDriverRequired, x as errorContractValidationFailed, y as errorContractArgConflict } from "./caught-errors-Dijk7Hgg-DBua0IMw.mjs";
8
8
  import { r as getEmittedArtifactPaths } from "./exports-BCIlMjIW-DkUBVDzl.mjs";
9
9
  import { r as isInSpaceHistory } from "./graph-membership-DxpNgxfZ-BfqA-H7V.mjs";
10
10
  import { d as writeRef, r as readRef } from "./refs-DM3q3IZC-BC6H6P0X.mjs";
11
- import { a as contractHashAtMarker } from "./aggregate-B9HIfbq6.mjs";
11
+ import { a as contractHashAtMarker } from "./aggregate-C30LiAd-.mjs";
12
12
  import { i as createScaffoldSpecifierResolver } from "./import-roots-DXD7fung.mjs";
13
13
  import { o as isLiveMarkerRef } from "./ref-resolution-Eo0QHp4f.mjs";
14
- import { $ as refuseMissingInvariantPath, A as executeRefDeleteCommand, B as loadContractRawSafely, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, H as loadContractSourceWithStack, I as isStatementVerb, J as preflightRefAdvancement, L as listRefsByContractHash, M as executeRefSetCommand, N as findPackageByDirPath, O as executeMigrationPlanCommand, P as formatSourceDiagnostic, Q as refuseMarkerOutsideGraph, R as liveMarkerUse, U as loadContractSpaceAggregateForCli, V as loadContractSource, W as looksLikePath, X as refuseContractSpaceIntegrity, Y as readMigrationRefs, _ as deriveStatusEdgeAnnotations, _t as toDeclaredExtensionsFromRaw, a as advanceRefSafely, at as resolveContractRefToSnapshot, b as enumerateCheckSpaces, d as buildRefAdvancementFields, et as refusePackageCorruptionOnAggregate, f as checkSingleTarget, ft as runMigrationCheck, g as createControlClient, gt as statusForMigrationHash, h as convertAndDelete, ht as sourceWarningDiagnostic, i as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, it as resolveContractRef$1, j as executeRefListCommand, l as buildMigrationSpaceGraphEntries, m as contractValidationMeta, mt as snapshotVerifierFor, n as NO_REF_ADVANCEMENT, nt as requireDatabaseForLiveMarkerUse, p as computeRefAdvancementName, pt as runMigrationList, q as migrationSpaceListEntriesFromAggregate, r as RECORDED_CONTRACT_REF_FORMS, rt as resolveAppTargetPath, s as appliedHashesFromLedger, st as resolveMigrationRef, t as ALL_CONTRACT_REF_FORMS, tt as refuseUnknownInvariants, u as buildReadAggregate, ut as retryCommandFor, vt as validateLoadedContract, x as executeContractEmit, z as loadAggregateIntegrityViolations } from "./ref-DLqjHXyn-CsLViutC.mjs";
14
+ import { $ as refuseMissingInvariantPath, A as executeRefDeleteCommand, B as loadContractRawSafely, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, H as loadContractSourceWithStack, I as isStatementVerb, J as preflightRefAdvancement, L as listRefsByContractHash, M as executeRefSetCommand, N as findPackageByDirPath, O as executeMigrationPlanCommand, P as formatSourceDiagnostic, Q as refuseMarkerOutsideGraph, R as liveMarkerUse, U as loadContractSpaceAggregateForCli, V as loadContractSource, W as looksLikePath, X as refuseContractSpaceIntegrity, Y as readMigrationRefs, _ as deriveStatusEdgeAnnotations, _t as toDeclaredExtensionsFromRaw, a as advanceRefSafely, at as resolveContractRefToSnapshot, b as enumerateCheckSpaces, d as buildRefAdvancementFields, et as refusePackageCorruptionOnAggregate, f as checkSingleTarget, ft as runMigrationCheck, g as createControlClient, gt as statusForMigrationHash, h as convertAndDelete, ht as sourceWarningDiagnostic, i as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, it as resolveContractRef$1, j as executeRefListCommand, l as buildMigrationSpaceGraphEntries, m as contractValidationMeta, mt as snapshotVerifierFor, n as NO_REF_ADVANCEMENT, nt as requireDatabaseForLiveMarkerUse, p as computeRefAdvancementName, pt as runMigrationList, q as migrationSpaceListEntriesFromAggregate, r as RECORDED_CONTRACT_REF_FORMS, rt as resolveAppTargetPath, s as appliedHashesFromLedger, st as resolveMigrationRef, t as ALL_CONTRACT_REF_FORMS, tt as refuseUnknownInvariants, u as buildReadAggregate, ut as retryCommandFor, vt as validateLoadedContract, x as executeContractEmit, z as loadAggregateIntegrityViolations } from "./ref-BCcYHMHw-CY5QunMw.mjs";
15
15
  import { a as PRISMA7_QUICK_REFERENCE_STEP, i as PRISMA7_LOOP_STEP, n as InitOutputSchema, o as buildNextSteps, r as NEXT_STEPS_BEFORE_SCAFFOLD, t as DB_SIGN_STEP } from "./output-BcC8eB0h-C5bRd-aC.mjs";
16
16
  import { createRequire } from "node:module";
17
17
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -40,7 +40,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
40
40
  import stringWidth from "string-width";
41
41
  import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
42
42
  import { build } from "esbuild";
43
- //#region ../../../1-framework/3-tooling/cli/dist/load-config-BApVWBt0.mjs
43
+ //#region ../../../1-framework/3-tooling/cli/dist/load-config-sbrxCnAP.mjs
44
44
  /**
45
45
  * `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the
46
46
  * regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts
@@ -1601,16 +1601,16 @@ function schemaFindingBlocks(inputs) {
1601
1601
  function schemaVerdictDiagnostic(inputs) {
1602
1602
  const code = inputs.result.code;
1603
1603
  const dotted = code !== void 0 && isStructuredErrorCode(code);
1604
- const issues = inputs.result.schema.issues.map(issueLabel);
1604
+ const { issues } = inputs.result.schema;
1605
1605
  return {
1606
1606
  code: dotted ? code : "CONTRACT.VERIFY_FAILED",
1607
1607
  severity: "error",
1608
1608
  summary: inputs.result.summary,
1609
- ...issues.length === 0 ? {} : { why: schemaIssuesWhy("The live schema differs", inputs.result.schema.issues) },
1609
+ ...issues.length === 0 ? {} : { why: schemaIssuesWhy("The live schema differs", issues) },
1610
1610
  nextActions: inputs.nextActions,
1611
1611
  meta: {
1612
1612
  ...inputs.space === void 0 ? {} : { space: inputs.space },
1613
- issues,
1613
+ schemaIssues: issues,
1614
1614
  ...dotted || code === void 0 ? {} : { code }
1615
1615
  }
1616
1616
  };