@settlemint/sdk-cli 2.6.0-pr1f094253 → 2.6.0-pr97c0cff8
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 +782 -324
- package/dist/cli.js.map +18 -4
- package/package.json +7 -7
package/dist/cli.js
CHANGED
@@ -232045,16 +232045,16 @@ var init_lru = __esm(() => {
|
|
232045
232045
|
});
|
232046
232046
|
this.maxSize = size2;
|
232047
232047
|
}
|
232048
|
-
get(
|
232049
|
-
const value5 = super.get(
|
232050
|
-
if (super.has(
|
232051
|
-
this.delete(
|
232052
|
-
super.set(
|
232048
|
+
get(key3) {
|
232049
|
+
const value5 = super.get(key3);
|
232050
|
+
if (super.has(key3) && value5 !== undefined) {
|
232051
|
+
this.delete(key3);
|
232052
|
+
super.set(key3, value5);
|
232053
232053
|
}
|
232054
232054
|
return value5;
|
232055
232055
|
}
|
232056
|
-
set(
|
232057
|
-
super.set(
|
232056
|
+
set(key3, value5) {
|
232057
|
+
super.set(key3, value5);
|
232058
232058
|
if (this.maxSize && this.size > this.maxSize) {
|
232059
232059
|
const firstKey = this.keys().next().value;
|
232060
232060
|
if (firstKey)
|
@@ -233096,9 +233096,9 @@ var init_decodeErrorResult = __esm(() => {
|
|
233096
233096
|
});
|
233097
233097
|
|
233098
233098
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/utils/stringify.js
|
233099
|
-
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (
|
233099
|
+
var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key3, value_) => {
|
233100
233100
|
const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
|
233101
|
-
return typeof replacer === "function" ? replacer(
|
233101
|
+
return typeof replacer === "function" ? replacer(key3, value6) : value6;
|
233102
233102
|
}, space);
|
233103
233103
|
|
233104
233104
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
@@ -233212,13 +233212,13 @@ var init_stateOverride = __esm(() => {
|
|
233212
233212
|
|
233213
233213
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/errors/transaction.js
|
233214
233214
|
function prettyPrint(args) {
|
233215
|
-
const entries = Object.entries(args).map(([
|
233215
|
+
const entries = Object.entries(args).map(([key3, value5]) => {
|
233216
233216
|
if (value5 === undefined || value5 === false)
|
233217
233217
|
return null;
|
233218
|
-
return [
|
233218
|
+
return [key3, value5];
|
233219
233219
|
}).filter(Boolean);
|
233220
|
-
const maxLength = entries.reduce((acc, [
|
233221
|
-
return entries.map(([
|
233220
|
+
const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
|
233221
|
+
return entries.map(([key3, value5]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value5}`).join(`
|
233222
233222
|
`);
|
233223
233223
|
}
|
233224
233224
|
var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
|
@@ -234336,7 +234336,7 @@ var init_sha2 = __esm(() => {
|
|
234336
234336
|
});
|
234337
234337
|
|
234338
234338
|
// ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
|
234339
|
-
var HMAC, hmac = (hash2,
|
234339
|
+
var HMAC, hmac = (hash2, key3, message) => new HMAC(hash2, key3).update(message).digest();
|
234340
234340
|
var init_hmac = __esm(() => {
|
234341
234341
|
init_utils2();
|
234342
234342
|
HMAC = class HMAC extends Hash {
|
@@ -234345,7 +234345,7 @@ var init_hmac = __esm(() => {
|
|
234345
234345
|
this.finished = false;
|
234346
234346
|
this.destroyed = false;
|
234347
234347
|
ahash(hash2);
|
234348
|
-
const
|
234348
|
+
const key3 = toBytes2(_key);
|
234349
234349
|
this.iHash = hash2.create();
|
234350
234350
|
if (typeof this.iHash.update !== "function")
|
234351
234351
|
throw new Error("Expected instance of class which extends utils.Hash");
|
@@ -234353,7 +234353,7 @@ var init_hmac = __esm(() => {
|
|
234353
234353
|
this.outputLen = this.iHash.outputLen;
|
234354
234354
|
const blockLen = this.blockLen;
|
234355
234355
|
const pad2 = new Uint8Array(blockLen);
|
234356
|
-
pad2.set(
|
234356
|
+
pad2.set(key3.length > blockLen ? hash2.create().update(key3).digest() : key3);
|
234357
234357
|
for (let i7 = 0;i7 < pad2.length; i7++)
|
234358
234358
|
pad2[i7] ^= 54;
|
234359
234359
|
this.iHash.update(pad2);
|
@@ -234403,7 +234403,7 @@ var init_hmac = __esm(() => {
|
|
234403
234403
|
this.iHash.destroy();
|
234404
234404
|
}
|
234405
234405
|
};
|
234406
|
-
hmac.create = (hash2,
|
234406
|
+
hmac.create = (hash2, key3) => new HMAC(hash2, key3);
|
234407
234407
|
});
|
234408
234408
|
|
234409
234409
|
// ../../node_modules/.bun/@noble+curves@1.9.6/node_modules/@noble/curves/esm/utils.js
|
@@ -234866,13 +234866,13 @@ function getMinHashLength(fieldOrder) {
|
|
234866
234866
|
const length = getFieldBytesLength(fieldOrder);
|
234867
234867
|
return length + Math.ceil(length / 2);
|
234868
234868
|
}
|
234869
|
-
function mapHashToField(
|
234870
|
-
const len =
|
234869
|
+
function mapHashToField(key3, fieldOrder, isLE2 = false) {
|
234870
|
+
const len = key3.length;
|
234871
234871
|
const fieldLen = getFieldBytesLength(fieldOrder);
|
234872
234872
|
const minLen = getMinHashLength(fieldOrder);
|
234873
234873
|
if (len < 16 || len < minLen || len > 1024)
|
234874
234874
|
throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
|
234875
|
-
const num = isLE2 ? bytesToNumberLE(
|
234875
|
+
const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
|
234876
234876
|
const reduced = mod(num, fieldOrder - _1n3) + _1n3;
|
234877
234877
|
return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
|
234878
234878
|
}
|
@@ -235203,17 +235203,17 @@ function validateSigOpts(opts, def) {
|
|
235203
235203
|
validateSigFormat(optsn.format);
|
235204
235204
|
return optsn;
|
235205
235205
|
}
|
235206
|
-
function _normFnElement(Fn,
|
235206
|
+
function _normFnElement(Fn, key3) {
|
235207
235207
|
const { BYTES: expected } = Fn;
|
235208
235208
|
let num;
|
235209
|
-
if (typeof
|
235210
|
-
num =
|
235209
|
+
if (typeof key3 === "bigint") {
|
235210
|
+
num = key3;
|
235211
235211
|
} else {
|
235212
|
-
let bytes = ensureBytes("private key",
|
235212
|
+
let bytes = ensureBytes("private key", key3);
|
235213
235213
|
try {
|
235214
235214
|
num = Fn.fromBytes(bytes);
|
235215
235215
|
} catch (error48) {
|
235216
|
-
throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof
|
235216
|
+
throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key3}`);
|
235217
235217
|
}
|
235218
235218
|
}
|
235219
235219
|
if (!Fn.isValidNot0(num))
|
@@ -235797,7 +235797,7 @@ function ecdh(Point, ecdhOpts = {}) {
|
|
235797
235797
|
randomSecretKey,
|
235798
235798
|
isValidPrivateKey: isValidSecretKey,
|
235799
235799
|
randomPrivateKey: randomSecretKey,
|
235800
|
-
normPrivateKeyToScalar: (
|
235800
|
+
normPrivateKeyToScalar: (key3) => _normFnElement(Fn, key3),
|
235801
235801
|
precompute(windowSize = 8, point = Point.BASE) {
|
235802
235802
|
return point.precompute(windowSize, false);
|
235803
235803
|
}
|
@@ -235814,7 +235814,7 @@ function ecdsa(Point, hash2, ecdsaOpts = {}) {
|
|
235814
235814
|
bits2int_modN: "function"
|
235815
235815
|
});
|
235816
235816
|
const randomBytes2 = ecdsaOpts.randomBytes || randomBytes;
|
235817
|
-
const hmac2 = ecdsaOpts.hmac || ((
|
235817
|
+
const hmac2 = ecdsaOpts.hmac || ((key3, ...msgs) => hmac(hash2, key3, concatBytes(...msgs)));
|
235818
235818
|
const { Fp, Fn } = Point;
|
235819
235819
|
const { ORDER: CURVE_ORDER, BITS: fnBits } = Fn;
|
235820
235820
|
const { keygen, getPublicKey, getSharedSecret, utils, lengths } = ecdh(Point, ecdsaOpts);
|
@@ -236879,11 +236879,11 @@ function extract2(value_, { format: format3 }) {
|
|
236879
236879
|
const value5 = {};
|
236880
236880
|
function extract_(formatted2) {
|
236881
236881
|
const keys = Object.keys(formatted2);
|
236882
|
-
for (const
|
236883
|
-
if (
|
236884
|
-
value5[
|
236885
|
-
if (formatted2[
|
236886
|
-
extract_(formatted2[
|
236882
|
+
for (const key3 of keys) {
|
236883
|
+
if (key3 in value_)
|
236884
|
+
value5[key3] = value_[key3];
|
236885
|
+
if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
|
236886
|
+
extract_(formatted2[key3]);
|
236887
236887
|
}
|
236888
236888
|
}
|
236889
236889
|
const formatted = format3(value_ || {});
|
@@ -236899,8 +236899,8 @@ function defineFormatter(type5, format3) {
|
|
236899
236899
|
format: (args) => {
|
236900
236900
|
const formatted = format3(args);
|
236901
236901
|
if (exclude) {
|
236902
|
-
for (const
|
236903
|
-
delete formatted[
|
236902
|
+
for (const key3 of exclude) {
|
236903
|
+
delete formatted[key3];
|
236904
236904
|
}
|
236905
236905
|
}
|
236906
236906
|
return {
|
@@ -237310,9 +237310,9 @@ var init_Errors = __esm(() => {
|
|
237310
237310
|
|
237311
237311
|
// ../../node_modules/.bun/ox@0.8.7+f2e3f0548df57a15/node_modules/ox/_esm/core/Json.js
|
237312
237312
|
function stringify4(value5, replacer, space) {
|
237313
|
-
return JSON.stringify(value5, (
|
237313
|
+
return JSON.stringify(value5, (key3, value6) => {
|
237314
237314
|
if (typeof replacer === "function")
|
237315
|
-
return replacer(
|
237315
|
+
return replacer(key3, value6);
|
237316
237316
|
if (typeof value6 === "bigint")
|
237317
237317
|
return value6.toString() + bigIntSuffix;
|
237318
237318
|
return value6;
|
@@ -238740,11 +238740,11 @@ var require_visit = __commonJS((exports) => {
|
|
238740
238740
|
visit2.BREAK = BREAK;
|
238741
238741
|
visit2.SKIP = SKIP;
|
238742
238742
|
visit2.REMOVE = REMOVE;
|
238743
|
-
function visit_(
|
238744
|
-
const ctrl = callVisitor(
|
238743
|
+
function visit_(key3, node, visitor, path5) {
|
238744
|
+
const ctrl = callVisitor(key3, node, visitor, path5);
|
238745
238745
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
238746
|
-
replaceNode(
|
238747
|
-
return visit_(
|
238746
|
+
replaceNode(key3, path5, ctrl);
|
238747
|
+
return visit_(key3, ctrl, visitor, path5);
|
238748
238748
|
}
|
238749
238749
|
if (typeof ctrl !== "symbol") {
|
238750
238750
|
if (identity2.isCollection(node)) {
|
@@ -238788,11 +238788,11 @@ var require_visit = __commonJS((exports) => {
|
|
238788
238788
|
visitAsync.BREAK = BREAK;
|
238789
238789
|
visitAsync.SKIP = SKIP;
|
238790
238790
|
visitAsync.REMOVE = REMOVE;
|
238791
|
-
async function visitAsync_(
|
238792
|
-
const ctrl = await callVisitor(
|
238791
|
+
async function visitAsync_(key3, node, visitor, path5) {
|
238792
|
+
const ctrl = await callVisitor(key3, node, visitor, path5);
|
238793
238793
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
238794
|
-
replaceNode(
|
238795
|
-
return visitAsync_(
|
238794
|
+
replaceNode(key3, path5, ctrl);
|
238795
|
+
return visitAsync_(key3, ctrl, visitor, path5);
|
238796
238796
|
}
|
238797
238797
|
if (typeof ctrl !== "symbol") {
|
238798
238798
|
if (identity2.isCollection(node)) {
|
@@ -238842,27 +238842,27 @@ var require_visit = __commonJS((exports) => {
|
|
238842
238842
|
}
|
238843
238843
|
return visitor;
|
238844
238844
|
}
|
238845
|
-
function callVisitor(
|
238845
|
+
function callVisitor(key3, node, visitor, path5) {
|
238846
238846
|
if (typeof visitor === "function")
|
238847
|
-
return visitor(
|
238847
|
+
return visitor(key3, node, path5);
|
238848
238848
|
if (identity2.isMap(node))
|
238849
|
-
return visitor.Map?.(
|
238849
|
+
return visitor.Map?.(key3, node, path5);
|
238850
238850
|
if (identity2.isSeq(node))
|
238851
|
-
return visitor.Seq?.(
|
238851
|
+
return visitor.Seq?.(key3, node, path5);
|
238852
238852
|
if (identity2.isPair(node))
|
238853
|
-
return visitor.Pair?.(
|
238853
|
+
return visitor.Pair?.(key3, node, path5);
|
238854
238854
|
if (identity2.isScalar(node))
|
238855
|
-
return visitor.Scalar?.(
|
238855
|
+
return visitor.Scalar?.(key3, node, path5);
|
238856
238856
|
if (identity2.isAlias(node))
|
238857
|
-
return visitor.Alias?.(
|
238857
|
+
return visitor.Alias?.(key3, node, path5);
|
238858
238858
|
return;
|
238859
238859
|
}
|
238860
|
-
function replaceNode(
|
238860
|
+
function replaceNode(key3, path5, node) {
|
238861
238861
|
const parent = path5[path5.length - 1];
|
238862
238862
|
if (identity2.isCollection(parent)) {
|
238863
|
-
parent.items[
|
238863
|
+
parent.items[key3] = node;
|
238864
238864
|
} else if (identity2.isPair(parent)) {
|
238865
|
-
if (
|
238865
|
+
if (key3 === "key")
|
238866
238866
|
parent.key = node;
|
238867
238867
|
else
|
238868
238868
|
parent.value = node;
|
@@ -239093,7 +239093,7 @@ var require_anchors = __commonJS((exports) => {
|
|
239093
239093
|
|
239094
239094
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/doc/applyReviver.js
|
239095
239095
|
var require_applyReviver = __commonJS((exports) => {
|
239096
|
-
function applyReviver(reviver, obj,
|
239096
|
+
function applyReviver(reviver, obj, key3, val) {
|
239097
239097
|
if (val && typeof val === "object") {
|
239098
239098
|
if (Array.isArray(val)) {
|
239099
239099
|
for (let i8 = 0, len = val.length;i8 < len; ++i8) {
|
@@ -239133,7 +239133,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
239133
239133
|
}
|
239134
239134
|
}
|
239135
239135
|
}
|
239136
|
-
return reviver.call(obj,
|
239136
|
+
return reviver.call(obj, key3, val);
|
239137
239137
|
}
|
239138
239138
|
exports.applyReviver = applyReviver;
|
239139
239139
|
});
|
@@ -239462,29 +239462,29 @@ var require_Collection = __commonJS((exports) => {
|
|
239462
239462
|
if (isEmptyPath(path5))
|
239463
239463
|
this.add(value5);
|
239464
239464
|
else {
|
239465
|
-
const [
|
239466
|
-
const node = this.get(
|
239465
|
+
const [key3, ...rest] = path5;
|
239466
|
+
const node = this.get(key3, true);
|
239467
239467
|
if (identity2.isCollection(node))
|
239468
239468
|
node.addIn(rest, value5);
|
239469
239469
|
else if (node === undefined && this.schema)
|
239470
|
-
this.set(
|
239470
|
+
this.set(key3, collectionFromPath(this.schema, rest, value5));
|
239471
239471
|
else
|
239472
|
-
throw new Error(`Expected YAML collection at ${
|
239472
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239473
239473
|
}
|
239474
239474
|
}
|
239475
239475
|
deleteIn(path5) {
|
239476
|
-
const [
|
239476
|
+
const [key3, ...rest] = path5;
|
239477
239477
|
if (rest.length === 0)
|
239478
|
-
return this.delete(
|
239479
|
-
const node = this.get(
|
239478
|
+
return this.delete(key3);
|
239479
|
+
const node = this.get(key3, true);
|
239480
239480
|
if (identity2.isCollection(node))
|
239481
239481
|
return node.deleteIn(rest);
|
239482
239482
|
else
|
239483
|
-
throw new Error(`Expected YAML collection at ${
|
239483
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239484
239484
|
}
|
239485
239485
|
getIn(path5, keepScalar) {
|
239486
|
-
const [
|
239487
|
-
const node = this.get(
|
239486
|
+
const [key3, ...rest] = path5;
|
239487
|
+
const node = this.get(key3, true);
|
239488
239488
|
if (rest.length === 0)
|
239489
239489
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
239490
239490
|
else
|
@@ -239499,24 +239499,24 @@ var require_Collection = __commonJS((exports) => {
|
|
239499
239499
|
});
|
239500
239500
|
}
|
239501
239501
|
hasIn(path5) {
|
239502
|
-
const [
|
239502
|
+
const [key3, ...rest] = path5;
|
239503
239503
|
if (rest.length === 0)
|
239504
|
-
return this.has(
|
239505
|
-
const node = this.get(
|
239504
|
+
return this.has(key3);
|
239505
|
+
const node = this.get(key3, true);
|
239506
239506
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
239507
239507
|
}
|
239508
239508
|
setIn(path5, value5) {
|
239509
|
-
const [
|
239509
|
+
const [key3, ...rest] = path5;
|
239510
239510
|
if (rest.length === 0) {
|
239511
|
-
this.set(
|
239511
|
+
this.set(key3, value5);
|
239512
239512
|
} else {
|
239513
|
-
const node = this.get(
|
239513
|
+
const node = this.get(key3, true);
|
239514
239514
|
if (identity2.isCollection(node))
|
239515
239515
|
node.setIn(rest, value5);
|
239516
239516
|
else if (node === undefined && this.schema)
|
239517
|
-
this.set(
|
239517
|
+
this.set(key3, collectionFromPath(this.schema, rest, value5));
|
239518
239518
|
else
|
239519
|
-
throw new Error(`Expected YAML collection at ${
|
239519
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239520
239520
|
}
|
239521
239521
|
}
|
239522
239522
|
}
|
@@ -240103,19 +240103,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
240103
240103
|
var Scalar = require_Scalar();
|
240104
240104
|
var stringify5 = require_stringify();
|
240105
240105
|
var stringifyComment = require_stringifyComment();
|
240106
|
-
function stringifyPair2({ key:
|
240106
|
+
function stringifyPair2({ key: key3, value: value5 }, ctx, onComment, onChompKeep) {
|
240107
240107
|
const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
240108
|
-
let keyComment = identity2.isNode(
|
240108
|
+
let keyComment = identity2.isNode(key3) && key3.comment || null;
|
240109
240109
|
if (simpleKeys) {
|
240110
240110
|
if (keyComment) {
|
240111
240111
|
throw new Error("With simple keys, key nodes cannot have comments");
|
240112
240112
|
}
|
240113
|
-
if (identity2.isCollection(
|
240113
|
+
if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
|
240114
240114
|
const msg = "With simple keys, collection cannot be used as a key value";
|
240115
240115
|
throw new Error(msg);
|
240116
240116
|
}
|
240117
240117
|
}
|
240118
|
-
let explicitKey = !simpleKeys && (!
|
240118
|
+
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"));
|
240119
240119
|
ctx = Object.assign({}, ctx, {
|
240120
240120
|
allNullValues: false,
|
240121
240121
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -240123,7 +240123,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
240123
240123
|
});
|
240124
240124
|
let keyCommentDone = false;
|
240125
240125
|
let chompKeep = false;
|
240126
|
-
let str = stringify5.stringify(
|
240126
|
+
let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
240127
240127
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
240128
240128
|
if (simpleKeys)
|
240129
240129
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -240267,7 +240267,7 @@ var require_merge = __commonJS((exports) => {
|
|
240267
240267
|
}),
|
240268
240268
|
stringify: () => MERGE_KEY
|
240269
240269
|
};
|
240270
|
-
var isMergeKey = (ctx,
|
240270
|
+
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);
|
240271
240271
|
function addMergeToJSMap(ctx, map4, value5) {
|
240272
240272
|
value5 = ctx && identity2.isAlias(value5) ? value5.resolve(ctx.doc) : value5;
|
240273
240273
|
if (identity2.isSeq(value5))
|
@@ -240284,14 +240284,14 @@ var require_merge = __commonJS((exports) => {
|
|
240284
240284
|
if (!identity2.isMap(source))
|
240285
240285
|
throw new Error("Merge sources must be maps or map aliases");
|
240286
240286
|
const srcMap = source.toJSON(null, ctx, Map);
|
240287
|
-
for (const [
|
240287
|
+
for (const [key3, value6] of srcMap) {
|
240288
240288
|
if (map4 instanceof Map) {
|
240289
|
-
if (!map4.has(
|
240290
|
-
map4.set(
|
240289
|
+
if (!map4.has(key3))
|
240290
|
+
map4.set(key3, value6);
|
240291
240291
|
} else if (map4 instanceof Set) {
|
240292
|
-
map4.add(
|
240293
|
-
} else if (!Object.prototype.hasOwnProperty.call(map4,
|
240294
|
-
Object.defineProperty(map4,
|
240292
|
+
map4.add(key3);
|
240293
|
+
} else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
|
240294
|
+
Object.defineProperty(map4, key3, {
|
240295
240295
|
value: value6,
|
240296
240296
|
writable: true,
|
240297
240297
|
enumerable: true,
|
@@ -240313,19 +240313,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
240313
240313
|
var stringify5 = require_stringify();
|
240314
240314
|
var identity2 = require_identity();
|
240315
240315
|
var toJS = require_toJS();
|
240316
|
-
function addPairToJSMap(ctx, map4, { key:
|
240317
|
-
if (identity2.isNode(
|
240318
|
-
|
240319
|
-
else if (merge4.isMergeKey(ctx,
|
240316
|
+
function addPairToJSMap(ctx, map4, { key: key3, value: value5 }) {
|
240317
|
+
if (identity2.isNode(key3) && key3.addToJSMap)
|
240318
|
+
key3.addToJSMap(ctx, map4, value5);
|
240319
|
+
else if (merge4.isMergeKey(ctx, key3))
|
240320
240320
|
merge4.addMergeToJSMap(ctx, map4, value5);
|
240321
240321
|
else {
|
240322
|
-
const jsKey = toJS.toJS(
|
240322
|
+
const jsKey = toJS.toJS(key3, "", ctx);
|
240323
240323
|
if (map4 instanceof Map) {
|
240324
240324
|
map4.set(jsKey, toJS.toJS(value5, jsKey, ctx));
|
240325
240325
|
} else if (map4 instanceof Set) {
|
240326
240326
|
map4.add(jsKey);
|
240327
240327
|
} else {
|
240328
|
-
const stringKey = stringifyKey(
|
240328
|
+
const stringKey = stringifyKey(key3, jsKey, ctx);
|
240329
240329
|
const jsValue = toJS.toJS(value5, stringKey, ctx);
|
240330
240330
|
if (stringKey in map4)
|
240331
240331
|
Object.defineProperty(map4, stringKey, {
|
@@ -240340,19 +240340,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
240340
240340
|
}
|
240341
240341
|
return map4;
|
240342
240342
|
}
|
240343
|
-
function stringifyKey(
|
240343
|
+
function stringifyKey(key3, jsKey, ctx) {
|
240344
240344
|
if (jsKey === null)
|
240345
240345
|
return "";
|
240346
240346
|
if (typeof jsKey !== "object")
|
240347
240347
|
return String(jsKey);
|
240348
|
-
if (identity2.isNode(
|
240348
|
+
if (identity2.isNode(key3) && ctx?.doc) {
|
240349
240349
|
const strCtx = stringify5.createStringifyContext(ctx.doc, {});
|
240350
240350
|
strCtx.anchors = new Set;
|
240351
240351
|
for (const node of ctx.anchors.keys())
|
240352
240352
|
strCtx.anchors.add(node.anchor);
|
240353
240353
|
strCtx.inFlow = true;
|
240354
240354
|
strCtx.inStringifyKey = true;
|
240355
|
-
const strKey =
|
240355
|
+
const strKey = key3.toString(strCtx);
|
240356
240356
|
if (!ctx.mapKeyWarned) {
|
240357
240357
|
let jsonStr = JSON.stringify(strKey);
|
240358
240358
|
if (jsonStr.length > 40)
|
@@ -240373,25 +240373,25 @@ var require_Pair = __commonJS((exports) => {
|
|
240373
240373
|
var stringifyPair2 = require_stringifyPair();
|
240374
240374
|
var addPairToJSMap = require_addPairToJSMap();
|
240375
240375
|
var identity2 = require_identity();
|
240376
|
-
function createPair(
|
240377
|
-
const k6 = createNode.createNode(
|
240376
|
+
function createPair(key3, value5, ctx) {
|
240377
|
+
const k6 = createNode.createNode(key3, undefined, ctx);
|
240378
240378
|
const v7 = createNode.createNode(value5, undefined, ctx);
|
240379
240379
|
return new Pair(k6, v7);
|
240380
240380
|
}
|
240381
240381
|
|
240382
240382
|
class Pair {
|
240383
|
-
constructor(
|
240383
|
+
constructor(key3, value5 = null) {
|
240384
240384
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
240385
|
-
this.key =
|
240385
|
+
this.key = key3;
|
240386
240386
|
this.value = value5;
|
240387
240387
|
}
|
240388
240388
|
clone(schema) {
|
240389
|
-
let { key:
|
240390
|
-
if (identity2.isNode(
|
240391
|
-
|
240389
|
+
let { key: key3, value: value5 } = this;
|
240390
|
+
if (identity2.isNode(key3))
|
240391
|
+
key3 = key3.clone(schema);
|
240392
240392
|
if (identity2.isNode(value5))
|
240393
240393
|
value5 = value5.clone(schema);
|
240394
|
-
return new Pair(
|
240394
|
+
return new Pair(key3, value5);
|
240395
240395
|
}
|
240396
240396
|
toJSON(_6, ctx) {
|
240397
240397
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -240558,11 +240558,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
240558
240558
|
var identity2 = require_identity();
|
240559
240559
|
var Pair = require_Pair();
|
240560
240560
|
var Scalar = require_Scalar();
|
240561
|
-
function findPair(items,
|
240562
|
-
const k6 = identity2.isScalar(
|
240561
|
+
function findPair(items, key3) {
|
240562
|
+
const k6 = identity2.isScalar(key3) ? key3.value : key3;
|
240563
240563
|
for (const it2 of items) {
|
240564
240564
|
if (identity2.isPair(it2)) {
|
240565
|
-
if (it2.key ===
|
240565
|
+
if (it2.key === key3 || it2.key === k6)
|
240566
240566
|
return it2;
|
240567
240567
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
240568
240568
|
return it2;
|
@@ -240582,20 +240582,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
240582
240582
|
static from(schema, obj, ctx) {
|
240583
240583
|
const { keepUndefined, replacer } = ctx;
|
240584
240584
|
const map4 = new this(schema);
|
240585
|
-
const add = (
|
240585
|
+
const add = (key3, value5) => {
|
240586
240586
|
if (typeof replacer === "function")
|
240587
|
-
value5 = replacer.call(obj,
|
240588
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
240587
|
+
value5 = replacer.call(obj, key3, value5);
|
240588
|
+
else if (Array.isArray(replacer) && !replacer.includes(key3))
|
240589
240589
|
return;
|
240590
240590
|
if (value5 !== undefined || keepUndefined)
|
240591
|
-
map4.items.push(Pair.createPair(
|
240591
|
+
map4.items.push(Pair.createPair(key3, value5, ctx));
|
240592
240592
|
};
|
240593
240593
|
if (obj instanceof Map) {
|
240594
|
-
for (const [
|
240595
|
-
add(
|
240594
|
+
for (const [key3, value5] of obj)
|
240595
|
+
add(key3, value5);
|
240596
240596
|
} else if (obj && typeof obj === "object") {
|
240597
|
-
for (const
|
240598
|
-
add(
|
240597
|
+
for (const key3 of Object.keys(obj))
|
240598
|
+
add(key3, obj[key3]);
|
240599
240599
|
}
|
240600
240600
|
if (typeof schema.sortMapEntries === "function") {
|
240601
240601
|
map4.items.sort(schema.sortMapEntries);
|
@@ -240629,23 +240629,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
240629
240629
|
this.items.push(_pair);
|
240630
240630
|
}
|
240631
240631
|
}
|
240632
|
-
delete(
|
240633
|
-
const it2 = findPair(this.items,
|
240632
|
+
delete(key3) {
|
240633
|
+
const it2 = findPair(this.items, key3);
|
240634
240634
|
if (!it2)
|
240635
240635
|
return false;
|
240636
240636
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
240637
240637
|
return del.length > 0;
|
240638
240638
|
}
|
240639
|
-
get(
|
240640
|
-
const it2 = findPair(this.items,
|
240639
|
+
get(key3, keepScalar) {
|
240640
|
+
const it2 = findPair(this.items, key3);
|
240641
240641
|
const node = it2?.value;
|
240642
240642
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
240643
240643
|
}
|
240644
|
-
has(
|
240645
|
-
return !!findPair(this.items,
|
240644
|
+
has(key3) {
|
240645
|
+
return !!findPair(this.items, key3);
|
240646
240646
|
}
|
240647
|
-
set(
|
240648
|
-
this.add(new Pair.Pair(
|
240647
|
+
set(key3, value5) {
|
240648
|
+
this.add(new Pair.Pair(key3, value5), true);
|
240649
240649
|
}
|
240650
240650
|
toJSON(_6, ctx, Type) {
|
240651
240651
|
const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -240716,28 +240716,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
240716
240716
|
add(value5) {
|
240717
240717
|
this.items.push(value5);
|
240718
240718
|
}
|
240719
|
-
delete(
|
240720
|
-
const idx = asItemIndex(
|
240719
|
+
delete(key3) {
|
240720
|
+
const idx = asItemIndex(key3);
|
240721
240721
|
if (typeof idx !== "number")
|
240722
240722
|
return false;
|
240723
240723
|
const del = this.items.splice(idx, 1);
|
240724
240724
|
return del.length > 0;
|
240725
240725
|
}
|
240726
|
-
get(
|
240727
|
-
const idx = asItemIndex(
|
240726
|
+
get(key3, keepScalar) {
|
240727
|
+
const idx = asItemIndex(key3);
|
240728
240728
|
if (typeof idx !== "number")
|
240729
240729
|
return;
|
240730
240730
|
const it2 = this.items[idx];
|
240731
240731
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
240732
240732
|
}
|
240733
|
-
has(
|
240734
|
-
const idx = asItemIndex(
|
240733
|
+
has(key3) {
|
240734
|
+
const idx = asItemIndex(key3);
|
240735
240735
|
return typeof idx === "number" && idx < this.items.length;
|
240736
240736
|
}
|
240737
|
-
set(
|
240738
|
-
const idx = asItemIndex(
|
240737
|
+
set(key3, value5) {
|
240738
|
+
const idx = asItemIndex(key3);
|
240739
240739
|
if (typeof idx !== "number")
|
240740
|
-
throw new Error(`Expected a valid index, not ${
|
240740
|
+
throw new Error(`Expected a valid index, not ${key3}.`);
|
240741
240741
|
const prev = this.items[idx];
|
240742
240742
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value5))
|
240743
240743
|
prev.value = value5;
|
@@ -240771,8 +240771,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
240771
240771
|
let i8 = 0;
|
240772
240772
|
for (let it2 of obj) {
|
240773
240773
|
if (typeof replacer === "function") {
|
240774
|
-
const
|
240775
|
-
it2 = replacer.call(obj,
|
240774
|
+
const key3 = obj instanceof Set ? it2 : String(i8++);
|
240775
|
+
it2 = replacer.call(obj, key3, it2);
|
240776
240776
|
}
|
240777
240777
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
240778
240778
|
}
|
@@ -240780,8 +240780,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
240780
240780
|
return seq;
|
240781
240781
|
}
|
240782
240782
|
}
|
240783
|
-
function asItemIndex(
|
240784
|
-
let idx = identity2.isScalar(
|
240783
|
+
function asItemIndex(key3) {
|
240784
|
+
let idx = identity2.isScalar(key3) ? key3.value : key3;
|
240785
240785
|
if (idx && typeof idx === "string")
|
240786
240786
|
idx = Number(idx);
|
240787
240787
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -241154,25 +241154,25 @@ ${cn.comment}` : item.comment;
|
|
241154
241154
|
for (let it2 of iterable) {
|
241155
241155
|
if (typeof replacer === "function")
|
241156
241156
|
it2 = replacer.call(iterable, String(i8++), it2);
|
241157
|
-
let
|
241157
|
+
let key3, value5;
|
241158
241158
|
if (Array.isArray(it2)) {
|
241159
241159
|
if (it2.length === 2) {
|
241160
|
-
|
241160
|
+
key3 = it2[0];
|
241161
241161
|
value5 = it2[1];
|
241162
241162
|
} else
|
241163
241163
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
241164
241164
|
} else if (it2 && it2 instanceof Object) {
|
241165
241165
|
const keys = Object.keys(it2);
|
241166
241166
|
if (keys.length === 1) {
|
241167
|
-
|
241168
|
-
value5 = it2[
|
241167
|
+
key3 = keys[0];
|
241168
|
+
value5 = it2[key3];
|
241169
241169
|
} else {
|
241170
241170
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
241171
241171
|
}
|
241172
241172
|
} else {
|
241173
|
-
|
241173
|
+
key3 = it2;
|
241174
241174
|
}
|
241175
|
-
pairs2.items.push(Pair.createPair(
|
241175
|
+
pairs2.items.push(Pair.createPair(key3, value5, ctx));
|
241176
241176
|
}
|
241177
241177
|
return pairs2;
|
241178
241178
|
}
|
@@ -241213,16 +241213,16 @@ var require_omap = __commonJS((exports) => {
|
|
241213
241213
|
if (ctx?.onCreate)
|
241214
241214
|
ctx.onCreate(map4);
|
241215
241215
|
for (const pair of this.items) {
|
241216
|
-
let
|
241216
|
+
let key3, value5;
|
241217
241217
|
if (identity2.isPair(pair)) {
|
241218
|
-
|
241219
|
-
value5 = toJS.toJS(pair.value,
|
241218
|
+
key3 = toJS.toJS(pair.key, "", ctx);
|
241219
|
+
value5 = toJS.toJS(pair.value, key3, ctx);
|
241220
241220
|
} else {
|
241221
|
-
|
241221
|
+
key3 = toJS.toJS(pair, "", ctx);
|
241222
241222
|
}
|
241223
|
-
if (map4.has(
|
241223
|
+
if (map4.has(key3))
|
241224
241224
|
throw new Error("Ordered maps must not include duplicate keys");
|
241225
|
-
map4.set(
|
241225
|
+
map4.set(key3, value5);
|
241226
241226
|
}
|
241227
241227
|
return map4;
|
241228
241228
|
}
|
@@ -241243,12 +241243,12 @@ var require_omap = __commonJS((exports) => {
|
|
241243
241243
|
resolve(seq, onError) {
|
241244
241244
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
241245
241245
|
const seenKeys = [];
|
241246
|
-
for (const { key:
|
241247
|
-
if (identity2.isScalar(
|
241248
|
-
if (seenKeys.includes(
|
241249
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
241246
|
+
for (const { key: key3 } of pairs$1.items) {
|
241247
|
+
if (identity2.isScalar(key3)) {
|
241248
|
+
if (seenKeys.includes(key3.value)) {
|
241249
|
+
onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
|
241250
241250
|
} else {
|
241251
|
-
seenKeys.push(
|
241251
|
+
seenKeys.push(key3.value);
|
241252
241252
|
}
|
241253
241253
|
}
|
241254
241254
|
}
|
@@ -241422,30 +241422,30 @@ var require_set = __commonJS((exports) => {
|
|
241422
241422
|
super(schema);
|
241423
241423
|
this.tag = YAMLSet.tag;
|
241424
241424
|
}
|
241425
|
-
add(
|
241425
|
+
add(key3) {
|
241426
241426
|
let pair;
|
241427
|
-
if (identity2.isPair(
|
241428
|
-
pair =
|
241429
|
-
else if (
|
241430
|
-
pair = new Pair.Pair(
|
241427
|
+
if (identity2.isPair(key3))
|
241428
|
+
pair = key3;
|
241429
|
+
else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
|
241430
|
+
pair = new Pair.Pair(key3.key, null);
|
241431
241431
|
else
|
241432
|
-
pair = new Pair.Pair(
|
241432
|
+
pair = new Pair.Pair(key3, null);
|
241433
241433
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
241434
241434
|
if (!prev)
|
241435
241435
|
this.items.push(pair);
|
241436
241436
|
}
|
241437
|
-
get(
|
241438
|
-
const pair = YAMLMap.findPair(this.items,
|
241437
|
+
get(key3, keepPair) {
|
241438
|
+
const pair = YAMLMap.findPair(this.items, key3);
|
241439
241439
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
241440
241440
|
}
|
241441
|
-
set(
|
241441
|
+
set(key3, value5) {
|
241442
241442
|
if (typeof value5 !== "boolean")
|
241443
241443
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value5}`);
|
241444
|
-
const prev = YAMLMap.findPair(this.items,
|
241444
|
+
const prev = YAMLMap.findPair(this.items, key3);
|
241445
241445
|
if (prev && !value5) {
|
241446
241446
|
this.items.splice(this.items.indexOf(prev), 1);
|
241447
241447
|
} else if (!prev && value5) {
|
241448
|
-
this.items.push(new Pair.Pair(
|
241448
|
+
this.items.push(new Pair.Pair(key3));
|
241449
241449
|
}
|
241450
241450
|
}
|
241451
241451
|
toJSON(_6, ctx) {
|
@@ -241680,7 +241680,7 @@ var require_tags = __commonJS((exports) => {
|
|
241680
241680
|
if (Array.isArray(customTags))
|
241681
241681
|
tags = [];
|
241682
241682
|
else {
|
241683
|
-
const keys = Array.from(schemas3.keys()).filter((
|
241683
|
+
const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
|
241684
241684
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
241685
241685
|
}
|
241686
241686
|
}
|
@@ -241696,7 +241696,7 @@ var require_tags = __commonJS((exports) => {
|
|
241696
241696
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
241697
241697
|
if (!tagObj) {
|
241698
241698
|
const tagName = JSON.stringify(tag);
|
241699
|
-
const keys = Object.keys(tagsByName).map((
|
241699
|
+
const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
|
241700
241700
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
241701
241701
|
}
|
241702
241702
|
if (!tags2.includes(tagObj))
|
@@ -241931,13 +241931,13 @@ var require_Document = __commonJS((exports) => {
|
|
241931
241931
|
setAnchors();
|
241932
241932
|
return node;
|
241933
241933
|
}
|
241934
|
-
createPair(
|
241935
|
-
const k6 = this.createNode(
|
241934
|
+
createPair(key3, value5, options = {}) {
|
241935
|
+
const k6 = this.createNode(key3, null, options);
|
241936
241936
|
const v7 = this.createNode(value5, null, options);
|
241937
241937
|
return new Pair.Pair(k6, v7);
|
241938
241938
|
}
|
241939
|
-
delete(
|
241940
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
241939
|
+
delete(key3) {
|
241940
|
+
return assertCollection(this.contents) ? this.contents.delete(key3) : false;
|
241941
241941
|
}
|
241942
241942
|
deleteIn(path5) {
|
241943
241943
|
if (Collection.isEmptyPath(path5)) {
|
@@ -241948,27 +241948,27 @@ var require_Document = __commonJS((exports) => {
|
|
241948
241948
|
}
|
241949
241949
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
241950
241950
|
}
|
241951
|
-
get(
|
241952
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
241951
|
+
get(key3, keepScalar) {
|
241952
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
|
241953
241953
|
}
|
241954
241954
|
getIn(path5, keepScalar) {
|
241955
241955
|
if (Collection.isEmptyPath(path5))
|
241956
241956
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
241957
241957
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
241958
241958
|
}
|
241959
|
-
has(
|
241960
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
241959
|
+
has(key3) {
|
241960
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
|
241961
241961
|
}
|
241962
241962
|
hasIn(path5) {
|
241963
241963
|
if (Collection.isEmptyPath(path5))
|
241964
241964
|
return this.contents !== undefined;
|
241965
241965
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
241966
241966
|
}
|
241967
|
-
set(
|
241967
|
+
set(key3, value5) {
|
241968
241968
|
if (this.contents == null) {
|
241969
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
241969
|
+
this.contents = Collection.collectionFromPath(this.schema, [key3], value5);
|
241970
241970
|
} else if (assertCollection(this.contents)) {
|
241971
|
-
this.contents.set(
|
241971
|
+
this.contents.set(key3, value5);
|
241972
241972
|
}
|
241973
241973
|
}
|
241974
241974
|
setIn(path5, value5) {
|
@@ -242250,25 +242250,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
242250
242250
|
|
242251
242251
|
// ../../node_modules/.bun/yaml@2.8.1/node_modules/yaml/dist/compose/util-contains-newline.js
|
242252
242252
|
var require_util_contains_newline = __commonJS((exports) => {
|
242253
|
-
function containsNewline(
|
242254
|
-
if (!
|
242253
|
+
function containsNewline(key3) {
|
242254
|
+
if (!key3)
|
242255
242255
|
return null;
|
242256
|
-
switch (
|
242256
|
+
switch (key3.type) {
|
242257
242257
|
case "alias":
|
242258
242258
|
case "scalar":
|
242259
242259
|
case "double-quoted-scalar":
|
242260
242260
|
case "single-quoted-scalar":
|
242261
|
-
if (
|
242261
|
+
if (key3.source.includes(`
|
242262
242262
|
`))
|
242263
242263
|
return true;
|
242264
|
-
if (
|
242265
|
-
for (const st2 of
|
242264
|
+
if (key3.end) {
|
242265
|
+
for (const st2 of key3.end)
|
242266
242266
|
if (st2.type === "newline")
|
242267
242267
|
return true;
|
242268
242268
|
}
|
242269
242269
|
return false;
|
242270
242270
|
case "flow-collection":
|
242271
|
-
for (const it2 of
|
242271
|
+
for (const it2 of key3.items) {
|
242272
242272
|
for (const st2 of it2.start)
|
242273
242273
|
if (st2.type === "newline")
|
242274
242274
|
return true;
|
@@ -242333,10 +242333,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242333
242333
|
let offset = bm.offset;
|
242334
242334
|
let commentEnd = null;
|
242335
242335
|
for (const collItem of bm.items) {
|
242336
|
-
const { start: start3, key:
|
242336
|
+
const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
|
242337
242337
|
const keyProps = resolveProps.resolveProps(start3, {
|
242338
242338
|
indicator: "explicit-key-ind",
|
242339
|
-
next:
|
242339
|
+
next: key3 ?? sep4?.[0],
|
242340
242340
|
offset,
|
242341
242341
|
onError,
|
242342
242342
|
parentIndent: bm.indent,
|
@@ -242344,10 +242344,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242344
242344
|
});
|
242345
242345
|
const implicitKey = !keyProps.found;
|
242346
242346
|
if (implicitKey) {
|
242347
|
-
if (
|
242348
|
-
if (
|
242347
|
+
if (key3) {
|
242348
|
+
if (key3.type === "block-seq")
|
242349
242349
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
242350
|
-
else if ("indent" in
|
242350
|
+
else if ("indent" in key3 && key3.indent !== bm.indent)
|
242351
242351
|
onError(offset, "BAD_INDENT", startColMsg);
|
242352
242352
|
}
|
242353
242353
|
if (!keyProps.anchor && !keyProps.tag && !sep4) {
|
@@ -242361,17 +242361,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242361
242361
|
}
|
242362
242362
|
continue;
|
242363
242363
|
}
|
242364
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
242365
|
-
onError(
|
242364
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
|
242365
|
+
onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
242366
242366
|
}
|
242367
242367
|
} else if (keyProps.found?.indent !== bm.indent) {
|
242368
242368
|
onError(offset, "BAD_INDENT", startColMsg);
|
242369
242369
|
}
|
242370
242370
|
ctx.atKey = true;
|
242371
242371
|
const keyStart = keyProps.end;
|
242372
|
-
const keyNode =
|
242372
|
+
const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
242373
242373
|
if (ctx.schema.compat)
|
242374
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
242374
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
|
242375
242375
|
ctx.atKey = false;
|
242376
242376
|
if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
|
242377
242377
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -242381,7 +242381,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242381
242381
|
offset: keyNode.range[2],
|
242382
242382
|
onError,
|
242383
242383
|
parentIndent: bm.indent,
|
242384
|
-
startOnNewline: !
|
242384
|
+
startOnNewline: !key3 || key3.type === "block-scalar"
|
242385
242385
|
});
|
242386
242386
|
offset = valueProps.end;
|
242387
242387
|
if (valueProps.found) {
|
@@ -242537,11 +242537,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
242537
242537
|
let offset = fc.offset + fc.start.source.length;
|
242538
242538
|
for (let i8 = 0;i8 < fc.items.length; ++i8) {
|
242539
242539
|
const collItem = fc.items[i8];
|
242540
|
-
const { start: start3, key:
|
242540
|
+
const { start: start3, key: key3, sep: sep4, value: value5 } = collItem;
|
242541
242541
|
const props = resolveProps.resolveProps(start3, {
|
242542
242542
|
flow: fcName,
|
242543
242543
|
indicator: "explicit-key-ind",
|
242544
|
-
next:
|
242544
|
+
next: key3 ?? sep4?.[0],
|
242545
242545
|
offset,
|
242546
242546
|
onError,
|
242547
242547
|
parentIndent: fc.indent,
|
@@ -242563,8 +242563,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
242563
242563
|
offset = props.end;
|
242564
242564
|
continue;
|
242565
242565
|
}
|
242566
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
242567
|
-
onError(
|
242566
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
|
242567
|
+
onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
242568
242568
|
}
|
242569
242569
|
if (i8 === 0) {
|
242570
242570
|
if (props.comma)
|
@@ -242609,8 +242609,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
242609
242609
|
} else {
|
242610
242610
|
ctx.atKey = true;
|
242611
242611
|
const keyStart = props.end;
|
242612
|
-
const keyNode =
|
242613
|
-
if (isBlock(
|
242612
|
+
const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
242613
|
+
if (isBlock(key3))
|
242614
242614
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
242615
242615
|
ctx.atKey = false;
|
242616
242616
|
const valueProps = resolveProps.resolveProps(sep4 ?? [], {
|
@@ -243421,7 +243421,7 @@ var require_composer = __commonJS((exports) => {
|
|
243421
243421
|
var node_process = __require("process");
|
243422
243422
|
var directives5 = require_directives2();
|
243423
243423
|
var Document = require_Document();
|
243424
|
-
var
|
243424
|
+
var errors5 = require_errors3();
|
243425
243425
|
var identity2 = require_identity();
|
243426
243426
|
var composeDoc = require_compose_doc();
|
243427
243427
|
var resolveEnd = require_resolve_end();
|
@@ -243472,9 +243472,9 @@ var require_composer = __commonJS((exports) => {
|
|
243472
243472
|
this.onError = (source, code2, message, warning) => {
|
243473
243473
|
const pos = getErrorPos(source);
|
243474
243474
|
if (warning)
|
243475
|
-
this.warnings.push(new
|
243475
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
243476
243476
|
else
|
243477
|
-
this.errors.push(new
|
243477
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
243478
243478
|
};
|
243479
243479
|
this.directives = new directives5.Directives({ version: options.version || "1.2" });
|
243480
243480
|
this.options = options;
|
@@ -243558,7 +243558,7 @@ ${cb}` : comment;
|
|
243558
243558
|
break;
|
243559
243559
|
case "error": {
|
243560
243560
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
243561
|
-
const error48 = new
|
243561
|
+
const error48 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
243562
243562
|
if (this.atDirectives || !this.doc)
|
243563
243563
|
this.errors.push(error48);
|
243564
243564
|
else
|
@@ -243568,7 +243568,7 @@ ${cb}` : comment;
|
|
243568
243568
|
case "doc-end": {
|
243569
243569
|
if (!this.doc) {
|
243570
243570
|
const msg = "Unexpected doc-end without preceding document";
|
243571
|
-
this.errors.push(new
|
243571
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
243572
243572
|
break;
|
243573
243573
|
}
|
243574
243574
|
this.doc.directives.docEnd = true;
|
@@ -243583,7 +243583,7 @@ ${end.comment}` : end.comment;
|
|
243583
243583
|
break;
|
243584
243584
|
}
|
243585
243585
|
default:
|
243586
|
-
this.errors.push(new
|
243586
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
243587
243587
|
}
|
243588
243588
|
}
|
243589
243589
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -243609,7 +243609,7 @@ ${end.comment}` : end.comment;
|
|
243609
243609
|
var require_cst_scalar = __commonJS((exports) => {
|
243610
243610
|
var resolveBlockScalar = require_resolve_block_scalar();
|
243611
243611
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
243612
|
-
var
|
243612
|
+
var errors5 = require_errors3();
|
243613
243613
|
var stringifyString = require_stringifyString();
|
243614
243614
|
function resolveAsScalar(token, strict = true, onError) {
|
243615
243615
|
if (token) {
|
@@ -243618,7 +243618,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
243618
243618
|
if (onError)
|
243619
243619
|
onError(offset, code2, message);
|
243620
243620
|
else
|
243621
|
-
throw new
|
243621
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
243622
243622
|
};
|
243623
243623
|
switch (token.type) {
|
243624
243624
|
case "scalar":
|
@@ -243732,9 +243732,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
243732
243732
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
243733
243733
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
243734
243734
|
` });
|
243735
|
-
for (const
|
243736
|
-
if (
|
243737
|
-
delete token[
|
243735
|
+
for (const key3 of Object.keys(token))
|
243736
|
+
if (key3 !== "type" && key3 !== "offset")
|
243737
|
+
delete token[key3];
|
243738
243738
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
243739
243739
|
}
|
243740
243740
|
}
|
@@ -243783,9 +243783,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
243783
243783
|
default: {
|
243784
243784
|
const indent2 = "indent" in token ? token.indent : -1;
|
243785
243785
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
243786
|
-
for (const
|
243787
|
-
if (
|
243788
|
-
delete token[
|
243786
|
+
for (const key3 of Object.keys(token))
|
243787
|
+
if (key3 !== "type" && key3 !== "offset")
|
243788
|
+
delete token[key3];
|
243789
243789
|
Object.assign(token, { type: type5, indent: indent2, source, end });
|
243790
243790
|
}
|
243791
243791
|
}
|
@@ -243837,12 +243837,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
243837
243837
|
}
|
243838
243838
|
}
|
243839
243839
|
}
|
243840
|
-
function stringifyItem({ start: start3, key:
|
243840
|
+
function stringifyItem({ start: start3, key: key3, sep: sep4, value: value5 }) {
|
243841
243841
|
let res = "";
|
243842
243842
|
for (const st2 of start3)
|
243843
243843
|
res += st2.source;
|
243844
|
-
if (
|
243845
|
-
res += stringifyToken(
|
243844
|
+
if (key3)
|
243845
|
+
res += stringifyToken(key3);
|
243846
243846
|
if (sep4)
|
243847
243847
|
for (const st2 of sep4)
|
243848
243848
|
res += st2.source;
|
@@ -245138,7 +245138,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245138
245138
|
});
|
245139
245139
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
245140
245140
|
const start4 = getFirstKeyStartProps(it2.start);
|
245141
|
-
const
|
245141
|
+
const key3 = it2.key;
|
245142
245142
|
const sep4 = it2.sep;
|
245143
245143
|
sep4.push(this.sourceToken);
|
245144
245144
|
delete it2.key;
|
@@ -245147,7 +245147,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245147
245147
|
type: "block-map",
|
245148
245148
|
offset: this.offset,
|
245149
245149
|
indent: this.indent,
|
245150
|
-
items: [{ start: start4, key:
|
245150
|
+
items: [{ start: start4, key: key3, sep: sep4 }]
|
245151
245151
|
});
|
245152
245152
|
} else if (start3.length > 0) {
|
245153
245153
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -245480,7 +245480,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245480
245480
|
var require_public_api = __commonJS((exports) => {
|
245481
245481
|
var composer = require_composer();
|
245482
245482
|
var Document = require_Document();
|
245483
|
-
var
|
245483
|
+
var errors5 = require_errors3();
|
245484
245484
|
var log = require_log();
|
245485
245485
|
var identity2 = require_identity();
|
245486
245486
|
var lineCounter = require_line_counter();
|
@@ -245497,8 +245497,8 @@ var require_public_api = __commonJS((exports) => {
|
|
245497
245497
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
245498
245498
|
if (prettyErrors && lineCounter2)
|
245499
245499
|
for (const doc2 of docs) {
|
245500
|
-
doc2.errors.forEach(
|
245501
|
-
doc2.warnings.forEach(
|
245500
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
245501
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
245502
245502
|
}
|
245503
245503
|
if (docs.length > 0)
|
245504
245504
|
return docs;
|
@@ -245513,13 +245513,13 @@ var require_public_api = __commonJS((exports) => {
|
|
245513
245513
|
if (!doc2)
|
245514
245514
|
doc2 = _doc;
|
245515
245515
|
else if (doc2.options.logLevel !== "silent") {
|
245516
|
-
doc2.errors.push(new
|
245516
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
245517
245517
|
break;
|
245518
245518
|
}
|
245519
245519
|
}
|
245520
245520
|
if (prettyErrors && lineCounter2) {
|
245521
|
-
doc2.errors.forEach(
|
245522
|
-
doc2.warnings.forEach(
|
245521
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
245522
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
245523
245523
|
}
|
245524
245524
|
return doc2;
|
245525
245525
|
}
|
@@ -264945,7 +264945,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
264945
264945
|
var package_default = {
|
264946
264946
|
name: "@settlemint/sdk-cli",
|
264947
264947
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
264948
|
-
version: "2.6.0-
|
264948
|
+
version: "2.6.0-pr97c0cff8",
|
264949
264949
|
type: "module",
|
264950
264950
|
private: false,
|
264951
264951
|
license: "FSL-1.1-MIT",
|
@@ -264996,13 +264996,13 @@ var package_default = {
|
|
264996
264996
|
"@commander-js/extra-typings": "14.0.0",
|
264997
264997
|
commander: "14.0.0",
|
264998
264998
|
"@inquirer/confirm": "5.1.15",
|
264999
|
-
"@inquirer/input": "4.2.
|
264999
|
+
"@inquirer/input": "4.2.2",
|
265000
265000
|
"@inquirer/password": "4.0.17",
|
265001
265001
|
"@inquirer/select": "4.3.1",
|
265002
|
-
"@settlemint/sdk-hasura": "2.6.0-
|
265003
|
-
"@settlemint/sdk-js": "2.6.0-
|
265004
|
-
"@settlemint/sdk-utils": "2.6.0-
|
265005
|
-
"@settlemint/sdk-viem": "2.6.0-
|
265002
|
+
"@settlemint/sdk-hasura": "2.6.0-pr97c0cff8",
|
265003
|
+
"@settlemint/sdk-js": "2.6.0-pr97c0cff8",
|
265004
|
+
"@settlemint/sdk-utils": "2.6.0-pr97c0cff8",
|
265005
|
+
"@settlemint/sdk-viem": "2.6.0-pr97c0cff8",
|
265006
265006
|
"@types/node": "24.3.0",
|
265007
265007
|
"@types/semver": "7.7.0",
|
265008
265008
|
"@types/which": "3.0.4",
|
@@ -265019,7 +265019,7 @@ var package_default = {
|
|
265019
265019
|
},
|
265020
265020
|
peerDependencies: {
|
265021
265021
|
hardhat: "<= 4",
|
265022
|
-
"@settlemint/sdk-js": "2.6.0-
|
265022
|
+
"@settlemint/sdk-js": "2.6.0-pr97c0cff8"
|
265023
265023
|
},
|
265024
265024
|
peerDependenciesMeta: {
|
265025
265025
|
hardhat: {
|
@@ -270889,23 +270889,481 @@ function sanitizeName(value5, length = 35) {
|
|
270889
270889
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
270890
270890
|
}
|
270891
270891
|
|
270892
|
-
// ../../node_modules/.bun/@inquirer+
|
270892
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/key.js
|
270893
|
+
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
270894
|
+
var isTabKey = (key2) => key2.name === "tab";
|
270895
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
270896
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
270897
|
+
class AbortPromptError2 extends Error {
|
270898
|
+
name = "AbortPromptError";
|
270899
|
+
message = "Prompt was aborted";
|
270900
|
+
constructor(options) {
|
270901
|
+
super();
|
270902
|
+
this.cause = options?.cause;
|
270903
|
+
}
|
270904
|
+
}
|
270905
|
+
|
270906
|
+
class CancelPromptError2 extends Error {
|
270907
|
+
name = "CancelPromptError";
|
270908
|
+
message = "Prompt was canceled";
|
270909
|
+
}
|
270910
|
+
|
270911
|
+
class ExitPromptError2 extends Error {
|
270912
|
+
name = "ExitPromptError";
|
270913
|
+
}
|
270914
|
+
|
270915
|
+
class HookError2 extends Error {
|
270916
|
+
name = "HookError";
|
270917
|
+
}
|
270918
|
+
|
270919
|
+
class ValidationError2 extends Error {
|
270920
|
+
name = "ValidationError";
|
270921
|
+
}
|
270922
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
270923
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
270924
|
+
|
270925
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
270926
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
270927
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
270928
|
+
function createStore2(rl) {
|
270929
|
+
const store = {
|
270930
|
+
rl,
|
270931
|
+
hooks: [],
|
270932
|
+
hooksCleanup: [],
|
270933
|
+
hooksEffect: [],
|
270934
|
+
index: 0,
|
270935
|
+
handleChange() {}
|
270936
|
+
};
|
270937
|
+
return store;
|
270938
|
+
}
|
270939
|
+
function withHooks2(rl, cb) {
|
270940
|
+
const store = createStore2(rl);
|
270941
|
+
return hookStorage2.run(store, () => {
|
270942
|
+
function cycle(render) {
|
270943
|
+
store.handleChange = () => {
|
270944
|
+
store.index = 0;
|
270945
|
+
render();
|
270946
|
+
};
|
270947
|
+
store.handleChange();
|
270948
|
+
}
|
270949
|
+
return cb(cycle);
|
270950
|
+
});
|
270951
|
+
}
|
270952
|
+
function getStore2() {
|
270953
|
+
const store = hookStorage2.getStore();
|
270954
|
+
if (!store) {
|
270955
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
270956
|
+
}
|
270957
|
+
return store;
|
270958
|
+
}
|
270959
|
+
function readline3() {
|
270960
|
+
return getStore2().rl;
|
270961
|
+
}
|
270962
|
+
function withUpdates2(fn) {
|
270963
|
+
const wrapped = (...args) => {
|
270964
|
+
const store = getStore2();
|
270965
|
+
let shouldUpdate = false;
|
270966
|
+
const oldHandleChange = store.handleChange;
|
270967
|
+
store.handleChange = () => {
|
270968
|
+
shouldUpdate = true;
|
270969
|
+
};
|
270970
|
+
const returnValue = fn(...args);
|
270971
|
+
if (shouldUpdate) {
|
270972
|
+
oldHandleChange();
|
270973
|
+
}
|
270974
|
+
store.handleChange = oldHandleChange;
|
270975
|
+
return returnValue;
|
270976
|
+
};
|
270977
|
+
return AsyncResource4.bind(wrapped);
|
270978
|
+
}
|
270979
|
+
function withPointer2(cb) {
|
270980
|
+
const store = getStore2();
|
270981
|
+
const { index } = store;
|
270982
|
+
const pointer = {
|
270983
|
+
get() {
|
270984
|
+
return store.hooks[index];
|
270985
|
+
},
|
270986
|
+
set(value5) {
|
270987
|
+
store.hooks[index] = value5;
|
270988
|
+
},
|
270989
|
+
initialized: index in store.hooks
|
270990
|
+
};
|
270991
|
+
const returnValue = cb(pointer);
|
270992
|
+
store.index++;
|
270993
|
+
return returnValue;
|
270994
|
+
}
|
270995
|
+
function handleChange2() {
|
270996
|
+
getStore2().handleChange();
|
270997
|
+
}
|
270998
|
+
var effectScheduler2 = {
|
270999
|
+
queue(cb) {
|
271000
|
+
const store = getStore2();
|
271001
|
+
const { index } = store;
|
271002
|
+
store.hooksEffect.push(() => {
|
271003
|
+
store.hooksCleanup[index]?.();
|
271004
|
+
const cleanFn = cb(readline3());
|
271005
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
271006
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
271007
|
+
}
|
271008
|
+
store.hooksCleanup[index] = cleanFn;
|
271009
|
+
});
|
271010
|
+
},
|
271011
|
+
run() {
|
271012
|
+
const store = getStore2();
|
271013
|
+
withUpdates2(() => {
|
271014
|
+
store.hooksEffect.forEach((effect) => {
|
271015
|
+
effect();
|
271016
|
+
});
|
271017
|
+
store.hooksEffect.length = 0;
|
271018
|
+
})();
|
271019
|
+
},
|
271020
|
+
clearAll() {
|
271021
|
+
const store = getStore2();
|
271022
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
271023
|
+
cleanFn?.();
|
271024
|
+
});
|
271025
|
+
store.hooksEffect.length = 0;
|
271026
|
+
store.hooksCleanup.length = 0;
|
271027
|
+
}
|
271028
|
+
};
|
271029
|
+
|
271030
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
271031
|
+
function useState2(defaultValue) {
|
271032
|
+
return withPointer2((pointer) => {
|
271033
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
271034
|
+
if (pointer.get() !== newValue) {
|
271035
|
+
pointer.set(newValue);
|
271036
|
+
handleChange2();
|
271037
|
+
}
|
271038
|
+
});
|
271039
|
+
if (pointer.initialized) {
|
271040
|
+
return [pointer.get(), setState];
|
271041
|
+
}
|
271042
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
271043
|
+
pointer.set(value5);
|
271044
|
+
return [value5, setState];
|
271045
|
+
});
|
271046
|
+
}
|
271047
|
+
|
271048
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
271049
|
+
function useEffect2(cb, depArray) {
|
271050
|
+
withPointer2((pointer) => {
|
271051
|
+
const oldDeps = pointer.get();
|
271052
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
271053
|
+
if (hasChanged) {
|
271054
|
+
effectScheduler2.queue(cb);
|
271055
|
+
}
|
271056
|
+
pointer.set(depArray);
|
271057
|
+
});
|
271058
|
+
}
|
271059
|
+
|
271060
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
271061
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
271062
|
+
var defaultTheme2 = {
|
271063
|
+
prefix: {
|
271064
|
+
idle: import_yoctocolors_cjs3.default.blue("?"),
|
271065
|
+
done: import_yoctocolors_cjs3.default.green(esm_default.tick)
|
271066
|
+
},
|
271067
|
+
spinner: {
|
271068
|
+
interval: 80,
|
271069
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
271070
|
+
},
|
271071
|
+
style: {
|
271072
|
+
answer: import_yoctocolors_cjs3.default.cyan,
|
271073
|
+
message: import_yoctocolors_cjs3.default.bold,
|
271074
|
+
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
271075
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
271076
|
+
help: import_yoctocolors_cjs3.default.dim,
|
271077
|
+
highlight: import_yoctocolors_cjs3.default.cyan,
|
271078
|
+
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
271079
|
+
}
|
271080
|
+
};
|
271081
|
+
|
271082
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
271083
|
+
function isPlainObject4(value5) {
|
271084
|
+
if (typeof value5 !== "object" || value5 === null)
|
271085
|
+
return false;
|
271086
|
+
let proto = value5;
|
271087
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
271088
|
+
proto = Object.getPrototypeOf(proto);
|
271089
|
+
}
|
271090
|
+
return Object.getPrototypeOf(value5) === proto;
|
271091
|
+
}
|
271092
|
+
function deepMerge3(...objects) {
|
271093
|
+
const output = {};
|
271094
|
+
for (const obj of objects) {
|
271095
|
+
for (const [key2, value5] of Object.entries(obj)) {
|
271096
|
+
const prevValue = output[key2];
|
271097
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
271098
|
+
}
|
271099
|
+
}
|
271100
|
+
return output;
|
271101
|
+
}
|
271102
|
+
function makeTheme2(...themes) {
|
271103
|
+
const themesToMerge = [
|
271104
|
+
defaultTheme2,
|
271105
|
+
...themes.filter((theme) => theme != null)
|
271106
|
+
];
|
271107
|
+
return deepMerge3(...themesToMerge);
|
271108
|
+
}
|
271109
|
+
|
271110
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
271111
|
+
function usePrefix2({ status = "idle", theme }) {
|
271112
|
+
const [showLoader, setShowLoader] = useState2(false);
|
271113
|
+
const [tick, setTick] = useState2(0);
|
271114
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
271115
|
+
useEffect2(() => {
|
271116
|
+
if (status === "loading") {
|
271117
|
+
let tickInterval;
|
271118
|
+
let inc = -1;
|
271119
|
+
const delayTimeout = setTimeout(() => {
|
271120
|
+
setShowLoader(true);
|
271121
|
+
tickInterval = setInterval(() => {
|
271122
|
+
inc = inc + 1;
|
271123
|
+
setTick(inc % spinner2.frames.length);
|
271124
|
+
}, spinner2.interval);
|
271125
|
+
}, 300);
|
271126
|
+
return () => {
|
271127
|
+
clearTimeout(delayTimeout);
|
271128
|
+
clearInterval(tickInterval);
|
271129
|
+
};
|
271130
|
+
} else {
|
271131
|
+
setShowLoader(false);
|
271132
|
+
}
|
271133
|
+
}, [status]);
|
271134
|
+
if (showLoader) {
|
271135
|
+
return spinner2.frames[tick];
|
271136
|
+
}
|
271137
|
+
const iconName = status === "loading" ? "idle" : status;
|
271138
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
271139
|
+
}
|
271140
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
271141
|
+
function useRef2(val) {
|
271142
|
+
return useState2({ current: val })[0];
|
271143
|
+
}
|
271144
|
+
|
271145
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
271146
|
+
function useKeypress2(userHandler) {
|
271147
|
+
const signal = useRef2(userHandler);
|
271148
|
+
signal.current = userHandler;
|
271149
|
+
useEffect2((rl) => {
|
271150
|
+
let ignore = false;
|
271151
|
+
const handler = withUpdates2((_input, event) => {
|
271152
|
+
if (ignore)
|
271153
|
+
return;
|
271154
|
+
signal.current(event, rl);
|
271155
|
+
});
|
271156
|
+
rl.input.on("keypress", handler);
|
271157
|
+
return () => {
|
271158
|
+
ignore = true;
|
271159
|
+
rl.input.removeListener("keypress", handler);
|
271160
|
+
};
|
271161
|
+
}, []);
|
271162
|
+
}
|
271163
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
271164
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
271165
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
271166
|
+
function breakLines2(content, width) {
|
271167
|
+
return content.split(`
|
271168
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
271169
|
+
`).map((str) => str.trimEnd())).join(`
|
271170
|
+
`);
|
271171
|
+
}
|
271172
|
+
function readlineWidth2() {
|
271173
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
271174
|
+
}
|
271175
|
+
|
271176
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
271177
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
271178
|
+
import * as readline4 from "node:readline";
|
271179
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
271180
|
+
|
271181
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
271182
|
+
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
271183
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
271184
|
+
var height2 = (content) => content.split(`
|
271185
|
+
`).length;
|
271186
|
+
var lastLine2 = (content) => content.split(`
|
271187
|
+
`).pop() ?? "";
|
271188
|
+
function cursorDown2(n7) {
|
271189
|
+
return n7 > 0 ? import_ansi_escapes2.default.cursorDown(n7) : "";
|
271190
|
+
}
|
271191
|
+
|
271192
|
+
class ScreenManager2 {
|
271193
|
+
height = 0;
|
271194
|
+
extraLinesUnderPrompt = 0;
|
271195
|
+
cursorPos;
|
271196
|
+
rl;
|
271197
|
+
constructor(rl) {
|
271198
|
+
this.rl = rl;
|
271199
|
+
this.cursorPos = rl.getCursorPos();
|
271200
|
+
}
|
271201
|
+
write(content) {
|
271202
|
+
this.rl.output.unmute();
|
271203
|
+
this.rl.output.write(content);
|
271204
|
+
this.rl.output.mute();
|
271205
|
+
}
|
271206
|
+
render(content, bottomContent = "") {
|
271207
|
+
const promptLine = lastLine2(content);
|
271208
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
271209
|
+
let prompt = rawPromptLine;
|
271210
|
+
if (this.rl.line.length > 0) {
|
271211
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
271212
|
+
}
|
271213
|
+
this.rl.setPrompt(prompt);
|
271214
|
+
this.cursorPos = this.rl.getCursorPos();
|
271215
|
+
const width = readlineWidth2();
|
271216
|
+
content = breakLines2(content, width);
|
271217
|
+
bottomContent = breakLines2(bottomContent, width);
|
271218
|
+
if (rawPromptLine.length % width === 0) {
|
271219
|
+
content += `
|
271220
|
+
`;
|
271221
|
+
}
|
271222
|
+
let output = content + (bottomContent ? `
|
271223
|
+
` + bottomContent : "");
|
271224
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
271225
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
271226
|
+
if (bottomContentHeight > 0)
|
271227
|
+
output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
|
271228
|
+
output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
|
271229
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
|
271230
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
271231
|
+
this.height = height2(output);
|
271232
|
+
}
|
271233
|
+
checkCursorPos() {
|
271234
|
+
const cursorPos = this.rl.getCursorPos();
|
271235
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
271236
|
+
this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
|
271237
|
+
this.cursorPos = cursorPos;
|
271238
|
+
}
|
271239
|
+
}
|
271240
|
+
done({ clearContent }) {
|
271241
|
+
this.rl.setPrompt("");
|
271242
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
271243
|
+
output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
|
271244
|
+
`;
|
271245
|
+
output += import_ansi_escapes2.default.cursorShow;
|
271246
|
+
this.write(output);
|
271247
|
+
this.rl.close();
|
271248
|
+
}
|
271249
|
+
}
|
271250
|
+
|
271251
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
271252
|
+
class PromisePolyfill2 extends Promise {
|
271253
|
+
static withResolver() {
|
271254
|
+
let resolve6;
|
271255
|
+
let reject;
|
271256
|
+
const promise2 = new Promise((res, rej) => {
|
271257
|
+
resolve6 = res;
|
271258
|
+
reject = rej;
|
271259
|
+
});
|
271260
|
+
return { promise: promise2, resolve: resolve6, reject };
|
271261
|
+
}
|
271262
|
+
}
|
271263
|
+
|
271264
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
271265
|
+
function getCallSites2() {
|
271266
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
271267
|
+
let result = [];
|
271268
|
+
try {
|
271269
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
271270
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
271271
|
+
result = callSitesWithoutCurrent;
|
271272
|
+
return callSitesWithoutCurrent;
|
271273
|
+
};
|
271274
|
+
new Error().stack;
|
271275
|
+
} catch {
|
271276
|
+
return result;
|
271277
|
+
}
|
271278
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
271279
|
+
return result;
|
271280
|
+
}
|
271281
|
+
function createPrompt2(view) {
|
271282
|
+
const callSites = getCallSites2();
|
271283
|
+
const prompt = (config3, context = {}) => {
|
271284
|
+
const { input = process.stdin, signal } = context;
|
271285
|
+
const cleanups = new Set;
|
271286
|
+
const output = new import_mute_stream2.default;
|
271287
|
+
output.pipe(context.output ?? process.stdout);
|
271288
|
+
const rl = readline4.createInterface({
|
271289
|
+
terminal: true,
|
271290
|
+
input,
|
271291
|
+
output
|
271292
|
+
});
|
271293
|
+
const screen = new ScreenManager2(rl);
|
271294
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
271295
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
271296
|
+
if (signal) {
|
271297
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
271298
|
+
if (signal.aborted) {
|
271299
|
+
abort();
|
271300
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
271301
|
+
}
|
271302
|
+
signal.addEventListener("abort", abort);
|
271303
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
271304
|
+
}
|
271305
|
+
cleanups.add(onExit((code2, signal2) => {
|
271306
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
271307
|
+
}));
|
271308
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
271309
|
+
rl.on("SIGINT", sigint);
|
271310
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
271311
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
271312
|
+
rl.input.on("keypress", checkCursorPos);
|
271313
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
271314
|
+
return withHooks2(rl, (cycle) => {
|
271315
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
271316
|
+
rl.on("close", hooksCleanup);
|
271317
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
271318
|
+
cycle(() => {
|
271319
|
+
try {
|
271320
|
+
const nextView = view(config3, (value5) => {
|
271321
|
+
setImmediate(() => resolve6(value5));
|
271322
|
+
});
|
271323
|
+
if (nextView === undefined) {
|
271324
|
+
const callerFilename = callSites[1]?.getFileName();
|
271325
|
+
throw new Error(`Prompt functions must return a string.
|
271326
|
+
at ${callerFilename}`);
|
271327
|
+
}
|
271328
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
271329
|
+
screen.render(content, bottomContent);
|
271330
|
+
effectScheduler2.run();
|
271331
|
+
} catch (error48) {
|
271332
|
+
reject(error48);
|
271333
|
+
}
|
271334
|
+
});
|
271335
|
+
return Object.assign(promise2.then((answer) => {
|
271336
|
+
effectScheduler2.clearAll();
|
271337
|
+
return answer;
|
271338
|
+
}, (error48) => {
|
271339
|
+
effectScheduler2.clearAll();
|
271340
|
+
throw error48;
|
271341
|
+
}).finally(() => {
|
271342
|
+
cleanups.forEach((cleanup) => cleanup());
|
271343
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
271344
|
+
output.end();
|
271345
|
+
}).then(() => promise2), { cancel: cancel3 });
|
271346
|
+
});
|
271347
|
+
};
|
271348
|
+
return prompt;
|
271349
|
+
}
|
271350
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.2+be14e1ce904ed1ef/node_modules/@inquirer/input/dist/esm/index.js
|
270893
271351
|
var inputTheme = {
|
270894
271352
|
validationFailureMode: "keep"
|
270895
271353
|
};
|
270896
|
-
var esm_default2 =
|
271354
|
+
var esm_default2 = createPrompt2((config3, done) => {
|
270897
271355
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
270898
|
-
const theme =
|
270899
|
-
const [status, setStatus] =
|
270900
|
-
const [defaultValue = "", setDefaultValue] =
|
270901
|
-
const [errorMsg, setError] =
|
270902
|
-
const [value5, setValue] =
|
270903
|
-
const prefix =
|
270904
|
-
|
271356
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
271357
|
+
const [status, setStatus] = useState2("idle");
|
271358
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
271359
|
+
const [errorMsg, setError] = useState2();
|
271360
|
+
const [value5, setValue] = useState2("");
|
271361
|
+
const prefix = usePrefix2({ status, theme });
|
271362
|
+
useKeypress2(async (key3, rl) => {
|
270905
271363
|
if (status !== "idle") {
|
270906
271364
|
return;
|
270907
271365
|
}
|
270908
|
-
if (
|
271366
|
+
if (isEnterKey2(key3)) {
|
270909
271367
|
const answer = value5 || defaultValue;
|
270910
271368
|
setStatus("loading");
|
270911
271369
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -270922,9 +271380,9 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
270922
271380
|
setError(isValid || "You must provide a valid value");
|
270923
271381
|
setStatus("idle");
|
270924
271382
|
}
|
270925
|
-
} else if (
|
271383
|
+
} else if (isBackspaceKey2(key3) && !value5) {
|
270926
271384
|
setDefaultValue(undefined);
|
270927
|
-
} else if (
|
271385
|
+
} else if (isTabKey(key3) && !value5) {
|
270928
271386
|
setDefaultValue(undefined);
|
270929
271387
|
rl.clearLine(0);
|
270930
271388
|
rl.write(defaultValue);
|
@@ -270934,7 +271392,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
270934
271392
|
setError(undefined);
|
270935
271393
|
}
|
270936
271394
|
});
|
270937
|
-
|
271395
|
+
useEffect2((rl) => {
|
270938
271396
|
if (prefill === "editable" && defaultValue) {
|
270939
271397
|
rl.write(defaultValue);
|
270940
271398
|
setValue(defaultValue);
|
@@ -270980,13 +271438,13 @@ async function subgraphNamePrompt({
|
|
270980
271438
|
}
|
270981
271439
|
|
270982
271440
|
// ../../node_modules/.bun/@inquirer+select@4.3.1+be14e1ce904ed1ef/node_modules/@inquirer/select/dist/esm/index.js
|
270983
|
-
var
|
270984
|
-
var
|
271441
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
271442
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
270985
271443
|
var selectTheme = {
|
270986
271444
|
icon: { cursor: esm_default.pointer },
|
270987
271445
|
style: {
|
270988
|
-
disabled: (text2) =>
|
270989
|
-
description: (text2) =>
|
271446
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
271447
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
|
270990
271448
|
},
|
270991
271449
|
helpMode: "auto",
|
270992
271450
|
indexMode: "hidden"
|
@@ -271042,22 +271500,22 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
271042
271500
|
}, [config3.default, items]);
|
271043
271501
|
const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
271044
271502
|
const selectedChoice = items[active];
|
271045
|
-
useKeypress((
|
271503
|
+
useKeypress((key3, rl) => {
|
271046
271504
|
clearTimeout(searchTimeoutRef.current);
|
271047
|
-
if (isEnterKey(
|
271505
|
+
if (isEnterKey(key3)) {
|
271048
271506
|
setStatus("done");
|
271049
271507
|
done(selectedChoice.value);
|
271050
|
-
} else if (isUpKey(
|
271508
|
+
} else if (isUpKey(key3) || isDownKey(key3)) {
|
271051
271509
|
rl.clearLine(0);
|
271052
|
-
if (loop || isUpKey(
|
271053
|
-
const offset = isUpKey(
|
271510
|
+
if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
|
271511
|
+
const offset = isUpKey(key3) ? -1 : 1;
|
271054
271512
|
let next = active;
|
271055
271513
|
do {
|
271056
271514
|
next = (next + offset + items.length) % items.length;
|
271057
271515
|
} while (!isSelectable(items[next]));
|
271058
271516
|
setActive(next);
|
271059
271517
|
}
|
271060
|
-
} else if (isNumberKey(
|
271518
|
+
} else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
|
271061
271519
|
const selectedIndex = Number(rl.line) - 1;
|
271062
271520
|
let selectableIndex = -1;
|
271063
271521
|
const position = items.findIndex((item2) => {
|
@@ -271073,7 +271531,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
271073
271531
|
searchTimeoutRef.current = setTimeout(() => {
|
271074
271532
|
rl.clearLine(0);
|
271075
271533
|
}, 700);
|
271076
|
-
} else if (isBackspaceKey(
|
271534
|
+
} else if (isBackspaceKey(key3)) {
|
271077
271535
|
rl.clearLine(0);
|
271078
271536
|
} else {
|
271079
271537
|
const searchTerm = rl.line.toLowerCase();
|
@@ -271132,7 +271590,7 @@ ${theme.style.help(`(${config3.instructions?.pager ?? "Use arrow keys to reveal
|
|
271132
271590
|
const choiceDescription = selectedChoice.description ? `
|
271133
271591
|
${theme.style.description(selectedChoice.description)}` : ``;
|
271134
271592
|
return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
|
271135
|
-
${page}${helpTipBottom}${choiceDescription}${
|
271593
|
+
${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
|
271136
271594
|
});
|
271137
271595
|
|
271138
271596
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
@@ -272777,14 +273235,14 @@ function includesArgs(parameters) {
|
|
272777
273235
|
});
|
272778
273236
|
}
|
272779
273237
|
if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
|
272780
|
-
return Object.entries(matchArgs).every(([
|
273238
|
+
return Object.entries(matchArgs).every(([key3, value5]) => {
|
272781
273239
|
if (value5 === null || value5 === undefined)
|
272782
273240
|
return true;
|
272783
|
-
const input = inputs.find((input2) => input2.name ===
|
273241
|
+
const input = inputs.find((input2) => input2.name === key3);
|
272784
273242
|
if (!input)
|
272785
273243
|
return false;
|
272786
273244
|
const value_ = Array.isArray(value5) ? value5 : [value5];
|
272787
|
-
return value_.some((value6) => isEqual(input, value6, args[
|
273245
|
+
return value_.some((value6) => isEqual(input, value6, args[key3]));
|
272788
273246
|
});
|
272789
273247
|
return false;
|
272790
273248
|
}
|
@@ -272983,13 +273441,13 @@ function observe(observerId, callbacks, fn) {
|
|
272983
273441
|
if (listeners && listeners.length > 0)
|
272984
273442
|
return unwatch;
|
272985
273443
|
const emit = {};
|
272986
|
-
for (const
|
272987
|
-
emit[
|
273444
|
+
for (const key3 in callbacks) {
|
273445
|
+
emit[key3] = (...args) => {
|
272988
273446
|
const listeners2 = getListeners();
|
272989
273447
|
if (listeners2.length === 0)
|
272990
273448
|
return;
|
272991
273449
|
for (const listener of listeners2)
|
272992
|
-
listener.fns[
|
273450
|
+
listener.fns[key3]?.(...args);
|
272993
273451
|
};
|
272994
273452
|
}
|
272995
273453
|
const cleanup = fn(emit);
|
@@ -273369,7 +273827,7 @@ function uid(length = 11) {
|
|
273369
273827
|
|
273370
273828
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/clients/createClient.js
|
273371
273829
|
function createClient(parameters) {
|
273372
|
-
const { batch, chain, ccipRead, key:
|
273830
|
+
const { batch, chain, ccipRead, key: key3 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
|
273373
273831
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
|
273374
273832
|
const blockTime = chain?.blockTime ?? 12000;
|
273375
273833
|
const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
|
@@ -273387,7 +273845,7 @@ function createClient(parameters) {
|
|
273387
273845
|
cacheTime,
|
273388
273846
|
ccipRead,
|
273389
273847
|
chain,
|
273390
|
-
key:
|
273848
|
+
key: key3,
|
273391
273849
|
name: name4,
|
273392
273850
|
pollingInterval,
|
273393
273851
|
request: request2,
|
@@ -273399,8 +273857,8 @@ function createClient(parameters) {
|
|
273399
273857
|
function extend2(base2) {
|
273400
273858
|
return (extendFn) => {
|
273401
273859
|
const extended = extendFn(base2);
|
273402
|
-
for (const
|
273403
|
-
delete extended[
|
273860
|
+
for (const key4 in client)
|
273861
|
+
delete extended[key4];
|
273404
273862
|
const combined = { ...base2, ...extended };
|
273405
273863
|
return Object.assign(combined, { extend: extend2(combined) });
|
273406
273864
|
};
|
@@ -273557,11 +274015,11 @@ function shouldRetry(error48) {
|
|
273557
274015
|
}
|
273558
274016
|
|
273559
274017
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/clients/transports/createTransport.js
|
273560
|
-
function createTransport({ key:
|
274018
|
+
function createTransport({ key: key3, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
|
273561
274019
|
const uid2 = uid();
|
273562
274020
|
return {
|
273563
274021
|
config: {
|
273564
|
-
key:
|
274022
|
+
key: key3,
|
273565
274023
|
methods,
|
273566
274024
|
name: name4,
|
273567
274025
|
request: request2,
|
@@ -273718,7 +274176,7 @@ function getHttpRpcClient(url2, options = {}) {
|
|
273718
274176
|
|
273719
274177
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/clients/transports/http.js
|
273720
274178
|
function http(url2, config3 = {}) {
|
273721
|
-
const { batch, fetchOptions, key:
|
274179
|
+
const { batch, fetchOptions, key: key3 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
|
273722
274180
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
273723
274181
|
const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
273724
274182
|
const retryCount = config3.retryCount ?? retryCount_;
|
@@ -273733,7 +274191,7 @@ function http(url2, config3 = {}) {
|
|
273733
274191
|
timeout
|
273734
274192
|
});
|
273735
274193
|
return createTransport({
|
273736
|
-
key:
|
274194
|
+
key: key3,
|
273737
274195
|
methods,
|
273738
274196
|
name: name4,
|
273739
274197
|
async request({ method, params }) {
|
@@ -274184,7 +274642,7 @@ init_getChainContractAddress();
|
|
274184
274642
|
init_toHex();
|
274185
274643
|
init_localBatchGatewayRequest();
|
274186
274644
|
async function getEnsText(client, parameters) {
|
274187
|
-
const { blockNumber, blockTag, key:
|
274645
|
+
const { blockNumber, blockTag, key: key3, name: name4, gatewayUrls, strict } = parameters;
|
274188
274646
|
const { chain } = client;
|
274189
274647
|
const universalResolverAddress = (() => {
|
274190
274648
|
if (parameters.universalResolverAddress)
|
@@ -274210,7 +274668,7 @@ async function getEnsText(client, parameters) {
|
|
274210
274668
|
encodeFunctionData({
|
274211
274669
|
abi: textResolverAbi,
|
274212
274670
|
functionName: "text",
|
274213
|
-
args: [namehash(name4),
|
274671
|
+
args: [namehash(name4), key3]
|
274214
274672
|
}),
|
274215
274673
|
gatewayUrls ?? [localBatchGatewayUrl]
|
274216
274674
|
],
|
@@ -275564,16 +276022,16 @@ class LruMap2 extends Map {
|
|
275564
276022
|
});
|
275565
276023
|
this.maxSize = size5;
|
275566
276024
|
}
|
275567
|
-
get(
|
275568
|
-
const value5 = super.get(
|
275569
|
-
if (super.has(
|
275570
|
-
this.delete(
|
275571
|
-
super.set(
|
276025
|
+
get(key3) {
|
276026
|
+
const value5 = super.get(key3);
|
276027
|
+
if (super.has(key3) && value5 !== undefined) {
|
276028
|
+
this.delete(key3);
|
276029
|
+
super.set(key3, value5);
|
275572
276030
|
}
|
275573
276031
|
return value5;
|
275574
276032
|
}
|
275575
|
-
set(
|
275576
|
-
super.set(
|
276033
|
+
set(key3, value5) {
|
276034
|
+
super.set(key3, value5);
|
275577
276035
|
if (this.maxSize && this.size > this.maxSize) {
|
275578
276036
|
const firstKey = this.keys().next().value;
|
275579
276037
|
if (firstKey)
|
@@ -277433,10 +277891,10 @@ function publicActions(client) {
|
|
277433
277891
|
|
277434
277892
|
// ../../node_modules/.bun/viem@2.34.0+f2e3f0548df57a15/node_modules/viem/_esm/clients/createPublicClient.js
|
277435
277893
|
function createPublicClient(parameters) {
|
277436
|
-
const { key:
|
277894
|
+
const { key: key3 = "public", name: name4 = "Public Client" } = parameters;
|
277437
277895
|
const client = createClient({
|
277438
277896
|
...parameters,
|
277439
|
-
key:
|
277897
|
+
key: key3,
|
277440
277898
|
name: name4,
|
277441
277899
|
type: "publicClient"
|
277442
277900
|
});
|
@@ -294188,23 +294646,23 @@ var LRUCache3 = class {
|
|
294188
294646
|
constructor(maxSize) {
|
294189
294647
|
this.maxSize = maxSize;
|
294190
294648
|
}
|
294191
|
-
get(
|
294192
|
-
const value5 = this.cache.get(
|
294649
|
+
get(key3) {
|
294650
|
+
const value5 = this.cache.get(key3);
|
294193
294651
|
if (value5 !== undefined) {
|
294194
|
-
this.cache.delete(
|
294195
|
-
this.cache.set(
|
294652
|
+
this.cache.delete(key3);
|
294653
|
+
this.cache.set(key3, value5);
|
294196
294654
|
}
|
294197
294655
|
return value5;
|
294198
294656
|
}
|
294199
|
-
set(
|
294200
|
-
this.cache.delete(
|
294657
|
+
set(key3, value5) {
|
294658
|
+
this.cache.delete(key3);
|
294201
294659
|
if (this.cache.size >= this.maxSize) {
|
294202
294660
|
const firstKey = this.cache.keys().next().value;
|
294203
294661
|
if (firstKey !== undefined) {
|
294204
294662
|
this.cache.delete(firstKey);
|
294205
294663
|
}
|
294206
294664
|
}
|
294207
|
-
this.cache.set(
|
294665
|
+
this.cache.set(key3, value5);
|
294208
294666
|
}
|
294209
294667
|
clear() {
|
294210
294668
|
this.cache.clear();
|
@@ -294215,9 +294673,9 @@ var publicClientCache = new LRUCache3(50);
|
|
294215
294673
|
var walletClientFactoryCache = new LRUCache3(50);
|
294216
294674
|
function buildHeaders(baseHeaders, authHeaders) {
|
294217
294675
|
const filteredHeaders = {};
|
294218
|
-
for (const [
|
294676
|
+
for (const [key3, value5] of Object.entries(authHeaders)) {
|
294219
294677
|
if (value5 !== undefined) {
|
294220
|
-
filteredHeaders[
|
294678
|
+
filteredHeaders[key3] = value5;
|
294221
294679
|
}
|
294222
294680
|
}
|
294223
294681
|
return appendHeaders(baseHeaders, filteredHeaders);
|
@@ -294543,15 +295001,15 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
294543
295001
|
const [value5, setValue] = useState("");
|
294544
295002
|
const theme = makeTheme(config3.theme);
|
294545
295003
|
const prefix = usePrefix({ status, theme });
|
294546
|
-
useKeypress((
|
295004
|
+
useKeypress((key3, rl) => {
|
294547
295005
|
if (status !== "idle")
|
294548
295006
|
return;
|
294549
|
-
if (isEnterKey(
|
295007
|
+
if (isEnterKey(key3)) {
|
294550
295008
|
const answer = getBooleanValue(value5, config3.default);
|
294551
295009
|
setValue(transformer(answer));
|
294552
295010
|
setStatus("done");
|
294553
295011
|
done(answer);
|
294554
|
-
} else if (
|
295012
|
+
} else if (key3.name === "tab") {
|
294555
295013
|
const answer = boolToString(!getBooleanValue(value5, config3.default));
|
294556
295014
|
rl.clearLine(0);
|
294557
295015
|
rl.write(answer);
|
@@ -294572,7 +295030,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
294572
295030
|
});
|
294573
295031
|
|
294574
295032
|
// ../../node_modules/.bun/@inquirer+password@4.0.17+be14e1ce904ed1ef/node_modules/@inquirer/password/dist/esm/index.js
|
294575
|
-
var
|
295033
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
294576
295034
|
var esm_default5 = createPrompt((config3, done) => {
|
294577
295035
|
const { validate: validate5 = () => true } = config3;
|
294578
295036
|
const theme = makeTheme(config3.theme);
|
@@ -294580,11 +295038,11 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
294580
295038
|
const [errorMsg, setError] = useState();
|
294581
295039
|
const [value5, setValue] = useState("");
|
294582
295040
|
const prefix = usePrefix({ status, theme });
|
294583
|
-
useKeypress(async (
|
295041
|
+
useKeypress(async (key3, rl) => {
|
294584
295042
|
if (status !== "idle") {
|
294585
295043
|
return;
|
294586
295044
|
}
|
294587
|
-
if (isEnterKey(
|
295045
|
+
if (isEnterKey(key3)) {
|
294588
295046
|
const answer = value5;
|
294589
295047
|
setStatus("loading");
|
294590
295048
|
const isValid = await validate5(answer);
|
@@ -294609,7 +295067,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
294609
295067
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
294610
295068
|
formattedValue = maskChar.repeat(value5.length);
|
294611
295069
|
} else if (status !== "done") {
|
294612
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
295070
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
|
294613
295071
|
}
|
294614
295072
|
if (status === "done") {
|
294615
295073
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -296287,7 +296745,7 @@ var basename2 = function(p5, extension) {
|
|
296287
296745
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
296288
296746
|
};
|
296289
296747
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
296290
|
-
function
|
296748
|
+
function isPlainObject5(value5) {
|
296291
296749
|
if (value5 === null || typeof value5 !== "object") {
|
296292
296750
|
return false;
|
296293
296751
|
}
|
@@ -296304,27 +296762,27 @@ function isPlainObject4(value5) {
|
|
296304
296762
|
return true;
|
296305
296763
|
}
|
296306
296764
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
296307
|
-
if (!
|
296765
|
+
if (!isPlainObject5(defaults2)) {
|
296308
296766
|
return _defu(baseObject, {}, namespace, merger);
|
296309
296767
|
}
|
296310
296768
|
const object2 = Object.assign({}, defaults2);
|
296311
|
-
for (const
|
296312
|
-
if (
|
296769
|
+
for (const key3 in baseObject) {
|
296770
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
296313
296771
|
continue;
|
296314
296772
|
}
|
296315
|
-
const value5 = baseObject[
|
296773
|
+
const value5 = baseObject[key3];
|
296316
296774
|
if (value5 === null || value5 === undefined) {
|
296317
296775
|
continue;
|
296318
296776
|
}
|
296319
|
-
if (merger && merger(object2,
|
296777
|
+
if (merger && merger(object2, key3, value5, namespace)) {
|
296320
296778
|
continue;
|
296321
296779
|
}
|
296322
|
-
if (Array.isArray(value5) && Array.isArray(object2[
|
296323
|
-
object2[
|
296324
|
-
} else if (
|
296325
|
-
object2[
|
296780
|
+
if (Array.isArray(value5) && Array.isArray(object2[key3])) {
|
296781
|
+
object2[key3] = [...value5, ...object2[key3]];
|
296782
|
+
} else if (isPlainObject5(value5) && isPlainObject5(object2[key3])) {
|
296783
|
+
object2[key3] = _defu(value5, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
296326
296784
|
} else {
|
296327
|
-
object2[
|
296785
|
+
object2[key3] = value5;
|
296328
296786
|
}
|
296329
296787
|
}
|
296330
296788
|
return object2;
|
@@ -296333,15 +296791,15 @@ function createDefu(merger) {
|
|
296333
296791
|
return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
296334
296792
|
}
|
296335
296793
|
var defu = createDefu();
|
296336
|
-
var defuFn = createDefu((object2,
|
296337
|
-
if (object2[
|
296338
|
-
object2[
|
296794
|
+
var defuFn = createDefu((object2, key3, currentValue) => {
|
296795
|
+
if (object2[key3] !== undefined && typeof currentValue === "function") {
|
296796
|
+
object2[key3] = currentValue(object2[key3]);
|
296339
296797
|
return true;
|
296340
296798
|
}
|
296341
296799
|
});
|
296342
|
-
var defuArrayFn = createDefu((object2,
|
296343
|
-
if (Array.isArray(object2[
|
296344
|
-
object2[
|
296800
|
+
var defuArrayFn = createDefu((object2, key3, currentValue) => {
|
296801
|
+
if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
|
296802
|
+
object2[key3] = currentValue(object2[key3]);
|
296345
296803
|
return true;
|
296346
296804
|
}
|
296347
296805
|
});
|
@@ -299047,11 +299505,11 @@ function cacheDirectory() {
|
|
299047
299505
|
}
|
299048
299506
|
function normalizeHeaders(headers = {}) {
|
299049
299507
|
const normalized = {};
|
299050
|
-
for (const [
|
299508
|
+
for (const [key3, value5] of Object.entries(headers)) {
|
299051
299509
|
if (!value5) {
|
299052
299510
|
continue;
|
299053
299511
|
}
|
299054
|
-
normalized[
|
299512
|
+
normalized[key3.toLowerCase()] = value5;
|
299055
299513
|
}
|
299056
299514
|
return normalized;
|
299057
299515
|
}
|
@@ -302296,7 +302754,7 @@ function jsonOutput(data) {
|
|
302296
302754
|
var composer = require_composer();
|
302297
302755
|
var Document = require_Document();
|
302298
302756
|
var Schema = require_Schema();
|
302299
|
-
var
|
302757
|
+
var errors5 = require_errors3();
|
302300
302758
|
var Alias = require_Alias();
|
302301
302759
|
var identity2 = require_identity();
|
302302
302760
|
var Pair = require_Pair();
|
@@ -302312,9 +302770,9 @@ var visit2 = require_visit();
|
|
302312
302770
|
var $Composer = composer.Composer;
|
302313
302771
|
var $Document = Document.Document;
|
302314
302772
|
var $Schema = Schema.Schema;
|
302315
|
-
var $YAMLError =
|
302316
|
-
var $YAMLParseError =
|
302317
|
-
var $YAMLWarning =
|
302773
|
+
var $YAMLError = errors5.YAMLError;
|
302774
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
302775
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
302318
302776
|
var $Alias = Alias.Alias;
|
302319
302777
|
var $isAlias = identity2.isAlias;
|
302320
302778
|
var $isCollection = identity2.isCollection;
|
@@ -302921,11 +303379,11 @@ function createCommand4() {
|
|
302921
303379
|
|
302922
303380
|
// src/utils/commands/passthrough-options.ts
|
302923
303381
|
function mapPassthroughOptions(options, command) {
|
302924
|
-
const optionArgs = Object.entries(options).map(([
|
303382
|
+
const optionArgs = Object.entries(options).map(([key3, value5]) => {
|
302925
303383
|
if (value5 === true) {
|
302926
|
-
return `--${
|
303384
|
+
return `--${key3}`;
|
302927
303385
|
}
|
302928
|
-
return `--${
|
303386
|
+
return `--${key3}=${value5}`;
|
302929
303387
|
});
|
302930
303388
|
return [...optionArgs, ...command.args];
|
302931
303389
|
}
|
@@ -304178,4 +304636,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
304178
304636
|
// src/cli.ts
|
304179
304637
|
sdkCliCommand();
|
304180
304638
|
|
304181
|
-
//# debugId=
|
304639
|
+
//# debugId=EFDC27F5B401450C64756E2164756E21
|