@prisma/migrate 6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.4 → 6.6.0-integration-mcp.1

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 (34) hide show
  1. package/dist/bin.js +14 -14
  2. package/dist/{chunk-EJUXYFV3.js → chunk-BYRRPHGM.js} +206 -3
  3. package/dist/{chunk-CKRN45WP.js → chunk-FJ22R36R.js} +6 -6
  4. package/dist/{chunk-B4SUSDC2.js → chunk-GBMQW4HZ.js} +6 -6
  5. package/dist/{chunk-UWQXMKQO.js → chunk-KF6K4EE5.js} +297 -2135
  6. package/dist/{chunk-O723A5JE.js → chunk-LVDALRAV.js} +6 -6
  7. package/dist/{chunk-L53C3AX3.js → chunk-PPOA6UUS.js} +296 -2134
  8. package/dist/{chunk-TGV6QGEF.js → chunk-QVMYNWAN.js} +191 -37
  9. package/dist/{chunk-5LKIRKDL.js → chunk-XPJHNEKB.js} +12 -12
  10. package/dist/{chunk-QJT4H5N6.js → chunk-ZJ4IDCRR.js} +4 -4
  11. package/dist/commands/DbPull.js +3 -3
  12. package/dist/commands/DbSeed.js +3 -3
  13. package/dist/commands/MigrateDev.js +3 -3
  14. package/dist/commands/MigrateDiff.js +3 -3
  15. package/dist/commands/MigrateReset.js +3 -3
  16. package/dist/index.js +14 -17
  17. package/dist/internals/src/cli/directoryConfig.d.ts +1 -1
  18. package/dist/internals/src/cli/getSchema.d.ts +3 -28
  19. package/dist/internals/src/cli/hashes.d.ts +1 -2
  20. package/dist/internals/src/cli/schemaContext.d.ts +4 -3
  21. package/dist/internals/src/index.d.ts +1 -1
  22. package/dist/migrate/src/index.d.ts +0 -1
  23. package/dist/{multipart-parser-ASKQAOL4-WZ47HU6G.js → multipart-parser-AOASR4DL-AXIJXW2B.js} +702 -228
  24. package/dist/{multipart-parser-QCI3Y5IB.js → multipart-parser-GQA7KJYT.js} +687 -213
  25. package/dist/open-KDTCMDK7.js +530 -0
  26. package/dist/utils/seed.js +3 -3
  27. package/dist/utils/setupCockroach.js +2 -2
  28. package/dist/utils/setupMSSQL.js +21636 -30315
  29. package/dist/utils/setupMongo.js +3327 -834
  30. package/dist/utils/setupPostgres.js +2 -2
  31. package/package.json +8 -8
  32. package/dist/chunk-GKDFIHM2.js +0 -45
  33. package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
  34. package/dist/utils/getSchemaPathAndPrint.js +0 -27
