@prisma/internals 6.6.0-dev.9 → 6.6.0-dev.90

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 (241) hide show
  1. package/dist/Generator.d.ts +23 -5
  2. package/dist/Generator.js +5 -3
  3. package/dist/WasmPanicRegistry.js +3 -3
  4. package/dist/{chunk-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
  5. package/dist/{chunk-ITLOFM5Q.js → chunk-2YP6UPFI.js} +11 -15
  6. package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
  7. package/dist/{chunk-47K4FUF7.js → chunk-3E2HAXRN.js} +22 -26
  8. package/dist/chunk-3LR435OL.js +900 -0
  9. package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
  10. package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
  11. package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
  12. package/dist/{chunk-Y556XG3B.js → chunk-5QMJ3C6N.js} +12 -11
  13. package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
  14. package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
  15. package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
  16. package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
  17. package/dist/{chunk-BGFWFIPR.js → chunk-7QC5VORA.js} +5 -5
  18. package/dist/{chunk-2MWIMEFK.js → chunk-AX5N26KG.js} +6 -6
  19. package/dist/{chunk-WWKPV5SR.js → chunk-AXYQWZXV.js} +46 -79
  20. package/dist/{chunk-ZYW3HGSH.js → chunk-BPDMLM32.js} +49 -17
  21. package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
  22. package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
  23. package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
  24. package/dist/{chunk-Q22BLLK3.js → chunk-D4VZUY3O.js} +6 -6
  25. package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
  26. package/dist/{chunk-EUTJYQDW.js → chunk-DODIJPCS.js} +13 -25
  27. package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
  28. package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
  29. package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
  30. package/dist/chunk-FRNDDXVT.js +900 -0
  31. package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
  32. package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
  33. package/dist/chunk-I6WLABB2.js +429 -0
  34. package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
  35. package/dist/{chunk-LD5ZZC24.js → chunk-IRTBJKYB.js} +11 -15
  36. package/dist/{chunk-TKQ7NOUN.js → chunk-JIR4NYJN.js} +30 -34
  37. package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
  38. package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
  39. package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
  40. package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
  41. package/dist/{chunk-OE4MFVDB.js → chunk-LKR4OOFJ.js} +5 -5
  42. package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
  43. package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
  44. package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
  45. package/dist/{chunk-BUSRAOJT.js → chunk-LSLQXHEA.js} +5 -5
  46. package/dist/{chunk-C2WD2XUT.js → chunk-MJIP3FY5.js} +968 -1220
  47. package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
  48. package/dist/{chunk-GKCSB52I.js → chunk-MWXPXHX2.js} +23 -27
  49. package/dist/{chunk-WIQVR535.js → chunk-N6H26BQE.js} +5 -5
  50. package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
  51. package/dist/{chunk-7NHX62BP.js → chunk-O3X5PEOU.js} +23 -27
  52. package/dist/{chunk-EPNDXRXB.js → chunk-OESCEI3R.js} +30 -34
  53. package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
  54. package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
  55. package/dist/{chunk-35JO7PFL.js → chunk-QDIEY4B2.js} +5 -5
  56. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  57. package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
  58. package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
  59. package/dist/{chunk-TQJ5XNIU.js → chunk-TWSSYOC7.js} +11 -10
  60. package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
  61. package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
  62. package/dist/{chunk-5HSKR6FE.js → chunk-W7GU2Y5B.js} +46 -79
  63. package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
  64. package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
  65. package/dist/{chunk-TVGDXZ2E.js → chunk-XCWVUJLC.js} +9 -9
  66. package/dist/{chunk-YTW4YPKF.js → chunk-XF3D7LPL.js} +9 -9
  67. package/dist/chunk-XR4RJTDM.js +101 -0
  68. package/dist/{chunk-YIZAJNC6.js → chunk-YKMFYZPB.js} +22 -26
  69. package/dist/chunk-YR5KNFKN.js +1834 -0
  70. package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
  71. package/dist/chunk-ZSINRHD4.js +43 -0
  72. package/dist/cli/Help.js +1 -1
  73. package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
  74. package/dist/cli/checkUnsupportedDataProxy.js +75 -78
  75. package/dist/cli/directoryConfig.d.ts +7 -0
  76. package/dist/cli/directoryConfig.js +25 -0
  77. package/dist/cli/getGeneratorSuccessMessage.js +1 -1
  78. package/dist/cli/getSchema.d.ts +3 -28
  79. package/dist/cli/getSchema.js +78 -82
  80. package/dist/cli/getTypescriptVersion.js +1 -1
  81. package/dist/cli/hashes.d.ts +1 -2
  82. package/dist/cli/hashes.js +75 -78
  83. package/dist/cli/schemaContext.d.ts +59 -0
  84. package/dist/cli/schemaContext.js +133 -0
  85. package/dist/cli/utils.js +5 -5
  86. package/dist/client/getClientEngineType.d.ts +1 -1
  87. package/dist/client/getClientEngineType.js +1 -1
  88. package/dist/convertCredentials.d.ts +1 -1
  89. package/dist/convertCredentials.js +1 -1
  90. package/dist/dotenvExpand.js +1 -1
  91. package/dist/engine-commands/errorHelpers.js +5 -5
  92. package/dist/engine-commands/formatSchema.js +74 -77
  93. package/dist/engine-commands/getConfig.d.ts +1 -5
  94. package/dist/engine-commands/getConfig.js +16 -17
  95. package/dist/engine-commands/getDmmf.d.ts +3 -6
  96. package/dist/engine-commands/getDmmf.js +13 -14
  97. package/dist/engine-commands/getEngineVersion.js +12 -12
  98. package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
  99. package/dist/engine-commands/index.js +85 -88
  100. package/dist/engine-commands/lintSchema.d.ts +1 -1
  101. package/dist/engine-commands/lintSchema.js +11 -12
  102. package/dist/engine-commands/mergeSchemas.js +13 -14
  103. package/dist/engine-commands/queryEngineCommons.js +8 -8
  104. package/dist/engine-commands/relativizePathInPSLError.js +1 -1
  105. package/dist/engine-commands/validate.js +13 -14
  106. package/dist/errorReporting.d.ts +0 -1
  107. package/dist/errorReporting.js +7 -7
  108. package/dist/get-generators/getGenerators.d.ts +22 -9
  109. package/dist/get-generators/getGenerators.js +77 -80
  110. package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
  111. package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
  112. package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
  113. package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
  114. package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
  115. package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
  116. package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
  117. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  118. package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
  119. package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
  120. package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
  121. package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
  122. package/dist/getPackedPackage.js +9 -9
  123. package/dist/highlight/highlight.js +1 -1
  124. package/dist/highlight/languages/dml.js +1 -1
  125. package/dist/highlight/languages/sql.js +1 -1
  126. package/dist/highlight/prism.js +1 -1
  127. package/dist/highlight/theme.js +1 -1
  128. package/dist/index.d.ts +7 -7
  129. package/dist/index.js +141 -145
  130. package/dist/logger.js +9 -9
  131. package/dist/migrateTypes.d.ts +63 -0
  132. package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
  133. package/dist/panic.d.ts +1 -4
  134. package/dist/panic.js +7 -7
  135. package/dist/resolveBinary.js +10 -10
  136. package/dist/resolveOutput.js +1 -1
  137. package/dist/resolvePkg.d.ts +7 -0
  138. package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
  139. package/dist/schemaEngineCommands.js +13 -13
  140. package/dist/sendPanic.js +7 -111
  141. package/dist/types.d.ts +1 -1
  142. package/dist/utils/__tests__/isCi.test.js +1 -1
  143. package/dist/utils/__tests__/isInteractive.test.js +1 -1
  144. package/dist/utils/__tests__/maskSchema.test.js +1 -1
  145. package/dist/utils/assertAlways.js +1 -1
  146. package/dist/utils/assertNever.js +1 -1
  147. package/dist/utils/binaryTargetRegex.js +3 -3
  148. package/dist/utils/byline.js +1 -1
  149. package/dist/utils/callOnce.js +1 -1
  150. package/dist/utils/callOnce.test.js +1 -1
  151. package/dist/utils/canPrompt.js +4 -4
  152. package/dist/utils/chmodPlusX.js +1 -1
  153. package/dist/utils/cloudflareD1.js +4 -4
  154. package/dist/utils/drawBox.js +1 -1
  155. package/dist/utils/extractPreviewFeatures.d.ts +2 -2
  156. package/dist/utils/extractPreviewFeatures.js +3 -3
  157. package/dist/utils/formatTable.js +1 -1
  158. package/dist/utils/formatms.js +1 -1
  159. package/dist/utils/fs-functional.js +12 -12
  160. package/dist/utils/fs-utils.js +9 -9
  161. package/dist/utils/getCommandWithExecutor.js +4 -4
  162. package/dist/utils/getEnvPaths.d.ts +1 -1
  163. package/dist/utils/getEnvPaths.js +74 -77
  164. package/dist/utils/getGitHubIssueUrl.js +5 -4
  165. package/dist/utils/getMigrateConfigDir.js +1 -1
  166. package/dist/utils/getVersionFromPackageJson.js +4 -4
  167. package/dist/utils/handleEngineLoadingErrors.js +1 -1
  168. package/dist/utils/handlePanic.js +13 -110
  169. package/dist/utils/hasOwnProperty.js +1 -1
  170. package/dist/utils/isCi.js +1 -1
  171. package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
  172. package/dist/utils/isInContainer.js +1 -1
  173. package/dist/utils/isInNpmLifecycleHook.js +1 -1
  174. package/dist/utils/isInteractive.js +1 -1
  175. package/dist/utils/isPromiseLike.js +1 -1
  176. package/dist/utils/isValidJsIdentifier.js +4 -4
  177. package/dist/utils/keyBy.js +1 -1
  178. package/dist/utils/link.js +3 -3
  179. package/dist/utils/load.js +3 -3
  180. package/dist/utils/loadEnvFile.js +74 -77
  181. package/dist/utils/mapKeys.js +1 -1
  182. package/dist/utils/mapObjectValues.js +1 -1
  183. package/dist/utils/maskSchema.js +1 -1
  184. package/dist/utils/max.js +1 -1
  185. package/dist/utils/max.test.js +1 -1
  186. package/dist/utils/maybeInGitHook.js +1 -1
  187. package/dist/utils/missingDatasource.js +4 -4
  188. package/dist/utils/missingGeneratorMessage.js +6 -6
  189. package/dist/utils/now.js +1 -1
  190. package/dist/utils/omit.js +1 -1
  191. package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
  192. package/dist/utils/parseEnvValue.d.ts +1 -1
  193. package/dist/utils/parseEnvValue.js +1 -1
  194. package/dist/utils/path.js +1 -1
  195. package/dist/utils/path.test.js +1 -1
  196. package/dist/utils/pick.js +1 -1
  197. package/dist/utils/printConfigWarnings.js +1 -1
  198. package/dist/utils/prismaPostgres.js +1 -1
  199. package/dist/utils/prismaPostgres.test.js +1 -1
  200. package/dist/utils/schemaFileInput.d.ts +0 -4
  201. package/dist/utils/schemaFileInput.js +3 -7
  202. package/dist/utils/serializeQueryEngineName.js +1 -1
  203. package/dist/utils/setClassName.js +1 -1
  204. package/dist/utils/toSchemasContainer.d.ts +2 -3
  205. package/dist/utils/toSchemasContainer.js +4 -5
  206. package/dist/utils/tryLoadEnvs.js +6 -6
  207. package/dist/utils/unique.js +1 -1
  208. package/dist/utils/vercelPkgPathRegex.js +1 -1
  209. package/dist/warnOnce.js +4 -4
  210. package/dist/wasm.js +6 -6
  211. package/package.json +14 -13
  212. package/dist/chunk-77IC3DNO.js +0 -35
  213. package/dist/chunk-AOQIUJT4.js +0 -41
  214. package/dist/chunk-L6GBFCXG.js +0 -367
  215. package/dist/chunk-MGZOEY6N.js +0 -28
  216. package/dist/chunk-PNFNDBKA.js +0 -15631
  217. package/dist/chunk-S57RMXZW.js +0 -28
  218. package/dist/chunk-VRT7T6MF.js +0 -4959
  219. package/dist/chunk-WYFFSU2Q.js +0 -15631
  220. package/dist/chunk-YRBRUREX.js +0 -57
  221. package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  222. package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -135
  223. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  224. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
  225. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  226. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
  227. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  228. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
  229. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  230. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -135
  231. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  232. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
  233. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  234. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
  235. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  236. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
  237. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
  238. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  239. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -136
  240. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  241. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -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_5SN5JBT2_exports = {};
30
- __export(chunk_5SN5JBT2_exports, {
29
+ var chunk_FXMGS3L5_exports = {};
30
+ __export(chunk_FXMGS3L5_exports, {
31
31
  getGitHubIssueUrl: () => getGitHubIssueUrl,
32
- require_strip_ansi: () => require_strip_ansi,
33
32
  wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
34
33
  });
35
- module.exports = __toCommonJS(chunk_5SN5JBT2_exports);
34
+ module.exports = __toCommonJS(chunk_FXMGS3L5_exports);
35
+ var import_chunk_ZSINRHD4 = require("./chunk-ZSINRHD4.js");
36
36
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
37
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
38
38
  var import_get_platform = require("@prisma/get-platform");
39
39
  var import_node_process = __toESM(require("node:process"));
40
40
  var import_node_os = __toESM(require("node:os"));
@@ -42,7 +42,7 @@ var import_node_fs = __toESM(require("node:fs"));
42
42
  var import_node_fs2 = __toESM(require("node:fs"));
43
43
  var import_node_fs3 = __toESM(require("node:fs"));
44
44
  var import_prompts = __toESM(require("prompts"));
45
- var require_is_windows = (0, import_chunk_WWAWV7DQ.__commonJS)({
45
+ var require_is_windows = (0, import_chunk_4VNS5WPM.__commonJS)({
46
46
  "../../node_modules/.pnpm/is-windows@1.0.2/node_modules/is-windows/index.js"(exports, module2) {
47
47
  "use strict";
48
48
  (function(factory) {
@@ -67,7 +67,7 @@ var require_is_windows = (0, import_chunk_WWAWV7DQ.__commonJS)({
67
67
  });
68
68
  }
69
69
  });
70
- var require_new_github_issue_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
70
+ var require_new_github_issue_url = (0, import_chunk_4VNS5WPM.__commonJS)({
71
71
  "../../node_modules/.pnpm/new-github-issue-url@0.2.1/node_modules/new-github-issue-url/index.js"(exports, module2) {
72
72
  "use strict";
73
73
  module2.exports = (options = {}) => {
@@ -107,10 +107,10 @@ var require_new_github_issue_url = (0, import_chunk_WWAWV7DQ.__commonJS)({
107
107
  module2.exports.default = module2.exports;
108
108
  }
109
109
  });
110
- var require_is_docker = (0, import_chunk_WWAWV7DQ.__commonJS)({
110
+ var require_is_docker = (0, import_chunk_4VNS5WPM.__commonJS)({
111
111
  "../../node_modules/.pnpm/is-docker@2.2.1/node_modules/is-docker/index.js"(exports, module2) {
112
112
  "use strict";
113
- var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
113
+ var fs4 = (0, import_chunk_4VNS5WPM.__require)("fs");
114
114
  var isDocker2;
115
115
  function hasDockerEnv2() {
116
116
  try {
@@ -135,11 +135,11 @@ var require_is_docker = (0, import_chunk_WWAWV7DQ.__commonJS)({
135
135
  };
136
136
  }
137
137
  });
138
- var require_is_wsl = (0, import_chunk_WWAWV7DQ.__commonJS)({
138
+ var require_is_wsl = (0, import_chunk_4VNS5WPM.__commonJS)({
139
139
  "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports, module2) {
140
140
  "use strict";
141
- var os2 = (0, import_chunk_WWAWV7DQ.__require)("os");
142
- var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
141
+ var os2 = (0, import_chunk_4VNS5WPM.__require)("os");
142
+ var fs4 = (0, import_chunk_4VNS5WPM.__require)("fs");
143
143
  var isDocker2 = require_is_docker();
144
144
  var isWsl2 = () => {
145
145
  if (process.platform !== "linux") {
@@ -164,13 +164,13 @@ var require_is_wsl = (0, import_chunk_WWAWV7DQ.__commonJS)({
164
164
  }
165
165
  }
166
166
  });
167
- var require_open = (0, import_chunk_WWAWV7DQ.__commonJS)({
167
+ var require_open = (0, import_chunk_4VNS5WPM.__commonJS)({
168
168
  "../../node_modules/.pnpm/open@7.4.2/node_modules/open/index.js"(exports, module2) {
169
169
  "use strict";
170
- var { promisify } = (0, import_chunk_WWAWV7DQ.__require)("util");
171
- var path = (0, import_chunk_WWAWV7DQ.__require)("path");
172
- var childProcess = (0, import_chunk_WWAWV7DQ.__require)("child_process");
173
- var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
170
+ var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
171
+ var path = (0, import_chunk_4VNS5WPM.__require)("path");
172
+ var childProcess = (0, import_chunk_4VNS5WPM.__require)("child_process");
173
+ var fs4 = (0, import_chunk_4VNS5WPM.__require)("fs");
174
174
  var isWsl2 = require_is_wsl();
175
175
  var isDocker2 = require_is_docker();
176
176
  var pAccess = promisify(fs4.access);
@@ -305,26 +305,7 @@ var require_open = (0, import_chunk_WWAWV7DQ.__commonJS)({
305
305
  };
306
306
  }
307
307
  });
308
- var require_ansi_regex = (0, import_chunk_WWAWV7DQ.__commonJS)({
309
- "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module2) {
310
- "use strict";
311
- module2.exports = ({ onlyFirst = false } = {}) => {
312
- const pattern = [
313
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
314
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
315
- ].join("|");
316
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
317
- };
318
- }
319
- });
320
- var require_strip_ansi = (0, import_chunk_WWAWV7DQ.__commonJS)({
321
- "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module2) {
322
- "use strict";
323
- var ansiRegex = require_ansi_regex();
324
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
325
- }
326
- });
327
- var import_is_windows = (0, import_chunk_WWAWV7DQ.__toESM)(require_is_windows());
308
+ var import_is_windows = (0, import_chunk_4VNS5WPM.__toESM)(require_is_windows());
328
309
  var isDockerCached;
329
310
  function hasDockerEnv() {
330
311
  try {
@@ -379,9 +360,9 @@ var isWsl = () => {
379
360
  }
380
361
  };
381
362
  var is_wsl_default = import_node_process.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
382
- var import_new_github_issue_url = (0, import_chunk_WWAWV7DQ.__toESM)(require_new_github_issue_url());
383
- var import_open = (0, import_chunk_WWAWV7DQ.__toESM)(require_open());
384
- var import_strip_ansi = (0, import_chunk_WWAWV7DQ.__toESM)(require_strip_ansi());
363
+ var import_new_github_issue_url = (0, import_chunk_4VNS5WPM.__toESM)(require_new_github_issue_url());
364
+ var import_open = (0, import_chunk_4VNS5WPM.__toESM)(require_open());
365
+ var import_strip_ansi = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ZSINRHD4.require_strip_ansi)());
385
366
  function getGitHubIssueUrl({
386
367
  title,
387
368
  user = "prisma",
@@ -26,28 +26,28 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_3ERIN7PH_exports = {};
30
- __export(chunk_3ERIN7PH_exports, {
29
+ var chunk_HG3YOAAE_exports = {};
30
+ __export(chunk_HG3YOAAE_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_3ERIN7PH_exports);
38
- var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
37
+ module.exports = __toCommonJS(chunk_HG3YOAAE_exports);
39
38
  var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
39
+ var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
42
- var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
43
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
41
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
42
+ var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
43
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_engines = require("@prisma/engines");
45
45
  var import_fetch_engine = require("@prisma/fetch-engine");
46
46
  var import_get_platform = require("@prisma/get-platform");
47
47
  var import_fs = __toESM2(require("fs"));
48
48
  var import_path = __toESM2(require("path"));
49
- var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_GXDYIY4M.require_lib)());
50
- var import_temp_dir = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_TZCE3PWZ.require_temp_dir)());
49
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
50
+ var import_temp_dir = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_5VQNKCKW.require_temp_dir)());
51
51
  async function getBinaryName(name) {
52
52
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
53
53
  const extension = binaryTarget === "windows" ? ".exe" : "";
@@ -90,7 +90,7 @@ async function resolveBinary(name, proposedPath) {
90
90
  );
91
91
  }
92
92
  function safeResolveBinary(name, proposedPath) {
93
- return (0, import_chunk_7MD6344A.tryCatch2)(
93
+ return (0, import_chunk_5DBOS77Y.tryCatch2)(
94
94
  () => resolveBinary(name, proposedPath),
95
95
  (error) => error
96
96
  );
@@ -0,0 +1,429 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var chunk_I6WLABB2_exports = {};
30
+ __export(chunk_I6WLABB2_exports, {
31
+ link: () => link2
32
+ });
33
+ module.exports = __toCommonJS(chunk_I6WLABB2_exports);
34
+ var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
35
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
36
+ var import_node_process = __toESM(require("node:process"));
37
+ var require_has_flag = (0, import_chunk_4VNS5WPM.__commonJS)({
38
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
39
+ "use strict";
40
+ module2.exports = (flag, argv = process.argv) => {
41
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
42
+ const position = argv.indexOf(prefix + flag);
43
+ const terminatorPosition = argv.indexOf("--");
44
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
45
+ };
46
+ }
47
+ });
48
+ var require_supports_color = (0, import_chunk_4VNS5WPM.__commonJS)({
49
+ "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
50
+ "use strict";
51
+ var os = (0, import_chunk_4VNS5WPM.__require)("os");
52
+ var tty = (0, import_chunk_4VNS5WPM.__require)("tty");
53
+ var hasFlag = require_has_flag();
54
+ var { env } = process;
55
+ var forceColor;
56
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
57
+ forceColor = 0;
58
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
59
+ forceColor = 1;
60
+ }
61
+ if ("FORCE_COLOR" in env) {
62
+ if (env.FORCE_COLOR === "true") {
63
+ forceColor = 1;
64
+ } else if (env.FORCE_COLOR === "false") {
65
+ forceColor = 0;
66
+ } else {
67
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
68
+ }
69
+ }
70
+ function translateLevel(level) {
71
+ if (level === 0) {
72
+ return false;
73
+ }
74
+ return {
75
+ level,
76
+ hasBasic: true,
77
+ has256: level >= 2,
78
+ has16m: level >= 3
79
+ };
80
+ }
81
+ function supportsColor(haveStream, streamIsTTY) {
82
+ if (forceColor === 0) {
83
+ return 0;
84
+ }
85
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
86
+ return 3;
87
+ }
88
+ if (hasFlag("color=256")) {
89
+ return 2;
90
+ }
91
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
92
+ return 0;
93
+ }
94
+ const min = forceColor || 0;
95
+ if (env.TERM === "dumb") {
96
+ return min;
97
+ }
98
+ if (process.platform === "win32") {
99
+ const osRelease = os.release().split(".");
100
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
101
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
102
+ }
103
+ return 1;
104
+ }
105
+ if ("CI" in env) {
106
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
107
+ return 1;
108
+ }
109
+ return min;
110
+ }
111
+ if ("TEAMCITY_VERSION" in env) {
112
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
113
+ }
114
+ if (env.COLORTERM === "truecolor") {
115
+ return 3;
116
+ }
117
+ if ("TERM_PROGRAM" in env) {
118
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
119
+ switch (env.TERM_PROGRAM) {
120
+ case "iTerm.app":
121
+ return version >= 3 ? 3 : 2;
122
+ case "Apple_Terminal":
123
+ return 2;
124
+ }
125
+ }
126
+ if (/-256(color)?$/i.test(env.TERM)) {
127
+ return 2;
128
+ }
129
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
130
+ return 1;
131
+ }
132
+ if ("COLORTERM" in env) {
133
+ return 1;
134
+ }
135
+ return min;
136
+ }
137
+ function getSupportLevel(stream) {
138
+ const level = supportsColor(stream, stream && stream.isTTY);
139
+ return translateLevel(level);
140
+ }
141
+ module2.exports = {
142
+ supportsColor: getSupportLevel,
143
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
144
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
145
+ };
146
+ }
147
+ });
148
+ var require_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__commonJS)({
149
+ "../../node_modules/.pnpm/supports-hyperlinks@3.2.0/node_modules/supports-hyperlinks/index.js"(exports, module2) {
150
+ "use strict";
151
+ var supportsColor = require_supports_color();
152
+ var hasFlag = require_has_flag();
153
+ function parseVersion(versionString) {
154
+ if (/^\d{3,4}$/.test(versionString)) {
155
+ const m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
156
+ return {
157
+ major: 0,
158
+ minor: parseInt(m[1], 10),
159
+ patch: parseInt(m[2], 10)
160
+ };
161
+ }
162
+ const versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
163
+ return {
164
+ major: versions[0],
165
+ minor: versions[1],
166
+ patch: versions[2]
167
+ };
168
+ }
169
+ function supportsHyperlink(stream) {
170
+ const {
171
+ CI,
172
+ FORCE_HYPERLINK,
173
+ NETLIFY,
174
+ TEAMCITY_VERSION,
175
+ TERM_PROGRAM,
176
+ TERM_PROGRAM_VERSION,
177
+ VTE_VERSION,
178
+ TERM
179
+ } = process.env;
180
+ if (FORCE_HYPERLINK) {
181
+ return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
182
+ }
183
+ if (hasFlag("no-hyperlink") || hasFlag("no-hyperlinks") || hasFlag("hyperlink=false") || hasFlag("hyperlink=never")) {
184
+ return false;
185
+ }
186
+ if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always")) {
187
+ return true;
188
+ }
189
+ if (NETLIFY) {
190
+ return true;
191
+ }
192
+ if (!supportsColor.supportsColor(stream)) {
193
+ return false;
194
+ }
195
+ if (stream && !stream.isTTY) {
196
+ return false;
197
+ }
198
+ if ("WT_SESSION" in process.env) {
199
+ return true;
200
+ }
201
+ if (process.platform === "win32") {
202
+ return false;
203
+ }
204
+ if (CI) {
205
+ return false;
206
+ }
207
+ if (TEAMCITY_VERSION) {
208
+ return false;
209
+ }
210
+ if (TERM_PROGRAM) {
211
+ const version = parseVersion(TERM_PROGRAM_VERSION || "");
212
+ switch (TERM_PROGRAM) {
213
+ case "iTerm.app":
214
+ if (version.major === 3) {
215
+ return version.minor >= 1;
216
+ }
217
+ return version.major > 3;
218
+ case "WezTerm":
219
+ return version.major >= 20200620;
220
+ case "vscode":
221
+ return version.major > 1 || version.major === 1 && version.minor >= 72;
222
+ case "ghostty":
223
+ return true;
224
+ }
225
+ }
226
+ if (VTE_VERSION) {
227
+ if (VTE_VERSION === "0.50.0") {
228
+ return false;
229
+ }
230
+ const version = parseVersion(VTE_VERSION);
231
+ return version.major > 0 || version.minor >= 50;
232
+ }
233
+ switch (TERM) {
234
+ case "alacritty":
235
+ return true;
236
+ }
237
+ return false;
238
+ }
239
+ module2.exports = {
240
+ supportsHyperlink,
241
+ stdout: supportsHyperlink(process.stdout),
242
+ stderr: supportsHyperlink(process.stderr)
243
+ };
244
+ }
245
+ });
246
+ var base_exports = {};
247
+ (0, import_chunk_4VNS5WPM.__export)(base_exports, {
248
+ beep: () => beep,
249
+ clearScreen: () => clearScreen,
250
+ clearTerminal: () => clearTerminal,
251
+ cursorBackward: () => cursorBackward,
252
+ cursorDown: () => cursorDown,
253
+ cursorForward: () => cursorForward,
254
+ cursorGetPosition: () => cursorGetPosition,
255
+ cursorHide: () => cursorHide,
256
+ cursorLeft: () => cursorLeft,
257
+ cursorMove: () => cursorMove,
258
+ cursorNextLine: () => cursorNextLine,
259
+ cursorPrevLine: () => cursorPrevLine,
260
+ cursorRestorePosition: () => cursorRestorePosition,
261
+ cursorSavePosition: () => cursorSavePosition,
262
+ cursorShow: () => cursorShow,
263
+ cursorTo: () => cursorTo,
264
+ cursorUp: () => cursorUp,
265
+ enterAlternativeScreen: () => enterAlternativeScreen,
266
+ eraseDown: () => eraseDown,
267
+ eraseEndLine: () => eraseEndLine,
268
+ eraseLine: () => eraseLine,
269
+ eraseLines: () => eraseLines,
270
+ eraseScreen: () => eraseScreen,
271
+ eraseStartLine: () => eraseStartLine,
272
+ eraseUp: () => eraseUp,
273
+ exitAlternativeScreen: () => exitAlternativeScreen,
274
+ iTerm: () => iTerm,
275
+ image: () => image,
276
+ link: () => link,
277
+ scrollDown: () => scrollDown,
278
+ scrollUp: () => scrollUp
279
+ });
280
+ var isBrowser = globalThis.window?.document !== void 0;
281
+ var isNode = globalThis.process?.versions?.node !== void 0;
282
+ var isBun = globalThis.process?.versions?.bun !== void 0;
283
+ var isDeno = globalThis.Deno?.version?.deno !== void 0;
284
+ var isElectron = globalThis.process?.versions?.electron !== void 0;
285
+ var isJsDom = globalThis.navigator?.userAgent?.includes("jsdom") === true;
286
+ var isWebWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
287
+ var isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== "undefined" && globalThis instanceof DedicatedWorkerGlobalScope;
288
+ var isSharedWorker = typeof SharedWorkerGlobalScope !== "undefined" && globalThis instanceof SharedWorkerGlobalScope;
289
+ var isServiceWorker = typeof ServiceWorkerGlobalScope !== "undefined" && globalThis instanceof ServiceWorkerGlobalScope;
290
+ var platform = globalThis.navigator?.userAgentData?.platform;
291
+ var isMacOs = platform === "macOS" || globalThis.navigator?.platform === "MacIntel" || globalThis.navigator?.userAgent?.includes(" Mac ") === true || globalThis.process?.platform === "darwin";
292
+ var isWindows = platform === "Windows" || globalThis.navigator?.platform === "Win32" || globalThis.process?.platform === "win32";
293
+ var isLinux = platform === "Linux" || globalThis.navigator?.platform?.startsWith("Linux") === true || globalThis.navigator?.userAgent?.includes(" Linux ") === true || globalThis.process?.platform === "linux";
294
+ var isIos = platform === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
295
+ var isAndroid = platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform === "android";
296
+ var ESC = "\x1B[";
297
+ var OSC = "\x1B]";
298
+ var BEL = "\x07";
299
+ var SEP = ";";
300
+ var isTerminalApp = !isBrowser && import_node_process.default.env.TERM_PROGRAM === "Apple_Terminal";
301
+ var isWindows2 = !isBrowser && import_node_process.default.platform === "win32";
302
+ var cwdFunction = isBrowser ? () => {
303
+ throw new Error("`process.cwd()` only works in Node.js, not the browser.");
304
+ } : import_node_process.default.cwd;
305
+ var cursorTo = (x, y) => {
306
+ if (typeof x !== "number") {
307
+ throw new TypeError("The `x` argument is required");
308
+ }
309
+ if (typeof y !== "number") {
310
+ return ESC + (x + 1) + "G";
311
+ }
312
+ return ESC + (y + 1) + SEP + (x + 1) + "H";
313
+ };
314
+ var cursorMove = (x, y) => {
315
+ if (typeof x !== "number") {
316
+ throw new TypeError("The `x` argument is required");
317
+ }
318
+ let returnValue = "";
319
+ if (x < 0) {
320
+ returnValue += ESC + -x + "D";
321
+ } else if (x > 0) {
322
+ returnValue += ESC + x + "C";
323
+ }
324
+ if (y < 0) {
325
+ returnValue += ESC + -y + "A";
326
+ } else if (y > 0) {
327
+ returnValue += ESC + y + "B";
328
+ }
329
+ return returnValue;
330
+ };
331
+ var cursorUp = (count = 1) => ESC + count + "A";
332
+ var cursorDown = (count = 1) => ESC + count + "B";
333
+ var cursorForward = (count = 1) => ESC + count + "C";
334
+ var cursorBackward = (count = 1) => ESC + count + "D";
335
+ var cursorLeft = ESC + "G";
336
+ var cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
337
+ var cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
338
+ var cursorGetPosition = ESC + "6n";
339
+ var cursorNextLine = ESC + "E";
340
+ var cursorPrevLine = ESC + "F";
341
+ var cursorHide = ESC + "?25l";
342
+ var cursorShow = ESC + "?25h";
343
+ var eraseLines = (count) => {
344
+ let clear = "";
345
+ for (let i = 0; i < count; i++) {
346
+ clear += eraseLine + (i < count - 1 ? cursorUp() : "");
347
+ }
348
+ if (count) {
349
+ clear += cursorLeft;
350
+ }
351
+ return clear;
352
+ };
353
+ var eraseEndLine = ESC + "K";
354
+ var eraseStartLine = ESC + "1K";
355
+ var eraseLine = ESC + "2K";
356
+ var eraseDown = ESC + "J";
357
+ var eraseUp = ESC + "1J";
358
+ var eraseScreen = ESC + "2J";
359
+ var scrollUp = ESC + "S";
360
+ var scrollDown = ESC + "T";
361
+ var clearScreen = "\x1Bc";
362
+ var clearTerminal = isWindows2 ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
363
+ var enterAlternativeScreen = ESC + "?1049h";
364
+ var exitAlternativeScreen = ESC + "?1049l";
365
+ var beep = BEL;
366
+ var link = (text, url) => [
367
+ OSC,
368
+ "8",
369
+ SEP,
370
+ SEP,
371
+ url,
372
+ BEL,
373
+ text,
374
+ OSC,
375
+ "8",
376
+ SEP,
377
+ SEP,
378
+ BEL
379
+ ].join("");
380
+ var image = (data, options = {}) => {
381
+ let returnValue = `${OSC}1337;File=inline=1`;
382
+ if (options.width) {
383
+ returnValue += `;width=${options.width}`;
384
+ }
385
+ if (options.height) {
386
+ returnValue += `;height=${options.height}`;
387
+ }
388
+ if (options.preserveAspectRatio === false) {
389
+ returnValue += ";preserveAspectRatio=0";
390
+ }
391
+ return returnValue + ":" + Buffer.from(data).toString("base64") + BEL;
392
+ };
393
+ var iTerm = {
394
+ setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
395
+ annotation(message, options = {}) {
396
+ let returnValue = `${OSC}1337;`;
397
+ const hasX = options.x !== void 0;
398
+ const hasY = options.y !== void 0;
399
+ if ((hasX || hasY) && !(hasX && hasY && options.length !== void 0)) {
400
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
401
+ }
402
+ message = message.replaceAll("|", "");
403
+ returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
404
+ if (options.length > 0) {
405
+ returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
406
+ } else {
407
+ returnValue += message;
408
+ }
409
+ return returnValue + BEL;
410
+ }
411
+ };
412
+ var import_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__toESM)(require_supports_hyperlinks(), 1);
413
+ function terminalLink(text, url, { target = "stdout", ...options } = {}) {
414
+ if (!import_supports_hyperlinks.default[target]) {
415
+ if (options.fallback === false) {
416
+ return text;
417
+ }
418
+ return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
419
+ }
420
+ return base_exports.link(text, url);
421
+ }
422
+ terminalLink.isSupported = import_supports_hyperlinks.default.stdout;
423
+ terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
424
+ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
425
+ function link2(url) {
426
+ return terminalLink(url, url, {
427
+ fallback: (url2) => (0, import_chunk_PG5FDKSF.underline)(url2)
428
+ });
429
+ }