@settlemint/sdk-cli 2.6.2-pr58a3d130 → 2.6.2-pr5cf648f6
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 +692 -693
- package/dist/cli.js.map +19 -19
- package/package.json +8 -8
package/dist/cli.js
CHANGED
@@ -231828,124 +231828,6 @@ var require_slugify = __commonJS((exports, module) => {
|
|
231828
231828
|
});
|
231829
231829
|
});
|
231830
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
231831
|
// ../../node_modules/.bun/abitype@1.1.0+50e9b7ffbf081acf/node_modules/abitype/dist/esm/version.js
|
231950
231832
|
var version2 = "1.1.0";
|
231951
231833
|
|
@@ -233941,16 +233823,16 @@ var init_lru = __esm(() => {
|
|
233941
233823
|
});
|
233942
233824
|
this.maxSize = size2;
|
233943
233825
|
}
|
233944
|
-
get(
|
233945
|
-
const value5 = super.get(
|
233946
|
-
if (super.has(
|
233947
|
-
this.delete(
|
233948
|
-
super.set(
|
233826
|
+
get(key2) {
|
233827
|
+
const value5 = super.get(key2);
|
233828
|
+
if (super.has(key2) && value5 !== undefined) {
|
233829
|
+
this.delete(key2);
|
233830
|
+
super.set(key2, value5);
|
233949
233831
|
}
|
233950
233832
|
return value5;
|
233951
233833
|
}
|
233952
|
-
set(
|
233953
|
-
super.set(
|
233834
|
+
set(key2, value5) {
|
233835
|
+
super.set(key2, value5);
|
233954
233836
|
if (this.maxSize && this.size > this.maxSize) {
|
233955
233837
|
const firstKey = this.keys().next().value;
|
233956
233838
|
if (firstKey)
|
@@ -234992,9 +234874,9 @@ var init_decodeErrorResult = __esm(() => {
|
|
234992
234874
|
});
|
234993
234875
|
|
234994
234876
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/stringify.js
|
234995
|
-
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (
|
234877
|
+
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key2, value_) => {
|
234996
234878
|
const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
|
234997
|
-
return typeof replacer === "function" ? replacer(
|
234879
|
+
return typeof replacer === "function" ? replacer(key2, value6) : value6;
|
234998
234880
|
}, space);
|
234999
234881
|
|
235000
234882
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
@@ -235108,13 +234990,13 @@ var init_stateOverride = __esm(() => {
|
|
235108
234990
|
|
235109
234991
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/errors/transaction.js
|
235110
234992
|
function prettyPrint(args) {
|
235111
|
-
const entries = Object.entries(args).map(([
|
234993
|
+
const entries = Object.entries(args).map(([key2, value5]) => {
|
235112
234994
|
if (value5 === undefined || value5 === false)
|
235113
234995
|
return null;
|
235114
|
-
return [
|
234996
|
+
return [key2, value5];
|
235115
234997
|
}).filter(Boolean);
|
235116
|
-
const maxLength = entries.reduce((acc, [
|
235117
|
-
return entries.map(([
|
234998
|
+
const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
|
234999
|
+
return entries.map(([key2, value5]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value5}`).join(`
|
235118
235000
|
`);
|
235119
235001
|
}
|
235120
235002
|
var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
|
@@ -236232,7 +236114,7 @@ var init_sha2 = __esm(() => {
|
|
236232
236114
|
});
|
236233
236115
|
|
236234
236116
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
|
236235
|
-
var HMAC, hmac = (hash3,
|
236117
|
+
var HMAC, hmac = (hash3, key2, message) => new HMAC(hash3, key2).update(message).digest();
|
236236
236118
|
var init_hmac = __esm(() => {
|
236237
236119
|
init_utils2();
|
236238
236120
|
HMAC = class HMAC extends Hash {
|
@@ -236241,7 +236123,7 @@ var init_hmac = __esm(() => {
|
|
236241
236123
|
this.finished = false;
|
236242
236124
|
this.destroyed = false;
|
236243
236125
|
ahash(hash3);
|
236244
|
-
const
|
236126
|
+
const key2 = toBytes2(_key);
|
236245
236127
|
this.iHash = hash3.create();
|
236246
236128
|
if (typeof this.iHash.update !== "function")
|
236247
236129
|
throw new Error("Expected instance of class which extends utils.Hash");
|
@@ -236249,7 +236131,7 @@ var init_hmac = __esm(() => {
|
|
236249
236131
|
this.outputLen = this.iHash.outputLen;
|
236250
236132
|
const blockLen = this.blockLen;
|
236251
236133
|
const pad2 = new Uint8Array(blockLen);
|
236252
|
-
pad2.set(
|
236134
|
+
pad2.set(key2.length > blockLen ? hash3.create().update(key2).digest() : key2);
|
236253
236135
|
for (let i7 = 0;i7 < pad2.length; i7++)
|
236254
236136
|
pad2[i7] ^= 54;
|
236255
236137
|
this.iHash.update(pad2);
|
@@ -236299,7 +236181,7 @@ var init_hmac = __esm(() => {
|
|
236299
236181
|
this.iHash.destroy();
|
236300
236182
|
}
|
236301
236183
|
};
|
236302
|
-
hmac.create = (hash3,
|
236184
|
+
hmac.create = (hash3, key2) => new HMAC(hash3, key2);
|
236303
236185
|
});
|
236304
236186
|
|
236305
236187
|
// ../../node_modules/.bun/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
|
@@ -236758,13 +236640,13 @@ function getMinHashLength(fieldOrder) {
|
|
236758
236640
|
const length = getFieldBytesLength(fieldOrder);
|
236759
236641
|
return length + Math.ceil(length / 2);
|
236760
236642
|
}
|
236761
|
-
function mapHashToField(
|
236762
|
-
const len =
|
236643
|
+
function mapHashToField(key2, fieldOrder, isLE2 = false) {
|
236644
|
+
const len = key2.length;
|
236763
236645
|
const fieldLen = getFieldBytesLength(fieldOrder);
|
236764
236646
|
const minLen = getMinHashLength(fieldOrder);
|
236765
236647
|
if (len < 16 || len < minLen || len > 1024)
|
236766
236648
|
throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
|
236767
|
-
const num = isLE2 ? bytesToNumberLE(
|
236649
|
+
const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
|
236768
236650
|
const reduced = mod(num, fieldOrder - _1n3) + _1n3;
|
236769
236651
|
return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
236770
236652
|
}
|
@@ -237079,20 +236961,20 @@ function weierstrassPoints(opts) {
|
|
237079
236961
|
function isWithinCurveOrder(num) {
|
237080
236962
|
return inRange(num, _1n5, CURVE.n);
|
237081
236963
|
}
|
237082
|
-
function normPrivateKeyToScalar(
|
236964
|
+
function normPrivateKeyToScalar(key2) {
|
237083
236965
|
const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
|
237084
|
-
if (lengths && typeof
|
237085
|
-
if (isBytes2(
|
237086
|
-
|
237087
|
-
if (typeof
|
236966
|
+
if (lengths && typeof key2 !== "bigint") {
|
236967
|
+
if (isBytes2(key2))
|
236968
|
+
key2 = bytesToHex2(key2);
|
236969
|
+
if (typeof key2 !== "string" || !lengths.includes(key2.length))
|
237088
236970
|
throw new Error("invalid private key");
|
237089
|
-
|
236971
|
+
key2 = key2.padStart(nByteLength * 2, "0");
|
237090
236972
|
}
|
237091
236973
|
let num;
|
237092
236974
|
try {
|
237093
|
-
num = typeof
|
236975
|
+
num = typeof key2 === "bigint" ? key2 : bytesToNumberBE(ensureBytes("private key", key2, nByteLength));
|
237094
236976
|
} catch (error48) {
|
237095
|
-
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof
|
236977
|
+
throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key2);
|
237096
236978
|
}
|
237097
236979
|
if (wrapPrivateKey)
|
237098
236980
|
num = mod(num, N6);
|
@@ -237926,7 +237808,7 @@ var init_weierstrass = __esm(() => {
|
|
237926
237808
|
function getHash(hash3) {
|
237927
237809
|
return {
|
237928
237810
|
hash: hash3,
|
237929
|
-
hmac: (
|
237811
|
+
hmac: (key2, ...msgs) => hmac(hash3, key2, concatBytes(...msgs)),
|
237930
237812
|
randomBytes
|
237931
237813
|
};
|
237932
237814
|
}
|
@@ -238552,11 +238434,11 @@ function extract2(value_, { format: format2 }) {
|
|
238552
238434
|
const value5 = {};
|
238553
238435
|
function extract_(formatted2) {
|
238554
238436
|
const keys = Object.keys(formatted2);
|
238555
|
-
for (const
|
238556
|
-
if (
|
238557
|
-
value5[
|
238558
|
-
if (formatted2[
|
238559
|
-
extract_(formatted2[
|
238437
|
+
for (const key2 of keys) {
|
238438
|
+
if (key2 in value_)
|
238439
|
+
value5[key2] = value_[key2];
|
238440
|
+
if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
|
238441
|
+
extract_(formatted2[key2]);
|
238560
238442
|
}
|
238561
238443
|
}
|
238562
238444
|
const formatted = format2(value_ || {});
|
@@ -238572,8 +238454,8 @@ function defineFormatter(type5, format2) {
|
|
238572
238454
|
format: (args) => {
|
238573
238455
|
const formatted = format2(args);
|
238574
238456
|
if (exclude) {
|
238575
|
-
for (const
|
238576
|
-
delete formatted[
|
238457
|
+
for (const key2 of exclude) {
|
238458
|
+
delete formatted[key2];
|
238577
238459
|
}
|
238578
238460
|
}
|
238579
238461
|
return {
|
@@ -239119,9 +239001,9 @@ var init_hex = __esm(() => {
|
|
239119
239001
|
|
239120
239002
|
// ../../node_modules/.bun/ox@0.9.3+50e9b7ffbf081acf/node_modules/ox/_esm/core/Json.js
|
239121
239003
|
function stringify4(value5, replacer, space) {
|
239122
|
-
return JSON.stringify(value5, (
|
239004
|
+
return JSON.stringify(value5, (key2, value6) => {
|
239123
239005
|
if (typeof replacer === "function")
|
239124
|
-
return replacer(
|
239006
|
+
return replacer(key2, value6);
|
239125
239007
|
if (typeof value6 === "bigint")
|
239126
239008
|
return value6.toString() + bigIntSuffix;
|
239127
239009
|
return value6;
|
@@ -240592,6 +240474,124 @@ var init_call = __esm(() => {
|
|
240592
240474
|
init_assertRequest();
|
240593
240475
|
});
|
240594
240476
|
|
240477
|
+
// ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
240478
|
+
var require_ansi_escapes = __commonJS((exports, module) => {
|
240479
|
+
var ansiEscapes = exports;
|
240480
|
+
exports.default = ansiEscapes;
|
240481
|
+
var ESC2 = "\x1B[";
|
240482
|
+
var OSC = "\x1B]";
|
240483
|
+
var BEL = "\x07";
|
240484
|
+
var SEP = ";";
|
240485
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
240486
|
+
ansiEscapes.cursorTo = (x6, y4) => {
|
240487
|
+
if (typeof x6 !== "number") {
|
240488
|
+
throw new TypeError("The `x` argument is required");
|
240489
|
+
}
|
240490
|
+
if (typeof y4 !== "number") {
|
240491
|
+
return ESC2 + (x6 + 1) + "G";
|
240492
|
+
}
|
240493
|
+
return ESC2 + (y4 + 1) + ";" + (x6 + 1) + "H";
|
240494
|
+
};
|
240495
|
+
ansiEscapes.cursorMove = (x6, y4) => {
|
240496
|
+
if (typeof x6 !== "number") {
|
240497
|
+
throw new TypeError("The `x` argument is required");
|
240498
|
+
}
|
240499
|
+
let ret = "";
|
240500
|
+
if (x6 < 0) {
|
240501
|
+
ret += ESC2 + -x6 + "D";
|
240502
|
+
} else if (x6 > 0) {
|
240503
|
+
ret += ESC2 + x6 + "C";
|
240504
|
+
}
|
240505
|
+
if (y4 < 0) {
|
240506
|
+
ret += ESC2 + -y4 + "A";
|
240507
|
+
} else if (y4 > 0) {
|
240508
|
+
ret += ESC2 + y4 + "B";
|
240509
|
+
}
|
240510
|
+
return ret;
|
240511
|
+
};
|
240512
|
+
ansiEscapes.cursorUp = (count = 1) => ESC2 + count + "A";
|
240513
|
+
ansiEscapes.cursorDown = (count = 1) => ESC2 + count + "B";
|
240514
|
+
ansiEscapes.cursorForward = (count = 1) => ESC2 + count + "C";
|
240515
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC2 + count + "D";
|
240516
|
+
ansiEscapes.cursorLeft = ESC2 + "G";
|
240517
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC2 + "s";
|
240518
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC2 + "u";
|
240519
|
+
ansiEscapes.cursorGetPosition = ESC2 + "6n";
|
240520
|
+
ansiEscapes.cursorNextLine = ESC2 + "E";
|
240521
|
+
ansiEscapes.cursorPrevLine = ESC2 + "F";
|
240522
|
+
ansiEscapes.cursorHide = ESC2 + "?25l";
|
240523
|
+
ansiEscapes.cursorShow = ESC2 + "?25h";
|
240524
|
+
ansiEscapes.eraseLines = (count) => {
|
240525
|
+
let clear = "";
|
240526
|
+
for (let i7 = 0;i7 < count; i7++) {
|
240527
|
+
clear += ansiEscapes.eraseLine + (i7 < count - 1 ? ansiEscapes.cursorUp() : "");
|
240528
|
+
}
|
240529
|
+
if (count) {
|
240530
|
+
clear += ansiEscapes.cursorLeft;
|
240531
|
+
}
|
240532
|
+
return clear;
|
240533
|
+
};
|
240534
|
+
ansiEscapes.eraseEndLine = ESC2 + "K";
|
240535
|
+
ansiEscapes.eraseStartLine = ESC2 + "1K";
|
240536
|
+
ansiEscapes.eraseLine = ESC2 + "2K";
|
240537
|
+
ansiEscapes.eraseDown = ESC2 + "J";
|
240538
|
+
ansiEscapes.eraseUp = ESC2 + "1J";
|
240539
|
+
ansiEscapes.eraseScreen = ESC2 + "2J";
|
240540
|
+
ansiEscapes.scrollUp = ESC2 + "S";
|
240541
|
+
ansiEscapes.scrollDown = ESC2 + "T";
|
240542
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
240543
|
+
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC2}0f` : `${ansiEscapes.eraseScreen}${ESC2}3J${ESC2}H`;
|
240544
|
+
ansiEscapes.beep = BEL;
|
240545
|
+
ansiEscapes.link = (text2, url2) => {
|
240546
|
+
return [
|
240547
|
+
OSC,
|
240548
|
+
"8",
|
240549
|
+
SEP,
|
240550
|
+
SEP,
|
240551
|
+
url2,
|
240552
|
+
BEL,
|
240553
|
+
text2,
|
240554
|
+
OSC,
|
240555
|
+
"8",
|
240556
|
+
SEP,
|
240557
|
+
SEP,
|
240558
|
+
BEL
|
240559
|
+
].join("");
|
240560
|
+
};
|
240561
|
+
ansiEscapes.image = (buffer2, options = {}) => {
|
240562
|
+
let ret = `${OSC}1337;File=inline=1`;
|
240563
|
+
if (options.width) {
|
240564
|
+
ret += `;width=${options.width}`;
|
240565
|
+
}
|
240566
|
+
if (options.height) {
|
240567
|
+
ret += `;height=${options.height}`;
|
240568
|
+
}
|
240569
|
+
if (options.preserveAspectRatio === false) {
|
240570
|
+
ret += ";preserveAspectRatio=0";
|
240571
|
+
}
|
240572
|
+
return ret + ":" + buffer2.toString("base64") + BEL;
|
240573
|
+
};
|
240574
|
+
ansiEscapes.iTerm = {
|
240575
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
240576
|
+
annotation: (message, options = {}) => {
|
240577
|
+
let ret = `${OSC}1337;`;
|
240578
|
+
const hasX = typeof options.x !== "undefined";
|
240579
|
+
const hasY = typeof options.y !== "undefined";
|
240580
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
240581
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
240582
|
+
}
|
240583
|
+
message = message.replace(/\|/g, "");
|
240584
|
+
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
240585
|
+
if (options.length > 0) {
|
240586
|
+
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
240587
|
+
} else {
|
240588
|
+
ret += message;
|
240589
|
+
}
|
240590
|
+
return ret + BEL;
|
240591
|
+
}
|
240592
|
+
};
|
240593
|
+
});
|
240594
|
+
|
240595
240595
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/nodes/identity.js
|
240596
240596
|
var require_identity = __commonJS((exports) => {
|
240597
240597
|
var ALIAS = Symbol.for("yaml.alias");
|
@@ -267229,7 +267229,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
267229
267229
|
var package_default = {
|
267230
267230
|
name: "@settlemint/sdk-cli",
|
267231
267231
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
267232
|
-
version: "2.6.2-
|
267232
|
+
version: "2.6.2-pr5cf648f6",
|
267233
267233
|
type: "module",
|
267234
267234
|
private: false,
|
267235
267235
|
license: "FSL-1.1-MIT",
|
@@ -267280,13 +267280,13 @@ var package_default = {
|
|
267280
267280
|
"@commander-js/extra-typings": "14.0.0",
|
267281
267281
|
commander: "14.0.1",
|
267282
267282
|
"@inquirer/confirm": "5.1.18",
|
267283
|
-
"@inquirer/input": "4.2.
|
267284
|
-
"@inquirer/password": "4.0.
|
267283
|
+
"@inquirer/input": "4.2.4",
|
267284
|
+
"@inquirer/password": "4.0.18",
|
267285
267285
|
"@inquirer/select": "4.3.4",
|
267286
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
267287
|
-
"@settlemint/sdk-js": "2.6.2-
|
267288
|
-
"@settlemint/sdk-utils": "2.6.2-
|
267289
|
-
"@settlemint/sdk-viem": "2.6.2-
|
267286
|
+
"@settlemint/sdk-hasura": "2.6.2-pr5cf648f6",
|
267287
|
+
"@settlemint/sdk-js": "2.6.2-pr5cf648f6",
|
267288
|
+
"@settlemint/sdk-utils": "2.6.2-pr5cf648f6",
|
267289
|
+
"@settlemint/sdk-viem": "2.6.2-pr5cf648f6",
|
267290
267290
|
"@types/node": "24.4.0",
|
267291
267291
|
"@types/semver": "7.7.1",
|
267292
267292
|
"@types/which": "3.0.4",
|
@@ -267303,7 +267303,7 @@ var package_default = {
|
|
267303
267303
|
},
|
267304
267304
|
peerDependencies: {
|
267305
267305
|
hardhat: "<= 4",
|
267306
|
-
"@settlemint/sdk-js": "2.6.2-
|
267306
|
+
"@settlemint/sdk-js": "2.6.2-pr5cf648f6"
|
267307
267307
|
},
|
267308
267308
|
peerDependenciesMeta: {
|
267309
267309
|
hardhat: {
|
@@ -273121,481 +273121,23 @@ function sanitizeName(value5, length = 35) {
|
|
273121
273121
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
273122
273122
|
}
|
273123
273123
|
|
273124
|
-
// ../../node_modules/.bun/@inquirer+
|
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
|
273124
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.4+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
|
273583
273125
|
var inputTheme = {
|
273584
273126
|
validationFailureMode: "keep"
|
273585
273127
|
};
|
273586
|
-
var esm_default2 =
|
273128
|
+
var esm_default2 = createPrompt((config3, done) => {
|
273587
273129
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
273588
|
-
const theme =
|
273589
|
-
const [status, setStatus] =
|
273590
|
-
const [defaultValue = "", setDefaultValue] =
|
273591
|
-
const [errorMsg, setError] =
|
273592
|
-
const [value5, setValue] =
|
273593
|
-
const prefix =
|
273594
|
-
|
273130
|
+
const theme = makeTheme(inputTheme, config3.theme);
|
273131
|
+
const [status, setStatus] = useState("idle");
|
273132
|
+
const [defaultValue = "", setDefaultValue] = useState(config3.default);
|
273133
|
+
const [errorMsg, setError] = useState();
|
273134
|
+
const [value5, setValue] = useState("");
|
273135
|
+
const prefix = usePrefix({ status, theme });
|
273136
|
+
useKeypress(async (key2, rl) => {
|
273595
273137
|
if (status !== "idle") {
|
273596
273138
|
return;
|
273597
273139
|
}
|
273598
|
-
if (
|
273140
|
+
if (isEnterKey(key2)) {
|
273599
273141
|
const answer = value5 || defaultValue;
|
273600
273142
|
setStatus("loading");
|
273601
273143
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -273612,9 +273154,9 @@ var esm_default2 = createPrompt2((config3, done) => {
|
|
273612
273154
|
setError(isValid || "You must provide a valid value");
|
273613
273155
|
setStatus("idle");
|
273614
273156
|
}
|
273615
|
-
} else if (
|
273157
|
+
} else if (isBackspaceKey(key2) && !value5) {
|
273616
273158
|
setDefaultValue(undefined);
|
273617
|
-
} else if (
|
273159
|
+
} else if (isTabKey(key2) && !value5) {
|
273618
273160
|
setDefaultValue(undefined);
|
273619
273161
|
rl.clearLine(0);
|
273620
273162
|
rl.write(defaultValue);
|
@@ -273624,7 +273166,7 @@ var esm_default2 = createPrompt2((config3, done) => {
|
|
273624
273166
|
setError(undefined);
|
273625
273167
|
}
|
273626
273168
|
});
|
273627
|
-
|
273169
|
+
useEffect((rl) => {
|
273628
273170
|
if (prefill === "editable" && defaultValue) {
|
273629
273171
|
rl.write(defaultValue);
|
273630
273172
|
setValue(defaultValue);
|
@@ -273670,12 +273212,12 @@ async function subgraphNamePrompt({
|
|
273670
273212
|
}
|
273671
273213
|
|
273672
273214
|
// ../../node_modules/.bun/@inquirer+select@4.3.4+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
|
273673
|
-
var
|
273215
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
273674
273216
|
var selectTheme = {
|
273675
273217
|
icon: { cursor: esm_default.pointer },
|
273676
273218
|
style: {
|
273677
|
-
disabled: (text2) =>
|
273678
|
-
description: (text2) =>
|
273219
|
+
disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
|
273220
|
+
description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
|
273679
273221
|
},
|
273680
273222
|
helpMode: "auto",
|
273681
273223
|
indexMode: "hidden"
|
@@ -273731,22 +273273,22 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273731
273273
|
}, [config3.default, items]);
|
273732
273274
|
const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
273733
273275
|
const selectedChoice = items[active];
|
273734
|
-
useKeypress((
|
273276
|
+
useKeypress((key2, rl) => {
|
273735
273277
|
clearTimeout(searchTimeoutRef.current);
|
273736
|
-
if (isEnterKey(
|
273278
|
+
if (isEnterKey(key2)) {
|
273737
273279
|
setStatus("done");
|
273738
273280
|
done(selectedChoice.value);
|
273739
|
-
} else if (isUpKey(
|
273281
|
+
} else if (isUpKey(key2) || isDownKey(key2)) {
|
273740
273282
|
rl.clearLine(0);
|
273741
|
-
if (loop || isUpKey(
|
273742
|
-
const offset = isUpKey(
|
273283
|
+
if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
|
273284
|
+
const offset = isUpKey(key2) ? -1 : 1;
|
273743
273285
|
let next = active;
|
273744
273286
|
do {
|
273745
273287
|
next = (next + offset + items.length) % items.length;
|
273746
273288
|
} while (!isSelectable(items[next]));
|
273747
273289
|
setActive(next);
|
273748
273290
|
}
|
273749
|
-
} else if (isNumberKey(
|
273291
|
+
} else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
|
273750
273292
|
const selectedIndex = Number(rl.line) - 1;
|
273751
273293
|
let selectableIndex = -1;
|
273752
273294
|
const position = items.findIndex((item2) => {
|
@@ -273762,7 +273304,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
273762
273304
|
searchTimeoutRef.current = setTimeout(() => {
|
273763
273305
|
rl.clearLine(0);
|
273764
273306
|
}, 700);
|
273765
|
-
} else if (isBackspaceKey(
|
273307
|
+
} else if (isBackspaceKey(key2)) {
|
273766
273308
|
rl.clearLine(0);
|
273767
273309
|
} else {
|
273768
273310
|
const searchTerm = rl.line.toLowerCase();
|
@@ -275466,14 +275008,14 @@ function includesArgs(parameters) {
|
|
275466
275008
|
});
|
275467
275009
|
}
|
275468
275010
|
if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
|
275469
|
-
return Object.entries(matchArgs).every(([
|
275011
|
+
return Object.entries(matchArgs).every(([key2, value5]) => {
|
275470
275012
|
if (value5 === null || value5 === undefined)
|
275471
275013
|
return true;
|
275472
|
-
const input = inputs.find((input2) => input2.name ===
|
275014
|
+
const input = inputs.find((input2) => input2.name === key2);
|
275473
275015
|
if (!input)
|
275474
275016
|
return false;
|
275475
275017
|
const value_ = Array.isArray(value5) ? value5 : [value5];
|
275476
|
-
return value_.some((value6) => isEqual(input, value6, args[
|
275018
|
+
return value_.some((value6) => isEqual(input, value6, args[key2]));
|
275477
275019
|
});
|
275478
275020
|
return false;
|
275479
275021
|
}
|
@@ -275672,13 +275214,13 @@ function observe(observerId, callbacks, fn) {
|
|
275672
275214
|
if (listeners && listeners.length > 0)
|
275673
275215
|
return unwatch;
|
275674
275216
|
const emit = {};
|
275675
|
-
for (const
|
275676
|
-
emit[
|
275217
|
+
for (const key2 in callbacks) {
|
275218
|
+
emit[key2] = (...args) => {
|
275677
275219
|
const listeners2 = getListeners();
|
275678
275220
|
if (listeners2.length === 0)
|
275679
275221
|
return;
|
275680
275222
|
for (const listener of listeners2)
|
275681
|
-
listener.fns[
|
275223
|
+
listener.fns[key2]?.(...args);
|
275682
275224
|
};
|
275683
275225
|
}
|
275684
275226
|
const cleanup = fn(emit);
|
@@ -276058,7 +275600,7 @@ function uid(length = 11) {
|
|
276058
275600
|
|
276059
275601
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createClient.js
|
276060
275602
|
function createClient(parameters) {
|
276061
|
-
const { batch, chain, ccipRead, key:
|
275603
|
+
const { batch, chain, ccipRead, key: key2 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
|
276062
275604
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
|
276063
275605
|
const blockTime = chain?.blockTime ?? 12000;
|
276064
275606
|
const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
|
@@ -276076,7 +275618,7 @@ function createClient(parameters) {
|
|
276076
275618
|
cacheTime,
|
276077
275619
|
ccipRead,
|
276078
275620
|
chain,
|
276079
|
-
key:
|
275621
|
+
key: key2,
|
276080
275622
|
name: name4,
|
276081
275623
|
pollingInterval,
|
276082
275624
|
request: request2,
|
@@ -276088,8 +275630,8 @@ function createClient(parameters) {
|
|
276088
275630
|
function extend2(base2) {
|
276089
275631
|
return (extendFn) => {
|
276090
275632
|
const extended = extendFn(base2);
|
276091
|
-
for (const
|
276092
|
-
delete extended[
|
275633
|
+
for (const key3 in client)
|
275634
|
+
delete extended[key3];
|
276093
275635
|
const combined = { ...base2, ...extended };
|
276094
275636
|
return Object.assign(combined, { extend: extend2(combined) });
|
276095
275637
|
};
|
@@ -276508,7 +276050,7 @@ init_getChainContractAddress();
|
|
276508
276050
|
init_toHex();
|
276509
276051
|
init_localBatchGatewayRequest();
|
276510
276052
|
async function getEnsText(client, parameters) {
|
276511
|
-
const { blockNumber, blockTag, key:
|
276053
|
+
const { blockNumber, blockTag, key: key2, name: name4, gatewayUrls, strict } = parameters;
|
276512
276054
|
const { chain } = client;
|
276513
276055
|
const universalResolverAddress = (() => {
|
276514
276056
|
if (parameters.universalResolverAddress)
|
@@ -276533,7 +276075,7 @@ async function getEnsText(client, parameters) {
|
|
276533
276075
|
encodeFunctionData({
|
276534
276076
|
abi: textResolverAbi,
|
276535
276077
|
functionName: "text",
|
276536
|
-
args: [namehash(name4),
|
276078
|
+
args: [namehash(name4), key2]
|
276537
276079
|
}),
|
276538
276080
|
gatewayUrls ?? [localBatchGatewayUrl]
|
276539
276081
|
],
|
@@ -278602,16 +278144,16 @@ class LruMap2 extends Map {
|
|
278602
278144
|
});
|
278603
278145
|
this.maxSize = size5;
|
278604
278146
|
}
|
278605
|
-
get(
|
278606
|
-
const value5 = super.get(
|
278607
|
-
if (super.has(
|
278608
|
-
this.delete(
|
278609
|
-
super.set(
|
278147
|
+
get(key2) {
|
278148
|
+
const value5 = super.get(key2);
|
278149
|
+
if (super.has(key2) && value5 !== undefined) {
|
278150
|
+
this.delete(key2);
|
278151
|
+
super.set(key2, value5);
|
278610
278152
|
}
|
278611
278153
|
return value5;
|
278612
278154
|
}
|
278613
|
-
set(
|
278614
|
-
super.set(
|
278155
|
+
set(key2, value5) {
|
278156
|
+
super.set(key2, value5);
|
278615
278157
|
if (this.maxSize && this.size > this.maxSize) {
|
278616
278158
|
const firstKey = this.keys().next().value;
|
278617
278159
|
if (firstKey)
|
@@ -282060,21 +281602,21 @@ function publicActions(client) {
|
|
282060
281602
|
|
282061
281603
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createPublicClient.js
|
282062
281604
|
function createPublicClient(parameters) {
|
282063
|
-
const { key:
|
281605
|
+
const { key: key2 = "public", name: name4 = "Public Client" } = parameters;
|
282064
281606
|
const client = createClient({
|
282065
281607
|
...parameters,
|
282066
|
-
key:
|
281608
|
+
key: key2,
|
282067
281609
|
name: name4,
|
282068
281610
|
type: "publicClient"
|
282069
281611
|
});
|
282070
281612
|
return client.extend(publicActions);
|
282071
281613
|
}
|
282072
281614
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/createTransport.js
|
282073
|
-
function createTransport({ key:
|
281615
|
+
function createTransport({ key: key2, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
|
282074
281616
|
const uid2 = uid();
|
282075
281617
|
return {
|
282076
281618
|
config: {
|
282077
|
-
key:
|
281619
|
+
key: key2,
|
282078
281620
|
methods,
|
282079
281621
|
name: name4,
|
282080
281622
|
request: request2,
|
@@ -282106,7 +281648,7 @@ class UrlRequiredError extends BaseError2 {
|
|
282106
281648
|
// ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/http.js
|
282107
281649
|
init_createBatchScheduler();
|
282108
281650
|
function http(url2, config3 = {}) {
|
282109
|
-
const { batch, fetchFn, fetchOptions, key:
|
281651
|
+
const { batch, fetchFn, fetchOptions, key: key2 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
|
282110
281652
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
282111
281653
|
const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
282112
281654
|
const retryCount = config3.retryCount ?? retryCount_;
|
@@ -282122,7 +281664,7 @@ function http(url2, config3 = {}) {
|
|
282122
281664
|
timeout
|
282123
281665
|
});
|
282124
281666
|
return createTransport({
|
282125
|
-
key:
|
281667
|
+
key: key2,
|
282126
281668
|
methods,
|
282127
281669
|
name: name4,
|
282128
281670
|
async request({ method, params }) {
|
@@ -299070,23 +298612,23 @@ var LRUCache3 = class {
|
|
299070
298612
|
constructor(maxSize) {
|
299071
298613
|
this.maxSize = maxSize;
|
299072
298614
|
}
|
299073
|
-
get(
|
299074
|
-
const value5 = this.cache.get(
|
298615
|
+
get(key2) {
|
298616
|
+
const value5 = this.cache.get(key2);
|
299075
298617
|
if (value5 !== undefined) {
|
299076
|
-
this.cache.delete(
|
299077
|
-
this.cache.set(
|
298618
|
+
this.cache.delete(key2);
|
298619
|
+
this.cache.set(key2, value5);
|
299078
298620
|
}
|
299079
298621
|
return value5;
|
299080
298622
|
}
|
299081
|
-
set(
|
299082
|
-
this.cache.delete(
|
298623
|
+
set(key2, value5) {
|
298624
|
+
this.cache.delete(key2);
|
299083
298625
|
if (this.cache.size >= this.maxSize) {
|
299084
298626
|
const firstKey = this.cache.keys().next().value;
|
299085
298627
|
if (firstKey !== undefined) {
|
299086
298628
|
this.cache.delete(firstKey);
|
299087
298629
|
}
|
299088
298630
|
}
|
299089
|
-
this.cache.set(
|
298631
|
+
this.cache.set(key2, value5);
|
299090
298632
|
}
|
299091
298633
|
clear() {
|
299092
298634
|
this.cache.clear();
|
@@ -299097,9 +298639,9 @@ var publicClientCache = new LRUCache3(50);
|
|
299097
298639
|
var walletClientFactoryCache = new LRUCache3(50);
|
299098
298640
|
function buildHeaders(baseHeaders, authHeaders) {
|
299099
298641
|
const filteredHeaders = {};
|
299100
|
-
for (const [
|
298642
|
+
for (const [key2, value5] of Object.entries(authHeaders)) {
|
299101
298643
|
if (value5 !== undefined) {
|
299102
|
-
filteredHeaders[
|
298644
|
+
filteredHeaders[key2] = value5;
|
299103
298645
|
}
|
299104
298646
|
}
|
299105
298647
|
return appendHeaders(baseHeaders, filteredHeaders);
|
@@ -299425,15 +298967,15 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
299425
298967
|
const [value5, setValue] = useState("");
|
299426
298968
|
const theme = makeTheme(config3.theme);
|
299427
298969
|
const prefix = usePrefix({ status, theme });
|
299428
|
-
useKeypress((
|
298970
|
+
useKeypress((key2, rl) => {
|
299429
298971
|
if (status !== "idle")
|
299430
298972
|
return;
|
299431
|
-
if (isEnterKey(
|
298973
|
+
if (isEnterKey(key2)) {
|
299432
298974
|
const answer = getBooleanValue(value5, config3.default);
|
299433
298975
|
setValue(transformer(answer));
|
299434
298976
|
setStatus("done");
|
299435
298977
|
done(answer);
|
299436
|
-
} else if (isTabKey(
|
298978
|
+
} else if (isTabKey(key2)) {
|
299437
298979
|
const answer = boolToString(!getBooleanValue(value5, config3.default));
|
299438
298980
|
rl.clearLine(0);
|
299439
298981
|
rl.write(answer);
|
@@ -299453,19 +298995,476 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
299453
298995
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
299454
298996
|
});
|
299455
298997
|
|
299456
|
-
// ../../node_modules/.bun/@inquirer+
|
299457
|
-
var
|
298998
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
|
298999
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
299000
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
299001
|
+
class AbortPromptError2 extends Error {
|
299002
|
+
name = "AbortPromptError";
|
299003
|
+
message = "Prompt was aborted";
|
299004
|
+
constructor(options) {
|
299005
|
+
super();
|
299006
|
+
this.cause = options?.cause;
|
299007
|
+
}
|
299008
|
+
}
|
299009
|
+
|
299010
|
+
class CancelPromptError2 extends Error {
|
299011
|
+
name = "CancelPromptError";
|
299012
|
+
message = "Prompt was canceled";
|
299013
|
+
}
|
299014
|
+
|
299015
|
+
class ExitPromptError2 extends Error {
|
299016
|
+
name = "ExitPromptError";
|
299017
|
+
}
|
299018
|
+
|
299019
|
+
class HookError2 extends Error {
|
299020
|
+
name = "HookError";
|
299021
|
+
}
|
299022
|
+
|
299023
|
+
class ValidationError2 extends Error {
|
299024
|
+
name = "ValidationError";
|
299025
|
+
}
|
299026
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
299027
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
299028
|
+
|
299029
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
299030
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
299031
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
299032
|
+
function createStore2(rl) {
|
299033
|
+
const store = {
|
299034
|
+
rl,
|
299035
|
+
hooks: [],
|
299036
|
+
hooksCleanup: [],
|
299037
|
+
hooksEffect: [],
|
299038
|
+
index: 0,
|
299039
|
+
handleChange() {}
|
299040
|
+
};
|
299041
|
+
return store;
|
299042
|
+
}
|
299043
|
+
function withHooks2(rl, cb) {
|
299044
|
+
const store = createStore2(rl);
|
299045
|
+
return hookStorage2.run(store, () => {
|
299046
|
+
function cycle(render) {
|
299047
|
+
store.handleChange = () => {
|
299048
|
+
store.index = 0;
|
299049
|
+
render();
|
299050
|
+
};
|
299051
|
+
store.handleChange();
|
299052
|
+
}
|
299053
|
+
return cb(cycle);
|
299054
|
+
});
|
299055
|
+
}
|
299056
|
+
function getStore2() {
|
299057
|
+
const store = hookStorage2.getStore();
|
299058
|
+
if (!store) {
|
299059
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
299060
|
+
}
|
299061
|
+
return store;
|
299062
|
+
}
|
299063
|
+
function readline3() {
|
299064
|
+
return getStore2().rl;
|
299065
|
+
}
|
299066
|
+
function withUpdates2(fn) {
|
299067
|
+
const wrapped = (...args) => {
|
299068
|
+
const store = getStore2();
|
299069
|
+
let shouldUpdate = false;
|
299070
|
+
const oldHandleChange = store.handleChange;
|
299071
|
+
store.handleChange = () => {
|
299072
|
+
shouldUpdate = true;
|
299073
|
+
};
|
299074
|
+
const returnValue = fn(...args);
|
299075
|
+
if (shouldUpdate) {
|
299076
|
+
oldHandleChange();
|
299077
|
+
}
|
299078
|
+
store.handleChange = oldHandleChange;
|
299079
|
+
return returnValue;
|
299080
|
+
};
|
299081
|
+
return AsyncResource4.bind(wrapped);
|
299082
|
+
}
|
299083
|
+
function withPointer2(cb) {
|
299084
|
+
const store = getStore2();
|
299085
|
+
const { index: index2 } = store;
|
299086
|
+
const pointer = {
|
299087
|
+
get() {
|
299088
|
+
return store.hooks[index2];
|
299089
|
+
},
|
299090
|
+
set(value5) {
|
299091
|
+
store.hooks[index2] = value5;
|
299092
|
+
},
|
299093
|
+
initialized: index2 in store.hooks
|
299094
|
+
};
|
299095
|
+
const returnValue = cb(pointer);
|
299096
|
+
store.index++;
|
299097
|
+
return returnValue;
|
299098
|
+
}
|
299099
|
+
function handleChange2() {
|
299100
|
+
getStore2().handleChange();
|
299101
|
+
}
|
299102
|
+
var effectScheduler2 = {
|
299103
|
+
queue(cb) {
|
299104
|
+
const store = getStore2();
|
299105
|
+
const { index: index2 } = store;
|
299106
|
+
store.hooksEffect.push(() => {
|
299107
|
+
store.hooksCleanup[index2]?.();
|
299108
|
+
const cleanFn = cb(readline3());
|
299109
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
299110
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
299111
|
+
}
|
299112
|
+
store.hooksCleanup[index2] = cleanFn;
|
299113
|
+
});
|
299114
|
+
},
|
299115
|
+
run() {
|
299116
|
+
const store = getStore2();
|
299117
|
+
withUpdates2(() => {
|
299118
|
+
store.hooksEffect.forEach((effect) => {
|
299119
|
+
effect();
|
299120
|
+
});
|
299121
|
+
store.hooksEffect.length = 0;
|
299122
|
+
})();
|
299123
|
+
},
|
299124
|
+
clearAll() {
|
299125
|
+
const store = getStore2();
|
299126
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
299127
|
+
cleanFn?.();
|
299128
|
+
});
|
299129
|
+
store.hooksEffect.length = 0;
|
299130
|
+
store.hooksCleanup.length = 0;
|
299131
|
+
}
|
299132
|
+
};
|
299133
|
+
|
299134
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
299135
|
+
function useState2(defaultValue) {
|
299136
|
+
return withPointer2((pointer) => {
|
299137
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
299138
|
+
if (pointer.get() !== newValue) {
|
299139
|
+
pointer.set(newValue);
|
299140
|
+
handleChange2();
|
299141
|
+
}
|
299142
|
+
});
|
299143
|
+
if (pointer.initialized) {
|
299144
|
+
return [pointer.get(), setState];
|
299145
|
+
}
|
299146
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
299147
|
+
pointer.set(value5);
|
299148
|
+
return [value5, setState];
|
299149
|
+
});
|
299150
|
+
}
|
299151
|
+
|
299152
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
299153
|
+
function useEffect2(cb, depArray) {
|
299154
|
+
withPointer2((pointer) => {
|
299155
|
+
const oldDeps = pointer.get();
|
299156
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
299157
|
+
if (hasChanged) {
|
299158
|
+
effectScheduler2.queue(cb);
|
299159
|
+
}
|
299160
|
+
pointer.set(depArray);
|
299161
|
+
});
|
299162
|
+
}
|
299163
|
+
|
299164
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
299165
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
299166
|
+
var defaultTheme2 = {
|
299167
|
+
prefix: {
|
299168
|
+
idle: import_yoctocolors_cjs4.default.blue("?"),
|
299169
|
+
done: import_yoctocolors_cjs4.default.green(esm_default.tick)
|
299170
|
+
},
|
299171
|
+
spinner: {
|
299172
|
+
interval: 80,
|
299173
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
299174
|
+
},
|
299175
|
+
style: {
|
299176
|
+
answer: import_yoctocolors_cjs4.default.cyan,
|
299177
|
+
message: import_yoctocolors_cjs4.default.bold,
|
299178
|
+
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
299179
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
299180
|
+
help: import_yoctocolors_cjs4.default.dim,
|
299181
|
+
highlight: import_yoctocolors_cjs4.default.cyan,
|
299182
|
+
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
299183
|
+
}
|
299184
|
+
};
|
299185
|
+
|
299186
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
299187
|
+
function isPlainObject4(value5) {
|
299188
|
+
if (typeof value5 !== "object" || value5 === null)
|
299189
|
+
return false;
|
299190
|
+
let proto = value5;
|
299191
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
299192
|
+
proto = Object.getPrototypeOf(proto);
|
299193
|
+
}
|
299194
|
+
return Object.getPrototypeOf(value5) === proto;
|
299195
|
+
}
|
299196
|
+
function deepMerge3(...objects) {
|
299197
|
+
const output = {};
|
299198
|
+
for (const obj of objects) {
|
299199
|
+
for (const [key2, value5] of Object.entries(obj)) {
|
299200
|
+
const prevValue = output[key2];
|
299201
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
299202
|
+
}
|
299203
|
+
}
|
299204
|
+
return output;
|
299205
|
+
}
|
299206
|
+
function makeTheme2(...themes) {
|
299207
|
+
const themesToMerge = [
|
299208
|
+
defaultTheme2,
|
299209
|
+
...themes.filter((theme) => theme != null)
|
299210
|
+
];
|
299211
|
+
return deepMerge3(...themesToMerge);
|
299212
|
+
}
|
299213
|
+
|
299214
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
299215
|
+
function usePrefix2({ status = "idle", theme }) {
|
299216
|
+
const [showLoader, setShowLoader] = useState2(false);
|
299217
|
+
const [tick, setTick] = useState2(0);
|
299218
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
299219
|
+
useEffect2(() => {
|
299220
|
+
if (status === "loading") {
|
299221
|
+
let tickInterval;
|
299222
|
+
let inc = -1;
|
299223
|
+
const delayTimeout = setTimeout(() => {
|
299224
|
+
setShowLoader(true);
|
299225
|
+
tickInterval = setInterval(() => {
|
299226
|
+
inc = inc + 1;
|
299227
|
+
setTick(inc % spinner2.frames.length);
|
299228
|
+
}, spinner2.interval);
|
299229
|
+
}, 300);
|
299230
|
+
return () => {
|
299231
|
+
clearTimeout(delayTimeout);
|
299232
|
+
clearInterval(tickInterval);
|
299233
|
+
};
|
299234
|
+
} else {
|
299235
|
+
setShowLoader(false);
|
299236
|
+
}
|
299237
|
+
}, [status]);
|
299238
|
+
if (showLoader) {
|
299239
|
+
return spinner2.frames[tick];
|
299240
|
+
}
|
299241
|
+
const iconName = status === "loading" ? "idle" : status;
|
299242
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
299243
|
+
}
|
299244
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
299245
|
+
function useRef2(val) {
|
299246
|
+
return useState2({ current: val })[0];
|
299247
|
+
}
|
299248
|
+
|
299249
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
299250
|
+
function useKeypress2(userHandler) {
|
299251
|
+
const signal = useRef2(userHandler);
|
299252
|
+
signal.current = userHandler;
|
299253
|
+
useEffect2((rl) => {
|
299254
|
+
let ignore = false;
|
299255
|
+
const handler = withUpdates2((_input, event) => {
|
299256
|
+
if (ignore)
|
299257
|
+
return;
|
299258
|
+
signal.current(event, rl);
|
299259
|
+
});
|
299260
|
+
rl.input.on("keypress", handler);
|
299261
|
+
return () => {
|
299262
|
+
ignore = true;
|
299263
|
+
rl.input.removeListener("keypress", handler);
|
299264
|
+
};
|
299265
|
+
}, []);
|
299266
|
+
}
|
299267
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
299268
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
299269
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
299270
|
+
function breakLines2(content, width) {
|
299271
|
+
return content.split(`
|
299272
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
299273
|
+
`).map((str) => str.trimEnd())).join(`
|
299274
|
+
`);
|
299275
|
+
}
|
299276
|
+
function readlineWidth2() {
|
299277
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
299278
|
+
}
|
299279
|
+
|
299280
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
299281
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
299282
|
+
import * as readline4 from "node:readline";
|
299283
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
299284
|
+
|
299285
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
299286
|
+
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
299287
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
299288
|
+
var height2 = (content) => content.split(`
|
299289
|
+
`).length;
|
299290
|
+
var lastLine2 = (content) => content.split(`
|
299291
|
+
`).pop() ?? "";
|
299292
|
+
function cursorDown2(n7) {
|
299293
|
+
return n7 > 0 ? import_ansi_escapes.default.cursorDown(n7) : "";
|
299294
|
+
}
|
299295
|
+
|
299296
|
+
class ScreenManager2 {
|
299297
|
+
height = 0;
|
299298
|
+
extraLinesUnderPrompt = 0;
|
299299
|
+
cursorPos;
|
299300
|
+
rl;
|
299301
|
+
constructor(rl) {
|
299302
|
+
this.rl = rl;
|
299303
|
+
this.cursorPos = rl.getCursorPos();
|
299304
|
+
}
|
299305
|
+
write(content) {
|
299306
|
+
this.rl.output.unmute();
|
299307
|
+
this.rl.output.write(content);
|
299308
|
+
this.rl.output.mute();
|
299309
|
+
}
|
299310
|
+
render(content, bottomContent = "") {
|
299311
|
+
const promptLine = lastLine2(content);
|
299312
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
299313
|
+
let prompt = rawPromptLine;
|
299314
|
+
if (this.rl.line.length > 0) {
|
299315
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
299316
|
+
}
|
299317
|
+
this.rl.setPrompt(prompt);
|
299318
|
+
this.cursorPos = this.rl.getCursorPos();
|
299319
|
+
const width = readlineWidth2();
|
299320
|
+
content = breakLines2(content, width);
|
299321
|
+
bottomContent = breakLines2(bottomContent, width);
|
299322
|
+
if (rawPromptLine.length % width === 0) {
|
299323
|
+
content += `
|
299324
|
+
`;
|
299325
|
+
}
|
299326
|
+
let output = content + (bottomContent ? `
|
299327
|
+
` + bottomContent : "");
|
299328
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
299329
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
299330
|
+
if (bottomContentHeight > 0)
|
299331
|
+
output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
|
299332
|
+
output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
|
299333
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
|
299334
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
299335
|
+
this.height = height2(output);
|
299336
|
+
}
|
299337
|
+
checkCursorPos() {
|
299338
|
+
const cursorPos = this.rl.getCursorPos();
|
299339
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
299340
|
+
this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
|
299341
|
+
this.cursorPos = cursorPos;
|
299342
|
+
}
|
299343
|
+
}
|
299344
|
+
done({ clearContent }) {
|
299345
|
+
this.rl.setPrompt("");
|
299346
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
299347
|
+
output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
|
299348
|
+
`;
|
299349
|
+
output += import_ansi_escapes.default.cursorShow;
|
299350
|
+
this.write(output);
|
299351
|
+
this.rl.close();
|
299352
|
+
}
|
299353
|
+
}
|
299354
|
+
|
299355
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
299356
|
+
class PromisePolyfill2 extends Promise {
|
299357
|
+
static withResolver() {
|
299358
|
+
let resolve7;
|
299359
|
+
let reject;
|
299360
|
+
const promise2 = new Promise((res, rej) => {
|
299361
|
+
resolve7 = res;
|
299362
|
+
reject = rej;
|
299363
|
+
});
|
299364
|
+
return { promise: promise2, resolve: resolve7, reject };
|
299365
|
+
}
|
299366
|
+
}
|
299367
|
+
|
299368
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
299369
|
+
function getCallSites2() {
|
299370
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
299371
|
+
let result = [];
|
299372
|
+
try {
|
299373
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
299374
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
299375
|
+
result = callSitesWithoutCurrent;
|
299376
|
+
return callSitesWithoutCurrent;
|
299377
|
+
};
|
299378
|
+
new Error().stack;
|
299379
|
+
} catch {
|
299380
|
+
return result;
|
299381
|
+
}
|
299382
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
299383
|
+
return result;
|
299384
|
+
}
|
299385
|
+
function createPrompt2(view) {
|
299386
|
+
const callSites = getCallSites2();
|
299387
|
+
const prompt = (config3, context = {}) => {
|
299388
|
+
const { input = process.stdin, signal } = context;
|
299389
|
+
const cleanups = new Set;
|
299390
|
+
const output = new import_mute_stream2.default;
|
299391
|
+
output.pipe(context.output ?? process.stdout);
|
299392
|
+
const rl = readline4.createInterface({
|
299393
|
+
terminal: true,
|
299394
|
+
input,
|
299395
|
+
output
|
299396
|
+
});
|
299397
|
+
const screen = new ScreenManager2(rl);
|
299398
|
+
const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
|
299399
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
299400
|
+
if (signal) {
|
299401
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
299402
|
+
if (signal.aborted) {
|
299403
|
+
abort();
|
299404
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
299405
|
+
}
|
299406
|
+
signal.addEventListener("abort", abort);
|
299407
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
299408
|
+
}
|
299409
|
+
cleanups.add(onExit((code2, signal2) => {
|
299410
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
299411
|
+
}));
|
299412
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
299413
|
+
rl.on("SIGINT", sigint);
|
299414
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
299415
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
299416
|
+
rl.input.on("keypress", checkCursorPos);
|
299417
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
299418
|
+
return withHooks2(rl, (cycle) => {
|
299419
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
299420
|
+
rl.on("close", hooksCleanup);
|
299421
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
299422
|
+
cycle(() => {
|
299423
|
+
try {
|
299424
|
+
const nextView = view(config3, (value5) => {
|
299425
|
+
setImmediate(() => resolve7(value5));
|
299426
|
+
});
|
299427
|
+
if (nextView === undefined) {
|
299428
|
+
const callerFilename = callSites[1]?.getFileName();
|
299429
|
+
throw new Error(`Prompt functions must return a string.
|
299430
|
+
at ${callerFilename}`);
|
299431
|
+
}
|
299432
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
299433
|
+
screen.render(content, bottomContent);
|
299434
|
+
effectScheduler2.run();
|
299435
|
+
} catch (error48) {
|
299436
|
+
reject(error48);
|
299437
|
+
}
|
299438
|
+
});
|
299439
|
+
return Object.assign(promise2.then((answer) => {
|
299440
|
+
effectScheduler2.clearAll();
|
299441
|
+
return answer;
|
299442
|
+
}, (error48) => {
|
299443
|
+
effectScheduler2.clearAll();
|
299444
|
+
throw error48;
|
299445
|
+
}).finally(() => {
|
299446
|
+
cleanups.forEach((cleanup) => cleanup());
|
299447
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
299448
|
+
output.end();
|
299449
|
+
}).then(() => promise2), { cancel: cancel3 });
|
299450
|
+
});
|
299451
|
+
};
|
299452
|
+
return prompt;
|
299453
|
+
}
|
299454
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.18+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
|
299455
|
+
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
299456
|
+
var esm_default5 = createPrompt2((config3, done) => {
|
299458
299457
|
const { validate: validate8 = () => true } = config3;
|
299459
|
-
const theme =
|
299460
|
-
const [status, setStatus] =
|
299461
|
-
const [errorMsg, setError] =
|
299462
|
-
const [value5, setValue] =
|
299463
|
-
const prefix =
|
299464
|
-
|
299458
|
+
const theme = makeTheme2(config3.theme);
|
299459
|
+
const [status, setStatus] = useState2("idle");
|
299460
|
+
const [errorMsg, setError] = useState2();
|
299461
|
+
const [value5, setValue] = useState2("");
|
299462
|
+
const prefix = usePrefix2({ status, theme });
|
299463
|
+
useKeypress2(async (key3, rl) => {
|
299465
299464
|
if (status !== "idle") {
|
299466
299465
|
return;
|
299467
299466
|
}
|
299468
|
-
if (
|
299467
|
+
if (isEnterKey2(key3)) {
|
299469
299468
|
const answer = value5;
|
299470
299469
|
setStatus("loading");
|
299471
299470
|
const isValid = await validate8(answer);
|
@@ -299490,7 +299489,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
299490
299489
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
299491
299490
|
formattedValue = maskChar.repeat(value5.length);
|
299492
299491
|
} else if (status !== "done") {
|
299493
|
-
helpTip = `${theme.style.help("[input is masked]")}${cursorHide}`;
|
299492
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes2.default.cursorHide}`;
|
299494
299493
|
}
|
299495
299494
|
if (status === "done") {
|
299496
299495
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -309063,4 +309062,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
309063
309062
|
// src/cli.ts
|
309064
309063
|
sdkCliCommand();
|
309065
309064
|
|
309066
|
-
//# debugId=
|
309065
|
+
//# debugId=6C9DDC7444A47B4064756E2164756E21
|