@prisma/orm-toolchain 8.0.0-rc.3-dev.1 → 8.0.0-rc.3-dev.2

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.
@@ -1,8 +1,8 @@
1
+ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
1
2
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
2
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
3
4
  import { dirname, join } from "pathe";
4
5
  import { randomUUID } from "node:crypto";
5
- import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
6
6
  import { homedir } from "node:os";
7
7
  import { fork } from "node:child_process";
8
8
  import { fileURLToPath } from "node:url";
package/dist/cli.mjs CHANGED
@@ -2,10 +2,11 @@ import { r as getEmittedArtifactPaths } from "./exports-BCLg4CiV-05kuwcb0.mjs";
2
2
  import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
3
3
  import { c as spaceMigrationDirectory } from "./verify-contract-spaces-DhJTb0zM-B62maCfE.mjs";
4
4
  import { i as createScaffoldSpecifierResolver } from "./import-roots-CNFBPAT1.mjs";
5
- import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-h6InR6dO-rGfl18Jv.mjs";
5
+ import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-BdSSbD2i-7HxlZIdl.mjs";
6
6
  import { n as buildNextSteps, t as InitOutputSchema } from "./output-CovTDY14-CUoAqLML.mjs";
7
- import { r as loadConfig } from "./exports-BZaG8_w_.mjs";
7
+ import { r as loadConfig } from "./exports-UjssmDwy.mjs";
8
8
  import { createRequire } from "node:module";
9
+ import { existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
9
10
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
10
11
  import { DOCS_BASE, docsUrlFor, isStructuredError, isStructuredErrorCode } from "@prisma/orm-framework/utils/structured-error";
11
12
  import { keepInternalSpecifiers } from "@prisma/orm-framework/components/emission";
@@ -17,7 +18,6 @@ import { notOk, ok } from "@prisma/orm-framework/utils/result";
17
18
  import { basename, dirname, extname, isAbsolute, join, normalize, relative, resolve } from "pathe";
18
19
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
19
20
  import { type } from "arktype";
20
- import { existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
21
21
  import { defineCommand, defineCommandFamily, defineConfigSection, defineServerCommand, flag, positional } from "@prisma/cli-engine";
22
22
  import { CliStructuredError as CliStructuredError$1, notOk as notOk$1, ok as ok$1 } from "@prisma/cli-engine/protocol";
23
23
  import { collectConfigIssues } from "@prisma/orm-framework/config/config-validation";
@@ -32,8 +32,8 @@ import stringWidth from "string-width";
32
32
  import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
33
33
  import { pathToFileURL } from "node:url";
34
34
  import { build } from "esbuild";
35
- //#region ../../../1-framework/3-tooling/cli/dist/load-config-C994-QBh.mjs
36
- var version = "8.0.0-rc.3-dev.1";
35
+ //#region ../../../1-framework/3-tooling/cli/dist/load-config-BoN3oCUb.mjs
36
+ var version = "8.0.0-rc.3-dev.2";
37
37
  const MISSING_CONFIG_ACTION = {
38
38
  kind: "run-command",
39
39
  label: "Create a config file",
@@ -5100,7 +5100,7 @@ const lspCommand = defineServerCommand({
5100
5100
  } },
5101
5101
  handler: async (args, io) => {
5102
5102
  const exitCode = await withoutClientProcessIdInArgv(async () => {
5103
- const { startServer } = await import("./exports-8ZUN43ve.mjs");
5103
+ const { startServer } = await import("./exports-DLDFkjNv.mjs");
5104
5104
  return startServer({
5105
5105
  stdin: io.stdin,
5106
5106
  stdout: io.stdout,