@settlemint/sdk-cli 2.0.0-maina9f518e2 → 2.0.0-pr06b24a6b
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 -235
- package/dist/cli.js.map +17 -3
- package/package.json +4 -4
package/dist/cli.js
CHANGED
@@ -232122,8 +232122,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
232122
232122
|
function fetch2(input, options) {
|
232123
232123
|
return nodeFetch.fetch(input, options);
|
232124
232124
|
}
|
232125
|
-
for (const
|
232126
|
-
fetch2[
|
232125
|
+
for (const key3 in nodeFetch) {
|
232126
|
+
fetch2[key3] = nodeFetch[key3];
|
232127
232127
|
}
|
232128
232128
|
module.exports = fetch2;
|
232129
232129
|
});
|
@@ -232216,11 +232216,11 @@ var require_proxy = __commonJS((exports) => {
|
|
232216
232216
|
return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
|
232217
232217
|
}
|
232218
232218
|
e10(requireSymbols$4, "requireSymbols$4");
|
232219
|
-
var
|
232219
|
+
var errors3;
|
232220
232220
|
var hasRequiredErrors;
|
232221
232221
|
function requireErrors() {
|
232222
232222
|
if (hasRequiredErrors)
|
232223
|
-
return
|
232223
|
+
return errors3;
|
232224
232224
|
hasRequiredErrors = 1;
|
232225
232225
|
|
232226
232226
|
class A5 extends Error {
|
@@ -232429,7 +232429,7 @@ var require_proxy = __commonJS((exports) => {
|
|
232429
232429
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
232430
232430
|
}
|
232431
232431
|
}
|
232432
|
-
return
|
232432
|
+
return errors3 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N7, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h8 }, errors3;
|
232433
232433
|
}
|
232434
232434
|
e10(requireErrors, "requireErrors");
|
232435
232435
|
var constants$4;
|
@@ -242380,11 +242380,11 @@ var require_visit = __commonJS((exports) => {
|
|
242380
242380
|
visit2.BREAK = BREAK;
|
242381
242381
|
visit2.SKIP = SKIP;
|
242382
242382
|
visit2.REMOVE = REMOVE;
|
242383
|
-
function visit_(
|
242384
|
-
const ctrl = callVisitor(
|
242383
|
+
function visit_(key3, node, visitor, path6) {
|
242384
|
+
const ctrl = callVisitor(key3, node, visitor, path6);
|
242385
242385
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242386
|
-
replaceNode(
|
242387
|
-
return visit_(
|
242386
|
+
replaceNode(key3, path6, ctrl);
|
242387
|
+
return visit_(key3, ctrl, visitor, path6);
|
242388
242388
|
}
|
242389
242389
|
if (typeof ctrl !== "symbol") {
|
242390
242390
|
if (identity2.isCollection(node)) {
|
@@ -242428,11 +242428,11 @@ var require_visit = __commonJS((exports) => {
|
|
242428
242428
|
visitAsync.BREAK = BREAK;
|
242429
242429
|
visitAsync.SKIP = SKIP;
|
242430
242430
|
visitAsync.REMOVE = REMOVE;
|
242431
|
-
async function visitAsync_(
|
242432
|
-
const ctrl = await callVisitor(
|
242431
|
+
async function visitAsync_(key3, node, visitor, path6) {
|
242432
|
+
const ctrl = await callVisitor(key3, node, visitor, path6);
|
242433
242433
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242434
|
-
replaceNode(
|
242435
|
-
return visitAsync_(
|
242434
|
+
replaceNode(key3, path6, ctrl);
|
242435
|
+
return visitAsync_(key3, ctrl, visitor, path6);
|
242436
242436
|
}
|
242437
242437
|
if (typeof ctrl !== "symbol") {
|
242438
242438
|
if (identity2.isCollection(node)) {
|
@@ -242482,27 +242482,27 @@ var require_visit = __commonJS((exports) => {
|
|
242482
242482
|
}
|
242483
242483
|
return visitor;
|
242484
242484
|
}
|
242485
|
-
function callVisitor(
|
242485
|
+
function callVisitor(key3, node, visitor, path6) {
|
242486
242486
|
if (typeof visitor === "function")
|
242487
|
-
return visitor(
|
242487
|
+
return visitor(key3, node, path6);
|
242488
242488
|
if (identity2.isMap(node))
|
242489
|
-
return visitor.Map?.(
|
242489
|
+
return visitor.Map?.(key3, node, path6);
|
242490
242490
|
if (identity2.isSeq(node))
|
242491
|
-
return visitor.Seq?.(
|
242491
|
+
return visitor.Seq?.(key3, node, path6);
|
242492
242492
|
if (identity2.isPair(node))
|
242493
|
-
return visitor.Pair?.(
|
242493
|
+
return visitor.Pair?.(key3, node, path6);
|
242494
242494
|
if (identity2.isScalar(node))
|
242495
|
-
return visitor.Scalar?.(
|
242495
|
+
return visitor.Scalar?.(key3, node, path6);
|
242496
242496
|
if (identity2.isAlias(node))
|
242497
|
-
return visitor.Alias?.(
|
242497
|
+
return visitor.Alias?.(key3, node, path6);
|
242498
242498
|
return;
|
242499
242499
|
}
|
242500
|
-
function replaceNode(
|
242500
|
+
function replaceNode(key3, path6, node) {
|
242501
242501
|
const parent = path6[path6.length - 1];
|
242502
242502
|
if (identity2.isCollection(parent)) {
|
242503
|
-
parent.items[
|
242503
|
+
parent.items[key3] = node;
|
242504
242504
|
} else if (identity2.isPair(parent)) {
|
242505
|
-
if (
|
242505
|
+
if (key3 === "key")
|
242506
242506
|
parent.key = node;
|
242507
242507
|
else
|
242508
242508
|
parent.value = node;
|
@@ -242734,7 +242734,7 @@ var require_anchors = __commonJS((exports) => {
|
|
242734
242734
|
|
242735
242735
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
242736
242736
|
var require_applyReviver = __commonJS((exports) => {
|
242737
|
-
function applyReviver(reviver, obj,
|
242737
|
+
function applyReviver(reviver, obj, key3, val) {
|
242738
242738
|
if (val && typeof val === "object") {
|
242739
242739
|
if (Array.isArray(val)) {
|
242740
242740
|
for (let i7 = 0, len = val.length;i7 < len; ++i7) {
|
@@ -242774,7 +242774,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
242774
242774
|
}
|
242775
242775
|
}
|
242776
242776
|
}
|
242777
|
-
return reviver.call(obj,
|
242777
|
+
return reviver.call(obj, key3, val);
|
242778
242778
|
}
|
242779
242779
|
exports.applyReviver = applyReviver;
|
242780
242780
|
});
|
@@ -243092,29 +243092,29 @@ var require_Collection = __commonJS((exports) => {
|
|
243092
243092
|
if (isEmptyPath(path6))
|
243093
243093
|
this.add(value4);
|
243094
243094
|
else {
|
243095
|
-
const [
|
243096
|
-
const node = this.get(
|
243095
|
+
const [key3, ...rest] = path6;
|
243096
|
+
const node = this.get(key3, true);
|
243097
243097
|
if (identity2.isCollection(node))
|
243098
243098
|
node.addIn(rest, value4);
|
243099
243099
|
else if (node === undefined && this.schema)
|
243100
|
-
this.set(
|
243100
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
243101
243101
|
else
|
243102
|
-
throw new Error(`Expected YAML collection at ${
|
243102
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243103
243103
|
}
|
243104
243104
|
}
|
243105
243105
|
deleteIn(path6) {
|
243106
|
-
const [
|
243106
|
+
const [key3, ...rest] = path6;
|
243107
243107
|
if (rest.length === 0)
|
243108
|
-
return this.delete(
|
243109
|
-
const node = this.get(
|
243108
|
+
return this.delete(key3);
|
243109
|
+
const node = this.get(key3, true);
|
243110
243110
|
if (identity2.isCollection(node))
|
243111
243111
|
return node.deleteIn(rest);
|
243112
243112
|
else
|
243113
|
-
throw new Error(`Expected YAML collection at ${
|
243113
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243114
243114
|
}
|
243115
243115
|
getIn(path6, keepScalar) {
|
243116
|
-
const [
|
243117
|
-
const node = this.get(
|
243116
|
+
const [key3, ...rest] = path6;
|
243117
|
+
const node = this.get(key3, true);
|
243118
243118
|
if (rest.length === 0)
|
243119
243119
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
243120
243120
|
else
|
@@ -243129,24 +243129,24 @@ var require_Collection = __commonJS((exports) => {
|
|
243129
243129
|
});
|
243130
243130
|
}
|
243131
243131
|
hasIn(path6) {
|
243132
|
-
const [
|
243132
|
+
const [key3, ...rest] = path6;
|
243133
243133
|
if (rest.length === 0)
|
243134
|
-
return this.has(
|
243135
|
-
const node = this.get(
|
243134
|
+
return this.has(key3);
|
243135
|
+
const node = this.get(key3, true);
|
243136
243136
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
243137
243137
|
}
|
243138
243138
|
setIn(path6, value4) {
|
243139
|
-
const [
|
243139
|
+
const [key3, ...rest] = path6;
|
243140
243140
|
if (rest.length === 0) {
|
243141
|
-
this.set(
|
243141
|
+
this.set(key3, value4);
|
243142
243142
|
} else {
|
243143
|
-
const node = this.get(
|
243143
|
+
const node = this.get(key3, true);
|
243144
243144
|
if (identity2.isCollection(node))
|
243145
243145
|
node.setIn(rest, value4);
|
243146
243146
|
else if (node === undefined && this.schema)
|
243147
|
-
this.set(
|
243147
|
+
this.set(key3, collectionFromPath(this.schema, rest, value4));
|
243148
243148
|
else
|
243149
|
-
throw new Error(`Expected YAML collection at ${
|
243149
|
+
throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
|
243150
243150
|
}
|
243151
243151
|
}
|
243152
243152
|
}
|
@@ -243734,19 +243734,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243734
243734
|
var Scalar = require_Scalar();
|
243735
243735
|
var stringify3 = require_stringify();
|
243736
243736
|
var stringifyComment = require_stringifyComment();
|
243737
|
-
function stringifyPair2({ key:
|
243737
|
+
function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
|
243738
243738
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
243739
|
-
let keyComment = identity2.isNode(
|
243739
|
+
let keyComment = identity2.isNode(key3) && key3.comment || null;
|
243740
243740
|
if (simpleKeys) {
|
243741
243741
|
if (keyComment) {
|
243742
243742
|
throw new Error("With simple keys, key nodes cannot have comments");
|
243743
243743
|
}
|
243744
|
-
if (identity2.isCollection(
|
243744
|
+
if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
|
243745
243745
|
const msg = "With simple keys, collection cannot be used as a key value";
|
243746
243746
|
throw new Error(msg);
|
243747
243747
|
}
|
243748
243748
|
}
|
243749
|
-
let explicitKey = !simpleKeys && (!
|
243749
|
+
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"));
|
243750
243750
|
ctx = Object.assign({}, ctx, {
|
243751
243751
|
allNullValues: false,
|
243752
243752
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -243754,7 +243754,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243754
243754
|
});
|
243755
243755
|
let keyCommentDone = false;
|
243756
243756
|
let chompKeep = false;
|
243757
|
-
let str = stringify3.stringify(
|
243757
|
+
let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
243758
243758
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
243759
243759
|
if (simpleKeys)
|
243760
243760
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -243898,7 +243898,7 @@ var require_merge = __commonJS((exports) => {
|
|
243898
243898
|
}),
|
243899
243899
|
stringify: () => MERGE_KEY
|
243900
243900
|
};
|
243901
|
-
var isMergeKey = (ctx,
|
243901
|
+
var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
243902
243902
|
function addMergeToJSMap(ctx, map3, value4) {
|
243903
243903
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
243904
243904
|
if (identity2.isSeq(value4))
|
@@ -243915,14 +243915,14 @@ var require_merge = __commonJS((exports) => {
|
|
243915
243915
|
if (!identity2.isMap(source))
|
243916
243916
|
throw new Error("Merge sources must be maps or map aliases");
|
243917
243917
|
const srcMap = source.toJSON(null, ctx, Map);
|
243918
|
-
for (const [
|
243918
|
+
for (const [key3, value5] of srcMap) {
|
243919
243919
|
if (map3 instanceof Map) {
|
243920
|
-
if (!map3.has(
|
243921
|
-
map3.set(
|
243920
|
+
if (!map3.has(key3))
|
243921
|
+
map3.set(key3, value5);
|
243922
243922
|
} else if (map3 instanceof Set) {
|
243923
|
-
map3.add(
|
243924
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
243925
|
-
Object.defineProperty(map3,
|
243923
|
+
map3.add(key3);
|
243924
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
|
243925
|
+
Object.defineProperty(map3, key3, {
|
243926
243926
|
value: value5,
|
243927
243927
|
writable: true,
|
243928
243928
|
enumerable: true,
|
@@ -243944,19 +243944,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
243944
243944
|
var stringify3 = require_stringify();
|
243945
243945
|
var identity2 = require_identity();
|
243946
243946
|
var toJS = require_toJS();
|
243947
|
-
function addPairToJSMap(ctx, map3, { key:
|
243948
|
-
if (identity2.isNode(
|
243949
|
-
|
243950
|
-
else if (merge3.isMergeKey(ctx,
|
243947
|
+
function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
|
243948
|
+
if (identity2.isNode(key3) && key3.addToJSMap)
|
243949
|
+
key3.addToJSMap(ctx, map3, value4);
|
243950
|
+
else if (merge3.isMergeKey(ctx, key3))
|
243951
243951
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
243952
243952
|
else {
|
243953
|
-
const jsKey = toJS.toJS(
|
243953
|
+
const jsKey = toJS.toJS(key3, "", ctx);
|
243954
243954
|
if (map3 instanceof Map) {
|
243955
243955
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
243956
243956
|
} else if (map3 instanceof Set) {
|
243957
243957
|
map3.add(jsKey);
|
243958
243958
|
} else {
|
243959
|
-
const stringKey = stringifyKey(
|
243959
|
+
const stringKey = stringifyKey(key3, jsKey, ctx);
|
243960
243960
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
243961
243961
|
if (stringKey in map3)
|
243962
243962
|
Object.defineProperty(map3, stringKey, {
|
@@ -243971,19 +243971,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
243971
243971
|
}
|
243972
243972
|
return map3;
|
243973
243973
|
}
|
243974
|
-
function stringifyKey(
|
243974
|
+
function stringifyKey(key3, jsKey, ctx) {
|
243975
243975
|
if (jsKey === null)
|
243976
243976
|
return "";
|
243977
243977
|
if (typeof jsKey !== "object")
|
243978
243978
|
return String(jsKey);
|
243979
|
-
if (identity2.isNode(
|
243979
|
+
if (identity2.isNode(key3) && ctx?.doc) {
|
243980
243980
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
243981
243981
|
strCtx.anchors = new Set;
|
243982
243982
|
for (const node of ctx.anchors.keys())
|
243983
243983
|
strCtx.anchors.add(node.anchor);
|
243984
243984
|
strCtx.inFlow = true;
|
243985
243985
|
strCtx.inStringifyKey = true;
|
243986
|
-
const strKey =
|
243986
|
+
const strKey = key3.toString(strCtx);
|
243987
243987
|
if (!ctx.mapKeyWarned) {
|
243988
243988
|
let jsonStr = JSON.stringify(strKey);
|
243989
243989
|
if (jsonStr.length > 40)
|
@@ -244004,25 +244004,25 @@ var require_Pair = __commonJS((exports) => {
|
|
244004
244004
|
var stringifyPair2 = require_stringifyPair();
|
244005
244005
|
var addPairToJSMap = require_addPairToJSMap();
|
244006
244006
|
var identity2 = require_identity();
|
244007
|
-
function createPair(
|
244008
|
-
const k6 = createNode.createNode(
|
244007
|
+
function createPair(key3, value4, ctx) {
|
244008
|
+
const k6 = createNode.createNode(key3, undefined, ctx);
|
244009
244009
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
244010
244010
|
return new Pair(k6, v7);
|
244011
244011
|
}
|
244012
244012
|
|
244013
244013
|
class Pair {
|
244014
|
-
constructor(
|
244014
|
+
constructor(key3, value4 = null) {
|
244015
244015
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
244016
|
-
this.key =
|
244016
|
+
this.key = key3;
|
244017
244017
|
this.value = value4;
|
244018
244018
|
}
|
244019
244019
|
clone(schema) {
|
244020
|
-
let { key:
|
244021
|
-
if (identity2.isNode(
|
244022
|
-
|
244020
|
+
let { key: key3, value: value4 } = this;
|
244021
|
+
if (identity2.isNode(key3))
|
244022
|
+
key3 = key3.clone(schema);
|
244023
244023
|
if (identity2.isNode(value4))
|
244024
244024
|
value4 = value4.clone(schema);
|
244025
|
-
return new Pair(
|
244025
|
+
return new Pair(key3, value4);
|
244026
244026
|
}
|
244027
244027
|
toJSON(_6, ctx) {
|
244028
244028
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -244189,11 +244189,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244189
244189
|
var identity2 = require_identity();
|
244190
244190
|
var Pair = require_Pair();
|
244191
244191
|
var Scalar = require_Scalar();
|
244192
|
-
function findPair(items,
|
244193
|
-
const k6 = identity2.isScalar(
|
244192
|
+
function findPair(items, key3) {
|
244193
|
+
const k6 = identity2.isScalar(key3) ? key3.value : key3;
|
244194
244194
|
for (const it2 of items) {
|
244195
244195
|
if (identity2.isPair(it2)) {
|
244196
|
-
if (it2.key ===
|
244196
|
+
if (it2.key === key3 || it2.key === k6)
|
244197
244197
|
return it2;
|
244198
244198
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
244199
244199
|
return it2;
|
@@ -244213,20 +244213,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244213
244213
|
static from(schema, obj, ctx) {
|
244214
244214
|
const { keepUndefined, replacer } = ctx;
|
244215
244215
|
const map3 = new this(schema);
|
244216
|
-
const add = (
|
244216
|
+
const add = (key3, value4) => {
|
244217
244217
|
if (typeof replacer === "function")
|
244218
|
-
value4 = replacer.call(obj,
|
244219
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
244218
|
+
value4 = replacer.call(obj, key3, value4);
|
244219
|
+
else if (Array.isArray(replacer) && !replacer.includes(key3))
|
244220
244220
|
return;
|
244221
244221
|
if (value4 !== undefined || keepUndefined)
|
244222
|
-
map3.items.push(Pair.createPair(
|
244222
|
+
map3.items.push(Pair.createPair(key3, value4, ctx));
|
244223
244223
|
};
|
244224
244224
|
if (obj instanceof Map) {
|
244225
|
-
for (const [
|
244226
|
-
add(
|
244225
|
+
for (const [key3, value4] of obj)
|
244226
|
+
add(key3, value4);
|
244227
244227
|
} else if (obj && typeof obj === "object") {
|
244228
|
-
for (const
|
244229
|
-
add(
|
244228
|
+
for (const key3 of Object.keys(obj))
|
244229
|
+
add(key3, obj[key3]);
|
244230
244230
|
}
|
244231
244231
|
if (typeof schema.sortMapEntries === "function") {
|
244232
244232
|
map3.items.sort(schema.sortMapEntries);
|
@@ -244260,23 +244260,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244260
244260
|
this.items.push(_pair);
|
244261
244261
|
}
|
244262
244262
|
}
|
244263
|
-
delete(
|
244264
|
-
const it2 = findPair(this.items,
|
244263
|
+
delete(key3) {
|
244264
|
+
const it2 = findPair(this.items, key3);
|
244265
244265
|
if (!it2)
|
244266
244266
|
return false;
|
244267
244267
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
244268
244268
|
return del.length > 0;
|
244269
244269
|
}
|
244270
|
-
get(
|
244271
|
-
const it2 = findPair(this.items,
|
244270
|
+
get(key3, keepScalar) {
|
244271
|
+
const it2 = findPair(this.items, key3);
|
244272
244272
|
const node = it2?.value;
|
244273
244273
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
244274
244274
|
}
|
244275
|
-
has(
|
244276
|
-
return !!findPair(this.items,
|
244275
|
+
has(key3) {
|
244276
|
+
return !!findPair(this.items, key3);
|
244277
244277
|
}
|
244278
|
-
set(
|
244279
|
-
this.add(new Pair.Pair(
|
244278
|
+
set(key3, value4) {
|
244279
|
+
this.add(new Pair.Pair(key3, value4), true);
|
244280
244280
|
}
|
244281
244281
|
toJSON(_6, ctx, Type) {
|
244282
244282
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -244347,28 +244347,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244347
244347
|
add(value4) {
|
244348
244348
|
this.items.push(value4);
|
244349
244349
|
}
|
244350
|
-
delete(
|
244351
|
-
const idx = asItemIndex(
|
244350
|
+
delete(key3) {
|
244351
|
+
const idx = asItemIndex(key3);
|
244352
244352
|
if (typeof idx !== "number")
|
244353
244353
|
return false;
|
244354
244354
|
const del = this.items.splice(idx, 1);
|
244355
244355
|
return del.length > 0;
|
244356
244356
|
}
|
244357
|
-
get(
|
244358
|
-
const idx = asItemIndex(
|
244357
|
+
get(key3, keepScalar) {
|
244358
|
+
const idx = asItemIndex(key3);
|
244359
244359
|
if (typeof idx !== "number")
|
244360
244360
|
return;
|
244361
244361
|
const it2 = this.items[idx];
|
244362
244362
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
244363
244363
|
}
|
244364
|
-
has(
|
244365
|
-
const idx = asItemIndex(
|
244364
|
+
has(key3) {
|
244365
|
+
const idx = asItemIndex(key3);
|
244366
244366
|
return typeof idx === "number" && idx < this.items.length;
|
244367
244367
|
}
|
244368
|
-
set(
|
244369
|
-
const idx = asItemIndex(
|
244368
|
+
set(key3, value4) {
|
244369
|
+
const idx = asItemIndex(key3);
|
244370
244370
|
if (typeof idx !== "number")
|
244371
|
-
throw new Error(`Expected a valid index, not ${
|
244371
|
+
throw new Error(`Expected a valid index, not ${key3}.`);
|
244372
244372
|
const prev = this.items[idx];
|
244373
244373
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
244374
244374
|
prev.value = value4;
|
@@ -244402,8 +244402,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244402
244402
|
let i7 = 0;
|
244403
244403
|
for (let it2 of obj) {
|
244404
244404
|
if (typeof replacer === "function") {
|
244405
|
-
const
|
244406
|
-
it2 = replacer.call(obj,
|
244405
|
+
const key3 = obj instanceof Set ? it2 : String(i7++);
|
244406
|
+
it2 = replacer.call(obj, key3, it2);
|
244407
244407
|
}
|
244408
244408
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
244409
244409
|
}
|
@@ -244411,8 +244411,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244411
244411
|
return seq;
|
244412
244412
|
}
|
244413
244413
|
}
|
244414
|
-
function asItemIndex(
|
244415
|
-
let idx = identity2.isScalar(
|
244414
|
+
function asItemIndex(key3) {
|
244415
|
+
let idx = identity2.isScalar(key3) ? key3.value : key3;
|
244416
244416
|
if (idx && typeof idx === "string")
|
244417
244417
|
idx = Number(idx);
|
244418
244418
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -244786,25 +244786,25 @@ ${cn.comment}` : item.comment;
|
|
244786
244786
|
for (let it2 of iterable) {
|
244787
244787
|
if (typeof replacer === "function")
|
244788
244788
|
it2 = replacer.call(iterable, String(i7++), it2);
|
244789
|
-
let
|
244789
|
+
let key3, value4;
|
244790
244790
|
if (Array.isArray(it2)) {
|
244791
244791
|
if (it2.length === 2) {
|
244792
|
-
|
244792
|
+
key3 = it2[0];
|
244793
244793
|
value4 = it2[1];
|
244794
244794
|
} else
|
244795
244795
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
244796
244796
|
} else if (it2 && it2 instanceof Object) {
|
244797
244797
|
const keys = Object.keys(it2);
|
244798
244798
|
if (keys.length === 1) {
|
244799
|
-
|
244800
|
-
value4 = it2[
|
244799
|
+
key3 = keys[0];
|
244800
|
+
value4 = it2[key3];
|
244801
244801
|
} else {
|
244802
244802
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
244803
244803
|
}
|
244804
244804
|
} else {
|
244805
|
-
|
244805
|
+
key3 = it2;
|
244806
244806
|
}
|
244807
|
-
pairs2.items.push(Pair.createPair(
|
244807
|
+
pairs2.items.push(Pair.createPair(key3, value4, ctx));
|
244808
244808
|
}
|
244809
244809
|
return pairs2;
|
244810
244810
|
}
|
@@ -244845,16 +244845,16 @@ var require_omap = __commonJS((exports) => {
|
|
244845
244845
|
if (ctx?.onCreate)
|
244846
244846
|
ctx.onCreate(map3);
|
244847
244847
|
for (const pair of this.items) {
|
244848
|
-
let
|
244848
|
+
let key3, value4;
|
244849
244849
|
if (identity2.isPair(pair)) {
|
244850
|
-
|
244851
|
-
value4 = toJS.toJS(pair.value,
|
244850
|
+
key3 = toJS.toJS(pair.key, "", ctx);
|
244851
|
+
value4 = toJS.toJS(pair.value, key3, ctx);
|
244852
244852
|
} else {
|
244853
|
-
|
244853
|
+
key3 = toJS.toJS(pair, "", ctx);
|
244854
244854
|
}
|
244855
|
-
if (map3.has(
|
244855
|
+
if (map3.has(key3))
|
244856
244856
|
throw new Error("Ordered maps must not include duplicate keys");
|
244857
|
-
map3.set(
|
244857
|
+
map3.set(key3, value4);
|
244858
244858
|
}
|
244859
244859
|
return map3;
|
244860
244860
|
}
|
@@ -244875,12 +244875,12 @@ var require_omap = __commonJS((exports) => {
|
|
244875
244875
|
resolve(seq, onError) {
|
244876
244876
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
244877
244877
|
const seenKeys = [];
|
244878
|
-
for (const { key:
|
244879
|
-
if (identity2.isScalar(
|
244880
|
-
if (seenKeys.includes(
|
244881
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
244878
|
+
for (const { key: key3 } of pairs$1.items) {
|
244879
|
+
if (identity2.isScalar(key3)) {
|
244880
|
+
if (seenKeys.includes(key3.value)) {
|
244881
|
+
onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
|
244882
244882
|
} else {
|
244883
|
-
seenKeys.push(
|
244883
|
+
seenKeys.push(key3.value);
|
244884
244884
|
}
|
244885
244885
|
}
|
244886
244886
|
}
|
@@ -245054,30 +245054,30 @@ var require_set = __commonJS((exports) => {
|
|
245054
245054
|
super(schema);
|
245055
245055
|
this.tag = YAMLSet.tag;
|
245056
245056
|
}
|
245057
|
-
add(
|
245057
|
+
add(key3) {
|
245058
245058
|
let pair;
|
245059
|
-
if (identity2.isPair(
|
245060
|
-
pair =
|
245061
|
-
else if (
|
245062
|
-
pair = new Pair.Pair(
|
245059
|
+
if (identity2.isPair(key3))
|
245060
|
+
pair = key3;
|
245061
|
+
else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
|
245062
|
+
pair = new Pair.Pair(key3.key, null);
|
245063
245063
|
else
|
245064
|
-
pair = new Pair.Pair(
|
245064
|
+
pair = new Pair.Pair(key3, null);
|
245065
245065
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
245066
245066
|
if (!prev)
|
245067
245067
|
this.items.push(pair);
|
245068
245068
|
}
|
245069
|
-
get(
|
245070
|
-
const pair = YAMLMap.findPair(this.items,
|
245069
|
+
get(key3, keepPair) {
|
245070
|
+
const pair = YAMLMap.findPair(this.items, key3);
|
245071
245071
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
245072
245072
|
}
|
245073
|
-
set(
|
245073
|
+
set(key3, value4) {
|
245074
245074
|
if (typeof value4 !== "boolean")
|
245075
245075
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
245076
|
-
const prev = YAMLMap.findPair(this.items,
|
245076
|
+
const prev = YAMLMap.findPair(this.items, key3);
|
245077
245077
|
if (prev && !value4) {
|
245078
245078
|
this.items.splice(this.items.indexOf(prev), 1);
|
245079
245079
|
} else if (!prev && value4) {
|
245080
|
-
this.items.push(new Pair.Pair(
|
245080
|
+
this.items.push(new Pair.Pair(key3));
|
245081
245081
|
}
|
245082
245082
|
}
|
245083
245083
|
toJSON(_6, ctx) {
|
@@ -245312,7 +245312,7 @@ var require_tags = __commonJS((exports) => {
|
|
245312
245312
|
if (Array.isArray(customTags))
|
245313
245313
|
tags = [];
|
245314
245314
|
else {
|
245315
|
-
const keys = Array.from(schemas.keys()).filter((
|
245315
|
+
const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
|
245316
245316
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
245317
245317
|
}
|
245318
245318
|
}
|
@@ -245328,7 +245328,7 @@ var require_tags = __commonJS((exports) => {
|
|
245328
245328
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
245329
245329
|
if (!tagObj) {
|
245330
245330
|
const tagName = JSON.stringify(tag);
|
245331
|
-
const keys = Object.keys(tagsByName).map((
|
245331
|
+
const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
|
245332
245332
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
245333
245333
|
}
|
245334
245334
|
if (!tags2.includes(tagObj))
|
@@ -245563,13 +245563,13 @@ var require_Document = __commonJS((exports) => {
|
|
245563
245563
|
setAnchors();
|
245564
245564
|
return node;
|
245565
245565
|
}
|
245566
|
-
createPair(
|
245567
|
-
const k6 = this.createNode(
|
245566
|
+
createPair(key3, value4, options = {}) {
|
245567
|
+
const k6 = this.createNode(key3, null, options);
|
245568
245568
|
const v7 = this.createNode(value4, null, options);
|
245569
245569
|
return new Pair.Pair(k6, v7);
|
245570
245570
|
}
|
245571
|
-
delete(
|
245572
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
245571
|
+
delete(key3) {
|
245572
|
+
return assertCollection(this.contents) ? this.contents.delete(key3) : false;
|
245573
245573
|
}
|
245574
245574
|
deleteIn(path6) {
|
245575
245575
|
if (Collection.isEmptyPath(path6)) {
|
@@ -245580,27 +245580,27 @@ var require_Document = __commonJS((exports) => {
|
|
245580
245580
|
}
|
245581
245581
|
return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
|
245582
245582
|
}
|
245583
|
-
get(
|
245584
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
245583
|
+
get(key3, keepScalar) {
|
245584
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
|
245585
245585
|
}
|
245586
245586
|
getIn(path6, keepScalar) {
|
245587
245587
|
if (Collection.isEmptyPath(path6))
|
245588
245588
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
245589
245589
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
|
245590
245590
|
}
|
245591
|
-
has(
|
245592
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
245591
|
+
has(key3) {
|
245592
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
|
245593
245593
|
}
|
245594
245594
|
hasIn(path6) {
|
245595
245595
|
if (Collection.isEmptyPath(path6))
|
245596
245596
|
return this.contents !== undefined;
|
245597
245597
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
|
245598
245598
|
}
|
245599
|
-
set(
|
245599
|
+
set(key3, value4) {
|
245600
245600
|
if (this.contents == null) {
|
245601
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
245601
|
+
this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
|
245602
245602
|
} else if (assertCollection(this.contents)) {
|
245603
|
-
this.contents.set(
|
245603
|
+
this.contents.set(key3, value4);
|
245604
245604
|
}
|
245605
245605
|
}
|
245606
245606
|
setIn(path6, value4) {
|
@@ -245884,25 +245884,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
245884
245884
|
|
245885
245885
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
245886
245886
|
var require_util_contains_newline = __commonJS((exports) => {
|
245887
|
-
function containsNewline(
|
245888
|
-
if (!
|
245887
|
+
function containsNewline(key3) {
|
245888
|
+
if (!key3)
|
245889
245889
|
return null;
|
245890
|
-
switch (
|
245890
|
+
switch (key3.type) {
|
245891
245891
|
case "alias":
|
245892
245892
|
case "scalar":
|
245893
245893
|
case "double-quoted-scalar":
|
245894
245894
|
case "single-quoted-scalar":
|
245895
|
-
if (
|
245895
|
+
if (key3.source.includes(`
|
245896
245896
|
`))
|
245897
245897
|
return true;
|
245898
|
-
if (
|
245899
|
-
for (const st2 of
|
245898
|
+
if (key3.end) {
|
245899
|
+
for (const st2 of key3.end)
|
245900
245900
|
if (st2.type === "newline")
|
245901
245901
|
return true;
|
245902
245902
|
}
|
245903
245903
|
return false;
|
245904
245904
|
case "flow-collection":
|
245905
|
-
for (const it2 of
|
245905
|
+
for (const it2 of key3.items) {
|
245906
245906
|
for (const st2 of it2.start)
|
245907
245907
|
if (st2.type === "newline")
|
245908
245908
|
return true;
|
@@ -245967,10 +245967,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245967
245967
|
let offset = bm.offset;
|
245968
245968
|
let commentEnd = null;
|
245969
245969
|
for (const collItem of bm.items) {
|
245970
|
-
const { start: start3, key:
|
245970
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
245971
245971
|
const keyProps = resolveProps.resolveProps(start3, {
|
245972
245972
|
indicator: "explicit-key-ind",
|
245973
|
-
next:
|
245973
|
+
next: key3 ?? sep3?.[0],
|
245974
245974
|
offset,
|
245975
245975
|
onError,
|
245976
245976
|
parentIndent: bm.indent,
|
@@ -245978,10 +245978,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245978
245978
|
});
|
245979
245979
|
const implicitKey = !keyProps.found;
|
245980
245980
|
if (implicitKey) {
|
245981
|
-
if (
|
245982
|
-
if (
|
245981
|
+
if (key3) {
|
245982
|
+
if (key3.type === "block-seq")
|
245983
245983
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
245984
|
-
else if ("indent" in
|
245984
|
+
else if ("indent" in key3 && key3.indent !== bm.indent)
|
245985
245985
|
onError(offset, "BAD_INDENT", startColMsg);
|
245986
245986
|
}
|
245987
245987
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -245995,17 +245995,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245995
245995
|
}
|
245996
245996
|
continue;
|
245997
245997
|
}
|
245998
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
245999
|
-
onError(
|
245998
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
|
245999
|
+
onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
246000
246000
|
}
|
246001
246001
|
} else if (keyProps.found?.indent !== bm.indent) {
|
246002
246002
|
onError(offset, "BAD_INDENT", startColMsg);
|
246003
246003
|
}
|
246004
246004
|
ctx.atKey = true;
|
246005
246005
|
const keyStart = keyProps.end;
|
246006
|
-
const keyNode =
|
246006
|
+
const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
246007
246007
|
if (ctx.schema.compat)
|
246008
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
246008
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
|
246009
246009
|
ctx.atKey = false;
|
246010
246010
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
246011
246011
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -246015,7 +246015,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246015
246015
|
offset: keyNode.range[2],
|
246016
246016
|
onError,
|
246017
246017
|
parentIndent: bm.indent,
|
246018
|
-
startOnNewline: !
|
246018
|
+
startOnNewline: !key3 || key3.type === "block-scalar"
|
246019
246019
|
});
|
246020
246020
|
offset = valueProps.end;
|
246021
246021
|
if (valueProps.found) {
|
@@ -246171,11 +246171,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246171
246171
|
let offset = fc.offset + fc.start.source.length;
|
246172
246172
|
for (let i7 = 0;i7 < fc.items.length; ++i7) {
|
246173
246173
|
const collItem = fc.items[i7];
|
246174
|
-
const { start: start3, key:
|
246174
|
+
const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
|
246175
246175
|
const props = resolveProps.resolveProps(start3, {
|
246176
246176
|
flow: fcName,
|
246177
246177
|
indicator: "explicit-key-ind",
|
246178
|
-
next:
|
246178
|
+
next: key3 ?? sep3?.[0],
|
246179
246179
|
offset,
|
246180
246180
|
onError,
|
246181
246181
|
parentIndent: fc.indent,
|
@@ -246197,8 +246197,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246197
246197
|
offset = props.end;
|
246198
246198
|
continue;
|
246199
246199
|
}
|
246200
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
246201
|
-
onError(
|
246200
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
|
246201
|
+
onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
246202
246202
|
}
|
246203
246203
|
if (i7 === 0) {
|
246204
246204
|
if (props.comma)
|
@@ -246243,8 +246243,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246243
246243
|
} else {
|
246244
246244
|
ctx.atKey = true;
|
246245
246245
|
const keyStart = props.end;
|
246246
|
-
const keyNode =
|
246247
|
-
if (isBlock(
|
246246
|
+
const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
246247
|
+
if (isBlock(key3))
|
246248
246248
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
246249
246249
|
ctx.atKey = false;
|
246250
246250
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -247056,7 +247056,7 @@ var require_composer = __commonJS((exports) => {
|
|
247056
247056
|
var node_process = __require("node:process");
|
247057
247057
|
var directives4 = require_directives2();
|
247058
247058
|
var Document = require_Document();
|
247059
|
-
var
|
247059
|
+
var errors3 = require_errors3();
|
247060
247060
|
var identity2 = require_identity();
|
247061
247061
|
var composeDoc = require_compose_doc();
|
247062
247062
|
var resolveEnd = require_resolve_end();
|
@@ -247107,9 +247107,9 @@ var require_composer = __commonJS((exports) => {
|
|
247107
247107
|
this.onError = (source, code2, message, warning) => {
|
247108
247108
|
const pos = getErrorPos(source);
|
247109
247109
|
if (warning)
|
247110
|
-
this.warnings.push(new
|
247110
|
+
this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
|
247111
247111
|
else
|
247112
|
-
this.errors.push(new
|
247112
|
+
this.errors.push(new errors3.YAMLParseError(pos, code2, message));
|
247113
247113
|
};
|
247114
247114
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
247115
247115
|
this.options = options;
|
@@ -247193,7 +247193,7 @@ ${cb}` : comment;
|
|
247193
247193
|
break;
|
247194
247194
|
case "error": {
|
247195
247195
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
247196
|
-
const error5 = new
|
247196
|
+
const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
247197
247197
|
if (this.atDirectives || !this.doc)
|
247198
247198
|
this.errors.push(error5);
|
247199
247199
|
else
|
@@ -247203,7 +247203,7 @@ ${cb}` : comment;
|
|
247203
247203
|
case "doc-end": {
|
247204
247204
|
if (!this.doc) {
|
247205
247205
|
const msg = "Unexpected doc-end without preceding document";
|
247206
|
-
this.errors.push(new
|
247206
|
+
this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
247207
247207
|
break;
|
247208
247208
|
}
|
247209
247209
|
this.doc.directives.docEnd = true;
|
@@ -247218,7 +247218,7 @@ ${end.comment}` : end.comment;
|
|
247218
247218
|
break;
|
247219
247219
|
}
|
247220
247220
|
default:
|
247221
|
-
this.errors.push(new
|
247221
|
+
this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
247222
247222
|
}
|
247223
247223
|
}
|
247224
247224
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -247244,7 +247244,7 @@ ${end.comment}` : end.comment;
|
|
247244
247244
|
var require_cst_scalar = __commonJS((exports) => {
|
247245
247245
|
var resolveBlockScalar = require_resolve_block_scalar();
|
247246
247246
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
247247
|
-
var
|
247247
|
+
var errors3 = require_errors3();
|
247248
247248
|
var stringifyString = require_stringifyString();
|
247249
247249
|
function resolveAsScalar(token, strict = true, onError) {
|
247250
247250
|
if (token) {
|
@@ -247253,7 +247253,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247253
247253
|
if (onError)
|
247254
247254
|
onError(offset, code2, message);
|
247255
247255
|
else
|
247256
|
-
throw new
|
247256
|
+
throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
|
247257
247257
|
};
|
247258
247258
|
switch (token.type) {
|
247259
247259
|
case "scalar":
|
@@ -247367,9 +247367,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247367
247367
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
247368
247368
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
247369
247369
|
` });
|
247370
|
-
for (const
|
247371
|
-
if (
|
247372
|
-
delete token[
|
247370
|
+
for (const key3 of Object.keys(token))
|
247371
|
+
if (key3 !== "type" && key3 !== "offset")
|
247372
|
+
delete token[key3];
|
247373
247373
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
247374
247374
|
}
|
247375
247375
|
}
|
@@ -247418,9 +247418,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247418
247418
|
default: {
|
247419
247419
|
const indent2 = "indent" in token ? token.indent : -1;
|
247420
247420
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
247421
|
-
for (const
|
247422
|
-
if (
|
247423
|
-
delete token[
|
247421
|
+
for (const key3 of Object.keys(token))
|
247422
|
+
if (key3 !== "type" && key3 !== "offset")
|
247423
|
+
delete token[key3];
|
247424
247424
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
247425
247425
|
}
|
247426
247426
|
}
|
@@ -247472,12 +247472,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
247472
247472
|
}
|
247473
247473
|
}
|
247474
247474
|
}
|
247475
|
-
function stringifyItem({ start: start3, key:
|
247475
|
+
function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
|
247476
247476
|
let res = "";
|
247477
247477
|
for (const st2 of start3)
|
247478
247478
|
res += st2.source;
|
247479
|
-
if (
|
247480
|
-
res += stringifyToken(
|
247479
|
+
if (key3)
|
247480
|
+
res += stringifyToken(key3);
|
247481
247481
|
if (sep3)
|
247482
247482
|
for (const st2 of sep3)
|
247483
247483
|
res += st2.source;
|
@@ -248773,7 +248773,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248773
248773
|
});
|
248774
248774
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
248775
248775
|
const start4 = getFirstKeyStartProps(it2.start);
|
248776
|
-
const
|
248776
|
+
const key3 = it2.key;
|
248777
248777
|
const sep3 = it2.sep;
|
248778
248778
|
sep3.push(this.sourceToken);
|
248779
248779
|
delete it2.key;
|
@@ -248782,7 +248782,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248782
248782
|
type: "block-map",
|
248783
248783
|
offset: this.offset,
|
248784
248784
|
indent: this.indent,
|
248785
|
-
items: [{ start: start4, key:
|
248785
|
+
items: [{ start: start4, key: key3, sep: sep3 }]
|
248786
248786
|
});
|
248787
248787
|
} else if (start3.length > 0) {
|
248788
248788
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -249115,7 +249115,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
249115
249115
|
var require_public_api = __commonJS((exports) => {
|
249116
249116
|
var composer = require_composer();
|
249117
249117
|
var Document = require_Document();
|
249118
|
-
var
|
249118
|
+
var errors3 = require_errors3();
|
249119
249119
|
var log = require_log();
|
249120
249120
|
var identity2 = require_identity();
|
249121
249121
|
var lineCounter = require_line_counter();
|
@@ -249132,8 +249132,8 @@ var require_public_api = __commonJS((exports) => {
|
|
249132
249132
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
249133
249133
|
if (prettyErrors && lineCounter2)
|
249134
249134
|
for (const doc of docs) {
|
249135
|
-
doc.errors.forEach(
|
249136
|
-
doc.warnings.forEach(
|
249135
|
+
doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
|
249136
|
+
doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
|
249137
249137
|
}
|
249138
249138
|
if (docs.length > 0)
|
249139
249139
|
return docs;
|
@@ -249148,13 +249148,13 @@ var require_public_api = __commonJS((exports) => {
|
|
249148
249148
|
if (!doc)
|
249149
249149
|
doc = _doc;
|
249150
249150
|
else if (doc.options.logLevel !== "silent") {
|
249151
|
-
doc.errors.push(new
|
249151
|
+
doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
249152
249152
|
break;
|
249153
249153
|
}
|
249154
249154
|
}
|
249155
249155
|
if (prettyErrors && lineCounter2) {
|
249156
|
-
doc.errors.forEach(
|
249157
|
-
doc.warnings.forEach(
|
249156
|
+
doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
|
249157
|
+
doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
|
249158
249158
|
}
|
249159
249159
|
return doc;
|
249160
249160
|
}
|
@@ -259536,7 +259536,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
259536
259536
|
var package_default = {
|
259537
259537
|
name: "@settlemint/sdk-cli",
|
259538
259538
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
259539
|
-
version: "2.0.0-
|
259539
|
+
version: "2.0.0-pr06b24a6b",
|
259540
259540
|
type: "module",
|
259541
259541
|
private: false,
|
259542
259542
|
license: "FSL-1.1-MIT",
|
@@ -259581,10 +259581,10 @@ var package_default = {
|
|
259581
259581
|
commander: "11.1.0",
|
259582
259582
|
"@inquirer/confirm": "5.1.8",
|
259583
259583
|
"@inquirer/input": "4.1.8",
|
259584
|
-
"@inquirer/password": "4.0.
|
259584
|
+
"@inquirer/password": "4.0.12",
|
259585
259585
|
"@inquirer/select": "4.1.0",
|
259586
|
-
"@settlemint/sdk-js": "2.0.0-
|
259587
|
-
"@settlemint/sdk-utils": "2.0.0-
|
259586
|
+
"@settlemint/sdk-js": "2.0.0-pr06b24a6b",
|
259587
|
+
"@settlemint/sdk-utils": "2.0.0-pr06b24a6b",
|
259588
259588
|
"@types/node": "22.14.0",
|
259589
259589
|
"@types/semver": "7.7.0",
|
259590
259590
|
"@types/which": "3.0.4",
|
@@ -266242,20 +266242,473 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
266242
266242
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
266243
266243
|
});
|
266244
266244
|
|
266245
|
-
// ../../node_modules/@inquirer/password/dist/esm/
|
266245
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
266246
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
266247
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
266248
|
+
class AbortPromptError2 extends Error {
|
266249
|
+
name = "AbortPromptError";
|
266250
|
+
message = "Prompt was aborted";
|
266251
|
+
constructor(options) {
|
266252
|
+
super();
|
266253
|
+
this.cause = options?.cause;
|
266254
|
+
}
|
266255
|
+
}
|
266256
|
+
|
266257
|
+
class CancelPromptError2 extends Error {
|
266258
|
+
name = "CancelPromptError";
|
266259
|
+
message = "Prompt was canceled";
|
266260
|
+
}
|
266261
|
+
|
266262
|
+
class ExitPromptError2 extends Error {
|
266263
|
+
name = "ExitPromptError";
|
266264
|
+
}
|
266265
|
+
|
266266
|
+
class HookError2 extends Error {
|
266267
|
+
name = "HookError";
|
266268
|
+
}
|
266269
|
+
|
266270
|
+
class ValidationError2 extends Error {
|
266271
|
+
name = "ValidationError";
|
266272
|
+
}
|
266273
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
266274
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
266275
|
+
|
266276
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
266277
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
266278
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
266279
|
+
function createStore2(rl) {
|
266280
|
+
const store = {
|
266281
|
+
rl,
|
266282
|
+
hooks: [],
|
266283
|
+
hooksCleanup: [],
|
266284
|
+
hooksEffect: [],
|
266285
|
+
index: 0,
|
266286
|
+
handleChange() {}
|
266287
|
+
};
|
266288
|
+
return store;
|
266289
|
+
}
|
266290
|
+
function withHooks2(rl, cb) {
|
266291
|
+
const store = createStore2(rl);
|
266292
|
+
return hookStorage2.run(store, () => {
|
266293
|
+
function cycle(render) {
|
266294
|
+
store.handleChange = () => {
|
266295
|
+
store.index = 0;
|
266296
|
+
render();
|
266297
|
+
};
|
266298
|
+
store.handleChange();
|
266299
|
+
}
|
266300
|
+
return cb(cycle);
|
266301
|
+
});
|
266302
|
+
}
|
266303
|
+
function getStore2() {
|
266304
|
+
const store = hookStorage2.getStore();
|
266305
|
+
if (!store) {
|
266306
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
266307
|
+
}
|
266308
|
+
return store;
|
266309
|
+
}
|
266310
|
+
function readline3() {
|
266311
|
+
return getStore2().rl;
|
266312
|
+
}
|
266313
|
+
function withUpdates2(fn) {
|
266314
|
+
const wrapped = (...args) => {
|
266315
|
+
const store = getStore2();
|
266316
|
+
let shouldUpdate = false;
|
266317
|
+
const oldHandleChange = store.handleChange;
|
266318
|
+
store.handleChange = () => {
|
266319
|
+
shouldUpdate = true;
|
266320
|
+
};
|
266321
|
+
const returnValue = fn(...args);
|
266322
|
+
if (shouldUpdate) {
|
266323
|
+
oldHandleChange();
|
266324
|
+
}
|
266325
|
+
store.handleChange = oldHandleChange;
|
266326
|
+
return returnValue;
|
266327
|
+
};
|
266328
|
+
return AsyncResource4.bind(wrapped);
|
266329
|
+
}
|
266330
|
+
function withPointer2(cb) {
|
266331
|
+
const store = getStore2();
|
266332
|
+
const { index } = store;
|
266333
|
+
const pointer = {
|
266334
|
+
get() {
|
266335
|
+
return store.hooks[index];
|
266336
|
+
},
|
266337
|
+
set(value4) {
|
266338
|
+
store.hooks[index] = value4;
|
266339
|
+
},
|
266340
|
+
initialized: index in store.hooks
|
266341
|
+
};
|
266342
|
+
const returnValue = cb(pointer);
|
266343
|
+
store.index++;
|
266344
|
+
return returnValue;
|
266345
|
+
}
|
266346
|
+
function handleChange2() {
|
266347
|
+
getStore2().handleChange();
|
266348
|
+
}
|
266349
|
+
var effectScheduler2 = {
|
266350
|
+
queue(cb) {
|
266351
|
+
const store = getStore2();
|
266352
|
+
const { index } = store;
|
266353
|
+
store.hooksEffect.push(() => {
|
266354
|
+
store.hooksCleanup[index]?.();
|
266355
|
+
const cleanFn = cb(readline3());
|
266356
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
266357
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
266358
|
+
}
|
266359
|
+
store.hooksCleanup[index] = cleanFn;
|
266360
|
+
});
|
266361
|
+
},
|
266362
|
+
run() {
|
266363
|
+
const store = getStore2();
|
266364
|
+
withUpdates2(() => {
|
266365
|
+
store.hooksEffect.forEach((effect) => {
|
266366
|
+
effect();
|
266367
|
+
});
|
266368
|
+
store.hooksEffect.length = 0;
|
266369
|
+
})();
|
266370
|
+
},
|
266371
|
+
clearAll() {
|
266372
|
+
const store = getStore2();
|
266373
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
266374
|
+
cleanFn?.();
|
266375
|
+
});
|
266376
|
+
store.hooksEffect.length = 0;
|
266377
|
+
store.hooksCleanup.length = 0;
|
266378
|
+
}
|
266379
|
+
};
|
266380
|
+
|
266381
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
266382
|
+
function useState2(defaultValue) {
|
266383
|
+
return withPointer2((pointer) => {
|
266384
|
+
const setFn = (newValue) => {
|
266385
|
+
if (pointer.get() !== newValue) {
|
266386
|
+
pointer.set(newValue);
|
266387
|
+
handleChange2();
|
266388
|
+
}
|
266389
|
+
};
|
266390
|
+
if (pointer.initialized) {
|
266391
|
+
return [pointer.get(), setFn];
|
266392
|
+
}
|
266393
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
266394
|
+
pointer.set(value4);
|
266395
|
+
return [value4, setFn];
|
266396
|
+
});
|
266397
|
+
}
|
266398
|
+
|
266399
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
266400
|
+
function useEffect2(cb, depArray) {
|
266401
|
+
withPointer2((pointer) => {
|
266402
|
+
const oldDeps = pointer.get();
|
266403
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
266404
|
+
if (hasChanged) {
|
266405
|
+
effectScheduler2.queue(cb);
|
266406
|
+
}
|
266407
|
+
pointer.set(depArray);
|
266408
|
+
});
|
266409
|
+
}
|
266410
|
+
|
266411
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
266412
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
266413
|
+
var defaultTheme2 = {
|
266414
|
+
prefix: {
|
266415
|
+
idle: import_yoctocolors_cjs4.default.blue("?"),
|
266416
|
+
done: import_yoctocolors_cjs4.default.green(esm_default.tick)
|
266417
|
+
},
|
266418
|
+
spinner: {
|
266419
|
+
interval: 80,
|
266420
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
|
266421
|
+
},
|
266422
|
+
style: {
|
266423
|
+
answer: import_yoctocolors_cjs4.default.cyan,
|
266424
|
+
message: import_yoctocolors_cjs4.default.bold,
|
266425
|
+
error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
|
266426
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
|
266427
|
+
help: import_yoctocolors_cjs4.default.dim,
|
266428
|
+
highlight: import_yoctocolors_cjs4.default.cyan,
|
266429
|
+
key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
|
266430
|
+
}
|
266431
|
+
};
|
266432
|
+
|
266433
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
266434
|
+
function isPlainObject3(value4) {
|
266435
|
+
if (typeof value4 !== "object" || value4 === null)
|
266436
|
+
return false;
|
266437
|
+
let proto = value4;
|
266438
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
266439
|
+
proto = Object.getPrototypeOf(proto);
|
266440
|
+
}
|
266441
|
+
return Object.getPrototypeOf(value4) === proto;
|
266442
|
+
}
|
266443
|
+
function deepMerge3(...objects) {
|
266444
|
+
const output = {};
|
266445
|
+
for (const obj of objects) {
|
266446
|
+
for (const [key2, value4] of Object.entries(obj)) {
|
266447
|
+
const prevValue = output[key2];
|
266448
|
+
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
266449
|
+
}
|
266450
|
+
}
|
266451
|
+
return output;
|
266452
|
+
}
|
266453
|
+
function makeTheme2(...themes) {
|
266454
|
+
const themesToMerge = [
|
266455
|
+
defaultTheme2,
|
266456
|
+
...themes.filter((theme) => theme != null)
|
266457
|
+
];
|
266458
|
+
return deepMerge3(...themesToMerge);
|
266459
|
+
}
|
266460
|
+
|
266461
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
266462
|
+
function usePrefix2({ status = "idle", theme }) {
|
266463
|
+
const [showLoader, setShowLoader] = useState2(false);
|
266464
|
+
const [tick, setTick] = useState2(0);
|
266465
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
266466
|
+
useEffect2(() => {
|
266467
|
+
if (status === "loading") {
|
266468
|
+
let tickInterval;
|
266469
|
+
let inc = -1;
|
266470
|
+
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
266471
|
+
setShowLoader(true);
|
266472
|
+
tickInterval = setInterval(AsyncResource5.bind(() => {
|
266473
|
+
inc = inc + 1;
|
266474
|
+
setTick(inc % spinner2.frames.length);
|
266475
|
+
}), spinner2.interval);
|
266476
|
+
}), 300);
|
266477
|
+
return () => {
|
266478
|
+
clearTimeout(delayTimeout);
|
266479
|
+
clearInterval(tickInterval);
|
266480
|
+
};
|
266481
|
+
} else {
|
266482
|
+
setShowLoader(false);
|
266483
|
+
}
|
266484
|
+
}, [status]);
|
266485
|
+
if (showLoader) {
|
266486
|
+
return spinner2.frames[tick];
|
266487
|
+
}
|
266488
|
+
const iconName = status === "loading" ? "idle" : status;
|
266489
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
266490
|
+
}
|
266491
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
266492
|
+
function useRef2(val) {
|
266493
|
+
return useState2({ current: val })[0];
|
266494
|
+
}
|
266495
|
+
|
266496
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
266497
|
+
function useKeypress2(userHandler) {
|
266498
|
+
const signal = useRef2(userHandler);
|
266499
|
+
signal.current = userHandler;
|
266500
|
+
useEffect2((rl) => {
|
266501
|
+
let ignore = false;
|
266502
|
+
const handler = withUpdates2((_input, event) => {
|
266503
|
+
if (ignore)
|
266504
|
+
return;
|
266505
|
+
signal.current(event, rl);
|
266506
|
+
});
|
266507
|
+
rl.input.on("keypress", handler);
|
266508
|
+
return () => {
|
266509
|
+
ignore = true;
|
266510
|
+
rl.input.removeListener("keypress", handler);
|
266511
|
+
};
|
266512
|
+
}, []);
|
266513
|
+
}
|
266514
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
266515
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
266516
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
266517
|
+
function breakLines2(content, width) {
|
266518
|
+
return content.split(`
|
266519
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
266520
|
+
`).map((str) => str.trimEnd())).join(`
|
266521
|
+
`);
|
266522
|
+
}
|
266523
|
+
function readlineWidth2() {
|
266524
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
266525
|
+
}
|
266526
|
+
|
266527
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
266528
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
266529
|
+
import * as readline4 from "node:readline";
|
266530
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
266531
|
+
|
266532
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
266246
266533
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
266247
|
-
|
266534
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
266535
|
+
var height2 = (content) => content.split(`
|
266536
|
+
`).length;
|
266537
|
+
var lastLine2 = (content) => content.split(`
|
266538
|
+
`).pop() ?? "";
|
266539
|
+
function cursorDown2(n6) {
|
266540
|
+
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
266541
|
+
}
|
266542
|
+
|
266543
|
+
class ScreenManager2 {
|
266544
|
+
height = 0;
|
266545
|
+
extraLinesUnderPrompt = 0;
|
266546
|
+
cursorPos;
|
266547
|
+
rl;
|
266548
|
+
constructor(rl) {
|
266549
|
+
this.rl = rl;
|
266550
|
+
this.cursorPos = rl.getCursorPos();
|
266551
|
+
}
|
266552
|
+
write(content) {
|
266553
|
+
this.rl.output.unmute();
|
266554
|
+
this.rl.output.write(content);
|
266555
|
+
this.rl.output.mute();
|
266556
|
+
}
|
266557
|
+
render(content, bottomContent = "") {
|
266558
|
+
const promptLine = lastLine2(content);
|
266559
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
266560
|
+
let prompt = rawPromptLine;
|
266561
|
+
if (this.rl.line.length > 0) {
|
266562
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
266563
|
+
}
|
266564
|
+
this.rl.setPrompt(prompt);
|
266565
|
+
this.cursorPos = this.rl.getCursorPos();
|
266566
|
+
const width = readlineWidth2();
|
266567
|
+
content = breakLines2(content, width);
|
266568
|
+
bottomContent = breakLines2(bottomContent, width);
|
266569
|
+
if (rawPromptLine.length % width === 0) {
|
266570
|
+
content += `
|
266571
|
+
`;
|
266572
|
+
}
|
266573
|
+
let output = content + (bottomContent ? `
|
266574
|
+
` + bottomContent : "");
|
266575
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
266576
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
266577
|
+
if (bottomContentHeight > 0)
|
266578
|
+
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
266579
|
+
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
266580
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
266581
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
266582
|
+
this.height = height2(output);
|
266583
|
+
}
|
266584
|
+
checkCursorPos() {
|
266585
|
+
const cursorPos = this.rl.getCursorPos();
|
266586
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
266587
|
+
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
266588
|
+
this.cursorPos = cursorPos;
|
266589
|
+
}
|
266590
|
+
}
|
266591
|
+
done({ clearContent }) {
|
266592
|
+
this.rl.setPrompt("");
|
266593
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
266594
|
+
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
266595
|
+
`;
|
266596
|
+
output += import_ansi_escapes3.default.cursorShow;
|
266597
|
+
this.write(output);
|
266598
|
+
this.rl.close();
|
266599
|
+
}
|
266600
|
+
}
|
266601
|
+
|
266602
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
266603
|
+
class PromisePolyfill2 extends Promise {
|
266604
|
+
static withResolver() {
|
266605
|
+
let resolve6;
|
266606
|
+
let reject;
|
266607
|
+
const promise = new Promise((res, rej) => {
|
266608
|
+
resolve6 = res;
|
266609
|
+
reject = rej;
|
266610
|
+
});
|
266611
|
+
return { promise, resolve: resolve6, reject };
|
266612
|
+
}
|
266613
|
+
}
|
266614
|
+
|
266615
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
266616
|
+
function getCallSites2() {
|
266617
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
266618
|
+
let result = [];
|
266619
|
+
try {
|
266620
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
266621
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
266622
|
+
result = callSitesWithoutCurrent;
|
266623
|
+
return callSitesWithoutCurrent;
|
266624
|
+
};
|
266625
|
+
new Error().stack;
|
266626
|
+
} catch {
|
266627
|
+
return result;
|
266628
|
+
}
|
266629
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
266630
|
+
return result;
|
266631
|
+
}
|
266632
|
+
function createPrompt2(view) {
|
266633
|
+
const callSites = getCallSites2();
|
266634
|
+
const prompt = (config3, context = {}) => {
|
266635
|
+
const { input = process.stdin, signal } = context;
|
266636
|
+
const cleanups = new Set;
|
266637
|
+
const output = new import_mute_stream2.default;
|
266638
|
+
output.pipe(context.output ?? process.stdout);
|
266639
|
+
const rl = readline4.createInterface({
|
266640
|
+
terminal: true,
|
266641
|
+
input,
|
266642
|
+
output
|
266643
|
+
});
|
266644
|
+
const screen = new ScreenManager2(rl);
|
266645
|
+
const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
266646
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
266647
|
+
if (signal) {
|
266648
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
266649
|
+
if (signal.aborted) {
|
266650
|
+
abort();
|
266651
|
+
return Object.assign(promise, { cancel: cancel3 });
|
266652
|
+
}
|
266653
|
+
signal.addEventListener("abort", abort);
|
266654
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
266655
|
+
}
|
266656
|
+
cleanups.add(onExit((code2, signal2) => {
|
266657
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
266658
|
+
}));
|
266659
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
266660
|
+
rl.input.on("keypress", checkCursorPos);
|
266661
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
266662
|
+
return withHooks2(rl, (cycle) => {
|
266663
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
266664
|
+
rl.on("close", hooksCleanup);
|
266665
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
266666
|
+
cycle(() => {
|
266667
|
+
try {
|
266668
|
+
const nextView = view(config3, (value4) => {
|
266669
|
+
setImmediate(() => resolve6(value4));
|
266670
|
+
});
|
266671
|
+
if (nextView === undefined) {
|
266672
|
+
const callerFilename = callSites[1]?.getFileName();
|
266673
|
+
throw new Error(`Prompt functions must return a string.
|
266674
|
+
at ${callerFilename}`);
|
266675
|
+
}
|
266676
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
266677
|
+
screen.render(content, bottomContent);
|
266678
|
+
effectScheduler2.run();
|
266679
|
+
} catch (error5) {
|
266680
|
+
reject(error5);
|
266681
|
+
}
|
266682
|
+
});
|
266683
|
+
return Object.assign(promise.then((answer) => {
|
266684
|
+
effectScheduler2.clearAll();
|
266685
|
+
return answer;
|
266686
|
+
}, (error5) => {
|
266687
|
+
effectScheduler2.clearAll();
|
266688
|
+
throw error5;
|
266689
|
+
}).finally(() => {
|
266690
|
+
cleanups.forEach((cleanup) => cleanup());
|
266691
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
266692
|
+
output.end();
|
266693
|
+
}).then(() => promise), { cancel: cancel3 });
|
266694
|
+
});
|
266695
|
+
};
|
266696
|
+
return prompt;
|
266697
|
+
}
|
266698
|
+
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
266699
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
266700
|
+
var esm_default5 = createPrompt2((config3, done) => {
|
266248
266701
|
const { validate: validate3 = () => true } = config3;
|
266249
|
-
const theme =
|
266250
|
-
const [status, setStatus] =
|
266251
|
-
const [errorMsg, setError] =
|
266252
|
-
const [value4, setValue] =
|
266253
|
-
const prefix =
|
266254
|
-
|
266702
|
+
const theme = makeTheme2(config3.theme);
|
266703
|
+
const [status, setStatus] = useState2("idle");
|
266704
|
+
const [errorMsg, setError] = useState2();
|
266705
|
+
const [value4, setValue] = useState2("");
|
266706
|
+
const prefix = usePrefix2({ status, theme });
|
266707
|
+
useKeypress2(async (key3, rl) => {
|
266255
266708
|
if (status !== "idle") {
|
266256
266709
|
return;
|
266257
266710
|
}
|
266258
|
-
if (
|
266711
|
+
if (isEnterKey2(key3)) {
|
266259
266712
|
const answer = value4;
|
266260
266713
|
setStatus("loading");
|
266261
266714
|
const isValid2 = await validate3(answer);
|
@@ -266280,7 +266733,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
266280
266733
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
266281
266734
|
formattedValue = maskChar.repeat(value4.length);
|
266282
266735
|
} else if (status !== "done") {
|
266283
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
266736
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
|
266284
266737
|
}
|
266285
266738
|
if (status === "done") {
|
266286
266739
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -267371,7 +267824,7 @@ var basename2 = function(p6, extension) {
|
|
267371
267824
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
267372
267825
|
};
|
267373
267826
|
// ../../node_modules/defu/dist/defu.mjs
|
267374
|
-
function
|
267827
|
+
function isPlainObject4(value4) {
|
267375
267828
|
if (value4 === null || typeof value4 !== "object") {
|
267376
267829
|
return false;
|
267377
267830
|
}
|
@@ -267388,27 +267841,27 @@ function isPlainObject3(value4) {
|
|
267388
267841
|
return true;
|
267389
267842
|
}
|
267390
267843
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
267391
|
-
if (!
|
267844
|
+
if (!isPlainObject4(defaults2)) {
|
267392
267845
|
return _defu(baseObject, {}, namespace, merger);
|
267393
267846
|
}
|
267394
267847
|
const object = Object.assign({}, defaults2);
|
267395
|
-
for (const
|
267396
|
-
if (
|
267848
|
+
for (const key3 in baseObject) {
|
267849
|
+
if (key3 === "__proto__" || key3 === "constructor") {
|
267397
267850
|
continue;
|
267398
267851
|
}
|
267399
|
-
const value4 = baseObject[
|
267852
|
+
const value4 = baseObject[key3];
|
267400
267853
|
if (value4 === null || value4 === undefined) {
|
267401
267854
|
continue;
|
267402
267855
|
}
|
267403
|
-
if (merger && merger(object,
|
267856
|
+
if (merger && merger(object, key3, value4, namespace)) {
|
267404
267857
|
continue;
|
267405
267858
|
}
|
267406
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
267407
|
-
object[
|
267408
|
-
} else if (
|
267409
|
-
object[
|
267859
|
+
if (Array.isArray(value4) && Array.isArray(object[key3])) {
|
267860
|
+
object[key3] = [...value4, ...object[key3]];
|
267861
|
+
} else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
|
267862
|
+
object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
|
267410
267863
|
} else {
|
267411
|
-
object[
|
267864
|
+
object[key3] = value4;
|
267412
267865
|
}
|
267413
267866
|
}
|
267414
267867
|
return object;
|
@@ -267417,15 +267870,15 @@ function createDefu(merger) {
|
|
267417
267870
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
267418
267871
|
}
|
267419
267872
|
var defu = createDefu();
|
267420
|
-
var defuFn = createDefu((object,
|
267421
|
-
if (object[
|
267422
|
-
object[
|
267873
|
+
var defuFn = createDefu((object, key3, currentValue) => {
|
267874
|
+
if (object[key3] !== undefined && typeof currentValue === "function") {
|
267875
|
+
object[key3] = currentValue(object[key3]);
|
267423
267876
|
return true;
|
267424
267877
|
}
|
267425
267878
|
});
|
267426
|
-
var defuArrayFn = createDefu((object,
|
267427
|
-
if (Array.isArray(object[
|
267428
|
-
object[
|
267879
|
+
var defuArrayFn = createDefu((object, key3, currentValue) => {
|
267880
|
+
if (Array.isArray(object[key3]) && typeof currentValue === "function") {
|
267881
|
+
object[key3] = currentValue(object[key3]);
|
267429
267882
|
return true;
|
267430
267883
|
}
|
267431
267884
|
});
|
@@ -270122,11 +270575,11 @@ function cacheDirectory() {
|
|
270122
270575
|
}
|
270123
270576
|
function normalizeHeaders(headers = {}) {
|
270124
270577
|
const normalized = {};
|
270125
|
-
for (const [
|
270578
|
+
for (const [key3, value4] of Object.entries(headers)) {
|
270126
270579
|
if (!value4) {
|
270127
270580
|
continue;
|
270128
270581
|
}
|
270129
|
-
normalized[
|
270582
|
+
normalized[key3.toLowerCase()] = value4;
|
270130
270583
|
}
|
270131
270584
|
return normalized;
|
270132
270585
|
}
|
@@ -272489,7 +272942,7 @@ function jsonOutput(data) {
|
|
272489
272942
|
var composer = require_composer();
|
272490
272943
|
var Document = require_Document();
|
272491
272944
|
var Schema = require_Schema();
|
272492
|
-
var
|
272945
|
+
var errors3 = require_errors3();
|
272493
272946
|
var Alias = require_Alias();
|
272494
272947
|
var identity2 = require_identity();
|
272495
272948
|
var Pair = require_Pair();
|
@@ -272505,9 +272958,9 @@ var visit2 = require_visit();
|
|
272505
272958
|
var $Composer = composer.Composer;
|
272506
272959
|
var $Document = Document.Document;
|
272507
272960
|
var $Schema = Schema.Schema;
|
272508
|
-
var $YAMLError =
|
272509
|
-
var $YAMLParseError =
|
272510
|
-
var $YAMLWarning =
|
272961
|
+
var $YAMLError = errors3.YAMLError;
|
272962
|
+
var $YAMLParseError = errors3.YAMLParseError;
|
272963
|
+
var $YAMLWarning = errors3.YAMLWarning;
|
272511
272964
|
var $Alias = Alias.Alias;
|
272512
272965
|
var $isAlias = identity2.isAlias;
|
272513
272966
|
var $isCollection = identity2.isCollection;
|
@@ -272855,7 +273308,7 @@ async function getServicesAndMapResults({
|
|
272855
273308
|
const application = await settlemint.application.read(applicationUniqueName);
|
272856
273309
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
272857
273310
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
272858
|
-
const [_6, labels] = Object.entries(LABELS_MAP).find(([
|
273311
|
+
const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
|
272859
273312
|
null,
|
272860
273313
|
{ plural: serviceType }
|
272861
273314
|
];
|
@@ -273083,11 +273536,11 @@ function createCommand4() {
|
|
273083
273536
|
|
273084
273537
|
// src/utils/commands/passthrough-options.ts
|
273085
273538
|
function mapPassthroughOptions(options, command) {
|
273086
|
-
const optionArgs = Object.entries(options).map(([
|
273539
|
+
const optionArgs = Object.entries(options).map(([key3, value4]) => {
|
273087
273540
|
if (value4 === true) {
|
273088
|
-
return `--${
|
273541
|
+
return `--${key3}`;
|
273089
273542
|
}
|
273090
|
-
return `--${
|
273543
|
+
return `--${key3}=${value4}`;
|
273091
273544
|
});
|
273092
273545
|
return [...optionArgs, ...command.args];
|
273093
273546
|
}
|
@@ -274102,4 +274555,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
274102
274555
|
// src/cli.ts
|
274103
274556
|
sdkCliCommand();
|
274104
274557
|
|
274105
|
-
//# debugId=
|
274558
|
+
//# debugId=0793D004B35825F664756E2164756E21
|