komodo-cli 2.0.2 → 2.0.4

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.
@@ -10,6 +10,9 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
13
16
  var __commonJS = (cb, mod) => function __require2() {
14
17
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
18
  };
@@ -34,14 +37,28 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
37
  mod
35
38
  ));
36
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
+ });
52
+
37
53
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
38
54
  var require_windows = __commonJS({
39
55
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
40
56
  "use strict";
57
+ init_esm_shims();
41
58
  module.exports = isexe;
42
59
  isexe.sync = sync;
43
60
  var fs = __require("fs");
44
- function checkPathExt(path3, options) {
61
+ function checkPathExt(path4, options) {
45
62
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
46
63
  if (!pathext) {
47
64
  return true;
@@ -52,25 +69,25 @@ var require_windows = __commonJS({
52
69
  }
53
70
  for (var i = 0; i < pathext.length; i++) {
54
71
  var p = pathext[i].toLowerCase();
55
- if (p && path3.substr(-p.length).toLowerCase() === p) {
72
+ if (p && path4.substr(-p.length).toLowerCase() === p) {
56
73
  return true;
57
74
  }
58
75
  }
59
76
  return false;
60
77
  }
61
- function checkStat(stat, path3, options) {
78
+ function checkStat(stat, path4, options) {
62
79
  if (!stat.isSymbolicLink() && !stat.isFile()) {
63
80
  return false;
64
81
  }
65
- return checkPathExt(path3, options);
82
+ return checkPathExt(path4, options);
66
83
  }
67
- function isexe(path3, options, cb) {
68
- fs.stat(path3, function(er, stat) {
69
- cb(er, er ? false : checkStat(stat, path3, options));
84
+ function isexe(path4, options, cb) {
85
+ fs.stat(path4, function(er, stat) {
86
+ cb(er, er ? false : checkStat(stat, path4, options));
70
87
  });
71
88
  }
72
- function sync(path3, options) {
73
- return checkStat(fs.statSync(path3), path3, options);
89
+ function sync(path4, options) {
90
+ return checkStat(fs.statSync(path4), path4, options);
74
91
  }
75
92
  }
76
93
  });
@@ -79,16 +96,17 @@ var require_windows = __commonJS({
79
96
  var require_mode = __commonJS({
80
97
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
81
98
  "use strict";
99
+ init_esm_shims();
82
100
  module.exports = isexe;
83
101
  isexe.sync = sync;
84
102
  var fs = __require("fs");
85
- function isexe(path3, options, cb) {
86
- fs.stat(path3, function(er, stat) {
103
+ function isexe(path4, options, cb) {
104
+ fs.stat(path4, function(er, stat) {
87
105
  cb(er, er ? false : checkStat(stat, options));
88
106
  });
89
107
  }
90
- function sync(path3, options) {
91
- return checkStat(fs.statSync(path3), options);
108
+ function sync(path4, options) {
109
+ return checkStat(fs.statSync(path4), options);
92
110
  }
93
111
  function checkStat(stat, options) {
94
112
  return stat.isFile() && checkMode(stat, options);
@@ -113,6 +131,7 @@ var require_mode = __commonJS({
113
131
  var require_isexe = __commonJS({
114
132
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
115
133
  "use strict";
134
+ init_esm_shims();
116
135
  var fs = __require("fs");
117
136
  var core;
118
137
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -122,7 +141,7 @@ var require_isexe = __commonJS({
122
141
  }
123
142
  module.exports = isexe;
124
143
  isexe.sync = sync;
125
- function isexe(path3, options, cb) {
144
+ function isexe(path4, options, cb) {
126
145
  if (typeof options === "function") {
127
146
  cb = options;
128
147
  options = {};
@@ -132,7 +151,7 @@ var require_isexe = __commonJS({
132
151
  throw new TypeError("callback not provided");
133
152
  }
134
153
  return new Promise(function(resolve2, reject) {
135
- isexe(path3, options || {}, function(er, is) {
154
+ isexe(path4, options || {}, function(er, is) {
136
155
  if (er) {
137
156
  reject(er);
138
157
  } else {
@@ -141,7 +160,7 @@ var require_isexe = __commonJS({
141
160
  });
142
161
  });
143
162
  }
144
- core(path3, options || {}, function(er, is) {
163
+ core(path4, options || {}, function(er, is) {
145
164
  if (er) {
146
165
  if (er.code === "EACCES" || options && options.ignoreErrors) {
147
166
  er = null;
@@ -151,9 +170,9 @@ var require_isexe = __commonJS({
151
170
  cb(er, is);
152
171
  });
153
172
  }
154
- function sync(path3, options) {
173
+ function sync(path4, options) {
155
174
  try {
156
- return core.sync(path3, options || {});
175
+ return core.sync(path4, options || {});
157
176
  } catch (er) {
158
177
  if (options && options.ignoreErrors || er.code === "EACCES") {
159
178
  return false;
@@ -169,8 +188,9 @@ var require_isexe = __commonJS({
169
188
  var require_which = __commonJS({
170
189
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
171
190
  "use strict";
191
+ init_esm_shims();
172
192
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
173
- var path3 = __require("path");
193
+ var path4 = __require("path");
174
194
  var COLON = isWindows ? ";" : ":";
175
195
  var isexe = require_isexe();
176
196
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -208,7 +228,7 @@ var require_which = __commonJS({
208
228
  return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
209
229
  const ppRaw = pathEnv[i];
210
230
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
211
- const pCmd = path3.join(pathPart, cmd);
231
+ const pCmd = path4.join(pathPart, cmd);
212
232
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
213
233
  resolve2(subStep(p, i, 0));
214
234
  });
@@ -235,7 +255,7 @@ var require_which = __commonJS({
235
255
  for (let i = 0; i < pathEnv.length; i++) {
236
256
  const ppRaw = pathEnv[i];
237
257
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
238
- const pCmd = path3.join(pathPart, cmd);
258
+ const pCmd = path4.join(pathPart, cmd);
239
259
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
240
260
  for (let j = 0; j < pathExt.length; j++) {
241
261
  const cur = p + pathExt[j];
@@ -266,6 +286,7 @@ var require_which = __commonJS({
266
286
  var require_path_key = __commonJS({
267
287
  "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
268
288
  "use strict";
289
+ init_esm_shims();
269
290
  var pathKey2 = (options = {}) => {
270
291
  const environment = options.env || process.env;
271
292
  const platform = options.platform || process.platform;
@@ -283,7 +304,8 @@ var require_path_key = __commonJS({
283
304
  var require_resolveCommand = __commonJS({
284
305
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
285
306
  "use strict";
286
- var path3 = __require("path");
307
+ init_esm_shims();
308
+ var path4 = __require("path");
287
309
  var which = require_which();
288
310
  var getPathKey = require_path_key();
289
311
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -301,7 +323,7 @@ var require_resolveCommand = __commonJS({
301
323
  try {
302
324
  resolved = which.sync(parsed.command, {
303
325
  path: env[getPathKey({ env })],
304
- pathExt: withoutPathExt ? path3.delimiter : void 0
326
+ pathExt: withoutPathExt ? path4.delimiter : void 0
305
327
  });
306
328
  } catch (e) {
307
329
  } finally {
@@ -310,7 +332,7 @@ var require_resolveCommand = __commonJS({
310
332
  }
311
333
  }
312
334
  if (resolved) {
313
- resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
335
+ resolved = path4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
314
336
  }
315
337
  return resolved;
316
338
  }
@@ -325,6 +347,7 @@ var require_resolveCommand = __commonJS({
325
347
  var require_escape = __commonJS({
326
348
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
327
349
  "use strict";
350
+ init_esm_shims();
328
351
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
329
352
  function escapeCommand(arg) {
330
353
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -350,6 +373,7 @@ var require_escape = __commonJS({
350
373
  var require_shebang_regex = __commonJS({
351
374
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
352
375
  "use strict";
376
+ init_esm_shims();
353
377
  module.exports = /^#!(.*)/;
354
378
  }
355
379
  });
@@ -358,14 +382,15 @@ var require_shebang_regex = __commonJS({
358
382
  var require_shebang_command = __commonJS({
359
383
  "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
360
384
  "use strict";
385
+ init_esm_shims();
361
386
  var shebangRegex = require_shebang_regex();
362
387
  module.exports = (string = "") => {
363
388
  const match = string.match(shebangRegex);
364
389
  if (!match) {
365
390
  return null;
366
391
  }
367
- const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
368
- const binary = path3.split("/").pop();
392
+ const [path4, argument] = match[0].replace(/#! ?/, "").split(" ");
393
+ const binary = path4.split("/").pop();
369
394
  if (binary === "env") {
370
395
  return argument;
371
396
  }
@@ -378,6 +403,7 @@ var require_shebang_command = __commonJS({
378
403
  var require_readShebang = __commonJS({
379
404
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
380
405
  "use strict";
406
+ init_esm_shims();
381
407
  var fs = __require("fs");
382
408
  var shebangCommand = require_shebang_command();
383
409
  function readShebang(command) {
@@ -400,7 +426,8 @@ var require_readShebang = __commonJS({
400
426
  var require_parse = __commonJS({
401
427
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
402
428
  "use strict";
403
- var path3 = __require("path");
429
+ init_esm_shims();
430
+ var path4 = __require("path");
404
431
  var resolveCommand = require_resolveCommand();
405
432
  var escape = require_escape();
406
433
  var readShebang = require_readShebang();
@@ -425,7 +452,7 @@ var require_parse = __commonJS({
425
452
  const needsShell = !isExecutableRegExp.test(commandFile);
426
453
  if (parsed.options.forceShell || needsShell) {
427
454
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
428
- parsed.command = path3.normalize(parsed.command);
455
+ parsed.command = path4.normalize(parsed.command);
429
456
  parsed.command = escape.command(parsed.command);
430
457
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
431
458
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -462,6 +489,7 @@ var require_parse = __commonJS({
462
489
  var require_enoent = __commonJS({
463
490
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
464
491
  "use strict";
492
+ init_esm_shims();
465
493
  var isWin = process.platform === "win32";
466
494
  function notFoundError(original, syscall) {
467
495
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -512,6 +540,7 @@ var require_enoent = __commonJS({
512
540
  var require_cross_spawn = __commonJS({
513
541
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
514
542
  "use strict";
543
+ init_esm_shims();
515
544
  var cp = __require("child_process");
516
545
  var parse = require_parse();
517
546
  var enoent = require_enoent();
@@ -539,6 +568,7 @@ var require_cross_spawn = __commonJS({
539
568
  var require_merge_stream = __commonJS({
540
569
  "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
541
570
  "use strict";
571
+ init_esm_shims();
542
572
  var { PassThrough } = __require("stream");
543
573
  module.exports = function() {
544
574
  var sources = [];
@@ -576,6 +606,7 @@ var require_merge_stream = __commonJS({
576
606
  });
577
607
 
578
608
  // ../core/dist/index.js
609
+ init_esm_shims();
579
610
  import { randomUUID as randomUUID2 } from "crypto";
580
611
  import { mkdir as mkdir3 } from "fs/promises";
581
612
  import { existsSync as existsSync3 } from "fs";
@@ -584,13 +615,15 @@ import { execSync } from "child_process";
584
615
  import os2 from "os";
585
616
 
586
617
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
618
+ init_esm_shims();
587
619
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
588
620
  import { Buffer as Buffer3 } from "buffer";
589
- import path2 from "path";
621
+ import path3 from "path";
590
622
  import childProcess from "child_process";
591
623
  import process6 from "process";
592
624
 
593
625
  // ../../node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
626
+ init_esm_shims();
594
627
  function stripFinalNewline(input) {
595
628
  const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
596
629
  const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
@@ -604,11 +637,13 @@ function stripFinalNewline(input) {
604
637
  }
605
638
 
606
639
  // ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
640
+ init_esm_shims();
607
641
  import process2 from "process";
608
- import path from "path";
609
- import { fileURLToPath } from "url";
642
+ import path2 from "path";
643
+ import { fileURLToPath as fileURLToPath2 } from "url";
610
644
 
611
645
  // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
646
+ init_esm_shims();
612
647
  function pathKey(options = {}) {
613
648
  const {
614
649
  env = process.env,
@@ -628,8 +663,8 @@ var npmRunPath = ({
628
663
  execPath = process2.execPath,
629
664
  addExecPath = true
630
665
  } = {}) => {
631
- const cwdString = cwd instanceof URL ? fileURLToPath(cwd) : cwd;
632
- const cwdPath = path.resolve(cwdString);
666
+ const cwdString = cwd instanceof URL ? fileURLToPath2(cwd) : cwd;
667
+ const cwdPath = path2.resolve(cwdString);
633
668
  const result = [];
634
669
  if (preferLocal) {
635
670
  applyPreferLocal(result, cwdPath);
@@ -637,19 +672,19 @@ var npmRunPath = ({
637
672
  if (addExecPath) {
638
673
  applyExecPath(result, execPath, cwdPath);
639
674
  }
640
- return [...result, pathOption].join(path.delimiter);
675
+ return [...result, pathOption].join(path2.delimiter);
641
676
  };
642
677
  var applyPreferLocal = (result, cwdPath) => {
643
678
  let previous;
644
679
  while (previous !== cwdPath) {
645
- result.push(path.join(cwdPath, "node_modules/.bin"));
680
+ result.push(path2.join(cwdPath, "node_modules/.bin"));
646
681
  previous = cwdPath;
647
- cwdPath = path.resolve(cwdPath, "..");
682
+ cwdPath = path2.resolve(cwdPath, "..");
648
683
  }
649
684
  };
650
685
  var applyExecPath = (result, execPath, cwdPath) => {
651
- const execPathString = execPath instanceof URL ? fileURLToPath(execPath) : execPath;
652
- result.push(path.resolve(cwdPath, execPathString, ".."));
686
+ const execPathString = execPath instanceof URL ? fileURLToPath2(execPath) : execPath;
687
+ result.push(path2.resolve(cwdPath, execPathString, ".."));
653
688
  };
654
689
  var npmRunPathEnv = ({ env = process2.env, ...options } = {}) => {
655
690
  env = { ...env };
@@ -659,7 +694,11 @@ var npmRunPathEnv = ({ env = process2.env, ...options } = {}) => {
659
694
  return env;
660
695
  };
661
696
 
697
+ // ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
698
+ init_esm_shims();
699
+
662
700
  // ../../node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
701
+ init_esm_shims();
663
702
  var copyProperty = (to, from, property, ignoreNonConfigurable) => {
664
703
  if (property === "length" || property === "prototype") {
665
704
  return;
@@ -736,12 +775,15 @@ onetime.callCount = (function_) => {
736
775
  var onetime_default = onetime;
737
776
 
738
777
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
778
+ init_esm_shims();
739
779
  import process3 from "process";
740
780
 
741
781
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
782
+ init_esm_shims();
742
783
  import { constants as constants2 } from "os";
743
784
 
744
785
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
786
+ init_esm_shims();
745
787
  var getRealtimeSignals = () => {
746
788
  const length = SIGRTMAX - SIGRTMIN + 1;
747
789
  return Array.from({ length }, getRealtimeSignal);
@@ -757,9 +799,11 @@ var SIGRTMIN = 34;
757
799
  var SIGRTMAX = 64;
758
800
 
759
801
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
802
+ init_esm_shims();
760
803
  import { constants } from "os";
761
804
 
762
805
  // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
806
+ init_esm_shims();
763
807
  var SIGNALS = [
764
808
  {
765
809
  name: "SIGHUP",
@@ -1177,6 +1221,7 @@ ${error.message}` : execaMessage;
1177
1221
  };
1178
1222
 
1179
1223
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
1224
+ init_esm_shims();
1180
1225
  var aliases = ["stdin", "stdout", "stderr"];
1181
1226
  var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
1182
1227
  var normalizeStdio = (options) => {
@@ -1201,9 +1246,14 @@ var normalizeStdio = (options) => {
1201
1246
  };
1202
1247
 
1203
1248
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1249
+ init_esm_shims();
1204
1250
  import os from "os";
1205
1251
 
1252
+ // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
1253
+ init_esm_shims();
1254
+
1206
1255
  // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
1256
+ init_esm_shims();
1207
1257
  var signals = [];
1208
1258
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
1209
1259
  if (process.platform !== "win32") {
@@ -1527,10 +1577,12 @@ var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
1527
1577
  };
1528
1578
 
1529
1579
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1580
+ init_esm_shims();
1530
1581
  import { createWriteStream } from "fs";
1531
1582
  import { ChildProcess } from "child_process";
1532
1583
 
1533
1584
  // ../../node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
1585
+ init_esm_shims();
1534
1586
  function isStream(stream) {
1535
1587
  return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
1536
1588
  }
@@ -1571,10 +1623,18 @@ var addPipeMethods = (spawned) => {
1571
1623
  };
1572
1624
 
1573
1625
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1626
+ init_esm_shims();
1574
1627
  import { createReadStream, readFileSync } from "fs";
1575
1628
  import { setTimeout as setTimeout2 } from "timers/promises";
1576
1629
 
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
+
1577
1636
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
1637
+ init_esm_shims();
1578
1638
  var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
1579
1639
  if (!isAsyncIterable(stream)) {
1580
1640
  throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -1650,6 +1710,7 @@ var MaxBufferError = class extends Error {
1650
1710
  };
1651
1711
 
1652
1712
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
1713
+ init_esm_shims();
1653
1714
  var identity = (value) => value;
1654
1715
  var noop = () => void 0;
1655
1716
  var getContentsProp = ({ contents }) => contents;
@@ -1659,6 +1720,7 @@ var throwObjectStream = (chunk) => {
1659
1720
  var getLengthProp = (convertedChunk) => convertedChunk.length;
1660
1721
 
1661
1722
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
1723
+ init_esm_shims();
1662
1724
  async function getStreamAsArrayBuffer(stream, options) {
1663
1725
  return getStreamContents(stream, arrayBufferMethods, options);
1664
1726
  }
@@ -1712,6 +1774,7 @@ var arrayBufferMethods = {
1712
1774
  };
1713
1775
 
1714
1776
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
1777
+ init_esm_shims();
1715
1778
  async function getStreamAsBuffer(stream, options) {
1716
1779
  if (!("Buffer" in globalThis)) {
1717
1780
  throw new Error("getStreamAsBuffer() is only supported in Node.js");
@@ -1728,6 +1791,7 @@ async function getStreamAsBuffer(stream, options) {
1728
1791
  var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
1729
1792
 
1730
1793
  // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
1794
+ init_esm_shims();
1731
1795
  async function getStreamAsString(stream, options) {
1732
1796
  return getStreamContents(stream, stringMethods, options);
1733
1797
  }
@@ -1853,6 +1917,7 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
1853
1917
  };
1854
1918
 
1855
1919
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
1920
+ init_esm_shims();
1856
1921
  var nativePromisePrototype = (async () => {
1857
1922
  })().constructor.prototype;
1858
1923
  var descriptors = ["then", "catch", "finally"].map((property) => [
@@ -1880,6 +1945,7 @@ var getSpawnedPromise = (spawned) => new Promise((resolve2, reject) => {
1880
1945
  });
1881
1946
 
1882
1947
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
1948
+ init_esm_shims();
1883
1949
  import { Buffer as Buffer2 } from "buffer";
1884
1950
  import { ChildProcess as ChildProcess2 } from "child_process";
1885
1951
  var normalizeArgs = (file, args = []) => {
@@ -1951,6 +2017,7 @@ var parseTemplates = (templates, expressions) => {
1951
2017
  };
1952
2018
 
1953
2019
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
2020
+ init_esm_shims();
1954
2021
  import { debuglog } from "util";
1955
2022
  import process5 from "process";
1956
2023
  var verboseDefault = debuglog("execa").enabled;
@@ -1999,7 +2066,7 @@ var handleArguments = (file, args, options = {}) => {
1999
2066
  };
2000
2067
  options.env = getEnv(options);
2001
2068
  options.stdio = normalizeStdio(options);
2002
- if (process6.platform === "win32" && path2.basename(file, ".exe") === "cmd") {
2069
+ if (process6.platform === "win32" && path3.basename(file, ".exe") === "cmd") {
2003
2070
  args.unshift("/q");
2004
2071
  }
2005
2072
  return { file, args, options, parsed };
@@ -2182,6 +2249,9 @@ import { mkdir as mkdir2, writeFile as writeFile3, readFile as readFile3 } from
2182
2249
  import { existsSync as existsSync2 } from "fs";
2183
2250
  import { join as join3 } from "path";
2184
2251
 
2252
+ // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
2253
+ init_esm_shims();
2254
+
2185
2255
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
2186
2256
  var external_exports = {};
2187
2257
  __export(external_exports, {
@@ -2293,8 +2363,19 @@ __export(external_exports, {
2293
2363
  util: () => util,
2294
2364
  void: () => voidType
2295
2365
  });
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();
2296
2376
 
2297
2377
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
2378
+ init_esm_shims();
2298
2379
  var util;
2299
2380
  (function(util2) {
2300
2381
  util2.assertEqual = (_) => {
@@ -2659,9 +2740,10 @@ function getErrorMap() {
2659
2740
  }
2660
2741
 
2661
2742
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
2743
+ init_esm_shims();
2662
2744
  var makeIssue = (params) => {
2663
- const { data, path: path3, errorMaps, issueData } = params;
2664
- const fullPath = [...path3, ...issueData.path || []];
2745
+ const { data, path: path4, errorMaps, issueData } = params;
2746
+ const fullPath = [...path4, ...issueData.path || []];
2665
2747
  const fullIssue = {
2666
2748
  ...issueData,
2667
2749
  path: fullPath
@@ -2768,7 +2850,11 @@ var isDirty = (x) => x.status === "dirty";
2768
2850
  var isValid = (x) => x.status === "valid";
2769
2851
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
2770
2852
 
2853
+ // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
2854
+ init_esm_shims();
2855
+
2771
2856
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
2857
+ init_esm_shims();
2772
2858
  var errorUtil;
2773
2859
  (function(errorUtil2) {
2774
2860
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
@@ -2777,11 +2863,11 @@ var errorUtil;
2777
2863
 
2778
2864
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
2779
2865
  var ParseInputLazyPath = class {
2780
- constructor(parent, value, path3, key) {
2866
+ constructor(parent, value, path4, key) {
2781
2867
  this._cachedPath = [];
2782
2868
  this.parent = parent;
2783
2869
  this.data = value;
2784
- this._path = path3;
2870
+ this._path = path4;
2785
2871
  this._key = key;
2786
2872
  }
2787
2873
  get path() {
@@ -6759,22 +6845,22 @@ async function checkPythonInstalled() {
6759
6845
  }
6760
6846
  }
6761
6847
  async function createPythonEnvironment(options) {
6762
- const { name, path: path3, pythonVersion } = options;
6848
+ const { name, path: path4, pythonVersion } = options;
6763
6849
  const hasUv = await checkUvInstalled();
6764
- const envPath = join(path3, ".venv");
6850
+ const envPath = join(path4, ".venv");
6765
6851
  try {
6766
6852
  if (hasUv) {
6767
6853
  const args = ["venv", envPath];
6768
6854
  if (pythonVersion) {
6769
6855
  args.push("--python", pythonVersion);
6770
6856
  }
6771
- await execa("uv", args, { cwd: path3 });
6857
+ await execa("uv", args, { cwd: path4 });
6772
6858
  } else {
6773
6859
  const hasPython = await checkPythonInstalled();
6774
6860
  if (!hasPython) {
6775
6861
  return { success: false, error: "Python is not installed" };
6776
6862
  }
6777
- await execa("python3", ["-m", "venv", envPath], { cwd: path3 });
6863
+ await execa("python3", ["-m", "venv", envPath], { cwd: path4 });
6778
6864
  }
6779
6865
  return { success: true };
6780
6866
  } catch (error) {
@@ -6873,10 +6959,10 @@ async function restorePythonEnvironment(envPath, lockfile, onProgress) {
6873
6959
  };
6874
6960
  }
6875
6961
  }
6876
- async function detectPackageManager(path3) {
6877
- if (existsSync(join2(path3, "pnpm-lock.yaml"))) return "pnpm";
6878
- if (existsSync(join2(path3, "yarn.lock"))) return "yarn";
6879
- if (existsSync(join2(path3, "package-lock.json"))) return "npm";
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";
6880
6966
  try {
6881
6967
  await execa("pnpm", ["--version"]);
6882
6968
  return "pnpm";
@@ -6885,9 +6971,9 @@ async function detectPackageManager(path3) {
6885
6971
  }
6886
6972
  }
6887
6973
  async function initNodeEnvironment(options) {
6888
- const { name, path: path3 } = options;
6889
- const packageManager = await detectPackageManager(path3);
6890
- const packageJsonPath = join2(path3, "package.json");
6974
+ const { name, path: path4 } = options;
6975
+ const packageManager = await detectPackageManager(path4);
6976
+ const packageJsonPath = join2(path4, "package.json");
6891
6977
  if (!existsSync(packageJsonPath)) {
6892
6978
  const packageJson = {
6893
6979
  name: name.toLowerCase().replace(/\s+/g, "-"),
@@ -7275,21 +7361,21 @@ var KNOWN_CONFLICTS = [
7275
7361
  suggestion: "Use jax.numpy instead of importing both"
7276
7362
  }
7277
7363
  ];
7278
- async function getInstalledPackages(path3, runtime) {
7364
+ async function getInstalledPackages(path4, runtime) {
7279
7365
  if (runtime === "python") {
7280
- return getPythonPackages(path3);
7366
+ return getPythonPackages(path4);
7281
7367
  } else {
7282
- return getNodePackages(path3);
7368
+ return getNodePackages(path4);
7283
7369
  }
7284
7370
  }
7285
- async function getPythonPackages(path3) {
7286
- const venvPath = join5(path3, ".venv");
7371
+ async function getPythonPackages(path4) {
7372
+ const venvPath = join5(path4, ".venv");
7287
7373
  if (!existsSync4(venvPath)) {
7288
7374
  return [];
7289
7375
  }
7290
7376
  try {
7291
7377
  const pipPath = join5(venvPath, "bin", "pip");
7292
- const result = await execa(pipPath, ["list", "--format=json"], { cwd: path3 });
7378
+ const result = await execa(pipPath, ["list", "--format=json"], { cwd: path4 });
7293
7379
  const packages = JSON.parse(result.stdout);
7294
7380
  return packages.map((pkg) => ({
7295
7381
  name: pkg.name,
@@ -7300,7 +7386,7 @@ async function getPythonPackages(path3) {
7300
7386
  const result = await execa(
7301
7387
  "uv",
7302
7388
  ["pip", "list", "--format=json", "--python", join5(venvPath, "bin", "python")],
7303
- { cwd: path3 }
7389
+ { cwd: path4 }
7304
7390
  );
7305
7391
  const packages = JSON.parse(result.stdout);
7306
7392
  return packages.map((pkg) => ({
@@ -7312,8 +7398,8 @@ async function getPythonPackages(path3) {
7312
7398
  }
7313
7399
  }
7314
7400
  }
7315
- async function getNodePackages(path3) {
7316
- const packageJsonPath = join5(path3, "package.json");
7401
+ async function getNodePackages(path4) {
7402
+ const packageJsonPath = join5(path4, "package.json");
7317
7403
  if (!existsSync4(packageJsonPath)) {
7318
7404
  return [];
7319
7405
  }
@@ -7380,6 +7466,8 @@ export {
7380
7466
  __require,
7381
7467
  __commonJS,
7382
7468
  __toESM,
7469
+ __dirname,
7470
+ init_esm_shims,
7383
7471
  loadState,
7384
7472
  Komodo,
7385
7473
  getInstalledPackages,