vibedgames 0.6.3 → 0.7.0

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 (140) hide show
  1. package/README.md +14 -9
  2. package/dist/THIRD_PARTY_NOTICES.txt +383 -0
  3. package/dist/chunk-2GL2WJZX.js +172 -0
  4. package/dist/chunk-2QBYTIMH.js +511 -0
  5. package/dist/chunk-34AHIMX7.js +466 -0
  6. package/dist/chunk-6FZPPUQH.js +107 -0
  7. package/dist/chunk-BVVYDSFJ.js +99 -0
  8. package/dist/chunk-CAKBGDCY.js +47 -0
  9. package/dist/chunk-CBKOPVU6.js +1780 -0
  10. package/dist/chunk-CU7UY5YJ.js +1108 -0
  11. package/dist/chunk-CZPKN32Z.js +257 -0
  12. package/dist/chunk-DHEXGWJY.js +111 -0
  13. package/dist/chunk-FL6IFBUF.js +22 -0
  14. package/dist/chunk-FLUXEHMU.js +1360 -0
  15. package/dist/chunk-FNYBZNW2.js +165 -0
  16. package/dist/chunk-G5FRIFA3.js +22 -0
  17. package/dist/chunk-HCMTSR7E.js +69 -0
  18. package/dist/chunk-HKA5LBYW.js +159 -0
  19. package/dist/chunk-I6O4HIDY.js +1063 -0
  20. package/dist/chunk-J6PKNPI2.js +26 -0
  21. package/dist/chunk-JT2AU24K.js +759 -0
  22. package/dist/chunk-MBXCVCC4.js +478 -0
  23. package/dist/chunk-MJQSHP3Y.js +415 -0
  24. package/dist/chunk-MYFLYNPO.js +68 -0
  25. package/dist/chunk-PEUP4MZR.js +59 -0
  26. package/dist/chunk-PHEDW6C7.js +32 -0
  27. package/dist/chunk-PQDBCZRT.js +2017 -0
  28. package/dist/chunk-QGEITHUP.js +395 -0
  29. package/dist/chunk-QIVCBUYD.js +273 -0
  30. package/dist/chunk-RYFO3ZPO.js +71 -0
  31. package/dist/chunk-RZ4DIJQW.js +68 -0
  32. package/dist/chunk-SAANBZ25.js +118 -0
  33. package/dist/chunk-VFFOT7KD.js +2980 -0
  34. package/dist/chunk-Y552BNFZ.js +41 -0
  35. package/dist/chunk-Z4Z24FWO.js +39 -0
  36. package/dist/chunk-ZI6PKVXG.js +64 -0
  37. package/dist/chunk-ZYCSYJWX.js +87 -0
  38. package/dist/index.js +67 -60
  39. package/package.json +13 -16
  40. package/templates/none/_gitignore +3 -0
  41. package/templates/none/index.html +29 -0
  42. package/templates/none/package.json +16 -0
  43. package/templates/none/src/main.ts +16 -0
  44. package/templates/none/tsconfig.json +18 -0
  45. package/templates/none/vite.config.ts +8 -0
  46. package/templates/phaser/_gitignore +3 -0
  47. package/templates/phaser/index.html +24 -0
  48. package/templates/phaser/package.json +19 -0
  49. package/templates/phaser/src/main.ts +16 -0
  50. package/templates/phaser/src/scenes/game-scene.ts +65 -0
  51. package/templates/phaser/tsconfig.json +18 -0
  52. package/templates/phaser/vite.config.ts +8 -0
  53. package/templates/react-r3f/_gitignore +3 -0
  54. package/templates/react-r3f/index.html +24 -0
  55. package/templates/react-r3f/package.json +27 -0
  56. package/templates/react-r3f/src/app.tsx +33 -0
  57. package/templates/react-r3f/src/main.tsx +15 -0
  58. package/templates/react-r3f/tsconfig.json +19 -0
  59. package/templates/react-r3f/vite.config.ts +10 -0
  60. package/templates/threejs/_gitignore +3 -0
  61. package/templates/threejs/index.html +36 -0
  62. package/templates/threejs/package.json +20 -0
  63. package/templates/threejs/src/main.ts +44 -0
  64. package/templates/threejs/tsconfig.json +18 -0
  65. package/templates/threejs/vite.config.ts +8 -0
  66. package/dist/commands/completions.d.ts +0 -7
  67. package/dist/commands/completions.js +0 -145
  68. package/dist/commands/credits.d.ts +0 -10
  69. package/dist/commands/credits.js +0 -136
  70. package/dist/commands/deploy.d.ts +0 -26
  71. package/dist/commands/deploy.js +0 -257
  72. package/dist/commands/factory.d.ts +0 -3
  73. package/dist/commands/factory.js +0 -73
  74. package/dist/commands/fork.d.ts +0 -29
  75. package/dist/commands/fork.js +0 -124
  76. package/dist/commands/generate.d.ts +0 -1
  77. package/dist/commands/generate.js +0 -565
  78. package/dist/commands/init.d.ts +0 -20
  79. package/dist/commands/init.js +0 -105
  80. package/dist/commands/login.d.ts +0 -1
  81. package/dist/commands/login.js +0 -45
  82. package/dist/commands/logout.d.ts +0 -1
  83. package/dist/commands/logout.js +0 -13
  84. package/dist/commands/new.d.ts +0 -26
  85. package/dist/commands/new.js +0 -318
  86. package/dist/commands/playtest-run.d.ts +0 -66
  87. package/dist/commands/playtest-run.js +0 -268
  88. package/dist/commands/playtest.d.ts +0 -76
  89. package/dist/commands/playtest.js +0 -372
  90. package/dist/commands/update.d.ts +0 -13
  91. package/dist/commands/update.js +0 -82
  92. package/dist/commands/whoami.d.ts +0 -10
  93. package/dist/commands/whoami.js +0 -44
  94. package/dist/index.d.ts +0 -2
  95. package/dist/lib/api.d.ts +0 -18
  96. package/dist/lib/api.js +0 -27
  97. package/dist/lib/archive.d.ts +0 -17
  98. package/dist/lib/archive.js +0 -228
  99. package/dist/lib/codex.d.ts +0 -117
  100. package/dist/lib/codex.js +0 -426
  101. package/dist/lib/config-file.d.ts +0 -16
  102. package/dist/lib/config-file.js +0 -54
  103. package/dist/lib/config.d.ts +0 -11
  104. package/dist/lib/config.js +0 -54
  105. package/dist/lib/manifest.d.ts +0 -10
  106. package/dist/lib/manifest.js +0 -91
  107. package/dist/lib/media-args.d.ts +0 -30
  108. package/dist/lib/media-args.js +0 -219
  109. package/dist/lib/media-download.d.ts +0 -37
  110. package/dist/lib/media-download.js +0 -268
  111. package/dist/lib/media-poll.d.ts +0 -18
  112. package/dist/lib/media-poll.js +0 -86
  113. package/dist/lib/media-upload.d.ts +0 -12
  114. package/dist/lib/media-upload.js +0 -52
  115. package/dist/lib/output.d.ts +0 -68
  116. package/dist/lib/output.js +0 -102
  117. package/dist/lib/package-manager.d.ts +0 -25
  118. package/dist/lib/package-manager.js +0 -77
  119. package/dist/lib/playtest/agent.d.ts +0 -192
  120. package/dist/lib/playtest/agent.js +0 -652
  121. package/dist/lib/playtest/browser.d.ts +0 -109
  122. package/dist/lib/playtest/browser.js +0 -219
  123. package/dist/lib/playtest/controls.d.ts +0 -47
  124. package/dist/lib/playtest/controls.js +0 -218
  125. package/dist/lib/playtest/errors.d.ts +0 -9
  126. package/dist/lib/playtest/errors.js +0 -12
  127. package/dist/lib/playtest/keys.d.ts +0 -41
  128. package/dist/lib/playtest/keys.js +0 -157
  129. package/dist/lib/playtest/run.d.ts +0 -195
  130. package/dist/lib/playtest/run.js +0 -409
  131. package/dist/lib/run.d.ts +0 -19
  132. package/dist/lib/run.js +0 -23
  133. package/dist/lib/strict-args.d.ts +0 -27
  134. package/dist/lib/strict-args.js +0 -78
  135. package/dist/lib/types.d.ts +0 -16
  136. package/dist/lib/types.js +0 -10
  137. package/dist/lib/update.d.ts +0 -10
  138. package/dist/lib/update.js +0 -110
  139. package/dist/lib/upload.d.ts +0 -16
  140. package/dist/lib/upload.js +0 -41
