@prisma/internals 7.6.0-integration-feat-prisma-bootstrap.1 → 7.6.0-integration-feat-prisma-bootstrap.3

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 (35) hide show
  1. package/dist/{chunk-D2UARNEU.js → chunk-2M2Y4NIS.js} +15 -15
  2. package/dist/{chunk-3FX5LQ2F.js → chunk-6JKAPABH.js} +5 -5
  3. package/dist/{chunk-T6QYBETC.js → chunk-6S76OKUD.js} +8 -8
  4. package/dist/{chunk-3MGTMIN5.js → chunk-7OODOXSI.js} +89 -29
  5. package/dist/{chunk-6YLZXNMI.js → chunk-7QFUU37E.js} +8 -8
  6. package/dist/{chunk-CW5JZHMP.js → chunk-C7JFO574.js} +7 -6
  7. package/dist/{chunk-EDMQEZXP.js → chunk-D27PKXGJ.js} +8 -8
  8. package/dist/{chunk-PHSZERBB.js → chunk-DTWLDI62.js} +5 -5
  9. package/dist/{chunk-23CMYKWL.js → chunk-FUDRGWAF.js} +6 -5
  10. package/dist/{chunk-HXMDA5QL.js → chunk-ITUUU2DT.js} +5 -5
  11. package/dist/{chunk-KVRK6JHO.js → chunk-J5JDYE26.js} +8 -8
  12. package/dist/{chunk-GWJQP6OT.js → chunk-KAFC7IGG.js} +5 -5
  13. package/dist/{chunk-G7BNOTDV.js → chunk-L3RJL3WO.js} +7 -7
  14. package/dist/{chunk-YOT64SO3.js → chunk-LDN2T2EE.js} +7 -7
  15. package/dist/{chunk-AL5CLS42.js → chunk-M7YSATMY.js} +5 -5
  16. package/dist/{chunk-EONFSFBN.js → chunk-OMJOKO7H.js} +5 -5
  17. package/dist/{chunk-WS75TKHZ.js → chunk-OPOVQ5PN.js} +89 -29
  18. package/dist/{chunk-WQZ5YH6L.js → chunk-QNR4TIIV.js} +5 -5
  19. package/dist/{chunk-4KNKVFYJ.js → chunk-UTP7I2VJ.js} +5 -5
  20. package/dist/{chunk-NWQ2WTBK.js → chunk-VAD6ZZ6O.js} +15 -15
  21. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  22. package/dist/cli/schemaContext.js +13 -13
  23. package/dist/engine-commands/errorHelpers.js +4 -4
  24. package/dist/engine-commands/formatSchema.js +11 -11
  25. package/dist/engine-commands/getConfig.js +7 -7
  26. package/dist/engine-commands/getDmmf.js +7 -7
  27. package/dist/engine-commands/index.js +18 -18
  28. package/dist/engine-commands/lintSchema.js +8 -8
  29. package/dist/engine-commands/mergeSchemas.js +7 -7
  30. package/dist/engine-commands/validate.js +7 -7
  31. package/dist/get-generators/getGenerators.js +14 -14
  32. package/dist/index.js +27 -27
  33. package/dist/utils/getVersionFromPackageJson.js +3 -3
  34. package/dist/wasm.js +5 -5
  35. package/package.json +14 -13
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_D2UARNEU_exports = {};
30
- __export(chunk_D2UARNEU_exports, {
29
+ var chunk_2M2Y4NIS_exports = {};
30
+ __export(chunk_2M2Y4NIS_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  forbiddenCmdWithDataProxyFlagMessage: () => forbiddenCmdWithDataProxyFlagMessage,
33
33
  formatSchema: () => formatSchema,
@@ -40,7 +40,7 @@ __export(chunk_D2UARNEU_exports, {
40
40
  processSchemaResult: () => processSchemaResult,
41
41
  skipIndex: () => skipIndex
42
42
  });
43
- module.exports = __toCommonJS(chunk_D2UARNEU_exports);
43
+ module.exports = __toCommonJS(chunk_2M2Y4NIS_exports);
44
44
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
45
45
  var import_chunk_PKOQQT7I = require("./chunk-PKOQQT7I.js");
46
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
@@ -51,11 +51,11 @@ var import_chunk_DXWYZA7B = require("./chunk-DXWYZA7B.js");
51
51
  var import_chunk_DRWHCM7T = require("./chunk-DRWHCM7T.js");
52
52
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
53
53
  var import_chunk_EKGEKB22 = require("./chunk-EKGEKB22.js");
54
- var import_chunk_3MGTMIN5 = require("./chunk-3MGTMIN5.js");
55
- var import_chunk_3FX5LQ2F = require("./chunk-3FX5LQ2F.js");
56
- var import_chunk_G7BNOTDV = require("./chunk-G7BNOTDV.js");
57
- var import_chunk_T6QYBETC = require("./chunk-T6QYBETC.js");
58
- var import_chunk_GWJQP6OT = require("./chunk-GWJQP6OT.js");
54
+ var import_chunk_7OODOXSI = require("./chunk-7OODOXSI.js");
55
+ var import_chunk_QNR4TIIV = require("./chunk-QNR4TIIV.js");
56
+ var import_chunk_L3RJL3WO = require("./chunk-L3RJL3WO.js");
57
+ var import_chunk_7QFUU37E = require("./chunk-7QFUU37E.js");
58
+ var import_chunk_ITUUU2DT = require("./chunk-ITUUU2DT.js");
59
59
  var import_chunk_2BXDHSSY = require("./chunk-2BXDHSSY.js");
60
60
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
61
61
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -77,7 +77,7 @@ var debug = (0, import_debug.default)("prisma:format");
77
77
  async function formatSchema({ schemas }, inputFormattingOptions) {
78
78
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
79
79
  handleFormatPanic(() => {
80
- import_chunk_GWJQP6OT.prismaSchemaWasm.debug_panic();
80
+ import_chunk_ITUUU2DT.prismaSchemaWasm.debug_panic();
81
81
  });
82
82
  }
83
83
  const defaultFormattingOptions = {
@@ -94,10 +94,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
94
94
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
95
95
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
96
96
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
97
- const lintDiagnostics2 = (0, import_chunk_3FX5LQ2F.lintSchema)({ schemas: formattedMultipleSchemas2 });
97
+ const lintDiagnostics2 = (0, import_chunk_QNR4TIIV.lintSchema)({ schemas: formattedMultipleSchemas2 });
98
98
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
99
99
  });
100
- const lintWarnings = (0, import_chunk_3FX5LQ2F.getLintWarningsAsText)(lintDiagnostics);
100
+ const lintWarnings = (0, import_chunk_QNR4TIIV.getLintWarningsAsText)(lintDiagnostics);
101
101
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
102
102
  console.warn(lintWarnings);
103
103
  }
@@ -124,7 +124,7 @@ function handleFormatPanic(tryCb) {
124
124
  }
125
125
  }
