komodo-cli 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,18 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
- };
16
- var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- };
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, { get: all[name], enumerable: true });
22
- };
23
- var __copyProps = (to, from, except, desc) => {
24
- if (from && typeof from === "object" || typeof from === "function") {
25
- for (let key of __getOwnPropNames(from))
26
- if (!__hasOwnProp.call(to, key) && key !== except)
27
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
- }
29
- return to;
30
- };
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
- // If the importer is in node compatibility mode or this is not an ESM
33
- // file that has been converted to a CommonJS file using a Babel-
34
- // compatible transform (i.e. "__esModule" has not been set), then set
35
- // "default" to the CommonJS "module.exports" for node compatibility.
36
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
- mod
38
- ));
39
-
40
- // ../../node_modules/.pnpm/tsup@8.5.1_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js
41
- import path from "path";
42
- import { fileURLToPath } from "url";
43
- var getFilename, getDirname, __dirname;
44
- var init_esm_shims = __esm({
45
- "../../node_modules/.pnpm/tsup@8.5.1_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js"() {
46
- "use strict";
47
- getFilename = () => fileURLToPath(import.meta.url);
48
- getDirname = () => path.dirname(getFilename());
49
- __dirname = /* @__PURE__ */ getDirname();
50
- }
51
- });
1
+ import {
2
+ __commonJS,
3
+ __export,
4
+ __require,
5
+ __toESM
6
+ } from "./chunk-4VNS5WPM.js";
52
7
 
