@settlemint/sdk-cli 2.3.2-maine196276e → 2.3.2-pr00c14697
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 +991 -244
- package/dist/cli.js.map +20 -5
- package/package.json +6 -6
package/dist/cli.js
CHANGED
@@ -239188,11 +239188,11 @@ var require_visit = __commonJS((exports) => {
|
|
239188
239188
|
visit2.BREAK = BREAK;
|
239189
239189
|
visit2.SKIP = SKIP;
|
239190
239190
|
visit2.REMOVE = REMOVE;
|
239191
|
-
function visit_(
|
239192
|
-
const ctrl = callVisitor(
|
239191
|
+
function visit_(key3, node, visitor, path5) {
|
239192
|
+
const ctrl = callVisitor(key3, node, visitor, path5);
|
239193
239193
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
239194
|
-
replaceNode(
|
239195
|
-
return visit_(
|
239194
|
+
replaceNode(key3, path5, ctrl);
|
239195
|
+
return visit_(key3, ctrl, visitor, path5);
|
239196
239196
|
}
|
239197
239197
|
if (typeof ctrl !== "symbol") {
|
239198
239198
|
if (identity2.isCollection(node)) {
|
@@ -239236,11 +239236,11 @@ var require_visit = __commonJS((exports) => {
|
|
239236
239236
|
visitAsync.BREAK = BREAK;
|
239237
239237
|
visitAsync.SKIP = SKIP;
|
239238
239238
|
visitAsync.REMOVE = REMOVE;
|
239239
|
-
async function visitAsync_(
|
239240
|
-
const ctrl = await callVisitor(
|
239239
|
+
async function visitAsync_(key3, node, visitor, path5) {
|
239240
|
+
const ctrl = await callVisitor(key3, node, visitor, path5);
|
239241
239241
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
239242
|
-
replaceNode(
|
239243
|
-
return visitAsync_(
|
239242
|
+
replaceNode(key3, path5, ctrl);
|
239243
|
+
return visitAsync_(key3, ctrl, visitor, path5);
|
239244
239244
|
}
|
239245
239245
|
if (typeof ctrl !== "symbol") {
|
239246
239246
|
if (identity2.isCollection(node)) {
|
@@ -239290,27 +239290,27 @@ var require_visit = __commonJS((exports) => {
|
|
239290
239290
|
}
|
239291
239291
|
return visitor;
|
239292
239292
|
}
|
239293
|
-
function callVisitor(
|
239293
|
+
function callVisitor(key3, node, visitor, path5) {
|
239294
239294
|
if (typeof visitor === "function")
|
239295
|
-
return visitor(
|
239295
|
+
return visitor(key3, node, path5);
|
239296
239296
|
if (identity2.isMap(node))
|
239297
|
-
return visitor.Map?.(
|
239297
|
+
return visitor.Map?.(key3, node, path5);
|
239298
239298
|
if (identity2.isSeq(node))
|
239299
|
-
return visitor.Seq?.(
|
239299
|
+
return visitor.Seq?.(key3, node, path5);
|
239300
239300
|
if (identity2.isPair(node))
|
239301
|
-
return visitor.Pair?.(
|
239301
|
+
return visitor.Pair?.(key3, node, path5);
|
239302
239302
|
if (identity2.isScalar(node))
|
239303
|
-
return visitor.Scalar?.(
|
239303
|
+
return visitor.Scalar?.(key3, node, path5);
|
239304
239304
|
if (identity2.isAlias(node))
|
239305
|
-
return visitor.Alias?.(
|
239305
|
+
return visitor.Alias?.(key3, node, path5);
|
239306
239306
|
return;
|
239307
239307
|
}
|
239308
|
-
function replaceNode(
|
239308
|
+
function replaceNode(key3, path5, node) {
|
239309
239309
|
const parent = path5[path5.length - 1];
|
239310
239310
|
if (identity2.isCollection(parent)) {
|
239311
|
-
parent.items[
|
239311
|
+
parent.items[key3] = node;
|
239312
239312
|
} else if (identity2.isPair(parent)) {
|
239313
|
-
if (
|
239313
|
+
if (key3 === "key")
|
239314
239314
|
parent.key = node;
|
239315
239315
|
else
|
239316
239316
|
parent.value = node;
|
@@ -239541,7 +239541,7 @@ var require_anchors = __commonJS((exports) => {
|
|
239541
239541
|
|
239542
239542
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
239543
239543
|
var require_applyReviver = __commonJS((exports) => {
|
239544
|
-
function applyReviver(reviver, obj,
|
239544
|
+
function applyReviver(reviver, obj, key3, val) {
|
239545
239545
|
if (val && typeof val === "object") {
|
239546
239546
|
if (Array.isArray(val)) {
|
239547
239547
|
for (let i7 = 0, len = val.length;i7 < len; ++i7) {
|
@@ -239581,7 +239581,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
239581
239581
|
}
|
239582
239582
|
}
|
239583
239583
|
}
|
239584
|
-
return reviver.call(obj,
|
239584
|
+
return reviver.call(obj, key3, val);
|
239585
239585
|
}
|
239586
239586
|
exports.applyReviver = applyReviver;
|
239587
239587
|
});
|
@@ -239910,29 +239910,29 @@ var require_Collection = __commonJS((exports) => {
|
|
239910
239910
|
if (isEmptyPath(path5))
|
239911
239911
|
this.add(value4);
|
239912
239912
|
else {
|
239913
|
-
const [
|
239914
|
-
const node = this.get(
|
239913
|
+
const [key3, ...rest] = path5;
|
239914
|
+
const node = this.get(key3, true);
|
239915
239915
|
if (identity2.isCollection(node))
|
239916
239916
|
node.addIn(rest, value4);
|
239917
239917
|
else if (node === undefined && this.schema)
|
239918
|
-
this.set(
|
239918
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
239919
239919
|
else
|
239920
|
-
throw new Error(`Expected YAML collection at ${
|
239920
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239921
239921
|
}
|
239922
239922
|
}
|
239923
239923
|
deleteIn(path5) {
|
239924
|
-
const [
|
239924
|
+
const [key3, ...rest] = path5;
|
239925
239925
|
if (rest.length === 0)
|
239926
|
-
return this.delete(
|
239927
|
-
const node = this.get(
|
239926
|
+
return this.delete(key3);
|
239927
|
+
const node = this.get(key3, true);
|
239928
239928
|
if (identity2.isCollection(node))
|
239929
239929
|
return node.deleteIn(rest);
|
239930
239930
|
else
|
239931
|
-
throw new Error(`Expected YAML collection at ${
|
239931
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239932
239932
|
}
|
239933
239933
|
getIn(path5, keepScalar) {
|
239934
|
-
const [
|
239935
|
-
const node = this.get(
|
239934
|
+
const [key3, ...rest] = path5;
|
239935
|
+
const node = this.get(key3, true);
|
239936
239936
|
if (rest.length === 0)
|
239937
239937
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
239938
239938
|
else
|
@@ -239947,24 +239947,24 @@ var require_Collection = __commonJS((exports) => {
|
|
239947
239947
|
});
|
239948
239948
|
}
|
239949
239949
|
hasIn(path5) {
|
239950
|
-
const [
|
239950
|
+
const [key3, ...rest] = path5;
|
239951
239951
|
if (rest.length === 0)
|
239952
|
-
return this.has(
|
239953
|
-
const node = this.get(
|
239952
|
+
return this.has(key3);
|
239953
|
+
const node = this.get(key3, true);
|
239954
239954
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
239955
239955
|
}
|
239956
239956
|
setIn(path5, value4) {
|
239957
|
-
const [
|
239957
|
+
const [key3, ...rest] = path5;
|
239958
239958
|
if (rest.length === 0) {
|
239959
|
-
this.set(
|
239959
|
+
this.set(key3, value4);
|
239960
239960
|
} else {
|
239961
|
-
const node = this.get(
|
239961
|
+
const node = this.get(key3, true);
|
239962
239962
|
if (identity2.isCollection(node))
|
239963
239963
|
node.setIn(rest, value4);
|
239964
239964
|
else if (node === undefined && this.schema)
|
239965
|
-
this.set(
|
239965
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
239966
239966
|
else
|
239967
|
-
throw new Error(`Expected YAML collection at ${
|
239967
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
239968
239968
|
}
|
239969
239969
|
}
|
239970
239970
|
}
|
@@ -240551,19 +240551,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
240551
240551
|
var Scalar = require_Scalar();
|
240552
240552
|
var stringify5 = require_stringify();
|
240553
240553
|
var stringifyComment = require_stringifyComment();
|
240554
|
-
function stringifyPair2({ key:
|
240554
|
+
function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
|
240555
240555
|
const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
240556
|
-
let keyComment = identity2.isNode(
|
240556
|
+
let keyComment = identity2.isNode(key3) && key3.comment || null;
|
240557
240557
|
if (simpleKeys) {
|
240558
240558
|
if (keyComment) {
|
240559
240559
|
throw new Error("With simple keys, key nodes cannot have comments");
|
240560
240560
|
}
|
240561
|
-
if (identity2.isCollection(
|
240561
|
+
if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
|
240562
240562
|
const msg = "With simple keys, collection cannot be used as a key value";
|
240563
240563
|
throw new Error(msg);
|
240564
240564
|
}
|
240565
240565
|
}
|
240566
|
-
let explicitKey = !simpleKeys && (!
|
240566
|
+
let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
|
240567
240567
|
ctx = Object.assign({}, ctx, {
|
240568
240568
|
allNullValues: false,
|
240569
240569
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -240571,7 +240571,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
240571
240571
|
});
|
240572
240572
|
let keyCommentDone = false;
|
240573
240573
|
let chompKeep = false;
|
240574
|
-
let str = stringify5.stringify(
|
240574
|
+
let str = stringify5.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
240575
240575
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
240576
240576
|
if (simpleKeys)
|
240577
240577
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -240715,7 +240715,7 @@ var require_merge = __commonJS((exports) => {
|
|
240715
240715
|
}),
|
240716
240716
|
stringify: () => MERGE_KEY
|
240717
240717
|
};
|
240718
|
-
var isMergeKey = (ctx,
|
240718
|
+
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);
|
240719
240719
|
function addMergeToJSMap(ctx, map4, value4) {
|
240720
240720
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
240721
240721
|
if (identity2.isSeq(value4))
|
@@ -240732,14 +240732,14 @@ var require_merge = __commonJS((exports) => {
|
|
240732
240732
|
if (!identity2.isMap(source))
|
240733
240733
|
throw new Error("Merge sources must be maps or map aliases");
|
240734
240734
|
const srcMap = source.toJSON(null, ctx, Map);
|
240735
|
-
for (const [
|
240735
|
+
for (const [key3, value5] of srcMap) {
|
240736
240736
|
if (map4 instanceof Map) {
|
240737
|
-
if (!map4.has(
|
240738
|
-
map4.set(
|
240737
|
+
if (!map4.has(key3))
|
240738
|
+
map4.set(key3, value5);
|
240739
240739
|
} else if (map4 instanceof Set) {
|
240740
|
-
map4.add(
|
240741
|
-
} else if (!Object.prototype.hasOwnProperty.call(map4,
|
240742
|
-
Object.defineProperty(map4,
|
240740
|
+
map4.add(key3);
|
240741
|
+
} else if (!Object.prototype.hasOwnProperty.call(map4, key3)) {
|
240742
|
+
Object.defineProperty(map4, key3, {
|
240743
240743
|
value: value5,
|
240744
240744
|
writable: true,
|
240745
240745
|
enumerable: true,
|
@@ -240761,19 +240761,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
240761
240761
|
var stringify5 = require_stringify();
|
240762
240762
|
var identity2 = require_identity();
|
240763
240763
|
var toJS = require_toJS();
|
240764
|
-
function addPairToJSMap(ctx, map4, { key:
|
240765
|
-
if (identity2.isNode(
|
240766
|
-
|
240767
|
-
else if (merge4.isMergeKey(ctx,
|
240764
|
+
function addPairToJSMap(ctx, map4, { key: key3, value: value4 }) {
|
240765
|
+
if (identity2.isNode(key3) && key3.addToJSMap)
|
240766
|
+
key3.addToJSMap(ctx, map4, value4);
|
240767
|
+
else if (merge4.isMergeKey(ctx, key3))
|
240768
240768
|
merge4.addMergeToJSMap(ctx, map4, value4);
|
240769
240769
|
else {
|
240770
|
-
const jsKey = toJS.toJS(
|
240770
|
+
const jsKey = toJS.toJS(key3, "", ctx);
|
240771
240771
|
if (map4 instanceof Map) {
|
240772
240772
|
map4.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
240773
240773
|
} else if (map4 instanceof Set) {
|
240774
240774
|
map4.add(jsKey);
|
240775
240775
|
} else {
|
240776
|
-
const stringKey = stringifyKey(
|
240776
|
+
const stringKey = stringifyKey(key3, jsKey, ctx);
|
240777
240777
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
240778
240778
|
if (stringKey in map4)
|
240779
240779
|
Object.defineProperty(map4, stringKey, {
|
@@ -240788,19 +240788,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
240788
240788
|
}
|
240789
240789
|
return map4;
|
240790
240790
|
}
|
240791
|
-
function stringifyKey(
|
240791
|
+
function stringifyKey(key3, jsKey, ctx) {
|
240792
240792
|
if (jsKey === null)
|
240793
240793
|
return "";
|
240794
240794
|
if (typeof jsKey !== "object")
|
240795
240795
|
return String(jsKey);
|
240796
|
-
if (identity2.isNode(
|
240796
|
+
if (identity2.isNode(key3) && ctx?.doc) {
|
240797
240797
|
const strCtx = stringify5.createStringifyContext(ctx.doc, {});
|
240798
240798
|
strCtx.anchors = new Set;
|
240799
240799
|
for (const node of ctx.anchors.keys())
|
240800
240800
|
strCtx.anchors.add(node.anchor);
|
240801
240801
|
strCtx.inFlow = true;
|
240802
240802
|
strCtx.inStringifyKey = true;
|
240803
|
-
const strKey =
|
240803
|
+
const strKey = key3.toString(strCtx);
|
240804
240804
|
if (!ctx.mapKeyWarned) {
|
240805
240805
|
let jsonStr = JSON.stringify(strKey);
|
240806
240806
|
if (jsonStr.length > 40)
|
@@ -240821,25 +240821,25 @@ var require_Pair = __commonJS((exports) => {
|
|
240821
240821
|
var stringifyPair2 = require_stringifyPair();
|
240822
240822
|
var addPairToJSMap = require_addPairToJSMap();
|
240823
240823
|
var identity2 = require_identity();
|
240824
|
-
function createPair(
|
240825
|
-
const k6 = createNode.createNode(
|
240824
|
+
function createPair(key3, value4, ctx) {
|
240825
|
+
const k6 = createNode.createNode(key3, undefined, ctx);
|
240826
240826
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
240827
240827
|
return new Pair(k6, v7);
|
240828
240828
|
}
|
240829
240829
|
|
240830
240830
|
class Pair {
|
240831
|
-
constructor(
|
240831
|
+
constructor(key3, value4 = null) {
|
240832
240832
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
240833
|
-
this.key =
|
240833
|
+
this.key = key3;
|
240834
240834
|
this.value = value4;
|
240835
240835
|
}
|
240836
240836
|
clone(schema) {
|
240837
|
-
let { key:
|
240838
|
-
if (identity2.isNode(
|
240839
|
-
|
240837
|
+
let { key: key3, value: value4 } = this;
|
240838
|
+
if (identity2.isNode(key3))
|
240839
|
+
key3 = key3.clone(schema);
|
240840
240840
|
if (identity2.isNode(value4))
|
240841
240841
|
value4 = value4.clone(schema);
|
240842
|
-
return new Pair(
|
240842
|
+
return new Pair(key3, value4);
|
240843
240843
|
}
|
240844
240844
|
toJSON(_6, ctx) {
|
240845
240845
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -241006,11 +241006,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
241006
241006
|
var identity2 = require_identity();
|
241007
241007
|
var Pair = require_Pair();
|
241008
241008
|
var Scalar = require_Scalar();
|
241009
|
-
function findPair(items,
|
241010
|
-
const k6 = identity2.isScalar(
|
241009
|
+
function findPair(items, key3) {
|
241010
|
+
const k6 = identity2.isScalar(key3) ? key3.value : key3;
|
241011
241011
|
for (const it2 of items) {
|
241012
241012
|
if (identity2.isPair(it2)) {
|
241013
|
-
if (it2.key ===
|
241013
|
+
if (it2.key === key3 || it2.key === k6)
|
241014
241014
|
return it2;
|
241015
241015
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
241016
241016
|
return it2;
|
@@ -241030,20 +241030,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
241030
241030
|
static from(schema, obj, ctx) {
|
241031
241031
|
const { keepUndefined, replacer } = ctx;
|
241032
241032
|
const map4 = new this(schema);
|
241033
|
-
const add = (
|
241033
|
+
const add = (key3, value4) => {
|
241034
241034
|
if (typeof replacer === "function")
|
241035
|
-
value4 = replacer.call(obj,
|
241036
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
241035
|
+
value4 = replacer.call(obj, key3, value4);
|
241036
|
+
else if (Array.isArray(replacer) && !replacer.includes(key3))
|
241037
241037
|
return;
|
241038
241038
|
if (value4 !== undefined || keepUndefined)
|
241039
|
-
map4.items.push(Pair.createPair(
|
241039
|
+
map4.items.push(Pair.createPair(key3, value4, ctx));
|
241040
241040
|
};
|
241041
241041
|
if (obj instanceof Map) {
|
241042
|
-
for (const [
|
241043
|
-
add(
|
241042
|
+
for (const [key3, value4] of obj)
|
241043
|
+
add(key3, value4);
|
241044
241044
|
} else if (obj && typeof obj === "object") {
|
241045
|
-
for (const
|
241046
|
-
add(
|
241045
|
+
for (const key3 of Object.keys(obj))
|
241046
|
+
add(key3, obj[key3]);
|
241047
241047
|
}
|
241048
241048
|
if (typeof schema.sortMapEntries === "function") {
|
241049
241049
|
map4.items.sort(schema.sortMapEntries);
|
@@ -241077,23 +241077,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
241077
241077
|
this.items.push(_pair);
|
241078
241078
|
}
|
241079
241079
|
}
|
241080
|
-
delete(
|
241081
|
-
const it2 = findPair(this.items,
|
241080
|
+
delete(key3) {
|
241081
|
+
const it2 = findPair(this.items, key3);
|
241082
241082
|
if (!it2)
|
241083
241083
|
return false;
|
241084
241084
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
241085
241085
|
return del.length > 0;
|
241086
241086
|
}
|
241087
|
-
get(
|
241088
|
-
const it2 = findPair(this.items,
|
241087
|
+
get(key3, keepScalar) {
|
241088
|
+
const it2 = findPair(this.items, key3);
|
241089
241089
|
const node = it2?.value;
|
241090
241090
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
241091
241091
|
}
|
241092
|
-
has(
|
241093
|
-
return !!findPair(this.items,
|
241092
|
+
has(key3) {
|
241093
|
+
return !!findPair(this.items, key3);
|
241094
241094
|
}
|
241095
|
-
set(
|
241096
|
-
this.add(new Pair.Pair(
|
241095
|
+
set(key3, value4) {
|
241096
|
+
this.add(new Pair.Pair(key3, value4), true);
|
241097
241097
|
}
|
241098
241098
|
toJSON(_6, ctx, Type) {
|
241099
241099
|
const map4 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -241164,28 +241164,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
241164
241164
|
add(value4) {
|
241165
241165
|
this.items.push(value4);
|
241166
241166
|
}
|
241167
|
-
delete(
|
241168
|
-
const idx = asItemIndex(
|
241167
|
+
delete(key3) {
|
241168
|
+
const idx = asItemIndex(key3);
|
241169
241169
|
if (typeof idx !== "number")
|
241170
241170
|
return false;
|
241171
241171
|
const del = this.items.splice(idx, 1);
|
241172
241172
|
return del.length > 0;
|
241173
241173
|
}
|
241174
|
-
get(
|
241175
|
-
const idx = asItemIndex(
|
241174
|
+
get(key3, keepScalar) {
|
241175
|
+
const idx = asItemIndex(key3);
|
241176
241176
|
if (typeof idx !== "number")
|
241177
241177
|
return;
|
241178
241178
|
const it2 = this.items[idx];
|
241179
241179
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
241180
241180
|
}
|
241181
|
-
has(
|
241182
|
-
const idx = asItemIndex(
|
241181
|
+
has(key3) {
|
241182
|
+
const idx = asItemIndex(key3);
|
241183
241183
|
return typeof idx === "number" && idx < this.items.length;
|
241184
241184
|
}
|
241185
|
-
set(
|
241186
|
-
const idx = asItemIndex(
|
241185
|
+
set(key3, value4) {
|
241186
|
+
const idx = asItemIndex(key3);
|
241187
241187
|
if (typeof idx !== "number")
|
241188
|
-
throw new Error(`Expected a valid index, not ${
|
241188
|
+
throw new Error(`Expected a valid index, not ${key3}.`);
|
241189
241189
|
const prev = this.items[idx];
|
241190
241190
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
241191
241191
|
prev.value = value4;
|
@@ -241219,8 +241219,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
241219
241219
|
let i7 = 0;
|
241220
241220
|
for (let it2 of obj) {
|
241221
241221
|
if (typeof replacer === "function") {
|
241222
|
-
const
|
241223
|
-
it2 = replacer.call(obj,
|
241222
|
+
const key3 = obj instanceof Set ? it2 : String(i7++);
|
241223
|
+
it2 = replacer.call(obj, key3, it2);
|
241224
241224
|
}
|
241225
241225
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
241226
241226
|
}
|
@@ -241228,8 +241228,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
241228
241228
|
return seq;
|
241229
241229
|
}
|
241230
241230
|
}
|
241231
|
-
function asItemIndex(
|
241232
|
-
let idx = identity2.isScalar(
|
241231
|
+
function asItemIndex(key3) {
|
241232
|
+
let idx = identity2.isScalar(key3) ? key3.value : key3;
|
241233
241233
|
if (idx && typeof idx === "string")
|
241234
241234
|
idx = Number(idx);
|
241235
241235
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -241602,25 +241602,25 @@ ${cn.comment}` : item.comment;
|
|
241602
241602
|
for (let it2 of iterable) {
|
241603
241603
|
if (typeof replacer === "function")
|
241604
241604
|
it2 = replacer.call(iterable, String(i7++), it2);
|
241605
|
-
let
|
241605
|
+
let key3, value4;
|
241606
241606
|
if (Array.isArray(it2)) {
|
241607
241607
|
if (it2.length === 2) {
|
241608
|
-
|
241608
|
+
key3 = it2[0];
|
241609
241609
|
value4 = it2[1];
|
241610
241610
|
} else
|
241611
241611
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
241612
241612
|
} else if (it2 && it2 instanceof Object) {
|
241613
241613
|
const keys = Object.keys(it2);
|
241614
241614
|
if (keys.length === 1) {
|
241615
|
-
|
241616
|
-
value4 = it2[
|
241615
|
+
key3 = keys[0];
|
241616
|
+
value4 = it2[key3];
|
241617
241617
|
} else {
|
241618
241618
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
241619
241619
|
}
|
241620
241620
|
} else {
|
241621
|
-
|
241621
|
+
key3 = it2;
|
241622
241622
|
}
|
241623
|
-
pairs2.items.push(Pair.createPair(
|
241623
|
+
pairs2.items.push(Pair.createPair(key3, value4, ctx));
|
241624
241624
|
}
|
241625
241625
|
return pairs2;
|
241626
241626
|
}
|
@@ -241661,16 +241661,16 @@ var require_omap = __commonJS((exports) => {
|
|
241661
241661
|
if (ctx?.onCreate)
|
241662
241662
|
ctx.onCreate(map4);
|
241663
241663
|
for (const pair of this.items) {
|
241664
|
-
let
|
241664
|
+
let key3, value4;
|
241665
241665
|
if (identity2.isPair(pair)) {
|
241666
|
-
|
241667
|
-
value4 = toJS.toJS(pair.value,
|
241666
|
+
key3 = toJS.toJS(pair.key, "", ctx);
|
241667
|
+
value4 = toJS.toJS(pair.value, key3, ctx);
|
241668
241668
|
} else {
|
241669
|
-
|
241669
|
+
key3 = toJS.toJS(pair, "", ctx);
|
241670
241670
|
}
|
241671
|
-
if (map4.has(
|
241671
|
+
if (map4.has(key3))
|
241672
241672
|
throw new Error("Ordered maps must not include duplicate keys");
|
241673
|
-
map4.set(
|
241673
|
+
map4.set(key3, value4);
|
241674
241674
|
}
|
241675
241675
|
return map4;
|
241676
241676
|
}
|
@@ -241691,12 +241691,12 @@ var require_omap = __commonJS((exports) => {
|
|
241691
241691
|
resolve(seq, onError) {
|
241692
241692
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
241693
241693
|
const seenKeys = [];
|
241694
|
-
for (const { key:
|
241695
|
-
if (identity2.isScalar(
|
241696
|
-
if (seenKeys.includes(
|
241697
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
241694
|
+
for (const { key: key3 } of pairs$1.items) {
|
241695
|
+
if (identity2.isScalar(key3)) {
|
241696
|
+
if (seenKeys.includes(key3.value)) {
|
241697
|
+
onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
|
241698
241698
|
} else {
|
241699
|
-
seenKeys.push(
|
241699
|
+
seenKeys.push(key3.value);
|
241700
241700
|
}
|
241701
241701
|
}
|
241702
241702
|
}
|
@@ -241870,30 +241870,30 @@ var require_set = __commonJS((exports) => {
|
|
241870
241870
|
super(schema);
|
241871
241871
|
this.tag = YAMLSet.tag;
|
241872
241872
|
}
|
241873
|
-
add(
|
241873
|
+
add(key3) {
|
241874
241874
|
let pair;
|
241875
|
-
if (identity2.isPair(
|
241876
|
-
pair =
|
241877
|
-
else if (
|
241878
|
-
pair = new Pair.Pair(
|
241875
|
+
if (identity2.isPair(key3))
|
241876
|
+
pair = key3;
|
241877
|
+
else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
|
241878
|
+
pair = new Pair.Pair(key3.key, null);
|
241879
241879
|
else
|
241880
|
-
pair = new Pair.Pair(
|
241880
|
+
pair = new Pair.Pair(key3, null);
|
241881
241881
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
241882
241882
|
if (!prev)
|
241883
241883
|
this.items.push(pair);
|
241884
241884
|
}
|
241885
|
-
get(
|
241886
|
-
const pair = YAMLMap.findPair(this.items,
|
241885
|
+
get(key3, keepPair) {
|
241886
|
+
const pair = YAMLMap.findPair(this.items, key3);
|
241887
241887
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
241888
241888
|
}
|
241889
|
-
set(
|
241889
|
+
set(key3, value4) {
|
241890
241890
|
if (typeof value4 !== "boolean")
|
241891
241891
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
241892
|
-
const prev = YAMLMap.findPair(this.items,
|
241892
|
+
const prev = YAMLMap.findPair(this.items, key3);
|
241893
241893
|
if (prev && !value4) {
|
241894
241894
|
this.items.splice(this.items.indexOf(prev), 1);
|
241895
241895
|
} else if (!prev && value4) {
|
241896
|
-
this.items.push(new Pair.Pair(
|
241896
|
+
this.items.push(new Pair.Pair(key3));
|
241897
241897
|
}
|
241898
241898
|
}
|
241899
241899
|
toJSON(_6, ctx) {
|
@@ -242128,7 +242128,7 @@ var require_tags = __commonJS((exports) => {
|
|
242128
242128
|
if (Array.isArray(customTags))
|
242129
242129
|
tags = [];
|
242130
242130
|
else {
|
242131
|
-
const keys = Array.from(schemas3.keys()).filter((
|
242131
|
+
const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
|
242132
242132
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
242133
242133
|
}
|
242134
242134
|
}
|
@@ -242144,7 +242144,7 @@ var require_tags = __commonJS((exports) => {
|
|
242144
242144
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
242145
242145
|
if (!tagObj) {
|
242146
242146
|
const tagName = JSON.stringify(tag);
|
242147
|
-
const keys = Object.keys(tagsByName).map((
|
242147
|
+
const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
|
242148
242148
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
242149
242149
|
}
|
242150
242150
|
if (!tags2.includes(tagObj))
|
@@ -242379,13 +242379,13 @@ var require_Document = __commonJS((exports) => {
|
|
242379
242379
|
setAnchors();
|
242380
242380
|
return node;
|
242381
242381
|
}
|
242382
|
-
createPair(
|
242383
|
-
const k6 = this.createNode(
|
242382
|
+
createPair(key3, value4, options = {}) {
|
242383
|
+
const k6 = this.createNode(key3, null, options);
|
242384
242384
|
const v7 = this.createNode(value4, null, options);
|
242385
242385
|
return new Pair.Pair(k6, v7);
|
242386
242386
|
}
|
242387
|
-
delete(
|
242388
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
242387
|
+
delete(key3) {
|
242388
|
+
return assertCollection(this.contents) ? this.contents.delete(key3) : false;
|
242389
242389
|
}
|
242390
242390
|
deleteIn(path5) {
|
242391
242391
|
if (Collection.isEmptyPath(path5)) {
|
@@ -242396,27 +242396,27 @@ var require_Document = __commonJS((exports) => {
|
|
242396
242396
|
}
|
242397
242397
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
242398
242398
|
}
|
242399
|
-
get(
|
242400
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
242399
|
+
get(key3, keepScalar) {
|
242400
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
|
242401
242401
|
}
|
242402
242402
|
getIn(path5, keepScalar) {
|
242403
242403
|
if (Collection.isEmptyPath(path5))
|
242404
242404
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
242405
242405
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
242406
242406
|
}
|
242407
|
-
has(
|
242408
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
242407
|
+
has(key3) {
|
242408
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
|
242409
242409
|
}
|
242410
242410
|
hasIn(path5) {
|
242411
242411
|
if (Collection.isEmptyPath(path5))
|
242412
242412
|
return this.contents !== undefined;
|
242413
242413
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
242414
242414
|
}
|
242415
|
-
set(
|
242415
|
+
set(key3, value4) {
|
242416
242416
|
if (this.contents == null) {
|
242417
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
242417
|
+
this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
|
242418
242418
|
} else if (assertCollection(this.contents)) {
|
242419
|
-
this.contents.set(
|
242419
|
+
this.contents.set(key3, value4);
|
242420
242420
|
}
|
242421
242421
|
}
|
242422
242422
|
setIn(path5, value4) {
|
@@ -242698,25 +242698,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
242698
242698
|
|
242699
242699
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
242700
242700
|
var require_util_contains_newline = __commonJS((exports) => {
|
242701
|
-
function containsNewline(
|
242702
|
-
if (!
|
242701
|
+
function containsNewline(key3) {
|
242702
|
+
if (!key3)
|
242703
242703
|
return null;
|
242704
|
-
switch (
|
242704
|
+
switch (key3.type) {
|
242705
242705
|
case "alias":
|
242706
242706
|
case "scalar":
|
242707
242707
|
case "double-quoted-scalar":
|
242708
242708
|
case "single-quoted-scalar":
|
242709
|
-
if (
|
242709
|
+
if (key3.source.includes(`
|
242710
242710
|
`))
|
242711
242711
|
return true;
|
242712
|
-
if (
|
242713
|
-
for (const st2 of
|
242712
|
+
if (key3.end) {
|
242713
|
+
for (const st2 of key3.end)
|
242714
242714
|
if (st2.type === "newline")
|
242715
242715
|
return true;
|
242716
242716
|
}
|
242717
242717
|
return false;
|
242718
242718
|
case "flow-collection":
|
242719
|
-
for (const it2 of
|
242719
|
+
for (const it2 of key3.items) {
|
242720
242720
|
for (const st2 of it2.start)
|
242721
242721
|
if (st2.type === "newline")
|
242722
242722
|
return true;
|
@@ -242781,10 +242781,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242781
242781
|
let offset = bm.offset;
|
242782
242782
|
let commentEnd = null;
|
242783
242783
|
for (const collItem of bm.items) {
|
242784
|
-
const { start: start3, key:
|
242784
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
242785
242785
|
const keyProps = resolveProps.resolveProps(start3, {
|
242786
242786
|
indicator: "explicit-key-ind",
|
242787
|
-
next:
|
242787
|
+
next: key3 ?? sep3?.[0],
|
242788
242788
|
offset,
|
242789
242789
|
onError,
|
242790
242790
|
parentIndent: bm.indent,
|
@@ -242792,10 +242792,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242792
242792
|
});
|
242793
242793
|
const implicitKey = !keyProps.found;
|
242794
242794
|
if (implicitKey) {
|
242795
|
-
if (
|
242796
|
-
if (
|
242795
|
+
if (key3) {
|
242796
|
+
if (key3.type === "block-seq")
|
242797
242797
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
242798
|
-
else if ("indent" in
|
242798
|
+
else if ("indent" in key3 && key3.indent !== bm.indent)
|
242799
242799
|
onError(offset, "BAD_INDENT", startColMsg);
|
242800
242800
|
}
|
242801
242801
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -242809,17 +242809,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242809
242809
|
}
|
242810
242810
|
continue;
|
242811
242811
|
}
|
242812
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
242813
|
-
onError(
|
242812
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
|
242813
|
+
onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
242814
242814
|
}
|
242815
242815
|
} else if (keyProps.found?.indent !== bm.indent) {
|
242816
242816
|
onError(offset, "BAD_INDENT", startColMsg);
|
242817
242817
|
}
|
242818
242818
|
ctx.atKey = true;
|
242819
242819
|
const keyStart = keyProps.end;
|
242820
|
-
const keyNode =
|
242820
|
+
const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
242821
242821
|
if (ctx.schema.compat)
|
242822
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
242822
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
|
242823
242823
|
ctx.atKey = false;
|
242824
242824
|
if (utilMapIncludes.mapIncludes(ctx, map4.items, keyNode))
|
242825
242825
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -242829,7 +242829,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
242829
242829
|
offset: keyNode.range[2],
|
242830
242830
|
onError,
|
242831
242831
|
parentIndent: bm.indent,
|
242832
|
-
startOnNewline: !
|
242832
|
+
startOnNewline: !key3 || key3.type === "block-scalar"
|
242833
242833
|
});
|
242834
242834
|
offset = valueProps.end;
|
242835
242835
|
if (valueProps.found) {
|
@@ -242985,11 +242985,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
242985
242985
|
let offset = fc.offset + fc.start.source.length;
|
242986
242986
|
for (let i7 = 0;i7 < fc.items.length; ++i7) {
|
242987
242987
|
const collItem = fc.items[i7];
|
242988
|
-
const { start: start3, key:
|
242988
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
242989
242989
|
const props = resolveProps.resolveProps(start3, {
|
242990
242990
|
flow: fcName,
|
242991
242991
|
indicator: "explicit-key-ind",
|
242992
|
-
next:
|
242992
|
+
next: key3 ?? sep3?.[0],
|
242993
242993
|
offset,
|
242994
242994
|
onError,
|
242995
242995
|
parentIndent: fc.indent,
|
@@ -243011,8 +243011,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
243011
243011
|
offset = props.end;
|
243012
243012
|
continue;
|
243013
243013
|
}
|
243014
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
243015
|
-
onError(
|
243014
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
|
243015
|
+
onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
243016
243016
|
}
|
243017
243017
|
if (i7 === 0) {
|
243018
243018
|
if (props.comma)
|
@@ -243057,8 +243057,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
243057
243057
|
} else {
|
243058
243058
|
ctx.atKey = true;
|
243059
243059
|
const keyStart = props.end;
|
243060
|
-
const keyNode =
|
243061
|
-
if (isBlock(
|
243060
|
+
const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
243061
|
+
if (isBlock(key3))
|
243062
243062
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
243063
243063
|
ctx.atKey = false;
|
243064
243064
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -243869,7 +243869,7 @@ var require_composer = __commonJS((exports) => {
|
|
243869
243869
|
var node_process = __require("process");
|
243870
243870
|
var directives4 = require_directives2();
|
243871
243871
|
var Document = require_Document();
|
243872
|
-
var
|
243872
|
+
var errors5 = require_errors3();
|
243873
243873
|
var identity2 = require_identity();
|
243874
243874
|
var composeDoc = require_compose_doc();
|
243875
243875
|
var resolveEnd = require_resolve_end();
|
@@ -243920,9 +243920,9 @@ var require_composer = __commonJS((exports) => {
|
|
243920
243920
|
this.onError = (source, code2, message, warning) => {
|
243921
243921
|
const pos = getErrorPos(source);
|
243922
243922
|
if (warning)
|
243923
|
-
this.warnings.push(new
|
243923
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
243924
243924
|
else
|
243925
|
-
this.errors.push(new
|
243925
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
243926
243926
|
};
|
243927
243927
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
243928
243928
|
this.options = options;
|
@@ -244006,7 +244006,7 @@ ${cb}` : comment;
|
|
244006
244006
|
break;
|
244007
244007
|
case "error": {
|
244008
244008
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
244009
|
-
const error39 = new
|
244009
|
+
const error39 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
244010
244010
|
if (this.atDirectives || !this.doc)
|
244011
244011
|
this.errors.push(error39);
|
244012
244012
|
else
|
@@ -244016,7 +244016,7 @@ ${cb}` : comment;
|
|
244016
244016
|
case "doc-end": {
|
244017
244017
|
if (!this.doc) {
|
244018
244018
|
const msg = "Unexpected doc-end without preceding document";
|
244019
|
-
this.errors.push(new
|
244019
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
244020
244020
|
break;
|
244021
244021
|
}
|
244022
244022
|
this.doc.directives.docEnd = true;
|
@@ -244031,7 +244031,7 @@ ${end.comment}` : end.comment;
|
|
244031
244031
|
break;
|
244032
244032
|
}
|
244033
244033
|
default:
|
244034
|
-
this.errors.push(new
|
244034
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
244035
244035
|
}
|
244036
244036
|
}
|
244037
244037
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -244057,7 +244057,7 @@ ${end.comment}` : end.comment;
|
|
244057
244057
|
var require_cst_scalar = __commonJS((exports) => {
|
244058
244058
|
var resolveBlockScalar = require_resolve_block_scalar();
|
244059
244059
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
244060
|
-
var
|
244060
|
+
var errors5 = require_errors3();
|
244061
244061
|
var stringifyString = require_stringifyString();
|
244062
244062
|
function resolveAsScalar(token, strict = true, onError) {
|
244063
244063
|
if (token) {
|
@@ -244066,7 +244066,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
244066
244066
|
if (onError)
|
244067
244067
|
onError(offset, code2, message);
|
244068
244068
|
else
|
244069
|
-
throw new
|
244069
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
244070
244070
|
};
|
244071
244071
|
switch (token.type) {
|
244072
244072
|
case "scalar":
|
@@ -244180,9 +244180,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
244180
244180
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
244181
244181
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
244182
244182
|
` });
|
244183
|
-
for (const
|
244184
|
-
if (
|
244185
|
-
delete token[
|
244183
|
+
for (const key3 of Object.keys(token))
|
244184
|
+
if (key3 !== "type" && key3 !== "offset")
|
244185
|
+
delete token[key3];
|
244186
244186
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
244187
244187
|
}
|
244188
244188
|
}
|
@@ -244231,9 +244231,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
244231
244231
|
default: {
|
244232
244232
|
const indent2 = "indent" in token ? token.indent : -1;
|
244233
244233
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
244234
|
-
for (const
|
244235
|
-
if (
|
244236
|
-
delete token[
|
244234
|
+
for (const key3 of Object.keys(token))
|
244235
|
+
if (key3 !== "type" && key3 !== "offset")
|
244236
|
+
delete token[key3];
|
244237
244237
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
244238
244238
|
}
|
244239
244239
|
}
|
@@ -244285,12 +244285,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
244285
244285
|
}
|
244286
244286
|
}
|
244287
244287
|
}
|
244288
|
-
function stringifyItem({ start: start3, key:
|
244288
|
+
function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
|
244289
244289
|
let res = "";
|
244290
244290
|
for (const st2 of start3)
|
244291
244291
|
res += st2.source;
|
244292
|
-
if (
|
244293
|
-
res += stringifyToken(
|
244292
|
+
if (key3)
|
244293
|
+
res += stringifyToken(key3);
|
244294
244294
|
if (sep3)
|
244295
244295
|
for (const st2 of sep3)
|
244296
244296
|
res += st2.source;
|
@@ -245586,7 +245586,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245586
245586
|
});
|
245587
245587
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
245588
245588
|
const start4 = getFirstKeyStartProps(it2.start);
|
245589
|
-
const
|
245589
|
+
const key3 = it2.key;
|
245590
245590
|
const sep3 = it2.sep;
|
245591
245591
|
sep3.push(this.sourceToken);
|
245592
245592
|
delete it2.key;
|
@@ -245595,7 +245595,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245595
245595
|
type: "block-map",
|
245596
245596
|
offset: this.offset,
|
245597
245597
|
indent: this.indent,
|
245598
|
-
items: [{ start: start4, key:
|
245598
|
+
items: [{ start: start4, key: key3, sep: sep3 }]
|
245599
245599
|
});
|
245600
245600
|
} else if (start3.length > 0) {
|
245601
245601
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -245928,7 +245928,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
245928
245928
|
var require_public_api = __commonJS((exports) => {
|
245929
245929
|
var composer = require_composer();
|
245930
245930
|
var Document = require_Document();
|
245931
|
-
var
|
245931
|
+
var errors5 = require_errors3();
|
245932
245932
|
var log = require_log();
|
245933
245933
|
var identity2 = require_identity();
|
245934
245934
|
var lineCounter = require_line_counter();
|
@@ -245945,8 +245945,8 @@ var require_public_api = __commonJS((exports) => {
|
|
245945
245945
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
245946
245946
|
if (prettyErrors && lineCounter2)
|
245947
245947
|
for (const doc2 of docs) {
|
245948
|
-
doc2.errors.forEach(
|
245949
|
-
doc2.warnings.forEach(
|
245948
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
245949
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
245950
245950
|
}
|
245951
245951
|
if (docs.length > 0)
|
245952
245952
|
return docs;
|
@@ -245961,13 +245961,13 @@ var require_public_api = __commonJS((exports) => {
|
|
245961
245961
|
if (!doc2)
|
245962
245962
|
doc2 = _doc;
|
245963
245963
|
else if (doc2.options.logLevel !== "silent") {
|
245964
|
-
doc2.errors.push(new
|
245964
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
245965
245965
|
break;
|
245966
245966
|
}
|
245967
245967
|
}
|
245968
245968
|
if (prettyErrors && lineCounter2) {
|
245969
|
-
doc2.errors.forEach(
|
245970
|
-
doc2.warnings.forEach(
|
245969
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
245970
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
245971
245971
|
}
|
245972
245972
|
return doc2;
|
245973
245973
|
}
|
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
262458
262458
|
var package_default = {
|
262459
262459
|
name: "@settlemint/sdk-cli",
|
262460
262460
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
262461
|
-
version: "2.3.2-
|
262461
|
+
version: "2.3.2-pr00c14697",
|
262462
262462
|
type: "module",
|
262463
262463
|
private: false,
|
262464
262464
|
license: "FSL-1.1-MIT",
|
@@ -262503,12 +262503,12 @@ var package_default = {
|
|
262503
262503
|
devDependencies: {
|
262504
262504
|
"@commander-js/extra-typings": "14.0.0",
|
262505
262505
|
commander: "14.0.0",
|
262506
|
-
"@inquirer/confirm": "5.1.
|
262507
|
-
"@inquirer/input": "4.1.
|
262506
|
+
"@inquirer/confirm": "5.1.11",
|
262507
|
+
"@inquirer/input": "4.1.11",
|
262508
262508
|
"@inquirer/password": "4.0.13",
|
262509
|
-
"@inquirer/select": "4.2.
|
262510
|
-
"@settlemint/sdk-js": "2.3.2-
|
262511
|
-
"@settlemint/sdk-utils": "2.3.2-
|
262509
|
+
"@inquirer/select": "4.2.2",
|
262510
|
+
"@settlemint/sdk-js": "2.3.2-pr00c14697",
|
262511
|
+
"@settlemint/sdk-utils": "2.3.2-pr00c14697",
|
262512
262512
|
"@types/node": "22.15.21",
|
262513
262513
|
"@types/semver": "7.7.0",
|
262514
262514
|
"@types/which": "3.0.4",
|
@@ -262630,6 +262630,9 @@ class ValidationError extends Error {
|
|
262630
262630
|
name = "ValidationError";
|
262631
262631
|
}
|
262632
262632
|
// ../../node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
262633
|
+
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
262634
|
+
|
262635
|
+
// ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
262633
262636
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
262634
262637
|
|
262635
262638
|
// ../../node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
@@ -262740,18 +262743,18 @@ var effectScheduler = {
|
|
262740
262743
|
// ../../node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
262741
262744
|
function useState(defaultValue) {
|
262742
262745
|
return withPointer((pointer) => {
|
262743
|
-
const
|
262746
|
+
const setState = AsyncResource2.bind(function setState(newValue) {
|
262744
262747
|
if (pointer.get() !== newValue) {
|
262745
262748
|
pointer.set(newValue);
|
262746
262749
|
handleChange();
|
262747
262750
|
}
|
262748
|
-
};
|
262751
|
+
});
|
262749
262752
|
if (pointer.initialized) {
|
262750
|
-
return [pointer.get(),
|
262753
|
+
return [pointer.get(), setState];
|
262751
262754
|
}
|
262752
262755
|
const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
262753
262756
|
pointer.set(value);
|
262754
|
-
return [value,
|
262757
|
+
return [value, setState];
|
262755
262758
|
});
|
262756
262759
|
}
|
262757
262760
|
|
@@ -263114,9 +263117,9 @@ function usePrefix({ status = "idle", theme }) {
|
|
263114
263117
|
if (status === "loading") {
|
263115
263118
|
let tickInterval;
|
263116
263119
|
let inc = -1;
|
263117
|
-
const delayTimeout = setTimeout(
|
263120
|
+
const delayTimeout = setTimeout(AsyncResource3.bind(() => {
|
263118
263121
|
setShowLoader(true);
|
263119
|
-
tickInterval = setInterval(
|
263122
|
+
tickInterval = setInterval(AsyncResource3.bind(() => {
|
263120
263123
|
inc = inc + 1;
|
263121
263124
|
setTick(inc % spinner.frames.length);
|
263122
263125
|
}), spinner.interval);
|
@@ -263274,7 +263277,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
263274
263277
|
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
263275
263278
|
var import_mute_stream = __toESM(require_lib(), 1);
|
263276
263279
|
import * as readline2 from "node:readline";
|
263277
|
-
import { AsyncResource as
|
263280
|
+
import { AsyncResource as AsyncResource4 } from "node:async_hooks";
|
263278
263281
|
|
263279
263282
|
// ../../node_modules/signal-exit/dist/mjs/signals.js
|
263280
263283
|
var signals = [];
|
@@ -263618,7 +263621,7 @@ function createPrompt(view) {
|
|
263618
263621
|
rl.input.on("keypress", checkCursorPos);
|
263619
263622
|
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
263620
263623
|
return withHooks(rl, (cycle) => {
|
263621
|
-
const hooksCleanup =
|
263624
|
+
const hooksCleanup = AsyncResource4.bind(() => effectScheduler.clearAll());
|
263622
263625
|
rl.on("close", hooksCleanup);
|
263623
263626
|
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
263624
263627
|
cycle(() => {
|
@@ -275094,20 +275097,764 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
275094
275097
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
275095
275098
|
});
|
275096
275099
|
|
275097
|
-
// ../../node_modules/@inquirer/password/dist/esm/
|
275100
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
275101
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
275102
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
275103
|
+
class AbortPromptError2 extends Error {
|
275104
|
+
name = "AbortPromptError";
|
275105
|
+
message = "Prompt was aborted";
|
275106
|
+
constructor(options) {
|
275107
|
+
super();
|
275108
|
+
this.cause = options?.cause;
|
275109
|
+
}
|
275110
|
+
}
|
275111
|
+
|
275112
|
+
class CancelPromptError2 extends Error {
|
275113
|
+
name = "CancelPromptError";
|
275114
|
+
message = "Prompt was canceled";
|
275115
|
+
}
|
275116
|
+
|
275117
|
+
class ExitPromptError2 extends Error {
|
275118
|
+
name = "ExitPromptError";
|
275119
|
+
}
|
275120
|
+
|
275121
|
+
class HookError2 extends Error {
|
275122
|
+
name = "HookError";
|
275123
|
+
}
|
275124
|
+
|
275125
|
+
class ValidationError2 extends Error {
|
275126
|
+
name = "ValidationError";
|
275127
|
+
}
|
275128
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
275129
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
275130
|
+
|
275131
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
275132
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource5 } from "node:async_hooks";
|
275133
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
275134
|
+
function createStore2(rl) {
|
275135
|
+
const store = {
|
275136
|
+
rl,
|
275137
|
+
hooks: [],
|
275138
|
+
hooksCleanup: [],
|
275139
|
+
hooksEffect: [],
|
275140
|
+
index: 0,
|
275141
|
+
handleChange() {}
|
275142
|
+
};
|
275143
|
+
return store;
|
275144
|
+
}
|
275145
|
+
function withHooks2(rl, cb) {
|
275146
|
+
const store = createStore2(rl);
|
275147
|
+
return hookStorage2.run(store, () => {
|
275148
|
+
function cycle(render) {
|
275149
|
+
store.handleChange = () => {
|
275150
|
+
store.index = 0;
|
275151
|
+
render();
|
275152
|
+
};
|
275153
|
+
store.handleChange();
|
275154
|
+
}
|
275155
|
+
return cb(cycle);
|
275156
|
+
});
|
275157
|
+
}
|
275158
|
+
function getStore2() {
|
275159
|
+
const store = hookStorage2.getStore();
|
275160
|
+
if (!store) {
|
275161
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
275162
|
+
}
|
275163
|
+
return store;
|
275164
|
+
}
|
275165
|
+
function readline3() {
|
275166
|
+
return getStore2().rl;
|
275167
|
+
}
|
275168
|
+
function withUpdates2(fn) {
|
275169
|
+
const wrapped = (...args) => {
|
275170
|
+
const store = getStore2();
|
275171
|
+
let shouldUpdate = false;
|
275172
|
+
const oldHandleChange = store.handleChange;
|
275173
|
+
store.handleChange = () => {
|
275174
|
+
shouldUpdate = true;
|
275175
|
+
};
|
275176
|
+
const returnValue = fn(...args);
|
275177
|
+
if (shouldUpdate) {
|
275178
|
+
oldHandleChange();
|
275179
|
+
}
|
275180
|
+
store.handleChange = oldHandleChange;
|
275181
|
+
return returnValue;
|
275182
|
+
};
|
275183
|
+
return AsyncResource5.bind(wrapped);
|
275184
|
+
}
|
275185
|
+
function withPointer2(cb) {
|
275186
|
+
const store = getStore2();
|
275187
|
+
const { index: index2 } = store;
|
275188
|
+
const pointer = {
|
275189
|
+
get() {
|
275190
|
+
return store.hooks[index2];
|
275191
|
+
},
|
275192
|
+
set(value4) {
|
275193
|
+
store.hooks[index2] = value4;
|
275194
|
+
},
|
275195
|
+
initialized: index2 in store.hooks
|
275196
|
+
};
|
275197
|
+
const returnValue = cb(pointer);
|
275198
|
+
store.index++;
|
275199
|
+
return returnValue;
|
275200
|
+
}
|
275201
|
+
function handleChange2() {
|
275202
|
+
getStore2().handleChange();
|
275203
|
+
}
|
275204
|
+
var effectScheduler2 = {
|
275205
|
+
queue(cb) {
|
275206
|
+
const store = getStore2();
|
275207
|
+
const { index: index2 } = store;
|
275208
|
+
store.hooksEffect.push(() => {
|
275209
|
+
store.hooksCleanup[index2]?.();
|
275210
|
+
const cleanFn = cb(readline3());
|
275211
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
275212
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
275213
|
+
}
|
275214
|
+
store.hooksCleanup[index2] = cleanFn;
|
275215
|
+
});
|
275216
|
+
},
|
275217
|
+
run() {
|
275218
|
+
const store = getStore2();
|
275219
|
+
withUpdates2(() => {
|
275220
|
+
store.hooksEffect.forEach((effect) => {
|
275221
|
+
effect();
|
275222
|
+
});
|
275223
|
+
store.hooksEffect.length = 0;
|
275224
|
+
})();
|
275225
|
+
},
|
275226
|
+
clearAll() {
|
275227
|
+
const store = getStore2();
|
275228
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
275229
|
+
cleanFn?.();
|
275230
|
+
});
|
275231
|
+
store.hooksEffect.length = 0;
|
275232
|
+
store.hooksCleanup.length = 0;
|
275233
|
+
}
|
275234
|
+
};
|
275235
|
+
|
275236
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
275237
|
+
function useState2(defaultValue) {
|
275238
|
+
return withPointer2((pointer) => {
|
275239
|
+
const setFn = (newValue) => {
|
275240
|
+
if (pointer.get() !== newValue) {
|
275241
|
+
pointer.set(newValue);
|
275242
|
+
handleChange2();
|
275243
|
+
}
|
275244
|
+
};
|
275245
|
+
if (pointer.initialized) {
|
275246
|
+
return [pointer.get(), setFn];
|
275247
|
+
}
|
275248
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
275249
|
+
pointer.set(value4);
|
275250
|
+
return [value4, setFn];
|
275251
|
+
});
|
275252
|
+
}
|
275253
|
+
|
275254
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
275255
|
+
function useEffect2(cb, depArray) {
|
275256
|
+
withPointer2((pointer) => {
|
275257
|
+
const oldDeps = pointer.get();
|
275258
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
275259
|
+
if (hasChanged) {
|
275260
|
+
effectScheduler2.queue(cb);
|
275261
|
+
}
|
275262
|
+
pointer.set(depArray);
|
275263
|
+
});
|
275264
|
+
}
|
275265
|
+
|
275266
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
275267
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
275268
|
+
|
275269
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
|
275270
|
+
import process8 from "node:process";
|
275271
|
+
function isUnicodeSupported3() {
|
275272
|
+
if (process8.platform !== "win32") {
|
275273
|
+
return process8.env["TERM"] !== "linux";
|
275274
|
+
}
|
275275
|
+
return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
275276
|
+
}
|
275277
|
+
var common2 = {
|
275278
|
+
circleQuestionMark: "(?)",
|
275279
|
+
questionMarkPrefix: "(?)",
|
275280
|
+
square: "█",
|
275281
|
+
squareDarkShade: "▓",
|
275282
|
+
squareMediumShade: "▒",
|
275283
|
+
squareLightShade: "░",
|
275284
|
+
squareTop: "▀",
|
275285
|
+
squareBottom: "▄",
|
275286
|
+
squareLeft: "▌",
|
275287
|
+
squareRight: "▐",
|
275288
|
+
squareCenter: "■",
|
275289
|
+
bullet: "●",
|
275290
|
+
dot: "․",
|
275291
|
+
ellipsis: "…",
|
275292
|
+
pointerSmall: "›",
|
275293
|
+
triangleUp: "▲",
|
275294
|
+
triangleUpSmall: "▴",
|
275295
|
+
triangleDown: "▼",
|
275296
|
+
triangleDownSmall: "▾",
|
275297
|
+
triangleLeftSmall: "◂",
|
275298
|
+
triangleRightSmall: "▸",
|
275299
|
+
home: "⌂",
|
275300
|
+
heart: "♥",
|
275301
|
+
musicNote: "♪",
|
275302
|
+
musicNoteBeamed: "♫",
|
275303
|
+
arrowUp: "↑",
|
275304
|
+
arrowDown: "↓",
|
275305
|
+
arrowLeft: "←",
|
275306
|
+
arrowRight: "→",
|
275307
|
+
arrowLeftRight: "↔",
|
275308
|
+
arrowUpDown: "↕",
|
275309
|
+
almostEqual: "≈",
|
275310
|
+
notEqual: "≠",
|
275311
|
+
lessOrEqual: "≤",
|
275312
|
+
greaterOrEqual: "≥",
|
275313
|
+
identical: "≡",
|
275314
|
+
infinity: "∞",
|
275315
|
+
subscriptZero: "₀",
|
275316
|
+
subscriptOne: "₁",
|
275317
|
+
subscriptTwo: "₂",
|
275318
|
+
subscriptThree: "₃",
|
275319
|
+
subscriptFour: "₄",
|
275320
|
+
subscriptFive: "₅",
|
275321
|
+
subscriptSix: "₆",
|
275322
|
+
subscriptSeven: "₇",
|
275323
|
+
subscriptEight: "₈",
|
275324
|
+
subscriptNine: "₉",
|
275325
|
+
oneHalf: "½",
|
275326
|
+
oneThird: "⅓",
|
275327
|
+
oneQuarter: "¼",
|
275328
|
+
oneFifth: "⅕",
|
275329
|
+
oneSixth: "⅙",
|
275330
|
+
oneEighth: "⅛",
|
275331
|
+
twoThirds: "⅔",
|
275332
|
+
twoFifths: "⅖",
|
275333
|
+
threeQuarters: "¾",
|
275334
|
+
threeFifths: "⅗",
|
275335
|
+
threeEighths: "⅜",
|
275336
|
+
fourFifths: "⅘",
|
275337
|
+
fiveSixths: "⅚",
|
275338
|
+
fiveEighths: "⅝",
|
275339
|
+
sevenEighths: "⅞",
|
275340
|
+
line: "─",
|
275341
|
+
lineBold: "━",
|
275342
|
+
lineDouble: "═",
|
275343
|
+
lineDashed0: "┄",
|
275344
|
+
lineDashed1: "┅",
|
275345
|
+
lineDashed2: "┈",
|
275346
|
+
lineDashed3: "┉",
|
275347
|
+
lineDashed4: "╌",
|
275348
|
+
lineDashed5: "╍",
|
275349
|
+
lineDashed6: "╴",
|
275350
|
+
lineDashed7: "╶",
|
275351
|
+
lineDashed8: "╸",
|
275352
|
+
lineDashed9: "╺",
|
275353
|
+
lineDashed10: "╼",
|
275354
|
+
lineDashed11: "╾",
|
275355
|
+
lineDashed12: "−",
|
275356
|
+
lineDashed13: "–",
|
275357
|
+
lineDashed14: "‐",
|
275358
|
+
lineDashed15: "⁃",
|
275359
|
+
lineVertical: "│",
|
275360
|
+
lineVerticalBold: "┃",
|
275361
|
+
lineVerticalDouble: "║",
|
275362
|
+
lineVerticalDashed0: "┆",
|
275363
|
+
lineVerticalDashed1: "┇",
|
275364
|
+
lineVerticalDashed2: "┊",
|
275365
|
+
lineVerticalDashed3: "┋",
|
275366
|
+
lineVerticalDashed4: "╎",
|
275367
|
+
lineVerticalDashed5: "╏",
|
275368
|
+
lineVerticalDashed6: "╵",
|
275369
|
+
lineVerticalDashed7: "╷",
|
275370
|
+
lineVerticalDashed8: "╹",
|
275371
|
+
lineVerticalDashed9: "╻",
|
275372
|
+
lineVerticalDashed10: "╽",
|
275373
|
+
lineVerticalDashed11: "╿",
|
275374
|
+
lineDownLeft: "┐",
|
275375
|
+
lineDownLeftArc: "╮",
|
275376
|
+
lineDownBoldLeftBold: "┓",
|
275377
|
+
lineDownBoldLeft: "┒",
|
275378
|
+
lineDownLeftBold: "┑",
|
275379
|
+
lineDownDoubleLeftDouble: "╗",
|
275380
|
+
lineDownDoubleLeft: "╖",
|
275381
|
+
lineDownLeftDouble: "╕",
|
275382
|
+
lineDownRight: "┌",
|
275383
|
+
lineDownRightArc: "╭",
|
275384
|
+
lineDownBoldRightBold: "┏",
|
275385
|
+
lineDownBoldRight: "┎",
|
275386
|
+
lineDownRightBold: "┍",
|
275387
|
+
lineDownDoubleRightDouble: "╔",
|
275388
|
+
lineDownDoubleRight: "╓",
|
275389
|
+
lineDownRightDouble: "╒",
|
275390
|
+
lineUpLeft: "┘",
|
275391
|
+
lineUpLeftArc: "╯",
|
275392
|
+
lineUpBoldLeftBold: "┛",
|
275393
|
+
lineUpBoldLeft: "┚",
|
275394
|
+
lineUpLeftBold: "┙",
|
275395
|
+
lineUpDoubleLeftDouble: "╝",
|
275396
|
+
lineUpDoubleLeft: "╜",
|
275397
|
+
lineUpLeftDouble: "╛",
|
275398
|
+
lineUpRight: "└",
|
275399
|
+
lineUpRightArc: "╰",
|
275400
|
+
lineUpBoldRightBold: "┗",
|
275401
|
+
lineUpBoldRight: "┖",
|
275402
|
+
lineUpRightBold: "┕",
|
275403
|
+
lineUpDoubleRightDouble: "╚",
|
275404
|
+
lineUpDoubleRight: "╙",
|
275405
|
+
lineUpRightDouble: "╘",
|
275406
|
+
lineUpDownLeft: "┤",
|
275407
|
+
lineUpBoldDownBoldLeftBold: "┫",
|
275408
|
+
lineUpBoldDownBoldLeft: "┨",
|
275409
|
+
lineUpDownLeftBold: "┥",
|
275410
|
+
lineUpBoldDownLeftBold: "┩",
|
275411
|
+
lineUpDownBoldLeftBold: "┪",
|
275412
|
+
lineUpDownBoldLeft: "┧",
|
275413
|
+
lineUpBoldDownLeft: "┦",
|
275414
|
+
lineUpDoubleDownDoubleLeftDouble: "╣",
|
275415
|
+
lineUpDoubleDownDoubleLeft: "╢",
|
275416
|
+
lineUpDownLeftDouble: "╡",
|
275417
|
+
lineUpDownRight: "├",
|
275418
|
+
lineUpBoldDownBoldRightBold: "┣",
|
275419
|
+
lineUpBoldDownBoldRight: "┠",
|
275420
|
+
lineUpDownRightBold: "┝",
|
275421
|
+
lineUpBoldDownRightBold: "┡",
|
275422
|
+
lineUpDownBoldRightBold: "┢",
|
275423
|
+
lineUpDownBoldRight: "┟",
|
275424
|
+
lineUpBoldDownRight: "┞",
|
275425
|
+
lineUpDoubleDownDoubleRightDouble: "╠",
|
275426
|
+
lineUpDoubleDownDoubleRight: "╟",
|
275427
|
+
lineUpDownRightDouble: "╞",
|
275428
|
+
lineDownLeftRight: "┬",
|
275429
|
+
lineDownBoldLeftBoldRightBold: "┳",
|
275430
|
+
lineDownLeftBoldRightBold: "┯",
|
275431
|
+
lineDownBoldLeftRight: "┰",
|
275432
|
+
lineDownBoldLeftBoldRight: "┱",
|
275433
|
+
lineDownBoldLeftRightBold: "┲",
|
275434
|
+
lineDownLeftRightBold: "┮",
|
275435
|
+
lineDownLeftBoldRight: "┭",
|
275436
|
+
lineDownDoubleLeftDoubleRightDouble: "╦",
|
275437
|
+
lineDownDoubleLeftRight: "╥",
|
275438
|
+
lineDownLeftDoubleRightDouble: "╤",
|
275439
|
+
lineUpLeftRight: "┴",
|
275440
|
+
lineUpBoldLeftBoldRightBold: "┻",
|
275441
|
+
lineUpLeftBoldRightBold: "┷",
|
275442
|
+
lineUpBoldLeftRight: "┸",
|
275443
|
+
lineUpBoldLeftBoldRight: "┹",
|
275444
|
+
lineUpBoldLeftRightBold: "┺",
|
275445
|
+
lineUpLeftRightBold: "┶",
|
275446
|
+
lineUpLeftBoldRight: "┵",
|
275447
|
+
lineUpDoubleLeftDoubleRightDouble: "╩",
|
275448
|
+
lineUpDoubleLeftRight: "╨",
|
275449
|
+
lineUpLeftDoubleRightDouble: "╧",
|
275450
|
+
lineUpDownLeftRight: "┼",
|
275451
|
+
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
275452
|
+
lineUpDownBoldLeftBoldRightBold: "╈",
|
275453
|
+
lineUpBoldDownLeftBoldRightBold: "╇",
|
275454
|
+
lineUpBoldDownBoldLeftRightBold: "╊",
|
275455
|
+
lineUpBoldDownBoldLeftBoldRight: "╉",
|
275456
|
+
lineUpBoldDownLeftRight: "╀",
|
275457
|
+
lineUpDownBoldLeftRight: "╁",
|
275458
|
+
lineUpDownLeftBoldRight: "┽",
|
275459
|
+
lineUpDownLeftRightBold: "┾",
|
275460
|
+
lineUpBoldDownBoldLeftRight: "╂",
|
275461
|
+
lineUpDownLeftBoldRightBold: "┿",
|
275462
|
+
lineUpBoldDownLeftBoldRight: "╃",
|
275463
|
+
lineUpBoldDownLeftRightBold: "╄",
|
275464
|
+
lineUpDownBoldLeftBoldRight: "╅",
|
275465
|
+
lineUpDownBoldLeftRightBold: "╆",
|
275466
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
275467
|
+
lineUpDoubleDownDoubleLeftRight: "╫",
|
275468
|
+
lineUpDownLeftDoubleRightDouble: "╪",
|
275469
|
+
lineCross: "╳",
|
275470
|
+
lineBackslash: "╲",
|
275471
|
+
lineSlash: "╱"
|
275472
|
+
};
|
275473
|
+
var specialMainSymbols2 = {
|
275474
|
+
tick: "✔",
|
275475
|
+
info: "ℹ",
|
275476
|
+
warning: "⚠",
|
275477
|
+
cross: "✘",
|
275478
|
+
squareSmall: "◻",
|
275479
|
+
squareSmallFilled: "◼",
|
275480
|
+
circle: "◯",
|
275481
|
+
circleFilled: "◉",
|
275482
|
+
circleDotted: "◌",
|
275483
|
+
circleDouble: "◎",
|
275484
|
+
circleCircle: "ⓞ",
|
275485
|
+
circleCross: "ⓧ",
|
275486
|
+
circlePipe: "Ⓘ",
|
275487
|
+
radioOn: "◉",
|
275488
|
+
radioOff: "◯",
|
275489
|
+
checkboxOn: "☒",
|
275490
|
+
checkboxOff: "☐",
|
275491
|
+
checkboxCircleOn: "ⓧ",
|
275492
|
+
checkboxCircleOff: "Ⓘ",
|
275493
|
+
pointer: "❯",
|
275494
|
+
triangleUpOutline: "△",
|
275495
|
+
triangleLeft: "◀",
|
275496
|
+
triangleRight: "▶",
|
275497
|
+
lozenge: "◆",
|
275498
|
+
lozengeOutline: "◇",
|
275499
|
+
hamburger: "☰",
|
275500
|
+
smiley: "㋡",
|
275501
|
+
mustache: "෴",
|
275502
|
+
star: "★",
|
275503
|
+
play: "▶",
|
275504
|
+
nodejs: "⬢",
|
275505
|
+
oneSeventh: "⅐",
|
275506
|
+
oneNinth: "⅑",
|
275507
|
+
oneTenth: "⅒"
|
275508
|
+
};
|
275509
|
+
var specialFallbackSymbols2 = {
|
275510
|
+
tick: "√",
|
275511
|
+
info: "i",
|
275512
|
+
warning: "‼",
|
275513
|
+
cross: "×",
|
275514
|
+
squareSmall: "□",
|
275515
|
+
squareSmallFilled: "■",
|
275516
|
+
circle: "( )",
|
275517
|
+
circleFilled: "(*)",
|
275518
|
+
circleDotted: "( )",
|
275519
|
+
circleDouble: "( )",
|
275520
|
+
circleCircle: "(○)",
|
275521
|
+
circleCross: "(×)",
|
275522
|
+
circlePipe: "(│)",
|
275523
|
+
radioOn: "(*)",
|
275524
|
+
radioOff: "( )",
|
275525
|
+
checkboxOn: "[×]",
|
275526
|
+
checkboxOff: "[ ]",
|
275527
|
+
checkboxCircleOn: "(×)",
|
275528
|
+
checkboxCircleOff: "( )",
|
275529
|
+
pointer: ">",
|
275530
|
+
triangleUpOutline: "∆",
|
275531
|
+
triangleLeft: "◄",
|
275532
|
+
triangleRight: "►",
|
275533
|
+
lozenge: "♦",
|
275534
|
+
lozengeOutline: "◊",
|
275535
|
+
hamburger: "≡",
|
275536
|
+
smiley: "☺",
|
275537
|
+
mustache: "┌─┐",
|
275538
|
+
star: "✶",
|
275539
|
+
play: "►",
|
275540
|
+
nodejs: "♦",
|
275541
|
+
oneSeventh: "1/7",
|
275542
|
+
oneNinth: "1/9",
|
275543
|
+
oneTenth: "1/10"
|
275544
|
+
};
|
275545
|
+
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
275546
|
+
var fallbackSymbols2 = {
|
275547
|
+
...common2,
|
275548
|
+
...specialFallbackSymbols2
|
275549
|
+
};
|
275550
|
+
var shouldUseMain2 = isUnicodeSupported3();
|
275551
|
+
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
275552
|
+
var esm_default5 = figures2;
|
275553
|
+
var replacements2 = Object.entries(specialMainSymbols2);
|
275554
|
+
|
275555
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
275556
|
+
var defaultTheme2 = {
|
275557
|
+
prefix: {
|
275558
|
+
idle: import_yoctocolors_cjs4.default.blue("?"),
|
275559
|
+
done: import_yoctocolors_cjs4.default.green(esm_default5.tick)
|
275560
|
+
},
|
275561
|
+
spinner: {
|
275562
|
+
interval: 80,
|
275563
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
275564
|
+
},
|
275565
|
+
style: {
|
275566
|
+
answer: import_yoctocolors_cjs4.default.cyan,
|
275567
|
+
message: import_yoctocolors_cjs4.default.bold,
|
275568
|
+
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
275569
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
275570
|
+
help: import_yoctocolors_cjs4.default.dim,
|
275571
|
+
highlight: import_yoctocolors_cjs4.default.cyan,
|
275572
|
+
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
275573
|
+
}
|
275574
|
+
};
|
275575
|
+
|
275576
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
275577
|
+
function isPlainObject4(value4) {
|
275578
|
+
if (typeof value4 !== "object" || value4 === null)
|
275579
|
+
return false;
|
275580
|
+
let proto = value4;
|
275581
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
275582
|
+
proto = Object.getPrototypeOf(proto);
|
275583
|
+
}
|
275584
|
+
return Object.getPrototypeOf(value4) === proto;
|
275585
|
+
}
|
275586
|
+
function deepMerge3(...objects) {
|
275587
|
+
const output = {};
|
275588
|
+
for (const obj of objects) {
|
275589
|
+
for (const [key2, value4] of Object.entries(obj)) {
|
275590
|
+
const prevValue = output[key2];
|
275591
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge3(prevValue, value4) : value4;
|
275592
|
+
}
|
275593
|
+
}
|
275594
|
+
return output;
|
275595
|
+
}
|
275596
|
+
function makeTheme2(...themes) {
|
275597
|
+
const themesToMerge = [
|
275598
|
+
defaultTheme2,
|
275599
|
+
...themes.filter((theme) => theme != null)
|
275600
|
+
];
|
275601
|
+
return deepMerge3(...themesToMerge);
|
275602
|
+
}
|
275603
|
+
|
275604
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
275605
|
+
function usePrefix2({ status = "idle", theme }) {
|
275606
|
+
const [showLoader, setShowLoader] = useState2(false);
|
275607
|
+
const [tick, setTick] = useState2(0);
|
275608
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
275609
|
+
useEffect2(() => {
|
275610
|
+
if (status === "loading") {
|
275611
|
+
let tickInterval;
|
275612
|
+
let inc = -1;
|
275613
|
+
const delayTimeout = setTimeout(AsyncResource6.bind(() => {
|
275614
|
+
setShowLoader(true);
|
275615
|
+
tickInterval = setInterval(AsyncResource6.bind(() => {
|
275616
|
+
inc = inc + 1;
|
275617
|
+
setTick(inc % spinner2.frames.length);
|
275618
|
+
}), spinner2.interval);
|
275619
|
+
}), 300);
|
275620
|
+
return () => {
|
275621
|
+
clearTimeout(delayTimeout);
|
275622
|
+
clearInterval(tickInterval);
|
275623
|
+
};
|
275624
|
+
} else {
|
275625
|
+
setShowLoader(false);
|
275626
|
+
}
|
275627
|
+
}, [status]);
|
275628
|
+
if (showLoader) {
|
275629
|
+
return spinner2.frames[tick];
|
275630
|
+
}
|
275631
|
+
const iconName = status === "loading" ? "idle" : status;
|
275632
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
275633
|
+
}
|
275634
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
275635
|
+
function useRef2(val) {
|
275636
|
+
return useState2({ current: val })[0];
|
275637
|
+
}
|
275638
|
+
|
275639
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
275640
|
+
function useKeypress2(userHandler) {
|
275641
|
+
const signal = useRef2(userHandler);
|
275642
|
+
signal.current = userHandler;
|
275643
|
+
useEffect2((rl) => {
|
275644
|
+
let ignore = false;
|
275645
|
+
const handler = withUpdates2((_input, event) => {
|
275646
|
+
if (ignore)
|
275647
|
+
return;
|
275648
|
+
signal.current(event, rl);
|
275649
|
+
});
|
275650
|
+
rl.input.on("keypress", handler);
|
275651
|
+
return () => {
|
275652
|
+
ignore = true;
|
275653
|
+
rl.input.removeListener("keypress", handler);
|
275654
|
+
};
|
275655
|
+
}, []);
|
275656
|
+
}
|
275657
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
275658
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
275659
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
275660
|
+
function breakLines2(content, width) {
|
275661
|
+
return content.split(`
|
275662
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
275663
|
+
`).map((str) => str.trimEnd())).join(`
|
275664
|
+
`);
|
275665
|
+
}
|
275666
|
+
function readlineWidth2() {
|
275667
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
275668
|
+
}
|
275669
|
+
|
275670
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
275671
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
275672
|
+
import * as readline4 from "node:readline";
|
275673
|
+
import { AsyncResource as AsyncResource7 } from "node:async_hooks";
|
275674
|
+
|
275675
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
275098
275676
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
275099
|
-
|
275677
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
275678
|
+
var height2 = (content) => content.split(`
|
275679
|
+
`).length;
|
275680
|
+
var lastLine2 = (content) => content.split(`
|
275681
|
+
`).pop() ?? "";
|
275682
|
+
function cursorDown2(n6) {
|
275683
|
+
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
275684
|
+
}
|
275685
|
+
|
275686
|
+
class ScreenManager2 {
|
275687
|
+
height = 0;
|
275688
|
+
extraLinesUnderPrompt = 0;
|
275689
|
+
cursorPos;
|
275690
|
+
rl;
|
275691
|
+
constructor(rl) {
|
275692
|
+
this.rl = rl;
|
275693
|
+
this.cursorPos = rl.getCursorPos();
|
275694
|
+
}
|
275695
|
+
write(content) {
|
275696
|
+
this.rl.output.unmute();
|
275697
|
+
this.rl.output.write(content);
|
275698
|
+
this.rl.output.mute();
|
275699
|
+
}
|
275700
|
+
render(content, bottomContent = "") {
|
275701
|
+
const promptLine = lastLine2(content);
|
275702
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
275703
|
+
let prompt = rawPromptLine;
|
275704
|
+
if (this.rl.line.length > 0) {
|
275705
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
275706
|
+
}
|
275707
|
+
this.rl.setPrompt(prompt);
|
275708
|
+
this.cursorPos = this.rl.getCursorPos();
|
275709
|
+
const width = readlineWidth2();
|
275710
|
+
content = breakLines2(content, width);
|
275711
|
+
bottomContent = breakLines2(bottomContent, width);
|
275712
|
+
if (rawPromptLine.length % width === 0) {
|
275713
|
+
content += `
|
275714
|
+
`;
|
275715
|
+
}
|
275716
|
+
let output = content + (bottomContent ? `
|
275717
|
+
` + bottomContent : "");
|
275718
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
275719
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
275720
|
+
if (bottomContentHeight > 0)
|
275721
|
+
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
275722
|
+
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
275723
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
275724
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
275725
|
+
this.height = height2(output);
|
275726
|
+
}
|
275727
|
+
checkCursorPos() {
|
275728
|
+
const cursorPos = this.rl.getCursorPos();
|
275729
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
275730
|
+
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
275731
|
+
this.cursorPos = cursorPos;
|
275732
|
+
}
|
275733
|
+
}
|
275734
|
+
done({ clearContent }) {
|
275735
|
+
this.rl.setPrompt("");
|
275736
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
275737
|
+
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
275738
|
+
`;
|
275739
|
+
output += import_ansi_escapes3.default.cursorShow;
|
275740
|
+
this.write(output);
|
275741
|
+
this.rl.close();
|
275742
|
+
}
|
275743
|
+
}
|
275744
|
+
|
275745
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
275746
|
+
class PromisePolyfill2 extends Promise {
|
275747
|
+
static withResolver() {
|
275748
|
+
let resolve6;
|
275749
|
+
let reject;
|
275750
|
+
const promise2 = new Promise((res, rej) => {
|
275751
|
+
resolve6 = res;
|
275752
|
+
reject = rej;
|
275753
|
+
});
|
275754
|
+
return { promise: promise2, resolve: resolve6, reject };
|
275755
|
+
}
|
275756
|
+
}
|
275757
|
+
|
275758
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
275759
|
+
function getCallSites2() {
|
275760
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
275761
|
+
let result = [];
|
275762
|
+
try {
|
275763
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
275764
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
275765
|
+
result = callSitesWithoutCurrent;
|
275766
|
+
return callSitesWithoutCurrent;
|
275767
|
+
};
|
275768
|
+
new Error().stack;
|
275769
|
+
} catch {
|
275770
|
+
return result;
|
275771
|
+
}
|
275772
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
275773
|
+
return result;
|
275774
|
+
}
|
275775
|
+
function createPrompt2(view) {
|
275776
|
+
const callSites = getCallSites2();
|
275777
|
+
const prompt = (config3, context = {}) => {
|
275778
|
+
const { input = process.stdin, signal } = context;
|
275779
|
+
const cleanups = new Set;
|
275780
|
+
const output = new import_mute_stream2.default;
|
275781
|
+
output.pipe(context.output ?? process.stdout);
|
275782
|
+
const rl = readline4.createInterface({
|
275783
|
+
terminal: true,
|
275784
|
+
input,
|
275785
|
+
output
|
275786
|
+
});
|
275787
|
+
const screen = new ScreenManager2(rl);
|
275788
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
275789
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
275790
|
+
if (signal) {
|
275791
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
275792
|
+
if (signal.aborted) {
|
275793
|
+
abort();
|
275794
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
275795
|
+
}
|
275796
|
+
signal.addEventListener("abort", abort);
|
275797
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
275798
|
+
}
|
275799
|
+
cleanups.add(onExit((code2, signal2) => {
|
275800
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
275801
|
+
}));
|
275802
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
275803
|
+
rl.on("SIGINT", sigint);
|
275804
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
275805
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
275806
|
+
rl.input.on("keypress", checkCursorPos);
|
275807
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
275808
|
+
return withHooks2(rl, (cycle) => {
|
275809
|
+
const hooksCleanup = AsyncResource7.bind(() => effectScheduler2.clearAll());
|
275810
|
+
rl.on("close", hooksCleanup);
|
275811
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
275812
|
+
cycle(() => {
|
275813
|
+
try {
|
275814
|
+
const nextView = view(config3, (value4) => {
|
275815
|
+
setImmediate(() => resolve6(value4));
|
275816
|
+
});
|
275817
|
+
if (nextView === undefined) {
|
275818
|
+
const callerFilename = callSites[1]?.getFileName();
|
275819
|
+
throw new Error(`Prompt functions must return a string.
|
275820
|
+
at ${callerFilename}`);
|
275821
|
+
}
|
275822
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
275823
|
+
screen.render(content, bottomContent);
|
275824
|
+
effectScheduler2.run();
|
275825
|
+
} catch (error39) {
|
275826
|
+
reject(error39);
|
275827
|
+
}
|
275828
|
+
});
|
275829
|
+
return Object.assign(promise2.then((answer) => {
|
275830
|
+
effectScheduler2.clearAll();
|
275831
|
+
return answer;
|
275832
|
+
}, (error39) => {
|
275833
|
+
effectScheduler2.clearAll();
|
275834
|
+
throw error39;
|
275835
|
+
}).finally(() => {
|
275836
|
+
cleanups.forEach((cleanup) => cleanup());
|
275837
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
275838
|
+
output.end();
|
275839
|
+
}).then(() => promise2), { cancel: cancel3 });
|
275840
|
+
});
|
275841
|
+
};
|
275842
|
+
return prompt;
|
275843
|
+
}
|
275844
|
+
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
275845
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
275846
|
+
var esm_default6 = createPrompt2((config3, done) => {
|
275100
275847
|
const { validate: validate5 = () => true } = config3;
|
275101
|
-
const theme =
|
275102
|
-
const [status, setStatus] =
|
275103
|
-
const [errorMsg, setError] =
|
275104
|
-
const [value4, setValue] =
|
275105
|
-
const prefix =
|
275106
|
-
|
275848
|
+
const theme = makeTheme2(config3.theme);
|
275849
|
+
const [status, setStatus] = useState2("idle");
|
275850
|
+
const [errorMsg, setError] = useState2();
|
275851
|
+
const [value4, setValue] = useState2("");
|
275852
|
+
const prefix = usePrefix2({ status, theme });
|
275853
|
+
useKeypress2(async (key3, rl) => {
|
275107
275854
|
if (status !== "idle") {
|
275108
275855
|
return;
|
275109
275856
|
}
|
275110
|
-
if (
|
275857
|
+
if (isEnterKey2(key3)) {
|
275111
275858
|
const answer = value4;
|
275112
275859
|
setStatus("loading");
|
275113
275860
|
const isValid = await validate5(answer);
|
@@ -275132,7 +275879,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
275132
275879
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
275133
275880
|
formattedValue = maskChar.repeat(value4.length);
|
275134
275881
|
} else if (status !== "done") {
|
275135
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
275882
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
|
275136
275883
|
}
|
275137
275884
|
if (status === "done") {
|
275138
275885
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -275230,7 +275977,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
275230
275977
|
return aat;
|
275231
275978
|
} catch (error39) {}
|
275232
275979
|
}
|
275233
|
-
return
|
275980
|
+
return esm_default6({
|
275234
275981
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
275235
275982
|
validate(value4) {
|
275236
275983
|
try {
|
@@ -275692,7 +276439,7 @@ async function serviceSecretPrompt({
|
|
275692
276439
|
return defaultSecret;
|
275693
276440
|
}
|
275694
276441
|
}
|
275695
|
-
const serviceSecret = await
|
276442
|
+
const serviceSecret = await esm_default6({
|
275696
276443
|
message
|
275697
276444
|
});
|
275698
276445
|
return serviceSecret || undefined;
|
@@ -276738,7 +277485,7 @@ var basename2 = function(p5, extension) {
|
|
276738
277485
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
276739
277486
|
};
|
276740
277487
|
// ../../node_modules/defu/dist/defu.mjs
|
276741
|
-
function
|
277488
|
+
function isPlainObject5(value4) {
|
276742
277489
|
if (value4 === null || typeof value4 !== "object") {
|
276743
277490
|
return false;
|
276744
277491
|
}
|
@@ -276755,27 +277502,27 @@ function isPlainObject4(value4) {
|
|
276755
277502
|
return true;
|
276756
277503
|
}
|
276757
277504
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
276758
|
-
if (!
|
277505
|
+
if (!isPlainObject5(defaults2)) {
|
276759
277506
|
return _defu(baseObject, {}, namespace, merger);
|
276760
277507
|
}
|
276761
277508
|
const object2 = Object.assign({}, defaults2);
|
276762
|
-
for (const
|
276763
|
-
if (
|
277509
|
+
for (const key3 in baseObject) {
|
277510
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
276764
277511
|
continue;
|
276765
277512
|
}
|
276766
|
-
const value4 = baseObject[
|
277513
|
+
const value4 = baseObject[key3];
|
276767
277514
|
if (value4 === null || value4 === undefined) {
|
276768
277515
|
continue;
|
276769
277516
|
}
|
276770
|
-
if (merger && merger(object2,
|
277517
|
+
if (merger && merger(object2, key3, value4, namespace)) {
|
276771
277518
|
continue;
|
276772
277519
|
}
|
276773
|
-
if (Array.isArray(value4) && Array.isArray(object2[
|
276774
|
-
object2[
|
276775
|
-
} else if (
|
276776
|
-
object2[
|
277520
|
+
if (Array.isArray(value4) && Array.isArray(object2[key3])) {
|
277521
|
+
object2[key3] = [...value4, ...object2[key3]];
|
277522
|
+
} else if (isPlainObject5(value4) && isPlainObject5(object2[key3])) {
|
277523
|
+
object2[key3] = _defu(value4, object2[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
276777
277524
|
} else {
|
276778
|
-
object2[
|
277525
|
+
object2[key3] = value4;
|
276779
277526
|
}
|
276780
277527
|
}
|
276781
277528
|
return object2;
|
@@ -276784,15 +277531,15 @@ function createDefu(merger) {
|
|
276784
277531
|
return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
|
276785
277532
|
}
|
276786
277533
|
var defu = createDefu();
|
276787
|
-
var defuFn = createDefu((object2,
|
276788
|
-
if (object2[
|
276789
|
-
object2[
|
277534
|
+
var defuFn = createDefu((object2, key3, currentValue) => {
|
277535
|
+
if (object2[key3] !== undefined && typeof currentValue === "function") {
|
277536
|
+
object2[key3] = currentValue(object2[key3]);
|
276790
277537
|
return true;
|
276791
277538
|
}
|
276792
277539
|
});
|
276793
|
-
var defuArrayFn = createDefu((object2,
|
276794
|
-
if (Array.isArray(object2[
|
276795
|
-
object2[
|
277540
|
+
var defuArrayFn = createDefu((object2, key3, currentValue) => {
|
277541
|
+
if (Array.isArray(object2[key3]) && typeof currentValue === "function") {
|
277542
|
+
object2[key3] = currentValue(object2[key3]);
|
276796
277543
|
return true;
|
276797
277544
|
}
|
276798
277545
|
});
|
@@ -280002,11 +280749,11 @@ function cacheDirectory() {
|
|
280002
280749
|
}
|
280003
280750
|
function normalizeHeaders(headers = {}) {
|
280004
280751
|
const normalized = {};
|
280005
|
-
for (const [
|
280752
|
+
for (const [key3, value4] of Object.entries(headers)) {
|
280006
280753
|
if (!value4) {
|
280007
280754
|
continue;
|
280008
280755
|
}
|
280009
|
-
normalized[
|
280756
|
+
normalized[key3.toLowerCase()] = value4;
|
280010
280757
|
}
|
280011
280758
|
return normalized;
|
280012
280759
|
}
|
@@ -280526,7 +281273,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
280526
281273
|
return defaultPersonalAccessToken;
|
280527
281274
|
}
|
280528
281275
|
}
|
280529
|
-
return
|
281276
|
+
return esm_default6({
|
280530
281277
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
280531
281278
|
validate(value4) {
|
280532
281279
|
try {
|
@@ -280724,7 +281471,7 @@ function pincodeVerificationResponseCommand() {
|
|
280724
281471
|
nodeId: selectedBlockchainNode.id
|
280725
281472
|
});
|
280726
281473
|
const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
|
280727
|
-
const pincode = await
|
281474
|
+
const pincode = await esm_default6({
|
280728
281475
|
message: "Enter your pincode",
|
280729
281476
|
validate(value4) {
|
280730
281477
|
if (!value4.trim()) {
|
@@ -282697,7 +283444,7 @@ function jsonOutput(data) {
|
|
282697
283444
|
var composer = require_composer();
|
282698
283445
|
var Document = require_Document();
|
282699
283446
|
var Schema = require_Schema();
|
282700
|
-
var
|
283447
|
+
var errors5 = require_errors3();
|
282701
283448
|
var Alias = require_Alias();
|
282702
283449
|
var identity2 = require_identity();
|
282703
283450
|
var Pair = require_Pair();
|
@@ -282713,9 +283460,9 @@ var visit2 = require_visit();
|
|
282713
283460
|
var $Composer = composer.Composer;
|
282714
283461
|
var $Document = Document.Document;
|
282715
283462
|
var $Schema = Schema.Schema;
|
282716
|
-
var $YAMLError =
|
282717
|
-
var $YAMLParseError =
|
282718
|
-
var $YAMLWarning =
|
283463
|
+
var $YAMLError = errors5.YAMLError;
|
283464
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
283465
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
282719
283466
|
var $Alias = Alias.Alias;
|
282720
283467
|
var $isAlias = identity2.isAlias;
|
282721
283468
|
var $isCollection = identity2.isCollection;
|
@@ -283081,7 +283828,7 @@ async function getServicesAndMapResults({
|
|
283081
283828
|
const application = await settlemint.application.read(applicationUniqueName);
|
283082
283829
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
283083
283830
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
283084
|
-
const [_6, labels] = Object.entries(LABELS_MAP).find(([
|
283831
|
+
const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
|
283085
283832
|
null,
|
283086
283833
|
{ plural: serviceType }
|
283087
283834
|
];
|
@@ -283322,11 +284069,11 @@ function createCommand4() {
|
|
283322
284069
|
|
283323
284070
|
// src/utils/commands/passthrough-options.ts
|
283324
284071
|
function mapPassthroughOptions(options, command) {
|
283325
|
-
const optionArgs = Object.entries(options).map(([
|
284072
|
+
const optionArgs = Object.entries(options).map(([key3, value4]) => {
|
283326
284073
|
if (value4 === true) {
|
283327
|
-
return `--${
|
284074
|
+
return `--${key3}`;
|
283328
284075
|
}
|
283329
|
-
return `--${
|
284076
|
+
return `--${key3}=${value4}`;
|
283330
284077
|
});
|
283331
284078
|
return [...optionArgs, ...command.args];
|
283332
284079
|
}
|
@@ -284458,4 +285205,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
284458
285205
|
// src/cli.ts
|
284459
285206
|
sdkCliCommand();
|
284460
285207
|
|
284461
|
-
//# debugId=
|
285208
|
+
//# debugId=7667CA8B5A4D378164756E2164756E21
|