genlayer 0.12.2-beta.2 → 0.12.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.
- package/CHANGELOG.md +1 -5
- package/dist/index.js +375 -462
- package/esbuild.config.dev.js +1 -1
- package/esbuild.config.prod.js +2 -3
- package/package.json +2 -2
- package/src/commands/contracts/deploy.ts +25 -105
- package/src/commands/contracts/index.ts +1 -5
- package/src/commands/general/init.ts +1 -0
- package/src/lib/config/simulator.ts +2 -2
- package/tests/actions/deploy.test.ts +30 -200
- package/tests/commands/call.test.ts +0 -3
- package/tests/commands/deploy.test.ts +0 -11
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const _importMetaUrl = new URL(import.meta.url).pathname;
|
|
3
|
+
"use strict";
|
|
3
4
|
var __create = Object.create;
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -10,16 +11,10 @@ var __typeError = (msg) => {
|
|
|
10
11
|
throw TypeError(msg);
|
|
11
12
|
};
|
|
12
13
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
-
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
14
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
15
|
-
}) : x2)(function(x2) {
|
|
16
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
17
|
-
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
18
|
-
});
|
|
19
14
|
var __esm = (fn, res) => function __init() {
|
|
20
15
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
21
16
|
};
|
|
22
|
-
var __commonJS = (cb, mod2) => function
|
|
17
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
23
18
|
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
24
19
|
};
|
|
25
20
|
var __export = (target, all) => {
|
|
@@ -42,6 +37,7 @@ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__
|
|
|
42
37
|
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
43
38
|
mod2
|
|
44
39
|
));
|
|
40
|
+
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
45
41
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
46
42
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
47
43
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -59,11 +55,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
59
55
|
|
|
60
56
|
// node_modules/web-streams-polyfill/dist/ponyfill.es2018.js
|
|
61
57
|
var require_ponyfill_es2018 = __commonJS({
|
|
62
|
-
"node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(
|
|
58
|
+
"node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports2, module2) {
|
|
63
59
|
"use strict";
|
|
64
60
|
(function(global3, factory) {
|
|
65
|
-
typeof
|
|
66
|
-
})(
|
|
61
|
+
typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, factory(global3.WebStreamsPolyfill = {}));
|
|
62
|
+
})(exports2, function(exports3) {
|
|
67
63
|
"use strict";
|
|
68
64
|
function noop2() {
|
|
69
65
|
return void 0;
|
|
@@ -4316,19 +4312,19 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
4316
4312
|
function streamBrandCheckException(name) {
|
|
4317
4313
|
return new TypeError(`TransformStream.prototype.${name} can only be used on a TransformStream`);
|
|
4318
4314
|
}
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4315
|
+
exports3.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy;
|
|
4316
|
+
exports3.CountQueuingStrategy = CountQueuingStrategy;
|
|
4317
|
+
exports3.ReadableByteStreamController = ReadableByteStreamController;
|
|
4318
|
+
exports3.ReadableStream = ReadableStream2;
|
|
4319
|
+
exports3.ReadableStreamBYOBReader = ReadableStreamBYOBReader;
|
|
4320
|
+
exports3.ReadableStreamBYOBRequest = ReadableStreamBYOBRequest;
|
|
4321
|
+
exports3.ReadableStreamDefaultController = ReadableStreamDefaultController;
|
|
4322
|
+
exports3.ReadableStreamDefaultReader = ReadableStreamDefaultReader;
|
|
4323
|
+
exports3.TransformStream = TransformStream;
|
|
4324
|
+
exports3.TransformStreamDefaultController = TransformStreamDefaultController;
|
|
4325
|
+
exports3.WritableStream = WritableStream;
|
|
4326
|
+
exports3.WritableStreamDefaultController = WritableStreamDefaultController;
|
|
4327
|
+
exports3.WritableStreamDefaultWriter = WritableStreamDefaultWriter;
|
|
4332
4328
|
});
|
|
4333
4329
|
}
|
|
4334
4330
|
});
|
|
@@ -4340,12 +4336,12 @@ var require_streams = __commonJS({
|
|
|
4340
4336
|
var POOL_SIZE2 = 65536;
|
|
4341
4337
|
if (!globalThis.ReadableStream) {
|
|
4342
4338
|
try {
|
|
4343
|
-
const process15 =
|
|
4339
|
+
const process15 = require("node:process");
|
|
4344
4340
|
const { emitWarning } = process15;
|
|
4345
4341
|
try {
|
|
4346
4342
|
process15.emitWarning = () => {
|
|
4347
4343
|
};
|
|
4348
|
-
Object.assign(globalThis,
|
|
4344
|
+
Object.assign(globalThis, require("node:stream/web"));
|
|
4349
4345
|
process15.emitWarning = emitWarning;
|
|
4350
4346
|
} catch (error) {
|
|
4351
4347
|
process15.emitWarning = emitWarning;
|
|
@@ -4356,7 +4352,7 @@ var require_streams = __commonJS({
|
|
|
4356
4352
|
}
|
|
4357
4353
|
}
|
|
4358
4354
|
try {
|
|
4359
|
-
const { Blob: Blob2 } =
|
|
4355
|
+
const { Blob: Blob2 } = require("buffer");
|
|
4360
4356
|
if (Blob2 && !Blob2.prototype.stream) {
|
|
4361
4357
|
Blob2.prototype.stream = function name(params) {
|
|
4362
4358
|
let position = 0;
|
|
@@ -4730,30 +4726,30 @@ var init_esm_min = __esm({
|
|
|
4730
4726
|
|
|
4731
4727
|
// node_modules/node-domexception/index.js
|
|
4732
4728
|
var require_node_domexception = __commonJS({
|
|
4733
|
-
"node_modules/node-domexception/index.js"(
|
|
4729
|
+
"node_modules/node-domexception/index.js"(exports2, module2) {
|
|
4734
4730
|
"use strict";
|
|
4735
4731
|
if (!globalThis.DOMException) {
|
|
4736
4732
|
try {
|
|
4737
|
-
const { MessageChannel } =
|
|
4733
|
+
const { MessageChannel } = require("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
|
|
4738
4734
|
port.postMessage(ab, [ab, ab]);
|
|
4739
4735
|
} catch (err) {
|
|
4740
4736
|
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
|
4741
4737
|
}
|
|
4742
4738
|
}
|
|
4743
|
-
|
|
4739
|
+
module2.exports = globalThis.DOMException;
|
|
4744
4740
|
}
|
|
4745
4741
|
});
|
|
4746
4742
|
|
|
4747
4743
|
// node_modules/fetch-blob/from.js
|
|
4748
|
-
|
|
4749
|
-
var import_node_domexception, stat;
|
|
4744
|
+
var import_node_fs, import_node_domexception, stat;
|
|
4750
4745
|
var init_from = __esm({
|
|
4751
4746
|
"node_modules/fetch-blob/from.js"() {
|
|
4752
4747
|
"use strict";
|
|
4748
|
+
import_node_fs = require("node:fs");
|
|
4753
4749
|
import_node_domexception = __toESM(require_node_domexception(), 1);
|
|
4754
4750
|
init_file();
|
|
4755
4751
|
init_fetch_blob();
|
|
4756
|
-
({ stat } =
|
|
4752
|
+
({ stat } = import_node_fs.promises);
|
|
4757
4753
|
}
|
|
4758
4754
|
});
|
|
4759
4755
|
|
|
@@ -5122,8 +5118,8 @@ var init_multipart_parser = __esm({
|
|
|
5122
5118
|
|
|
5123
5119
|
// node_modules/cli-spinners/spinners.json
|
|
5124
5120
|
var require_spinners = __commonJS({
|
|
5125
|
-
"node_modules/cli-spinners/spinners.json"(
|
|
5126
|
-
|
|
5121
|
+
"node_modules/cli-spinners/spinners.json"(exports2, module2) {
|
|
5122
|
+
module2.exports = {
|
|
5127
5123
|
dots: {
|
|
5128
5124
|
interval: 80,
|
|
5129
5125
|
frames: [
|
|
@@ -6750,7 +6746,7 @@ var require_spinners = __commonJS({
|
|
|
6750
6746
|
|
|
6751
6747
|
// node_modules/cli-spinners/index.js
|
|
6752
6748
|
var require_cli_spinners = __commonJS({
|
|
6753
|
-
"node_modules/cli-spinners/index.js"(
|
|
6749
|
+
"node_modules/cli-spinners/index.js"(exports2, module2) {
|
|
6754
6750
|
"use strict";
|
|
6755
6751
|
var spinners = Object.assign({}, require_spinners());
|
|
6756
6752
|
var spinnersList = Object.keys(spinners);
|
|
@@ -6761,15 +6757,15 @@ var require_cli_spinners = __commonJS({
|
|
|
6761
6757
|
return spinners[spinnerName];
|
|
6762
6758
|
}
|
|
6763
6759
|
});
|
|
6764
|
-
|
|
6760
|
+
module2.exports = spinners;
|
|
6765
6761
|
}
|
|
6766
6762
|
});
|
|
6767
6763
|
|
|
6768
6764
|
// node_modules/emoji-regex/index.js
|
|
6769
6765
|
var require_emoji_regex = __commonJS({
|
|
6770
|
-
"node_modules/emoji-regex/index.js"(
|
|
6766
|
+
"node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
6771
6767
|
"use strict";
|
|
6772
|
-
|
|
6768
|
+
module2.exports = () => {
|
|
6773
6769
|
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
6774
6770
|
};
|
|
6775
6771
|
}
|
|
@@ -6777,7 +6773,7 @@ var require_emoji_regex = __commonJS({
|
|
|
6777
6773
|
|
|
6778
6774
|
// node_modules/semver/internal/constants.js
|
|
6779
6775
|
var require_constants = __commonJS({
|
|
6780
|
-
"node_modules/semver/internal/constants.js"(
|
|
6776
|
+
"node_modules/semver/internal/constants.js"(exports2, module2) {
|
|
6781
6777
|
"use strict";
|
|
6782
6778
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
6783
6779
|
var MAX_LENGTH = 256;
|
|
@@ -6794,7 +6790,7 @@ var require_constants = __commonJS({
|
|
|
6794
6790
|
"prepatch",
|
|
6795
6791
|
"prerelease"
|
|
6796
6792
|
];
|
|
6797
|
-
|
|
6793
|
+
module2.exports = {
|
|
6798
6794
|
MAX_LENGTH,
|
|
6799
6795
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
6800
6796
|
MAX_SAFE_BUILD_LENGTH,
|
|
@@ -6809,17 +6805,17 @@ var require_constants = __commonJS({
|
|
|
6809
6805
|
|
|
6810
6806
|
// node_modules/semver/internal/debug.js
|
|
6811
6807
|
var require_debug = __commonJS({
|
|
6812
|
-
"node_modules/semver/internal/debug.js"(
|
|
6808
|
+
"node_modules/semver/internal/debug.js"(exports2, module2) {
|
|
6813
6809
|
"use strict";
|
|
6814
6810
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
6815
6811
|
};
|
|
6816
|
-
|
|
6812
|
+
module2.exports = debug;
|
|
6817
6813
|
}
|
|
6818
6814
|
});
|
|
6819
6815
|
|
|
6820
6816
|
// node_modules/semver/internal/re.js
|
|
6821
6817
|
var require_re = __commonJS({
|
|
6822
|
-
"node_modules/semver/internal/re.js"(
|
|
6818
|
+
"node_modules/semver/internal/re.js"(exports2, module2) {
|
|
6823
6819
|
"use strict";
|
|
6824
6820
|
var {
|
|
6825
6821
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -6827,12 +6823,12 @@ var require_re = __commonJS({
|
|
|
6827
6823
|
MAX_LENGTH
|
|
6828
6824
|
} = require_constants();
|
|
6829
6825
|
var debug = require_debug();
|
|
6830
|
-
|
|
6831
|
-
var re =
|
|
6832
|
-
var safeRe =
|
|
6833
|
-
var src =
|
|
6834
|
-
var safeSrc =
|
|
6835
|
-
var t2 =
|
|
6826
|
+
exports2 = module2.exports = {};
|
|
6827
|
+
var re = exports2.re = [];
|
|
6828
|
+
var safeRe = exports2.safeRe = [];
|
|
6829
|
+
var src = exports2.src = [];
|
|
6830
|
+
var safeSrc = exports2.safeSrc = [];
|
|
6831
|
+
var t2 = exports2.t = {};
|
|
6836
6832
|
var R = 0;
|
|
6837
6833
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
6838
6834
|
var safeRegexReplacements = [
|
|
@@ -6885,18 +6881,18 @@ var require_re = __commonJS({
|
|
|
6885
6881
|
createToken("COERCERTLFULL", src[t2.COERCEFULL], true);
|
|
6886
6882
|
createToken("LONETILDE", "(?:~>?)");
|
|
6887
6883
|
createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true);
|
|
6888
|
-
|
|
6884
|
+
exports2.tildeTrimReplace = "$1~";
|
|
6889
6885
|
createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`);
|
|
6890
6886
|
createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`);
|
|
6891
6887
|
createToken("LONECARET", "(?:\\^)");
|
|
6892
6888
|
createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true);
|
|
6893
|
-
|
|
6889
|
+
exports2.caretTrimReplace = "$1^";
|
|
6894
6890
|
createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`);
|
|
6895
6891
|
createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`);
|
|
6896
6892
|
createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`);
|
|
6897
6893
|
createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`);
|
|
6898
6894
|
createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true);
|
|
6899
|
-
|
|
6895
|
+
exports2.comparatorTrimReplace = "$1$2$3";
|
|
6900
6896
|
createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`);
|
|
6901
6897
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`);
|
|
6902
6898
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
@@ -6907,7 +6903,7 @@ var require_re = __commonJS({
|
|
|
6907
6903
|
|
|
6908
6904
|
// node_modules/semver/internal/parse-options.js
|
|
6909
6905
|
var require_parse_options = __commonJS({
|
|
6910
|
-
"node_modules/semver/internal/parse-options.js"(
|
|
6906
|
+
"node_modules/semver/internal/parse-options.js"(exports2, module2) {
|
|
6911
6907
|
"use strict";
|
|
6912
6908
|
var looseOption = Object.freeze({ loose: true });
|
|
6913
6909
|
var emptyOpts = Object.freeze({});
|
|
@@ -6920,13 +6916,13 @@ var require_parse_options = __commonJS({
|
|
|
6920
6916
|
}
|
|
6921
6917
|
return options;
|
|
6922
6918
|
};
|
|
6923
|
-
|
|
6919
|
+
module2.exports = parseOptions;
|
|
6924
6920
|
}
|
|
6925
6921
|
});
|
|
6926
6922
|
|
|
6927
6923
|
// node_modules/semver/internal/identifiers.js
|
|
6928
6924
|
var require_identifiers = __commonJS({
|
|
6929
|
-
"node_modules/semver/internal/identifiers.js"(
|
|
6925
|
+
"node_modules/semver/internal/identifiers.js"(exports2, module2) {
|
|
6930
6926
|
"use strict";
|
|
6931
6927
|
var numeric = /^[0-9]+$/;
|
|
6932
6928
|
var compareIdentifiers = (a, b) => {
|
|
@@ -6939,7 +6935,7 @@ var require_identifiers = __commonJS({
|
|
|
6939
6935
|
return a === b ? 0 : anum2 && !bnum ? -1 : bnum && !anum2 ? 1 : a < b ? -1 : 1;
|
|
6940
6936
|
};
|
|
6941
6937
|
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
6942
|
-
|
|
6938
|
+
module2.exports = {
|
|
6943
6939
|
compareIdentifiers,
|
|
6944
6940
|
rcompareIdentifiers
|
|
6945
6941
|
};
|
|
@@ -6948,7 +6944,7 @@ var require_identifiers = __commonJS({
|
|
|
6948
6944
|
|
|
6949
6945
|
// node_modules/semver/classes/semver.js
|
|
6950
6946
|
var require_semver = __commonJS({
|
|
6951
|
-
"node_modules/semver/classes/semver.js"(
|
|
6947
|
+
"node_modules/semver/classes/semver.js"(exports2, module2) {
|
|
6952
6948
|
"use strict";
|
|
6953
6949
|
var debug = require_debug();
|
|
6954
6950
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -7204,13 +7200,13 @@ var require_semver = __commonJS({
|
|
|
7204
7200
|
return this;
|
|
7205
7201
|
}
|
|
7206
7202
|
};
|
|
7207
|
-
|
|
7203
|
+
module2.exports = SemVer;
|
|
7208
7204
|
}
|
|
7209
7205
|
});
|
|
7210
7206
|
|
|
7211
7207
|
// node_modules/semver/functions/parse.js
|
|
7212
7208
|
var require_parse = __commonJS({
|
|
7213
|
-
"node_modules/semver/functions/parse.js"(
|
|
7209
|
+
"node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
7214
7210
|
"use strict";
|
|
7215
7211
|
var SemVer = require_semver();
|
|
7216
7212
|
var parse2 = (version5, options, throwErrors = false) => {
|
|
@@ -7226,39 +7222,39 @@ var require_parse = __commonJS({
|
|
|
7226
7222
|
throw er;
|
|
7227
7223
|
}
|
|
7228
7224
|
};
|
|
7229
|
-
|
|
7225
|
+
module2.exports = parse2;
|
|
7230
7226
|
}
|
|
7231
7227
|
});
|
|
7232
7228
|
|
|
7233
7229
|
// node_modules/semver/functions/valid.js
|
|
7234
7230
|
var require_valid = __commonJS({
|
|
7235
|
-
"node_modules/semver/functions/valid.js"(
|
|
7231
|
+
"node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
7236
7232
|
"use strict";
|
|
7237
7233
|
var parse2 = require_parse();
|
|
7238
7234
|
var valid = (version5, options) => {
|
|
7239
7235
|
const v = parse2(version5, options);
|
|
7240
7236
|
return v ? v.version : null;
|
|
7241
7237
|
};
|
|
7242
|
-
|
|
7238
|
+
module2.exports = valid;
|
|
7243
7239
|
}
|
|
7244
7240
|
});
|
|
7245
7241
|
|
|
7246
7242
|
// node_modules/semver/functions/clean.js
|
|
7247
7243
|
var require_clean = __commonJS({
|
|
7248
|
-
"node_modules/semver/functions/clean.js"(
|
|
7244
|
+
"node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
7249
7245
|
"use strict";
|
|
7250
7246
|
var parse2 = require_parse();
|
|
7251
7247
|
var clean = (version5, options) => {
|
|
7252
7248
|
const s2 = parse2(version5.trim().replace(/^[=v]+/, ""), options);
|
|
7253
7249
|
return s2 ? s2.version : null;
|
|
7254
7250
|
};
|
|
7255
|
-
|
|
7251
|
+
module2.exports = clean;
|
|
7256
7252
|
}
|
|
7257
7253
|
});
|
|
7258
7254
|
|
|
7259
7255
|
// node_modules/semver/functions/inc.js
|
|
7260
7256
|
var require_inc = __commonJS({
|
|
7261
|
-
"node_modules/semver/functions/inc.js"(
|
|
7257
|
+
"node_modules/semver/functions/inc.js"(exports2, module2) {
|
|
7262
7258
|
"use strict";
|
|
7263
7259
|
var SemVer = require_semver();
|
|
7264
7260
|
var inc = (version5, release, options, identifier, identifierBase) => {
|
|
@@ -7276,13 +7272,13 @@ var require_inc = __commonJS({
|
|
|
7276
7272
|
return null;
|
|
7277
7273
|
}
|
|
7278
7274
|
};
|
|
7279
|
-
|
|
7275
|
+
module2.exports = inc;
|
|
7280
7276
|
}
|
|
7281
7277
|
});
|
|
7282
7278
|
|
|
7283
7279
|
// node_modules/semver/functions/diff.js
|
|
7284
7280
|
var require_diff = __commonJS({
|
|
7285
|
-
"node_modules/semver/functions/diff.js"(
|
|
7281
|
+
"node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
7286
7282
|
"use strict";
|
|
7287
7283
|
var parse2 = require_parse();
|
|
7288
7284
|
var diff = (version1, version22) => {
|
|
@@ -7320,86 +7316,86 @@ var require_diff = __commonJS({
|
|
|
7320
7316
|
}
|
|
7321
7317
|
return "prerelease";
|
|
7322
7318
|
};
|
|
7323
|
-
|
|
7319
|
+
module2.exports = diff;
|
|
7324
7320
|
}
|
|
7325
7321
|
});
|
|
7326
7322
|
|
|
7327
7323
|
// node_modules/semver/functions/major.js
|
|
7328
7324
|
var require_major = __commonJS({
|
|
7329
|
-
"node_modules/semver/functions/major.js"(
|
|
7325
|
+
"node_modules/semver/functions/major.js"(exports2, module2) {
|
|
7330
7326
|
"use strict";
|
|
7331
7327
|
var SemVer = require_semver();
|
|
7332
7328
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
7333
|
-
|
|
7329
|
+
module2.exports = major;
|
|
7334
7330
|
}
|
|
7335
7331
|
});
|
|
7336
7332
|
|
|
7337
7333
|
// node_modules/semver/functions/minor.js
|
|
7338
7334
|
var require_minor = __commonJS({
|
|
7339
|
-
"node_modules/semver/functions/minor.js"(
|
|
7335
|
+
"node_modules/semver/functions/minor.js"(exports2, module2) {
|
|
7340
7336
|
"use strict";
|
|
7341
7337
|
var SemVer = require_semver();
|
|
7342
7338
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
7343
|
-
|
|
7339
|
+
module2.exports = minor;
|
|
7344
7340
|
}
|
|
7345
7341
|
});
|
|
7346
7342
|
|
|
7347
7343
|
// node_modules/semver/functions/patch.js
|
|
7348
7344
|
var require_patch = __commonJS({
|
|
7349
|
-
"node_modules/semver/functions/patch.js"(
|
|
7345
|
+
"node_modules/semver/functions/patch.js"(exports2, module2) {
|
|
7350
7346
|
"use strict";
|
|
7351
7347
|
var SemVer = require_semver();
|
|
7352
7348
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
7353
|
-
|
|
7349
|
+
module2.exports = patch;
|
|
7354
7350
|
}
|
|
7355
7351
|
});
|
|
7356
7352
|
|
|
7357
7353
|
// node_modules/semver/functions/prerelease.js
|
|
7358
7354
|
var require_prerelease = __commonJS({
|
|
7359
|
-
"node_modules/semver/functions/prerelease.js"(
|
|
7355
|
+
"node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
7360
7356
|
"use strict";
|
|
7361
7357
|
var parse2 = require_parse();
|
|
7362
7358
|
var prerelease = (version5, options) => {
|
|
7363
7359
|
const parsed = parse2(version5, options);
|
|
7364
7360
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
7365
7361
|
};
|
|
7366
|
-
|
|
7362
|
+
module2.exports = prerelease;
|
|
7367
7363
|
}
|
|
7368
7364
|
});
|
|
7369
7365
|
|
|
7370
7366
|
// node_modules/semver/functions/compare.js
|
|
7371
7367
|
var require_compare = __commonJS({
|
|
7372
|
-
"node_modules/semver/functions/compare.js"(
|
|
7368
|
+
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
|
7373
7369
|
"use strict";
|
|
7374
7370
|
var SemVer = require_semver();
|
|
7375
7371
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
7376
|
-
|
|
7372
|
+
module2.exports = compare;
|
|
7377
7373
|
}
|
|
7378
7374
|
});
|
|
7379
7375
|
|
|
7380
7376
|
// node_modules/semver/functions/rcompare.js
|
|
7381
7377
|
var require_rcompare = __commonJS({
|
|
7382
|
-
"node_modules/semver/functions/rcompare.js"(
|
|
7378
|
+
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
|
7383
7379
|
"use strict";
|
|
7384
7380
|
var compare = require_compare();
|
|
7385
7381
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
7386
|
-
|
|
7382
|
+
module2.exports = rcompare;
|
|
7387
7383
|
}
|
|
7388
7384
|
});
|
|
7389
7385
|
|
|
7390
7386
|
// node_modules/semver/functions/compare-loose.js
|
|
7391
7387
|
var require_compare_loose = __commonJS({
|
|
7392
|
-
"node_modules/semver/functions/compare-loose.js"(
|
|
7388
|
+
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
|
7393
7389
|
"use strict";
|
|
7394
7390
|
var compare = require_compare();
|
|
7395
7391
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
7396
|
-
|
|
7392
|
+
module2.exports = compareLoose;
|
|
7397
7393
|
}
|
|
7398
7394
|
});
|
|
7399
7395
|
|
|
7400
7396
|
// node_modules/semver/functions/compare-build.js
|
|
7401
7397
|
var require_compare_build = __commonJS({
|
|
7402
|
-
"node_modules/semver/functions/compare-build.js"(
|
|
7398
|
+
"node_modules/semver/functions/compare-build.js"(exports2, module2) {
|
|
7403
7399
|
"use strict";
|
|
7404
7400
|
var SemVer = require_semver();
|
|
7405
7401
|
var compareBuild = (a, b, loose) => {
|
|
@@ -7407,93 +7403,93 @@ var require_compare_build = __commonJS({
|
|
|
7407
7403
|
const versionB = new SemVer(b, loose);
|
|
7408
7404
|
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
7409
7405
|
};
|
|
7410
|
-
|
|
7406
|
+
module2.exports = compareBuild;
|
|
7411
7407
|
}
|
|
7412
7408
|
});
|
|
7413
7409
|
|
|
7414
7410
|
// node_modules/semver/functions/sort.js
|
|
7415
7411
|
var require_sort = __commonJS({
|
|
7416
|
-
"node_modules/semver/functions/sort.js"(
|
|
7412
|
+
"node_modules/semver/functions/sort.js"(exports2, module2) {
|
|
7417
7413
|
"use strict";
|
|
7418
7414
|
var compareBuild = require_compare_build();
|
|
7419
7415
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
7420
|
-
|
|
7416
|
+
module2.exports = sort;
|
|
7421
7417
|
}
|
|
7422
7418
|
});
|
|
7423
7419
|
|
|
7424
7420
|
// node_modules/semver/functions/rsort.js
|
|
7425
7421
|
var require_rsort = __commonJS({
|
|
7426
|
-
"node_modules/semver/functions/rsort.js"(
|
|
7422
|
+
"node_modules/semver/functions/rsort.js"(exports2, module2) {
|
|
7427
7423
|
"use strict";
|
|
7428
7424
|
var compareBuild = require_compare_build();
|
|
7429
7425
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
7430
|
-
|
|
7426
|
+
module2.exports = rsort;
|
|
7431
7427
|
}
|
|
7432
7428
|
});
|
|
7433
7429
|
|
|
7434
7430
|
// node_modules/semver/functions/gt.js
|
|
7435
7431
|
var require_gt = __commonJS({
|
|
7436
|
-
"node_modules/semver/functions/gt.js"(
|
|
7432
|
+
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
|
7437
7433
|
"use strict";
|
|
7438
7434
|
var compare = require_compare();
|
|
7439
7435
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
7440
|
-
|
|
7436
|
+
module2.exports = gt;
|
|
7441
7437
|
}
|
|
7442
7438
|
});
|
|
7443
7439
|
|
|
7444
7440
|
// node_modules/semver/functions/lt.js
|
|
7445
7441
|
var require_lt = __commonJS({
|
|
7446
|
-
"node_modules/semver/functions/lt.js"(
|
|
7442
|
+
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
|
7447
7443
|
"use strict";
|
|
7448
7444
|
var compare = require_compare();
|
|
7449
7445
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
7450
|
-
|
|
7446
|
+
module2.exports = lt;
|
|
7451
7447
|
}
|
|
7452
7448
|
});
|
|
7453
7449
|
|
|
7454
7450
|
// node_modules/semver/functions/eq.js
|
|
7455
7451
|
var require_eq = __commonJS({
|
|
7456
|
-
"node_modules/semver/functions/eq.js"(
|
|
7452
|
+
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
|
7457
7453
|
"use strict";
|
|
7458
7454
|
var compare = require_compare();
|
|
7459
7455
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
7460
|
-
|
|
7456
|
+
module2.exports = eq;
|
|
7461
7457
|
}
|
|
7462
7458
|
});
|
|
7463
7459
|
|
|
7464
7460
|
// node_modules/semver/functions/neq.js
|
|
7465
7461
|
var require_neq = __commonJS({
|
|
7466
|
-
"node_modules/semver/functions/neq.js"(
|
|
7462
|
+
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
|
7467
7463
|
"use strict";
|
|
7468
7464
|
var compare = require_compare();
|
|
7469
7465
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
7470
|
-
|
|
7466
|
+
module2.exports = neq;
|
|
7471
7467
|
}
|
|
7472
7468
|
});
|
|
7473
7469
|
|
|
7474
7470
|
// node_modules/semver/functions/gte.js
|
|
7475
7471
|
var require_gte = __commonJS({
|
|
7476
|
-
"node_modules/semver/functions/gte.js"(
|
|
7472
|
+
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
|
7477
7473
|
"use strict";
|
|
7478
7474
|
var compare = require_compare();
|
|
7479
7475
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
7480
|
-
|
|
7476
|
+
module2.exports = gte;
|
|
7481
7477
|
}
|
|
7482
7478
|
});
|
|
7483
7479
|
|
|
7484
7480
|
// node_modules/semver/functions/lte.js
|
|
7485
7481
|
var require_lte = __commonJS({
|
|
7486
|
-
"node_modules/semver/functions/lte.js"(
|
|
7482
|
+
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
|
7487
7483
|
"use strict";
|
|
7488
7484
|
var compare = require_compare();
|
|
7489
7485
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
7490
|
-
|
|
7486
|
+
module2.exports = lte;
|
|
7491
7487
|
}
|
|
7492
7488
|
});
|
|
7493
7489
|
|
|
7494
7490
|
// node_modules/semver/functions/cmp.js
|
|
7495
7491
|
var require_cmp = __commonJS({
|
|
7496
|
-
"node_modules/semver/functions/cmp.js"(
|
|
7492
|
+
"node_modules/semver/functions/cmp.js"(exports2, module2) {
|
|
7497
7493
|
"use strict";
|
|
7498
7494
|
var eq = require_eq();
|
|
7499
7495
|
var neq = require_neq();
|
|
@@ -7537,13 +7533,13 @@ var require_cmp = __commonJS({
|
|
|
7537
7533
|
throw new TypeError(`Invalid operator: ${op}`);
|
|
7538
7534
|
}
|
|
7539
7535
|
};
|
|
7540
|
-
|
|
7536
|
+
module2.exports = cmp;
|
|
7541
7537
|
}
|
|
7542
7538
|
});
|
|
7543
7539
|
|
|
7544
7540
|
// node_modules/semver/functions/coerce.js
|
|
7545
7541
|
var require_coerce = __commonJS({
|
|
7546
|
-
"node_modules/semver/functions/coerce.js"(
|
|
7542
|
+
"node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
7547
7543
|
"use strict";
|
|
7548
7544
|
var SemVer = require_semver();
|
|
7549
7545
|
var parse2 = require_parse();
|
|
@@ -7583,13 +7579,13 @@ var require_coerce = __commonJS({
|
|
|
7583
7579
|
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
7584
7580
|
return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
7585
7581
|
};
|
|
7586
|
-
|
|
7582
|
+
module2.exports = coerce;
|
|
7587
7583
|
}
|
|
7588
7584
|
});
|
|
7589
7585
|
|
|
7590
7586
|
// node_modules/semver/internal/lrucache.js
|
|
7591
7587
|
var require_lrucache = __commonJS({
|
|
7592
|
-
"node_modules/semver/internal/lrucache.js"(
|
|
7588
|
+
"node_modules/semver/internal/lrucache.js"(exports2, module2) {
|
|
7593
7589
|
"use strict";
|
|
7594
7590
|
var LRUCache = class {
|
|
7595
7591
|
constructor() {
|
|
@@ -7621,13 +7617,13 @@ var require_lrucache = __commonJS({
|
|
|
7621
7617
|
return this;
|
|
7622
7618
|
}
|
|
7623
7619
|
};
|
|
7624
|
-
|
|
7620
|
+
module2.exports = LRUCache;
|
|
7625
7621
|
}
|
|
7626
7622
|
});
|
|
7627
7623
|
|
|
7628
7624
|
// node_modules/semver/classes/range.js
|
|
7629
7625
|
var require_range = __commonJS({
|
|
7630
|
-
"node_modules/semver/classes/range.js"(
|
|
7626
|
+
"node_modules/semver/classes/range.js"(exports2, module2) {
|
|
7631
7627
|
"use strict";
|
|
7632
7628
|
var SPACE_CHARACTERS = /\s+/g;
|
|
7633
7629
|
var Range = class _Range {
|
|
@@ -7768,7 +7764,7 @@ var require_range = __commonJS({
|
|
|
7768
7764
|
return false;
|
|
7769
7765
|
}
|
|
7770
7766
|
};
|
|
7771
|
-
|
|
7767
|
+
module2.exports = Range;
|
|
7772
7768
|
var LRU = require_lrucache();
|
|
7773
7769
|
var cache = new LRU();
|
|
7774
7770
|
var parseOptions = require_parse_options();
|
|
@@ -8003,7 +7999,7 @@ var require_range = __commonJS({
|
|
|
8003
7999
|
|
|
8004
8000
|
// node_modules/semver/classes/comparator.js
|
|
8005
8001
|
var require_comparator = __commonJS({
|
|
8006
|
-
"node_modules/semver/classes/comparator.js"(
|
|
8002
|
+
"node_modules/semver/classes/comparator.js"(exports2, module2) {
|
|
8007
8003
|
"use strict";
|
|
8008
8004
|
var ANY = Symbol("SemVer ANY");
|
|
8009
8005
|
var Comparator = class _Comparator {
|
|
@@ -8104,7 +8100,7 @@ var require_comparator = __commonJS({
|
|
|
8104
8100
|
return false;
|
|
8105
8101
|
}
|
|
8106
8102
|
};
|
|
8107
|
-
|
|
8103
|
+
module2.exports = Comparator;
|
|
8108
8104
|
var parseOptions = require_parse_options();
|
|
8109
8105
|
var { safeRe: re, t: t2 } = require_re();
|
|
8110
8106
|
var cmp = require_cmp();
|
|
@@ -8116,7 +8112,7 @@ var require_comparator = __commonJS({
|
|
|
8116
8112
|
|
|
8117
8113
|
// node_modules/semver/functions/satisfies.js
|
|
8118
8114
|
var require_satisfies = __commonJS({
|
|
8119
|
-
"node_modules/semver/functions/satisfies.js"(
|
|
8115
|
+
"node_modules/semver/functions/satisfies.js"(exports2, module2) {
|
|
8120
8116
|
"use strict";
|
|
8121
8117
|
var Range = require_range();
|
|
8122
8118
|
var satisfies2 = (version5, range, options) => {
|
|
@@ -8127,23 +8123,23 @@ var require_satisfies = __commonJS({
|
|
|
8127
8123
|
}
|
|
8128
8124
|
return range.test(version5);
|
|
8129
8125
|
};
|
|
8130
|
-
|
|
8126
|
+
module2.exports = satisfies2;
|
|
8131
8127
|
}
|
|
8132
8128
|
});
|
|
8133
8129
|
|
|
8134
8130
|
// node_modules/semver/ranges/to-comparators.js
|
|
8135
8131
|
var require_to_comparators = __commonJS({
|
|
8136
|
-
"node_modules/semver/ranges/to-comparators.js"(
|
|
8132
|
+
"node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
|
|
8137
8133
|
"use strict";
|
|
8138
8134
|
var Range = require_range();
|
|
8139
8135
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
8140
|
-
|
|
8136
|
+
module2.exports = toComparators;
|
|
8141
8137
|
}
|
|
8142
8138
|
});
|
|
8143
8139
|
|
|
8144
8140
|
// node_modules/semver/ranges/max-satisfying.js
|
|
8145
8141
|
var require_max_satisfying = __commonJS({
|
|
8146
|
-
"node_modules/semver/ranges/max-satisfying.js"(
|
|
8142
|
+
"node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
|
|
8147
8143
|
"use strict";
|
|
8148
8144
|
var SemVer = require_semver();
|
|
8149
8145
|
var Range = require_range();
|
|
@@ -8166,13 +8162,13 @@ var require_max_satisfying = __commonJS({
|
|
|
8166
8162
|
});
|
|
8167
8163
|
return max;
|
|
8168
8164
|
};
|
|
8169
|
-
|
|
8165
|
+
module2.exports = maxSatisfying;
|
|
8170
8166
|
}
|
|
8171
8167
|
});
|
|
8172
8168
|
|
|
8173
8169
|
// node_modules/semver/ranges/min-satisfying.js
|
|
8174
8170
|
var require_min_satisfying = __commonJS({
|
|
8175
|
-
"node_modules/semver/ranges/min-satisfying.js"(
|
|
8171
|
+
"node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
|
|
8176
8172
|
"use strict";
|
|
8177
8173
|
var SemVer = require_semver();
|
|
8178
8174
|
var Range = require_range();
|
|
@@ -8195,13 +8191,13 @@ var require_min_satisfying = __commonJS({
|
|
|
8195
8191
|
});
|
|
8196
8192
|
return min;
|
|
8197
8193
|
};
|
|
8198
|
-
|
|
8194
|
+
module2.exports = minSatisfying;
|
|
8199
8195
|
}
|
|
8200
8196
|
});
|
|
8201
8197
|
|
|
8202
8198
|
// node_modules/semver/ranges/min-version.js
|
|
8203
8199
|
var require_min_version = __commonJS({
|
|
8204
|
-
"node_modules/semver/ranges/min-version.js"(
|
|
8200
|
+
"node_modules/semver/ranges/min-version.js"(exports2, module2) {
|
|
8205
8201
|
"use strict";
|
|
8206
8202
|
var SemVer = require_semver();
|
|
8207
8203
|
var Range = require_range();
|
|
@@ -8254,13 +8250,13 @@ var require_min_version = __commonJS({
|
|
|
8254
8250
|
}
|
|
8255
8251
|
return null;
|
|
8256
8252
|
};
|
|
8257
|
-
|
|
8253
|
+
module2.exports = minVersion;
|
|
8258
8254
|
}
|
|
8259
8255
|
});
|
|
8260
8256
|
|
|
8261
8257
|
// node_modules/semver/ranges/valid.js
|
|
8262
8258
|
var require_valid2 = __commonJS({
|
|
8263
|
-
"node_modules/semver/ranges/valid.js"(
|
|
8259
|
+
"node_modules/semver/ranges/valid.js"(exports2, module2) {
|
|
8264
8260
|
"use strict";
|
|
8265
8261
|
var Range = require_range();
|
|
8266
8262
|
var validRange = (range, options) => {
|
|
@@ -8270,13 +8266,13 @@ var require_valid2 = __commonJS({
|
|
|
8270
8266
|
return null;
|
|
8271
8267
|
}
|
|
8272
8268
|
};
|
|
8273
|
-
|
|
8269
|
+
module2.exports = validRange;
|
|
8274
8270
|
}
|
|
8275
8271
|
});
|
|
8276
8272
|
|
|
8277
8273
|
// node_modules/semver/ranges/outside.js
|
|
8278
8274
|
var require_outside = __commonJS({
|
|
8279
|
-
"node_modules/semver/ranges/outside.js"(
|
|
8275
|
+
"node_modules/semver/ranges/outside.js"(exports2, module2) {
|
|
8280
8276
|
"use strict";
|
|
8281
8277
|
var SemVer = require_semver();
|
|
8282
8278
|
var Comparator = require_comparator();
|
|
@@ -8339,33 +8335,33 @@ var require_outside = __commonJS({
|
|
|
8339
8335
|
}
|
|
8340
8336
|
return true;
|
|
8341
8337
|
};
|
|
8342
|
-
|
|
8338
|
+
module2.exports = outside;
|
|
8343
8339
|
}
|
|
8344
8340
|
});
|
|
8345
8341
|
|
|
8346
8342
|
// node_modules/semver/ranges/gtr.js
|
|
8347
8343
|
var require_gtr = __commonJS({
|
|
8348
|
-
"node_modules/semver/ranges/gtr.js"(
|
|
8344
|
+
"node_modules/semver/ranges/gtr.js"(exports2, module2) {
|
|
8349
8345
|
"use strict";
|
|
8350
8346
|
var outside = require_outside();
|
|
8351
8347
|
var gtr = (version5, range, options) => outside(version5, range, ">", options);
|
|
8352
|
-
|
|
8348
|
+
module2.exports = gtr;
|
|
8353
8349
|
}
|
|
8354
8350
|
});
|
|
8355
8351
|
|
|
8356
8352
|
// node_modules/semver/ranges/ltr.js
|
|
8357
8353
|
var require_ltr = __commonJS({
|
|
8358
|
-
"node_modules/semver/ranges/ltr.js"(
|
|
8354
|
+
"node_modules/semver/ranges/ltr.js"(exports2, module2) {
|
|
8359
8355
|
"use strict";
|
|
8360
8356
|
var outside = require_outside();
|
|
8361
8357
|
var ltr = (version5, range, options) => outside(version5, range, "<", options);
|
|
8362
|
-
|
|
8358
|
+
module2.exports = ltr;
|
|
8363
8359
|
}
|
|
8364
8360
|
});
|
|
8365
8361
|
|
|
8366
8362
|
// node_modules/semver/ranges/intersects.js
|
|
8367
8363
|
var require_intersects = __commonJS({
|
|
8368
|
-
"node_modules/semver/ranges/intersects.js"(
|
|
8364
|
+
"node_modules/semver/ranges/intersects.js"(exports2, module2) {
|
|
8369
8365
|
"use strict";
|
|
8370
8366
|
var Range = require_range();
|
|
8371
8367
|
var intersects = (r1, r2, options) => {
|
|
@@ -8373,17 +8369,17 @@ var require_intersects = __commonJS({
|
|
|
8373
8369
|
r2 = new Range(r2, options);
|
|
8374
8370
|
return r1.intersects(r2, options);
|
|
8375
8371
|
};
|
|
8376
|
-
|
|
8372
|
+
module2.exports = intersects;
|
|
8377
8373
|
}
|
|
8378
8374
|
});
|
|
8379
8375
|
|
|
8380
8376
|
// node_modules/semver/ranges/simplify.js
|
|
8381
8377
|
var require_simplify = __commonJS({
|
|
8382
|
-
"node_modules/semver/ranges/simplify.js"(
|
|
8378
|
+
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
|
8383
8379
|
"use strict";
|
|
8384
8380
|
var satisfies2 = require_satisfies();
|
|
8385
8381
|
var compare = require_compare();
|
|
8386
|
-
|
|
8382
|
+
module2.exports = (versions, range, options) => {
|
|
8387
8383
|
const set = [];
|
|
8388
8384
|
let first = null;
|
|
8389
8385
|
let prev = null;
|
|
@@ -8429,7 +8425,7 @@ var require_simplify = __commonJS({
|
|
|
8429
8425
|
|
|
8430
8426
|
// node_modules/semver/ranges/subset.js
|
|
8431
8427
|
var require_subset = __commonJS({
|
|
8432
|
-
"node_modules/semver/ranges/subset.js"(
|
|
8428
|
+
"node_modules/semver/ranges/subset.js"(exports2, module2) {
|
|
8433
8429
|
"use strict";
|
|
8434
8430
|
var Range = require_range();
|
|
8435
8431
|
var Comparator = require_comparator();
|
|
@@ -8585,13 +8581,13 @@ var require_subset = __commonJS({
|
|
|
8585
8581
|
const comp = compare(a.semver, b.semver, options);
|
|
8586
8582
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
8587
8583
|
};
|
|
8588
|
-
|
|
8584
|
+
module2.exports = subset;
|
|
8589
8585
|
}
|
|
8590
8586
|
});
|
|
8591
8587
|
|
|
8592
8588
|
// node_modules/semver/index.js
|
|
8593
8589
|
var require_semver2 = __commonJS({
|
|
8594
|
-
"node_modules/semver/index.js"(
|
|
8590
|
+
"node_modules/semver/index.js"(exports2, module2) {
|
|
8595
8591
|
"use strict";
|
|
8596
8592
|
var internalRe = require_re();
|
|
8597
8593
|
var constants = require_constants();
|
|
@@ -8634,7 +8630,7 @@ var require_semver2 = __commonJS({
|
|
|
8634
8630
|
var intersects = require_intersects();
|
|
8635
8631
|
var simplifyRange = require_simplify();
|
|
8636
8632
|
var subset = require_subset();
|
|
8637
|
-
|
|
8633
|
+
module2.exports = {
|
|
8638
8634
|
parse: parse2,
|
|
8639
8635
|
valid,
|
|
8640
8636
|
clean,
|
|
@@ -10406,11 +10402,11 @@ var init_u64 = __esm({
|
|
|
10406
10402
|
});
|
|
10407
10403
|
|
|
10408
10404
|
// node_modules/viem/node_modules/@noble/hashes/esm/cryptoNode.js
|
|
10409
|
-
|
|
10410
|
-
var crypto2;
|
|
10405
|
+
var nc, crypto2;
|
|
10411
10406
|
var init_cryptoNode = __esm({
|
|
10412
10407
|
"node_modules/viem/node_modules/@noble/hashes/esm/cryptoNode.js"() {
|
|
10413
10408
|
"use strict";
|
|
10409
|
+
nc = __toESM(require("node:crypto"), 1);
|
|
10414
10410
|
crypto2 = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
|
|
10415
10411
|
}
|
|
10416
10412
|
});
|
|
@@ -16850,10 +16846,15 @@ var init_call = __esm({
|
|
|
16850
16846
|
});
|
|
16851
16847
|
|
|
16852
16848
|
// src/index.ts
|
|
16853
|
-
|
|
16849
|
+
var index_exports = {};
|
|
16850
|
+
__export(index_exports, {
|
|
16851
|
+
initializeCLI: () => initializeCLI
|
|
16852
|
+
});
|
|
16853
|
+
module.exports = __toCommonJS(index_exports);
|
|
16854
|
+
var import_commander = require("commander");
|
|
16854
16855
|
|
|
16855
16856
|
// package.json
|
|
16856
|
-
var version = "0.12.2
|
|
16857
|
+
var version = "0.12.2";
|
|
16857
16858
|
var package_default = {
|
|
16858
16859
|
name: "genlayer",
|
|
16859
16860
|
version,
|
|
@@ -16901,7 +16902,7 @@ var package_default = {
|
|
|
16901
16902
|
"@typescript-eslint/parser": "^8.0.0",
|
|
16902
16903
|
"@vitest/coverage-v8": "^2.1.4",
|
|
16903
16904
|
"cross-env": "^7.0.3",
|
|
16904
|
-
esbuild: "
|
|
16905
|
+
esbuild: "^0.25.0",
|
|
16905
16906
|
eslint: "^9.0.0",
|
|
16906
16907
|
"eslint-config-prettier": "^10.0.0",
|
|
16907
16908
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
@@ -16939,10 +16940,10 @@ var package_default = {
|
|
|
16939
16940
|
var CLI_DESCRIPTION = "GenLayer CLI is a development environment for the GenLayer ecosystem. It allows developers to interact with the protocol by creating accounts, sending transactions, and working with Intelligent Contracts by testing, debugging, and deploying them.";
|
|
16940
16941
|
|
|
16941
16942
|
// src/commands/general/init.ts
|
|
16942
|
-
|
|
16943
|
+
var import_inquirer2 = __toESM(require("inquirer"), 1);
|
|
16943
16944
|
|
|
16944
16945
|
// src/lib/config/simulator.ts
|
|
16945
|
-
var localnetCompatibleVersion = "v0.
|
|
16946
|
+
var localnetCompatibleVersion = "v0.42.0";
|
|
16946
16947
|
var DEFAULT_JSON_RPC_URL = "http://localhost:4000/api";
|
|
16947
16948
|
var CONTAINERS_NAME_PREFIX = "/genlayer-";
|
|
16948
16949
|
var IMAGES_NAME_PREFIX = "yeagerai";
|
|
@@ -16966,7 +16967,7 @@ var STARTING_TIMEOUT_ATTEMPTS = 120;
|
|
|
16966
16967
|
var AI_PROVIDERS_CONFIG = {
|
|
16967
16968
|
ollama: {
|
|
16968
16969
|
name: "Ollama",
|
|
16969
|
-
hint: "(
|
|
16970
|
+
hint: "(This will download and run a local instance of Llama 3)",
|
|
16970
16971
|
cliOptionValue: "ollama"
|
|
16971
16972
|
},
|
|
16972
16973
|
openai: {
|
|
@@ -16984,14 +16985,14 @@ var AI_PROVIDERS_CONFIG = {
|
|
|
16984
16985
|
};
|
|
16985
16986
|
|
|
16986
16987
|
// src/commands/update/ollama.ts
|
|
16987
|
-
|
|
16988
|
+
var import_dockerode = __toESM(require("dockerode"), 1);
|
|
16988
16989
|
|
|
16989
16990
|
// node_modules/node-fetch/src/index.js
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16991
|
+
var import_node_http2 = __toESM(require("node:http"), 1);
|
|
16992
|
+
var import_node_https = __toESM(require("node:https"), 1);
|
|
16993
|
+
var import_node_zlib = __toESM(require("node:zlib"), 1);
|
|
16994
|
+
var import_node_stream2 = __toESM(require("node:stream"), 1);
|
|
16995
|
+
var import_node_buffer2 = require("node:buffer");
|
|
16995
16996
|
|
|
16996
16997
|
// node_modules/data-uri-to-buffer/dist/index.js
|
|
16997
16998
|
function dataUriToBuffer(uri) {
|
|
@@ -17033,11 +17034,11 @@ function dataUriToBuffer(uri) {
|
|
|
17033
17034
|
var dist_default = dataUriToBuffer;
|
|
17034
17035
|
|
|
17035
17036
|
// node_modules/node-fetch/src/body.js
|
|
17037
|
+
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
17038
|
+
var import_node_util = require("node:util");
|
|
17039
|
+
var import_node_buffer = require("node:buffer");
|
|
17036
17040
|
init_fetch_blob();
|
|
17037
17041
|
init_esm_min();
|
|
17038
|
-
import Stream, { PassThrough } from "node:stream";
|
|
17039
|
-
import { types, deprecate, promisify } from "node:util";
|
|
17040
|
-
import { Buffer as Buffer2 } from "node:buffer";
|
|
17041
17042
|
|
|
17042
17043
|
// node_modules/node-fetch/src/errors/base.js
|
|
17043
17044
|
var FetchBaseError = class extends Error {
|
|
@@ -17093,7 +17094,7 @@ var isSameProtocol = (destination, original) => {
|
|
|
17093
17094
|
};
|
|
17094
17095
|
|
|
17095
17096
|
// node_modules/node-fetch/src/body.js
|
|
17096
|
-
var pipeline = promisify(
|
|
17097
|
+
var pipeline = (0, import_node_util.promisify)(import_node_stream.default.pipeline);
|
|
17097
17098
|
var INTERNALS = Symbol("Body internals");
|
|
17098
17099
|
var Body = class {
|
|
17099
17100
|
constructor(body, {
|
|
@@ -17103,25 +17104,25 @@ var Body = class {
|
|
|
17103
17104
|
if (body === null) {
|
|
17104
17105
|
body = null;
|
|
17105
17106
|
} else if (isURLSearchParameters(body)) {
|
|
17106
|
-
body =
|
|
17107
|
+
body = import_node_buffer.Buffer.from(body.toString());
|
|
17107
17108
|
} else if (isBlob(body)) {
|
|
17108
|
-
} else if (
|
|
17109
|
-
} else if (types.isAnyArrayBuffer(body)) {
|
|
17110
|
-
body =
|
|
17109
|
+
} else if (import_node_buffer.Buffer.isBuffer(body)) {
|
|
17110
|
+
} else if (import_node_util.types.isAnyArrayBuffer(body)) {
|
|
17111
|
+
body = import_node_buffer.Buffer.from(body);
|
|
17111
17112
|
} else if (ArrayBuffer.isView(body)) {
|
|
17112
|
-
body =
|
|
17113
|
-
} else if (body instanceof
|
|
17113
|
+
body = import_node_buffer.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
17114
|
+
} else if (body instanceof import_node_stream.default) {
|
|
17114
17115
|
} else if (body instanceof FormData) {
|
|
17115
17116
|
body = formDataToBlob(body);
|
|
17116
17117
|
boundary = body.type.split("=")[1];
|
|
17117
17118
|
} else {
|
|
17118
|
-
body =
|
|
17119
|
+
body = import_node_buffer.Buffer.from(String(body));
|
|
17119
17120
|
}
|
|
17120
17121
|
let stream = body;
|
|
17121
|
-
if (
|
|
17122
|
-
stream =
|
|
17122
|
+
if (import_node_buffer.Buffer.isBuffer(body)) {
|
|
17123
|
+
stream = import_node_stream.default.Readable.from(body);
|
|
17123
17124
|
} else if (isBlob(body)) {
|
|
17124
|
-
stream =
|
|
17125
|
+
stream = import_node_stream.default.Readable.from(body.stream());
|
|
17125
17126
|
}
|
|
17126
17127
|
this[INTERNALS] = {
|
|
17127
17128
|
body,
|
|
@@ -17131,7 +17132,7 @@ var Body = class {
|
|
|
17131
17132
|
error: null
|
|
17132
17133
|
};
|
|
17133
17134
|
this.size = size5;
|
|
17134
|
-
if (body instanceof
|
|
17135
|
+
if (body instanceof import_node_stream.default) {
|
|
17135
17136
|
body.on("error", (error_) => {
|
|
17136
17137
|
const error = error_ instanceof FetchBaseError ? error_ : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${error_.message}`, "system", error_);
|
|
17137
17138
|
this[INTERNALS].error = error;
|
|
@@ -17205,7 +17206,7 @@ var Body = class {
|
|
|
17205
17206
|
return consumeBody(this);
|
|
17206
17207
|
}
|
|
17207
17208
|
};
|
|
17208
|
-
Body.prototype.buffer = deprecate(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
|
|
17209
|
+
Body.prototype.buffer = (0, import_node_util.deprecate)(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
|
|
17209
17210
|
Object.defineProperties(Body.prototype, {
|
|
17210
17211
|
body: { enumerable: true },
|
|
17211
17212
|
bodyUsed: { enumerable: true },
|
|
@@ -17213,7 +17214,7 @@ Object.defineProperties(Body.prototype, {
|
|
|
17213
17214
|
blob: { enumerable: true },
|
|
17214
17215
|
json: { enumerable: true },
|
|
17215
17216
|
text: { enumerable: true },
|
|
17216
|
-
data: { get: deprecate(
|
|
17217
|
+
data: { get: (0, import_node_util.deprecate)(
|
|
17217
17218
|
() => {
|
|
17218
17219
|
},
|
|
17219
17220
|
"data doesn't exist, use json(), text(), arrayBuffer(), or body instead",
|
|
@@ -17230,10 +17231,10 @@ async function consumeBody(data) {
|
|
|
17230
17231
|
}
|
|
17231
17232
|
const { body } = data;
|
|
17232
17233
|
if (body === null) {
|
|
17233
|
-
return
|
|
17234
|
+
return import_node_buffer.Buffer.alloc(0);
|
|
17234
17235
|
}
|
|
17235
|
-
if (!(body instanceof
|
|
17236
|
-
return
|
|
17236
|
+
if (!(body instanceof import_node_stream.default)) {
|
|
17237
|
+
return import_node_buffer.Buffer.alloc(0);
|
|
17237
17238
|
}
|
|
17238
17239
|
const accum = [];
|
|
17239
17240
|
let accumBytes = 0;
|
|
@@ -17254,9 +17255,9 @@ async function consumeBody(data) {
|
|
|
17254
17255
|
if (body.readableEnded === true || body._readableState.ended === true) {
|
|
17255
17256
|
try {
|
|
17256
17257
|
if (accum.every((c) => typeof c === "string")) {
|
|
17257
|
-
return
|
|
17258
|
+
return import_node_buffer.Buffer.from(accum.join(""));
|
|
17258
17259
|
}
|
|
17259
|
-
return
|
|
17260
|
+
return import_node_buffer.Buffer.concat(accum, accumBytes);
|
|
17260
17261
|
} catch (error) {
|
|
17261
17262
|
throw new FetchError(`Could not create Buffer from response body for ${data.url}: ${error.message}`, "system", error);
|
|
17262
17263
|
}
|
|
@@ -17271,9 +17272,9 @@ var clone = (instance, highWaterMark) => {
|
|
|
17271
17272
|
if (instance.bodyUsed) {
|
|
17272
17273
|
throw new Error("cannot clone body after it is used");
|
|
17273
17274
|
}
|
|
17274
|
-
if (body instanceof
|
|
17275
|
-
p1 = new PassThrough({ highWaterMark });
|
|
17276
|
-
p2 = new PassThrough({ highWaterMark });
|
|
17275
|
+
if (body instanceof import_node_stream.default && typeof body.getBoundary !== "function") {
|
|
17276
|
+
p1 = new import_node_stream.PassThrough({ highWaterMark });
|
|
17277
|
+
p2 = new import_node_stream.PassThrough({ highWaterMark });
|
|
17277
17278
|
body.pipe(p1);
|
|
17278
17279
|
body.pipe(p2);
|
|
17279
17280
|
instance[INTERNALS].stream = p1;
|
|
@@ -17281,7 +17282,7 @@ var clone = (instance, highWaterMark) => {
|
|
|
17281
17282
|
}
|
|
17282
17283
|
return body;
|
|
17283
17284
|
};
|
|
17284
|
-
var getNonSpecFormDataBoundary = deprecate(
|
|
17285
|
+
var getNonSpecFormDataBoundary = (0, import_node_util.deprecate)(
|
|
17285
17286
|
(body) => body.getBoundary(),
|
|
17286
17287
|
"form-data doesn't follow the spec and requires special treatment. Use alternative package",
|
|
17287
17288
|
"https://github.com/node-fetch/node-fetch/issues/1167"
|
|
@@ -17299,7 +17300,7 @@ var extractContentType = (body, request) => {
|
|
|
17299
17300
|
if (isBlob(body)) {
|
|
17300
17301
|
return body.type || null;
|
|
17301
17302
|
}
|
|
17302
|
-
if (
|
|
17303
|
+
if (import_node_buffer.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
|
17303
17304
|
return null;
|
|
17304
17305
|
}
|
|
17305
17306
|
if (body instanceof FormData) {
|
|
@@ -17308,7 +17309,7 @@ var extractContentType = (body, request) => {
|
|
|
17308
17309
|
if (body && typeof body.getBoundary === "function") {
|
|
17309
17310
|
return `multipart/form-data;boundary=${getNonSpecFormDataBoundary(body)}`;
|
|
17310
17311
|
}
|
|
17311
|
-
if (body instanceof
|
|
17312
|
+
if (body instanceof import_node_stream.default) {
|
|
17312
17313
|
return null;
|
|
17313
17314
|
}
|
|
17314
17315
|
return "text/plain;charset=UTF-8";
|
|
@@ -17321,7 +17322,7 @@ var getTotalBytes = (request) => {
|
|
|
17321
17322
|
if (isBlob(body)) {
|
|
17322
17323
|
return body.size;
|
|
17323
17324
|
}
|
|
17324
|
-
if (
|
|
17325
|
+
if (import_node_buffer.Buffer.isBuffer(body)) {
|
|
17325
17326
|
return body.length;
|
|
17326
17327
|
}
|
|
17327
17328
|
if (body && typeof body.getLengthSync === "function") {
|
|
@@ -17338,16 +17339,16 @@ var writeToStream = async (dest, { body }) => {
|
|
|
17338
17339
|
};
|
|
17339
17340
|
|
|
17340
17341
|
// node_modules/node-fetch/src/headers.js
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
var validateHeaderName = typeof
|
|
17342
|
+
var import_node_util2 = require("node:util");
|
|
17343
|
+
var import_node_http = __toESM(require("node:http"), 1);
|
|
17344
|
+
var validateHeaderName = typeof import_node_http.default.validateHeaderName === "function" ? import_node_http.default.validateHeaderName : (name) => {
|
|
17344
17345
|
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name)) {
|
|
17345
17346
|
const error = new TypeError(`Header name must be a valid HTTP token [${name}]`);
|
|
17346
17347
|
Object.defineProperty(error, "code", { value: "ERR_INVALID_HTTP_TOKEN" });
|
|
17347
17348
|
throw error;
|
|
17348
17349
|
}
|
|
17349
17350
|
};
|
|
17350
|
-
var validateHeaderValue = typeof
|
|
17351
|
+
var validateHeaderValue = typeof import_node_http.default.validateHeaderValue === "function" ? import_node_http.default.validateHeaderValue : (name, value) => {
|
|
17351
17352
|
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(value)) {
|
|
17352
17353
|
const error = new TypeError(`Invalid character in header content ["${name}"]`);
|
|
17353
17354
|
Object.defineProperty(error, "code", { value: "ERR_INVALID_CHAR" });
|
|
@@ -17369,7 +17370,7 @@ var Headers = class _Headers extends URLSearchParams {
|
|
|
17369
17370
|
result.push(...values.map((value) => [name, value]));
|
|
17370
17371
|
}
|
|
17371
17372
|
} else if (init == null) {
|
|
17372
|
-
} else if (typeof init === "object" && !
|
|
17373
|
+
} else if (typeof init === "object" && !import_node_util2.types.isBoxedPrimitive(init)) {
|
|
17373
17374
|
const method = init[Symbol.iterator];
|
|
17374
17375
|
if (method == null) {
|
|
17375
17376
|
result.push(...Object.entries(init));
|
|
@@ -17378,7 +17379,7 @@ var Headers = class _Headers extends URLSearchParams {
|
|
|
17378
17379
|
throw new TypeError("Header pairs must be iterable");
|
|
17379
17380
|
}
|
|
17380
17381
|
result = [...init].map((pair) => {
|
|
17381
|
-
if (typeof pair !== "object" ||
|
|
17382
|
+
if (typeof pair !== "object" || import_node_util2.types.isBoxedPrimitive(pair)) {
|
|
17382
17383
|
throw new TypeError("Each header pair must be an iterable object");
|
|
17383
17384
|
}
|
|
17384
17385
|
return [...pair];
|
|
@@ -17648,8 +17649,8 @@ Object.defineProperties(Response.prototype, {
|
|
|
17648
17649
|
});
|
|
17649
17650
|
|
|
17650
17651
|
// node_modules/node-fetch/src/request.js
|
|
17651
|
-
|
|
17652
|
-
|
|
17652
|
+
var import_node_url = require("node:url");
|
|
17653
|
+
var import_node_util3 = require("node:util");
|
|
17653
17654
|
|
|
17654
17655
|
// node_modules/node-fetch/src/utils/get-search.js
|
|
17655
17656
|
var getSearch = (parsedURL) => {
|
|
@@ -17662,7 +17663,7 @@ var getSearch = (parsedURL) => {
|
|
|
17662
17663
|
};
|
|
17663
17664
|
|
|
17664
17665
|
// node_modules/node-fetch/src/utils/referrer.js
|
|
17665
|
-
|
|
17666
|
+
var import_node_net = require("node:net");
|
|
17666
17667
|
function stripURLForUseAsAReferrer(url, originOnly = false) {
|
|
17667
17668
|
if (url == null) {
|
|
17668
17669
|
return "no-referrer";
|
|
@@ -17703,7 +17704,7 @@ function isOriginPotentiallyTrustworthy(url) {
|
|
|
17703
17704
|
return true;
|
|
17704
17705
|
}
|
|
17705
17706
|
const hostIp = url.host.replace(/(^\[)|(]$)/g, "");
|
|
17706
|
-
const hostIPVersion = isIP(hostIp);
|
|
17707
|
+
const hostIPVersion = (0, import_node_net.isIP)(hostIp);
|
|
17707
17708
|
if (hostIPVersion === 4 && /^127\./.test(hostIp)) {
|
|
17708
17709
|
return true;
|
|
17709
17710
|
}
|
|
@@ -17806,7 +17807,7 @@ var INTERNALS3 = Symbol("Request internals");
|
|
|
17806
17807
|
var isRequest = (object) => {
|
|
17807
17808
|
return typeof object === "object" && typeof object[INTERNALS3] === "object";
|
|
17808
17809
|
};
|
|
17809
|
-
var doBadDataWarn =
|
|
17810
|
+
var doBadDataWarn = (0, import_node_util3.deprecate)(
|
|
17810
17811
|
() => {
|
|
17811
17812
|
},
|
|
17812
17813
|
".data is not a valid RequestInit property, use .body instead",
|
|
@@ -17883,7 +17884,7 @@ var Request = class _Request extends Body {
|
|
|
17883
17884
|
}
|
|
17884
17885
|
/** @returns {string} */
|
|
17885
17886
|
get url() {
|
|
17886
|
-
return
|
|
17887
|
+
return (0, import_node_url.format)(this[INTERNALS3].parsedURL);
|
|
17887
17888
|
}
|
|
17888
17889
|
/** @returns {Headers} */
|
|
17889
17890
|
get headers() {
|
|
@@ -18018,13 +18019,13 @@ async function fetch2(url, options_) {
|
|
|
18018
18019
|
resolve2(response2);
|
|
18019
18020
|
return;
|
|
18020
18021
|
}
|
|
18021
|
-
const send = (parsedURL.protocol === "https:" ?
|
|
18022
|
+
const send = (parsedURL.protocol === "https:" ? import_node_https.default : import_node_http2.default).request;
|
|
18022
18023
|
const { signal } = request;
|
|
18023
18024
|
let response = null;
|
|
18024
18025
|
const abort = () => {
|
|
18025
18026
|
const error = new AbortError("The operation was aborted.");
|
|
18026
18027
|
reject(error);
|
|
18027
|
-
if (request.body && request.body instanceof
|
|
18028
|
+
if (request.body && request.body instanceof import_node_stream2.default.Readable) {
|
|
18028
18029
|
request.body.destroy(error);
|
|
18029
18030
|
}
|
|
18030
18031
|
if (!response || !response.body) {
|
|
@@ -18123,7 +18124,7 @@ async function fetch2(url, options_) {
|
|
|
18123
18124
|
requestOptions.headers.delete(name);
|
|
18124
18125
|
}
|
|
18125
18126
|
}
|
|
18126
|
-
if (response_.statusCode !== 303 && request.body && options_.body instanceof
|
|
18127
|
+
if (response_.statusCode !== 303 && request.body && options_.body instanceof import_node_stream2.default.Readable) {
|
|
18127
18128
|
reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect"));
|
|
18128
18129
|
finalize();
|
|
18129
18130
|
return;
|
|
@@ -18150,7 +18151,7 @@ async function fetch2(url, options_) {
|
|
|
18150
18151
|
signal.removeEventListener("abort", abortAndFinalize);
|
|
18151
18152
|
});
|
|
18152
18153
|
}
|
|
18153
|
-
let body =
|
|
18154
|
+
let body = (0, import_node_stream2.pipeline)(response_, new import_node_stream2.PassThrough(), (error) => {
|
|
18154
18155
|
if (error) {
|
|
18155
18156
|
reject(error);
|
|
18156
18157
|
}
|
|
@@ -18174,11 +18175,11 @@ async function fetch2(url, options_) {
|
|
|
18174
18175
|
return;
|
|
18175
18176
|
}
|
|
18176
18177
|
const zlibOptions = {
|
|
18177
|
-
flush:
|
|
18178
|
-
finishFlush:
|
|
18178
|
+
flush: import_node_zlib.default.Z_SYNC_FLUSH,
|
|
18179
|
+
finishFlush: import_node_zlib.default.Z_SYNC_FLUSH
|
|
18179
18180
|
};
|
|
18180
18181
|
if (codings === "gzip" || codings === "x-gzip") {
|
|
18181
|
-
body =
|
|
18182
|
+
body = (0, import_node_stream2.pipeline)(body, import_node_zlib.default.createGunzip(zlibOptions), (error) => {
|
|
18182
18183
|
if (error) {
|
|
18183
18184
|
reject(error);
|
|
18184
18185
|
}
|
|
@@ -18188,20 +18189,20 @@ async function fetch2(url, options_) {
|
|
|
18188
18189
|
return;
|
|
18189
18190
|
}
|
|
18190
18191
|
if (codings === "deflate" || codings === "x-deflate") {
|
|
18191
|
-
const raw =
|
|
18192
|
+
const raw = (0, import_node_stream2.pipeline)(response_, new import_node_stream2.PassThrough(), (error) => {
|
|
18192
18193
|
if (error) {
|
|
18193
18194
|
reject(error);
|
|
18194
18195
|
}
|
|
18195
18196
|
});
|
|
18196
18197
|
raw.once("data", (chunk) => {
|
|
18197
18198
|
if ((chunk[0] & 15) === 8) {
|
|
18198
|
-
body =
|
|
18199
|
+
body = (0, import_node_stream2.pipeline)(body, import_node_zlib.default.createInflate(), (error) => {
|
|
18199
18200
|
if (error) {
|
|
18200
18201
|
reject(error);
|
|
18201
18202
|
}
|
|
18202
18203
|
});
|
|
18203
18204
|
} else {
|
|
18204
|
-
body =
|
|
18205
|
+
body = (0, import_node_stream2.pipeline)(body, import_node_zlib.default.createInflateRaw(), (error) => {
|
|
18205
18206
|
if (error) {
|
|
18206
18207
|
reject(error);
|
|
18207
18208
|
}
|
|
@@ -18219,7 +18220,7 @@ async function fetch2(url, options_) {
|
|
|
18219
18220
|
return;
|
|
18220
18221
|
}
|
|
18221
18222
|
if (codings === "br") {
|
|
18222
|
-
body =
|
|
18223
|
+
body = (0, import_node_stream2.pipeline)(body, import_node_zlib.default.createBrotliDecompress(), (error) => {
|
|
18223
18224
|
if (error) {
|
|
18224
18225
|
reject(error);
|
|
18225
18226
|
}
|
|
@@ -18235,7 +18236,7 @@ async function fetch2(url, options_) {
|
|
|
18235
18236
|
});
|
|
18236
18237
|
}
|
|
18237
18238
|
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
18238
|
-
const LAST_CHUNK =
|
|
18239
|
+
const LAST_CHUNK = import_node_buffer2.Buffer.from("0\r\n\r\n");
|
|
18239
18240
|
let isChunkedTransfer = false;
|
|
18240
18241
|
let properLastChunkReceived = false;
|
|
18241
18242
|
let previousChunk;
|
|
@@ -18252,9 +18253,9 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
|
18252
18253
|
}
|
|
18253
18254
|
};
|
|
18254
18255
|
const onData = (buf) => {
|
|
18255
|
-
properLastChunkReceived =
|
|
18256
|
+
properLastChunkReceived = import_node_buffer2.Buffer.compare(buf.slice(-5), LAST_CHUNK) === 0;
|
|
18256
18257
|
if (!properLastChunkReceived && previousChunk) {
|
|
18257
|
-
properLastChunkReceived =
|
|
18258
|
+
properLastChunkReceived = import_node_buffer2.Buffer.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && import_node_buffer2.Buffer.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
|
|
18258
18259
|
}
|
|
18259
18260
|
previousChunk = buf;
|
|
18260
18261
|
};
|
|
@@ -18277,20 +18278,20 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
18277
18278
|
}
|
|
18278
18279
|
|
|
18279
18280
|
// node_modules/uuid/dist/esm/rng.js
|
|
18280
|
-
|
|
18281
|
+
var import_crypto = require("crypto");
|
|
18281
18282
|
var rnds8Pool = new Uint8Array(256);
|
|
18282
18283
|
var poolPtr = rnds8Pool.length;
|
|
18283
18284
|
function rng() {
|
|
18284
18285
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
18285
|
-
randomFillSync(rnds8Pool);
|
|
18286
|
+
(0, import_crypto.randomFillSync)(rnds8Pool);
|
|
18286
18287
|
poolPtr = 0;
|
|
18287
18288
|
}
|
|
18288
18289
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
18289
18290
|
}
|
|
18290
18291
|
|
|
18291
18292
|
// node_modules/uuid/dist/esm/native.js
|
|
18292
|
-
|
|
18293
|
-
var native_default = { randomUUID };
|
|
18293
|
+
var import_crypto2 = require("crypto");
|
|
18294
|
+
var native_default = { randomUUID: import_crypto2.randomUUID };
|
|
18294
18295
|
|
|
18295
18296
|
// node_modules/uuid/dist/esm/v4.js
|
|
18296
18297
|
function v4(options, buf, offset) {
|
|
@@ -18347,36 +18348,36 @@ var JsonRpcClient = class {
|
|
|
18347
18348
|
var rpcClient = new JsonRpcClient(DEFAULT_JSON_RPC_URL);
|
|
18348
18349
|
|
|
18349
18350
|
// src/lib/config/ConfigFileManager.ts
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18351
|
+
var import_path = __toESM(require("path"), 1);
|
|
18352
|
+
var import_os = __toESM(require("os"), 1);
|
|
18353
|
+
var import_fs = __toESM(require("fs"), 1);
|
|
18353
18354
|
var ConfigFileManager = class {
|
|
18354
18355
|
constructor(baseFolder = ".genlayer/", configFileName = "genlayer-config.json") {
|
|
18355
18356
|
__publicField(this, "folderPath");
|
|
18356
18357
|
__publicField(this, "configFilePath");
|
|
18357
|
-
this.folderPath =
|
|
18358
|
-
this.configFilePath =
|
|
18358
|
+
this.folderPath = import_path.default.resolve(import_os.default.homedir(), baseFolder);
|
|
18359
|
+
this.configFilePath = import_path.default.resolve(this.folderPath, configFileName);
|
|
18359
18360
|
this.ensureFolderExists();
|
|
18360
18361
|
this.ensureConfigFileExists();
|
|
18361
18362
|
}
|
|
18362
18363
|
ensureFolderExists() {
|
|
18363
|
-
if (!
|
|
18364
|
-
|
|
18364
|
+
if (!import_fs.default.existsSync(this.folderPath)) {
|
|
18365
|
+
import_fs.default.mkdirSync(this.folderPath, { recursive: true });
|
|
18365
18366
|
}
|
|
18366
18367
|
}
|
|
18367
18368
|
ensureConfigFileExists() {
|
|
18368
|
-
if (!
|
|
18369
|
-
|
|
18369
|
+
if (!import_fs.default.existsSync(this.configFilePath)) {
|
|
18370
|
+
import_fs.default.writeFileSync(this.configFilePath, JSON.stringify({}, null, 2));
|
|
18370
18371
|
}
|
|
18371
18372
|
}
|
|
18372
18373
|
getFolderPath() {
|
|
18373
18374
|
return this.folderPath;
|
|
18374
18375
|
}
|
|
18375
18376
|
getFilePath(fileName) {
|
|
18376
|
-
return
|
|
18377
|
+
return import_path.default.resolve(this.folderPath, fileName);
|
|
18377
18378
|
}
|
|
18378
18379
|
getConfig() {
|
|
18379
|
-
const configContent =
|
|
18380
|
+
const configContent = import_fs.default.readFileSync(this.configFilePath, "utf-8");
|
|
18380
18381
|
return JSON.parse(configContent);
|
|
18381
18382
|
}
|
|
18382
18383
|
getConfigByKey(key) {
|
|
@@ -18386,12 +18387,12 @@ var ConfigFileManager = class {
|
|
|
18386
18387
|
writeConfig(key, value) {
|
|
18387
18388
|
const config = this.getConfig();
|
|
18388
18389
|
config[key] = value;
|
|
18389
|
-
|
|
18390
|
+
import_fs.default.writeFileSync(this.configFilePath, JSON.stringify(config, null, 2));
|
|
18390
18391
|
}
|
|
18391
18392
|
};
|
|
18392
18393
|
|
|
18393
18394
|
// node_modules/ora/index.js
|
|
18394
|
-
|
|
18395
|
+
var import_node_process7 = __toESM(require("node:process"), 1);
|
|
18395
18396
|
|
|
18396
18397
|
// node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
18397
18398
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
@@ -18580,16 +18581,16 @@ var ansiStyles = assembleStyles();
|
|
|
18580
18581
|
var ansi_styles_default = ansiStyles;
|
|
18581
18582
|
|
|
18582
18583
|
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args :
|
|
18584
|
+
var import_node_process = __toESM(require("node:process"), 1);
|
|
18585
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
18586
|
+
var import_node_tty = __toESM(require("node:tty"), 1);
|
|
18587
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
18587
18588
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
18588
18589
|
const position = argv.indexOf(prefix + flag);
|
|
18589
18590
|
const terminatorPosition = argv.indexOf("--");
|
|
18590
18591
|
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
18591
18592
|
}
|
|
18592
|
-
var { env } =
|
|
18593
|
+
var { env } = import_node_process.default;
|
|
18593
18594
|
var flagForceColor;
|
|
18594
18595
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
18595
18596
|
flagForceColor = 0;
|
|
@@ -18645,8 +18646,8 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
18645
18646
|
if (env.TERM === "dumb") {
|
|
18646
18647
|
return min;
|
|
18647
18648
|
}
|
|
18648
|
-
if (
|
|
18649
|
-
const osRelease =
|
|
18649
|
+
if (import_node_process.default.platform === "win32") {
|
|
18650
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
18650
18651
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
18651
18652
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
18652
18653
|
}
|
|
@@ -18700,8 +18701,8 @@ function createSupportsColor(stream, options = {}) {
|
|
|
18700
18701
|
return translateLevel(level);
|
|
18701
18702
|
}
|
|
18702
18703
|
var supportsColor = {
|
|
18703
|
-
stdout: createSupportsColor({ isTTY:
|
|
18704
|
-
stderr: createSupportsColor({ isTTY:
|
|
18704
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
18705
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
18705
18706
|
};
|
|
18706
18707
|
var supports_color_default = supportsColor;
|
|
18707
18708
|
|
|
@@ -18883,10 +18884,10 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
|
18883
18884
|
var source_default = chalk;
|
|
18884
18885
|
|
|
18885
18886
|
// node_modules/cli-cursor/index.js
|
|
18886
|
-
|
|
18887
|
+
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
18887
18888
|
|
|
18888
18889
|
// node_modules/restore-cursor/index.js
|
|
18889
|
-
|
|
18890
|
+
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
18890
18891
|
|
|
18891
18892
|
// node_modules/mimic-function/index.js
|
|
18892
18893
|
var copyProperty = (to, from5, property, ignoreNonConfigurable) => {
|
|
@@ -19227,7 +19228,7 @@ var {
|
|
|
19227
19228
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
19228
19229
|
|
|
19229
19230
|
// node_modules/restore-cursor/index.js
|
|
19230
|
-
var terminal =
|
|
19231
|
+
var terminal = import_node_process2.default.stderr.isTTY ? import_node_process2.default.stderr : import_node_process2.default.stdout.isTTY ? import_node_process2.default.stdout : void 0;
|
|
19231
19232
|
var restoreCursor = terminal ? onetime_default(() => {
|
|
19232
19233
|
onExit(() => {
|
|
19233
19234
|
terminal.write("\x1B[?25h");
|
|
@@ -19239,14 +19240,14 @@ var restore_cursor_default = restoreCursor;
|
|
|
19239
19240
|
// node_modules/cli-cursor/index.js
|
|
19240
19241
|
var isHidden = false;
|
|
19241
19242
|
var cliCursor = {};
|
|
19242
|
-
cliCursor.show = (writableStream =
|
|
19243
|
+
cliCursor.show = (writableStream = import_node_process3.default.stderr) => {
|
|
19243
19244
|
if (!writableStream.isTTY) {
|
|
19244
19245
|
return;
|
|
19245
19246
|
}
|
|
19246
19247
|
isHidden = false;
|
|
19247
19248
|
writableStream.write("\x1B[?25h");
|
|
19248
19249
|
};
|
|
19249
|
-
cliCursor.hide = (writableStream =
|
|
19250
|
+
cliCursor.hide = (writableStream = import_node_process3.default.stderr) => {
|
|
19250
19251
|
if (!writableStream.isTTY) {
|
|
19251
19252
|
return;
|
|
19252
19253
|
}
|
|
@@ -19270,12 +19271,12 @@ var cli_cursor_default = cliCursor;
|
|
|
19270
19271
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
19271
19272
|
|
|
19272
19273
|
// node_modules/log-symbols/node_modules/is-unicode-supported/index.js
|
|
19273
|
-
|
|
19274
|
+
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
19274
19275
|
function isUnicodeSupported() {
|
|
19275
|
-
if (
|
|
19276
|
-
return
|
|
19276
|
+
if (import_node_process4.default.platform !== "win32") {
|
|
19277
|
+
return import_node_process4.default.env.TERM !== "linux";
|
|
19277
19278
|
}
|
|
19278
|
-
return Boolean(
|
|
19279
|
+
return Boolean(import_node_process4.default.env.CI) || Boolean(import_node_process4.default.env.WT_SESSION) || Boolean(import_node_process4.default.env.TERMINUS_SUBLIME) || import_node_process4.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process4.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process4.default.env.TERM_PROGRAM === "vscode" || import_node_process4.default.env.TERM === "xterm-256color" || import_node_process4.default.env.TERM === "alacritty" || import_node_process4.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
19279
19280
|
}
|
|
19280
19281
|
|
|
19281
19282
|
// node_modules/log-symbols/index.js
|
|
@@ -19395,18 +19396,18 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
19395
19396
|
}
|
|
19396
19397
|
|
|
19397
19398
|
// node_modules/is-unicode-supported/index.js
|
|
19398
|
-
|
|
19399
|
+
var import_node_process5 = __toESM(require("node:process"), 1);
|
|
19399
19400
|
function isUnicodeSupported2() {
|
|
19400
|
-
const { env: env2 } =
|
|
19401
|
+
const { env: env2 } = import_node_process5.default;
|
|
19401
19402
|
const { TERM, TERM_PROGRAM } = env2;
|
|
19402
|
-
if (
|
|
19403
|
+
if (import_node_process5.default.platform !== "win32") {
|
|
19403
19404
|
return TERM !== "linux";
|
|
19404
19405
|
}
|
|
19405
19406
|
return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
19406
19407
|
}
|
|
19407
19408
|
|
|
19408
19409
|
// node_modules/stdin-discarder/index.js
|
|
19409
|
-
|
|
19410
|
+
var import_node_process6 = __toESM(require("node:process"), 1);
|
|
19410
19411
|
var ASCII_ETX_CODE = 3;
|
|
19411
19412
|
var _activeCount, _StdinDiscarder_instances, realStart_fn, realStop_fn, handleInput_fn;
|
|
19412
19413
|
var StdinDiscarder = class {
|
|
@@ -19433,24 +19434,24 @@ var StdinDiscarder = class {
|
|
|
19433
19434
|
_activeCount = new WeakMap();
|
|
19434
19435
|
_StdinDiscarder_instances = new WeakSet();
|
|
19435
19436
|
realStart_fn = function() {
|
|
19436
|
-
if (
|
|
19437
|
+
if (import_node_process6.default.platform === "win32" || !import_node_process6.default.stdin.isTTY) {
|
|
19437
19438
|
return;
|
|
19438
19439
|
}
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19440
|
+
import_node_process6.default.stdin.setRawMode(true);
|
|
19441
|
+
import_node_process6.default.stdin.on("data", __privateMethod(this, _StdinDiscarder_instances, handleInput_fn));
|
|
19442
|
+
import_node_process6.default.stdin.resume();
|
|
19442
19443
|
};
|
|
19443
19444
|
realStop_fn = function() {
|
|
19444
|
-
if (!
|
|
19445
|
+
if (!import_node_process6.default.stdin.isTTY) {
|
|
19445
19446
|
return;
|
|
19446
19447
|
}
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19448
|
+
import_node_process6.default.stdin.off("data", __privateMethod(this, _StdinDiscarder_instances, handleInput_fn));
|
|
19449
|
+
import_node_process6.default.stdin.pause();
|
|
19450
|
+
import_node_process6.default.stdin.setRawMode(false);
|
|
19450
19451
|
};
|
|
19451
19452
|
handleInput_fn = function(chunk) {
|
|
19452
19453
|
if (chunk[0] === ASCII_ETX_CODE) {
|
|
19453
|
-
|
|
19454
|
+
import_node_process6.default.emit("SIGINT");
|
|
19454
19455
|
}
|
|
19455
19456
|
};
|
|
19456
19457
|
var stdinDiscarder = new StdinDiscarder();
|
|
@@ -19486,7 +19487,7 @@ var Ora = class {
|
|
|
19486
19487
|
}
|
|
19487
19488
|
__privateSet(this, _options, {
|
|
19488
19489
|
color: "cyan",
|
|
19489
|
-
stream:
|
|
19490
|
+
stream: import_node_process7.default.stderr,
|
|
19490
19491
|
discardStdin: true,
|
|
19491
19492
|
hideCursor: true,
|
|
19492
19493
|
...options
|
|
@@ -19501,7 +19502,7 @@ var Ora = class {
|
|
|
19501
19502
|
this.prefixText = __privateGet(this, _options).prefixText;
|
|
19502
19503
|
this.suffixText = __privateGet(this, _options).suffixText;
|
|
19503
19504
|
this.indent = __privateGet(this, _options).indent;
|
|
19504
|
-
if (
|
|
19505
|
+
if (import_node_process7.default.env.NODE_ENV === "test") {
|
|
19505
19506
|
this._stream = __privateGet(this, _stream);
|
|
19506
19507
|
this._isEnabled = __privateGet(this, _isEnabled);
|
|
19507
19508
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -19663,7 +19664,7 @@ var Ora = class {
|
|
|
19663
19664
|
if (__privateGet(this, _options).hideCursor) {
|
|
19664
19665
|
cli_cursor_default.hide(__privateGet(this, _stream));
|
|
19665
19666
|
}
|
|
19666
|
-
if (__privateGet(this, _options).discardStdin &&
|
|
19667
|
+
if (__privateGet(this, _options).discardStdin && import_node_process7.default.stdin.isTTY) {
|
|
19667
19668
|
__privateSet(this, _isDiscardingStdin, true);
|
|
19668
19669
|
stdin_discarder_default.start();
|
|
19669
19670
|
}
|
|
@@ -19682,7 +19683,7 @@ var Ora = class {
|
|
|
19682
19683
|
if (__privateGet(this, _options).hideCursor) {
|
|
19683
19684
|
cli_cursor_default.show(__privateGet(this, _stream));
|
|
19684
19685
|
}
|
|
19685
|
-
if (__privateGet(this, _options).discardStdin &&
|
|
19686
|
+
if (__privateGet(this, _options).discardStdin && import_node_process7.default.stdin.isTTY && __privateGet(this, _isDiscardingStdin)) {
|
|
19686
19687
|
stdin_discarder_default.stop();
|
|
19687
19688
|
__privateSet(this, _isDiscardingStdin, false);
|
|
19688
19689
|
}
|
|
@@ -19768,7 +19769,7 @@ function ora(options) {
|
|
|
19768
19769
|
}
|
|
19769
19770
|
|
|
19770
19771
|
// src/lib/actions/BaseAction.ts
|
|
19771
|
-
|
|
19772
|
+
var import_inquirer = __toESM(require("inquirer"), 1);
|
|
19772
19773
|
var BaseAction = class extends ConfigFileManager {
|
|
19773
19774
|
constructor() {
|
|
19774
19775
|
super();
|
|
@@ -19776,7 +19777,7 @@ var BaseAction = class extends ConfigFileManager {
|
|
|
19776
19777
|
this.spinner = ora({ text: "", spinner: "dots" });
|
|
19777
19778
|
}
|
|
19778
19779
|
async confirmPrompt(message) {
|
|
19779
|
-
const answer = await
|
|
19780
|
+
const answer = await import_inquirer.default.prompt([
|
|
19780
19781
|
{
|
|
19781
19782
|
type: "confirm",
|
|
19782
19783
|
name: "confirmAction",
|
|
@@ -19850,7 +19851,7 @@ var OllamaAction = class extends BaseAction {
|
|
|
19850
19851
|
constructor() {
|
|
19851
19852
|
super();
|
|
19852
19853
|
__publicField(this, "docker");
|
|
19853
|
-
this.docker = new
|
|
19854
|
+
this.docker = new import_dockerode.default();
|
|
19854
19855
|
}
|
|
19855
19856
|
async updateModel(modelName) {
|
|
19856
19857
|
try {
|
|
@@ -19931,40 +19932,40 @@ var OllamaAction = class extends BaseAction {
|
|
|
19931
19932
|
};
|
|
19932
19933
|
|
|
19933
19934
|
// src/lib/services/simulator.ts
|
|
19935
|
+
var import_dockerode2 = __toESM(require("dockerode"), 1);
|
|
19936
|
+
var fs7 = __toESM(require("fs"), 1);
|
|
19937
|
+
var dotenv = __toESM(require("dotenv"), 1);
|
|
19938
|
+
var path3 = __toESM(require("path"), 1);
|
|
19934
19939
|
var semver = __toESM(require_semver2(), 1);
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
import * as dotenv from "dotenv";
|
|
19938
|
-
import * as path3 from "path";
|
|
19939
|
-
import updateCheck from "update-check";
|
|
19940
|
-
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
19940
|
+
var import_update_check = __toESM(require("update-check"), 1);
|
|
19941
|
+
var import_url = require("url");
|
|
19941
19942
|
|
|
19942
19943
|
// src/lib/clients/system.ts
|
|
19943
|
-
|
|
19944
|
-
|
|
19944
|
+
var import_node_util8 = __toESM(require("node:util"), 1);
|
|
19945
|
+
var import_child_process = require("child_process");
|
|
19945
19946
|
|
|
19946
19947
|
// node_modules/open/index.js
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19948
|
+
var import_node_process12 = __toESM(require("node:process"), 1);
|
|
19949
|
+
var import_node_buffer3 = require("node:buffer");
|
|
19950
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
19951
|
+
var import_node_url2 = require("node:url");
|
|
19952
|
+
var import_node_child_process5 = __toESM(require("node:child_process"), 1);
|
|
19953
|
+
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
19953
19954
|
|
|
19954
19955
|
// node_modules/is-wsl/index.js
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19956
|
+
var import_node_process8 = __toESM(require("node:process"), 1);
|
|
19957
|
+
var import_node_os2 = __toESM(require("node:os"), 1);
|
|
19958
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
19958
19959
|
|
|
19959
19960
|
// node_modules/is-inside-container/index.js
|
|
19960
|
-
|
|
19961
|
+
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
19961
19962
|
|
|
19962
19963
|
// node_modules/is-docker/index.js
|
|
19963
|
-
|
|
19964
|
+
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
19964
19965
|
var isDockerCached;
|
|
19965
19966
|
function hasDockerEnv() {
|
|
19966
19967
|
try {
|
|
19967
|
-
|
|
19968
|
+
import_node_fs2.default.statSync("/.dockerenv");
|
|
19968
19969
|
return true;
|
|
19969
19970
|
} catch {
|
|
19970
19971
|
return false;
|
|
@@ -19972,7 +19973,7 @@ function hasDockerEnv() {
|
|
|
19972
19973
|
}
|
|
19973
19974
|
function hasDockerCGroup() {
|
|
19974
19975
|
try {
|
|
19975
|
-
return
|
|
19976
|
+
return import_node_fs2.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
19976
19977
|
} catch {
|
|
19977
19978
|
return false;
|
|
19978
19979
|
}
|
|
@@ -19988,7 +19989,7 @@ function isDocker() {
|
|
|
19988
19989
|
var cachedResult;
|
|
19989
19990
|
var hasContainerEnv = () => {
|
|
19990
19991
|
try {
|
|
19991
|
-
|
|
19992
|
+
import_node_fs3.default.statSync("/run/.containerenv");
|
|
19992
19993
|
return true;
|
|
19993
19994
|
} catch {
|
|
19994
19995
|
return false;
|
|
@@ -20003,22 +20004,22 @@ function isInsideContainer() {
|
|
|
20003
20004
|
|
|
20004
20005
|
// node_modules/is-wsl/index.js
|
|
20005
20006
|
var isWsl = () => {
|
|
20006
|
-
if (
|
|
20007
|
+
if (import_node_process8.default.platform !== "linux") {
|
|
20007
20008
|
return false;
|
|
20008
20009
|
}
|
|
20009
|
-
if (
|
|
20010
|
+
if (import_node_os2.default.release().toLowerCase().includes("microsoft")) {
|
|
20010
20011
|
if (isInsideContainer()) {
|
|
20011
20012
|
return false;
|
|
20012
20013
|
}
|
|
20013
20014
|
return true;
|
|
20014
20015
|
}
|
|
20015
20016
|
try {
|
|
20016
|
-
return
|
|
20017
|
+
return import_node_fs4.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
20017
20018
|
} catch {
|
|
20018
20019
|
return false;
|
|
20019
20020
|
}
|
|
20020
20021
|
};
|
|
20021
|
-
var is_wsl_default =
|
|
20022
|
+
var is_wsl_default = import_node_process8.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
20022
20023
|
|
|
20023
20024
|
// node_modules/define-lazy-prop/index.js
|
|
20024
20025
|
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
@@ -20039,17 +20040,17 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
20039
20040
|
}
|
|
20040
20041
|
|
|
20041
20042
|
// node_modules/default-browser/index.js
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
|
|
20043
|
+
var import_node_util7 = require("node:util");
|
|
20044
|
+
var import_node_process11 = __toESM(require("node:process"), 1);
|
|
20045
|
+
var import_node_child_process4 = require("node:child_process");
|
|
20045
20046
|
|
|
20046
20047
|
// node_modules/default-browser-id/index.js
|
|
20047
|
-
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
var execFileAsync =
|
|
20048
|
+
var import_node_util4 = require("node:util");
|
|
20049
|
+
var import_node_process9 = __toESM(require("node:process"), 1);
|
|
20050
|
+
var import_node_child_process = require("node:child_process");
|
|
20051
|
+
var execFileAsync = (0, import_node_util4.promisify)(import_node_child_process.execFile);
|
|
20051
20052
|
async function defaultBrowserId() {
|
|
20052
|
-
if (
|
|
20053
|
+
if (import_node_process9.default.platform !== "darwin") {
|
|
20053
20054
|
throw new Error("macOS only");
|
|
20054
20055
|
}
|
|
20055
20056
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
@@ -20058,12 +20059,12 @@ async function defaultBrowserId() {
|
|
|
20058
20059
|
}
|
|
20059
20060
|
|
|
20060
20061
|
// node_modules/run-applescript/index.js
|
|
20061
|
-
|
|
20062
|
-
|
|
20063
|
-
|
|
20064
|
-
var execFileAsync2 =
|
|
20062
|
+
var import_node_process10 = __toESM(require("node:process"), 1);
|
|
20063
|
+
var import_node_util5 = require("node:util");
|
|
20064
|
+
var import_node_child_process2 = require("node:child_process");
|
|
20065
|
+
var execFileAsync2 = (0, import_node_util5.promisify)(import_node_child_process2.execFile);
|
|
20065
20066
|
async function runAppleScript(script, { humanReadableOutput = true } = {}) {
|
|
20066
|
-
if (
|
|
20067
|
+
if (import_node_process10.default.platform !== "darwin") {
|
|
20067
20068
|
throw new Error("macOS only");
|
|
20068
20069
|
}
|
|
20069
20070
|
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
@@ -20078,9 +20079,9 @@ tell application "System Events" to get value of property list item "CFBundleNam
|
|
|
20078
20079
|
}
|
|
20079
20080
|
|
|
20080
20081
|
// node_modules/default-browser/windows.js
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
var execFileAsync3 =
|
|
20082
|
+
var import_node_util6 = require("node:util");
|
|
20083
|
+
var import_node_child_process3 = require("node:child_process");
|
|
20084
|
+
var execFileAsync3 = (0, import_node_util6.promisify)(import_node_child_process3.execFile);
|
|
20084
20085
|
var windowsBrowserProgIds = {
|
|
20085
20086
|
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
20086
20087
|
MSEdgeDHTML: { name: "Edge", id: "com.microsoft.edge" },
|
|
@@ -20116,30 +20117,30 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
20116
20117
|
}
|
|
20117
20118
|
|
|
20118
20119
|
// node_modules/default-browser/index.js
|
|
20119
|
-
var execFileAsync4 =
|
|
20120
|
+
var execFileAsync4 = (0, import_node_util7.promisify)(import_node_child_process4.execFile);
|
|
20120
20121
|
var titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x2) => x2.toUpperCase());
|
|
20121
20122
|
async function defaultBrowser2() {
|
|
20122
|
-
if (
|
|
20123
|
+
if (import_node_process11.default.platform === "darwin") {
|
|
20123
20124
|
const id = await defaultBrowserId();
|
|
20124
20125
|
const name = await bundleName(id);
|
|
20125
20126
|
return { name, id };
|
|
20126
20127
|
}
|
|
20127
|
-
if (
|
|
20128
|
+
if (import_node_process11.default.platform === "linux") {
|
|
20128
20129
|
const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
|
|
20129
20130
|
const id = stdout.trim();
|
|
20130
20131
|
const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
|
|
20131
20132
|
return { name, id };
|
|
20132
20133
|
}
|
|
20133
|
-
if (
|
|
20134
|
+
if (import_node_process11.default.platform === "win32") {
|
|
20134
20135
|
return defaultBrowser();
|
|
20135
20136
|
}
|
|
20136
20137
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
20137
20138
|
}
|
|
20138
20139
|
|
|
20139
20140
|
// node_modules/open/index.js
|
|
20140
|
-
var __dirname =
|
|
20141
|
-
var localXdgOpenPath =
|
|
20142
|
-
var { platform, arch } =
|
|
20141
|
+
var __dirname = import_node_path.default.dirname((0, import_node_url2.fileURLToPath)(_importMetaUrl));
|
|
20142
|
+
var localXdgOpenPath = import_node_path.default.join(__dirname, "xdg-open");
|
|
20143
|
+
var { platform, arch } = import_node_process12.default;
|
|
20143
20144
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
20144
20145
|
const defaultMountPoint = "/mnt/";
|
|
20145
20146
|
let mountPoint;
|
|
@@ -20150,14 +20151,14 @@ var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
|
20150
20151
|
const configFilePath = "/etc/wsl.conf";
|
|
20151
20152
|
let isConfigFileExists = false;
|
|
20152
20153
|
try {
|
|
20153
|
-
await
|
|
20154
|
+
await import_promises.default.access(configFilePath, import_promises.constants.F_OK);
|
|
20154
20155
|
isConfigFileExists = true;
|
|
20155
20156
|
} catch {
|
|
20156
20157
|
}
|
|
20157
20158
|
if (!isConfigFileExists) {
|
|
20158
20159
|
return defaultMountPoint;
|
|
20159
20160
|
}
|
|
20160
|
-
const configContent = await
|
|
20161
|
+
const configContent = await import_promises.default.readFile(configFilePath, { encoding: "utf8" });
|
|
20161
20162
|
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
20162
20163
|
if (!configMountPoint) {
|
|
20163
20164
|
return defaultMountPoint;
|
|
@@ -20253,7 +20254,7 @@ var baseOpen = async (options) => {
|
|
|
20253
20254
|
}
|
|
20254
20255
|
} else if (platform === "win32" || is_wsl_default && !isInsideContainer() && !app) {
|
|
20255
20256
|
const mountPoint = await getWslDrivesMountPoint();
|
|
20256
|
-
command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${
|
|
20257
|
+
command = is_wsl_default ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${import_node_process12.default.env.SYSTEMROOT || import_node_process12.default.env.windir || "C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
20257
20258
|
cliArguments.push(
|
|
20258
20259
|
"-NoProfile",
|
|
20259
20260
|
"-NonInteractive",
|
|
@@ -20280,7 +20281,7 @@ var baseOpen = async (options) => {
|
|
|
20280
20281
|
appArguments = appArguments.map((argument) => `"\`"${argument}\`""`);
|
|
20281
20282
|
encodedArguments.push("-ArgumentList", appArguments.join(","));
|
|
20282
20283
|
}
|
|
20283
|
-
options.target =
|
|
20284
|
+
options.target = import_node_buffer3.Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
|
|
20284
20285
|
} else {
|
|
20285
20286
|
if (app) {
|
|
20286
20287
|
command = app;
|
|
@@ -20288,11 +20289,11 @@ var baseOpen = async (options) => {
|
|
|
20288
20289
|
const isBundled = !__dirname || __dirname === "/";
|
|
20289
20290
|
let exeLocalXdgOpen = false;
|
|
20290
20291
|
try {
|
|
20291
|
-
await
|
|
20292
|
+
await import_promises.default.access(localXdgOpenPath, import_promises.constants.X_OK);
|
|
20292
20293
|
exeLocalXdgOpen = true;
|
|
20293
20294
|
} catch {
|
|
20294
20295
|
}
|
|
20295
|
-
const useSystemXdgOpen =
|
|
20296
|
+
const useSystemXdgOpen = import_node_process12.default.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen);
|
|
20296
20297
|
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
20297
20298
|
}
|
|
20298
20299
|
if (appArguments.length > 0) {
|
|
@@ -20309,7 +20310,7 @@ var baseOpen = async (options) => {
|
|
|
20309
20310
|
if (options.target) {
|
|
20310
20311
|
cliArguments.push(options.target);
|
|
20311
20312
|
}
|
|
20312
|
-
const subprocess =
|
|
20313
|
+
const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
|
|
20313
20314
|
if (options.wait) {
|
|
20314
20315
|
return new Promise((resolve2, reject) => {
|
|
20315
20316
|
subprocess.once("error", reject);
|
|
@@ -20395,7 +20396,7 @@ var MissingRequirementError = class extends Error {
|
|
|
20395
20396
|
// src/lib/clients/system.ts
|
|
20396
20397
|
async function checkCommand(command, toolName) {
|
|
20397
20398
|
try {
|
|
20398
|
-
await
|
|
20399
|
+
await import_node_util8.default.promisify(import_child_process.exec)(command);
|
|
20399
20400
|
} catch (error) {
|
|
20400
20401
|
if (error.stderr) {
|
|
20401
20402
|
throw new MissingRequirementError(toolName);
|
|
@@ -20406,7 +20407,7 @@ async function executeCommand(cmdsByPlatform, toolName) {
|
|
|
20406
20407
|
const runningPlatform = getPlatform();
|
|
20407
20408
|
const command = cmdsByPlatform[runningPlatform];
|
|
20408
20409
|
try {
|
|
20409
|
-
return await
|
|
20410
|
+
return await import_node_util8.default.promisify(import_child_process.exec)(command);
|
|
20410
20411
|
} catch (error) {
|
|
20411
20412
|
throw new Error(`Error executing ${toolName || command}: ${error.message}.`);
|
|
20412
20413
|
}
|
|
@@ -20423,7 +20424,7 @@ function openUrl(url) {
|
|
|
20423
20424
|
}
|
|
20424
20425
|
async function getVersion(toolName) {
|
|
20425
20426
|
try {
|
|
20426
|
-
const toolResponse = await
|
|
20427
|
+
const toolResponse = await import_node_util8.default.promisify(import_child_process.exec)(`${toolName} --version`);
|
|
20427
20428
|
if (toolResponse.stderr) {
|
|
20428
20429
|
throw new Error(toolResponse.stderr);
|
|
20429
20430
|
}
|
|
@@ -20460,10 +20461,10 @@ var SimulatorService = class {
|
|
|
20460
20461
|
__publicField(this, "composeOptions");
|
|
20461
20462
|
__publicField(this, "docker");
|
|
20462
20463
|
__publicField(this, "location");
|
|
20463
|
-
const __filename =
|
|
20464
|
+
const __filename = (0, import_url.fileURLToPath)(_importMetaUrl);
|
|
20464
20465
|
this.location = path3.resolve(path3.dirname(__filename), "..");
|
|
20465
20466
|
this.composeOptions = "";
|
|
20466
|
-
this.docker = new
|
|
20467
|
+
this.docker = new import_dockerode2.default();
|
|
20467
20468
|
}
|
|
20468
20469
|
readEnvConfigValue(key) {
|
|
20469
20470
|
const envFilePath = path3.join(this.location, ".env");
|
|
@@ -20509,7 +20510,7 @@ var SimulatorService = class {
|
|
|
20509
20510
|
return this.composeOptions;
|
|
20510
20511
|
}
|
|
20511
20512
|
async checkCliVersion() {
|
|
20512
|
-
const update = await
|
|
20513
|
+
const update = await (0, import_update_check.default)(package_default);
|
|
20513
20514
|
if (update && update.latest !== package_default.version) {
|
|
20514
20515
|
console.warn(`
|
|
20515
20516
|
A new version (${update.latest}) is available! You're using version ${package_default.version}.
|
|
@@ -20720,9 +20721,10 @@ var InitAction = class extends BaseAction {
|
|
|
20720
20721
|
validate: (answer) => answer.length < 1 ? "You must choose at least one option." : true
|
|
20721
20722
|
}
|
|
20722
20723
|
];
|
|
20723
|
-
const llmProvidersAnswer = await
|
|
20724
|
+
const llmProvidersAnswer = await import_inquirer2.default.prompt(llmQuestions);
|
|
20724
20725
|
const selectedLlmProviders = llmProvidersAnswer.selectedLlmProviders;
|
|
20725
20726
|
let defaultOllamaModel = this.getConfig().defaultOllamaModel;
|
|
20727
|
+
AI_PROVIDERS_CONFIG.ollama.hint = `(This will download and run a local instance of ${defaultOllamaModel})`;
|
|
20726
20728
|
const aiProvidersEnvVars = {};
|
|
20727
20729
|
const configurableAiProviders = selectedLlmProviders.filter(
|
|
20728
20730
|
(provider) => AI_PROVIDERS_CONFIG[provider].envVar
|
|
@@ -20737,7 +20739,7 @@ var InitAction = class extends BaseAction {
|
|
|
20737
20739
|
validate: (value) => value.length ? true : `Please enter a valid API Key for ${providerConfig.name}.`
|
|
20738
20740
|
}
|
|
20739
20741
|
];
|
|
20740
|
-
const apiKeyAnswer = await
|
|
20742
|
+
const apiKeyAnswer = await import_inquirer2.default.prompt(keyQuestion);
|
|
20741
20743
|
aiProvidersEnvVars[providerConfig.envVar] = apiKeyAnswer[providerConfig.cliOptionValue];
|
|
20742
20744
|
}
|
|
20743
20745
|
this.startSpinner("Configuring GenLayer Localnet environment...");
|
|
@@ -20793,7 +20795,7 @@ var InitAction = class extends BaseAction {
|
|
|
20793
20795
|
};
|
|
20794
20796
|
|
|
20795
20797
|
// src/commands/general/start.ts
|
|
20796
|
-
|
|
20798
|
+
var import_inquirer3 = __toESM(require("inquirer"), 1);
|
|
20797
20799
|
var StartAction = class extends BaseAction {
|
|
20798
20800
|
constructor() {
|
|
20799
20801
|
super();
|
|
@@ -20847,7 +20849,7 @@ var StartAction = class extends BaseAction {
|
|
|
20847
20849
|
validate: (answer) => answer.length < 1 ? "You must choose at least one option." : true
|
|
20848
20850
|
}
|
|
20849
20851
|
];
|
|
20850
|
-
const llmProvidersAnswer = await
|
|
20852
|
+
const llmProvidersAnswer = await import_inquirer3.default.prompt(questions);
|
|
20851
20853
|
await this.simulatorService.createRandomValidators(numValidators, llmProvidersAnswer.selectedLlmProviders);
|
|
20852
20854
|
} catch (error) {
|
|
20853
20855
|
this.failSpinner("Unable to initialize the validators", error);
|
|
@@ -20908,8 +20910,8 @@ function initializeGeneralCommands(program2) {
|
|
|
20908
20910
|
}
|
|
20909
20911
|
|
|
20910
20912
|
// src/commands/keygen/create.ts
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
+
var import_fs2 = require("fs");
|
|
20914
|
+
var import_ethers = require("ethers");
|
|
20913
20915
|
var KeypairCreator = class extends BaseAction {
|
|
20914
20916
|
constructor() {
|
|
20915
20917
|
super();
|
|
@@ -20918,18 +20920,18 @@ var KeypairCreator = class extends BaseAction {
|
|
|
20918
20920
|
try {
|
|
20919
20921
|
this.startSpinner(`Creating keypair...`);
|
|
20920
20922
|
const outputPath = this.getFilePath(options.output);
|
|
20921
|
-
if (existsSync(outputPath) && !options.overwrite) {
|
|
20923
|
+
if ((0, import_fs2.existsSync)(outputPath) && !options.overwrite) {
|
|
20922
20924
|
this.failSpinner(
|
|
20923
20925
|
`The file at ${outputPath} already exists. Use the '--overwrite' option to replace it.`
|
|
20924
20926
|
);
|
|
20925
20927
|
return;
|
|
20926
20928
|
}
|
|
20927
|
-
const wallet = ethers.Wallet.createRandom();
|
|
20929
|
+
const wallet = import_ethers.ethers.Wallet.createRandom();
|
|
20928
20930
|
const keypairData = {
|
|
20929
20931
|
address: wallet.address,
|
|
20930
20932
|
privateKey: wallet.privateKey
|
|
20931
20933
|
};
|
|
20932
|
-
|
|
20934
|
+
(0, import_fs2.writeFileSync)(outputPath, JSON.stringify(keypairData, null, 2));
|
|
20933
20935
|
this.writeConfig("keyPairPath", outputPath);
|
|
20934
20936
|
this.succeedSpinner(`Keypair successfully created and saved to: ${outputPath}`);
|
|
20935
20937
|
} catch (error) {
|
|
@@ -20949,8 +20951,7 @@ function initializeKeygenCommands(program2) {
|
|
|
20949
20951
|
}
|
|
20950
20952
|
|
|
20951
20953
|
// src/commands/contracts/deploy.ts
|
|
20952
|
-
|
|
20953
|
-
import path4 from "path";
|
|
20954
|
+
var import_fs4 = __toESM(require("fs"), 1);
|
|
20954
20955
|
|
|
20955
20956
|
// node_modules/genlayer-js/dist/chunk-MLKGABMK.js
|
|
20956
20957
|
var __defProp2 = Object.defineProperty;
|
|
@@ -27932,17 +27933,6 @@ var CalldataAddress = class {
|
|
|
27932
27933
|
this.bytes = addr;
|
|
27933
27934
|
}
|
|
27934
27935
|
};
|
|
27935
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
27936
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
27937
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
27938
|
-
TransactionStatus2["PROPOSING"] = "PROPOSING";
|
|
27939
|
-
TransactionStatus2["COMMITTING"] = "COMMITTING";
|
|
27940
|
-
TransactionStatus2["REVEALING"] = "REVEALING";
|
|
27941
|
-
TransactionStatus2["ACCEPTED"] = "ACCEPTED";
|
|
27942
|
-
TransactionStatus2["FINALIZED"] = "FINALIZED";
|
|
27943
|
-
TransactionStatus2["UNDETERMINED"] = "UNDETERMINED";
|
|
27944
|
-
return TransactionStatus2;
|
|
27945
|
-
})(TransactionStatus || {});
|
|
27946
27936
|
|
|
27947
27937
|
// node_modules/viem/_esm/accounts/generatePrivateKey.js
|
|
27948
27938
|
init_secp256k1();
|
|
@@ -28686,15 +28676,15 @@ var calldata = calldata_exports;
|
|
|
28686
28676
|
var transactions = transactions_exports;
|
|
28687
28677
|
|
|
28688
28678
|
// src/lib/accounts/getPrivateKey.ts
|
|
28689
|
-
|
|
28679
|
+
var import_fs3 = __toESM(require("fs"), 1);
|
|
28690
28680
|
function getPrivateKey() {
|
|
28691
28681
|
const configFileManager = new ConfigFileManager();
|
|
28692
28682
|
const keypairPath = configFileManager.getConfigByKey("keyPairPath");
|
|
28693
|
-
if (!keypairPath || !
|
|
28683
|
+
if (!keypairPath || !import_fs3.default.existsSync(keypairPath)) {
|
|
28694
28684
|
console.error("Keypair file not found. Please generate or specify a valid keypair path.");
|
|
28695
28685
|
process.exit(1);
|
|
28696
28686
|
}
|
|
28697
|
-
const keypairData = JSON.parse(
|
|
28687
|
+
const keypairData = JSON.parse(import_fs3.default.readFileSync(keypairPath, "utf-8"));
|
|
28698
28688
|
if (!keypairData.privateKey) {
|
|
28699
28689
|
console.error("Invalid keypair file. Private key is missing.");
|
|
28700
28690
|
process.exit(1);
|
|
@@ -28703,13 +28693,9 @@ function getPrivateKey() {
|
|
|
28703
28693
|
}
|
|
28704
28694
|
|
|
28705
28695
|
// src/commands/contracts/deploy.ts
|
|
28706
|
-
|
|
28707
|
-
import { buildSync } from "esbuild";
|
|
28708
|
-
var DeployAction = class extends BaseAction {
|
|
28696
|
+
var DeployAction = class {
|
|
28709
28697
|
constructor() {
|
|
28710
|
-
super();
|
|
28711
28698
|
__publicField(this, "genlayerClient");
|
|
28712
|
-
__publicField(this, "deployDir", path4.resolve(process.cwd(), "deploy"));
|
|
28713
28699
|
this.genlayerClient = createClient2({
|
|
28714
28700
|
chain: simulator,
|
|
28715
28701
|
endpoint: process.env.VITE_JSON_RPC_SERVER_URL,
|
|
@@ -28717,109 +28703,39 @@ var DeployAction = class extends BaseAction {
|
|
|
28717
28703
|
});
|
|
28718
28704
|
}
|
|
28719
28705
|
readContractCode(contractPath) {
|
|
28720
|
-
if (!
|
|
28706
|
+
if (!import_fs4.default.existsSync(contractPath)) {
|
|
28721
28707
|
throw new Error(`Contract file not found: ${contractPath}`);
|
|
28722
28708
|
}
|
|
28723
|
-
return
|
|
28709
|
+
return import_fs4.default.readFileSync(contractPath, "utf-8");
|
|
28724
28710
|
}
|
|
28725
|
-
async
|
|
28726
|
-
const
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
entryPoints: [filePath],
|
|
28731
|
-
outfile: outFile,
|
|
28732
|
-
bundle: false,
|
|
28733
|
-
platform: "node",
|
|
28734
|
-
format: "esm",
|
|
28735
|
-
target: "es2020",
|
|
28736
|
-
sourcemap: false
|
|
28737
|
-
});
|
|
28738
|
-
await this.executeJsScript(filePath, outFile);
|
|
28739
|
-
} catch (error) {
|
|
28740
|
-
this.failSpinner(`Error executing: ${filePath}`, error);
|
|
28741
|
-
} finally {
|
|
28742
|
-
fs9.unlinkSync(outFile);
|
|
28743
|
-
}
|
|
28744
|
-
}
|
|
28745
|
-
async executeJsScript(filePath, transpiledFilePath) {
|
|
28746
|
-
this.startSpinner(`Executing file: ${filePath}`);
|
|
28747
|
-
try {
|
|
28748
|
-
const module = await import(pathToFileURL(transpiledFilePath || filePath).href);
|
|
28749
|
-
if (!module.default || typeof module.default !== "function") {
|
|
28750
|
-
this.failSpinner(`No "default" function found in: ${filePath}`);
|
|
28751
|
-
return;
|
|
28752
|
-
}
|
|
28753
|
-
await module.default(this.genlayerClient);
|
|
28754
|
-
this.succeedSpinner(`Successfully executed: ${filePath}`);
|
|
28755
|
-
} catch (error) {
|
|
28756
|
-
this.failSpinner(`Error executing: ${filePath}`, error);
|
|
28711
|
+
async deploy(options) {
|
|
28712
|
+
const argsUsed = options.args && options.args.length > 0;
|
|
28713
|
+
const kwargsUsed = options.kwargs && options.kwargs.trim() !== "";
|
|
28714
|
+
if (argsUsed && kwargsUsed) {
|
|
28715
|
+
throw new Error("Invalid usage: Please specify either `args` or `kwargs`, but not both.");
|
|
28757
28716
|
}
|
|
28758
|
-
|
|
28759
|
-
|
|
28760
|
-
this.startSpinner("Searching for deploy scripts...");
|
|
28761
|
-
if (!fs9.existsSync(this.deployDir)) {
|
|
28762
|
-
this.failSpinner("No deploy folder found.");
|
|
28717
|
+
if (!options.contract) {
|
|
28718
|
+
console.error("No contract specified for deployment.");
|
|
28763
28719
|
return;
|
|
28764
28720
|
}
|
|
28765
|
-
const
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
if (!isNaN(numA) && !isNaN(numB)) return numA - numB;
|
|
28769
|
-
if (!isNaN(numA)) return -1;
|
|
28770
|
-
if (!isNaN(numB)) return 1;
|
|
28771
|
-
return a.localeCompare(b);
|
|
28772
|
-
});
|
|
28773
|
-
if (files.length === 0) {
|
|
28774
|
-
this.failSpinner("No deploy scripts found.");
|
|
28721
|
+
const contractCode = this.readContractCode(options.contract);
|
|
28722
|
+
if (!contractCode) {
|
|
28723
|
+
console.error("Contract code is empty.");
|
|
28775
28724
|
return;
|
|
28776
28725
|
}
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28780
|
-
|
|
28781
|
-
try {
|
|
28782
|
-
if (file.endsWith(".ts")) {
|
|
28783
|
-
await this.executeTsScript(filePath);
|
|
28784
|
-
} else {
|
|
28785
|
-
await this.executeJsScript(filePath);
|
|
28786
|
-
}
|
|
28787
|
-
} catch (error) {
|
|
28788
|
-
this.failSpinner(`Error executing script: ${filePath}`, error);
|
|
28789
|
-
}
|
|
28790
|
-
}
|
|
28791
|
-
}
|
|
28792
|
-
async deploy(options) {
|
|
28726
|
+
const leaderOnly = false;
|
|
28727
|
+
let deployParams = { code: contractCode, args: options.args, leaderOnly };
|
|
28728
|
+
console.log("Starting contract deployment...");
|
|
28729
|
+
console.log("Deployment Parameters:", deployParams);
|
|
28793
28730
|
try {
|
|
28794
|
-
this.startSpinner("Setting up the deployment environment...");
|
|
28795
|
-
await this.genlayerClient.initializeConsensusSmartContract();
|
|
28796
|
-
if (!options.contract) {
|
|
28797
|
-
this.failSpinner("No contract specified for deployment.");
|
|
28798
|
-
return;
|
|
28799
|
-
}
|
|
28800
|
-
this.setSpinnerText("Reading contract code...");
|
|
28801
|
-
const contractCode = this.readContractCode(options.contract);
|
|
28802
|
-
if (!contractCode) {
|
|
28803
|
-
this.failSpinner("Contract code is empty.");
|
|
28804
|
-
return;
|
|
28805
|
-
}
|
|
28806
|
-
const leaderOnly = false;
|
|
28807
|
-
const deployParams = { code: contractCode, args: options.args, leaderOnly };
|
|
28808
|
-
this.setSpinnerText("Starting contract deployment...");
|
|
28809
|
-
this.log("Deployment Parameters:", deployParams);
|
|
28810
28731
|
const hash2 = await this.genlayerClient.deployContract(deployParams);
|
|
28811
|
-
const result = await this.genlayerClient.waitForTransactionReceipt({
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
status: TransactionStatus.ACCEPTED
|
|
28816
|
-
});
|
|
28817
|
-
this.succeedSpinner("Contract deployed successfully.", {
|
|
28818
|
-
"Transaction Hash": hash2,
|
|
28819
|
-
"Contract Address": result.data?.contract_address
|
|
28820
|
-
});
|
|
28732
|
+
const result = await this.genlayerClient.waitForTransactionReceipt({ hash: hash2, retries: 15, interval: 2e3 });
|
|
28733
|
+
console.log("Contract deployed successfully.");
|
|
28734
|
+
console.log("Transaction Hash:", hash2);
|
|
28735
|
+
console.log("Contract Address:", result.data?.contract_address);
|
|
28821
28736
|
} catch (error) {
|
|
28822
|
-
|
|
28737
|
+
console.error("Error deploying contract:", error);
|
|
28738
|
+
throw new Error("Contract deployment failed.");
|
|
28823
28739
|
}
|
|
28824
28740
|
}
|
|
28825
28741
|
};
|
|
@@ -28896,11 +28812,7 @@ var CallAction = class {
|
|
|
28896
28812
|
function initializeContractsCommands(program2) {
|
|
28897
28813
|
program2.command("deploy").description("Deploy intelligent contracts").option("--contract <contractPath>", "Path to the smart contract to deploy").option("--args <args...>", "Positional arguments for the contract (space-separated, use quotes for multi-word arguments)", []).action(async (options) => {
|
|
28898
28814
|
const deployer = new DeployAction();
|
|
28899
|
-
|
|
28900
|
-
await deployer.deploy(options);
|
|
28901
|
-
} else {
|
|
28902
|
-
await deployer.deployScripts();
|
|
28903
|
-
}
|
|
28815
|
+
await deployer.deploy(options);
|
|
28904
28816
|
});
|
|
28905
28817
|
program2.command("call <contractAddress> <method>").description("Call a contract method").option("--args <args...>", "Positional arguments for the method (space-separated, use quotes for multi-word arguments)", []).action(async (contractAddress, method, options) => {
|
|
28906
28818
|
const caller = new CallAction();
|
|
@@ -28962,7 +28874,7 @@ function initializeConfigCommands(program2) {
|
|
|
28962
28874
|
}
|
|
28963
28875
|
|
|
28964
28876
|
// src/commands/validators/validators.ts
|
|
28965
|
-
|
|
28877
|
+
var import_inquirer4 = __toESM(require("inquirer"), 1);
|
|
28966
28878
|
var ValidatorsAction = class extends BaseAction {
|
|
28967
28879
|
async getValidator(options) {
|
|
28968
28880
|
try {
|
|
@@ -29099,7 +29011,7 @@ var ValidatorsAction = class extends BaseAction {
|
|
|
29099
29011
|
];
|
|
29100
29012
|
let provider = options.provider;
|
|
29101
29013
|
if (!provider) {
|
|
29102
|
-
const { selectedProvider } = await
|
|
29014
|
+
const { selectedProvider } = await import_inquirer4.default.prompt([
|
|
29103
29015
|
{
|
|
29104
29016
|
type: "list",
|
|
29105
29017
|
name: "selectedProvider",
|
|
@@ -29117,7 +29029,7 @@ var ValidatorsAction = class extends BaseAction {
|
|
|
29117
29029
|
}
|
|
29118
29030
|
let model = options.model;
|
|
29119
29031
|
if (!model) {
|
|
29120
|
-
const { selectedModel } = await
|
|
29032
|
+
const { selectedModel } = await import_inquirer4.default.prompt([
|
|
29121
29033
|
{
|
|
29122
29034
|
type: "list",
|
|
29123
29035
|
name: "selectedModel",
|
|
@@ -29222,19 +29134,20 @@ function initializeUpdateCommands(program2) {
|
|
|
29222
29134
|
|
|
29223
29135
|
// src/index.ts
|
|
29224
29136
|
function initializeCLI() {
|
|
29225
|
-
program.version(version).description(CLI_DESCRIPTION);
|
|
29226
|
-
initializeGeneralCommands(program);
|
|
29227
|
-
initializeKeygenCommands(program);
|
|
29228
|
-
initializeContractsCommands(program);
|
|
29229
|
-
initializeConfigCommands(program);
|
|
29230
|
-
initializeUpdateCommands(program);
|
|
29231
|
-
initializeValidatorCommands(program);
|
|
29232
|
-
program.parse(process.argv);
|
|
29137
|
+
import_commander.program.version(version).description(CLI_DESCRIPTION);
|
|
29138
|
+
initializeGeneralCommands(import_commander.program);
|
|
29139
|
+
initializeKeygenCommands(import_commander.program);
|
|
29140
|
+
initializeContractsCommands(import_commander.program);
|
|
29141
|
+
initializeConfigCommands(import_commander.program);
|
|
29142
|
+
initializeUpdateCommands(import_commander.program);
|
|
29143
|
+
initializeValidatorCommands(import_commander.program);
|
|
29144
|
+
import_commander.program.parse(process.argv);
|
|
29233
29145
|
}
|
|
29234
29146
|
initializeCLI();
|
|
29235
|
-
export
|
|
29147
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29148
|
+
0 && (module.exports = {
|
|
29236
29149
|
initializeCLI
|
|
29237
|
-
};
|
|
29150
|
+
});
|
|
29238
29151
|
/*! Bundled license information:
|
|
29239
29152
|
|
|
29240
29153
|
web-streams-polyfill/dist/ponyfill.es2018.js:
|