53
8
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
54
9
  var require_windows = __commonJS({
55
10
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
56
11
  "use strict";
57
- init_esm_shims();
58
12
  module.exports = isexe;
59
13
  isexe.sync = sync;
60
14
  var fs = __require("fs");
61
- function checkPathExt(path4, options) {
15
+ function checkPathExt(path3, options) {
62
16
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
63
17
  if (!pathext) {
64
18
  return true;
@@ -69,25 +23,25 @@ var require_windows = __commonJS({
69
23
  }
70
24
  for (var i = 0; i < pathext.length; i++) {
71
25
  var p = pathext[i].toLowerCase();
72
- if (p && path4.substr(-p.length).toLowerCase() === p) {
26
+ if (p && path3.substr(-p.length).toLowerCase() === p) {
73
27
  return true;
74
28
  }
75
29
  }
76
30
  return false;
77
31
  }
78
- function checkStat(stat, path4, options) {
32
+ function checkStat(stat, path3, options) {
79
33
  if (!stat.isSymbolicLink() && !stat.isFile()) {
80
34
  return false;
81
35
  }
82
- return checkPathExt(path4, options);
36
+ return checkPathExt(path3, options);
83
37
  }
84
- function isexe(path4, options, cb) {
85
- fs.stat(path4, function(er, stat) {
86
- cb(er, er ? false : checkStat(stat, path4, options));
38
+ function isexe(path3, options, cb) {
39
+ fs.stat(path3, function(er, stat) {
40
+ cb(er, er ? false : checkStat(stat, path3, options));
87
41
  });
88
42
  }
89
- function sync(path4, options) {
90
- return checkStat(fs.statSync(path4), path4, options);
43
+ function sync(path3, options) {
44
+ return checkStat(fs.statSync(path3), path3, options);
91
45
  }
92
46
  }
93
47
  });
@@ -96,17 +50,16 @@ var require_windows = __commonJS({
96
50
  var require_mode = __commonJS({
97
51
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
98
52
  "use strict";
99
- init_esm_shims();
100
53
  module.exports = isexe;
101
54
  isexe.sync = sync;
102
55
  var fs = __require("fs");
103
- function isexe(path4, options, cb) {
104
- fs.stat(path4, function(er, stat) {
56
+ function isexe(path3, options, cb) {
57
+ fs.stat(path3, function(er, stat) {
105
58
  cb(er, er ? false : checkStat(stat, options));
106
59
  });
107
60
  }
108
- function sync(path4, options) {
109
- return checkStat(fs.statSync(path4), options);
61
+ function sync(path3, options) {
62
+ return checkStat(fs.statSync(path3), options);
110
63
  }
111
64
  function checkStat(stat, options) {
112
65
  return stat.isFile() && checkMode(stat, options);
@@ -131,7 +84,6 @@ var require_mode = __commonJS({
131
84
  var require_isexe = __commonJS({
132
85
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
133
86
  "use strict";
134
- init_esm_shims();
135
87
  var fs = __require("fs");
136
88
  var core;
137
89
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -141,7 +93,7 @@ var require_isexe = __commonJS({
141
93
  }
142
94
  module.exports = isexe;
143
95
  isexe.sync = sync;
144
- function isexe(path4, options, cb) {
96
+ function isexe(path3, options, cb) {
145
97
  if (typeof options === "function") {
146
98
  cb = options;
147
99
  options = {};
@@ -151,7 +103,7 @@ var require_isexe = __commonJS({
151
103
  throw new TypeError("callback not provided");
152
104
  }
153
105
  return new Promise(function(resolve2, reject) {
154
- isexe(path4, options || {}, function(er, is) {
106
+ isexe(path3, options || {}, function(er, is) {
155
107
  if (er) {
156
108
  reject(er);
157
109
  } else {
@@ -160,7 +112,7 @@ var require_isexe = __commonJS({
160
112
  });
161
113
  });
162
114
  }
163
- core(path4, options || {}, function(er, is) {
115
+ core(path3, options || {}, function(er, is) {
164
116
  if (er) {
165
117
  if (er.code === "EACCES" || options && options.ignoreErrors) {
166
118
  er = null;
@@ -170,9 +122,9 @@ var require_isexe = __commonJS({
170
122
  cb(er, is);
171
123
  });
172
124
  }
173
- function sync(path4, options) {
125
+ function sync(path3, options) {
174
126
  try {
175
- return core.sync(path4, options || {});
127
+ return core.sync(path3, options || {});
176
128
  } catch (er) {
177
129
  if (options && options.ignoreErrors || er.code === "EACCES") {
178
130
  return false;
@@ -188,9 +140,8 @@ var require_isexe = __commonJS({
188
140
  var require_which = __commonJS({
189
141
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
190
142
  "use strict";
191
- init_esm_shims();
192
143
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
193
- var path4 = __require("path");
144
+ var path3 = __require("path");
194
145
  var COLON = isWindows ? ";" : ":";
195
146
  var isexe = require_isexe();
196
147
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -228,7 +179,7 @@ var require_which = __commonJS({
228
179
  return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
229
180
  const ppRaw = pathEnv[i];
230
181
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
231
- const pCmd = path4.join(pathPart, cmd);
182
+ const pCmd = path3.join(pathPart, cmd);
232
183
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
233
184
  resolve2(subStep(p, i, 0));
234
185
  });
@@ -255,7 +206,7 @@ var require_which = __commonJS({
255
206
  for (let i = 0; i < pathEnv.length; i++) {
256
207
  const ppRaw = pathEnv[i];
257
208
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
258
- const pCmd = path4.join(pathPart, cmd);
209
+ const pCmd = path3.join(pathPart, cmd);
259
210
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
260
211
  for (let j = 0; j < pathExt.length; j++) {
261
212
  const cur = p + pathExt[j];
@@ -286,7 +237,6 @@ var require_which = __commonJS({
286
237
  var require_path_key = __commonJS({
287
238
  "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
288
239
  "use strict";
289
- init_esm_shims();
290
240
  var pathKey2 = (options = {}) => {
291
241
  const environment = options.env || process.env;
292
242
  const platform = options.platform || process.platform;
@@ -304,8 +254,7 @@ var require_path_key = __commonJS({
304
254
  var require_resolveCommand = __commonJS({
305
255
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
306
256
  "use strict";
307
- init_esm_shims();
308
- var path4 = __require("path");
257
+ var path3 = __require("path");
309
258
  var which = require_which();
310
259
  var getPathKey = require_path_key();
311
260
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -323,7 +272,7 @@ var require_resolveCommand = __commonJS({
323
272
  try {
324
273
  resolved = which.sync(parsed.command, {
325
274
  path: env[getPathKey({ env })],
326
- pathExt: withoutPathExt ? path4.delimiter : void 0
275
+ pathExt: withoutPathExt ? path3.delimiter : void 0
327
276
  });
328
277
  } catch (e) {
329
278
  } finally {
@@ -332,7 +281,7 @@ var require_resolveCommand = __commonJS({
332
281
  }
333
282
  }
334
283
  if (resolved) {
335
- resolved = path4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
284
+ resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
336
285
  }
337
286
  return resolved;
338
287
  }
@@ -347,7 +296,6 @@ var require_resolveCommand = __commonJS({
347
296
  var require_escape = __commonJS({
348
297
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
349
298
  "use strict";
350
- init_esm_shims();
351
299
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
352
300
  function escapeCommand(arg) {
353
301
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -373,7 +321,6 @@ var require_escape = __commonJS({
373
321
  var require_shebang_regex = __commonJS({
374
322
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
375
323
  "use strict";
376
- init_esm_shims();
377
324
  module.exports = /^#!(.*)/;
378
325
  }
379
326
  });
@@ -382,15 +329,14 @@ var require_shebang_regex = __commonJS({
382
329
  var require_shebang_command = __commonJS({
383
330
  "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
384
331
  "use strict";
385
- init_esm_shims();
386
332
  var shebangRegex = require_shebang_regex();
387
333
  module.exports = (string = "") => {
388
334
  const match = string.match(shebangRegex);
389
335
  if (!match) {
390
336
  return null;
391
337
  }
392
- const [path4, argument] = match[0].replace(/#! ?/, "").split(" ");
393
- const binary = path4.split("/").pop();
338
+ const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
339
+ const binary = path3.split("/").pop();
394
340
  if (binary === "env") {
395
341
  return argument;
396
342
  }
@@ -403,7 +349,6 @@ var require_shebang_command = __commonJS({
403
349
  var require_readShebang = __commonJS({
404
350
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
405
351
  "use strict";
406
- init_esm_shims();
407
352
  var fs = __require("fs");
408
353
  var shebangCommand = require_shebang_command();
409
354
  function readShebang(command) {
@@ -426,8 +371,7 @@ var require_readShebang = __commonJS({
426
371
  var require_parse = __commonJS({
427
372
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
428
373
  "use strict";
429
- init_esm_shims();
430
- var path4 = __require("path");
374
+ var path3 = __require("path");
431
375
  var resolveCommand = require_resolveCommand();
432
376
  var escape = require_escape();
433
377
  var readShebang = require_readShebang();
@@ -452,7 +396,7 @@ var require_parse = __commonJS({
452
396
  const needsShell = !isExecutableRegExp.test(commandFile);
453
397
  if (parsed.options.forceShell || needsShell) {
454
398
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
455
- parsed.command = path4.normalize(parsed.command);
399
+ parsed.command = path3.normalize(parsed.command);
456
400
  parsed.command = escape.command(parsed.command);
457
401
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
458
402
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -489,7 +433,6 @@ var require_parse = __commonJS({
489
433
  var require_enoent = __commonJS({
490
434
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
491
435
  "use strict";
492
- init_esm_shims();
493
436
  var isWin = process.platform === "win32";
494
437
  function notFoundError(original, syscall) {
495
438
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -540,7 +483,6 @@ var require_enoent = __commonJS({
540
483
  var require_cross_spawn = __commonJS({
541
484
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
542
485
  "use strict";
543
- init_esm_shims();
544
486
  var cp = __require("child_process");
545
487
  var parse = require_parse();
546
488
  var enoent = require_enoent();
@@ -568,7 +510,6 @@ var require_cross_spawn = __commonJS({
568
510
  var require_merge_stream = __commonJS({
569
511
  "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
570
512
  "use strict";
571
- init_esm_shims();
572
513
  var { PassThrough } = __require("stream");
573
514
  module.exports = function() {
574
515
  var sources = [];
@@ -606,7 +547,6 @@ var require_merge_stream = __commonJS({
606
547
  });
607
548
 
608
549
  // ../core/dist/index.js
609
- init_esm_shims();
610
550
  import { randomUUID as randomUUID2 } from "crypto";
611
551
  import { mkdir as mkdir3 } from "fs/promises";
612
552
  import { existsSync as existsSync3 } from "fs";
@@ -615,15 +555,13 @@ import { execSync } from "child_process";
615
555
  import os2 from "os";
616
556
 
617
557
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
618
- init_esm_shims();
619
558
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
620
559
  import { Buffer as Buffer3 } from "buffer";
621
- import path3 from "path";
560
+ import path2 from "path";
622
561
  import childProcess from "child_process";
623
562
  import process6 from "process";
624
563
 
625
564
  // ../../node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
626
- init_esm_shims();
627
565
  function stripFinalNewline(input) {
628
566
  const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
629
567
  const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
@@ -637,13 +575,11 @@ function stripFinalNewline(input) {
637
575
  }
638
576
 
639
577
  // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
640
- init_esm_shims();
641
578
  import process2 from "process";
642
- import path2 from "path";
643
- import { fileURLToPath as fileURLToPath2 } from "url";
579
+ import path from "path";
580
+ import { fileURLToPath } from "url";
644
581
 
645
582
  // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
646
- init_esm_shims();
647
583
  function pathKey(options = {}) {
648
584
  const {
649
585
  env = process.env,
@@ -663,8 +599,8 @@ var npmRunPath = ({
663
599
  execPath = process2.execPath,
664
600
  addExecPath = true
665
601
  } = {}) => {
666
- const cwdString = cwd instanceof URL ? fileURLToPath2(cwd) : cwd;
667
- const cwdPath = path2.resolve(cwdString);
602
+ const cwdString = cwd instanceof URL ? fileURLToPath(cwd) : cwd;
603
+ const cwdPath = path.resolve(cwdString);
668
604
  const result = [];
669
605
  if (preferLocal) {
670
606
  applyPreferLocal(result, cwdPath);
@@ -672,19 +608,19 @@ var npmRunPath = ({
672
608
  if (addExecPath) {
673
609
  applyExecPath(result, execPath, cwdPath);
674
610
  }
675
- return [...result, pathOption].join(path2.delimiter);
611
+ return [...result, pathOption].join(path.delimiter);
676
612
  };
677
613
  var applyPreferLocal = (result, cwdPath) => {
678
614
  let previous;
679
615
  while (previous !== cwdPath) {
680
- result.push(path2.join(cwdPath, "node_modules/.bin"));
616
+ result.push(path.join(cwdPath, "node_modules/.bin"));
681
617
  previous = cwdPath;
682
- cwdPath = path2.resolve(cwdPath, "..");
618
+ cwdPath = path.resolve(cwdPath, "..");
683
619
  }
684
620
  };
685
621
  var applyExecPath = (result, execPath, cwdPath) => {
686
- const execPathString = execPath instanceof URL ? fileURLToPath2(execPath) : execPath;
687
- result.push(path2.resolve(cwdPath, execPathString, ".."));
622
+ const execPathString = execPath instanceof URL ? fileURLToPath(execPath) : execPath;
623
+ result.push(path.resolve(cwdPath, execPathString, ".."));
688
624
  };
689
625
  var npmRunPathEnv = ({ env = process2.env, ...options } = {}) => {
690
626
  env = { ...env };
@@ -694,11 +630,7 @@ var npmRunPathEnv = ({ env = process2.env, ...options } = {}) => {
694
630
  return env;
695
631
  };
696
632
 
697
- // ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
698
- init_esm_shims();
699
-
700
633
  // ../../node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
701
- init_esm_shims();
702
634
  var copyProperty = (to, from, property, ignoreNonConfigurable) => {
703
635
  if (property === "length" || property === "prototype") {
704
636
  return;
@@ -775,15 +707,12 @@ onetime.callCount = (function_) => {
775
707
  var onetime_default = onetime;
776
708
 
777
709
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
778
- init_esm_shims();
779
710
  import process3 from "process";
780
711
 
781
712
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
782
- init_esm_shims();
783
713
  import { constants as constants2 } from "os";
784
714
 
785
715
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
786
- init_esm_shims();
787
716
  var getRealtimeSignals = () => {
788
717
  const length = SIGRTMAX - SIGRTMIN + 1;
789
718
  return Array.from({ length }, getRealtimeSignal);
@@ -799,11 +728,9 @@ var SIGRTMIN = 34;
799
728
  var SIGRTMAX = 64;
800
729
 
801
730
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
802
- init_esm_shims();
803
731
  import { constants } from "os";
804
732
 
805
733
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
806
- init_esm_shims();
807
734
  var SIGNALS = [
808
735
  {
809
736
  name: "SIGHUP",
@@ -1221,7 +1148,6 @@ ${error.message}` : execaMessage;
1221
1148
  };
1222
1149
 
1223
1150
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
1224
- init_esm_shims();
1225
1151
  var aliases = ["stdin", "stdout", "stderr"];
1226
1152
  var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
1227
1153
  var normalizeStdio = (options) => {
@@ -1246,14 +1172,9 @@ var normalizeStdio = (options) => {
1246
1172
  };
1247
1173
 
1248
1174
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1249
- init_esm_shims();
1250
1175
  import os from "os";
1251
1176
 
1252
- // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
1253
- init_esm_shims();
1254
-
1255
1177
  // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
1256
- init_esm_shims();
1257
1178
  var signals = [];
1258
1179
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
1259
1180
  if (process.platform !== "win32") {
@@ -1577,12 +1498,10 @@ var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
1577
1498
  };
1578
1499
 
1579
1500
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1580
- init_esm_shims();
1581
1501
  import { createWriteStream } from "fs";
1582
1502
  import { ChildProcess } from "child_process";
1583
1503
 
1584
1504
  // ../../node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
1585
- init_esm_shims();
1586
1505
  function isStream(stream) {
1587
1506
  return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
1588
1507
  }
@@ -1623,18 +1542,10 @@ var addPipeMethods = (spawned) => {
1623
1542
  };
1624
1543
 
1625
1544
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1626
- init_esm_shims();
1627
1545
  import { createReadStream, readFileSync } from "fs";
1628
1546
  import { setTimeout as setTimeout2 } from "timers/promises";
1629
1547
 
1630
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/index.js
1631
- init_esm_shims();
1632
-
1633
- // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array.js
1634
- init_esm_shims();
1635
-
1636
1548
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
1637
- init_esm_shims();
1638
1549
  var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
1639
1550
  if (!isAsyncIterable(stream)) {
1640
1551
  throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -1710,7 +1621,6 @@ var MaxBufferError = class extends Error {
1710
1621
  };
1711
1622
 
1712
1623
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
1713
- init_esm_shims();
1714
1624
  var identity = (value) => value;
1715
1625
  var noop = () => void 0;
1716
1626
  var getContentsProp = ({ contents }) => contents;
@@ -1720,7 +1630,6 @@ var throwObjectStream = (chunk) => {
1720
1630
  var getLengthProp = (convertedChunk) => convertedChunk.length;
1721
1631
 
1722
1632
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
1723
- init_esm_shims();
1724
1633
  async function getStreamAsArrayBuffer(stream, options) {
1725
1634
  return getStreamContents(stream, arrayBufferMethods, options);
1726
1635
  }
@@ -1774,7 +1683,6 @@ var arrayBufferMethods = {
1774
1683
  };
1775
1684
 
1776
1685
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
1777
- init_esm_shims();
1778
1686
  async function getStreamAsBuffer(stream, options) {
1779
1687
  if (!("Buffer" in globalThis)) {
1780
1688
  throw new Error("getStreamAsBuffer() is only supported in Node.js");
@@ -1791,7 +1699,6 @@ async function getStreamAsBuffer(stream, options) {
1791
1699
  var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
1792
1700
 
1793
1701
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
1794
- init_esm_shims();
1795
1702
  async function getStreamAsString(stream, options) {
1796
1703
  return getStreamContents(stream, stringMethods, options);
1797
1704
  }
@@ -1917,7 +1824,6 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
1917
1824
  };
1918
1825
 
1919
1826
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
1920
- init_esm_shims();
1921
1827
  var nativePromisePrototype = (async () => {
1922
1828
  })().constructor.prototype;
1923
1829
  var descriptors = ["then", "catch", "finally"].map((property) => [
@@ -1945,7 +1851,6 @@ var getSpawnedPromise = (spawned) => new Promise((resolve2, reject) => {
1945
1851
  });
1946
1852
 
1947
1853
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
1948
- init_esm_shims();
1949
1854
  import { Buffer as Buffer2 } from "buffer";
1950
1855
  import { ChildProcess as ChildProcess2 } from "child_process";
1951
1856
  var normalizeArgs = (file, args = []) => {
@@ -2017,7 +1922,6 @@ var parseTemplates = (templates, expressions) => {
2017
1922
  };
2018
1923
 
2019
1924
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
2020
- init_esm_shims();
2021
1925
  import { debuglog } from "util";
2022
1926
  import process5 from "process";
2023
1927
  var verboseDefault = debuglog("execa").enabled;
@@ -2066,7 +1970,7 @@ var handleArguments = (file, args, options = {}) => {
2066
1970
  };
2067
1971
  options.env = getEnv(options);
2068
1972
  options.stdio = normalizeStdio(options);
2069
- if (process6.platform === "win32" && path3.basename(file, ".exe") === "cmd") {
1973
+ if (process6.platform === "win32" && path2.basename(file, ".exe") === "cmd") {
2070
1974
  args.unshift("/q");
2071
1975
  }
2072
1976
  return { file, args, options, parsed };
@@ -2249,9 +2153,6 @@ import { mkdir as mkdir2, writeFile as writeFile3, readFile as readFile3 } from
2249
2153
  import { existsSync as existsSync2 } from "fs";
2250
2154
  import { join as join3 } from "path";
2251
2155
 
2252
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
2253
- init_esm_shims();
2254
-
2255
2156
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
2256
2157
  var external_exports = {};
2257
2158
  __export(external_exports, {
@@ -2363,19 +2264,8 @@ __export(external_exports, {
2363
2264
  util: () => util,
2364
2265
  void: () => voidType
2365
2266
  });
2366
- init_esm_shims();
2367
-
2368
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
2369
- init_esm_shims();
2370
-
2371
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
2372
- init_esm_shims();
2373
-
2374
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
2375
- init_esm_shims();
2376
2267
 
2377
2268
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
2378
- init_esm_shims();
2379
2269
  var util;
2380
2270
  (function(util2) {
2381
2271
  util2.assertEqual = (_) => {
@@ -2740,10 +2630,9 @@ function getErrorMap() {
2740
2630
  }
2741
2631
 
2742
2632
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
2743
- init_esm_shims();
2744
2633
  var makeIssue = (params) => {
2745
- const { data, path: path4, errorMaps, issueData } = params;
2746
- const fullPath = [...path4, ...issueData.path || []];
2634
+ const { data, path: path3, errorMaps, issueData } = params;
2635
+ const fullPath = [...path3, ...issueData.path || []];
2747
2636
  const fullIssue = {
2748
2637
  ...issueData,
2749
2638
  path: fullPath
@@ -2850,11 +2739,7 @@ var isDirty = (x) => x.status === "dirty";
2850
2739
  var isValid = (x) => x.status === "valid";
2851
2740
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
2852
2741
 
2853
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
2854
- init_esm_shims();
2855
-
2856
2742
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
2857
- init_esm_shims();
2858
2743
  var errorUtil;
2859
2744
  (function(errorUtil2) {
2860
2745
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
@@ -2863,11 +2748,11 @@ var errorUtil;
2863
2748
 
2864
2749
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
2865
2750
  var ParseInputLazyPath = class {
2866
- constructor(parent, value, path4, key) {
2751
+ constructor(parent, value, path3, key) {
2867
2752
  this._cachedPath = [];
2868
2753
  this.parent = parent;
2869
2754
  this.data = value;
2870
- this._path = path4;
2755
+ this._path = path3;
2871
2756
  this._key = key;
2872
2757
  }
2873
2758
  get path() {
@@ -6845,22 +6730,22 @@ async function checkPythonInstalled() {
6845
6730
  }
6846
6731
  }
6847
6732
  async function createPythonEnvironment(options) {
6848
- const { name, path: path4, pythonVersion } = options;
6733
+ const { name, path: path3, pythonVersion } = options;
6849
6734
  const hasUv = await checkUvInstalled();
6850
- const envPath = join(path4, ".venv");
6735
+ const envPath = join(path3, ".venv");
6851
6736
  try {
6852
6737
  if (hasUv) {
6853
6738
  const args = ["venv", envPath];
6854
6739
  if (pythonVersion) {
6855
6740
  args.push("--python", pythonVersion);
6856
6741
  }
6857
- await execa("uv", args, { cwd: path4 });
6742
+ await execa("uv", args, { cwd: path3 });
6858
6743
  } else {
6859
6744
  const hasPython = await checkPythonInstalled();
6860
6745
  if (!hasPython) {
6861
6746
  return { success: false, error: "Python is not installed" };
6862
6747
  }
6863
- await execa("python3", ["-m", "venv", envPath], { cwd: path4 });
6748
+ await execa("python3", ["-m", "venv", envPath], { cwd: path3 });
6864
6749
  }
6865
6750
  return { success: true };
6866
6751
  } catch (error) {
@@ -6959,10 +6844,10 @@ async function restorePythonEnvironment(envPath, lockfile, onProgress) {
6959
6844
  };
6960
6845
  }
6961
6846
  }
6962
- async function detectPackageManager(path4) {
6963
- if (existsSync(join2(path4, "pnpm-lock.yaml"))) return "pnpm";
6964
- if (existsSync(join2(path4, "yarn.lock"))) return "yarn";
6965
- if (existsSync(join2(path4, "package-lock.json"))) return "npm";
6847
+ async function detectPackageManager(path3) {
6848
+ if (existsSync(join2(path3, "pnpm-lock.yaml"))) return "pnpm";
6849
+ if (existsSync(join2(path3, "yarn.lock"))) return "yarn";
6850
+ if (existsSync(join2(path3, "package-lock.json"))) return "npm";
6966
6851
  try {
6967
6852
  await execa("pnpm", ["--version"]);
6968
6853
  return "pnpm";
@@ -6971,9 +6856,9 @@ async function detectPackageManager(path4) {
6971
6856
  }
6972
6857
  }
6973
6858
  async function initNodeEnvironment(options) {
6974
- const { name, path: path4 } = options;
6975
- const packageManager = await detectPackageManager(path4);
6976
- const packageJsonPath = join2(path4, "package.json");
6859
+ const { name, path: path3 } = options;
6860
+ const packageManager = await detectPackageManager(path3);
6861
+ const packageJsonPath = join2(path3, "package.json");
6977
6862
  if (!existsSync(packageJsonPath)) {
6978
6863
  const packageJson = {
6979
6864
  name: name.toLowerCase().replace(/\s+/g, "-"),
@@ -7361,21 +7246,21 @@ var KNOWN_CONFLICTS = [
7361
7246
  suggestion: "Use jax.numpy instead of importing both"
7362
7247
  }
7363
7248
  ];
7364
- async function getInstalledPackages(path4, runtime) {
7249
+ async function getInstalledPackages(path3, runtime) {
7365
7250
  if (runtime === "python") {
7366
- return getPythonPackages(path4);
7251
+ return getPythonPackages(path3);
7367
7252
  } else {
7368
- return getNodePackages(path4);
7253
+ return getNodePackages(path3);
7369
7254
  }
7370
7255
  }
7371
- async function getPythonPackages(path4) {
7372
- const venvPath = join5(path4, ".venv");
7256
+ async function getPythonPackages(path3) {
7257
+ const venvPath = join5(path3, ".venv");
7373
7258
  if (!existsSync4(venvPath)) {
7374
7259
  return [];
7375
7260
  }
7376
7261
  try {
7377
7262
  const pipPath = join5(venvPath, "bin", "pip");
7378
- const result = await execa(pipPath, ["list", "--format=json"], { cwd: path4 });
7263
+ const result = await execa(pipPath, ["list", "--format=json"], { cwd: path3 });
7379
7264
  const packages = JSON.parse(result.stdout);
7380
7265
  return packages.map((pkg) => ({
7381
7266
  name: pkg.name,
@@ -7386,7 +7271,7 @@ async function getPythonPackages(path4) {
7386
7271
  const result = await execa(
7387
7272
  "uv",
7388
7273
  ["pip", "list", "--format=json", "--python", join5(venvPath, "bin", "python")],
7389
- { cwd: path4 }
7274
+ { cwd: path3 }
7390
7275
  );
7391
7276
  const packages = JSON.parse(result.stdout);
7392
7277
  return packages.map((pkg) => ({
@@ -7398,8 +7283,8 @@ async function getPythonPackages(path4) {
7398
7283
  }
7399
7284
  }
7400
7285
  }
7401
- async function getNodePackages(path4) {
7402
- const packageJsonPath = join5(path4, "package.json");
7286
+ async function getNodePackages(path3) {
7287
+ const packageJsonPath = join5(path3, "package.json");
7403
7288
  if (!existsSync4(packageJsonPath)) {
7404
7289
  return [];
7405
7290
  }
@@ -7463,11 +7348,7 @@ function analyzeHealth(packages, conflicts) {
7463
7348
  }
7464
7349
 
7465
7350
  export {
7466
- __require,
7467
- __commonJS,
7468
- __toESM,
7469
- __dirname,
7470
- init_esm_shims,
7351
+ onExit,
7471
7352
  loadState,
7472
7353
  Komodo,
7473
7354
  getInstalledPackages,