126
126
  function formatWasm(schema, documentFormattingParams) {
127
- const formattedSchema = import_chunk_GWJQP6OT.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
127
+ const formattedSchema = import_chunk_ITUUU2DT.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
128
128
  return formattedSchema;
129
129
  }
130
130
  async function loadSchemaContext({ schemaPath, printLoadMessage, allowNull, schemaPathArgumentName, cwd } = {
@@ -153,7 +153,7 @@ async function processSchemaResult({
153
153
  if (printLoadMessage) {
154
154
  (0, import_chunk_2BXDHSSY.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
155
155
  }
156
- const configFromPsl = await (0, import_chunk_T6QYBETC.getConfig)({ datamodel: schemaResult.schemas });
156
+ const configFromPsl = await (0, import_chunk_7QFUU37E.getConfig)({ datamodel: schemaResult.schemas });
157
157
  const primaryDatasource = configFromPsl.datasources.at(0);
158
158
  return {
159
159
  schemaFiles: schemaResult.schemas,
@@ -208,7 +208,7 @@ async function getGenerators(options) {
208
208
  }
209
209
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
210
210
  const previewFeatures = (0, import_chunk_EKGEKB22.extractPreviewFeatures)(schemaContext.generators);
211
- const dmmf = await (0, import_chunk_3MGTMIN5.getDMMF)({
211
+ const dmmf = await (0, import_chunk_7OODOXSI.getDMMF)({
212
212
  datamodel: schemaContext.schemaFiles,
213
213
  previewFeatures
214
214
  });
@@ -259,7 +259,7 @@ You need to define \`output\` in the generator block in the schema file.`
259
259
  fromEnvVar: null
260
260
  };
261
261
  }
262
- const datamodel = (0, import_chunk_G7BNOTDV.mergeSchemas)({ schemas: schemaContext.schemaFiles });
262
+ const datamodel = (0, import_chunk_L3RJL3WO.mergeSchemas)({ schemas: schemaContext.schemaFiles });
263
263
  const options2 = {
264
264
  datamodel,
265
265
  datasources: schemaContext.datasources,
@@ -16,20 +16,20 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_3FX5LQ2F_exports = {};
20
- __export(chunk_3FX5LQ2F_exports, {
19
+ var chunk_6JKAPABH_exports = {};
20
+ __export(chunk_6JKAPABH_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_3FX5LQ2F_exports);
28
- var import_chunk_GWJQP6OT = require("./chunk-GWJQP6OT.js");
27
+ module.exports = __toCommonJS(chunk_6JKAPABH_exports);
28
+ var import_chunk_KAFC7IGG = require("./chunk-KAFC7IGG.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_GWJQP6OT.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_KAFC7IGG.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_T6QYBETC_exports = {};
30
- __export(chunk_T6QYBETC_exports, {
29
+ var chunk_6S76OKUD_exports = {};
30
+ __export(chunk_6S76OKUD_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_T6QYBETC_exports);
34
+ module.exports = __toCommonJS(chunk_6S76OKUD_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_4KNKVFYJ = require("./chunk-4KNKVFYJ.js");
39
- var import_chunk_GWJQP6OT = require("./chunk-GWJQP6OT.js");
38
+ var import_chunk_DTWLDI62 = require("./chunk-DTWLDI62.js");
39
+ var import_chunk_KAFC7IGG = require("./chunk-KAFC7IGG.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -61,7 +61,7 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_4KNKVFYJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_DTWLDI62.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
@@ -73,10 +73,10 @@ async function getConfig(options) {
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_GWJQP6OT.prismaSchemaWasm.debug_panic();
76
+ import_chunk_KAFC7IGG.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_GWJQP6OT.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_KAFC7IGG.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -26,24 +26,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_3MGTMIN5_exports = {};
30
- __export(chunk_3MGTMIN5_exports, {
29
+ var chunk_7OODOXSI_exports = {};
30
+ __export(chunk_7OODOXSI_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_3MGTMIN5_exports);
34
+ module.exports = __toCommonJS(chunk_7OODOXSI_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_4KNKVFYJ = require("./chunk-4KNKVFYJ.js");
38
- var import_chunk_GWJQP6OT = require("./chunk-GWJQP6OT.js");
37
+ var import_chunk_UTP7I2VJ = require("./chunk-UTP7I2VJ.js");
38
+ var import_chunk_ITUUU2DT = require("./chunk-ITUUU2DT.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
42
42
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_debug = __toESM(require("@prisma/debug"));
45
+ var import_json = require("@streamparser/json");
45
46
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
46
47
  var debug = (0, import_debug.default)("prisma:getDMMF");
48
+ var debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
47
49
  var GetDmmfError = class extends Error {
48
50
  constructor(params) {
49
51
  const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
@@ -58,25 +60,61 @@ ${detailsHeader} ${message}`;
58
60
  }).exhaustive();
59
61
  const errorMessageWithContext = `${constructedErrorMessage}
60
62
  [Context: getDmmf]`;
61
- super((0, import_chunk_4KNKVFYJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_UTP7I2VJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
64
  this.name = "GetDmmfError";
63
65
  }
64
66
  };
67
+ function isV8StringLimitError(error) {
68
+ return error instanceof Error && "code" in error && error.code === "ERR_STRING_TOO_LONG";
69
+ }
70
+ function getDMMFBuffered(params) {
71
+ const CHUNK_SIZE = 16 * 1024 * 1024;
72
+ if (typeof import_chunk_ITUUU2DT.prismaSchemaWasm.get_dmmf_buffered !== "function") {
73
+ throw new Error(
74
+ "Buffered DMMF API not available. It's required for schemas that do not fit within the default V8 memory limit. Ensure you are using latest @prisma/prisma-schema-wasm."
75
+ );
76
+ }
77
+ const buffer = import_chunk_ITUUU2DT.prismaSchemaWasm.get_dmmf_buffered(params);
78
+ try {
79
+ const totalBytes = buffer.len();
80
+ debug(`DMMF buffered: ${totalBytes} bytes (${(totalBytes / 1024 / 1024).toFixed(1)}MB)`);
81
+ const parser = new import_json.JSONParser();
82
+ let result;
83
+ parser.onValue = ({ value, stack }) => {
84
+ if (stack.length === 0 && value !== void 0) {
85
+ result = value;
86
+ }
87
+ };
88
+ let offset = 0;
89
+ while (offset < totalBytes) {
90
+ const len = Math.min(CHUNK_SIZE, totalBytes - offset);
91
+ const chunk = buffer.read_chunk(offset, len);
92
+ parser.write(chunk);
93
+ offset += len;
94
+ }
95
+ if (result === void 0) {
96
+ throw new Error("Streaming JSON parse produced no result");
97
+ }
98
+ debug(`DMMF parsed via streaming parser (${(totalBytes / 1024 / 1024).toFixed(1)}MB)`);
99
+ return result;
100
+ } finally {
101
+ buffer.free();
102
+ }
103
+ }
65
104
  async function getDMMF(options) {
66
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
67
105
  debug(`Using getDmmf Wasm`);
106
+ const params = JSON.stringify({
107
+ prismaSchema: options.datamodel,
108
+ noColor: Boolean(process.env.NO_COLOR)
109
+ });
68
110
  const dmmfPipeline = (0, import_function.pipe)(
69
111
  (0, import_chunk_5DBOS77Y.tryCatch)(
70
112
  () => {
71
113
  if (process.env.FORCE_PANIC_GET_DMMF) {
72
114
  debug("Triggering a Rust panic...");
73
- import_chunk_GWJQP6OT.prismaSchemaWasm.debug_panic();
115
+ import_chunk_ITUUU2DT.prismaSchemaWasm.debug_panic();
74
116
  }
75
- const params = JSON.stringify({
76
- prismaSchema: options.datamodel,
77
- noColor: Boolean(process.env.NO_COLOR)
78
- });
79
- const data = import_chunk_GWJQP6OT.prismaSchemaWasm.get_dmmf(params);
117
+ const data = import_chunk_ITUUU2DT.prismaSchemaWasm.get_dmmf(params);
80
118
  return data;
81
119
  },
82
120
  (e) => ({
@@ -107,27 +145,49 @@ async function getDMMF(options) {
107
145
  const { right: data } = dmmfEither;
108
146
  return Promise.resolve(data);
109
147
  }
148
+ const leftError = dmmfEither.left;
149
+ if (leftError.type === "wasm-error" && isV8StringLimitError(leftError.error)) {
150
+ debug("V8 string limit hit, falling back to buffered DMMF API");
151
+ try {
152
+ const data = getDMMFBuffered(params);
153
+ debug("dmmf data retrieved via buffered API");
154
+ return data;
155
+ } catch (error2) {
156
+ if (error2 instanceof Error) {
157
+ debugErrorType({ type: "wasm-error", reason: "(get-dmmf-buffered wasm)", error: error2 });
158
+ throw mapWasmPanicToGetDmmfError(error2, "(get-dmmf-buffered wasm)");
159
+ }
160
+ throw new GetDmmfError({
161
+ _tag: "unparsed",
162
+ message: `Unknown error during buffered DMMF retrieval: ${error2}`,
163
+ reason: "(get-dmmf-buffered wasm)"
164
+ });
165
+ }
166
+ }
110
167
  const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "wasm-error" }, (e) => {
111
168
  debugErrorType(e);
112
- if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
113
- const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
114
- const panic = new import_chunk_LMVSIVKQ.RustPanic(
115
- /* message */
116
- message,
117
- /* rustStack */
118
- stack,
119
- /* request */
120
- "@prisma/prisma-schema-wasm get_dmmf",
121
- "FMT_CLI"
122
- /* FMT_CLI */
123
- );
124
- return panic;
125
- }
126
- const errorOutput = e.error.message;
127
- return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
169
+ return mapWasmPanicToGetDmmfError(e.error, e.reason);
128
170
  }).with({ type: "parse-json" }, (e) => {
129
171
  debugErrorType(e);
130
172
  return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
131
173
  }).exhaustive();
132
174
  throw error;
133
175
  }
176
+ function mapWasmPanicToGetDmmfError(error, reason) {
177
+ if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(error)) {
178
+ const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(error);
179
+ const panic = new import_chunk_LMVSIVKQ.RustPanic(
180
+ /* message */
181
+ message,
182
+ /* rustStack */
183
+ stack,
184
+ /* request */
185
+ "@prisma/prisma-schema-wasm get_dmmf",
186
+ "FMT_CLI"
187
+ /* FMT_CLI */
188
+ );
189
+ return panic;
190
+ }
191
+ const errorOutput = error.message;
192
+ return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason }));
193
+ }
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_6YLZXNMI_exports = {};
30
- __export(chunk_6YLZXNMI_exports, {
29
+ var chunk_7QFUU37E_exports = {};
30
+ __export(chunk_7QFUU37E_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig
33
33
  });
34
- module.exports = __toCommonJS(chunk_6YLZXNMI_exports);
34
+ module.exports = __toCommonJS(chunk_7QFUU37E_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_PHSZERBB = require("./chunk-PHSZERBB.js");
39
- var import_chunk_HXMDA5QL = require("./chunk-HXMDA5QL.js");
38
+ var import_chunk_UTP7I2VJ = require("./chunk-UTP7I2VJ.js");
39
+ var import_chunk_ITUUU2DT = require("./chunk-ITUUU2DT.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -61,7 +61,7 @@ ${detailsHeader} ${message}`;
61
61
  }).exhaustive();
62
62
  const errorMessageWithContext = `${constructedErrorMessage}
63
63
  [Context: getConfig]`;
64
- super((0, import_chunk_PHSZERBB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_UTP7I2VJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
65
65
  this.name = "GetConfigError";
66
66
  }
67
67
  };
@@ -73,10 +73,10 @@ async function getConfig(options) {
73
73
  () => {
74
74
  if (process.env.FORCE_PANIC_GET_CONFIG) {
75
75
  debug("Triggering a Rust panic...");
76
- import_chunk_HXMDA5QL.prismaSchemaWasm.debug_panic();
76
+ import_chunk_ITUUU2DT.prismaSchemaWasm.debug_panic();
77
77
  }
78
78
  const params = JSON.stringify({ prismaSchema: options.datamodel });
79
- return import_chunk_HXMDA5QL.prismaSchemaWasm.get_config(params);
79
+ return import_chunk_ITUUU2DT.prismaSchemaWasm.get_config(params);
80
80
  },
81
81
  (e) => ({
82
82
  type: "wasm-error",
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_CW5JZHMP_exports = {};
20
- __export(chunk_CW5JZHMP_exports, {
19
+ var chunk_C7JFO574_exports = {};
20
+ __export(chunk_C7JFO574_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_CW5JZHMP_exports);
23
+ module.exports = __toCommonJS(chunk_C7JFO574_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "7.6.0-integration-feat-prisma-bootstrap.1",
29
+ version: "7.6.0-integration-feat-prisma-bootstrap.3",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -100,9 +100,10 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
100
100
  "@prisma/generator": "workspace:*",
101
101
  "@prisma/generator-helper": "workspace:*",
102
102
  "@prisma/get-platform": "workspace:*",
103
- "@prisma/prisma-schema-wasm": "7.5.0-15.280c870be64f457428992c43c1f6d557fab6e29e",
104
- "@prisma/schema-engine-wasm": "7.5.0-15.280c870be64f457428992c43c1f6d557fab6e29e",
103
+ "@prisma/prisma-schema-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
104
+ "@prisma/schema-engine-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
105
105
  "@prisma/schema-files-loader": "workspace:*",
106
+ "@streamparser/json": "0.0.22",
106
107
  arg: "5.0.2",
107
108
  prompts: "2.4.2"
108
109
  },
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_EDMQEZXP_exports = {};
30
- __export(chunk_EDMQEZXP_exports, {
29
+ var chunk_D27PKXGJ_exports = {};
30
+ __export(chunk_D27PKXGJ_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_EDMQEZXP_exports);
34
+ module.exports = __toCommonJS(chunk_D27PKXGJ_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_PHSZERBB = require("./chunk-PHSZERBB.js");
39
- var import_chunk_HXMDA5QL = require("./chunk-HXMDA5QL.js");
38
+ var import_chunk_DTWLDI62 = require("./chunk-DTWLDI62.js");
39
+ var import_chunk_KAFC7IGG = require("./chunk-KAFC7IGG.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_PHSZERBB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_DTWLDI62.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_HXMDA5QL.prismaSchemaWasm.debug_panic();
74
+ import_chunk_KAFC7IGG.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_HXMDA5QL.prismaSchemaWasm.validate(params);
80
+ import_chunk_KAFC7IGG.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_PHSZERBB_exports = {};
20
- __export(chunk_PHSZERBB_exports, {
19
+ var chunk_DTWLDI62_exports = {};
20
+ __export(chunk_DTWLDI62_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_PHSZERBB_exports);
24
- var import_chunk_EONFSFBN = require("./chunk-EONFSFBN.js");
23
+ module.exports = __toCommonJS(chunk_DTWLDI62_exports);
24
+ var import_chunk_OMJOKO7H = require("./chunk-OMJOKO7H.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_EONFSFBN.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_OMJOKO7H.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_23CMYKWL_exports = {};
20
- __export(chunk_23CMYKWL_exports, {
19
+ var chunk_FUDRGWAF_exports = {};
20
+ __export(chunk_FUDRGWAF_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_23CMYKWL_exports);
23
+ module.exports = __toCommonJS(chunk_FUDRGWAF_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -100,9 +100,10 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
100
100
  "@prisma/generator": "workspace:*",
101
101
  "@prisma/generator-helper": "workspace:*",
102
102
  "@prisma/get-platform": "workspace:*",
103
- "@prisma/prisma-schema-wasm": "7.5.0-15.280c870be64f457428992c43c1f6d557fab6e29e",
104
- "@prisma/schema-engine-wasm": "7.5.0-15.280c870be64f457428992c43c1f6d557fab6e29e",
103
+ "@prisma/prisma-schema-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
104
+ "@prisma/schema-engine-wasm": "7.6.0-1.75cbdc1eb7150937890ad5465d861175c6624711",
105
105
  "@prisma/schema-files-loader": "workspace:*",
106
+ "@streamparser/json": "0.0.22",
106
107
  arg: "5.0.2",
107
108
  prompts: "2.4.2"
108
109
  },
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_HXMDA5QL_exports = {};
30
- __export(chunk_HXMDA5QL_exports, {
29
+ var chunk_ITUUU2DT_exports = {};
30
+ __export(chunk_ITUUU2DT_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_HXMDA5QL_exports);
37
- var import_chunk_23CMYKWL = require("./chunk-23CMYKWL.js");
36
+ module.exports = __toCommonJS(chunk_ITUUU2DT_exports);
37
+ var import_chunk_C7JFO574 = require("./chunk-C7JFO574.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_23CMYKWL.require_package)();
49
+ var { dependencies } = (0, import_chunk_C7JFO574.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_KVRK6JHO_exports = {};
30
- __export(chunk_KVRK6JHO_exports, {
29
+ var chunk_J5JDYE26_exports = {};
30
+ __export(chunk_J5JDYE26_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_KVRK6JHO_exports);
34
+ module.exports = __toCommonJS(chunk_J5JDYE26_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_4KNKVFYJ = require("./chunk-4KNKVFYJ.js");
39
- var import_chunk_GWJQP6OT = require("./chunk-GWJQP6OT.js");
38
+ var import_chunk_UTP7I2VJ = require("./chunk-UTP7I2VJ.js");
39
+ var import_chunk_ITUUU2DT = require("./chunk-ITUUU2DT.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_4KNKVFYJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_UTP7I2VJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_GWJQP6OT.prismaSchemaWasm.debug_panic();
74
+ import_chunk_ITUUU2DT.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_GWJQP6OT.prismaSchemaWasm.validate(params);
80
+ import_chunk_ITUUU2DT.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_GWJQP6OT_exports = {};
30
- __export(chunk_GWJQP6OT_exports, {
29
+ var chunk_KAFC7IGG_exports = {};
30
+ __export(chunk_KAFC7IGG_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_GWJQP6OT_exports);
37
- var import_chunk_CW5JZHMP = require("./chunk-CW5JZHMP.js");
36
+ module.exports = __toCommonJS(chunk_KAFC7IGG_exports);
37
+ var import_chunk_FUDRGWAF = require("./chunk-FUDRGWAF.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_CW5JZHMP.require_package)();
49
+ var { dependencies } = (0, import_chunk_FUDRGWAF.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];