@@ -0,0 +1,511 @@
1
+ import { createRequire as __createRequire } from "node:module";
2
+ import { dirname as __pathDirname } from "node:path";
3
+ import { fileURLToPath as __fileURLToPath } from "node:url";
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import {
8
+ __commonJS,
9
+ __require
10
+ } from "./chunk-CAKBGDCY.js";
11
+
12
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
13
+ var require_windows = __commonJS({
14
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
15
+ module.exports = isexe;
16
+ isexe.sync = sync;
17
+ var fs = __require("fs");
18
+ function checkPathExt(path, options) {
19
+ var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
20
+ if (!pathext) {
21
+ return true;
22
+ }
23
+ pathext = pathext.split(";");
24
+ if (pathext.indexOf("") !== -1) {
25
+ return true;
26
+ }
27
+ for (var i = 0; i < pathext.length; i++) {
28
+ var p = pathext[i].toLowerCase();
29
+ if (p && path.substr(-p.length).toLowerCase() === p) {
30
+ return true;
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ function checkStat(stat, path, options) {
36
+ if (!stat.isSymbolicLink() && !stat.isFile()) {
37
+ return false;
38
+ }
39
+ return checkPathExt(path, options);
40
+ }
41
+ function isexe(path, options, cb) {
42
+ fs.stat(path, function(er, stat) {
43
+ cb(er, er ? false : checkStat(stat, path, options));
44
+ });
45
+ }
46
+ function sync(path, options) {
47
+ return checkStat(fs.statSync(path), path, options);
48
+ }
49
+ }
50
+ });
51
+
52
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
53
+ var require_mode = __commonJS({
54
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
55
+ module.exports = isexe;
56
+ isexe.sync = sync;
57
+ var fs = __require("fs");
58
+ function isexe(path, options, cb) {
59
+ fs.stat(path, function(er, stat) {
60
+ cb(er, er ? false : checkStat(stat, options));
61
+ });
62
+ }
63
+ function sync(path, options) {
64
+ return checkStat(fs.statSync(path), options);
65
+ }
66
+ function checkStat(stat, options) {
67
+ return stat.isFile() && checkMode(stat, options);
68
+ }
69
+ function checkMode(stat, options) {
70
+ var mod = stat.mode;
71
+ var uid = stat.uid;
72
+ var gid = stat.gid;
73
+ var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
74
+ var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
75
+ var u = parseInt("100", 8);
76
+ var g = parseInt("010", 8);
77
+ var o = parseInt("001", 8);
78
+ var ug = u | g;
79
+ var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
80
+ return ret;
81
+ }
82
+ }
83
+ });
84
+
85
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
86
+ var require_isexe = __commonJS({
87
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
88
+ var fs = __require("fs");
89
+ var core;
90
+ if (process.platform === "win32" || global.TESTING_WINDOWS) {
91
+ core = require_windows();
92
+ } else {
93
+ core = require_mode();
94
+ }
95
+ module.exports = isexe;
96
+ isexe.sync = sync;
97
+ function isexe(path, options, cb) {
98
+ if (typeof options === "function") {
99
+ cb = options;
100
+ options = {};
101
+ }
102
+ if (!cb) {
103
+ if (typeof Promise !== "function") {
104
+ throw new TypeError("callback not provided");
105
+ }
106
+ return new Promise(function(resolve, reject) {
107
+ isexe(path, options || {}, function(er, is) {
108
+ if (er) {
109
+ reject(er);
110
+ } else {
111
+ resolve(is);
112
+ }
113
+ });
114
+ });
115
+ }
116
+ core(path, options || {}, function(er, is) {
117
+ if (er) {
118
+ if (er.code === "EACCES" || options && options.ignoreErrors) {
119
+ er = null;
120
+ is = false;
121
+ }
122
+ }
123
+ cb(er, is);
124
+ });
125
+ }
126
+ function sync(path, options) {
127
+ try {
128
+ return core.sync(path, options || {});
129
+ } catch (er) {
130
+ if (options && options.ignoreErrors || er.code === "EACCES") {
131
+ return false;
132
+ } else {
133
+ throw er;
134
+ }
135
+ }
136
+ }
137
+ }
138
+ });
139
+
140
+ // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
141
+ var require_which = __commonJS({
142
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
143
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
144
+ var path = __require("path");
145
+ var COLON = isWindows ? ";" : ":";
146
+ var isexe = require_isexe();
147
+ var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
148
+ var getPathInfo = (cmd, opt) => {
149
+ const colon = opt.colon || COLON;
150
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
151
+ // windows always checks the cwd first
152
+ ...isWindows ? [process.cwd()] : [],
153
+ ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
154
+ "").split(colon)
155
+ ];
156
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
157
+ const pathExt = isWindows ? pathExtExe.split(colon) : [""];
158
+ if (isWindows) {
159
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
160
+ pathExt.unshift("");
161
+ }
162
+ return {
163
+ pathEnv,
164
+ pathExt,
165
+ pathExtExe
166
+ };
167
+ };
168
+ var which = (cmd, opt, cb) => {
169
+ if (typeof opt === "function") {
170
+ cb = opt;
171
+ opt = {};
172
+ }
173
+ if (!opt)
174
+ opt = {};
175
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
176
+ const found = [];
177
+ const step = (i) => new Promise((resolve, reject) => {
178
+ if (i === pathEnv.length)
179
+ return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
180
+ const ppRaw = pathEnv[i];
181
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
182
+ const pCmd = path.join(pathPart, cmd);
183
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
184
+ resolve(subStep(p, i, 0));
185
+ });
186
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
187
+ if (ii === pathExt.length)
188
+ return resolve(step(i + 1));
189
+ const ext = pathExt[ii];
190
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
191
+ if (!er && is) {
192
+ if (opt.all)
193
+ found.push(p + ext);
194
+ else
195
+ return resolve(p + ext);
196
+ }
197
+ return resolve(subStep(p, i, ii + 1));
198
+ });
199
+ });
200
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
201
+ };
202
+ var whichSync = (cmd, opt) => {
203
+ opt = opt || {};
204
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
205
+ const found = [];
206
+ for (let i = 0; i < pathEnv.length; i++) {
207
+ const ppRaw = pathEnv[i];
208
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
209
+ const pCmd = path.join(pathPart, cmd);
210
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
211
+ for (let j = 0; j < pathExt.length; j++) {
212
+ const cur = p + pathExt[j];
213
+ try {
214
+ const is = isexe.sync(cur, { pathExt: pathExtExe });
215
+ if (is) {
216
+ if (opt.all)
217
+ found.push(cur);
218
+ else
219
+ return cur;
220
+ }
221
+ } catch (ex) {
222
+ }
223
+ }
224
+ }
225
+ if (opt.all && found.length)
226
+ return found;
227
+ if (opt.nothrow)
228
+ return null;
229
+ throw getNotFoundError(cmd);
230
+ };
231
+ module.exports = which;
232
+ which.sync = whichSync;
233
+ }
234
+ });
235
+
236
+ // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
237
+ var require_path_key = __commonJS({
238
+ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
239
+ "use strict";
240
+ var pathKey = (options = {}) => {
241
+ const environment = options.env || process.env;
242
+ const platform = options.platform || process.platform;
243
+ if (platform !== "win32") {
244
+ return "PATH";
245
+ }
246
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
247
+ };
248
+ module.exports = pathKey;
249
+ module.exports.default = pathKey;
250
+ }
251
+ });
252
+
253
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
254
+ var require_resolveCommand = __commonJS({
255
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
256
+ "use strict";
257
+ var path = __require("path");
258
+ var which = require_which();
259
+ var getPathKey = require_path_key();
260
+ function resolveCommandAttempt(parsed, withoutPathExt) {
261
+ const env = parsed.options.env || process.env;
262
+ const cwd = process.cwd();
263
+ const hasCustomCwd = parsed.options.cwd != null;
264
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
265
+ if (shouldSwitchCwd) {
266
+ try {
267
+ process.chdir(parsed.options.cwd);
268
+ } catch (err) {
269
+ }
270
+ }
271
+ let resolved;
272
+ try {
273
+ resolved = which.sync(parsed.command, {
274
+ path: env[getPathKey({ env })],
275
+ pathExt: withoutPathExt ? path.delimiter : void 0
276
+ });
277
+ } catch (e) {
278
+ } finally {
279
+ if (shouldSwitchCwd) {
280
+ process.chdir(cwd);
281
+ }
282
+ }
283
+ if (resolved) {
284
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
285
+ }
286
+ return resolved;
287
+ }
288
+ function resolveCommand(parsed) {
289
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
290
+ }
291
+ module.exports = resolveCommand;
292
+ }
293
+ });
294
+
295
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
296
+ var require_escape = __commonJS({
297
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
298
+ "use strict";
299
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
300
+ function escapeCommand(arg) {
301
+ arg = arg.replace(metaCharsRegExp, "^$1");
302
+ return arg;
303
+ }
304
+ function escapeArgument(arg, doubleEscapeMetaChars) {
305
+ arg = `${arg}`;
306
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
307
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
308
+ arg = `"${arg}"`;
309
+ arg = arg.replace(metaCharsRegExp, "^$1");
310
+ if (doubleEscapeMetaChars) {
311
+ arg = arg.replace(metaCharsRegExp, "^$1");
312
+ }
313
+ return arg;
314
+ }
315
+ module.exports.command = escapeCommand;
316
+ module.exports.argument = escapeArgument;
317
+ }
318
+ });
319
+
320
+ // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
321
+ var require_shebang_regex = __commonJS({
322
+ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
323
+ "use strict";
324
+ module.exports = /^#!(.*)/;
325
+ }
326
+ });
327
+
328
+ // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
329
+ var require_shebang_command = __commonJS({
330
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
331
+ "use strict";
332
+ var shebangRegex = require_shebang_regex();
333
+ module.exports = (string = "") => {
334
+ const match = string.match(shebangRegex);
335
+ if (!match) {
336
+ return null;
337
+ }
338
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
339
+ const binary = path.split("/").pop();
340
+ if (binary === "env") {
341
+ return argument;
342
+ }
343
+ return argument ? `${binary} ${argument}` : binary;
344
+ };
345
+ }
346
+ });
347
+
348
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
349
+ var require_readShebang = __commonJS({
350
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
351
+ "use strict";
352
+ var fs = __require("fs");
353
+ var shebangCommand = require_shebang_command();
354
+ function readShebang(command) {
355
+ const size = 150;
356
+ const buffer = Buffer.alloc(size);
357
+ let fd;
358
+ try {
359
+ fd = fs.openSync(command, "r");
360
+ fs.readSync(fd, buffer, 0, size, 0);
361
+ fs.closeSync(fd);
362
+ } catch (e) {
363
+ }
364
+ return shebangCommand(buffer.toString());
365
+ }
366
+ module.exports = readShebang;
367
+ }
368
+ });
369
+
370
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
371
+ var require_parse = __commonJS({
372
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
373
+ "use strict";
374
+ var path = __require("path");
375
+ var resolveCommand = require_resolveCommand();
376
+ var escape = require_escape();
377
+ var readShebang = require_readShebang();
378
+ var isWin = process.platform === "win32";
379
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
380
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
381
+ function detectShebang(parsed) {
382
+ parsed.file = resolveCommand(parsed);
383
+ const shebang = parsed.file && readShebang(parsed.file);
384
+ if (shebang) {
385
+ parsed.args.unshift(parsed.file);
386
+ parsed.command = shebang;
387
+ return resolveCommand(parsed);
388
+ }
389
+ return parsed.file;
390
+ }
391
+ function parseNonShell(parsed) {
392
+ if (!isWin) {
393
+ return parsed;
394
+ }
395
+ const commandFile = detectShebang(parsed);
396
+ const needsShell = !isExecutableRegExp.test(commandFile);
397
+ if (parsed.options.forceShell || needsShell) {
398
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
399
+ parsed.command = path.normalize(parsed.command);
400
+ parsed.command = escape.command(parsed.command);
401
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
402
+ const shellCommand = [parsed.command].concat(parsed.args).join(" ");
403
+ parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
404
+ parsed.command = process.env.comspec || "cmd.exe";
405
+ parsed.options.windowsVerbatimArguments = true;
406
+ }
407
+ return parsed;
408
+ }
409
+ function parse(command, args, options) {
410
+ if (args && !Array.isArray(args)) {
411
+ options = args;
412
+ args = null;
413
+ }
414
+ args = args ? args.slice(0) : [];
415
+ options = Object.assign({}, options);
416
+ const parsed = {
417
+ command,
418
+ args,
419
+ options,
420
+ file: void 0,
421
+ original: {
422
+ command,
423
+ args
424
+ }
425
+ };
426
+ return options.shell ? parsed : parseNonShell(parsed);
427
+ }
428
+ module.exports = parse;
429
+ }
430
+ });
431
+
432
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
433
+ var require_enoent = __commonJS({
434
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
435
+ "use strict";
436
+ var isWin = process.platform === "win32";
437
+ function notFoundError(original, syscall) {
438
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
439
+ code: "ENOENT",
440
+ errno: "ENOENT",
441
+ syscall: `${syscall} ${original.command}`,
442
+ path: original.command,
443
+ spawnargs: original.args
444
+ });
445
+ }
446
+ function hookChildProcess(cp, parsed) {
447
+ if (!isWin) {
448
+ return;
449
+ }
450
+ const originalEmit = cp.emit;
451
+ cp.emit = function(name, arg1) {
452
+ if (name === "exit") {
453
+ const err = verifyENOENT(arg1, parsed);
454
+ if (err) {
455
+ return originalEmit.call(cp, "error", err);
456
+ }
457
+ }
458
+ return originalEmit.apply(cp, arguments);
459
+ };
460
+ }
461
+ function verifyENOENT(status, parsed) {
462
+ if (isWin && status === 1 && !parsed.file) {
463
+ return notFoundError(parsed.original, "spawn");
464
+ }
465
+ return null;
466
+ }
467
+ function verifyENOENTSync(status, parsed) {
468
+ if (isWin && status === 1 && !parsed.file) {
469
+ return notFoundError(parsed.original, "spawnSync");
470
+ }
471
+ return null;
472
+ }
473
+ module.exports = {
474
+ hookChildProcess,
475
+ verifyENOENT,
476
+ verifyENOENTSync,
477
+ notFoundError
478
+ };
479
+ }
480
+ });
481
+
482
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
483
+ var require_cross_spawn = __commonJS({
484
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
485
+ "use strict";
486
+ var cp = __require("child_process");
487
+ var parse = require_parse();
488
+ var enoent = require_enoent();
489
+ function spawn(command, args, options) {
490
+ const parsed = parse(command, args, options);
491
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
492
+ enoent.hookChildProcess(spawned, parsed);
493
+ return spawned;
494
+ }
495
+ function spawnSync(command, args, options) {
496
+ const parsed = parse(command, args, options);
497
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
498
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
499
+ return result;
500
+ }
501
+ module.exports = spawn;
502
+ module.exports.spawn = spawn;
503
+ module.exports.sync = spawnSync;
504
+ module.exports._parse = parse;
505
+ module.exports._enoent = enoent;
506
+ }
507
+ });
508
+
509
+ export {
510
+ require_cross_spawn
511
+ };