@settlemint/sdk-cli 2.6.2-pr024a83ae → 2.6.2-pr0561d9c2
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/dist/cli.js +951 -481
- package/dist/cli.js.map +22 -7
- package/package.json +11 -11
package/dist/cli.js
CHANGED
@@ -3666,124 +3666,6 @@ var require_lib = __commonJS((exports, module) => {
|
|
3666
3666
|
module.exports = MuteStream;
|
3667
3667
|
});
|
3668
3668
|
|
3669
|
-
// ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
3670
|
-
var require_ansi_escapes = __commonJS((exports, module) => {
|
3671
|
-
var ansiEscapes = exports;
|
3672
|
-
exports.default = ansiEscapes;
|
3673
|
-
var ESC = "\x1B[";
|
3674
|
-
var OSC = "\x1B]";
|
3675
|
-
var BEL = "\x07";
|
3676
|
-
var SEP = ";";
|
3677
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
3678
|
-
ansiEscapes.cursorTo = (x, y) => {
|
3679
|
-
if (typeof x !== "number") {
|
3680
|
-
throw new TypeError("The `x` argument is required");
|
3681
|
-
}
|
3682
|
-
if (typeof y !== "number") {
|
3683
|
-
return ESC + (x + 1) + "G";
|
3684
|
-
}
|
3685
|
-
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
3686
|
-
};
|
3687
|
-
ansiEscapes.cursorMove = (x, y) => {
|
3688
|
-
if (typeof x !== "number") {
|
3689
|
-
throw new TypeError("The `x` argument is required");
|
3690
|
-
}
|
3691
|
-
let ret = "";
|
3692
|
-
if (x < 0) {
|
3693
|
-
ret += ESC + -x + "D";
|
3694
|
-
} else if (x > 0) {
|
3695
|
-
ret += ESC + x + "C";
|
3696
|
-
}
|
3697
|
-
if (y < 0) {
|
3698
|
-
ret += ESC + -y + "A";
|
3699
|
-
} else if (y > 0) {
|
3700
|
-
ret += ESC + y + "B";
|
3701
|
-
}
|
3702
|
-
return ret;
|
3703
|
-
};
|
3704
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
3705
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
3706
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
3707
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
3708
|
-
ansiEscapes.cursorLeft = ESC + "G";
|
3709
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
3710
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
3711
|
-
ansiEscapes.cursorGetPosition = ESC + "6n";
|
3712
|
-
ansiEscapes.cursorNextLine = ESC + "E";
|
3713
|
-
ansiEscapes.cursorPrevLine = ESC + "F";
|
3714
|
-
ansiEscapes.cursorHide = ESC + "?25l";
|
3715
|
-
ansiEscapes.cursorShow = ESC + "?25h";
|
3716
|
-
ansiEscapes.eraseLines = (count) => {
|
3717
|
-
let clear = "";
|
3718
|
-
for (let i = 0;i < count; i++) {
|
3719
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
3720
|
-
}
|
3721
|
-
if (count) {
|
3722
|
-
clear += ansiEscapes.cursorLeft;
|
3723
|
-
}
|
3724
|
-
return clear;
|
3725
|
-
};
|
3726
|
-
ansiEscapes.eraseEndLine = ESC + "K";
|
3727
|
-
ansiEscapes.eraseStartLine = ESC + "1K";
|
3728
|
-
ansiEscapes.eraseLine = ESC + "2K";
|
3729
|
-
ansiEscapes.eraseDown = ESC + "J";
|
3730
|
-
ansiEscapes.eraseUp = ESC + "1J";
|
3731
|
-
ansiEscapes.eraseScreen = ESC + "2J";
|
3732
|
-
ansiEscapes.scrollUp = ESC + "S";
|
3733
|
-
ansiEscapes.scrollDown = ESC + "T";
|
3734
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
3735
|
-
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
3736
|
-
ansiEscapes.beep = BEL;
|
3737
|
-
ansiEscapes.link = (text, url) => {
|
3738
|
-
return [
|
3739
|
-
OSC,
|
3740
|
-
"8",
|
3741
|
-
SEP,
|
3742
|
-
SEP,
|
3743
|
-
url,
|
3744
|
-
BEL,
|
3745
|
-
text,
|
3746
|
-
OSC,
|
3747
|
-
"8",
|
3748
|
-
SEP,
|
3749
|
-
SEP,
|
3750
|
-
BEL
|
3751
|
-
].join("");
|
3752
|
-
};
|
3753
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
3754
|
-
let ret = `${OSC}1337;File=inline=1`;
|
3755
|
-
if (options.width) {
|
3756
|
-
ret += `;width=${options.width}`;
|
3757
|
-
}
|
3758
|
-
if (options.height) {
|
3759
|
-
ret += `;height=${options.height}`;
|
3760
|
-
}
|
3761
|
-
if (options.preserveAspectRatio === false) {
|
3762
|
-
ret += ";preserveAspectRatio=0";
|
3763
|
-
}
|
3764
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
3765
|
-
};
|
3766
|
-
ansiEscapes.iTerm = {
|
3767
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
3768
|
-
annotation: (message, options = {}) => {
|
3769
|
-
let ret = `${OSC}1337;`;
|
3770
|
-
const hasX = typeof options.x !== "undefined";
|
3771
|
-
const hasY = typeof options.y !== "undefined";
|
3772
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
3773
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
3774
|
-
}
|
3775
|
-
message = message.replace(/\|/g, "");
|
3776
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
3777
|
-
if (options.length > 0) {
|
3778
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
3779
|
-
} else {
|
3780
|
-
ret += message;
|
3781
|
-
}
|
3782
|
-
return ret + BEL;
|
3783
|
-
}
|
3784
|
-
};
|
3785
|
-
});
|
3786
|
-
|
3787
3669
|
// ../../node_modules/.bun/console-table-printer@2.14.6/node_modules/console-table-printer/dist/src/utils/colored-console-line.js
|
3788
3670
|
var require_colored_console_line = __commonJS((exports) => {
|
3789
3671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
@@ -231946,6 +231828,124 @@ var require_slugify = __commonJS((exports, module) => {
|
|
231946
231828
|
});
|
231947
231829
|
});
|
231948
231830
|
|
231831
|
+
// ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
231832
|
+
var require_ansi_escapes = __commonJS((exports, module) => {
|
231833
|
+
var ansiEscapes = exports;
|
231834
|
+
exports.default = ansiEscapes;
|
231835
|
+
var ESC2 = "\x1B[";
|
231836
|
+
var OSC = "\x1B]";
|
231837
|
+
var BEL = "\x07";
|
231838
|
+
var SEP = ";";
|
231839
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
231840
|
+
ansiEscapes.cursorTo = (x6, y4) => {
|
231841
|
+
if (typeof x6 !== "number") {
|
231842
|
+
throw new TypeError("The `x` argument is required");
|
231843
|
+
}
|
231844
|
+
if (typeof y4 !== "number") {
|
231845
|
+
return ESC2 + (x6 + 1) + "G";
|
231846
|
+
}
|
231847
|
+
return ESC2 + (y4 + 1) + ";" + (x6 + 1) + "H";
|
231848
|
+
};
|
231849
|
+
ansiEscapes.cursorMove = (x6, y4) => {
|
231850
|
+
if (typeof x6 !== "number") {
|
231851
|
+
throw new TypeError("The `x` argument is required");
|
231852
|
+
}
|
231853
|
+
let ret = "";
|
231854
|
+
if (x6 < 0) {
|
231855
|
+
ret += ESC2 + -x6 + "D";
|
231856
|
+
} else if (x6 > 0) {
|
231857
|
+
ret += ESC2 + x6 + "C";
|
231858
|
+
}
|
231859
|
+
if (y4 < 0) {
|
231860
|
+
ret += ESC2 + -y4 + "A";
|
231861
|
+
} else if (y4 > 0) {
|
231862
|
+
ret += ESC2 + y4 + "B";
|
231863
|
+
}
|
231864
|
+
return ret;
|
231865
|
+
};
|
231866
|
+
ansiEscapes.cursorUp = (count = 1) => ESC2 + count + "A";
|
231867
|
+
ansiEscapes.cursorDown = (count = 1) => ESC2 + count + "B";
|
231868
|
+
ansiEscapes.cursorForward = (count = 1) => ESC2 + count + "C";
|
231869
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC2 + count + "D";
|
231870
|
+
ansiEscapes.cursorLeft = ESC2 + "G";
|
231871
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC2 + "s";
|
231872
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC2 + "u";
|
231873
|
+
ansiEscapes.cursorGetPosition = ESC2 + "6n";
|
231874
|
+
ansiEscapes.cursorNextLine = ESC2 + "E";
|
231875
|
+
ansiEscapes.cursorPrevLine = ESC2 + "F";
|
231876
|
+
ansiEscapes.cursorHide = ESC2 + "?25l";
|
231877
|
+
ansiEscapes.cursorShow = ESC2 + "?25h";
|
231878
|
+
ansiEscapes.eraseLines = (count) => {
|
231879
|
+
let clear = "";
|
231880
|
+
for (let i7 = 0;i7 < count; i7++) {
|
231881
|
+
clear += ansiEscapes.eraseLine + (i7 < count - 1 ? ansiEscapes.cursorUp() : "");
|
231882
|
+
}
|
231883
|
+
if (count) {
|
231884
|
+
clear += ansiEscapes.cursorLeft;
|
231885
|
+
}
|
231886
|
+
return clear;
|
231887
|
+
};
|
231888
|
+
ansiEscapes.eraseEndLine = ESC2 + "K";
|
231889
|
+
ansiEscapes.eraseStartLine = ESC2 + "1K";
|
231890
|
+
ansiEscapes.eraseLine = ESC2 + "2K";
|
231891
|
+
ansiEscapes.eraseDown = ESC2 + "J";
|
231892
|
+
ansiEscapes.eraseUp = ESC2 + "1J";
|
231893
|
+
ansiEscapes.eraseScreen = ESC2 + "2J";
|
231894
|
+
ansiEscapes.scrollUp = ESC2 + "S";
|
231895
|
+
ansiEscapes.scrollDown = ESC2 + "T";
|
231896
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
231897
|
+
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC2}0f` : `${ansiEscapes.eraseScreen}${ESC2}3J${ESC2}H`;
|
231898
|
+
ansiEscapes.beep = BEL;
|
231899
|
+
ansiEscapes.link = (text2, url2) => {
|
231900
|
+
return [
|
231901
|
+
OSC,
|
231902
|
+
"8",
|
231903
|
+
SEP,
|
231904
|
+
SEP,
|
231905
|
+
url2,
|
231906
|
+
BEL,
|
231907
|
+
text2,
|
231908
|
+
OSC,
|
231909
|
+
"8",
|
231910
|
+
SEP,
|
231911
|
+
SEP,
|
231912
|
+
BEL
|
231913
|
+
].join("");
|
231914
|
+
};
|
231915
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
231916
|
+
let ret = `${OSC}1337;File=inline=1`;
|
231917
|
+
if (options.width) {
|
231918
|
+
ret += `;width=${options.width}`;
|
231919
|
+
}
|
231920
|
+
if (options.height) {
|
231921
|
+
ret += `;height=${options.height}`;
|
231922
|
+
}
|
231923
|
+
if (options.preserveAspectRatio === false) {
|
231924
|
+
ret += ";preserveAspectRatio=0";
|
231925
|
+
}
|
231926
|
+
return ret + ":" + buffer.toString("base64") + BEL;
|
231927
|
+
};
|
231928
|
+
ansiEscapes.iTerm = {
|
231929
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
231930
|
+
annotation: (message, options = {}) => {
|
231931
|
+
let ret = `${OSC}1337;`;
|
231932
|
+
const hasX = typeof options.x !== "undefined";
|
231933
|
+
const hasY = typeof options.y !== "undefined";
|
231934
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
231935
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
231936
|
+
}
|
231937
|
+
message = message.replace(/\|/g, "");
|
231938
|
+
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
231939
|
+
if (options.length > 0) {
|
231940
|
+
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
231941
|
+
} else {
|
231942
|
+
ret += message;
|
231943
|
+
}
|
231944
|
+
return ret + BEL;
|
231945
|
+
}
|
231946
|
+
};
|
231947
|
+
});
|
231948
|
+
|
231949
231949
|
// ../../node_modules/.bun/abitype@1.1.0+50e9b7ffbf081acf/node_modules/abitype/dist/esm/version.js
|
231950
231950
|
var version2 = "1.1.0";
|
231951
231951
|
|
@@ -233941,16 +233941,16 @@ var init_lru = __esm(() => {
|
|
233941
233941
|
});
|
233942
233942
|
this.maxSize = size2;
|
233943
233943
|
}
|
233944
|
-
get(
|
233945
|
-
const value5 = super.get(
|
233946
|
-
if (super.has(
|
233947
|
-
this.delete(
|
233948
|
-
super.set(
|
233944
|
+
get(key3) {
|
233945
|
+
const value5 = super.get(key3);
|
233946
|
+
if (super.has(key3) && value5 !== undefined) {
|
233947
|
+
this.delete(key3);
|
233948
|
+
super.set(key3, value5);
|
233949
233949
|
}
|
233950
233950
|
return value5;
|
233951
233951
|
}
|
233952
|
-
set(
|
233953
|
-
super.set(
|
233952
|
+
set(key3, value5) {
|
233953
|
+
super.set(key3, value5);
|
233954
233954
|
if (this.maxSize && this.size > this.maxSize) {
|
233955
233955
|
const firstKey = this.keys().next().value;
|
233956
233956
|
if (firstKey)
|
@@ -234992,9 +234992,9 @@ var init_decodeErrorResult = __esm(() => {
|
|
234992
234992
|
});
|
234993
234993
|
|
234994
234994
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/stringify.js
|
234995
|
-
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (
|
234995
|
+
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key3, value_) => {
|
234996
234996
|
const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
|
234997
|
-
return typeof replacer === "function" ? replacer(
|
234997
|
+
return typeof replacer === "function" ? replacer(key3, value6) : value6;
|
234998
234998
|
}, space);
|
234999
234999
|
|
235000
235000
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
@@ -235108,13 +235108,13 @@ var init_stateOverride = __esm(() => {
|
|
235108
235108
|
|
235109
235109
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/errors/transaction.js
|
235110
235110
|
function prettyPrint(args) {
|
235111
|
-
const entries = Object.entries(args).map(([
|
235111
|
+
const entries = Object.entries(args).map(([key3, value5]) => {
|
235112
235112
|
if (value5 === undefined || value5 === false)
|
235113
235113
|
return null;
|
235114
|
-
return [
|
235114
|
+
return [key3, value5];
|
235115
235115
|
}).filter(Boolean);
|
235116
|
-
const maxLength = entries.reduce((acc, [
|
235117
|
-
return entries.map(([
|
235116
|
+
const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
|
235117
|
+
return entries.map(([key3, value5]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value5}`).join(`
|
235118
235118
|
`);
|
235119
235119
|
}
|
235120
235120
|
var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
|
@@ -236232,7 +236232,7 @@ var init_sha2 = __esm(() => {
|
|
236232
236232
|
});
|
236233
236233
|
|
236234
236234
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
|
236235
|
-
var HMAC, hmac = (hash3,
|
236235
|
+
var HMAC, hmac = (hash3, key3, message) => new HMAC(hash3, key3).update(message).digest();
|
236236
236236
|
var init_hmac = __esm(() => {
|
236237
236237
|
init_utils2();
|
236238
236238
|
HMAC = class HMAC extends Hash {
|
@@ -236241,7 +236241,7 @@ var init_hmac = __esm(() => {
|
|
236241
236241
|
this.finished = false;
|
236242
236242
|
this.destroyed = false;
|
236243
236243
|
ahash(hash3);
|
236244
|
-
const
|
236244
|
+
const key3 = toBytes2(_key);
|
236245
236245
|
this.iHash = hash3.create();
|
236246
236246
|
if (typeof this.iHash.update !== "function")
|
236247
236247
|
throw new Error("Expected instance of class which extends utils.Hash");
|
@@ -236249,7 +236249,7 @@ var init_hmac = __esm(() => {
|
|
236249
236249
|
this.outputLen = this.iHash.outputLen;
|
236250
236250
|
const blockLen = this.blockLen;
|
236251
236251
|
const pad2 = new Uint8Array(blockLen);
|
236252
|
-
pad2.set(
|
236252
|
+
pad2.set(key3.length > blockLen ? hash3.create().update(key3).digest() : key3);
|
236253
236253
|
for (let i7 = 0;i7 < pad2.length; i7++)
|
236254
236254
|
pad2[i7] ^= 54;
|
236255
236255
|
this.iHash.update(pad2);
|
@@ -236299,7 +236299,7 @@ var init_hmac = __esm(() => {
|
|
236299
236299
|
this.iHash.destroy();
|
236300
236300
|
}
|
236301
236301
|
};
|
236302
|
-
hmac.create = (hash3,
|
236302
|
+
hmac.create = (hash3, key3) => new HMAC(hash3, key3);
|
236303
236303
|
});
|
236304
236304
|
|
236305
236305
|
// ../../node_modules/.bun/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
|
@@ -236758,13 +236758,13 @@ function getMinHashLength(fieldOrder) {
|
|
236758
236758
|
const length = getFieldBytesLength(fieldOrder);
|
236759
236759
|
return length + Math.ceil(length / 2);
|
236760
236760
|
}
|
236761
|
-
function mapHashToField(
|
236762
|
-
const len =
|
236761
|
+
function mapHashToField(key3, fieldOrder, isLE2 = false) {
|
236762
|
+
const len = key3.length;
|
236763
236763
|
const fieldLen = getFieldBytesLength(fieldOrder);
|
236764
236764
|
const minLen = getMinHashLength(fieldOrder);
|
236765
236765
|
if (len < 16 || len < minLen || len > 1024)
|
236766
236766
|
throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
|
236767
|
-
const num = isLE2 ? bytesToNumberLE(
|
236767
|
+
const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
|
236768
236768
|
const reduced = mod(num, fieldOrder - _1n3) + _1n3;
|
236769
236769
|
return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
236770
236770
|
}
|
@@ -237079,20 +237079,20 @@ function weierstrassPoints(opts) {
|
|
237079
237079
|
function isWithinCurveOrder(num) {
|
237080
237080
|
return inRange(num, _1n5, CURVE.n);
|
237081
237081
|
}
|
237082
|
-
function normPrivateKeyToScalar(
|
237082
|
+
function normPrivateKeyToScalar(key3) {
|
237083
237083
|
const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
|
237084
|
-
if (lengths && typeof
|
237085
|
-
if (isBytes2(
|
237086
|
-
|
237087
|
-
if (typeof
|
237084
|
+
if (lengths && typeof key3 !== "bigint") {
|
237085
|
+
if (isBytes2(key3))
|
237086
|
+
key3 = bytesToHex2(key3);
|
237087
|
+
if (typeof key3 !== "string" || !lengths.includes(key3.length))
|
237088
237088
|
throw new Error("invalid private key");
|
237089
|
-
|
237089
|
+
key3 = key3.padStart(nByteLength * 2, "0");
|
237090
237090
|
}
|
237091
237091
|
let num;
|
237092
237092
|
try {
|
237093
|
-
num = typeof
|
237093
|
+
num = typeof key3 === "bigint" ? key3 : bytesToNumberBE(ensureBytes("private key", key3, nByteLength));
|
237094
237094
|
} catch (error48) {
|
237095
|
-
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof
|
237095
|
+
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key3);
|
237096
237096
|
}
|
237097
237097
|
if (wrapPrivateKey)
|
237098
237098
|
num = mod(num, N6);
|
@@ -237926,7 +237926,7 @@ var init_weierstrass = __esm(() => {
|
|
237926
237926
|
function getHash(hash3) {
|
237927
237927
|
return {
|
237928
237928
|
hash: hash3,
|
237929
|
-
hmac: (
|
237929
|
+
hmac: (key3, ...msgs) => hmac(hash3, key3, concatBytes(...msgs)),
|
237930
237930
|
randomBytes
|
237931
237931
|
};
|
237932
237932
|
}
|
@@ -238552,11 +238552,11 @@ function extract2(value_, { format: format2 }) {
|
|
238552
238552
|
const value5 = {};
|
238553
238553
|
function extract_(formatted2) {
|
238554
238554
|
const keys = Object.keys(formatted2);
|
238555
|
-
for (const
|
238556
|
-
if (
|
238557
|
-
value5[
|
238558
|
-
if (formatted2[
|
238559
|
-
extract_(formatted2[
|
238555
|
+
for (const key3 of keys) {
|
238556
|
+
if (key3 in value_)
|
238557
|
+
value5[key3] = value_[key3];
|
238558
|
+
if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
|
238559
|
+
extract_(formatted2[key3]);
|
238560
238560
|
}
|
238561
238561
|
}
|
238562
238562
|
const formatted = format2(value_ || {});
|
@@ -238572,8 +238572,8 @@ function defineFormatter(type5, format2) {
|
|
238572
238572
|
format: (args) => {
|
238573
238573
|
const formatted = format2(args);
|
238574
238574
|
if (exclude) {
|
238575
|
-
for (const
|
238576
|
-
delete formatted[
|
238575
|
+
for (const key3 of exclude) {
|
238576
|
+
delete formatted[key3];
|
238577
238577
|
}
|
238578
238578
|
}
|
238579
238579
|
return {
|
@@ -239119,9 +239119,9 @@ var init_hex = __esm(() => {
|
|
239119
239119
|
|
239120
239120
|
// ../../node_modules/.bun/ox@0.9.3+50e9b7ffbf081acf/node_modules/ox/_esm/core/Json.js
|
239121
239121
|
function stringify4(value5, replacer, space) {
|
239122
|
-
return JSON.stringify(value5, (
|
239122
|
+
return JSON.stringify(value5, (key3, value6) => {
|
239123
239123
|
if (typeof replacer === "function")
|
239124
|
-
return replacer(
|
239124
|
+
return replacer(key3, value6);
|
239125
239125
|
if (typeof value6 === "bigint")
|
239126
239126
|
return value6.toString() + bigIntSuffix;
|
239127
239127
|
return value6;
|
@@ -240664,11 +240664,11 @@ var require_visit = __commonJS((exports) => {
|
|
240664
240664
|
visit2.BREAK = BREAK;
|
240665
240665
|
visit2.SKIP = SKIP;
|
240666
240666
|
visit2.REMOVE = REMOVE;
|
240667
|
-
function visit_(
|
240668
|
-
const ctrl = callVisitor(
|
240667
|
+
function visit_(key3, node, visitor, path5) {
|
240668
|
+
const ctrl = callVisitor(key3, node, visitor, path5);
|
240669
240669
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
240670
|
-
replaceNode(
|
240671
|
-
return visit_(
|
240670
|
+
replaceNode(key3, path5, ctrl);
|
240671
|
+
return visit_(key3, ctrl, visitor, path5);
|
240672
240672
|
}
|
240673
240673
|
if (typeof ctrl !== "symbol") {
|
240674
240674
|
if (identity2.isCollection(node)) {
|
@@ -240712,11 +240712,11 @@ var require_visit = __commonJS((exports) => {
|
|
240712
240712
|
visitAsync.BREAK = BREAK;
|
240713
240713
|
visitAsync.SKIP = SKIP;
|
240714
240714
|
visitAsync.REMOVE = REMOVE;
|
240715
|
-
async function visitAsync_(
|
240716
|
-
const ctrl = await callVisitor(
|
240715
|
+
async function visitAsync_(key3, node, visitor, path5) {
|
240716
|
+
const ctrl = await callVisitor(key3, node, visitor, path5);
|
240717
240717
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
240718
|
-
replaceNode(
|
240719
|
-
return visitAsync_(
|
240718
|
+
replaceNode(key3, path5, ctrl);
|
240719
|
+
return visitAsync_(key3, ctrl, visitor, path5);
|
240720
240720
|
}
|
240721
240721
|
if (typeof ctrl !== "symbol") {
|
240722
240722
|
if (identity2.isCollection(node)) {
|
@@ -240766,27 +240766,27 @@ var require_visit = __commonJS((exports) => {
|
|
240766
240766
|
}
|
240767
240767
|
return visitor;
|
240768
240768
|
}
|
240769
|
-
function callVisitor(
|
240769
|
+
function callVisitor(key3, node, visitor, path5) {
|
240770
240770
|
if (typeof visitor === "function")
|
240771
|
-
return visitor(
|
240771
|
+
return visitor(key3, node, path5);
|
240772
240772
|
if (identity2.isMap(node))
|
240773
|
-
return visitor.Map?.(
|
240773
|
+
return visitor.Map?.(key3, node, path5);
|
240774
240774
|
if (identity2.isSeq(node))
|
240775
|
-
return visitor.Seq?.(
|
240775
|
+
return visitor.Seq?.(key3, node, path5);
|
240776
240776
|
if (identity2.isPair(node))
|
240777
|
-
return visitor.Pair?.(
|
240777
|
+
return visitor.Pair?.(key3, node, path5);
|
240778
240778
|
if (identity2.isScalar(node))
|
240779
|
-
return visitor.Scalar?.(
|
240779
|
+
return visitor.Scalar?.(key3, node, path5);
|
240780
240780
|
if (identity2.isAlias(node))
|
240781
|
-
return visitor.Alias?.(
|
240781
|
+
return visitor.Alias?.(key3, node, path5);
|
240782
240782
|
return;
|
240783
240783
|
}
|
240784
|
-
function replaceNode(
|
240784
|
+
function replaceNode(key3, path5, node) {
|
240785
240785
|
const parent = path5[path5.length - 1];
|
240786
240786
|
if (identity2.isCollection(parent)) {
|
240787
|
-
parent.items[
|
240787
|
+
parent.items[key3] = node;
|
240788
240788
|
} else if (identity2.isPair(parent)) {
|
240789
|
-
if (
|
240789
|
+
if (key3 === "key")
|
240790
240790
|
parent.key = node;
|
240791
240791
|
else
|
240792
240792
|
parent.value = node;
|
@@ -241017,7 +241017,7 @@ var require_anchors = __commonJS((exports) => {
|
|
241017
241017
|
|
241018
241018
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js
|
241019
241019
|
var require_applyReviver = __commonJS((exports) => {
|
241020
|
-
function applyReviver(reviver, obj,
|
241020
|
+
function applyReviver(reviver, obj, key3, val) {
|
241021
241021
|
if (val && typeof val === "object") {
|
241022
241022
|
if (Array.isArray(val)) {
|
241023
241023
|
for (let i8 = 0, len = val.length;i8 < len; ++i8) {
|
@@ -241057,7 +241057,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
241057
241057
|
}
|
241058
241058
|
}
|
241059
241059
|
}
|
241060
|
-
return reviver.call(obj,
|
241060
|
+
return reviver.call(obj, key3, val);
|
241061
241061
|
}
|
241062
241062
|
exports.applyReviver = applyReviver;
|
241063
241063
|
});
|
@@ -241386,29 +241386,29 @@ var require_Collection = __commonJS((exports) => {
|
|
241386
241386
|
if (isEmptyPath(path5))
|
241387
241387
|
this.add(value5);
|
241388
241388
|
else {
|
241389
|
-
const [
|
241390
|
-
const node = this.get(
|
241389
|
+
const [key3, ...rest] = path5;
|
241390
|
+
const node = this.get(key3, true);
|
241391
241391
|
if (identity2.isCollection(node))
|
241392
241392
|
node.addIn(rest, value5);
|
241393
241393
|
else if (node === undefined && this.schema)
|
241394
|
-
this.set(
|
241394
|
+
this.set(key3, collectionFromPath(this.schema, rest, value5));
|
241395
241395
|
else
|
241396
|
-
throw new Error(`Expected YAML collection at ${
|
241396
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
241397
241397
|
}
|
241398
241398
|
}
|
241399
241399
|
deleteIn(path5) {
|
241400
|
-
const [
|
241400
|
+
const [key3, ...rest] = path5;
|
241401
241401
|
if (rest.length === 0)
|
241402
|
-
return this.delete(
|
241403
|
-
const node = this.get(
|
241402
|
+
return this.delete(key3);
|
241403
|
+
const node = this.get(key3, true);
|
241404
241404
|
if (identity2.isCollection(node))
|
241405
241405
|
return node.deleteIn(rest);
|
241406
241406
|
else
|
241407
|
-
throw new Error(`Expected YAML collection at ${
|
241407
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
241408
241408
|
}
|
241409
241409
|
getIn(path5, keepScalar) {
|
241410
|
-
const [
|
241411
|
-
const node = this.get(
|
241410
|
+
const [key3, ...rest] = path5;
|
241411
|
+
const node = this.get(key3, true);
|
241412
241412
|
if (rest.length === 0)
|
241413
241413
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
241414
241414
|
else
|
@@ -241423,24 +241423,24 @@ var require_Collection = __commonJS((exports) => {
|
|
241423
241423
|
});
|
241424
241424
|
}
|
241425
241425
|
hasIn(path5) {
|
241426
|
-
const [
|
241426
|
+
const [key3, ...rest] = path5;
|
241427
241427
|
if (rest.length === 0)
|
241428
|
-
return this.has(
|
241429
|
-
const node = this.get(
|
241428
|
+
return this.has(key3);
|
241429
|
+
const node = this.get(key3, true);
|
241430
241430
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
241431
241431
|
}
|
241432
241432
|
setIn(path5, value5) {
|
241433
|
-
const [
|
241433
|
+
const [key3, ...rest] = path5;
|
241434
241434
|
if (rest.length === 0) {
|
241435
|
-
this.set(
|
241435
|
+
this.set(key3, value5);
|
241436
241436
|
} else {
|
241437
|
-
const node = this.get(
|
241437
|
+
const node = this.get(key3, true);
|
241438
241438
|
if (identity2.isCollection(node))
|
241439
241439
|
node.setIn(rest, value5);
|
241440
241440
|
else if (node === undefined && this.schema)
|
241441
|
-
this.set(
|
241441
|
+
this.set(key3, collectionFromPath(this.schema, rest, value5));
|
241442
241442
|
else
|
241443
|
-
throw new Error(`Expected YAML collection at ${
|
241443
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
241444
241444
|
}
|
241445
241445
|
}
|
241446
241446
|
}
|
@@ -242027,19 +242027,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
242027
242027
|
var Scalar = require_Scalar();
|
242028
242028
|
var stringify5 = require_stringify();
|
242029
242029
|
var stringifyComment = require_stringifyComment();
|
242030
|
-
function stringifyPair2({ key:
|
242030
|
+
function stringifyPair2({ key: key3, value: value5 }, ctx, onComment, onChompKeep) {
|
242031
242031
|
const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
242032
|
-
let keyComment = identity2.isNode(
|
242032
|
+
let keyComment = identity2.isNode(key3) && key3.comment || null;
|
242033
242033
|
if (simpleKeys) {
|
242034
242034
|
if (keyComment) {
|
242035
242035
|
throw new Error("With simple keys, key nodes cannot have comments");
|
242036
242036
|
}
|
242037
|
-
if (identity2.isCollection(
|
242037
|
+
if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
|
242038
242038
|
const msg = "With simple keys, collection cannot be used as a key value";
|
242039
242039
|
throw new Error(msg);
|
242040
242040
|
}
|
242041
242041
|
}
|
242042
|
-
let explicitKey = !simpleKeys && (!
|
242042
|
+
let explicitKey = !simpleKeys && (!key3 || keyComment && value5 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
|
242043
242043
|
ctx = Object.assign({}, ctx, {
|
242044
242044
|
allNullValues: false,
|
242045
242045
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -242047,7 +242047,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
242047
242047
|
});
|
242048
242048
|
let keyCommentDone = false;
|
242049
242049
|
let chompKeep = false;
|
242050
|
-
let str = stringify5.stringify(
|
242050
|
+
let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
242051
242051
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
242052
242052
|
if (simpleKeys)
|
242053
242053
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -242191,7 +242191,7 @@ var require_merge = __commonJS((exports) => {
|
|
242191
242191
|
}),
|
242192
242192
|
stringify: () => MERGE_KEY
|
242193
242193
|
};
|
242194
|
-
var isMergeKey = (ctx,
|
242194
|
+
var isMergeKey = (ctx, key3) => (merge4.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge4.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge4.tag && tag.default);
|
242195
242195
|
function addMergeToJSMap(ctx, map4, value5) {
|
242196
242196
|
value5 = ctx && identity2.isAlias(value5) ? value5.resolve(ctx.doc) : value5;
|
242197
242197
|
if (identity2.isSeq(value5))
|
@@ -242208,14 +242208,14 @@ var require_merge = __commonJS((exports) => {
|
|
242208
242208
|
if (!identity2.isMap(source))
|
242209
242209
|
throw new Error("Merge sources must be maps or map aliases");
|
242210
242210
|
const srcMap = source.toJSON(null, ctx, Map);
|
242211
|
-
for (const [
|
242211
|
+
for (const [key3, value6] of srcMap) {
|
242212
242212
|
if (map4 instanceof Map) {
|
242213
|
-
if (!map4.has(
|
242214
|
-
map4.set(
|
242213
|
+
if (!map4.has(key3))
|
242214
|
+
map4.set(key3, value6);
|
242215
242215
|
} else if (map4 instanceof Set) {
|
242216
|
-
map4.add(
|
242217
|
-
} else if (!Object.prototype.hasOwnProperty.call(map4,
|
242218
|
-
Object.defineProperty(map4,
|
242216
|
+
map4.add(key3);
|
242217
|
+
} else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
|
242218
|
+
Object.defineProperty(map4, key3, {
|
242219
242219
|
value: value6,
|
242220
242220
|
writable: true,
|
242221
242221
|
enumerable: true,
|
@@ -242237,19 +242237,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
242237
242237
|
var stringify5 = require_stringify();
|
242238
242238
|
var identity2 = require_identity();
|
242239
242239
|
var toJS = require_toJS();
|
242240
|
-
function addPairToJSMap(ctx, map4, { key:
|
242241
|
-
if (identity2.isNode(
|
242242
|
-
|
242243
|
-
else if (merge4.isMergeKey(ctx,
|
242240
|
+
function addPairToJSMap(ctx, map4, { key: key3, value: value5 }) {
|
242241
|
+
if (identity2.isNode(key3) && key3.addToJSMap)
|
242242
|
+
key3.addToJSMap(ctx, map4, value5);
|
242243
|
+
else if (merge4.isMergeKey(ctx, key3))
|
242244
242244
|
merge4.addMergeToJSMap(ctx, map4, value5);
|
242245
242245
|
else {
|
242246
|
-
const jsKey = toJS.toJS(
|
242246
|
+
const jsKey = toJS.toJS(key3, "", ctx);
|
242247
242247
|
if (map4 instanceof Map) {
|
242248
242248
|
map4.set(jsKey, toJS.toJS(value5, jsKey, ctx));
|
242249
242249
|
} else if (map4 instanceof Set) {
|
242250
242250
|
map4.add(jsKey);
|
242251
242251
|
} else {
|
242252
|
-
const stringKey = stringifyKey(
|
242252
|
+
const stringKey = stringifyKey(key3, jsKey, ctx);
|
242253
242253
|
const jsValue = toJS.toJS(value5, stringKey, ctx);
|
242254
242254
|
if (stringKey in map4)
|
242255
242255
|
Object.defineProperty(map4, stringKey, {
|
@@ -242264,19 +242264,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
242264
242264
|
}
|
242265
242265
|
return map4;
|
242266
242266
|
}
|
242267
|
-
function stringifyKey(
|
242267
|
+
function stringifyKey(key3, jsKey, ctx) {
|
242268
242268
|
if (jsKey === null)
|
242269
242269
|
return "";
|
242270
242270
|
if (typeof jsKey !== "object")
|
242271
242271
|
return String(jsKey);
|
242272
|
-
if (identity2.isNode(
|
242272
|
+
if (identity2.isNode(key3) && ctx?.doc) {
|
242273
242273
|
const strCtx = stringify5.createStringifyContext(ctx.doc, {});
|
242274
242274
|
strCtx.anchors = new Set;
|
242275
242275
|
for (const node of ctx.anchors.keys())
|
242276
242276
|
strCtx.anchors.add(node.anchor);
|
242277
242277
|
strCtx.inFlow = true;
|
242278
242278
|
strCtx.inStringifyKey = true;
|
242279
|
-
const strKey =
|
242279
|
+
const strKey = key3.toString(strCtx);
|
242280
242280
|
if (!ctx.mapKeyWarned) {
|
242281
242281
|
let jsonStr = JSON.stringify(strKey);
|
242282
242282
|
if (jsonStr.length > 40)
|
@@ -242297,25 +242297,25 @@ var require_Pair = __commonJS((exports) => {
|
|
242297
242297
|
var stringifyPair2 = require_stringifyPair();
|
242298
242298
|
var addPairToJSMap = require_addPairToJSMap();
|
242299
242299
|
var identity2 = require_identity();
|
242300
|
-
function createPair(
|
242301
|
-
const k6 = createNode.createNode(
|
242300
|
+
function createPair(key3, value5, ctx) {
|
242301
|
+
const k6 = createNode.createNode(key3, undefined, ctx);
|
242302
242302
|
const v7 = createNode.createNode(value5, undefined, ctx);
|
242303
242303
|
return new Pair(k6, v7);
|
242304
242304
|
}
|
242305
242305
|
|
242306
242306
|
class Pair {
|
242307
|
-
constructor(
|
242307
|
+
constructor(key3, value5 = null) {
|
242308
242308
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
242309
|
-
this.key =
|
242309
|
+
this.key = key3;
|
242310
242310
|
this.value = value5;
|
242311
242311
|
}
|
242312
242312
|
clone(schema) {
|
242313
|
-
let { key:
|
242314
|
-
if (identity2.isNode(
|
242315
|
-
|
242313
|
+
let { key: key3, value: value5 } = this;
|
242314
|
+
if (identity2.isNode(key3))
|
242315
|
+
key3 = key3.clone(schema);
|
242316
242316
|
if (identity2.isNode(value5))
|
242317
242317
|
value5 = value5.clone(schema);
|
242318
|
-
return new Pair(
|
242318
|
+
return new Pair(key3, value5);
|
242319
242319
|
}
|
242320
242320
|
toJSON(_6, ctx) {
|
242321
242321
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -242482,11 +242482,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242482
242482
|
var identity2 = require_identity();
|
242483
242483
|
var Pair = require_Pair();
|
242484
242484
|
var Scalar = require_Scalar();
|
242485
|
-
function findPair(items,
|
242486
|
-
const k6 = identity2.isScalar(
|
242485
|
+
function findPair(items, key3) {
|
242486
|
+
const k6 = identity2.isScalar(key3) ? key3.value : key3;
|
242487
242487
|
for (const it2 of items) {
|
242488
242488
|
if (identity2.isPair(it2)) {
|
242489
|
-
if (it2.key ===
|
242489
|
+
if (it2.key === key3 || it2.key === k6)
|
242490
242490
|
return it2;
|
242491
242491
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
242492
242492
|
return it2;
|
@@ -242506,20 +242506,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242506
242506
|
static from(schema, obj, ctx) {
|
242507
242507
|
const { keepUndefined, replacer } = ctx;
|
242508
242508
|
const map4 = new this(schema);
|
242509
|
-
const add = (
|
242509
|
+
const add = (key3, value5) => {
|
242510
242510
|
if (typeof replacer === "function")
|
242511
|
-
value5 = replacer.call(obj,
|
242512
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
242511
|
+
value5 = replacer.call(obj, key3, value5);
|
242512
|
+
else if (Array.isArray(replacer) && !replacer.includes(key3))
|
242513
242513
|
return;
|
242514
242514
|
if (value5 !== undefined || keepUndefined)
|
242515
|
-
map4.items.push(Pair.createPair(
|
242515
|
+
map4.items.push(Pair.createPair(key3, value5, ctx));
|
242516
242516
|
};
|
242517
242517
|
if (obj instanceof Map) {
|
242518
|
-
for (const [
|
242519
|
-
add(
|
242518
|
+
for (const [key3, value5] of obj)
|
242519
|
+
add(key3, value5);
|
242520
242520
|
} else if (obj && typeof obj === "object") {
|
242521
|
-
for (const
|
242522
|
-
add(
|
242521
|
+
for (const key3 of Object.keys(obj))
|
242522
|
+
add(key3, obj[key3]);
|
242523
242523
|
}
|
242524
242524
|
if (typeof schema.sortMapEntries === "function") {
|
242525
242525
|
map4.items.sort(schema.sortMapEntries);
|
@@ -242553,23 +242553,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
242553
242553
|
this.items.push(_pair);
|
242554
242554
|
}
|
242555
242555
|
}
|
242556
|
-
delete(
|
242557
|
-
const it2 = findPair(this.items,
|
242556
|
+
delete(key3) {
|
242557
|
+
const it2 = findPair(this.items, key3);
|
242558
242558
|
if (!it2)
|
242559
242559
|
return false;
|
242560
242560
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
242561
242561
|
return del.length > 0;
|
242562
242562
|
}
|
242563
|
-
get(
|
242564
|
-
const it2 = findPair(this.items,
|
242563
|
+
get(key3, keepScalar) {
|
242564
|
+
const it2 = findPair(this.items, key3);
|
242565
242565
|
const node = it2?.value;
|
242566
242566
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
242567
242567
|
}
|
242568
|
-
has(
|
242569
|
-
return !!findPair(this.items,
|
242568
|
+
has(key3) {
|
242569
|
+
return !!findPair(this.items, key3);
|
242570
242570
|
}
|
242571
|
-
set(
|
242572
|
-
this.add(new Pair.Pair(
|
242571
|
+
set(key3, value5) {
|
242572
|
+
this.add(new Pair.Pair(key3, value5), true);
|
242573
242573
|
}
|
242574
242574
|
toJSON(_6, ctx, Type) {
|
242575
242575
|
const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -242640,28 +242640,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242640
242640
|
add(value5) {
|
242641
242641
|
this.items.push(value5);
|
242642
242642
|
}
|
242643
|
-
delete(
|
242644
|
-
const idx = asItemIndex(
|
242643
|
+
delete(key3) {
|
242644
|
+
const idx = asItemIndex(key3);
|
242645
242645
|
if (typeof idx !== "number")
|
242646
242646
|
return false;
|
242647
242647
|
const del = this.items.splice(idx, 1);
|
242648
242648
|
return del.length > 0;
|
242649
242649
|
}
|
242650
|
-
get(
|
242651
|
-
const idx = asItemIndex(
|
242650
|
+
get(key3, keepScalar) {
|
242651
|
+
const idx = asItemIndex(key3);
|
242652
242652
|
if (typeof idx !== "number")
|
242653
242653
|
return;
|
242654
242654
|
const it2 = this.items[idx];
|
242655
242655
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
242656
242656
|
}
|
242657
|
-
has(
|
242658
|
-
const idx = asItemIndex(
|
242657
|
+
has(key3) {
|
242658
|
+
const idx = asItemIndex(key3);
|
242659
242659
|
return typeof idx === "number" && idx < this.items.length;
|
242660
242660
|
}
|
242661
|
-
set(
|
242662
|
-
const idx = asItemIndex(
|
242661
|
+
set(key3, value5) {
|
242662
|
+
const idx = asItemIndex(key3);
|
242663
242663
|
if (typeof idx !== "number")
|
242664
|
-
throw new Error(`Expected a valid index, not ${
|
242664
|
+
throw new Error(`Expected a valid index, not ${key3}.`);
|
242665
242665
|
const prev = this.items[idx];
|
242666
242666
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value5))
|
242667
242667
|
prev.value = value5;
|
@@ -242695,8 +242695,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242695
242695
|
let i8 = 0;
|
242696
242696
|
for (let it2 of obj) {
|
242697
242697
|
if (typeof replacer === "function") {
|
242698
|
-
const
|
242699
|
-
it2 = replacer.call(obj,
|
242698
|
+
const key3 = obj instanceof Set ? it2 : String(i8++);
|
242699
|
+
it2 = replacer.call(obj, key3, it2);
|
242700
242700
|
}
|
242701
242701
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
242702
242702
|
}
|
@@ -242704,8 +242704,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
242704
242704
|
return seq;
|
242705
242705
|
}
|
242706
242706
|
}
|
242707
|
-
function asItemIndex(
|
242708
|
-
let idx = identity2.isScalar(
|
242707
|
+
function asItemIndex(key3) {
|
242708
|
+
let idx = identity2.isScalar(key3) ? key3.value : key3;
|
242709
242709
|
if (idx && typeof idx === "string")
|
242710
242710
|
idx = Number(idx);
|
242711
242711
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -243078,25 +243078,25 @@ ${cn.comment}` : item.comment;
|
|
243078
243078
|
for (let it2 of iterable) {
|
243079
243079
|
if (typeof replacer === "function")
|
243080
243080
|
it2 = replacer.call(iterable, String(i8++), it2);
|
243081
|
-
let
|
243081
|
+
let key3, value5;
|
243082
243082
|
if (Array.isArray(it2)) {
|
243083
243083
|
if (it2.length === 2) {
|
243084
|
-
|
243084
|
+
key3 = it2[0];
|
243085
243085
|
value5 = it2[1];
|
243086
243086
|
} else
|
243087
243087
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
243088
243088
|
} else if (it2 && it2 instanceof Object) {
|
243089
243089
|
const keys = Object.keys(it2);
|
243090
243090
|
if (keys.length === 1) {
|
243091
|
-
|
243092
|
-
value5 = it2[
|
243091
|
+
key3 = keys[0];
|
243092
|
+
value5 = it2[key3];
|
243093
243093
|
} else {
|
243094
243094
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
243095
243095
|
}
|
243096
243096
|
} else {
|
243097
|
-
|
243097
|
+
key3 = it2;
|
243098
243098
|
}
|
243099
|
-
pairs2.items.push(Pair.createPair(
|
243099
|
+
pairs2.items.push(Pair.createPair(key3, value5, ctx));
|
243100
243100
|
}
|
243101
243101
|
return pairs2;
|
243102
243102
|
}
|
@@ -243137,16 +243137,16 @@ var require_omap = __commonJS((exports) => {
|
|
243137
243137
|
if (ctx?.onCreate)
|
243138
243138
|
ctx.onCreate(map4);
|
243139
243139
|
for (const pair of this.items) {
|
243140
|
-
let
|
243140
|
+
let key3, value5;
|
243141
243141
|
if (identity2.isPair(pair)) {
|
243142
|
-
|
243143
|
-
value5 = toJS.toJS(pair.value,
|
243142
|
+
key3 = toJS.toJS(pair.key, "", ctx);
|
243143
|
+
value5 = toJS.toJS(pair.value, key3, ctx);
|
243144
243144
|
} else {
|
243145
|
-
|
243145
|
+
key3 = toJS.toJS(pair, "", ctx);
|
243146
243146
|
}
|
243147
|
-
if (map4.has(
|
243147
|
+
if (map4.has(key3))
|
243148
243148
|
throw new Error("Ordered maps must not include duplicate keys");
|
243149
|
-
map4.set(
|
243149
|
+
map4.set(key3, value5);
|
243150
243150
|
}
|
243151
243151
|
return map4;
|
243152
243152
|
}
|
@@ -243167,12 +243167,12 @@ var require_omap = __commonJS((exports) => {
|
|
243167
243167
|
resolve(seq, onError) {
|
243168
243168
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
243169
243169
|
const seenKeys = [];
|
243170
|
-
for (const { key:
|
243171
|
-
if (identity2.isScalar(
|
243172
|
-
if (seenKeys.includes(
|
243173
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
243170
|
+
for (const { key: key3 } of pairs$1.items) {
|
243171
|
+
if (identity2.isScalar(key3)) {
|
243172
|
+
if (seenKeys.includes(key3.value)) {
|
243173
|
+
onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
|
243174
243174
|
} else {
|
243175
|
-
seenKeys.push(
|
243175
|
+
seenKeys.push(key3.value);
|
243176
243176
|
}
|
243177
243177
|
}
|
243178
243178
|
}
|
@@ -243346,30 +243346,30 @@ var require_set = __commonJS((exports) => {
|
|
243346
243346
|
super(schema);
|
243347
243347
|
this.tag = YAMLSet.tag;
|
243348
243348
|
}
|
243349
|
-
add(
|
243349
|
+
add(key3) {
|
243350
243350
|
let pair;
|
243351
|
-
if (identity2.isPair(
|
243352
|
-
pair =
|
243353
|
-
else if (
|
243354
|
-
pair = new Pair.Pair(
|
243351
|
+
if (identity2.isPair(key3))
|
243352
|
+
pair = key3;
|
243353
|
+
else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
|
243354
|
+
pair = new Pair.Pair(key3.key, null);
|
243355
243355
|
else
|
243356
|
-
pair = new Pair.Pair(
|
243356
|
+
pair = new Pair.Pair(key3, null);
|
243357
243357
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
243358
243358
|
if (!prev)
|
243359
243359
|
this.items.push(pair);
|
243360
243360
|
}
|
243361
|
-
get(
|
243362
|
-
const pair = YAMLMap.findPair(this.items,
|
243361
|
+
get(key3, keepPair) {
|
243362
|
+
const pair = YAMLMap.findPair(this.items, key3);
|
243363
243363
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
243364
243364
|
}
|
243365
|
-
set(
|
243365
|
+
set(key3, value5) {
|
243366
243366
|
if (typeof value5 !== "boolean")
|
243367
243367
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value5}`);
|
243368
|
-
const prev = YAMLMap.findPair(this.items,
|
243368
|
+
const prev = YAMLMap.findPair(this.items, key3);
|
243369
243369
|
if (prev && !value5) {
|
243370
243370
|
this.items.splice(this.items.indexOf(prev), 1);
|
243371
243371
|
} else if (!prev && value5) {
|
243372
|
-
this.items.push(new Pair.Pair(
|
243372
|
+
this.items.push(new Pair.Pair(key3));
|
243373
243373
|
}
|
243374
243374
|
}
|
243375
243375
|
toJSON(_6, ctx) {
|
@@ -243604,7 +243604,7 @@ var require_tags = __commonJS((exports) => {
|
|
243604
243604
|
if (Array.isArray(customTags))
|
243605
243605
|
tags = [];
|
243606
243606
|
else {
|
243607
|
-
const keys = Array.from(schemas3.keys()).filter((
|
243607
|
+
const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
|
243608
243608
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
243609
243609
|
}
|
243610
243610
|
}
|
@@ -243620,7 +243620,7 @@ var require_tags = __commonJS((exports) => {
|
|
243620
243620
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
243621
243621
|
if (!tagObj) {
|
243622
243622
|
const tagName = JSON.stringify(tag);
|
243623
|
-
const keys = Object.keys(tagsByName).map((
|
243623
|
+
const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
|
243624
243624
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
243625
243625
|
}
|
243626
243626
|
if (!tags2.includes(tagObj))
|
@@ -243855,13 +243855,13 @@ var require_Document = __commonJS((exports) => {
|
|
243855
243855
|
setAnchors();
|
243856
243856
|
return node;
|
243857
243857
|
}
|
243858
|
-
createPair(
|
243859
|
-
const k6 = this.createNode(
|
243858
|
+
createPair(key3, value5, options = {}) {
|
243859
|
+
const k6 = this.createNode(key3, null, options);
|
243860
243860
|
const v7 = this.createNode(value5, null, options);
|
243861
243861
|
return new Pair.Pair(k6, v7);
|
243862
243862
|
}
|
243863
|
-
delete(
|
243864
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
243863
|
+
delete(key3) {
|
243864
|
+
return assertCollection(this.contents) ? this.contents.delete(key3) : false;
|
243865
243865
|
}
|
243866
243866
|
deleteIn(path5) {
|
243867
243867
|
if (Collection.isEmptyPath(path5)) {
|
@@ -243872,27 +243872,27 @@ var require_Document = __commonJS((exports) => {
|
|
243872
243872
|
}
|
243873
243873
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
243874
243874
|
}
|
243875
|
-
get(
|
243876
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
243875
|
+
get(key3, keepScalar) {
|
243876
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
|
243877
243877
|
}
|
243878
243878
|
getIn(path5, keepScalar) {
|
243879
243879
|
if (Collection.isEmptyPath(path5))
|
243880
243880
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
243881
243881
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
243882
243882
|
}
|
243883
|
-
has(
|
243884
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
243883
|
+
has(key3) {
|
243884
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
|
243885
243885
|
}
|
243886
243886
|
hasIn(path5) {
|
243887
243887
|
if (Collection.isEmptyPath(path5))
|
243888
243888
|
return this.contents !== undefined;
|
243889
243889
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
243890
243890
|
}
|
243891
|
-
set(
|
243891
|
+
set(key3, value5) {
|
243892
243892
|
if (this.contents == null) {
|
243893
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
243893
|
+
this.contents = Collection.collectionFromPath(this.schema, [key3], value5);
|
243894
243894
|
} else if (assertCollection(this.contents)) {
|
243895
|
-
this.contents.set(
|
243895
|
+
this.contents.set(key3, value5);
|
243896
243896
|
}
|
243897
243897
|
}
|
243898
243898
|
setIn(path5, value5) {
|
@@ -244174,25 +244174,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
244174
244174
|
|
244175
244175
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
244176
244176
|
var require_util_contains_newline = __commonJS((exports) => {
|
244177
|
-
function containsNewline(
|
244178
|
-
if (!
|
244177
|
+
function containsNewline(key3) {
|
244178
|
+
if (!key3)
|
244179
244179
|
return null;
|
244180
|
-
switch (
|
244180
|
+
switch (key3.type) {
|
244181
244181
|
case "alias":
|
244182
244182
|
case "scalar":
|
244183
244183
|
case "double-quoted-scalar":
|
244184
244184
|
case "single-quoted-scalar":
|
244185
|
-
if (
|
244185
|
+
if (key3.source.includes(`
|
244186
244186
|
`))
|
244187
244187
|
return true;
|
244188
|
-
if (
|
244189
|
-
for (const st2 of
|
244188
|
+
if (key3.end) {
|
244189
|
+
for (const st2 of key3.end)
|
244190
244190
|
if (st2.type === "newline")
|
244191
244191
|
return true;
|
244192
244192
|
}
|
244193
244193
|
return false;
|
244194
244194
|
case "flow-collection":
|
244195
|
-
for (const it2 of
|
244195
|
+
for (const it2 of key3.items) {
|
244196
244196
|
for (const st2 of it2.start)
|
244197
244197
|
if (st2.type === "newline")
|
244198
244198
|
return true;
|
@@ -244257,10 +244257,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244257
244257
|
let offset = bm.offset;
|
244258
244258
|
let commentEnd = null;
|
244259
244259
|
for (const collItem of bm.items) {
|
244260
|
-
const { start: start3, key:
|
244260
|
+
const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
|
244261
244261
|
const keyProps = resolveProps.resolveProps(start3, {
|
244262
244262
|
indicator: "explicit-key-ind",
|
244263
|
-
next:
|
244263
|
+
next: key3 ?? sep4?.[0],
|
244264
244264
|
offset,
|
244265
244265
|
onError,
|
244266
244266
|
parentIndent: bm.indent,
|
@@ -244268,10 +244268,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244268
244268
|
});
|
244269
244269
|
const implicitKey = !keyProps.found;
|
244270
244270
|
if (implicitKey) {
|
244271
|
-
if (
|
244272
|
-
if (
|
244271
|
+
if (key3) {
|
244272
|
+
if (key3.type === "block-seq")
|
244273
244273
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
244274
|
-
else if ("indent" in
|
244274
|
+
else if ("indent" in key3 && key3.indent !== bm.indent)
|
244275
244275
|
onError(offset, "BAD_INDENT", startColMsg);
|
244276
244276
|
}
|
244277
244277
|
if (!keyProps.anchor && !keyProps.tag && !sep4) {
|
@@ -244285,17 +244285,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244285
244285
|
}
|
244286
244286
|
continue;
|
244287
244287
|
}
|
244288
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
244289
|
-
onError(
|
244288
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
|
244289
|
+
onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
244290
244290
|
}
|
244291
244291
|
} else if (keyProps.found?.indent !== bm.indent) {
|
244292
244292
|
onError(offset, "BAD_INDENT", startColMsg);
|
244293
244293
|
}
|
244294
244294
|
ctx.atKey = true;
|
244295
244295
|
const keyStart = keyProps.end;
|
244296
|
-
const keyNode =
|
244296
|
+
const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
244297
244297
|
if (ctx.schema.compat)
|
244298
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
244298
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
|
244299
244299
|
ctx.atKey = false;
|
244300
244300
|
if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
|
244301
244301
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -244305,7 +244305,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
244305
244305
|
offset: keyNode.range[2],
|
244306
244306
|
onError,
|
244307
244307
|
parentIndent: bm.indent,
|
244308
|
-
startOnNewline: !
|
244308
|
+
startOnNewline: !key3 || key3.type === "block-scalar"
|
244309
244309
|
});
|
244310
244310
|
offset = valueProps.end;
|
244311
244311
|
if (valueProps.found) {
|
@@ -244461,11 +244461,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244461
244461
|
let offset = fc.offset + fc.start.source.length;
|
244462
244462
|
for (let i8 = 0;i8 < fc.items.length; ++i8) {
|
244463
244463
|
const collItem = fc.items[i8];
|
244464
|
-
const { start: start3, key:
|
244464
|
+
const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
|
244465
244465
|
const props = resolveProps.resolveProps(start3, {
|
244466
244466
|
flow: fcName,
|
244467
244467
|
indicator: "explicit-key-ind",
|
244468
|
-
next:
|
244468
|
+
next: key3 ?? sep4?.[0],
|
244469
244469
|
offset,
|
244470
244470
|
onError,
|
244471
244471
|
parentIndent: fc.indent,
|
@@ -244487,8 +244487,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244487
244487
|
offset = props.end;
|
244488
244488
|
continue;
|
244489
244489
|
}
|
244490
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
244491
|
-
onError(
|
244490
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
|
244491
|
+
onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
244492
244492
|
}
|
244493
244493
|
if (i8 === 0) {
|
244494
244494
|
if (props.comma)
|
@@ -244533,8 +244533,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
244533
244533
|
} else {
|
244534
244534
|
ctx.atKey = true;
|
244535
244535
|
const keyStart = props.end;
|
244536
|
-
const keyNode =
|
244537
|
-
if (isBlock(
|
244536
|
+
const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
244537
|
+
if (isBlock(key3))
|
244538
244538
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
244539
244539
|
ctx.atKey = false;
|
244540
244540
|
const valueProps = resolveProps.resolveProps(sep4 ?? [], {
|
@@ -245345,7 +245345,7 @@ var require_composer = __commonJS((exports) => {
|
|
245345
245345
|
var node_process = __require("process");
|
245346
245346
|
var directives5 = require_directives2();
|
245347
245347
|
var Document = require_Document();
|
245348
|
-
var
|
245348
|
+
var errors5 = require_errors3();
|
245349
245349
|
var identity2 = require_identity();
|
245350
245350
|
var composeDoc = require_compose_doc();
|
245351
245351
|
var resolveEnd = require_resolve_end();
|
@@ -245396,9 +245396,9 @@ var require_composer = __commonJS((exports) => {
|
|
245396
245396
|
this.onError = (source, code2, message, warning) => {
|
245397
245397
|
const pos = getErrorPos(source);
|
245398
245398
|
if (warning)
|
245399
|
-
this.warnings.push(new
|
245399
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
245400
245400
|
else
|
245401
|
-
this.errors.push(new
|
245401
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
245402
245402
|
};
|
245403
245403
|
this.directives = new directives5.Directives({ version: options.version || "1.2" });
|
245404
245404
|
this.options = options;
|
@@ -245482,7 +245482,7 @@ ${cb}` : comment;
|
|
245482
245482
|
break;
|
245483
245483
|
case "error": {
|
245484
245484
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
245485
|
-
const error48 = new
|
245485
|
+
const error48 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
245486
245486
|
if (this.atDirectives || !this.doc)
|
245487
245487
|
this.errors.push(error48);
|
245488
245488
|
else
|
@@ -245492,7 +245492,7 @@ ${cb}` : comment;
|
|
245492
245492
|
case "doc-end": {
|
245493
245493
|
if (!this.doc) {
|
245494
245494
|
const msg = "Unexpected doc-end without preceding document";
|
245495
|
-
this.errors.push(new
|
245495
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
245496
245496
|
break;
|
245497
245497
|
}
|
245498
245498
|
this.doc.directives.docEnd = true;
|
@@ -245507,7 +245507,7 @@ ${end.comment}` : end.comment;
|
|
245507
245507
|
break;
|
245508
245508
|
}
|
245509
245509
|
default:
|
245510
|
-
this.errors.push(new
|
245510
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
245511
245511
|
}
|
245512
245512
|
}
|
245513
245513
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -245533,7 +245533,7 @@ ${end.comment}` : end.comment;
|
|
245533
245533
|
var require_cst_scalar = __commonJS((exports) => {
|
245534
245534
|
var resolveBlockScalar = require_resolve_block_scalar();
|
245535
245535
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
245536
|
-
var
|
245536
|
+
var errors5 = require_errors3();
|
245537
245537
|
var stringifyString = require_stringifyString();
|
245538
245538
|
function resolveAsScalar(token, strict = true, onError) {
|
245539
245539
|
if (token) {
|
@@ -245542,7 +245542,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245542
245542
|
if (onError)
|
245543
245543
|
onError(offset, code2, message);
|
245544
245544
|
else
|
245545
|
-
throw new
|
245545
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
245546
245546
|
};
|
245547
245547
|
switch (token.type) {
|
245548
245548
|
case "scalar":
|
@@ -245656,9 +245656,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245656
245656
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
245657
245657
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
245658
245658
|
` });
|
245659
|
-
for (const
|
245660
|
-
if (
|
245661
|
-
delete token[
|
245659
|
+
for (const key3 of Object.keys(token))
|
245660
|
+
if (key3 !== "type" && key3 !== "offset")
|
245661
|
+
delete token[key3];
|
245662
245662
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
245663
245663
|
}
|
245664
245664
|
}
|
@@ -245707,9 +245707,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
245707
245707
|
default: {
|
245708
245708
|
const indent2 = "indent" in token ? token.indent : -1;
|
245709
245709
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
245710
|
-
for (const
|
245711
|
-
if (
|
245712
|
-
delete token[
|
245710
|
+
for (const key3 of Object.keys(token))
|
245711
|
+
if (key3 !== "type" && key3 !== "offset")
|
245712
|
+
delete token[key3];
|
245713
245713
|
Object.assign(token, { type: type5, indent: indent2, source, end });
|
245714
245714
|
}
|
245715
245715
|
}
|
@@ -245761,12 +245761,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
245761
245761
|
}
|
245762
245762
|
}
|
245763
245763
|
}
|
245764
|
-
function stringifyItem({ start: start3, key:
|
245764
|
+
function stringifyItem({ start: start3, key: key3, sep: sep4, value: value5 }) {
|
245765
245765
|
let res = "";
|
245766
245766
|
for (const st2 of start3)
|
245767
245767
|
res += st2.source;
|
245768
|
-
if (
|
245769
|
-
res += stringifyToken(
|
245768
|
+
if (key3)
|
245769
|
+
res += stringifyToken(key3);
|
245770
245770
|
if (sep4)
|
245771
245771
|
for (const st2 of sep4)
|
245772
245772
|
res += st2.source;
|
@@ -247062,7 +247062,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247062
247062
|
});
|
247063
247063
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
247064
247064
|
const start4 = getFirstKeyStartProps(it2.start);
|
247065
|
-
const
|
247065
|
+
const key3 = it2.key;
|
247066
247066
|
const sep4 = it2.sep;
|
247067
247067
|
sep4.push(this.sourceToken);
|
247068
247068
|
delete it2.key;
|
@@ -247071,7 +247071,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247071
247071
|
type: "block-map",
|
247072
247072
|
offset: this.offset,
|
247073
247073
|
indent: this.indent,
|
247074
|
-
items: [{ start: start4, key:
|
247074
|
+
items: [{ start: start4, key: key3, sep: sep4 }]
|
247075
247075
|
});
|
247076
247076
|
} else if (start3.length > 0) {
|
247077
247077
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -247404,7 +247404,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
247404
247404
|
var require_public_api = __commonJS((exports) => {
|
247405
247405
|
var composer = require_composer();
|
247406
247406
|
var Document = require_Document();
|
247407
|
-
var
|
247407
|
+
var errors5 = require_errors3();
|
247408
247408
|
var log = require_log();
|
247409
247409
|
var identity2 = require_identity();
|
247410
247410
|
var lineCounter = require_line_counter();
|
@@ -247421,8 +247421,8 @@ var require_public_api = __commonJS((exports) => {
|
|
247421
247421
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
247422
247422
|
if (prettyErrors && lineCounter2)
|
247423
247423
|
for (const doc2 of docs) {
|
247424
|
-
doc2.errors.forEach(
|
247425
|
-
doc2.warnings.forEach(
|
247424
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
247425
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
247426
247426
|
}
|
247427
247427
|
if (docs.length > 0)
|
247428
247428
|
return docs;
|
@@ -247437,13 +247437,13 @@ var require_public_api = __commonJS((exports) => {
|
|
247437
247437
|
if (!doc2)
|
247438
247438
|
doc2 = _doc;
|
247439
247439
|
else if (doc2.options.logLevel !== "silent") {
|
247440
|
-
doc2.errors.push(new
|
247440
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
247441
247441
|
break;
|
247442
247442
|
}
|
247443
247443
|
}
|
247444
247444
|
if (prettyErrors && lineCounter2) {
|
247445
|
-
doc2.errors.forEach(
|
247446
|
-
doc2.warnings.forEach(
|
247445
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
247446
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
247447
247447
|
}
|
247448
247448
|
return doc2;
|
247449
247449
|
}
|
@@ -247510,14 +247510,14 @@ var {
|
|
247510
247510
|
Help
|
247511
247511
|
} = import__.default;
|
247512
247512
|
|
247513
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247513
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
|
247514
247514
|
var isUpKey = (key) => key.name === "up";
|
247515
247515
|
var isDownKey = (key) => key.name === "down";
|
247516
247516
|
var isBackspaceKey = (key) => key.name === "backspace";
|
247517
247517
|
var isTabKey = (key) => key.name === "tab";
|
247518
247518
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
247519
247519
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
247520
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247520
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
247521
247521
|
class AbortPromptError extends Error {
|
247522
247522
|
name = "AbortPromptError";
|
247523
247523
|
message = "Prompt was aborted";
|
@@ -247543,10 +247543,10 @@ class HookError extends Error {
|
|
247543
247543
|
class ValidationError extends Error {
|
247544
247544
|
name = "ValidationError";
|
247545
247545
|
}
|
247546
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247546
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
247547
247547
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
247548
247548
|
|
247549
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247549
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
247550
247550
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
247551
247551
|
var hookStorage = new AsyncLocalStorage;
|
247552
247552
|
function createStore(rl) {
|
@@ -247651,7 +247651,7 @@ var effectScheduler = {
|
|
247651
247651
|
}
|
247652
247652
|
};
|
247653
247653
|
|
247654
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247654
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
247655
247655
|
function useState(defaultValue) {
|
247656
247656
|
return withPointer((pointer) => {
|
247657
247657
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
@@ -247669,7 +247669,7 @@ function useState(defaultValue) {
|
|
247669
247669
|
});
|
247670
247670
|
}
|
247671
247671
|
|
247672
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247672
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
247673
247673
|
function useEffect(cb, depArray) {
|
247674
247674
|
withPointer((pointer) => {
|
247675
247675
|
const oldDeps = pointer.get();
|
@@ -247681,7 +247681,7 @@ function useEffect(cb, depArray) {
|
|
247681
247681
|
});
|
247682
247682
|
}
|
247683
247683
|
|
247684
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247684
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
247685
247685
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
247686
247686
|
|
247687
247687
|
// ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
|
@@ -247970,7 +247970,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
247970
247970
|
var esm_default = figures;
|
247971
247971
|
var replacements = Object.entries(specialMainSymbols);
|
247972
247972
|
|
247973
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247973
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
247974
247974
|
var defaultTheme = {
|
247975
247975
|
prefix: {
|
247976
247976
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
@@ -247991,7 +247991,7 @@ var defaultTheme = {
|
|
247991
247991
|
}
|
247992
247992
|
};
|
247993
247993
|
|
247994
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
247994
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
247995
247995
|
function isPlainObject(value) {
|
247996
247996
|
if (typeof value !== "object" || value === null)
|
247997
247997
|
return false;
|
@@ -248019,7 +248019,7 @@ function makeTheme(...themes) {
|
|
248019
248019
|
return deepMerge(...themesToMerge);
|
248020
248020
|
}
|
248021
248021
|
|
248022
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248022
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
248023
248023
|
function usePrefix({ status = "idle", theme }) {
|
248024
248024
|
const [showLoader, setShowLoader] = useState(false);
|
248025
248025
|
const [tick, setTick] = useState(0);
|
@@ -248049,7 +248049,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
248049
248049
|
const iconName = status === "loading" ? "idle" : status;
|
248050
248050
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
248051
248051
|
}
|
248052
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248052
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
248053
248053
|
function useMemo(fn, dependencies) {
|
248054
248054
|
return withPointer((pointer) => {
|
248055
248055
|
const prev = pointer.get();
|
@@ -248061,11 +248061,11 @@ function useMemo(fn, dependencies) {
|
|
248061
248061
|
return prev.value;
|
248062
248062
|
});
|
248063
248063
|
}
|
248064
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248064
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
248065
248065
|
function useRef(val) {
|
248066
248066
|
return useState({ current: val })[0];
|
248067
248067
|
}
|
248068
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248068
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
248069
248069
|
function useKeypress(userHandler) {
|
248070
248070
|
const signal = useRef(userHandler);
|
248071
248071
|
signal.current = userHandler;
|
@@ -248083,7 +248083,7 @@ function useKeypress(userHandler) {
|
|
248083
248083
|
};
|
248084
248084
|
}, []);
|
248085
248085
|
}
|
248086
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248086
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
248087
248087
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
248088
248088
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
248089
248089
|
function breakLines(content, width) {
|
@@ -248096,7 +248096,7 @@ function readlineWidth() {
|
|
248096
248096
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
248097
248097
|
}
|
248098
248098
|
|
248099
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248099
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
248100
248100
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
248101
248101
|
const state = useRef({
|
248102
248102
|
lastPointer: active,
|
@@ -248162,7 +248162,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
248162
248162
|
return pageBuffer.filter((line) => typeof line === "string").join(`
|
248163
248163
|
`);
|
248164
248164
|
}
|
248165
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248165
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
248166
248166
|
var import_mute_stream = __toESM(require_lib(), 1);
|
248167
248167
|
import * as readline2 from "node:readline";
|
248168
248168
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
@@ -248375,16 +248375,30 @@ var {
|
|
248375
248375
|
unload
|
248376
248376
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
248377
248377
|
|
248378
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248379
|
-
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
248378
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
248380
248379
|
import { stripVTControlCharacters } from "node:util";
|
248380
|
+
|
248381
|
+
// ../../node_modules/.bun/@inquirer+ansi@1.0.0/node_modules/@inquirer/ansi/dist/esm/index.js
|
248382
|
+
var ESC = "\x1B[";
|
248383
|
+
var cursorLeft = ESC + "G";
|
248384
|
+
var cursorHide = ESC + "?25l";
|
248385
|
+
var cursorShow = ESC + "?25h";
|
248386
|
+
var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
|
248387
|
+
var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
|
248388
|
+
var cursorTo = (x, y) => {
|
248389
|
+
if (typeof y === "number" && !Number.isNaN(y)) {
|
248390
|
+
return `${ESC}${y + 1};${x + 1}H`;
|
248391
|
+
}
|
248392
|
+
return `${ESC}${x + 1}G`;
|
248393
|
+
};
|
248394
|
+
var eraseLine = ESC + "2K";
|
248395
|
+
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
248396
|
+
|
248397
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
248381
248398
|
var height = (content) => content.split(`
|
248382
248399
|
`).length;
|
248383
248400
|
var lastLine = (content) => content.split(`
|
248384
248401
|
`).pop() ?? "";
|
248385
|
-
function cursorDown(n) {
|
248386
|
-
return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";
|
248387
|
-
}
|
248388
248402
|
|
248389
248403
|
class ScreenManager {
|
248390
248404
|
height = 0;
|
@@ -248421,31 +248435,31 @@ class ScreenManager {
|
|
248421
248435
|
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
248422
248436
|
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
|
248423
248437
|
if (bottomContentHeight > 0)
|
248424
|
-
output +=
|
248425
|
-
output +=
|
248426
|
-
this.write(cursorDown(this.extraLinesUnderPrompt) +
|
248438
|
+
output += cursorUp(bottomContentHeight);
|
248439
|
+
output += cursorTo(this.cursorPos.cols);
|
248440
|
+
this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
|
248427
248441
|
this.extraLinesUnderPrompt = bottomContentHeight;
|
248428
248442
|
this.height = height(output);
|
248429
248443
|
}
|
248430
248444
|
checkCursorPos() {
|
248431
248445
|
const cursorPos = this.rl.getCursorPos();
|
248432
248446
|
if (cursorPos.cols !== this.cursorPos.cols) {
|
248433
|
-
this.write(
|
248447
|
+
this.write(cursorTo(cursorPos.cols));
|
248434
248448
|
this.cursorPos = cursorPos;
|
248435
248449
|
}
|
248436
248450
|
}
|
248437
248451
|
done({ clearContent }) {
|
248438
248452
|
this.rl.setPrompt("");
|
248439
248453
|
let output = cursorDown(this.extraLinesUnderPrompt);
|
248440
|
-
output += clearContent ?
|
248454
|
+
output += clearContent ? eraseLines(this.height) : `
|
248441
248455
|
`;
|
248442
|
-
output +=
|
248456
|
+
output += cursorShow;
|
248443
248457
|
this.write(output);
|
248444
248458
|
this.rl.close();
|
248445
248459
|
}
|
248446
248460
|
}
|
248447
248461
|
|
248448
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248462
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
248449
248463
|
class PromisePolyfill extends Promise {
|
248450
248464
|
static withResolver() {
|
248451
248465
|
let resolve;
|
@@ -248458,7 +248472,7 @@ class PromisePolyfill extends Promise {
|
|
248458
248472
|
}
|
248459
248473
|
}
|
248460
248474
|
|
248461
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248475
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
248462
248476
|
function getCallSites() {
|
248463
248477
|
const _prepareStackTrace = Error.prepareStackTrace;
|
248464
248478
|
let result = [];
|
@@ -248544,7 +248558,7 @@ function createPrompt(view) {
|
|
248544
248558
|
};
|
248545
248559
|
return prompt;
|
248546
248560
|
}
|
248547
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.
|
248561
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
248548
248562
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
248549
248563
|
class Separator {
|
248550
248564
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
@@ -267215,7 +267229,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
267215
267229
|
var package_default = {
|
267216
267230
|
name: "@settlemint/sdk-cli",
|
267217
267231
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
267218
|
-
version: "2.6.2-
|
267232
|
+
version: "2.6.2-pr0561d9c2",
|
267219
267233
|
type: "module",
|
267220
267234
|
private: false,
|
267221
267235
|
license: "FSL-1.1-MIT",
|
@@ -267258,22 +267272,22 @@ var package_default = {
|
|
267258
267272
|
},
|
267259
267273
|
dependencies: {
|
267260
267274
|
"@gql.tada/cli-utils": "1.7.1",
|
267261
|
-
"@inquirer/core": "10.2.
|
267275
|
+
"@inquirer/core": "10.2.2",
|
267262
267276
|
"node-fetch-native": "1.6.7",
|
267263
267277
|
zod: "^4"
|
267264
267278
|
},
|
267265
267279
|
devDependencies: {
|
267266
267280
|
"@commander-js/extra-typings": "14.0.0",
|
267267
267281
|
commander: "14.0.1",
|
267268
|
-
"@inquirer/confirm": "5.1.
|
267282
|
+
"@inquirer/confirm": "5.1.18",
|
267269
267283
|
"@inquirer/input": "4.2.2",
|
267270
|
-
"@inquirer/password": "4.0.
|
267271
|
-
"@inquirer/select": "4.3.
|
267272
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
267273
|
-
"@settlemint/sdk-js": "2.6.2-
|
267274
|
-
"@settlemint/sdk-utils": "2.6.2-
|
267275
|
-
"@settlemint/sdk-viem": "2.6.2-
|
267276
|
-
"@types/node": "24.
|
267284
|
+
"@inquirer/password": "4.0.20",
|
267285
|
+
"@inquirer/select": "4.3.4",
|
267286
|
+
"@settlemint/sdk-hasura": "2.6.2-pr0561d9c2",
|
267287
|
+
"@settlemint/sdk-js": "2.6.2-pr0561d9c2",
|
267288
|
+
"@settlemint/sdk-utils": "2.6.2-pr0561d9c2",
|
267289
|
+
"@settlemint/sdk-viem": "2.6.2-pr0561d9c2",
|
267290
|
+
"@types/node": "24.4.0",
|
267277
267291
|
"@types/semver": "7.7.1",
|
267278
267292
|
"@types/which": "3.0.4",
|
267279
267293
|
"get-tsconfig": "4.10.1",
|
@@ -267289,7 +267303,7 @@ var package_default = {
|
|
267289
267303
|
},
|
267290
267304
|
peerDependencies: {
|
267291
267305
|
hardhat: "<= 4",
|
267292
|
-
"@settlemint/sdk-js": "2.6.2-
|
267306
|
+
"@settlemint/sdk-js": "2.6.2-pr0561d9c2"
|
267293
267307
|
},
|
267294
267308
|
peerDependenciesMeta: {
|
267295
267309
|
hardhat: {
|
@@ -273107,23 +273121,481 @@ function sanitizeName(value5, length = 35) {
|
|
273107
273121
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
273108
273122
|
}
|
273109
273123
|
|
273110
|
-
// ../../node_modules/.bun/@inquirer+
|
273124
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
|
273125
|
+
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
273126
|
+
var isTabKey2 = (key2) => key2.name === "tab";
|
273127
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
273128
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
273129
|
+
class AbortPromptError2 extends Error {
|
273130
|
+
name = "AbortPromptError";
|
273131
|
+
message = "Prompt was aborted";
|
273132
|
+
constructor(options) {
|
273133
|
+
super();
|
273134
|
+
this.cause = options?.cause;
|
273135
|
+
}
|
273136
|
+
}
|
273137
|
+
|
273138
|
+
class CancelPromptError2 extends Error {
|
273139
|
+
name = "CancelPromptError";
|
273140
|
+
message = "Prompt was canceled";
|
273141
|
+
}
|
273142
|
+
|
273143
|
+
class ExitPromptError2 extends Error {
|
273144
|
+
name = "ExitPromptError";
|
273145
|
+
}
|
273146
|
+
|
273147
|
+
class HookError2 extends Error {
|
273148
|
+
name = "HookError";
|
273149
|
+
}
|
273150
|
+
|
273151
|
+
class ValidationError2 extends Error {
|
273152
|
+
name = "ValidationError";
|
273153
|
+
}
|
273154
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
273155
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
273156
|
+
|
273157
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
273158
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
273159
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
273160
|
+
function createStore2(rl) {
|
273161
|
+
const store = {
|
273162
|
+
rl,
|
273163
|
+
hooks: [],
|
273164
|
+
hooksCleanup: [],
|
273165
|
+
hooksEffect: [],
|
273166
|
+
index: 0,
|
273167
|
+
handleChange() {}
|
273168
|
+
};
|
273169
|
+
return store;
|
273170
|
+
}
|
273171
|
+
function withHooks2(rl, cb) {
|
273172
|
+
const store = createStore2(rl);
|
273173
|
+
return hookStorage2.run(store, () => {
|
273174
|
+
function cycle(render) {
|
273175
|
+
store.handleChange = () => {
|
273176
|
+
store.index = 0;
|
273177
|
+
render();
|
273178
|
+
};
|
273179
|
+
store.handleChange();
|
273180
|
+
}
|
273181
|
+
return cb(cycle);
|
273182
|
+
});
|
273183
|
+
}
|
273184
|
+
function getStore2() {
|
273185
|
+
const store = hookStorage2.getStore();
|
273186
|
+
if (!store) {
|
273187
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
273188
|
+
}
|
273189
|
+
return store;
|
273190
|
+
}
|
273191
|
+
function readline3() {
|
273192
|
+
return getStore2().rl;
|
273193
|
+
}
|
273194
|
+
function withUpdates2(fn) {
|
273195
|
+
const wrapped = (...args) => {
|
273196
|
+
const store = getStore2();
|
273197
|
+
let shouldUpdate = false;
|
273198
|
+
const oldHandleChange = store.handleChange;
|
273199
|
+
store.handleChange = () => {
|
273200
|
+
shouldUpdate = true;
|
273201
|
+
};
|
273202
|
+
const returnValue = fn(...args);
|
273203
|
+
if (shouldUpdate) {
|
273204
|
+
oldHandleChange();
|
273205
|
+
}
|
273206
|
+
store.handleChange = oldHandleChange;
|
273207
|
+
return returnValue;
|
273208
|
+
};
|
273209
|
+
return AsyncResource4.bind(wrapped);
|
273210
|
+
}
|
273211
|
+
function withPointer2(cb) {
|
273212
|
+
const store = getStore2();
|
273213
|
+
const { index } = store;
|
273214
|
+
const pointer = {
|
273215
|
+
get() {
|
273216
|
+
return store.hooks[index];
|
273217
|
+
},
|
273218
|
+
set(value5) {
|
273219
|
+
store.hooks[index] = value5;
|
273220
|
+
},
|
273221
|
+
initialized: index in store.hooks
|
273222
|
+
};
|
273223
|
+
const returnValue = cb(pointer);
|
273224
|
+
store.index++;
|
273225
|
+
return returnValue;
|
273226
|
+
}
|
273227
|
+
function handleChange2() {
|
273228
|
+
getStore2().handleChange();
|
273229
|
+
}
|
273230
|
+
var effectScheduler2 = {
|
273231
|
+
queue(cb) {
|
273232
|
+
const store = getStore2();
|
273233
|
+
const { index } = store;
|
273234
|
+
store.hooksEffect.push(() => {
|
273235
|
+
store.hooksCleanup[index]?.();
|
273236
|
+
const cleanFn = cb(readline3());
|
273237
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
273238
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
273239
|
+
}
|
273240
|
+
store.hooksCleanup[index] = cleanFn;
|
273241
|
+
});
|
273242
|
+
},
|
273243
|
+
run() {
|
273244
|
+
const store = getStore2();
|
273245
|
+
withUpdates2(() => {
|
273246
|
+
store.hooksEffect.forEach((effect) => {
|
273247
|
+
effect();
|
273248
|
+
});
|
273249
|
+
store.hooksEffect.length = 0;
|
273250
|
+
})();
|
273251
|
+
},
|
273252
|
+
clearAll() {
|
273253
|
+
const store = getStore2();
|
273254
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
273255
|
+
cleanFn?.();
|
273256
|
+
});
|
273257
|
+
store.hooksEffect.length = 0;
|
273258
|
+
store.hooksCleanup.length = 0;
|
273259
|
+
}
|
273260
|
+
};
|
273261
|
+
|
273262
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
273263
|
+
function useState2(defaultValue) {
|
273264
|
+
return withPointer2((pointer) => {
|
273265
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
273266
|
+
if (pointer.get() !== newValue) {
|
273267
|
+
pointer.set(newValue);
|
273268
|
+
handleChange2();
|
273269
|
+
}
|
273270
|
+
});
|
273271
|
+
if (pointer.initialized) {
|
273272
|
+
return [pointer.get(), setState];
|
273273
|
+
}
|
273274
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
273275
|
+
pointer.set(value5);
|
273276
|
+
return [value5, setState];
|
273277
|
+
});
|
273278
|
+
}
|
273279
|
+
|
273280
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
273281
|
+
function useEffect2(cb, depArray) {
|
273282
|
+
withPointer2((pointer) => {
|
273283
|
+
const oldDeps = pointer.get();
|
273284
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
273285
|
+
if (hasChanged) {
|
273286
|
+
effectScheduler2.queue(cb);
|
273287
|
+
}
|
273288
|
+
pointer.set(depArray);
|
273289
|
+
});
|
273290
|
+
}
|
273291
|
+
|
273292
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
273293
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
273294
|
+
var defaultTheme2 = {
|
273295
|
+
prefix: {
|
273296
|
+
idle: import_yoctocolors_cjs3.default.blue("?"),
|
273297
|
+
done: import_yoctocolors_cjs3.default.green(esm_default.tick)
|
273298
|
+
},
|
273299
|
+
spinner: {
|
273300
|
+
interval: 80,
|
273301
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
273302
|
+
},
|
273303
|
+
style: {
|
273304
|
+
answer: import_yoctocolors_cjs3.default.cyan,
|
273305
|
+
message: import_yoctocolors_cjs3.default.bold,
|
273306
|
+
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
273307
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
273308
|
+
help: import_yoctocolors_cjs3.default.dim,
|
273309
|
+
highlight: import_yoctocolors_cjs3.default.cyan,
|
273310
|
+
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
273311
|
+
}
|
273312
|
+
};
|
273313
|
+
|
273314
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
273315
|
+
function isPlainObject4(value5) {
|
273316
|
+
if (typeof value5 !== "object" || value5 === null)
|
273317
|
+
return false;
|
273318
|
+
let proto = value5;
|
273319
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
273320
|
+
proto = Object.getPrototypeOf(proto);
|
273321
|
+
}
|
273322
|
+
return Object.getPrototypeOf(value5) === proto;
|
273323
|
+
}
|
273324
|
+
function deepMerge3(...objects) {
|
273325
|
+
const output = {};
|
273326
|
+
for (const obj of objects) {
|
273327
|
+
for (const [key2, value5] of Object.entries(obj)) {
|
273328
|
+
const prevValue = output[key2];
|
273329
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
273330
|
+
}
|
273331
|
+
}
|
273332
|
+
return output;
|
273333
|
+
}
|
273334
|
+
function makeTheme2(...themes) {
|
273335
|
+
const themesToMerge = [
|
273336
|
+
defaultTheme2,
|
273337
|
+
...themes.filter((theme) => theme != null)
|
273338
|
+
];
|
273339
|
+
return deepMerge3(...themesToMerge);
|
273340
|
+
}
|
273341
|
+
|
273342
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
273343
|
+
function usePrefix2({ status = "idle", theme }) {
|
273344
|
+
const [showLoader, setShowLoader] = useState2(false);
|
273345
|
+
const [tick, setTick] = useState2(0);
|
273346
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
273347
|
+
useEffect2(() => {
|
273348
|
+
if (status === "loading") {
|
273349
|
+
let tickInterval;
|
273350
|
+
let inc = -1;
|
273351
|
+
const delayTimeout = setTimeout(() => {
|
273352
|
+
setShowLoader(true);
|
273353
|
+
tickInterval = setInterval(() => {
|
273354
|
+
inc = inc + 1;
|
273355
|
+
setTick(inc % spinner2.frames.length);
|
273356
|
+
}, spinner2.interval);
|
273357
|
+
}, 300);
|
273358
|
+
return () => {
|
273359
|
+
clearTimeout(delayTimeout);
|
273360
|
+
clearInterval(tickInterval);
|
273361
|
+
};
|
273362
|
+
} else {
|
273363
|
+
setShowLoader(false);
|
273364
|
+
}
|
273365
|
+
}, [status]);
|
273366
|
+
if (showLoader) {
|
273367
|
+
return spinner2.frames[tick];
|
273368
|
+
}
|
273369
|
+
const iconName = status === "loading" ? "idle" : status;
|
273370
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
273371
|
+
}
|
273372
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
273373
|
+
function useRef2(val) {
|
273374
|
+
return useState2({ current: val })[0];
|
273375
|
+
}
|
273376
|
+
|
273377
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
273378
|
+
function useKeypress2(userHandler) {
|
273379
|
+
const signal = useRef2(userHandler);
|
273380
|
+
signal.current = userHandler;
|
273381
|
+
useEffect2((rl) => {
|
273382
|
+
let ignore = false;
|
273383
|
+
const handler = withUpdates2((_input, event) => {
|
273384
|
+
if (ignore)
|
273385
|
+
return;
|
273386
|
+
signal.current(event, rl);
|
273387
|
+
});
|
273388
|
+
rl.input.on("keypress", handler);
|
273389
|
+
return () => {
|
273390
|
+
ignore = true;
|
273391
|
+
rl.input.removeListener("keypress", handler);
|
273392
|
+
};
|
273393
|
+
}, []);
|
273394
|
+
}
|
273395
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
273396
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
273397
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
273398
|
+
function breakLines2(content, width) {
|
273399
|
+
return content.split(`
|
273400
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
273401
|
+
`).map((str) => str.trimEnd())).join(`
|
273402
|
+
`);
|
273403
|
+
}
|
273404
|
+
function readlineWidth2() {
|
273405
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
273406
|
+
}
|
273407
|
+
|
273408
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
273409
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
273410
|
+
import * as readline4 from "node:readline";
|
273411
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
273412
|
+
|
273413
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
273414
|
+
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
273415
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
273416
|
+
var height2 = (content) => content.split(`
|
273417
|
+
`).length;
|
273418
|
+
var lastLine2 = (content) => content.split(`
|
273419
|
+
`).pop() ?? "";
|
273420
|
+
function cursorDown2(n7) {
|
273421
|
+
return n7 > 0 ? import_ansi_escapes.default.cursorDown(n7) : "";
|
273422
|
+
}
|
273423
|
+
|
273424
|
+
class ScreenManager2 {
|
273425
|
+
height = 0;
|
273426
|
+
extraLinesUnderPrompt = 0;
|
273427
|
+
cursorPos;
|
273428
|
+
rl;
|
273429
|
+
constructor(rl) {
|
273430
|
+
this.rl = rl;
|
273431
|
+
this.cursorPos = rl.getCursorPos();
|
273432
|
+
}
|
273433
|
+
write(content) {
|
273434
|
+
this.rl.output.unmute();
|
273435
|
+
this.rl.output.write(content);
|
273436
|
+
this.rl.output.mute();
|
273437
|
+
}
|
273438
|
+
render(content, bottomContent = "") {
|
273439
|
+
const promptLine = lastLine2(content);
|
273440
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
273441
|
+
let prompt = rawPromptLine;
|
273442
|
+
if (this.rl.line.length > 0) {
|
273443
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
273444
|
+
}
|
273445
|
+
this.rl.setPrompt(prompt);
|
273446
|
+
this.cursorPos = this.rl.getCursorPos();
|
273447
|
+
const width = readlineWidth2();
|
273448
|
+
content = breakLines2(content, width);
|
273449
|
+
bottomContent = breakLines2(bottomContent, width);
|
273450
|
+
if (rawPromptLine.length % width === 0) {
|
273451
|
+
content += `
|
273452
|
+
`;
|
273453
|
+
}
|
273454
|
+
let output = content + (bottomContent ? `
|
273455
|
+
` + bottomContent : "");
|
273456
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
273457
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
273458
|
+
if (bottomContentHeight > 0)
|
273459
|
+
output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
|
273460
|
+
output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
|
273461
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
|
273462
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
273463
|
+
this.height = height2(output);
|
273464
|
+
}
|
273465
|
+
checkCursorPos() {
|
273466
|
+
const cursorPos = this.rl.getCursorPos();
|
273467
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
273468
|
+
this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
|
273469
|
+
this.cursorPos = cursorPos;
|
273470
|
+
}
|
273471
|
+
}
|
273472
|
+
done({ clearContent }) {
|
273473
|
+
this.rl.setPrompt("");
|
273474
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
273475
|
+
output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
|
273476
|
+
`;
|
273477
|
+
output += import_ansi_escapes.default.cursorShow;
|
273478
|
+
this.write(output);
|
273479
|
+
this.rl.close();
|
273480
|
+
}
|
273481
|
+
}
|
273482
|
+
|
273483
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
273484
|
+
class PromisePolyfill2 extends Promise {
|
273485
|
+
static withResolver() {
|
273486
|
+
let resolve6;
|
273487
|
+
let reject;
|
273488
|
+
const promise2 = new Promise((res, rej) => {
|
273489
|
+
resolve6 = res;
|
273490
|
+
reject = rej;
|
273491
|
+
});
|
273492
|
+
return { promise: promise2, resolve: resolve6, reject };
|
273493
|
+
}
|
273494
|
+
}
|
273495
|
+
|
273496
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
273497
|
+
function getCallSites2() {
|
273498
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
273499
|
+
let result = [];
|
273500
|
+
try {
|
273501
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
273502
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
273503
|
+
result = callSitesWithoutCurrent;
|
273504
|
+
return callSitesWithoutCurrent;
|
273505
|
+
};
|
273506
|
+
new Error().stack;
|
273507
|
+
} catch {
|
273508
|
+
return result;
|
273509
|
+
}
|
273510
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
273511
|
+
return result;
|
273512
|
+
}
|
273513
|
+
function createPrompt2(view) {
|
273514
|
+
const callSites = getCallSites2();
|
273515
|
+
const prompt = (config3, context = {}) => {
|
273516
|
+
const { input = process.stdin, signal } = context;
|
273517
|
+
const cleanups = new Set;
|
273518
|
+
const output = new import_mute_stream2.default;
|
273519
|
+
output.pipe(context.output ?? process.stdout);
|
273520
|
+
const rl = readline4.createInterface({
|
273521
|
+
terminal: true,
|
273522
|
+
input,
|
273523
|
+
output
|
273524
|
+
});
|
273525
|
+
const screen = new ScreenManager2(rl);
|
273526
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
273527
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
273528
|
+
if (signal) {
|
273529
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
273530
|
+
if (signal.aborted) {
|
273531
|
+
abort();
|
273532
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
273533
|
+
}
|
273534
|
+
signal.addEventListener("abort", abort);
|
273535
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
273536
|
+
}
|
273537
|
+
cleanups.add(onExit((code2, signal2) => {
|
273538
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
273539
|
+
}));
|
273540
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
273541
|
+
rl.on("SIGINT", sigint);
|
273542
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
273543
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
273544
|
+
rl.input.on("keypress", checkCursorPos);
|
273545
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
273546
|
+
return withHooks2(rl, (cycle) => {
|
273547
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
273548
|
+
rl.on("close", hooksCleanup);
|
273549
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
273550
|
+
cycle(() => {
|
273551
|
+
try {
|
273552
|
+
const nextView = view(config3, (value5) => {
|
273553
|
+
setImmediate(() => resolve6(value5));
|
273554
|
+
});
|
273555
|
+
if (nextView === undefined) {
|
273556
|
+
const callerFilename = callSites[1]?.getFileName();
|
273557
|
+
throw new Error(`Prompt functions must return a string.
|
273558
|
+
at ${callerFilename}`);
|
273559
|
+
}
|
273560
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
273561
|
+
screen.render(content, bottomContent);
|
273562
|
+
effectScheduler2.run();
|
273563
|
+
} catch (error48) {
|
273564
|
+
reject(error48);
|
273565
|
+
}
|
273566
|
+
});
|
273567
|
+
return Object.assign(promise2.then((answer) => {
|
273568
|
+
effectScheduler2.clearAll();
|
273569
|
+
return answer;
|
273570
|
+
}, (error48) => {
|
273571
|
+
effectScheduler2.clearAll();
|
273572
|
+
throw error48;
|
273573
|
+
}).finally(() => {
|
273574
|
+
cleanups.forEach((cleanup) => cleanup());
|
273575
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
273576
|
+
output.end();
|
273577
|
+
}).then(() => promise2), { cancel: cancel3 });
|
273578
|
+
});
|
273579
|
+
};
|
273580
|
+
return prompt;
|
273581
|
+
}
|
273582
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.2+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
|
273111
273583
|
var inputTheme = {
|
273112
273584
|
validationFailureMode: "keep"
|
273113
273585
|
};
|
273114
|
-
var esm_default2 =
|
273586
|
+
var esm_default2 = createPrompt2((config3, done) => {
|
273115
273587
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
273116
|
-
const theme =
|
273117
|
-
const [status, setStatus] =
|
273118
|
-
const [defaultValue = "", setDefaultValue] =
|
273119
|
-
const [errorMsg, setError] =
|
273120
|
-
const [value5, setValue] =
|
273121
|
-
const prefix =
|
273122
|
-
|
273588
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
273589
|
+
const [status, setStatus] = useState2("idle");
|
273590
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
273591
|
+
const [errorMsg, setError] = useState2();
|
273592
|
+
const [value5, setValue] = useState2("");
|
273593
|
+
const prefix = usePrefix2({ status, theme });
|
273594
|
+
useKeypress2(async (key3, rl) => {
|
273123
273595
|
if (status !== "idle") {
|
273124
273596
|
return;
|
273125
273597
|
}
|
273126
|
-
if (
|
273598
|
+
if (isEnterKey2(key3)) {
|
273127
273599
|
const answer = value5 || defaultValue;
|
273128
273600
|
setStatus("loading");
|
273129
273601
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -273140,9 +273612,9 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
273140
273612
|
setError(isValid || "You must provide a valid value");
|
273141
273613
|
setStatus("idle");
|
273142
273614
|
}
|
273143
|
-
} else if (
|
273615
|
+
} else if (isBackspaceKey2(key3) && !value5) {
|
273144
273616
|
setDefaultValue(undefined);
|
273145
|
-
} else if (
|
273617
|
+
} else if (isTabKey2(key3) && !value5) {
|
273146
273618
|
setDefaultValue(undefined);
|
273147
273619
|
rl.clearLine(0);
|
273148
273620
|
rl.write(defaultValue);
|
@@ -273152,7 +273624,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
273152
273624
|
setError(undefined);
|
273153
273625
|
}
|
273154
273626
|
});
|
273155
|
-
|
273627
|
+
useEffect2((rl) => {
|
273156
273628
|
if (prefill === "editable" && defaultValue) {
|
273157
273629
|
rl.write(defaultValue);
|
273158
273630
|
setValue(defaultValue);
|
@@ -273197,14 +273669,13 @@ async function subgraphNamePrompt({
|
|
273197
273669
|
return sanitizeName(subgraphName);
|
273198
273670
|
}
|
273199
273671
|
|
273200
|
-
// ../../node_modules/.bun/@inquirer+select@4.3.
|
273201
|
-
var
|
273202
|
-
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
273672
|
+
// ../../node_modules/.bun/@inquirer+select@4.3.4+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
|
273673
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
273203
273674
|
var selectTheme = {
|
273204
273675
|
icon: { cursor: esm_default.pointer },
|
273205
273676
|
style: {
|
273206
|
-
disabled: (text2) =>
|
273207
|
-
description: (text2) =>
|
273677
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
273678
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
|
273208
273679
|
},
|
273209
273680
|
helpMode: "auto",
|
273210
273681
|
indexMode: "hidden"
|
@@ -273260,22 +273731,22 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273260
273731
|
}, [config3.default, items]);
|
273261
273732
|
const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
273262
273733
|
const selectedChoice = items[active];
|
273263
|
-
useKeypress((
|
273734
|
+
useKeypress((key3, rl) => {
|
273264
273735
|
clearTimeout(searchTimeoutRef.current);
|
273265
|
-
if (isEnterKey(
|
273736
|
+
if (isEnterKey(key3)) {
|
273266
273737
|
setStatus("done");
|
273267
273738
|
done(selectedChoice.value);
|
273268
|
-
} else if (isUpKey(
|
273739
|
+
} else if (isUpKey(key3) || isDownKey(key3)) {
|
273269
273740
|
rl.clearLine(0);
|
273270
|
-
if (loop || isUpKey(
|
273271
|
-
const offset = isUpKey(
|
273741
|
+
if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
|
273742
|
+
const offset = isUpKey(key3) ? -1 : 1;
|
273272
273743
|
let next = active;
|
273273
273744
|
do {
|
273274
273745
|
next = (next + offset + items.length) % items.length;
|
273275
273746
|
} while (!isSelectable(items[next]));
|
273276
273747
|
setActive(next);
|
273277
273748
|
}
|
273278
|
-
} else if (isNumberKey(
|
273749
|
+
} else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
|
273279
273750
|
const selectedIndex = Number(rl.line) - 1;
|
273280
273751
|
let selectableIndex = -1;
|
273281
273752
|
const position = items.findIndex((item2) => {
|
@@ -273291,7 +273762,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273291
273762
|
searchTimeoutRef.current = setTimeout(() => {
|
273292
273763
|
rl.clearLine(0);
|
273293
273764
|
}, 700);
|
273294
|
-
} else if (isBackspaceKey(
|
273765
|
+
} else if (isBackspaceKey(key3)) {
|
273295
273766
|
rl.clearLine(0);
|
273296
273767
|
} else {
|
273297
273768
|
const searchTerm = rl.line.toLowerCase();
|
@@ -273350,7 +273821,7 @@ ${theme.style.help(`(${config3.instructions?.pager ?? "Use arrow keys to reveal
|
|
273350
273821
|
const choiceDescription = selectedChoice.description ? `
|
273351
273822
|
${theme.style.description(selectedChoice.description)}` : ``;
|
273352
273823
|
return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
|
273353
|
-
${page}${helpTipBottom}${choiceDescription}${
|
273824
|
+
${page}${helpTipBottom}${choiceDescription}${cursorHide}`;
|
273354
273825
|
});
|
273355
273826
|
|
273356
273827
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
@@ -274995,14 +275466,14 @@ function includesArgs(parameters) {
|
|
274995
275466
|
});
|
274996
275467
|
}
|
274997
275468
|
if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
|
274998
|
-
return Object.entries(matchArgs).every(([
|
275469
|
+
return Object.entries(matchArgs).every(([key3, value5]) => {
|
274999
275470
|
if (value5 === null || value5 === undefined)
|
275000
275471
|
return true;
|
275001
|
-
const input = inputs.find((input2) => input2.name ===
|
275472
|
+
const input = inputs.find((input2) => input2.name === key3);
|
275002
275473
|
if (!input)
|
275003
275474
|
return false;
|
275004
275475
|
const value_ = Array.isArray(value5) ? value5 : [value5];
|
275005
|
-
return value_.some((value6) => isEqual(input, value6, args[
|
275476
|
+
return value_.some((value6) => isEqual(input, value6, args[key3]));
|
275006
275477
|
});
|
275007
275478
|
return false;
|
275008
275479
|
}
|
@@ -275201,13 +275672,13 @@ function observe(observerId, callbacks, fn) {
|
|
275201
275672
|
if (listeners && listeners.length > 0)
|
275202
275673
|
return unwatch;
|
275203
275674
|
const emit = {};
|
275204
|
-
for (const
|
275205
|
-
emit[
|
275675
|
+
for (const key3 in callbacks) {
|
275676
|
+
emit[key3] = (...args) => {
|
275206
275677
|
const listeners2 = getListeners();
|
275207
275678
|
if (listeners2.length === 0)
|
275208
275679
|
return;
|
275209
275680
|
for (const listener of listeners2)
|
275210
|
-
listener.fns[
|
275681
|
+
listener.fns[key3]?.(...args);
|
275211
275682
|
};
|
275212
275683
|
}
|
275213
275684
|
const cleanup = fn(emit);
|
@@ -275587,7 +276058,7 @@ function uid(length = 11) {
|
|
275587
276058
|
|
275588
276059
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createClient.js
|
275589
276060
|
function createClient(parameters) {
|
275590
|
-
const { batch, chain, ccipRead, key:
|
276061
|
+
const { batch, chain, ccipRead, key: key3 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
|
275591
276062
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
|
275592
276063
|
const blockTime = chain?.blockTime ?? 12000;
|
275593
276064
|
const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
|
@@ -275605,7 +276076,7 @@ function createClient(parameters) {
|
|
275605
276076
|
cacheTime,
|
275606
276077
|
ccipRead,
|
275607
276078
|
chain,
|
275608
|
-
key:
|
276079
|
+
key: key3,
|
275609
276080
|
name: name4,
|
275610
276081
|
pollingInterval,
|
275611
276082
|
request: request2,
|
@@ -275617,8 +276088,8 @@ function createClient(parameters) {
|
|
275617
276088
|
function extend2(base2) {
|
275618
276089
|
return (extendFn) => {
|
275619
276090
|
const extended = extendFn(base2);
|
275620
|
-
for (const
|
275621
|
-
delete extended[
|
276091
|
+
for (const key4 in client)
|
276092
|
+
delete extended[key4];
|
275622
276093
|
const combined = { ...base2, ...extended };
|
275623
276094
|
return Object.assign(combined, { extend: extend2(combined) });
|
275624
276095
|
};
|
@@ -276037,7 +276508,7 @@ init_getChainContractAddress();
|
|
276037
276508
|
init_toHex();
|
276038
276509
|
init_localBatchGatewayRequest();
|
276039
276510
|
async function getEnsText(client, parameters) {
|
276040
|
-
const { blockNumber, blockTag, key:
|
276511
|
+
const { blockNumber, blockTag, key: key3, name: name4, gatewayUrls, strict } = parameters;
|
276041
276512
|
const { chain } = client;
|
276042
276513
|
const universalResolverAddress = (() => {
|
276043
276514
|
if (parameters.universalResolverAddress)
|
@@ -276062,7 +276533,7 @@ async function getEnsText(client, parameters) {
|
|
276062
276533
|
encodeFunctionData({
|
276063
276534
|
abi: textResolverAbi,
|
276064
276535
|
functionName: "text",
|
276065
|
-
args: [namehash(name4),
|
276536
|
+
args: [namehash(name4), key3]
|
276066
276537
|
}),
|
276067
276538
|
gatewayUrls ?? [localBatchGatewayUrl]
|
276068
276539
|
],
|
@@ -278131,16 +278602,16 @@ class LruMap2 extends Map {
|
|
278131
278602
|
});
|
278132
278603
|
this.maxSize = size5;
|
278133
278604
|
}
|
278134
|
-
get(
|
278135
|
-
const value5 = super.get(
|
278136
|
-
if (super.has(
|
278137
|
-
this.delete(
|
278138
|
-
super.set(
|
278605
|
+
get(key3) {
|
278606
|
+
const value5 = super.get(key3);
|
278607
|
+
if (super.has(key3) && value5 !== undefined) {
|
278608
|
+
this.delete(key3);
|
278609
|
+
super.set(key3, value5);
|
278139
278610
|
}
|
278140
278611
|
return value5;
|
278141
278612
|
}
|
278142
|
-
set(
|
278143
|
-
super.set(
|
278613
|
+
set(key3, value5) {
|
278614
|
+
super.set(key3, value5);
|
278144
278615
|
if (this.maxSize && this.size > this.maxSize) {
|
278145
278616
|
const firstKey = this.keys().next().value;
|
278146
278617
|
if (firstKey)
|
@@ -281589,21 +282060,21 @@ function publicActions(client) {
|
|
281589
282060
|
|
281590
282061
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createPublicClient.js
|
281591
282062
|
function createPublicClient(parameters) {
|
281592
|
-
const { key:
|
282063
|
+
const { key: key3 = "public", name: name4 = "Public Client" } = parameters;
|
281593
282064
|
const client = createClient({
|
281594
282065
|
...parameters,
|
281595
|
-
key:
|
282066
|
+
key: key3,
|
281596
282067
|
name: name4,
|
281597
282068
|
type: "publicClient"
|
281598
282069
|
});
|
281599
282070
|
return client.extend(publicActions);
|
281600
282071
|
}
|
281601
282072
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/createTransport.js
|
281602
|
-
function createTransport({ key:
|
282073
|
+
function createTransport({ key: key3, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
|
281603
282074
|
const uid2 = uid();
|
281604
282075
|
return {
|
281605
282076
|
config: {
|
281606
|
-
key:
|
282077
|
+
key: key3,
|
281607
282078
|
methods,
|
281608
282079
|
name: name4,
|
281609
282080
|
request: request2,
|
@@ -281635,7 +282106,7 @@ class UrlRequiredError extends BaseError2 {
|
|
281635
282106
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/http.js
|
281636
282107
|
init_createBatchScheduler();
|
281637
282108
|
function http(url2, config3 = {}) {
|
281638
|
-
const { batch, fetchFn, fetchOptions, key:
|
282109
|
+
const { batch, fetchFn, fetchOptions, key: key3 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
|
281639
282110
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
281640
282111
|
const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
281641
282112
|
const retryCount = config3.retryCount ?? retryCount_;
|
@@ -281651,7 +282122,7 @@ function http(url2, config3 = {}) {
|
|
281651
282122
|
timeout
|
281652
282123
|
});
|
281653
282124
|
return createTransport({
|
281654
|
-
key:
|
282125
|
+
key: key3,
|
281655
282126
|
methods,
|
281656
282127
|
name: name4,
|
281657
282128
|
async request({ method, params }) {
|
@@ -298599,23 +299070,23 @@ var LRUCache3 = class {
|
|
298599
299070
|
constructor(maxSize) {
|
298600
299071
|
this.maxSize = maxSize;
|
298601
299072
|
}
|
298602
|
-
get(
|
298603
|
-
const value5 = this.cache.get(
|
299073
|
+
get(key3) {
|
299074
|
+
const value5 = this.cache.get(key3);
|
298604
299075
|
if (value5 !== undefined) {
|
298605
|
-
this.cache.delete(
|
298606
|
-
this.cache.set(
|
299076
|
+
this.cache.delete(key3);
|
299077
|
+
this.cache.set(key3, value5);
|
298607
299078
|
}
|
298608
299079
|
return value5;
|
298609
299080
|
}
|
298610
|
-
set(
|
298611
|
-
this.cache.delete(
|
299081
|
+
set(key3, value5) {
|
299082
|
+
this.cache.delete(key3);
|
298612
299083
|
if (this.cache.size >= this.maxSize) {
|
298613
299084
|
const firstKey = this.cache.keys().next().value;
|
298614
299085
|
if (firstKey !== undefined) {
|
298615
299086
|
this.cache.delete(firstKey);
|
298616
299087
|
}
|
298617
299088
|
}
|
298618
|
-
this.cache.set(
|
299089
|
+
this.cache.set(key3, value5);
|
298619
299090
|
}
|
298620
299091
|
clear() {
|
298621
299092
|
this.cache.clear();
|
@@ -298626,9 +299097,9 @@ var publicClientCache = new LRUCache3(50);
|
|
298626
299097
|
var walletClientFactoryCache = new LRUCache3(50);
|
298627
299098
|
function buildHeaders(baseHeaders, authHeaders) {
|
298628
299099
|
const filteredHeaders = {};
|
298629
|
-
for (const [
|
299100
|
+
for (const [key3, value5] of Object.entries(authHeaders)) {
|
298630
299101
|
if (value5 !== undefined) {
|
298631
|
-
filteredHeaders[
|
299102
|
+
filteredHeaders[key3] = value5;
|
298632
299103
|
}
|
298633
299104
|
}
|
298634
299105
|
return appendHeaders(baseHeaders, filteredHeaders);
|
@@ -298936,7 +299407,7 @@ function extractInfoFromBody(body) {
|
|
298936
299407
|
}
|
298937
299408
|
}
|
298938
299409
|
|
298939
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.
|
299410
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.18+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
|
298940
299411
|
function getBooleanValue(value5, defaultValue) {
|
298941
299412
|
let answer = defaultValue !== false;
|
298942
299413
|
if (/^(y|yes)/i.test(value5))
|
@@ -298954,15 +299425,15 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
298954
299425
|
const [value5, setValue] = useState("");
|
298955
299426
|
const theme = makeTheme(config3.theme);
|
298956
299427
|
const prefix = usePrefix({ status, theme });
|
298957
|
-
useKeypress((
|
299428
|
+
useKeypress((key3, rl) => {
|
298958
299429
|
if (status !== "idle")
|
298959
299430
|
return;
|
298960
|
-
if (isEnterKey(
|
299431
|
+
if (isEnterKey(key3)) {
|
298961
299432
|
const answer = getBooleanValue(value5, config3.default);
|
298962
299433
|
setValue(transformer(answer));
|
298963
299434
|
setStatus("done");
|
298964
299435
|
done(answer);
|
298965
|
-
} else if (isTabKey(
|
299436
|
+
} else if (isTabKey(key3)) {
|
298966
299437
|
const answer = boolToString(!getBooleanValue(value5, config3.default));
|
298967
299438
|
rl.clearLine(0);
|
298968
299439
|
rl.write(answer);
|
@@ -298982,8 +299453,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
298982
299453
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
298983
299454
|
});
|
298984
299455
|
|
298985
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.
|
298986
|
-
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
299456
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.20+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
|
298987
299457
|
var esm_default5 = createPrompt((config3, done) => {
|
298988
299458
|
const { validate: validate8 = () => true } = config3;
|
298989
299459
|
const theme = makeTheme(config3.theme);
|
@@ -298991,11 +299461,11 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
298991
299461
|
const [errorMsg, setError] = useState();
|
298992
299462
|
const [value5, setValue] = useState("");
|
298993
299463
|
const prefix = usePrefix({ status, theme });
|
298994
|
-
useKeypress(async (
|
299464
|
+
useKeypress(async (key3, rl) => {
|
298995
299465
|
if (status !== "idle") {
|
298996
299466
|
return;
|
298997
299467
|
}
|
298998
|
-
if (isEnterKey(
|
299468
|
+
if (isEnterKey(key3)) {
|
298999
299469
|
const answer = value5;
|
299000
299470
|
setStatus("loading");
|
299001
299471
|
const isValid = await validate8(answer);
|
@@ -299020,7 +299490,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
299020
299490
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
299021
299491
|
formattedValue = maskChar.repeat(value5.length);
|
299022
299492
|
} else if (status !== "done") {
|
299023
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
299493
|
+
helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
|
299024
299494
|
}
|
299025
299495
|
if (status === "done") {
|
299026
299496
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -300698,7 +301168,7 @@ var basename2 = function(p5, extension) {
|
|
300698
301168
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
300699
301169
|
};
|
300700
301170
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
300701
|
-
function
|
301171
|
+
function isPlainObject5(value5) {
|
300702
301172
|
if (value5 === null || typeof value5 !== "object") {
|
300703
301173
|
return false;
|
300704
301174
|
}
|
@@ -300715,27 +301185,27 @@ function isPlainObject4(value5) {
|
|
300715
301185
|
return true;
|
300716
301186
|
}
|
300717
301187
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
300718
|
-
if (!
|
301188
|
+
if (!isPlainObject5(defaults2)) {
|
300719
301189
|
return _defu(baseObject, {}, namespace, merger);
|
300720
301190
|
}
|
300721
301191
|
const object2 = Object.assign({}, defaults2);
|
300722
|
-
for (const
|
300723
|
-
if (
|
301192
|
+
for (const key3 in baseObject) {
|
301193
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
300724
301194
|
continue;
|
300725
301195
|
}
|
300726
|
-
const value5 = baseObject[
|
301196
|
+
const value5 = baseObject[key3];
|
300727
301197
|
if (value5 === null || value5 === undefined) {
|
300728
301198
|
continue;
|
300729
301199
|
}
|
300730
|
-
if (merger && merger(object2,
|
301200
|
+
if (merger && merger(object2, key3, value5, namespace)) {
|
300731
301201
|
continue;
|
300732
301202
|
}
|
300733
|
-
if (Array.isArray(value5) && Array.isArray(object2[
|
300734
|
-
object2[
|
300735
|
-
} else if (
|
300736
|
-
object2[
|
301203
|
+
if (Array.isArray(value5) && Array.isArray(object2[key3])) {
|
301204
|
+
object2[key3] = [...value5, ...object2[key3]];
|
301205
|
+
} else if (isPlainObject5(value5) && isPlainObject5(object2[key3])) {
|
301206
|
+
object2[key3] = _defu(value5, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
300737
301207
|
} else {
|
300738
|
-
object2[
|
301208
|
+
object2[key3] = value5;
|
300739
301209
|
}
|
300740
301210
|
}
|
300741
301211
|
return object2;
|
@@ -300744,15 +301214,15 @@ function createDefu(merger) {
|
|
300744
301214
|
return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
300745
301215
|
}
|
300746
301216
|
var defu = createDefu();
|
300747
|
-
var defuFn = createDefu((object2,
|
300748
|
-
if (object2[
|
300749
|
-
object2[
|
301217
|
+
var defuFn = createDefu((object2, key3, currentValue) => {
|
301218
|
+
if (object2[key3] !== undefined && typeof currentValue === "function") {
|
301219
|
+
object2[key3] = currentValue(object2[key3]);
|
300750
301220
|
return true;
|
300751
301221
|
}
|
300752
301222
|
});
|
300753
|
-
var defuArrayFn = createDefu((object2,
|
300754
|
-
if (Array.isArray(object2[
|
300755
|
-
object2[
|
301223
|
+
var defuArrayFn = createDefu((object2, key3, currentValue) => {
|
301224
|
+
if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
|
301225
|
+
object2[key3] = currentValue(object2[key3]);
|
300756
301226
|
return true;
|
300757
301227
|
}
|
300758
301228
|
});
|
@@ -303458,11 +303928,11 @@ function cacheDirectory() {
|
|
303458
303928
|
}
|
303459
303929
|
function normalizeHeaders(headers = {}) {
|
303460
303930
|
const normalized = {};
|
303461
|
-
for (const [
|
303931
|
+
for (const [key3, value5] of Object.entries(headers)) {
|
303462
303932
|
if (!value5) {
|
303463
303933
|
continue;
|
303464
303934
|
}
|
303465
|
-
normalized[
|
303935
|
+
normalized[key3.toLowerCase()] = value5;
|
303466
303936
|
}
|
303467
303937
|
return normalized;
|
303468
303938
|
}
|
@@ -306711,7 +307181,7 @@ function jsonOutput(data) {
|
|
306711
307181
|
var composer = require_composer();
|
306712
307182
|
var Document = require_Document();
|
306713
307183
|
var Schema = require_Schema();
|
306714
|
-
var
|
307184
|
+
var errors5 = require_errors3();
|
306715
307185
|
var Alias = require_Alias();
|
306716
307186
|
var identity2 = require_identity();
|
306717
307187
|
var Pair = require_Pair();
|
@@ -306727,9 +307197,9 @@ var visit2 = require_visit();
|
|
306727
307197
|
var $Composer = composer.Composer;
|
306728
307198
|
var $Document = Document.Document;
|
306729
307199
|
var $Schema = Schema.Schema;
|
306730
|
-
var $YAMLError =
|
306731
|
-
var $YAMLParseError =
|
306732
|
-
var $YAMLWarning =
|
307200
|
+
var $YAMLError = errors5.YAMLError;
|
307201
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
307202
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
306733
307203
|
var $Alias = Alias.Alias;
|
306734
307204
|
var $isAlias = identity2.isAlias;
|
306735
307205
|
var $isCollection = identity2.isCollection;
|
@@ -307336,11 +307806,11 @@ function createCommand4() {
|
|
307336
307806
|
|
307337
307807
|
// src/utils/commands/passthrough-options.ts
|
307338
307808
|
function mapPassthroughOptions(options, command) {
|
307339
|
-
const optionArgs = Object.entries(options).map(([
|
307809
|
+
const optionArgs = Object.entries(options).map(([key3, value5]) => {
|
307340
307810
|
if (value5 === true) {
|
307341
|
-
return `--${
|
307811
|
+
return `--${key3}`;
|
307342
307812
|
}
|
307343
|
-
return `--${
|
307813
|
+
return `--${key3}=${value5}`;
|
307344
307814
|
});
|
307345
307815
|
return [...optionArgs, ...command.args];
|
307346
307816
|
}
|
@@ -308593,4 +309063,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
308593
309063
|
// src/cli.ts
|
308594
309064
|
sdkCliCommand();
|
308595
309065
|
|
308596
|
-
//# debugId=
|
309066
|
+
//# debugId=973B5462B198E8CB64756E2164756E21
|