@@ -0,0 +1,530 @@
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 open_KDTCMDK7_exports = {};
30
+ __export(open_KDTCMDK7_exports, {
31
+ apps: () => apps,
32
+ default: () => open_default,
33
+ openApp: () => openApp
34
+ });
35
+ module.exports = __toCommonJS(open_KDTCMDK7_exports);
36
+ var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
37
+ var import_node_fs = __toESM(require("node:fs"));
38
+ var import_node_fs2 = __toESM(require("node:fs"));
39
+ var import_node_process = __toESM(require("node:process"));
40
+ var import_node_os = __toESM(require("node:os"));
41
+ var import_node_fs3 = __toESM(require("node:fs"));
42
+ var import_node_util = require("node:util");
43
+ var import_node_process2 = __toESM(require("node:process"));
44
+ var import_node_child_process = require("node:child_process");
45
+ var import_node_process3 = __toESM(require("node:process"));
46
+ var import_node_util2 = require("node:util");
47
+ var import_node_child_process2 = require("node:child_process");
48
+ var import_node_util3 = require("node:util");
49
+ var import_node_child_process3 = require("node:child_process");
50
+ var import_node_util4 = require("node:util");
51
+ var import_node_process4 = __toESM(require("node:process"));
52
+ var import_node_child_process4 = require("node:child_process");
53
+ var import_node_process5 = __toESM(require("node:process"));
54
+ var import_node_buffer = require("node:buffer");
55
+ var import_node_path = __toESM(require("node:path"));
56
+ var import_node_url = require("node:url");
57
+ var import_node_child_process5 = __toESM(require("node:child_process"));
58
+ var import_promises = __toESM(require("node:fs/promises"));
59
+ const import_meta = {};
60
+ function hasDockerEnv() {
61
+ try {
62
+ import_node_fs.default.statSync("/.dockerenv");
63
+ return true;
64
+ } catch {
65
+ return false;
66
+ }
67
+ }
68
+ function hasDockerCGroup() {
69
+ try {
70
+ return import_node_fs.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
71
+ } catch {
72
+ return false;
73
+ }
74
+ }
75
+ function isDocker() {
76
+ if (isDockerCached === void 0) {
77
+ isDockerCached = hasDockerEnv() || hasDockerCGroup();
78
+ }
79
+ return isDockerCached;
80
+ }
81
+ var isDockerCached;
82
+ var init_is_docker = (0, import_chunk_2ESYSVXG.__esm)({
83
+ "../../node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js"() {
84
+ "use strict";
85
+ }
86
+ });
87
+ function isInsideContainer() {
88
+ if (cachedResult === void 0) {
89
+ cachedResult = hasContainerEnv() || isDocker();
90
+ }
91
+ return cachedResult;
92
+ }
93
+ var cachedResult, hasContainerEnv;
94
+ var init_is_inside_container = (0, import_chunk_2ESYSVXG.__esm)({
95
+ "../../node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.js"() {
96
+ "use strict";
97
+ init_is_docker();
98
+ hasContainerEnv = () => {
99
+ try {
100
+ import_node_fs2.default.statSync("/run/.containerenv");
101
+ return true;
102
+ } catch {
103
+ return false;
104
+ }
105
+ };
106
+ }
107
+ });
108
+ var isWsl, is_wsl_default;
109
+ var init_is_wsl = (0, import_chunk_2ESYSVXG.__esm)({
110
+ "../../node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/index.js"() {
111
+ "use strict";
112
+ init_is_inside_container();
113
+ isWsl = () => {
114
+ if (import_node_process.default.platform !== "linux") {
115
+ return false;
116
+ }
117
+ if (import_node_os.default.release().toLowerCase().includes("microsoft")) {
118
+ if (isInsideContainer()) {
119
+ return false;
120
+ }
121
+ return true;
122
+ }
123
+ try {
124
+ return import_node_fs3.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
125
+ } catch {
126
+ return false;
127
+ }
128
+ };
129
+ is_wsl_default = import_node_process.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
130
+ }
131
+ });
132
+ function defineLazyProperty(object, propertyName, valueGetter) {
133
+ const define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
134
+ Object.defineProperty(object, propertyName, {
135
+ configurable: true,
136
+ enumerable: true,
137
+ get() {
138
+ const result = valueGetter();
139
+ define(result);
140
+ return result;
141
+ },
142
+ set(value) {
143
+ define(value);
144
+ }
145
+ });
146
+ return object;
147
+ }
148
+ var init_define_lazy_prop = (0, import_chunk_2ESYSVXG.__esm)({
149
+ "../../node_modules/.pnpm/define-lazy-prop@3.0.0/node_modules/define-lazy-prop/index.js"() {
150
+ "use strict";
151
+ }
152
+ });
153
+ async function defaultBrowserId() {
154
+ if (import_node_process2.default.platform !== "darwin") {
155
+ throw new Error("macOS only");
156
+ }
157
+ const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
158
+ const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
159
+ return match?.groups.id ?? "com.apple.Safari";
160
+ }
161
+ var execFileAsync;
162
+ var init_default_browser_id = (0, import_chunk_2ESYSVXG.__esm)({
163
+ "../../node_modules/.pnpm/default-browser-id@5.0.0/node_modules/default-browser-id/index.js"() {
164
+ "use strict";
165
+ execFileAsync = (0, import_node_util.promisify)(import_node_child_process.execFile);
166
+ }
167
+ });
168
+ async function runAppleScript(script, { humanReadableOutput = true } = {}) {
169
+ if (import_node_process3.default.platform !== "darwin") {
170
+ throw new Error("macOS only");
171
+ }
172
+ const outputArguments = humanReadableOutput ? [] : ["-ss"];
173
+ const { stdout } = await execFileAsync2("osascript", ["-e", script, outputArguments]);
174
+ return stdout.trim();
175
+ }
176
+ var execFileAsync2;
177
+ var init_run_applescript = (0, import_chunk_2ESYSVXG.__esm)({
178
+ "../../node_modules/.pnpm/run-applescript@7.0.0/node_modules/run-applescript/index.js"() {
179
+ "use strict";
180
+ execFileAsync2 = (0, import_node_util2.promisify)(import_node_child_process2.execFile);
181
+ }
182
+ });
183
+ async function bundleName(bundleId) {
184
+ return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
185
+ tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
186
+ }
187
+ var init_bundle_name = (0, import_chunk_2ESYSVXG.__esm)({
188
+ "../../node_modules/.pnpm/bundle-name@4.1.0/node_modules/bundle-name/index.js"() {
189
+ "use strict";
190
+ init_run_applescript();
191
+ }
192
+ });
193
+ async function defaultBrowser(_execFileAsync = execFileAsync3) {
194
+ const { stdout } = await _execFileAsync("reg", [
195
+ "QUERY",
196
+ " HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
197
+ "/v",
198
+ "ProgId"
199
+ ]);
200
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
201
+ if (!match) {
202
+ throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
203
+ }
204
+ const { id } = match.groups;
205
+ const browser = windowsBrowserProgIds[id];
206
+ if (!browser) {
207
+ throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
208
+ }
209
+ return browser;
210
+ }
211
+ var execFileAsync3, windowsBrowserProgIds, UnknownBrowserError;
212
+ var init_windows = (0, import_chunk_2ESYSVXG.__esm)({
213
+ "../../node_modules/.pnpm/default-browser@5.2.1/node_modules/default-browser/windows.js"() {
214
+ "use strict";
215
+ execFileAsync3 = (0, import_node_util3.promisify)(import_node_child_process3.execFile);
216
+ windowsBrowserProgIds = {
217
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
218
+ MSEdgeDHTML: { name: "Edge", id: "com.microsoft.edge" },
219
+ // On macOS, it's "com.microsoft.edgemac"
220
+ MSEdgeHTM: { name: "Edge", id: "com.microsoft.edge" },
221
+ // Newer Edge/Win10 releases
222
+ "IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" },
223
+ FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
224
+ ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
225
+ BraveHTML: { name: "Brave", id: "com.brave.Browser" },
226
+ BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
227
+ BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" }
228
+ };
229
+ UnknownBrowserError = class extends Error {
230
+ };
231
+ }
232
+ });
233
+ async function defaultBrowser2() {
234
+ if (import_node_process4.default.platform === "darwin") {
235
+ const id = await defaultBrowserId();
236
+ const name = await bundleName(id);
237
+ return { name, id };
238
+ }
239
+ if (import_node_process4.default.platform === "linux") {
240
+ const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
241
+ const id = stdout.trim();
242
+ const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
243
+ return { name, id };
244
+ }
245
+ if (import_node_process4.default.platform === "win32") {
246
+ return defaultBrowser();
247
+ }
248
+ throw new Error("Only macOS, Linux, and Windows are supported");
249
+ }
250
+ var execFileAsync4, titleize;
251
+ var init_default_browser = (0, import_chunk_2ESYSVXG.__esm)({
252
+ "../../node_modules/.pnpm/default-browser@5.2.1/node_modules/default-browser/index.js"() {
253
+ "use strict";
254
+ init_default_browser_id();
255
+ init_bundle_name();
256
+ init_windows();
257
+ execFileAsync4 = (0, import_node_util4.promisify)(import_node_child_process4.execFile);
258
+ titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
259
+ }
260
+ });
261
+ function detectArchBinary(binary) {
262
+ if (typeof binary === "string" || Array.isArray(binary)) {
263
+ return binary;
264
+ }
265
+ const { [arch]: archBinary } = binary;
266
+ if (!archBinary) {
267
+ throw new Error(`${arch} is not supported`);
268
+ }
269
+ return archBinary;
270
+ }
271
+ function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
272
+ if (wsl && is_wsl_default) {
273
+ return detectArchBinary(wsl);
274
+ }
275
+ if (!platformBinary) {
276
+ throw new Error(`${platform} is not supported`);
277
+ }
278
+ return detectArchBinary(platformBinary);
279
+ }
280
+ var __dirname, localXdgOpenPath, platform, arch, getWslDrivesMountPoint, pTryEach, baseOpen, open, openApp, apps, open_default;
281
+ var init_open = (0, import_chunk_2ESYSVXG.__esm)({
282
+ "../../node_modules/.pnpm/open@10.1.0/node_modules/open/index.js"() {
283
+ init_is_wsl();
284
+ init_define_lazy_prop();
285
+ init_default_browser();
286
+ init_is_inside_container();
287
+ __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
288
+ localXdgOpenPath = import_node_path.default.join(__dirname, "xdg-open");
289
+ ({ platform, arch } = import_node_process5.default);
290
+ getWslDrivesMountPoint = /* @__PURE__ */ (() => {
291
+ const defaultMountPoint = "/mnt/";
292
+ let mountPoint;
293
+ return async function() {
294
+ if (mountPoint) {
295
+ return mountPoint;
296
+ }
297
+ const configFilePath = "/etc/wsl.conf";
298
+ let isConfigFileExists = false;
299
+ try {
300
+ await import_promises.default.access(configFilePath, import_promises.constants.F_OK);
301
+ isConfigFileExists = true;
302
+ } catch {
303
+ }
304
+ if (!isConfigFileExists) {
305
+ return defaultMountPoint;
306
+ }
307
+ const configContent = await import_promises.default.readFile(configFilePath, { encoding: "utf8" });
308
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
309
+ if (!configMountPoint) {
310
+ return defaultMountPoint;
311
+ }
312
+ mountPoint = configMountPoint.groups.mountPoint.trim();
313
+ mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
314
+ return mountPoint;
315
+ };
316
+ })();
317
+ pTryEach = async (array, mapper) => {
318
+ let latestError;
319
+ for (const item of array) {
320
+ try {
321
+ return await mapper(item);
322
+ } catch (error) {
323
+ latestError = error;
324
+ }
325
+ }
326
+ throw latestError;
327
+ };
328
+ baseOpen = async (options) => {
329
+ options = {
330
+ wait: false,
331
+ background: false,
332
+ newInstance: false,
333
+ allowNonzeroExitCode: false,
334
+ ...options
335
+ };
336
+ if (Array.isArray(options.app)) {
337
+ return pTryEach(options.app, (singleApp) => baseOpen({
338
+ ...options,
339
+ app: singleApp
340
+ }));
341
+ }
342
+ let { name: app, arguments: appArguments = [] } = options.app ?? {};
343
+ appArguments = [...appArguments];
344
+ if (Array.isArray(app)) {
345
+ return pTryEach(app, (appName) => baseOpen({
346
+ ...options,
347
+ app: {
348
+ name: appName,
349
+ arguments: appArguments
350
+ }
351
+ }));
352
+ }
353
+ if (app === "browser" || app === "browserPrivate") {
354
+ const ids = {
355
+ "com.google.chrome": "chrome",
356
+ "google-chrome.desktop": "chrome",
357
+ "org.mozilla.firefox": "firefox",
358
+ "firefox.desktop": "firefox",
359
+ "com.microsoft.msedge": "edge",
360
+ "com.microsoft.edge": "edge",
361
+ "microsoft-edge.desktop": "edge"
362
+ };
363
+ const flags = {
364
+ chrome: "--incognito",
365
+ firefox: "--private-window",
366
+ edge: "--inPrivate"
367
+ };
368
+ const browser = await defaultBrowser2();
369
+ if (browser.id in ids) {
370
+ const browserName = ids[browser.id];
371
+ if (app === "browserPrivate") {
372
+ appArguments.push(flags[browserName]);
373
+ }
374
+ return baseOpen({
375
+ ...options,
376
+ app: {
377
+ name: apps[browserName],
378
+ arguments: appArguments
379
+ }
380
+ });
381
+ }
382
+ throw new Error(`${browser.name} is not supported as a default browser`);
383
+ }
384
+ let command;
385
+ const cliArguments = [];
386
+ const childProcessOptions = {};
387
+ if (platform === "darwin") {
388
+ command = "open";
389
+ if (options.wait) {
390
+ cliArguments.push("--wait-apps");
391
+ }
392
+ if (options.background) {
393
+ cliArguments.push("--background");
394
+ }
395
+ if (options.newInstance) {
396
+ cliArguments.push("--new");
397
+ }
398
+ if (app) {
399
+ cliArguments.push("-a", app);
400
+ }
401
+ } else if (platform === "win32" || is_wsl_default && !isInsideContainer() && !app) {
402
+ const mountPoint = await getWslDrivesMountPoint();
403
+ command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${import_node_process5.default.env.SYSTEMROOT || import_node_process5.default.env.windir || "C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
404
+ cliArguments.push(
405
+ "-NoProfile",
406
+ "-NonInteractive",
407
+ "-ExecutionPolicy",
408
+ "Bypass",
409
+ "-EncodedCommand"
410
+ );
411
+ if (!is_wsl_default) {
412
+ childProcessOptions.windowsVerbatimArguments = true;
413
+ }
414
+ const encodedArguments = ["Start"];
415
+ if (options.wait) {
416
+ encodedArguments.push("-Wait");
417
+ }
418
+ if (app) {
419
+ encodedArguments.push(`"\`"${app}\`""`);
420
+ if (options.target) {
421
+ appArguments.push(options.target);
422
+ }
423
+ } else if (options.target) {
424
+ encodedArguments.push(`"${options.target}"`);
425
+ }
426
+ if (appArguments.length > 0) {
427
+ appArguments = appArguments.map((argument) => `"\`"${argument}\`""`);
428
+ encodedArguments.push("-ArgumentList", appArguments.join(","));
429
+ }
430
+ options.target = import_node_buffer.Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
431
+ } else {
432
+ if (app) {
433
+ command = app;
434
+ } else {
435
+ const isBundled = !__dirname || __dirname === "/";
436
+ let exeLocalXdgOpen = false;
437
+ try {
438
+ await import_promises.default.access(localXdgOpenPath, import_promises.constants.X_OK);
439
+ exeLocalXdgOpen = true;
440
+ } catch {
441
+ }
442
+ const useSystemXdgOpen = import_node_process5.default.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen);
443
+ command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
444
+ }
445
+ if (appArguments.length > 0) {
446
+ cliArguments.push(...appArguments);
447
+ }
448
+ if (!options.wait) {
449
+ childProcessOptions.stdio = "ignore";
450
+ childProcessOptions.detached = true;
451
+ }
452
+ }
453
+ if (platform === "darwin" && appArguments.length > 0) {
454
+ cliArguments.push("--args", ...appArguments);
455
+ }
456
+ if (options.target) {
457
+ cliArguments.push(options.target);
458
+ }
459
+ const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
460
+ if (options.wait) {
461
+ return new Promise((resolve, reject) => {
462
+ subprocess.once("error", reject);
463
+ subprocess.once("close", (exitCode) => {
464
+ if (!options.allowNonzeroExitCode && exitCode > 0) {
465
+ reject(new Error(`Exited with code ${exitCode}`));
466
+ return;
467
+ }
468
+ resolve(subprocess);
469
+ });
470
+ });
471
+ }
472
+ subprocess.unref();
473
+ return subprocess;
474
+ };
475
+ open = (target, options) => {
476
+ if (typeof target !== "string") {
477
+ throw new TypeError("Expected a `target`");
478
+ }
479
+ return baseOpen({
480
+ ...options,
481
+ target
482
+ });
483
+ };
484
+ openApp = (name, options) => {
485
+ if (typeof name !== "string" && !Array.isArray(name)) {
486
+ throw new TypeError("Expected a valid `name`");
487
+ }
488
+ const { arguments: appArguments = [] } = options ?? {};
489
+ if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
490
+ throw new TypeError("Expected `appArguments` as Array type");
491
+ }
492
+ return baseOpen({
493
+ ...options,
494
+ app: {
495
+ name,
496
+ arguments: appArguments
497
+ }
498
+ });
499
+ };
500
+ apps = {};
501
+ defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
502
+ darwin: "google chrome",
503
+ win32: "chrome",
504
+ linux: ["google-chrome", "google-chrome-stable", "chromium"]
505
+ }, {
506
+ wsl: {
507
+ ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
508
+ x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
509
+ }
510
+ }));
511
+ defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
512
+ darwin: "firefox",
513
+ win32: "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
514
+ linux: "firefox"
515
+ }, {
516
+ wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
517
+ }));
518
+ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
519
+ darwin: "microsoft edge",
520
+ win32: "msedge",
521
+ linux: ["microsoft-edge", "microsoft-edge-dev"]
522
+ }, {
523
+ wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
524
+ }));
525
+ defineLazyProperty(apps, "browser", () => "browser");
526
+ defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
527
+ open_default = open;
528
+ }
529
+ });
530
+ init_open();
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var seed_exports = {};
20
20
  __export(seed_exports, {
21
- executeSeedCommand: () => import_chunk_5LKIRKDL.executeSeedCommand,
22
- getSeedCommandFromPackageJson: () => import_chunk_5LKIRKDL.getSeedCommandFromPackageJson
21
+ executeSeedCommand: () => import_chunk_XPJHNEKB.executeSeedCommand,
22
+ getSeedCommandFromPackageJson: () => import_chunk_XPJHNEKB.getSeedCommandFromPackageJson
23
23
  });
24
24
  module.exports = __toCommonJS(seed_exports);
25
- var import_chunk_5LKIRKDL = require("../chunk-5LKIRKDL.js");
25
+ var import_chunk_XPJHNEKB = require("../chunk-XPJHNEKB.js");
26
26
  var import_chunk_SKRR5WT4 = require("../chunk-SKRR5WT4.js");
27
27
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
@@ -32,12 +32,12 @@ __export(setupCockroach_exports, {
32
32
  tearDownCockroach: () => tearDownCockroach
33
33
  });
34
34
  module.exports = __toCommonJS(setupCockroach_exports);
35
- var import_chunk_TGV6QGEF = require("../chunk-TGV6QGEF.js");
35
+ var import_chunk_QVMYNWAN = require("../chunk-QVMYNWAN.js");
36
36
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
37
37
  var import_internals = require("@prisma/internals");
38
38
  var import_fs = __toESM(require("fs"));
39
39
  var import_path = __toESM(require("path"));
40
- var import_pg = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_TGV6QGEF.require_lib)());
40
+ var import_pg = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_QVMYNWAN.require_lib)());
41
41
  async function setupCockroach(options) {
42
42
  const { connectionString } = options;
43
43
  const { dirname } = options;