@settlemint/sdk-cli 2.6.0-pr07a0a95e → 2.6.0-pr0efb8adb
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 +688 -232
- package/dist/cli.js.map +17 -3
- package/package.json +7 -7
package/dist/cli.js
CHANGED
@@ -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-pr0efb8adb",
|
264949
264949
|
type: "module",
|
264950
264950
|
private: false,
|
264951
264951
|
license: "FSL-1.1-MIT",
|
@@ -264997,12 +264997,12 @@ var package_default = {
|
|
264997
264997
|
commander: "14.0.0",
|
264998
264998
|
"@inquirer/confirm": "5.1.15",
|
264999
264999
|
"@inquirer/input": "4.2.1",
|
265000
|
-
"@inquirer/password": "4.0.
|
265000
|
+
"@inquirer/password": "4.0.18",
|
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-pr0efb8adb",
|
265003
|
+
"@settlemint/sdk-js": "2.6.0-pr0efb8adb",
|
265004
|
+
"@settlemint/sdk-utils": "2.6.0-pr0efb8adb",
|
265005
|
+
"@settlemint/sdk-viem": "2.6.0-pr0efb8adb",
|
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-pr0efb8adb"
|
265023
265023
|
},
|
265024
265024
|
peerDependenciesMeta: {
|
265025
265025
|
hardhat: {
|
@@ -294571,20 +294571,476 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
294571
294571
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
294572
294572
|
});
|
294573
294573
|
|
294574
|
-
// ../../node_modules/.bun/@inquirer+
|
294574
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/key.js
|
294575
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
294576
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
294577
|
+
class AbortPromptError2 extends Error {
|
294578
|
+
name = "AbortPromptError";
|
294579
|
+
message = "Prompt was aborted";
|
294580
|
+
constructor(options) {
|
294581
|
+
super();
|
294582
|
+
this.cause = options?.cause;
|
294583
|
+
}
|
294584
|
+
}
|
294585
|
+
|
294586
|
+
class CancelPromptError2 extends Error {
|
294587
|
+
name = "CancelPromptError";
|
294588
|
+
message = "Prompt was canceled";
|
294589
|
+
}
|
294590
|
+
|
294591
|
+
class ExitPromptError2 extends Error {
|
294592
|
+
name = "ExitPromptError";
|
294593
|
+
}
|
294594
|
+
|
294595
|
+
class HookError2 extends Error {
|
294596
|
+
name = "HookError";
|
294597
|
+
}
|
294598
|
+
|
294599
|
+
class ValidationError2 extends Error {
|
294600
|
+
name = "ValidationError";
|
294601
|
+
}
|
294602
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
294603
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
294604
|
+
|
294605
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
294606
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
294607
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
294608
|
+
function createStore2(rl) {
|
294609
|
+
const store = {
|
294610
|
+
rl,
|
294611
|
+
hooks: [],
|
294612
|
+
hooksCleanup: [],
|
294613
|
+
hooksEffect: [],
|
294614
|
+
index: 0,
|
294615
|
+
handleChange() {}
|
294616
|
+
};
|
294617
|
+
return store;
|
294618
|
+
}
|
294619
|
+
function withHooks2(rl, cb) {
|
294620
|
+
const store = createStore2(rl);
|
294621
|
+
return hookStorage2.run(store, () => {
|
294622
|
+
function cycle(render) {
|
294623
|
+
store.handleChange = () => {
|
294624
|
+
store.index = 0;
|
294625
|
+
render();
|
294626
|
+
};
|
294627
|
+
store.handleChange();
|
294628
|
+
}
|
294629
|
+
return cb(cycle);
|
294630
|
+
});
|
294631
|
+
}
|
294632
|
+
function getStore2() {
|
294633
|
+
const store = hookStorage2.getStore();
|
294634
|
+
if (!store) {
|
294635
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
294636
|
+
}
|
294637
|
+
return store;
|
294638
|
+
}
|
294639
|
+
function readline3() {
|
294640
|
+
return getStore2().rl;
|
294641
|
+
}
|
294642
|
+
function withUpdates2(fn) {
|
294643
|
+
const wrapped = (...args) => {
|
294644
|
+
const store = getStore2();
|
294645
|
+
let shouldUpdate = false;
|
294646
|
+
const oldHandleChange = store.handleChange;
|
294647
|
+
store.handleChange = () => {
|
294648
|
+
shouldUpdate = true;
|
294649
|
+
};
|
294650
|
+
const returnValue = fn(...args);
|
294651
|
+
if (shouldUpdate) {
|
294652
|
+
oldHandleChange();
|
294653
|
+
}
|
294654
|
+
store.handleChange = oldHandleChange;
|
294655
|
+
return returnValue;
|
294656
|
+
};
|
294657
|
+
return AsyncResource4.bind(wrapped);
|
294658
|
+
}
|
294659
|
+
function withPointer2(cb) {
|
294660
|
+
const store = getStore2();
|
294661
|
+
const { index: index2 } = store;
|
294662
|
+
const pointer = {
|
294663
|
+
get() {
|
294664
|
+
return store.hooks[index2];
|
294665
|
+
},
|
294666
|
+
set(value5) {
|
294667
|
+
store.hooks[index2] = value5;
|
294668
|
+
},
|
294669
|
+
initialized: index2 in store.hooks
|
294670
|
+
};
|
294671
|
+
const returnValue = cb(pointer);
|
294672
|
+
store.index++;
|
294673
|
+
return returnValue;
|
294674
|
+
}
|
294675
|
+
function handleChange2() {
|
294676
|
+
getStore2().handleChange();
|
294677
|
+
}
|
294678
|
+
var effectScheduler2 = {
|
294679
|
+
queue(cb) {
|
294680
|
+
const store = getStore2();
|
294681
|
+
const { index: index2 } = store;
|
294682
|
+
store.hooksEffect.push(() => {
|
294683
|
+
store.hooksCleanup[index2]?.();
|
294684
|
+
const cleanFn = cb(readline3());
|
294685
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
294686
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
294687
|
+
}
|
294688
|
+
store.hooksCleanup[index2] = cleanFn;
|
294689
|
+
});
|
294690
|
+
},
|
294691
|
+
run() {
|
294692
|
+
const store = getStore2();
|
294693
|
+
withUpdates2(() => {
|
294694
|
+
store.hooksEffect.forEach((effect) => {
|
294695
|
+
effect();
|
294696
|
+
});
|
294697
|
+
store.hooksEffect.length = 0;
|
294698
|
+
})();
|
294699
|
+
},
|
294700
|
+
clearAll() {
|
294701
|
+
const store = getStore2();
|
294702
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
294703
|
+
cleanFn?.();
|
294704
|
+
});
|
294705
|
+
store.hooksEffect.length = 0;
|
294706
|
+
store.hooksCleanup.length = 0;
|
294707
|
+
}
|
294708
|
+
};
|
294709
|
+
|
294710
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
294711
|
+
function useState2(defaultValue) {
|
294712
|
+
return withPointer2((pointer) => {
|
294713
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
294714
|
+
if (pointer.get() !== newValue) {
|
294715
|
+
pointer.set(newValue);
|
294716
|
+
handleChange2();
|
294717
|
+
}
|
294718
|
+
});
|
294719
|
+
if (pointer.initialized) {
|
294720
|
+
return [pointer.get(), setState];
|
294721
|
+
}
|
294722
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
294723
|
+
pointer.set(value5);
|
294724
|
+
return [value5, setState];
|
294725
|
+
});
|
294726
|
+
}
|
294727
|
+
|
294728
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
294729
|
+
function useEffect2(cb, depArray) {
|
294730
|
+
withPointer2((pointer) => {
|
294731
|
+
const oldDeps = pointer.get();
|
294732
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
294733
|
+
if (hasChanged) {
|
294734
|
+
effectScheduler2.queue(cb);
|
294735
|
+
}
|
294736
|
+
pointer.set(depArray);
|
294737
|
+
});
|
294738
|
+
}
|
294739
|
+
|
294740
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
294741
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
294742
|
+
var defaultTheme2 = {
|
294743
|
+
prefix: {
|
294744
|
+
idle: import_yoctocolors_cjs4.default.blue("?"),
|
294745
|
+
done: import_yoctocolors_cjs4.default.green(esm_default.tick)
|
294746
|
+
},
|
294747
|
+
spinner: {
|
294748
|
+
interval: 80,
|
294749
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
294750
|
+
},
|
294751
|
+
style: {
|
294752
|
+
answer: import_yoctocolors_cjs4.default.cyan,
|
294753
|
+
message: import_yoctocolors_cjs4.default.bold,
|
294754
|
+
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
294755
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
294756
|
+
help: import_yoctocolors_cjs4.default.dim,
|
294757
|
+
highlight: import_yoctocolors_cjs4.default.cyan,
|
294758
|
+
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
294759
|
+
}
|
294760
|
+
};
|
294761
|
+
|
294762
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
294763
|
+
function isPlainObject4(value5) {
|
294764
|
+
if (typeof value5 !== "object" || value5 === null)
|
294765
|
+
return false;
|
294766
|
+
let proto = value5;
|
294767
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
294768
|
+
proto = Object.getPrototypeOf(proto);
|
294769
|
+
}
|
294770
|
+
return Object.getPrototypeOf(value5) === proto;
|
294771
|
+
}
|
294772
|
+
function deepMerge3(...objects) {
|
294773
|
+
const output = {};
|
294774
|
+
for (const obj of objects) {
|
294775
|
+
for (const [key2, value5] of Object.entries(obj)) {
|
294776
|
+
const prevValue = output[key2];
|
294777
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
294778
|
+
}
|
294779
|
+
}
|
294780
|
+
return output;
|
294781
|
+
}
|
294782
|
+
function makeTheme2(...themes) {
|
294783
|
+
const themesToMerge = [
|
294784
|
+
defaultTheme2,
|
294785
|
+
...themes.filter((theme) => theme != null)
|
294786
|
+
];
|
294787
|
+
return deepMerge3(...themesToMerge);
|
294788
|
+
}
|
294789
|
+
|
294790
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
294791
|
+
function usePrefix2({ status = "idle", theme }) {
|
294792
|
+
const [showLoader, setShowLoader] = useState2(false);
|
294793
|
+
const [tick, setTick] = useState2(0);
|
294794
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
294795
|
+
useEffect2(() => {
|
294796
|
+
if (status === "loading") {
|
294797
|
+
let tickInterval;
|
294798
|
+
let inc = -1;
|
294799
|
+
const delayTimeout = setTimeout(() => {
|
294800
|
+
setShowLoader(true);
|
294801
|
+
tickInterval = setInterval(() => {
|
294802
|
+
inc = inc + 1;
|
294803
|
+
setTick(inc % spinner2.frames.length);
|
294804
|
+
}, spinner2.interval);
|
294805
|
+
}, 300);
|
294806
|
+
return () => {
|
294807
|
+
clearTimeout(delayTimeout);
|
294808
|
+
clearInterval(tickInterval);
|
294809
|
+
};
|
294810
|
+
} else {
|
294811
|
+
setShowLoader(false);
|
294812
|
+
}
|
294813
|
+
}, [status]);
|
294814
|
+
if (showLoader) {
|
294815
|
+
return spinner2.frames[tick];
|
294816
|
+
}
|
294817
|
+
const iconName = status === "loading" ? "idle" : status;
|
294818
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
294819
|
+
}
|
294820
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
294821
|
+
function useRef2(val) {
|
294822
|
+
return useState2({ current: val })[0];
|
294823
|
+
}
|
294824
|
+
|
294825
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
294826
|
+
function useKeypress2(userHandler) {
|
294827
|
+
const signal = useRef2(userHandler);
|
294828
|
+
signal.current = userHandler;
|
294829
|
+
useEffect2((rl) => {
|
294830
|
+
let ignore = false;
|
294831
|
+
const handler = withUpdates2((_input, event) => {
|
294832
|
+
if (ignore)
|
294833
|
+
return;
|
294834
|
+
signal.current(event, rl);
|
294835
|
+
});
|
294836
|
+
rl.input.on("keypress", handler);
|
294837
|
+
return () => {
|
294838
|
+
ignore = true;
|
294839
|
+
rl.input.removeListener("keypress", handler);
|
294840
|
+
};
|
294841
|
+
}, []);
|
294842
|
+
}
|
294843
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
294844
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
294845
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
294846
|
+
function breakLines2(content, width) {
|
294847
|
+
return content.split(`
|
294848
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
294849
|
+
`).map((str) => str.trimEnd())).join(`
|
294850
|
+
`);
|
294851
|
+
}
|
294852
|
+
function readlineWidth2() {
|
294853
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
294854
|
+
}
|
294855
|
+
|
294856
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
294857
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
294858
|
+
import * as readline4 from "node:readline";
|
294859
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
294860
|
+
|
294861
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
294575
294862
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
294576
|
-
|
294863
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
294864
|
+
var height2 = (content) => content.split(`
|
294865
|
+
`).length;
|
294866
|
+
var lastLine2 = (content) => content.split(`
|
294867
|
+
`).pop() ?? "";
|
294868
|
+
function cursorDown2(n7) {
|
294869
|
+
return n7 > 0 ? import_ansi_escapes3.default.cursorDown(n7) : "";
|
294870
|
+
}
|
294871
|
+
|
294872
|
+
class ScreenManager2 {
|
294873
|
+
height = 0;
|
294874
|
+
extraLinesUnderPrompt = 0;
|
294875
|
+
cursorPos;
|
294876
|
+
rl;
|
294877
|
+
constructor(rl) {
|
294878
|
+
this.rl = rl;
|
294879
|
+
this.cursorPos = rl.getCursorPos();
|
294880
|
+
}
|
294881
|
+
write(content) {
|
294882
|
+
this.rl.output.unmute();
|
294883
|
+
this.rl.output.write(content);
|
294884
|
+
this.rl.output.mute();
|
294885
|
+
}
|
294886
|
+
render(content, bottomContent = "") {
|
294887
|
+
const promptLine = lastLine2(content);
|
294888
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
294889
|
+
let prompt = rawPromptLine;
|
294890
|
+
if (this.rl.line.length > 0) {
|
294891
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
294892
|
+
}
|
294893
|
+
this.rl.setPrompt(prompt);
|
294894
|
+
this.cursorPos = this.rl.getCursorPos();
|
294895
|
+
const width = readlineWidth2();
|
294896
|
+
content = breakLines2(content, width);
|
294897
|
+
bottomContent = breakLines2(bottomContent, width);
|
294898
|
+
if (rawPromptLine.length % width === 0) {
|
294899
|
+
content += `
|
294900
|
+
`;
|
294901
|
+
}
|
294902
|
+
let output = content + (bottomContent ? `
|
294903
|
+
` + bottomContent : "");
|
294904
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
294905
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
294906
|
+
if (bottomContentHeight > 0)
|
294907
|
+
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
294908
|
+
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
294909
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
294910
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
294911
|
+
this.height = height2(output);
|
294912
|
+
}
|
294913
|
+
checkCursorPos() {
|
294914
|
+
const cursorPos = this.rl.getCursorPos();
|
294915
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
294916
|
+
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
294917
|
+
this.cursorPos = cursorPos;
|
294918
|
+
}
|
294919
|
+
}
|
294920
|
+
done({ clearContent }) {
|
294921
|
+
this.rl.setPrompt("");
|
294922
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
294923
|
+
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
294924
|
+
`;
|
294925
|
+
output += import_ansi_escapes3.default.cursorShow;
|
294926
|
+
this.write(output);
|
294927
|
+
this.rl.close();
|
294928
|
+
}
|
294929
|
+
}
|
294930
|
+
|
294931
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
294932
|
+
class PromisePolyfill2 extends Promise {
|
294933
|
+
static withResolver() {
|
294934
|
+
let resolve7;
|
294935
|
+
let reject;
|
294936
|
+
const promise2 = new Promise((res, rej) => {
|
294937
|
+
resolve7 = res;
|
294938
|
+
reject = rej;
|
294939
|
+
});
|
294940
|
+
return { promise: promise2, resolve: resolve7, reject };
|
294941
|
+
}
|
294942
|
+
}
|
294943
|
+
|
294944
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.0+be14e1ce904ed1ef/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
294945
|
+
function getCallSites2() {
|
294946
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
294947
|
+
let result = [];
|
294948
|
+
try {
|
294949
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
294950
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
294951
|
+
result = callSitesWithoutCurrent;
|
294952
|
+
return callSitesWithoutCurrent;
|
294953
|
+
};
|
294954
|
+
new Error().stack;
|
294955
|
+
} catch {
|
294956
|
+
return result;
|
294957
|
+
}
|
294958
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
294959
|
+
return result;
|
294960
|
+
}
|
294961
|
+
function createPrompt2(view) {
|
294962
|
+
const callSites = getCallSites2();
|
294963
|
+
const prompt = (config3, context = {}) => {
|
294964
|
+
const { input = process.stdin, signal } = context;
|
294965
|
+
const cleanups = new Set;
|
294966
|
+
const output = new import_mute_stream2.default;
|
294967
|
+
output.pipe(context.output ?? process.stdout);
|
294968
|
+
const rl = readline4.createInterface({
|
294969
|
+
terminal: true,
|
294970
|
+
input,
|
294971
|
+
output
|
294972
|
+
});
|
294973
|
+
const screen = new ScreenManager2(rl);
|
294974
|
+
const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
|
294975
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
294976
|
+
if (signal) {
|
294977
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
294978
|
+
if (signal.aborted) {
|
294979
|
+
abort();
|
294980
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
294981
|
+
}
|
294982
|
+
signal.addEventListener("abort", abort);
|
294983
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
294984
|
+
}
|
294985
|
+
cleanups.add(onExit((code2, signal2) => {
|
294986
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
294987
|
+
}));
|
294988
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
294989
|
+
rl.on("SIGINT", sigint);
|
294990
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
294991
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
294992
|
+
rl.input.on("keypress", checkCursorPos);
|
294993
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
294994
|
+
return withHooks2(rl, (cycle) => {
|
294995
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
294996
|
+
rl.on("close", hooksCleanup);
|
294997
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
294998
|
+
cycle(() => {
|
294999
|
+
try {
|
295000
|
+
const nextView = view(config3, (value5) => {
|
295001
|
+
setImmediate(() => resolve7(value5));
|
295002
|
+
});
|
295003
|
+
if (nextView === undefined) {
|
295004
|
+
const callerFilename = callSites[1]?.getFileName();
|
295005
|
+
throw new Error(`Prompt functions must return a string.
|
295006
|
+
at ${callerFilename}`);
|
295007
|
+
}
|
295008
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
295009
|
+
screen.render(content, bottomContent);
|
295010
|
+
effectScheduler2.run();
|
295011
|
+
} catch (error48) {
|
295012
|
+
reject(error48);
|
295013
|
+
}
|
295014
|
+
});
|
295015
|
+
return Object.assign(promise2.then((answer) => {
|
295016
|
+
effectScheduler2.clearAll();
|
295017
|
+
return answer;
|
295018
|
+
}, (error48) => {
|
295019
|
+
effectScheduler2.clearAll();
|
295020
|
+
throw error48;
|
295021
|
+
}).finally(() => {
|
295022
|
+
cleanups.forEach((cleanup) => cleanup());
|
295023
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
295024
|
+
output.end();
|
295025
|
+
}).then(() => promise2), { cancel: cancel3 });
|
295026
|
+
});
|
295027
|
+
};
|
295028
|
+
return prompt;
|
295029
|
+
}
|
295030
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.18+be14e1ce904ed1ef/node_modules/@inquirer/password/dist/esm/index.js
|
295031
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
295032
|
+
var esm_default5 = createPrompt2((config3, done) => {
|
294577
295033
|
const { validate: validate5 = () => true } = config3;
|
294578
|
-
const theme =
|
294579
|
-
const [status, setStatus] =
|
294580
|
-
const [errorMsg, setError] =
|
294581
|
-
const [value5, setValue] =
|
294582
|
-
const prefix =
|
294583
|
-
|
295034
|
+
const theme = makeTheme2(config3.theme);
|
295035
|
+
const [status, setStatus] = useState2("idle");
|
295036
|
+
const [errorMsg, setError] = useState2();
|
295037
|
+
const [value5, setValue] = useState2("");
|
295038
|
+
const prefix = usePrefix2({ status, theme });
|
295039
|
+
useKeypress2(async (key3, rl) => {
|
294584
295040
|
if (status !== "idle") {
|
294585
295041
|
return;
|
294586
295042
|
}
|
294587
|
-
if (
|
295043
|
+
if (isEnterKey2(key3)) {
|
294588
295044
|
const answer = value5;
|
294589
295045
|
setStatus("loading");
|
294590
295046
|
const isValid = await validate5(answer);
|
@@ -294609,7 +295065,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
294609
295065
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
294610
295066
|
formattedValue = maskChar.repeat(value5.length);
|
294611
295067
|
} else if (status !== "done") {
|
294612
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
295068
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
|
294613
295069
|
}
|
294614
295070
|
if (status === "done") {
|
294615
295071
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -296287,7 +296743,7 @@ var basename2 = function(p5, extension) {
|
|
296287
296743
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
296288
296744
|
};
|
296289
296745
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
296290
|
-
function
|
296746
|
+
function isPlainObject5(value5) {
|
296291
296747
|
if (value5 === null || typeof value5 !== "object") {
|
296292
296748
|
return false;
|
296293
296749
|
}
|
@@ -296304,27 +296760,27 @@ function isPlainObject4(value5) {
|
|
296304
296760
|
return true;
|
296305
296761
|
}
|
296306
296762
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
296307
|
-
if (!
|
296763
|
+
if (!isPlainObject5(defaults2)) {
|
296308
296764
|
return _defu(baseObject, {}, namespace, merger);
|
296309
296765
|
}
|
296310
296766
|
const object2 = Object.assign({}, defaults2);
|
296311
|
-
for (const
|
296312
|
-
if (
|
296767
|
+
for (const key3 in baseObject) {
|
296768
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
296313
296769
|
continue;
|
296314
296770
|
}
|
296315
|
-
const value5 = baseObject[
|
296771
|
+
const value5 = baseObject[key3];
|
296316
296772
|
if (value5 === null || value5 === undefined) {
|
296317
296773
|
continue;
|
296318
296774
|
}
|
296319
|
-
if (merger && merger(object2,
|
296775
|
+
if (merger && merger(object2, key3, value5, namespace)) {
|
296320
296776
|
continue;
|
296321
296777
|
}
|
296322
|
-
if (Array.isArray(value5) && Array.isArray(object2[
|
296323
|
-
object2[
|
296324
|
-
} else if (
|
296325
|
-
object2[
|
296778
|
+
if (Array.isArray(value5) && Array.isArray(object2[key3])) {
|
296779
|
+
object2[key3] = [...value5, ...object2[key3]];
|
296780
|
+
} else if (isPlainObject5(value5) && isPlainObject5(object2[key3])) {
|
296781
|
+
object2[key3] = _defu(value5, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
296326
296782
|
} else {
|
296327
|
-
object2[
|
296783
|
+
object2[key3] = value5;
|
296328
296784
|
}
|
296329
296785
|
}
|
296330
296786
|
return object2;
|
@@ -296333,15 +296789,15 @@ function createDefu(merger) {
|
|
296333
296789
|
return (...arguments_5) => arguments_5.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
296334
296790
|
}
|
296335
296791
|
var defu = createDefu();
|
296336
|
-
var defuFn = createDefu((object2,
|
296337
|
-
if (object2[
|
296338
|
-
object2[
|
296792
|
+
var defuFn = createDefu((object2, key3, currentValue) => {
|
296793
|
+
if (object2[key3] !== undefined && typeof currentValue === "function") {
|
296794
|
+
object2[key3] = currentValue(object2[key3]);
|
296339
296795
|
return true;
|
296340
296796
|
}
|
296341
296797
|
});
|
296342
|
-
var defuArrayFn = createDefu((object2,
|
296343
|
-
if (Array.isArray(object2[
|
296344
|
-
object2[
|
296798
|
+
var defuArrayFn = createDefu((object2, key3, currentValue) => {
|
296799
|
+
if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
|
296800
|
+
object2[key3] = currentValue(object2[key3]);
|
296345
296801
|
return true;
|
296346
296802
|
}
|
296347
296803
|
});
|
@@ -299047,11 +299503,11 @@ function cacheDirectory() {
|
|
299047
299503
|
}
|
299048
299504
|
function normalizeHeaders(headers = {}) {
|
299049
299505
|
const normalized = {};
|
299050
|
-
for (const [
|
299506
|
+
for (const [key3, value5] of Object.entries(headers)) {
|
299051
299507
|
if (!value5) {
|
299052
299508
|
continue;
|
299053
299509
|
}
|
299054
|
-
normalized[
|
299510
|
+
normalized[key3.toLowerCase()] = value5;
|
299055
299511
|
}
|
299056
299512
|
return normalized;
|
299057
299513
|
}
|
@@ -302296,7 +302752,7 @@ function jsonOutput(data) {
|
|
302296
302752
|
var composer = require_composer();
|
302297
302753
|
var Document = require_Document();
|
302298
302754
|
var Schema = require_Schema();
|
302299
|
-
var
|
302755
|
+
var errors5 = require_errors3();
|
302300
302756
|
var Alias = require_Alias();
|
302301
302757
|
var identity2 = require_identity();
|
302302
302758
|
var Pair = require_Pair();
|
@@ -302312,9 +302768,9 @@ var visit2 = require_visit();
|
|
302312
302768
|
var $Composer = composer.Composer;
|
302313
302769
|
var $Document = Document.Document;
|
302314
302770
|
var $Schema = Schema.Schema;
|
302315
|
-
var $YAMLError =
|
302316
|
-
var $YAMLParseError =
|
302317
|
-
var $YAMLWarning =
|
302771
|
+
var $YAMLError = errors5.YAMLError;
|
302772
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
302773
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
302318
302774
|
var $Alias = Alias.Alias;
|
302319
302775
|
var $isAlias = identity2.isAlias;
|
302320
302776
|
var $isCollection = identity2.isCollection;
|
@@ -302921,11 +303377,11 @@ function createCommand4() {
|
|
302921
303377
|
|
302922
303378
|
// src/utils/commands/passthrough-options.ts
|
302923
303379
|
function mapPassthroughOptions(options, command) {
|
302924
|
-
const optionArgs = Object.entries(options).map(([
|
303380
|
+
const optionArgs = Object.entries(options).map(([key3, value5]) => {
|
302925
303381
|
if (value5 === true) {
|
302926
|
-
return `--${
|
303382
|
+
return `--${key3}`;
|
302927
303383
|
}
|
302928
|
-
return `--${
|
303384
|
+
return `--${key3}=${value5}`;
|
302929
303385
|
});
|
302930
303386
|
return [...optionArgs, ...command.args];
|
302931
303387
|
}
|
@@ -304178,4 +304634,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
304178
304634
|
// src/cli.ts
|
304179
304635
|
sdkCliCommand();
|
304180
304636
|
|
304181
|
-
//# debugId=
|
304637
|
+
//# debugId=C43218B283C0810364756E2164756E21
|