@holydeck/cli 2026.9.2

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 (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/dist/BrowserWebSocketTransport-H3D6MINS.js +12 -0
  4. package/dist/BrowserWebSocketTransport-H3D6MINS.js.map +1 -0
  5. package/dist/LaunchOptions-42ZS55HH.js +12 -0
  6. package/dist/LaunchOptions-42ZS55HH.js.map +1 -0
  7. package/dist/NodeWebSocketTransport-BXHQGXRM.js +15 -0
  8. package/dist/NodeWebSocketTransport-BXHQGXRM.js.map +1 -0
  9. package/dist/bidi-25S23FWJ.js +18358 -0
  10. package/dist/bidi-25S23FWJ.js.map +1 -0
  11. package/dist/chunk-2BLOYUSF.js +795 -0
  12. package/dist/chunk-2BLOYUSF.js.map +1 -0
  13. package/dist/chunk-43CZTS57.js +38 -0
  14. package/dist/chunk-43CZTS57.js.map +1 -0
  15. package/dist/chunk-DIBLSFAG.js +34 -0
  16. package/dist/chunk-DIBLSFAG.js.map +1 -0
  17. package/dist/chunk-IEJ3OX3N.js +52 -0
  18. package/dist/chunk-IEJ3OX3N.js.map +1 -0
  19. package/dist/chunk-JM4YIWBN.js +3796 -0
  20. package/dist/chunk-JM4YIWBN.js.map +1 -0
  21. package/dist/chunk-NP3DTWF7.js +23282 -0
  22. package/dist/chunk-NP3DTWF7.js.map +1 -0
  23. package/dist/chunk-SWG4X375.js +51 -0
  24. package/dist/chunk-SWG4X375.js.map +1 -0
  25. package/dist/chunk-UC6TFXMD.js +2821 -0
  26. package/dist/chunk-UC6TFXMD.js.map +1 -0
  27. package/dist/chunk-V4BIHFVZ.js +2287 -0
  28. package/dist/chunk-V4BIHFVZ.js.map +1 -0
  29. package/dist/chunk-V77AQPDK.js +20 -0
  30. package/dist/chunk-V77AQPDK.js.map +1 -0
  31. package/dist/chunk-XAENXL52.js +101 -0
  32. package/dist/chunk-XAENXL52.js.map +1 -0
  33. package/dist/cli.js +64101 -0
  34. package/dist/cli.js.map +1 -0
  35. package/dist/dist-3ZE2HBJQ.js +20447 -0
  36. package/dist/dist-3ZE2HBJQ.js.map +1 -0
  37. package/dist/dist-575AQY5L.js +1161 -0
  38. package/dist/dist-575AQY5L.js.map +1 -0
  39. package/dist/dist-DL5M2SDJ.js +117 -0
  40. package/dist/dist-DL5M2SDJ.js.map +1 -0
  41. package/dist/dist-OMWR53J4.js +4713 -0
  42. package/dist/dist-OMWR53J4.js.map +1 -0
  43. package/dist/dist-UT6HKKCD.js +281 -0
  44. package/dist/dist-UT6HKKCD.js.map +1 -0
  45. package/dist/fs-P6GYHPGZ.js +1685 -0
  46. package/dist/fs-P6GYHPGZ.js.map +1 -0
  47. package/dist/helpers-64DWIL6C.js +21 -0
  48. package/dist/helpers-64DWIL6C.js.map +1 -0
  49. package/dist/main-IQ64YDOJ.js +61 -0
  50. package/dist/main-IQ64YDOJ.js.map +1 -0
  51. package/dist/puppeteer-RDWY6FSG.js +2386 -0
  52. package/dist/puppeteer-RDWY6FSG.js.map +1 -0
  53. package/dist/yargs-KMQWKLG6.js +3264 -0
  54. package/dist/yargs-KMQWKLG6.js.map +1 -0
  55. package/dist/yauzl-7KG7KPPF.js +1355 -0
  56. package/dist/yauzl-7KG7KPPF.js.map +1 -0
  57. package/package.json +44 -0
@@ -0,0 +1,795 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __holydeckCreateRequire } from 'node:module';
3
+ const require = __holydeckCreateRequire(import.meta.url);
4
+ import {
5
+ __commonJS,
6
+ __require
7
+ } from "./chunk-IEJ3OX3N.js";
8
+
9
+ // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
10
+ var require_ms = __commonJS({
11
+ "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
12
+ "use strict";
13
+ var s = 1e3;
14
+ var m = s * 60;
15
+ var h = m * 60;
16
+ var d = h * 24;
17
+ var w = d * 7;
18
+ var y = d * 365.25;
19
+ module.exports = function(val, options) {
20
+ options = options || {};
21
+ var type = typeof val;
22
+ if (type === "string" && val.length > 0) {
23
+ return parse(val);
24
+ } else if (type === "number" && isFinite(val)) {
25
+ return options.long ? fmtLong(val) : fmtShort(val);
26
+ }
27
+ throw new Error(
28
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
29
+ );
30
+ };
31
+ function parse(str) {
32
+ str = String(str);
33
+ if (str.length > 100) {
34
+ return;
35
+ }
36
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
37
+ str
38
+ );
39
+ if (!match) {
40
+ return;
41
+ }
42
+ var n = parseFloat(match[1]);
43
+ var type = (match[2] || "ms").toLowerCase();
44
+ switch (type) {
45
+ case "years":
46
+ case "year":
47
+ case "yrs":
48
+ case "yr":
49
+ case "y":
50
+ return n * y;
51
+ case "weeks":
52
+ case "week":
53
+ case "w":
54
+ return n * w;
55
+ case "days":
56
+ case "day":
57
+ case "d":
58
+ return n * d;
59
+ case "hours":
60
+ case "hour":
61
+ case "hrs":
62
+ case "hr":
63
+ case "h":
64
+ return n * h;
65
+ case "minutes":
66
+ case "minute":
67
+ case "mins":
68
+ case "min":
69
+ case "m":
70
+ return n * m;
71
+ case "seconds":
72
+ case "second":
73
+ case "secs":
74
+ case "sec":
75
+ case "s":
76
+ return n * s;
77
+ case "milliseconds":
78
+ case "millisecond":
79
+ case "msecs":
80
+ case "msec":
81
+ case "ms":
82
+ return n;
83
+ default:
84
+ return void 0;
85
+ }
86
+ }
87
+ function fmtShort(ms) {
88
+ var msAbs = Math.abs(ms);
89
+ if (msAbs >= d) {
90
+ return Math.round(ms / d) + "d";
91
+ }
92
+ if (msAbs >= h) {
93
+ return Math.round(ms / h) + "h";
94
+ }
95
+ if (msAbs >= m) {
96
+ return Math.round(ms / m) + "m";
97
+ }
98
+ if (msAbs >= s) {
99
+ return Math.round(ms / s) + "s";
100
+ }
101
+ return ms + "ms";
102
+ }
103
+ function fmtLong(ms) {
104
+ var msAbs = Math.abs(ms);
105
+ if (msAbs >= d) {
106
+ return plural(ms, msAbs, d, "day");
107
+ }
108
+ if (msAbs >= h) {
109
+ return plural(ms, msAbs, h, "hour");
110
+ }
111
+ if (msAbs >= m) {
112
+ return plural(ms, msAbs, m, "minute");
113
+ }
114
+ if (msAbs >= s) {
115
+ return plural(ms, msAbs, s, "second");
116
+ }
117
+ return ms + " ms";
118
+ }
119
+ function plural(ms, msAbs, n, name) {
120
+ var isPlural = msAbs >= n * 1.5;
121
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
122
+ }
123
+ }
124
+ });
125
+
126
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
127
+ var require_common = __commonJS({
128
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
129
+ "use strict";
130
+ function setup(env) {
131
+ createDebug.debug = createDebug;
132
+ createDebug.default = createDebug;
133
+ createDebug.coerce = coerce;
134
+ createDebug.disable = disable;
135
+ createDebug.enable = enable;
136
+ createDebug.enabled = enabled;
137
+ createDebug.humanize = require_ms();
138
+ createDebug.destroy = destroy;
139
+ Object.keys(env).forEach((key) => {
140
+ createDebug[key] = env[key];
141
+ });
142
+ createDebug.names = [];
143
+ createDebug.skips = [];
144
+ createDebug.formatters = {};
145
+ function selectColor(namespace) {
146
+ let hash = 0;
147
+ for (let i = 0; i < namespace.length; i++) {
148
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
149
+ hash |= 0;
150
+ }
151
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
152
+ }
153
+ createDebug.selectColor = selectColor;
154
+ function createDebug(namespace) {
155
+ let prevTime;
156
+ let enableOverride = null;
157
+ let namespacesCache;
158
+ let enabledCache;
159
+ function debug(...args) {
160
+ if (!debug.enabled) {
161
+ return;
162
+ }
163
+ const self = debug;
164
+ const curr = Number(/* @__PURE__ */ new Date());
165
+ const ms = curr - (prevTime || curr);
166
+ self.diff = ms;
167
+ self.prev = prevTime;
168
+ self.curr = curr;
169
+ prevTime = curr;
170
+ args[0] = createDebug.coerce(args[0]);
171
+ if (typeof args[0] !== "string") {
172
+ args.unshift("%O");
173
+ }
174
+ let index = 0;
175
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
176
+ if (match === "%%") {
177
+ return "%";
178
+ }
179
+ index++;
180
+ const formatter = createDebug.formatters[format];
181
+ if (typeof formatter === "function") {
182
+ const val = args[index];
183
+ match = formatter.call(self, val);
184
+ args.splice(index, 1);
185
+ index--;
186
+ }
187
+ return match;
188
+ });
189
+ createDebug.formatArgs.call(self, args);
190
+ const logFn = self.log || createDebug.log;
191
+ logFn.apply(self, args);
192
+ }
193
+ debug.namespace = namespace;
194
+ debug.useColors = createDebug.useColors();
195
+ debug.color = createDebug.selectColor(namespace);
196
+ debug.extend = extend;
197
+ debug.destroy = createDebug.destroy;
198
+ Object.defineProperty(debug, "enabled", {
199
+ enumerable: true,
200
+ configurable: false,
201
+ get: () => {
202
+ if (enableOverride !== null) {
203
+ return enableOverride;
204
+ }
205
+ if (namespacesCache !== createDebug.namespaces) {
206
+ namespacesCache = createDebug.namespaces;
207
+ enabledCache = createDebug.enabled(namespace);
208
+ }
209
+ return enabledCache;
210
+ },
211
+ set: (v) => {
212
+ enableOverride = v;
213
+ }
214
+ });
215
+ if (typeof createDebug.init === "function") {
216
+ createDebug.init(debug);
217
+ }
218
+ return debug;
219
+ }
220
+ function extend(namespace, delimiter) {
221
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
222
+ newDebug.log = this.log;
223
+ return newDebug;
224
+ }
225
+ function enable(namespaces) {
226
+ createDebug.save(namespaces);
227
+ createDebug.namespaces = namespaces;
228
+ createDebug.names = [];
229
+ createDebug.skips = [];
230
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
231
+ for (const ns of split) {
232
+ if (ns[0] === "-") {
233
+ createDebug.skips.push(ns.slice(1));
234
+ } else {
235
+ createDebug.names.push(ns);
236
+ }
237
+ }
238
+ }
239
+ function matchesTemplate(search, template) {
240
+ let searchIndex = 0;
241
+ let templateIndex = 0;
242
+ let starIndex = -1;
243
+ let matchIndex = 0;
244
+ while (searchIndex < search.length) {
245
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
246
+ if (template[templateIndex] === "*") {
247
+ starIndex = templateIndex;
248
+ matchIndex = searchIndex;
249
+ templateIndex++;
250
+ } else {
251
+ searchIndex++;
252
+ templateIndex++;
253
+ }
254
+ } else if (starIndex !== -1) {
255
+ templateIndex = starIndex + 1;
256
+ matchIndex++;
257
+ searchIndex = matchIndex;
258
+ } else {
259
+ return false;
260
+ }
261
+ }
262
+ while (templateIndex < template.length && template[templateIndex] === "*") {
263
+ templateIndex++;
264
+ }
265
+ return templateIndex === template.length;
266
+ }
267
+ function disable() {
268
+ const namespaces = [
269
+ ...createDebug.names,
270
+ ...createDebug.skips.map((namespace) => "-" + namespace)
271
+ ].join(",");
272
+ createDebug.enable("");
273
+ return namespaces;
274
+ }
275
+ function enabled(name) {
276
+ for (const skip of createDebug.skips) {
277
+ if (matchesTemplate(name, skip)) {
278
+ return false;
279
+ }
280
+ }
281
+ for (const ns of createDebug.names) {
282
+ if (matchesTemplate(name, ns)) {
283
+ return true;
284
+ }
285
+ }
286
+ return false;
287
+ }
288
+ function coerce(val) {
289
+ if (val instanceof Error) {
290
+ return val.stack || val.message;
291
+ }
292
+ return val;
293
+ }
294
+ function destroy() {
295
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
296
+ }
297
+ createDebug.enable(createDebug.load());
298
+ return createDebug;
299
+ }
300
+ module.exports = setup;
301
+ }
302
+ });
303
+
304
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
305
+ var require_browser = __commonJS({
306
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
307
+ "use strict";
308
+ exports.formatArgs = formatArgs;
309
+ exports.save = save;
310
+ exports.load = load;
311
+ exports.useColors = useColors;
312
+ exports.storage = localstorage();
313
+ exports.destroy = /* @__PURE__ */ (() => {
314
+ let warned = false;
315
+ return () => {
316
+ if (!warned) {
317
+ warned = true;
318
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
319
+ }
320
+ };
321
+ })();
322
+ exports.colors = [
323
+ "#0000CC",
324
+ "#0000FF",
325
+ "#0033CC",
326
+ "#0033FF",
327
+ "#0066CC",
328
+ "#0066FF",
329
+ "#0099CC",
330
+ "#0099FF",
331
+ "#00CC00",
332
+ "#00CC33",
333
+ "#00CC66",
334
+ "#00CC99",
335
+ "#00CCCC",
336
+ "#00CCFF",
337
+ "#3300CC",
338
+ "#3300FF",
339
+ "#3333CC",
340
+ "#3333FF",
341
+ "#3366CC",
342
+ "#3366FF",
343
+ "#3399CC",
344
+ "#3399FF",
345
+ "#33CC00",
346
+ "#33CC33",
347
+ "#33CC66",
348
+ "#33CC99",
349
+ "#33CCCC",
350
+ "#33CCFF",
351
+ "#6600CC",
352
+ "#6600FF",
353
+ "#6633CC",
354
+ "#6633FF",
355
+ "#66CC00",
356
+ "#66CC33",
357
+ "#9900CC",
358
+ "#9900FF",
359
+ "#9933CC",
360
+ "#9933FF",
361
+ "#99CC00",
362
+ "#99CC33",
363
+ "#CC0000",
364
+ "#CC0033",
365
+ "#CC0066",
366
+ "#CC0099",
367
+ "#CC00CC",
368
+ "#CC00FF",
369
+ "#CC3300",
370
+ "#CC3333",
371
+ "#CC3366",
372
+ "#CC3399",
373
+ "#CC33CC",
374
+ "#CC33FF",
375
+ "#CC6600",
376
+ "#CC6633",
377
+ "#CC9900",
378
+ "#CC9933",
379
+ "#CCCC00",
380
+ "#CCCC33",
381
+ "#FF0000",
382
+ "#FF0033",
383
+ "#FF0066",
384
+ "#FF0099",
385
+ "#FF00CC",
386
+ "#FF00FF",
387
+ "#FF3300",
388
+ "#FF3333",
389
+ "#FF3366",
390
+ "#FF3399",
391
+ "#FF33CC",
392
+ "#FF33FF",
393
+ "#FF6600",
394
+ "#FF6633",
395
+ "#FF9900",
396
+ "#FF9933",
397
+ "#FFCC00",
398
+ "#FFCC33"
399
+ ];
400
+ function useColors() {
401
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
402
+ return true;
403
+ }
404
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
405
+ return false;
406
+ }
407
+ let m;
408
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
409
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
410
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
411
+ typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
412
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
413
+ }
414
+ function formatArgs(args) {
415
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
416
+ if (!this.useColors) {
417
+ return;
418
+ }
419
+ const c = "color: " + this.color;
420
+ args.splice(1, 0, c, "color: inherit");
421
+ let index = 0;
422
+ let lastC = 0;
423
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
424
+ if (match === "%%") {
425
+ return;
426
+ }
427
+ index++;
428
+ if (match === "%c") {
429
+ lastC = index;
430
+ }
431
+ });
432
+ args.splice(lastC, 0, c);
433
+ }
434
+ exports.log = console.debug || console.log || (() => {
435
+ });
436
+ function save(namespaces) {
437
+ try {
438
+ if (namespaces) {
439
+ exports.storage.setItem("debug", namespaces);
440
+ } else {
441
+ exports.storage.removeItem("debug");
442
+ }
443
+ } catch (error) {
444
+ }
445
+ }
446
+ function load() {
447
+ let r;
448
+ try {
449
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
450
+ } catch (error) {
451
+ }
452
+ if (!r && typeof process !== "undefined" && "env" in process) {
453
+ r = process.env.DEBUG;
454
+ }
455
+ return r;
456
+ }
457
+ function localstorage() {
458
+ try {
459
+ return localStorage;
460
+ } catch (error) {
461
+ }
462
+ }
463
+ module.exports = require_common()(exports);
464
+ var { formatters } = module.exports;
465
+ formatters.j = function(v) {
466
+ try {
467
+ return JSON.stringify(v);
468
+ } catch (error) {
469
+ return "[UnexpectedJSONParseError]: " + error.message;
470
+ }
471
+ };
472
+ }
473
+ });
474
+
475
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
476
+ var require_node = __commonJS({
477
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
478
+ "use strict";
479
+ var tty = __require("tty");
480
+ var util = __require("util");
481
+ exports.init = init;
482
+ exports.log = log;
483
+ exports.formatArgs = formatArgs;
484
+ exports.save = save;
485
+ exports.load = load;
486
+ exports.useColors = useColors;
487
+ exports.destroy = util.deprecate(
488
+ () => {
489
+ },
490
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
491
+ );
492
+ exports.colors = [6, 2, 3, 4, 5, 1];
493
+ try {
494
+ const supportsColor = __require("supports-color");
495
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
496
+ exports.colors = [
497
+ 20,
498
+ 21,
499
+ 26,
500
+ 27,
501
+ 32,
502
+ 33,
503
+ 38,
504
+ 39,
505
+ 40,
506
+ 41,
507
+ 42,
508
+ 43,
509
+ 44,
510
+ 45,
511
+ 56,
512
+ 57,
513
+ 62,
514
+ 63,
515
+ 68,
516
+ 69,
517
+ 74,
518
+ 75,
519
+ 76,
520
+ 77,
521
+ 78,
522
+ 79,
523
+ 80,
524
+ 81,
525
+ 92,
526
+ 93,
527
+ 98,
528
+ 99,
529
+ 112,
530
+ 113,
531
+ 128,
532
+ 129,
533
+ 134,
534
+ 135,
535
+ 148,
536
+ 149,
537
+ 160,
538
+ 161,
539
+ 162,
540
+ 163,
541
+ 164,
542
+ 165,
543
+ 166,
544
+ 167,
545
+ 168,
546
+ 169,
547
+ 170,
548
+ 171,
549
+ 172,
550
+ 173,
551
+ 178,
552
+ 179,
553
+ 184,
554
+ 185,
555
+ 196,
556
+ 197,
557
+ 198,
558
+ 199,
559
+ 200,
560
+ 201,
561
+ 202,
562
+ 203,
563
+ 204,
564
+ 205,
565
+ 206,
566
+ 207,
567
+ 208,
568
+ 209,
569
+ 214,
570
+ 215,
571
+ 220,
572
+ 221
573
+ ];
574
+ }
575
+ } catch (error) {
576
+ }
577
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
578
+ return /^debug_/i.test(key);
579
+ }).reduce((obj, key) => {
580
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
581
+ return k.toUpperCase();
582
+ });
583
+ let val = process.env[key];
584
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
585
+ val = true;
586
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
587
+ val = false;
588
+ } else if (val === "null") {
589
+ val = null;
590
+ } else {
591
+ val = Number(val);
592
+ }
593
+ obj[prop] = val;
594
+ return obj;
595
+ }, {});
596
+ function useColors() {
597
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
598
+ }
599
+ function formatArgs(args) {
600
+ const { namespace: name, useColors: useColors2 } = this;
601
+ if (useColors2) {
602
+ const c = this.color;
603
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
604
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
605
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
606
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
607
+ } else {
608
+ args[0] = getDate() + name + " " + args[0];
609
+ }
610
+ }
611
+ function getDate() {
612
+ if (exports.inspectOpts.hideDate) {
613
+ return "";
614
+ }
615
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
616
+ }
617
+ function log(...args) {
618
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
619
+ }
620
+ function save(namespaces) {
621
+ if (namespaces) {
622
+ process.env.DEBUG = namespaces;
623
+ } else {
624
+ delete process.env.DEBUG;
625
+ }
626
+ }
627
+ function load() {
628
+ return process.env.DEBUG;
629
+ }
630
+ function init(debug) {
631
+ debug.inspectOpts = {};
632
+ const keys = Object.keys(exports.inspectOpts);
633
+ for (let i = 0; i < keys.length; i++) {
634
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
635
+ }
636
+ }
637
+ module.exports = require_common()(exports);
638
+ var { formatters } = module.exports;
639
+ formatters.o = function(v) {
640
+ this.inspectOpts.colors = this.useColors;
641
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
642
+ };
643
+ formatters.O = function(v) {
644
+ this.inspectOpts.colors = this.useColors;
645
+ return util.inspect(v, this.inspectOpts);
646
+ };
647
+ }
648
+ });
649
+
650
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
651
+ var require_src = __commonJS({
652
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
653
+ "use strict";
654
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
655
+ module.exports = require_browser();
656
+ } else {
657
+ module.exports = require_node();
658
+ }
659
+ }
660
+ });
661
+
662
+ // ../../node_modules/.pnpm/agent-base@9.0.0/node_modules/agent-base/dist/helpers.js
663
+ async function toBuffer(stream) {
664
+ let length = 0;
665
+ const chunks = [];
666
+ for await (const chunk of stream) {
667
+ length += chunk.length;
668
+ chunks.push(chunk);
669
+ }
670
+ return Buffer.concat(chunks, length);
671
+ }
672
+
673
+ // ../../node_modules/.pnpm/agent-base@9.0.0/node_modules/agent-base/dist/index.js
674
+ import * as net from "net";
675
+ import * as http from "http";
676
+ import { Agent as HttpsAgent } from "https";
677
+ var INTERNAL = /* @__PURE__ */ Symbol("AgentBaseInternalState");
678
+ var Agent2 = class extends http.Agent {
679
+ constructor(opts) {
680
+ super(opts);
681
+ this[INTERNAL] = {};
682
+ }
683
+ /**
684
+ * Determine whether this is an `http` or `https` request.
685
+ */
686
+ isSecureEndpoint(options) {
687
+ if (options) {
688
+ if (typeof options.secureEndpoint === "boolean") {
689
+ return options.secureEndpoint;
690
+ }
691
+ if (typeof options.protocol === "string") {
692
+ return options.protocol === "https:";
693
+ }
694
+ }
695
+ const { stack } = new Error();
696
+ if (typeof stack !== "string")
697
+ return false;
698
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
699
+ }
700
+ // In order to support async signatures in `connect()` and Node's native
701
+ // connection pooling in `http.Agent`, the array of sockets for each origin
702
+ // has to be updated synchronously. This is so the length of the array is
703
+ // accurate when `addRequest()` is next called. We achieve this by creating a
704
+ // fake socket and adding it to `sockets[origin]` and incrementing
705
+ // `totalSocketCount`.
706
+ incrementSockets(name) {
707
+ if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
708
+ return null;
709
+ }
710
+ if (!this.sockets[name]) {
711
+ this.sockets[name] = [];
712
+ }
713
+ const fakeSocket = new net.Socket({ writable: false });
714
+ this.sockets[name].push(fakeSocket);
715
+ this.totalSocketCount++;
716
+ return fakeSocket;
717
+ }
718
+ decrementSockets(name, socket) {
719
+ if (!this.sockets[name] || socket === null) {
720
+ return;
721
+ }
722
+ const sockets = this.sockets[name];
723
+ const index = sockets.indexOf(socket);
724
+ if (index !== -1) {
725
+ sockets.splice(index, 1);
726
+ this.totalSocketCount--;
727
+ if (sockets.length === 0) {
728
+ delete this.sockets[name];
729
+ }
730
+ }
731
+ }
732
+ // In order to properly update the socket pool, we need to call `getName()` on
733
+ // the core `https.Agent` if it is a secureEndpoint.
734
+ getName(options) {
735
+ const secureEndpoint = this.isSecureEndpoint(options);
736
+ if (secureEndpoint) {
737
+ return HttpsAgent.prototype.getName.call(this, options);
738
+ }
739
+ return super.getName(options);
740
+ }
741
+ createSocket(req, options, cb) {
742
+ const connectOpts = {
743
+ ...options,
744
+ secureEndpoint: this.isSecureEndpoint(options)
745
+ };
746
+ const name = this.getName(connectOpts);
747
+ const fakeSocket = this.incrementSockets(name);
748
+ Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
749
+ this.decrementSockets(name, fakeSocket);
750
+ if (typeof socket.addRequest === "function") {
751
+ try {
752
+ return socket.addRequest(req, connectOpts);
753
+ } catch (err) {
754
+ return cb(err);
755
+ }
756
+ }
757
+ this[INTERNAL].currentSocket = socket;
758
+ super.createSocket(req, options, cb);
759
+ }, (err) => {
760
+ this.decrementSockets(name, fakeSocket);
761
+ cb(err);
762
+ });
763
+ }
764
+ createConnection() {
765
+ const socket = this[INTERNAL].currentSocket;
766
+ this[INTERNAL].currentSocket = void 0;
767
+ if (!socket) {
768
+ throw new Error("No socket was returned in the `connect()` function");
769
+ }
770
+ return socket;
771
+ }
772
+ get defaultPort() {
773
+ return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
774
+ }
775
+ set defaultPort(v) {
776
+ if (this[INTERNAL]) {
777
+ this[INTERNAL].defaultPort = v;
778
+ }
779
+ }
780
+ get protocol() {
781
+ return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
782
+ }
783
+ set protocol(v) {
784
+ if (this[INTERNAL]) {
785
+ this[INTERNAL].protocol = v;
786
+ }
787
+ }
788
+ };
789
+
790
+ export {
791
+ toBuffer,
792
+ Agent2 as Agent,
793
+ require_src
794
+ };
795
+ //# sourceMappingURL=chunk-2BLOYUSF.js.map