@settlemint/sdk-cli 1.1.8-prb9e80a22 → 1.1.8-prbfa3571f
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 +1162 -254
- package/dist/cli.js.map +31 -3
- package/package.json +5 -5
package/dist/cli.js
CHANGED
@@ -241161,8 +241161,8 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
241161
241161
|
return "CwdError";
|
241162
241162
|
}
|
241163
241163
|
}
|
241164
|
-
var cGet = (cache,
|
241165
|
-
var cSet = (cache,
|
241164
|
+
var cGet = (cache, key5) => cache.get(normPath(key5));
|
241165
|
+
var cSet = (cache, key5, val) => cache.set(normPath(key5), val);
|
241166
241166
|
var checkCwd = (dir, cb) => {
|
241167
241167
|
fs4.stat(dir, (er2, st2) => {
|
241168
241168
|
if (er2 || !st2.isDirectory()) {
|
@@ -241533,8 +241533,8 @@ var require_unpack = __commonJS((exports, module) => {
|
|
241533
241533
|
}
|
241534
241534
|
};
|
241535
241535
|
var dropCache = (cache) => {
|
241536
|
-
for (const
|
241537
|
-
cache.delete(
|
241536
|
+
for (const key5 of cache.keys()) {
|
241537
|
+
cache.delete(key5);
|
241538
241538
|
}
|
241539
241539
|
};
|
241540
241540
|
|
@@ -246331,8 +246331,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
246331
246331
|
function fetch2(input, options) {
|
246332
246332
|
return nodeFetch.fetch(input, options);
|
246333
246333
|
}
|
246334
|
-
for (const
|
246335
|
-
fetch2[
|
246334
|
+
for (const key5 in nodeFetch) {
|
246335
|
+
fetch2[key5] = nodeFetch[key5];
|
246336
246336
|
}
|
246337
246337
|
module.exports = fetch2;
|
246338
246338
|
});
|
@@ -246425,11 +246425,11 @@ var require_proxy = __commonJS((exports) => {
|
|
246425
246425
|
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;
|
246426
246426
|
}
|
246427
246427
|
e10(requireSymbols$4, "requireSymbols$4");
|
246428
|
-
var
|
246428
|
+
var errors5;
|
246429
246429
|
var hasRequiredErrors;
|
246430
246430
|
function requireErrors() {
|
246431
246431
|
if (hasRequiredErrors)
|
246432
|
-
return
|
246432
|
+
return errors5;
|
246433
246433
|
hasRequiredErrors = 1;
|
246434
246434
|
|
246435
246435
|
class A5 extends Error {
|
@@ -246638,7 +246638,7 @@ var require_proxy = __commonJS((exports) => {
|
|
246638
246638
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
246639
246639
|
}
|
246640
246640
|
}
|
246641
|
-
return
|
246641
|
+
return errors5 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors5;
|
246642
246642
|
}
|
246643
246643
|
e10(requireErrors, "requireErrors");
|
246644
246644
|
var constants$4;
|
@@ -256611,11 +256611,11 @@ var require_visit = __commonJS((exports) => {
|
|
256611
256611
|
visit2.BREAK = BREAK;
|
256612
256612
|
visit2.SKIP = SKIP;
|
256613
256613
|
visit2.REMOVE = REMOVE;
|
256614
|
-
function visit_(
|
256615
|
-
const ctrl = callVisitor(
|
256614
|
+
function visit_(key5, node, visitor, path6) {
|
256615
|
+
const ctrl = callVisitor(key5, node, visitor, path6);
|
256616
256616
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
256617
|
-
replaceNode(
|
256618
|
-
return visit_(
|
256617
|
+
replaceNode(key5, path6, ctrl);
|
256618
|
+
return visit_(key5, ctrl, visitor, path6);
|
256619
256619
|
}
|
256620
256620
|
if (typeof ctrl !== "symbol") {
|
256621
256621
|
if (identity2.isCollection(node)) {
|
@@ -256659,11 +256659,11 @@ var require_visit = __commonJS((exports) => {
|
|
256659
256659
|
visitAsync.BREAK = BREAK;
|
256660
256660
|
visitAsync.SKIP = SKIP;
|
256661
256661
|
visitAsync.REMOVE = REMOVE;
|
256662
|
-
async function visitAsync_(
|
256663
|
-
const ctrl = await callVisitor(
|
256662
|
+
async function visitAsync_(key5, node, visitor, path6) {
|
256663
|
+
const ctrl = await callVisitor(key5, node, visitor, path6);
|
256664
256664
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
256665
|
-
replaceNode(
|
256666
|
-
return visitAsync_(
|
256665
|
+
replaceNode(key5, path6, ctrl);
|
256666
|
+
return visitAsync_(key5, ctrl, visitor, path6);
|
256667
256667
|
}
|
256668
256668
|
if (typeof ctrl !== "symbol") {
|
256669
256669
|
if (identity2.isCollection(node)) {
|
@@ -256713,27 +256713,27 @@ var require_visit = __commonJS((exports) => {
|
|
256713
256713
|
}
|
256714
256714
|
return visitor;
|
256715
256715
|
}
|
256716
|
-
function callVisitor(
|
256716
|
+
function callVisitor(key5, node, visitor, path6) {
|
256717
256717
|
if (typeof visitor === "function")
|
256718
|
-
return visitor(
|
256718
|
+
return visitor(key5, node, path6);
|
256719
256719
|
if (identity2.isMap(node))
|
256720
|
-
return visitor.Map?.(
|
256720
|
+
return visitor.Map?.(key5, node, path6);
|
256721
256721
|
if (identity2.isSeq(node))
|
256722
|
-
return visitor.Seq?.(
|
256722
|
+
return visitor.Seq?.(key5, node, path6);
|
256723
256723
|
if (identity2.isPair(node))
|
256724
|
-
return visitor.Pair?.(
|
256724
|
+
return visitor.Pair?.(key5, node, path6);
|
256725
256725
|
if (identity2.isScalar(node))
|
256726
|
-
return visitor.Scalar?.(
|
256726
|
+
return visitor.Scalar?.(key5, node, path6);
|
256727
256727
|
if (identity2.isAlias(node))
|
256728
|
-
return visitor.Alias?.(
|
256728
|
+
return visitor.Alias?.(key5, node, path6);
|
256729
256729
|
return;
|
256730
256730
|
}
|
256731
|
-
function replaceNode(
|
256731
|
+
function replaceNode(key5, path6, node) {
|
256732
256732
|
const parent = path6[path6.length - 1];
|
256733
256733
|
if (identity2.isCollection(parent)) {
|
256734
|
-
parent.items[
|
256734
|
+
parent.items[key5] = node;
|
256735
256735
|
} else if (identity2.isPair(parent)) {
|
256736
|
-
if (
|
256736
|
+
if (key5 === "key")
|
256737
256737
|
parent.key = node;
|
256738
256738
|
else
|
256739
256739
|
parent.value = node;
|
@@ -256965,7 +256965,7 @@ var require_anchors = __commonJS((exports) => {
|
|
256965
256965
|
|
256966
256966
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
256967
256967
|
var require_applyReviver = __commonJS((exports) => {
|
256968
|
-
function applyReviver(reviver, obj,
|
256968
|
+
function applyReviver(reviver, obj, key5, val) {
|
256969
256969
|
if (val && typeof val === "object") {
|
256970
256970
|
if (Array.isArray(val)) {
|
256971
256971
|
for (let i6 = 0, len = val.length;i6 < len; ++i6) {
|
@@ -257005,7 +257005,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
257005
257005
|
}
|
257006
257006
|
}
|
257007
257007
|
}
|
257008
|
-
return reviver.call(obj,
|
257008
|
+
return reviver.call(obj, key5, val);
|
257009
257009
|
}
|
257010
257010
|
exports.applyReviver = applyReviver;
|
257011
257011
|
});
|
@@ -257323,29 +257323,29 @@ var require_Collection = __commonJS((exports) => {
|
|
257323
257323
|
if (isEmptyPath(path6))
|
257324
257324
|
this.add(value4);
|
257325
257325
|
else {
|
257326
|
-
const [
|
257327
|
-
const node = this.get(
|
257326
|
+
const [key5, ...rest] = path6;
|
257327
|
+
const node = this.get(key5, true);
|
257328
257328
|
if (identity2.isCollection(node))
|
257329
257329
|
node.addIn(rest, value4);
|
257330
257330
|
else if (node === undefined && this.schema)
|
257331
|
-
this.set(
|
257331
|
+
this.set(key5, collectionFromPath(this.schema, rest, value4));
|
257332
257332
|
else
|
257333
|
-
throw new Error(`Expected YAML collection at ${
|
257333
|
+
throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
|
257334
257334
|
}
|
257335
257335
|
}
|
257336
257336
|
deleteIn(path6) {
|
257337
|
-
const [
|
257337
|
+
const [key5, ...rest] = path6;
|
257338
257338
|
if (rest.length === 0)
|
257339
|
-
return this.delete(
|
257340
|
-
const node = this.get(
|
257339
|
+
return this.delete(key5);
|
257340
|
+
const node = this.get(key5, true);
|
257341
257341
|
if (identity2.isCollection(node))
|
257342
257342
|
return node.deleteIn(rest);
|
257343
257343
|
else
|
257344
|
-
throw new Error(`Expected YAML collection at ${
|
257344
|
+
throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
|
257345
257345
|
}
|
257346
257346
|
getIn(path6, keepScalar) {
|
257347
|
-
const [
|
257348
|
-
const node = this.get(
|
257347
|
+
const [key5, ...rest] = path6;
|
257348
|
+
const node = this.get(key5, true);
|
257349
257349
|
if (rest.length === 0)
|
257350
257350
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
257351
257351
|
else
|
@@ -257360,24 +257360,24 @@ var require_Collection = __commonJS((exports) => {
|
|
257360
257360
|
});
|
257361
257361
|
}
|
257362
257362
|
hasIn(path6) {
|
257363
|
-
const [
|
257363
|
+
const [key5, ...rest] = path6;
|
257364
257364
|
if (rest.length === 0)
|
257365
|
-
return this.has(
|
257366
|
-
const node = this.get(
|
257365
|
+
return this.has(key5);
|
257366
|
+
const node = this.get(key5, true);
|
257367
257367
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
257368
257368
|
}
|
257369
257369
|
setIn(path6, value4) {
|
257370
|
-
const [
|
257370
|
+
const [key5, ...rest] = path6;
|
257371
257371
|
if (rest.length === 0) {
|
257372
|
-
this.set(
|
257372
|
+
this.set(key5, value4);
|
257373
257373
|
} else {
|
257374
|
-
const node = this.get(
|
257374
|
+
const node = this.get(key5, true);
|
257375
257375
|
if (identity2.isCollection(node))
|
257376
257376
|
node.setIn(rest, value4);
|
257377
257377
|
else if (node === undefined && this.schema)
|
257378
|
-
this.set(
|
257378
|
+
this.set(key5, collectionFromPath(this.schema, rest, value4));
|
257379
257379
|
else
|
257380
|
-
throw new Error(`Expected YAML collection at ${
|
257380
|
+
throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
|
257381
257381
|
}
|
257382
257382
|
}
|
257383
257383
|
}
|
@@ -257965,19 +257965,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
257965
257965
|
var Scalar = require_Scalar();
|
257966
257966
|
var stringify3 = require_stringify();
|
257967
257967
|
var stringifyComment = require_stringifyComment();
|
257968
|
-
function stringifyPair2({ key:
|
257968
|
+
function stringifyPair2({ key: key5, value: value4 }, ctx, onComment, onChompKeep) {
|
257969
257969
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
257970
|
-
let keyComment = identity2.isNode(
|
257970
|
+
let keyComment = identity2.isNode(key5) && key5.comment || null;
|
257971
257971
|
if (simpleKeys) {
|
257972
257972
|
if (keyComment) {
|
257973
257973
|
throw new Error("With simple keys, key nodes cannot have comments");
|
257974
257974
|
}
|
257975
|
-
if (identity2.isCollection(
|
257975
|
+
if (identity2.isCollection(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
|
257976
257976
|
const msg = "With simple keys, collection cannot be used as a key value";
|
257977
257977
|
throw new Error(msg);
|
257978
257978
|
}
|
257979
257979
|
}
|
257980
|
-
let explicitKey = !simpleKeys && (!
|
257980
|
+
let explicitKey = !simpleKeys && (!key5 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key5) || (identity2.isScalar(key5) ? key5.type === Scalar.Scalar.BLOCK_FOLDED || key5.type === Scalar.Scalar.BLOCK_LITERAL : typeof key5 === "object"));
|
257981
257981
|
ctx = Object.assign({}, ctx, {
|
257982
257982
|
allNullValues: false,
|
257983
257983
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -257985,7 +257985,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
257985
257985
|
});
|
257986
257986
|
let keyCommentDone = false;
|
257987
257987
|
let chompKeep = false;
|
257988
|
-
let str = stringify3.stringify(
|
257988
|
+
let str = stringify3.stringify(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
257989
257989
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
257990
257990
|
if (simpleKeys)
|
257991
257991
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -258129,7 +258129,7 @@ var require_merge = __commonJS((exports) => {
|
|
258129
258129
|
}),
|
258130
258130
|
stringify: () => MERGE_KEY
|
258131
258131
|
};
|
258132
|
-
var isMergeKey = (ctx,
|
258132
|
+
var isMergeKey = (ctx, key5) => (merge3.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge3.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
258133
258133
|
function addMergeToJSMap(ctx, map3, value4) {
|
258134
258134
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
258135
258135
|
if (identity2.isSeq(value4))
|
@@ -258146,14 +258146,14 @@ var require_merge = __commonJS((exports) => {
|
|
258146
258146
|
if (!identity2.isMap(source))
|
258147
258147
|
throw new Error("Merge sources must be maps or map aliases");
|
258148
258148
|
const srcMap = source.toJSON(null, ctx, Map);
|
258149
|
-
for (const [
|
258149
|
+
for (const [key5, value5] of srcMap) {
|
258150
258150
|
if (map3 instanceof Map) {
|
258151
|
-
if (!map3.has(
|
258152
|
-
map3.set(
|
258151
|
+
if (!map3.has(key5))
|
258152
|
+
map3.set(key5, value5);
|
258153
258153
|
} else if (map3 instanceof Set) {
|
258154
|
-
map3.add(
|
258155
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
258156
|
-
Object.defineProperty(map3,
|
258154
|
+
map3.add(key5);
|
258155
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key5)) {
|
258156
|
+
Object.defineProperty(map3, key5, {
|
258157
258157
|
value: value5,
|
258158
258158
|
writable: true,
|
258159
258159
|
enumerable: true,
|
@@ -258175,19 +258175,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
258175
258175
|
var stringify3 = require_stringify();
|
258176
258176
|
var identity2 = require_identity();
|
258177
258177
|
var toJS = require_toJS();
|
258178
|
-
function addPairToJSMap(ctx, map3, { key:
|
258179
|
-
if (identity2.isNode(
|
258180
|
-
|
258181
|
-
else if (merge3.isMergeKey(ctx,
|
258178
|
+
function addPairToJSMap(ctx, map3, { key: key5, value: value4 }) {
|
258179
|
+
if (identity2.isNode(key5) && key5.addToJSMap)
|
258180
|
+
key5.addToJSMap(ctx, map3, value4);
|
258181
|
+
else if (merge3.isMergeKey(ctx, key5))
|
258182
258182
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
258183
258183
|
else {
|
258184
|
-
const jsKey = toJS.toJS(
|
258184
|
+
const jsKey = toJS.toJS(key5, "", ctx);
|
258185
258185
|
if (map3 instanceof Map) {
|
258186
258186
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
258187
258187
|
} else if (map3 instanceof Set) {
|
258188
258188
|
map3.add(jsKey);
|
258189
258189
|
} else {
|
258190
|
-
const stringKey = stringifyKey(
|
258190
|
+
const stringKey = stringifyKey(key5, jsKey, ctx);
|
258191
258191
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
258192
258192
|
if (stringKey in map3)
|
258193
258193
|
Object.defineProperty(map3, stringKey, {
|
@@ -258202,19 +258202,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
258202
258202
|
}
|
258203
258203
|
return map3;
|
258204
258204
|
}
|
258205
|
-
function stringifyKey(
|
258205
|
+
function stringifyKey(key5, jsKey, ctx) {
|
258206
258206
|
if (jsKey === null)
|
258207
258207
|
return "";
|
258208
258208
|
if (typeof jsKey !== "object")
|
258209
258209
|
return String(jsKey);
|
258210
|
-
if (identity2.isNode(
|
258210
|
+
if (identity2.isNode(key5) && ctx?.doc) {
|
258211
258211
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
258212
258212
|
strCtx.anchors = new Set;
|
258213
258213
|
for (const node of ctx.anchors.keys())
|
258214
258214
|
strCtx.anchors.add(node.anchor);
|
258215
258215
|
strCtx.inFlow = true;
|
258216
258216
|
strCtx.inStringifyKey = true;
|
258217
|
-
const strKey =
|
258217
|
+
const strKey = key5.toString(strCtx);
|
258218
258218
|
if (!ctx.mapKeyWarned) {
|
258219
258219
|
let jsonStr = JSON.stringify(strKey);
|
258220
258220
|
if (jsonStr.length > 40)
|
@@ -258235,25 +258235,25 @@ var require_Pair = __commonJS((exports) => {
|
|
258235
258235
|
var stringifyPair2 = require_stringifyPair();
|
258236
258236
|
var addPairToJSMap = require_addPairToJSMap();
|
258237
258237
|
var identity2 = require_identity();
|
258238
|
-
function createPair(
|
258239
|
-
const k5 = createNode.createNode(
|
258238
|
+
function createPair(key5, value4, ctx) {
|
258239
|
+
const k5 = createNode.createNode(key5, undefined, ctx);
|
258240
258240
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
258241
258241
|
return new Pair(k5, v7);
|
258242
258242
|
}
|
258243
258243
|
|
258244
258244
|
class Pair {
|
258245
|
-
constructor(
|
258245
|
+
constructor(key5, value4 = null) {
|
258246
258246
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
258247
|
-
this.key =
|
258247
|
+
this.key = key5;
|
258248
258248
|
this.value = value4;
|
258249
258249
|
}
|
258250
258250
|
clone(schema) {
|
258251
|
-
let { key:
|
258252
|
-
if (identity2.isNode(
|
258253
|
-
|
258251
|
+
let { key: key5, value: value4 } = this;
|
258252
|
+
if (identity2.isNode(key5))
|
258253
|
+
key5 = key5.clone(schema);
|
258254
258254
|
if (identity2.isNode(value4))
|
258255
258255
|
value4 = value4.clone(schema);
|
258256
|
-
return new Pair(
|
258256
|
+
return new Pair(key5, value4);
|
258257
258257
|
}
|
258258
258258
|
toJSON(_5, ctx) {
|
258259
258259
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -258420,11 +258420,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258420
258420
|
var identity2 = require_identity();
|
258421
258421
|
var Pair = require_Pair();
|
258422
258422
|
var Scalar = require_Scalar();
|
258423
|
-
function findPair(items,
|
258424
|
-
const k5 = identity2.isScalar(
|
258423
|
+
function findPair(items, key5) {
|
258424
|
+
const k5 = identity2.isScalar(key5) ? key5.value : key5;
|
258425
258425
|
for (const it2 of items) {
|
258426
258426
|
if (identity2.isPair(it2)) {
|
258427
|
-
if (it2.key ===
|
258427
|
+
if (it2.key === key5 || it2.key === k5)
|
258428
258428
|
return it2;
|
258429
258429
|
if (identity2.isScalar(it2.key) && it2.key.value === k5)
|
258430
258430
|
return it2;
|
@@ -258444,20 +258444,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258444
258444
|
static from(schema, obj, ctx) {
|
258445
258445
|
const { keepUndefined, replacer } = ctx;
|
258446
258446
|
const map3 = new this(schema);
|
258447
|
-
const add = (
|
258447
|
+
const add = (key5, value4) => {
|
258448
258448
|
if (typeof replacer === "function")
|
258449
|
-
value4 = replacer.call(obj,
|
258450
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
258449
|
+
value4 = replacer.call(obj, key5, value4);
|
258450
|
+
else if (Array.isArray(replacer) && !replacer.includes(key5))
|
258451
258451
|
return;
|
258452
258452
|
if (value4 !== undefined || keepUndefined)
|
258453
|
-
map3.items.push(Pair.createPair(
|
258453
|
+
map3.items.push(Pair.createPair(key5, value4, ctx));
|
258454
258454
|
};
|
258455
258455
|
if (obj instanceof Map) {
|
258456
|
-
for (const [
|
258457
|
-
add(
|
258456
|
+
for (const [key5, value4] of obj)
|
258457
|
+
add(key5, value4);
|
258458
258458
|
} else if (obj && typeof obj === "object") {
|
258459
|
-
for (const
|
258460
|
-
add(
|
258459
|
+
for (const key5 of Object.keys(obj))
|
258460
|
+
add(key5, obj[key5]);
|
258461
258461
|
}
|
258462
258462
|
if (typeof schema.sortMapEntries === "function") {
|
258463
258463
|
map3.items.sort(schema.sortMapEntries);
|
@@ -258491,23 +258491,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
258491
258491
|
this.items.push(_pair);
|
258492
258492
|
}
|
258493
258493
|
}
|
258494
|
-
delete(
|
258495
|
-
const it2 = findPair(this.items,
|
258494
|
+
delete(key5) {
|
258495
|
+
const it2 = findPair(this.items, key5);
|
258496
258496
|
if (!it2)
|
258497
258497
|
return false;
|
258498
258498
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
258499
258499
|
return del.length > 0;
|
258500
258500
|
}
|
258501
|
-
get(
|
258502
|
-
const it2 = findPair(this.items,
|
258501
|
+
get(key5, keepScalar) {
|
258502
|
+
const it2 = findPair(this.items, key5);
|
258503
258503
|
const node = it2?.value;
|
258504
258504
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
258505
258505
|
}
|
258506
|
-
has(
|
258507
|
-
return !!findPair(this.items,
|
258506
|
+
has(key5) {
|
258507
|
+
return !!findPair(this.items, key5);
|
258508
258508
|
}
|
258509
|
-
set(
|
258510
|
-
this.add(new Pair.Pair(
|
258509
|
+
set(key5, value4) {
|
258510
|
+
this.add(new Pair.Pair(key5, value4), true);
|
258511
258511
|
}
|
258512
258512
|
toJSON(_5, ctx, Type) {
|
258513
258513
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -258578,28 +258578,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258578
258578
|
add(value4) {
|
258579
258579
|
this.items.push(value4);
|
258580
258580
|
}
|
258581
|
-
delete(
|
258582
|
-
const idx = asItemIndex(
|
258581
|
+
delete(key5) {
|
258582
|
+
const idx = asItemIndex(key5);
|
258583
258583
|
if (typeof idx !== "number")
|
258584
258584
|
return false;
|
258585
258585
|
const del = this.items.splice(idx, 1);
|
258586
258586
|
return del.length > 0;
|
258587
258587
|
}
|
258588
|
-
get(
|
258589
|
-
const idx = asItemIndex(
|
258588
|
+
get(key5, keepScalar) {
|
258589
|
+
const idx = asItemIndex(key5);
|
258590
258590
|
if (typeof idx !== "number")
|
258591
258591
|
return;
|
258592
258592
|
const it2 = this.items[idx];
|
258593
258593
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
258594
258594
|
}
|
258595
|
-
has(
|
258596
|
-
const idx = asItemIndex(
|
258595
|
+
has(key5) {
|
258596
|
+
const idx = asItemIndex(key5);
|
258597
258597
|
return typeof idx === "number" && idx < this.items.length;
|
258598
258598
|
}
|
258599
|
-
set(
|
258600
|
-
const idx = asItemIndex(
|
258599
|
+
set(key5, value4) {
|
258600
|
+
const idx = asItemIndex(key5);
|
258601
258601
|
if (typeof idx !== "number")
|
258602
|
-
throw new Error(`Expected a valid index, not ${
|
258602
|
+
throw new Error(`Expected a valid index, not ${key5}.`);
|
258603
258603
|
const prev = this.items[idx];
|
258604
258604
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
258605
258605
|
prev.value = value4;
|
@@ -258633,8 +258633,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258633
258633
|
let i6 = 0;
|
258634
258634
|
for (let it2 of obj) {
|
258635
258635
|
if (typeof replacer === "function") {
|
258636
|
-
const
|
258637
|
-
it2 = replacer.call(obj,
|
258636
|
+
const key5 = obj instanceof Set ? it2 : String(i6++);
|
258637
|
+
it2 = replacer.call(obj, key5, it2);
|
258638
258638
|
}
|
258639
258639
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
258640
258640
|
}
|
@@ -258642,8 +258642,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
258642
258642
|
return seq;
|
258643
258643
|
}
|
258644
258644
|
}
|
258645
|
-
function asItemIndex(
|
258646
|
-
let idx = identity2.isScalar(
|
258645
|
+
function asItemIndex(key5) {
|
258646
|
+
let idx = identity2.isScalar(key5) ? key5.value : key5;
|
258647
258647
|
if (idx && typeof idx === "string")
|
258648
258648
|
idx = Number(idx);
|
258649
258649
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -259015,25 +259015,25 @@ ${cn.comment}` : item.comment;
|
|
259015
259015
|
for (let it2 of iterable) {
|
259016
259016
|
if (typeof replacer === "function")
|
259017
259017
|
it2 = replacer.call(iterable, String(i6++), it2);
|
259018
|
-
let
|
259018
|
+
let key5, value4;
|
259019
259019
|
if (Array.isArray(it2)) {
|
259020
259020
|
if (it2.length === 2) {
|
259021
|
-
|
259021
|
+
key5 = it2[0];
|
259022
259022
|
value4 = it2[1];
|
259023
259023
|
} else
|
259024
259024
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
259025
259025
|
} else if (it2 && it2 instanceof Object) {
|
259026
259026
|
const keys = Object.keys(it2);
|
259027
259027
|
if (keys.length === 1) {
|
259028
|
-
|
259029
|
-
value4 = it2[
|
259028
|
+
key5 = keys[0];
|
259029
|
+
value4 = it2[key5];
|
259030
259030
|
} else {
|
259031
259031
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
259032
259032
|
}
|
259033
259033
|
} else {
|
259034
|
-
|
259034
|
+
key5 = it2;
|
259035
259035
|
}
|
259036
|
-
pairs2.items.push(Pair.createPair(
|
259036
|
+
pairs2.items.push(Pair.createPair(key5, value4, ctx));
|
259037
259037
|
}
|
259038
259038
|
return pairs2;
|
259039
259039
|
}
|
@@ -259074,16 +259074,16 @@ var require_omap = __commonJS((exports) => {
|
|
259074
259074
|
if (ctx?.onCreate)
|
259075
259075
|
ctx.onCreate(map3);
|
259076
259076
|
for (const pair of this.items) {
|
259077
|
-
let
|
259077
|
+
let key5, value4;
|
259078
259078
|
if (identity2.isPair(pair)) {
|
259079
|
-
|
259080
|
-
value4 = toJS.toJS(pair.value,
|
259079
|
+
key5 = toJS.toJS(pair.key, "", ctx);
|
259080
|
+
value4 = toJS.toJS(pair.value, key5, ctx);
|
259081
259081
|
} else {
|
259082
|
-
|
259082
|
+
key5 = toJS.toJS(pair, "", ctx);
|
259083
259083
|
}
|
259084
|
-
if (map3.has(
|
259084
|
+
if (map3.has(key5))
|
259085
259085
|
throw new Error("Ordered maps must not include duplicate keys");
|
259086
|
-
map3.set(
|
259086
|
+
map3.set(key5, value4);
|
259087
259087
|
}
|
259088
259088
|
return map3;
|
259089
259089
|
}
|
@@ -259104,12 +259104,12 @@ var require_omap = __commonJS((exports) => {
|
|
259104
259104
|
resolve(seq, onError) {
|
259105
259105
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
259106
259106
|
const seenKeys = [];
|
259107
|
-
for (const { key:
|
259108
|
-
if (identity2.isScalar(
|
259109
|
-
if (seenKeys.includes(
|
259110
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
259107
|
+
for (const { key: key5 } of pairs$1.items) {
|
259108
|
+
if (identity2.isScalar(key5)) {
|
259109
|
+
if (seenKeys.includes(key5.value)) {
|
259110
|
+
onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
|
259111
259111
|
} else {
|
259112
|
-
seenKeys.push(
|
259112
|
+
seenKeys.push(key5.value);
|
259113
259113
|
}
|
259114
259114
|
}
|
259115
259115
|
}
|
@@ -259283,30 +259283,30 @@ var require_set = __commonJS((exports) => {
|
|
259283
259283
|
super(schema);
|
259284
259284
|
this.tag = YAMLSet.tag;
|
259285
259285
|
}
|
259286
|
-
add(
|
259286
|
+
add(key5) {
|
259287
259287
|
let pair;
|
259288
|
-
if (identity2.isPair(
|
259289
|
-
pair =
|
259290
|
-
else if (
|
259291
|
-
pair = new Pair.Pair(
|
259288
|
+
if (identity2.isPair(key5))
|
259289
|
+
pair = key5;
|
259290
|
+
else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
|
259291
|
+
pair = new Pair.Pair(key5.key, null);
|
259292
259292
|
else
|
259293
|
-
pair = new Pair.Pair(
|
259293
|
+
pair = new Pair.Pair(key5, null);
|
259294
259294
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
259295
259295
|
if (!prev)
|
259296
259296
|
this.items.push(pair);
|
259297
259297
|
}
|
259298
|
-
get(
|
259299
|
-
const pair = YAMLMap.findPair(this.items,
|
259298
|
+
get(key5, keepPair) {
|
259299
|
+
const pair = YAMLMap.findPair(this.items, key5);
|
259300
259300
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
259301
259301
|
}
|
259302
|
-
set(
|
259302
|
+
set(key5, value4) {
|
259303
259303
|
if (typeof value4 !== "boolean")
|
259304
259304
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
259305
|
-
const prev = YAMLMap.findPair(this.items,
|
259305
|
+
const prev = YAMLMap.findPair(this.items, key5);
|
259306
259306
|
if (prev && !value4) {
|
259307
259307
|
this.items.splice(this.items.indexOf(prev), 1);
|
259308
259308
|
} else if (!prev && value4) {
|
259309
|
-
this.items.push(new Pair.Pair(
|
259309
|
+
this.items.push(new Pair.Pair(key5));
|
259310
259310
|
}
|
259311
259311
|
}
|
259312
259312
|
toJSON(_5, ctx) {
|
@@ -259541,7 +259541,7 @@ var require_tags = __commonJS((exports) => {
|
|
259541
259541
|
if (Array.isArray(customTags))
|
259542
259542
|
tags = [];
|
259543
259543
|
else {
|
259544
|
-
const keys = Array.from(schemas.keys()).filter((
|
259544
|
+
const keys = Array.from(schemas.keys()).filter((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
|
259545
259545
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
259546
259546
|
}
|
259547
259547
|
}
|
@@ -259557,7 +259557,7 @@ var require_tags = __commonJS((exports) => {
|
|
259557
259557
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
259558
259558
|
if (!tagObj) {
|
259559
259559
|
const tagName = JSON.stringify(tag);
|
259560
|
-
const keys = Object.keys(tagsByName).map((
|
259560
|
+
const keys = Object.keys(tagsByName).map((key5) => JSON.stringify(key5)).join(", ");
|
259561
259561
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
259562
259562
|
}
|
259563
259563
|
if (!tags2.includes(tagObj))
|
@@ -259792,13 +259792,13 @@ var require_Document = __commonJS((exports) => {
|
|
259792
259792
|
setAnchors();
|
259793
259793
|
return node;
|
259794
259794
|
}
|
259795
|
-
createPair(
|
259796
|
-
const k5 = this.createNode(
|
259795
|
+
createPair(key5, value4, options = {}) {
|
259796
|
+
const k5 = this.createNode(key5, null, options);
|
259797
259797
|
const v7 = this.createNode(value4, null, options);
|
259798
259798
|
return new Pair.Pair(k5, v7);
|
259799
259799
|
}
|
259800
|
-
delete(
|
259801
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
259800
|
+
delete(key5) {
|
259801
|
+
return assertCollection(this.contents) ? this.contents.delete(key5) : false;
|
259802
259802
|
}
|
259803
259803
|
deleteIn(path6) {
|
259804
259804
|
if (Collection.isEmptyPath(path6)) {
|
@@ -259809,27 +259809,27 @@ var require_Document = __commonJS((exports) => {
|
|
259809
259809
|
}
|
259810
259810
|
return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
|
259811
259811
|
}
|
259812
|
-
get(
|
259813
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
259812
|
+
get(key5, keepScalar) {
|
259813
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
|
259814
259814
|
}
|
259815
259815
|
getIn(path6, keepScalar) {
|
259816
259816
|
if (Collection.isEmptyPath(path6))
|
259817
259817
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
259818
259818
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
|
259819
259819
|
}
|
259820
|
-
has(
|
259821
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
259820
|
+
has(key5) {
|
259821
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
|
259822
259822
|
}
|
259823
259823
|
hasIn(path6) {
|
259824
259824
|
if (Collection.isEmptyPath(path6))
|
259825
259825
|
return this.contents !== undefined;
|
259826
259826
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
|
259827
259827
|
}
|
259828
|
-
set(
|
259828
|
+
set(key5, value4) {
|
259829
259829
|
if (this.contents == null) {
|
259830
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
259830
|
+
this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
|
259831
259831
|
} else if (assertCollection(this.contents)) {
|
259832
|
-
this.contents.set(
|
259832
|
+
this.contents.set(key5, value4);
|
259833
259833
|
}
|
259834
259834
|
}
|
259835
259835
|
setIn(path6, value4) {
|
@@ -260113,25 +260113,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
260113
260113
|
|
260114
260114
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
260115
260115
|
var require_util_contains_newline = __commonJS((exports) => {
|
260116
|
-
function containsNewline(
|
260117
|
-
if (!
|
260116
|
+
function containsNewline(key5) {
|
260117
|
+
if (!key5)
|
260118
260118
|
return null;
|
260119
|
-
switch (
|
260119
|
+
switch (key5.type) {
|
260120
260120
|
case "alias":
|
260121
260121
|
case "scalar":
|
260122
260122
|
case "double-quoted-scalar":
|
260123
260123
|
case "single-quoted-scalar":
|
260124
|
-
if (
|
260124
|
+
if (key5.source.includes(`
|
260125
260125
|
`))
|
260126
260126
|
return true;
|
260127
|
-
if (
|
260128
|
-
for (const st2 of
|
260127
|
+
if (key5.end) {
|
260128
|
+
for (const st2 of key5.end)
|
260129
260129
|
if (st2.type === "newline")
|
260130
260130
|
return true;
|
260131
260131
|
}
|
260132
260132
|
return false;
|
260133
260133
|
case "flow-collection":
|
260134
|
-
for (const it2 of
|
260134
|
+
for (const it2 of key5.items) {
|
260135
260135
|
for (const st2 of it2.start)
|
260136
260136
|
if (st2.type === "newline")
|
260137
260137
|
return true;
|
@@ -260196,10 +260196,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260196
260196
|
let offset = bm.offset;
|
260197
260197
|
let commentEnd = null;
|
260198
260198
|
for (const collItem of bm.items) {
|
260199
|
-
const { start: start3, key:
|
260199
|
+
const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
|
260200
260200
|
const keyProps = resolveProps.resolveProps(start3, {
|
260201
260201
|
indicator: "explicit-key-ind",
|
260202
|
-
next:
|
260202
|
+
next: key5 ?? sep3?.[0],
|
260203
260203
|
offset,
|
260204
260204
|
onError,
|
260205
260205
|
parentIndent: bm.indent,
|
@@ -260207,10 +260207,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260207
260207
|
});
|
260208
260208
|
const implicitKey = !keyProps.found;
|
260209
260209
|
if (implicitKey) {
|
260210
|
-
if (
|
260211
|
-
if (
|
260210
|
+
if (key5) {
|
260211
|
+
if (key5.type === "block-seq")
|
260212
260212
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
260213
|
-
else if ("indent" in
|
260213
|
+
else if ("indent" in key5 && key5.indent !== bm.indent)
|
260214
260214
|
onError(offset, "BAD_INDENT", startColMsg);
|
260215
260215
|
}
|
260216
260216
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -260224,17 +260224,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260224
260224
|
}
|
260225
260225
|
continue;
|
260226
260226
|
}
|
260227
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
260228
|
-
onError(
|
260227
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key5)) {
|
260228
|
+
onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
260229
260229
|
}
|
260230
260230
|
} else if (keyProps.found?.indent !== bm.indent) {
|
260231
260231
|
onError(offset, "BAD_INDENT", startColMsg);
|
260232
260232
|
}
|
260233
260233
|
ctx.atKey = true;
|
260234
260234
|
const keyStart = keyProps.end;
|
260235
|
-
const keyNode =
|
260235
|
+
const keyNode = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
260236
260236
|
if (ctx.schema.compat)
|
260237
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
260237
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
|
260238
260238
|
ctx.atKey = false;
|
260239
260239
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
260240
260240
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -260244,7 +260244,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
260244
260244
|
offset: keyNode.range[2],
|
260245
260245
|
onError,
|
260246
260246
|
parentIndent: bm.indent,
|
260247
|
-
startOnNewline: !
|
260247
|
+
startOnNewline: !key5 || key5.type === "block-scalar"
|
260248
260248
|
});
|
260249
260249
|
offset = valueProps.end;
|
260250
260250
|
if (valueProps.found) {
|
@@ -260400,11 +260400,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260400
260400
|
let offset = fc.offset + fc.start.source.length;
|
260401
260401
|
for (let i6 = 0;i6 < fc.items.length; ++i6) {
|
260402
260402
|
const collItem = fc.items[i6];
|
260403
|
-
const { start: start3, key:
|
260403
|
+
const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
|
260404
260404
|
const props = resolveProps.resolveProps(start3, {
|
260405
260405
|
flow: fcName,
|
260406
260406
|
indicator: "explicit-key-ind",
|
260407
|
-
next:
|
260407
|
+
next: key5 ?? sep3?.[0],
|
260408
260408
|
offset,
|
260409
260409
|
onError,
|
260410
260410
|
parentIndent: fc.indent,
|
@@ -260426,8 +260426,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260426
260426
|
offset = props.end;
|
260427
260427
|
continue;
|
260428
260428
|
}
|
260429
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
260430
|
-
onError(
|
260429
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key5))
|
260430
|
+
onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
260431
260431
|
}
|
260432
260432
|
if (i6 === 0) {
|
260433
260433
|
if (props.comma)
|
@@ -260472,8 +260472,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
260472
260472
|
} else {
|
260473
260473
|
ctx.atKey = true;
|
260474
260474
|
const keyStart = props.end;
|
260475
|
-
const keyNode =
|
260476
|
-
if (isBlock(
|
260475
|
+
const keyNode = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
260476
|
+
if (isBlock(key5))
|
260477
260477
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
260478
260478
|
ctx.atKey = false;
|
260479
260479
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -261285,7 +261285,7 @@ var require_composer = __commonJS((exports) => {
|
|
261285
261285
|
var node_process = __require("node:process");
|
261286
261286
|
var directives4 = require_directives2();
|
261287
261287
|
var Document = require_Document();
|
261288
|
-
var
|
261288
|
+
var errors5 = require_errors3();
|
261289
261289
|
var identity2 = require_identity();
|
261290
261290
|
var composeDoc = require_compose_doc();
|
261291
261291
|
var resolveEnd = require_resolve_end();
|
@@ -261336,9 +261336,9 @@ var require_composer = __commonJS((exports) => {
|
|
261336
261336
|
this.onError = (source, code2, message, warning) => {
|
261337
261337
|
const pos = getErrorPos(source);
|
261338
261338
|
if (warning)
|
261339
|
-
this.warnings.push(new
|
261339
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
261340
261340
|
else
|
261341
|
-
this.errors.push(new
|
261341
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
261342
261342
|
};
|
261343
261343
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
261344
261344
|
this.options = options;
|
@@ -261422,7 +261422,7 @@ ${cb}` : comment;
|
|
261422
261422
|
break;
|
261423
261423
|
case "error": {
|
261424
261424
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
261425
|
-
const error5 = new
|
261425
|
+
const error5 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
261426
261426
|
if (this.atDirectives || !this.doc)
|
261427
261427
|
this.errors.push(error5);
|
261428
261428
|
else
|
@@ -261432,7 +261432,7 @@ ${cb}` : comment;
|
|
261432
261432
|
case "doc-end": {
|
261433
261433
|
if (!this.doc) {
|
261434
261434
|
const msg = "Unexpected doc-end without preceding document";
|
261435
|
-
this.errors.push(new
|
261435
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
261436
261436
|
break;
|
261437
261437
|
}
|
261438
261438
|
this.doc.directives.docEnd = true;
|
@@ -261447,7 +261447,7 @@ ${end.comment}` : end.comment;
|
|
261447
261447
|
break;
|
261448
261448
|
}
|
261449
261449
|
default:
|
261450
|
-
this.errors.push(new
|
261450
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
261451
261451
|
}
|
261452
261452
|
}
|
261453
261453
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -261473,7 +261473,7 @@ ${end.comment}` : end.comment;
|
|
261473
261473
|
var require_cst_scalar = __commonJS((exports) => {
|
261474
261474
|
var resolveBlockScalar = require_resolve_block_scalar();
|
261475
261475
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
261476
|
-
var
|
261476
|
+
var errors5 = require_errors3();
|
261477
261477
|
var stringifyString = require_stringifyString();
|
261478
261478
|
function resolveAsScalar(token, strict = true, onError) {
|
261479
261479
|
if (token) {
|
@@ -261482,7 +261482,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261482
261482
|
if (onError)
|
261483
261483
|
onError(offset, code2, message);
|
261484
261484
|
else
|
261485
|
-
throw new
|
261485
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
261486
261486
|
};
|
261487
261487
|
switch (token.type) {
|
261488
261488
|
case "scalar":
|
@@ -261596,9 +261596,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261596
261596
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
261597
261597
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
261598
261598
|
` });
|
261599
|
-
for (const
|
261600
|
-
if (
|
261601
|
-
delete token[
|
261599
|
+
for (const key5 of Object.keys(token))
|
261600
|
+
if (key5 !== "type" && key5 !== "offset")
|
261601
|
+
delete token[key5];
|
261602
261602
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
261603
261603
|
}
|
261604
261604
|
}
|
@@ -261647,9 +261647,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
261647
261647
|
default: {
|
261648
261648
|
const indent2 = "indent" in token ? token.indent : -1;
|
261649
261649
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
261650
|
-
for (const
|
261651
|
-
if (
|
261652
|
-
delete token[
|
261650
|
+
for (const key5 of Object.keys(token))
|
261651
|
+
if (key5 !== "type" && key5 !== "offset")
|
261652
|
+
delete token[key5];
|
261653
261653
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
261654
261654
|
}
|
261655
261655
|
}
|
@@ -261701,12 +261701,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
261701
261701
|
}
|
261702
261702
|
}
|
261703
261703
|
}
|
261704
|
-
function stringifyItem({ start: start3, key:
|
261704
|
+
function stringifyItem({ start: start3, key: key5, sep: sep3, value: value4 }) {
|
261705
261705
|
let res = "";
|
261706
261706
|
for (const st2 of start3)
|
261707
261707
|
res += st2.source;
|
261708
|
-
if (
|
261709
|
-
res += stringifyToken(
|
261708
|
+
if (key5)
|
261709
|
+
res += stringifyToken(key5);
|
261710
261710
|
if (sep3)
|
261711
261711
|
for (const st2 of sep3)
|
261712
261712
|
res += st2.source;
|
@@ -263003,7 +263003,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263003
263003
|
});
|
263004
263004
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
263005
263005
|
const start4 = getFirstKeyStartProps(it2.start);
|
263006
|
-
const
|
263006
|
+
const key5 = it2.key;
|
263007
263007
|
const sep3 = it2.sep;
|
263008
263008
|
sep3.push(this.sourceToken);
|
263009
263009
|
delete it2.key;
|
@@ -263012,7 +263012,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263012
263012
|
type: "block-map",
|
263013
263013
|
offset: this.offset,
|
263014
263014
|
indent: this.indent,
|
263015
|
-
items: [{ start: start4, key:
|
263015
|
+
items: [{ start: start4, key: key5, sep: sep3 }]
|
263016
263016
|
});
|
263017
263017
|
} else if (start3.length > 0) {
|
263018
263018
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -263335,7 +263335,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
263335
263335
|
var require_public_api = __commonJS((exports) => {
|
263336
263336
|
var composer = require_composer();
|
263337
263337
|
var Document = require_Document();
|
263338
|
-
var
|
263338
|
+
var errors5 = require_errors3();
|
263339
263339
|
var log = require_log();
|
263340
263340
|
var identity2 = require_identity();
|
263341
263341
|
var lineCounter = require_line_counter();
|
@@ -263352,8 +263352,8 @@ var require_public_api = __commonJS((exports) => {
|
|
263352
263352
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
263353
263353
|
if (prettyErrors && lineCounter2)
|
263354
263354
|
for (const doc of docs) {
|
263355
|
-
doc.errors.forEach(
|
263356
|
-
doc.warnings.forEach(
|
263355
|
+
doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
263356
|
+
doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
263357
263357
|
}
|
263358
263358
|
if (docs.length > 0)
|
263359
263359
|
return docs;
|
@@ -263368,13 +263368,13 @@ var require_public_api = __commonJS((exports) => {
|
|
263368
263368
|
if (!doc)
|
263369
263369
|
doc = _doc;
|
263370
263370
|
else if (doc.options.logLevel !== "silent") {
|
263371
|
-
doc.errors.push(new
|
263371
|
+
doc.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
263372
263372
|
break;
|
263373
263373
|
}
|
263374
263374
|
}
|
263375
263375
|
if (prettyErrors && lineCounter2) {
|
263376
|
-
doc.errors.forEach(
|
263377
|
-
doc.warnings.forEach(
|
263376
|
+
doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
263377
|
+
doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
263378
263378
|
}
|
263379
263379
|
return doc;
|
263380
263380
|
}
|
@@ -274462,7 +274462,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
274462
274462
|
var package_default = {
|
274463
274463
|
name: "@settlemint/sdk-cli",
|
274464
274464
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
274465
|
-
version: "1.1.8-
|
274465
|
+
version: "1.1.8-prbfa3571f",
|
274466
274466
|
type: "module",
|
274467
274467
|
private: false,
|
274468
274468
|
license: "FSL-1.1-MIT",
|
@@ -274506,12 +274506,12 @@ var package_default = {
|
|
274506
274506
|
},
|
274507
274507
|
devDependencies: {
|
274508
274508
|
"@commander-js/extra-typings": "13.1.0",
|
274509
|
-
"@inquirer/confirm": "5.1.
|
274509
|
+
"@inquirer/confirm": "5.1.6",
|
274510
274510
|
"@inquirer/input": "4.1.5",
|
274511
274511
|
"@inquirer/password": "4.0.8",
|
274512
|
-
"@inquirer/select": "4.0.
|
274513
|
-
"@settlemint/sdk-js": "1.1.8-
|
274514
|
-
"@settlemint/sdk-utils": "1.1.8-
|
274512
|
+
"@inquirer/select": "4.0.8",
|
274513
|
+
"@settlemint/sdk-js": "1.1.8-prbfa3571f",
|
274514
|
+
"@settlemint/sdk-utils": "1.1.8-prbfa3571f",
|
274515
274515
|
"@types/node": "22.13.4",
|
274516
274516
|
"@types/semver": "7.5.8",
|
274517
274517
|
"@types/which": "3.0.4",
|
@@ -274601,7 +274601,6 @@ var {
|
|
274601
274601
|
} = import__.default;
|
274602
274602
|
|
274603
274603
|
// ../../node_modules/@inquirer/core/dist/esm/lib/key.js
|
274604
|
-
var isBackspaceKey = (key) => key.name === "backspace";
|
274605
274604
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
274606
274605
|
// ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
|
274607
274606
|
class AbortPromptError extends Error {
|
@@ -279720,7 +279719,7 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
279720
279719
|
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
|
279721
279720
|
var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
|
279722
279721
|
var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
|
279723
|
-
var
|
279722
|
+
var isBackspaceKey = (key2) => key2.name === "backspace";
|
279724
279723
|
var isNumberKey = (key2) => "123456789".includes(key2.name);
|
279725
279724
|
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
279726
279725
|
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
@@ -280370,7 +280369,7 @@ var esm_default2 = createPrompt2((config3, done) => {
|
|
280370
280369
|
if (item != null && isSelectable(item)) {
|
280371
280370
|
setActive(position);
|
280372
280371
|
}
|
280373
|
-
} else if (
|
280372
|
+
} else if (isBackspaceKey(key3)) {
|
280374
280373
|
rl.clearLine(0);
|
280375
280374
|
} else {
|
280376
280375
|
const searchTerm = rl.line.toLowerCase();
|
@@ -280792,23 +280791,478 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
280792
280791
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
280793
280792
|
});
|
280794
280793
|
|
280794
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
|
280795
|
+
var isBackspaceKey2 = (key3) => key3.name === "backspace";
|
280796
|
+
var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
|
280797
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
280798
|
+
class AbortPromptError3 extends Error {
|
280799
|
+
name = "AbortPromptError";
|
280800
|
+
message = "Prompt was aborted";
|
280801
|
+
constructor(options) {
|
280802
|
+
super();
|
280803
|
+
this.cause = options?.cause;
|
280804
|
+
}
|
280805
|
+
}
|
280806
|
+
|
280807
|
+
class CancelPromptError3 extends Error {
|
280808
|
+
name = "CancelPromptError";
|
280809
|
+
message = "Prompt was canceled";
|
280810
|
+
}
|
280811
|
+
|
280812
|
+
class ExitPromptError3 extends Error {
|
280813
|
+
name = "ExitPromptError";
|
280814
|
+
}
|
280815
|
+
|
280816
|
+
class HookError3 extends Error {
|
280817
|
+
name = "HookError";
|
280818
|
+
}
|
280819
|
+
|
280820
|
+
class ValidationError3 extends Error {
|
280821
|
+
name = "ValidationError";
|
280822
|
+
}
|
280823
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
280824
|
+
import { AsyncResource as AsyncResource8 } from "node:async_hooks";
|
280825
|
+
|
280826
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
280827
|
+
import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
|
280828
|
+
var hookStorage3 = new AsyncLocalStorage3;
|
280829
|
+
function createStore3(rl) {
|
280830
|
+
const store = {
|
280831
|
+
rl,
|
280832
|
+
hooks: [],
|
280833
|
+
hooksCleanup: [],
|
280834
|
+
hooksEffect: [],
|
280835
|
+
index: 0,
|
280836
|
+
handleChange() {
|
280837
|
+
}
|
280838
|
+
};
|
280839
|
+
return store;
|
280840
|
+
}
|
280841
|
+
function withHooks3(rl, cb) {
|
280842
|
+
const store = createStore3(rl);
|
280843
|
+
return hookStorage3.run(store, () => {
|
280844
|
+
function cycle(render) {
|
280845
|
+
store.handleChange = () => {
|
280846
|
+
store.index = 0;
|
280847
|
+
render();
|
280848
|
+
};
|
280849
|
+
store.handleChange();
|
280850
|
+
}
|
280851
|
+
return cb(cycle);
|
280852
|
+
});
|
280853
|
+
}
|
280854
|
+
function getStore3() {
|
280855
|
+
const store = hookStorage3.getStore();
|
280856
|
+
if (!store) {
|
280857
|
+
throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
|
280858
|
+
}
|
280859
|
+
return store;
|
280860
|
+
}
|
280861
|
+
function readline5() {
|
280862
|
+
return getStore3().rl;
|
280863
|
+
}
|
280864
|
+
function withUpdates3(fn) {
|
280865
|
+
const wrapped = (...args) => {
|
280866
|
+
const store = getStore3();
|
280867
|
+
let shouldUpdate = false;
|
280868
|
+
const oldHandleChange = store.handleChange;
|
280869
|
+
store.handleChange = () => {
|
280870
|
+
shouldUpdate = true;
|
280871
|
+
};
|
280872
|
+
const returnValue = fn(...args);
|
280873
|
+
if (shouldUpdate) {
|
280874
|
+
oldHandleChange();
|
280875
|
+
}
|
280876
|
+
store.handleChange = oldHandleChange;
|
280877
|
+
return returnValue;
|
280878
|
+
};
|
280879
|
+
return AsyncResource7.bind(wrapped);
|
280880
|
+
}
|
280881
|
+
function withPointer3(cb) {
|
280882
|
+
const store = getStore3();
|
280883
|
+
const { index } = store;
|
280884
|
+
const pointer = {
|
280885
|
+
get() {
|
280886
|
+
return store.hooks[index];
|
280887
|
+
},
|
280888
|
+
set(value4) {
|
280889
|
+
store.hooks[index] = value4;
|
280890
|
+
},
|
280891
|
+
initialized: index in store.hooks
|
280892
|
+
};
|
280893
|
+
const returnValue = cb(pointer);
|
280894
|
+
store.index++;
|
280895
|
+
return returnValue;
|
280896
|
+
}
|
280897
|
+
function handleChange3() {
|
280898
|
+
getStore3().handleChange();
|
280899
|
+
}
|
280900
|
+
var effectScheduler3 = {
|
280901
|
+
queue(cb) {
|
280902
|
+
const store = getStore3();
|
280903
|
+
const { index } = store;
|
280904
|
+
store.hooksEffect.push(() => {
|
280905
|
+
store.hooksCleanup[index]?.();
|
280906
|
+
const cleanFn = cb(readline5());
|
280907
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
280908
|
+
throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
|
280909
|
+
}
|
280910
|
+
store.hooksCleanup[index] = cleanFn;
|
280911
|
+
});
|
280912
|
+
},
|
280913
|
+
run() {
|
280914
|
+
const store = getStore3();
|
280915
|
+
withUpdates3(() => {
|
280916
|
+
store.hooksEffect.forEach((effect) => {
|
280917
|
+
effect();
|
280918
|
+
});
|
280919
|
+
store.hooksEffect.length = 0;
|
280920
|
+
})();
|
280921
|
+
},
|
280922
|
+
clearAll() {
|
280923
|
+
const store = getStore3();
|
280924
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
280925
|
+
cleanFn?.();
|
280926
|
+
});
|
280927
|
+
store.hooksEffect.length = 0;
|
280928
|
+
store.hooksCleanup.length = 0;
|
280929
|
+
}
|
280930
|
+
};
|
280931
|
+
|
280932
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
280933
|
+
function useState3(defaultValue) {
|
280934
|
+
return withPointer3((pointer) => {
|
280935
|
+
const setFn = (newValue) => {
|
280936
|
+
if (pointer.get() !== newValue) {
|
280937
|
+
pointer.set(newValue);
|
280938
|
+
handleChange3();
|
280939
|
+
}
|
280940
|
+
};
|
280941
|
+
if (pointer.initialized) {
|
280942
|
+
return [pointer.get(), setFn];
|
280943
|
+
}
|
280944
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
280945
|
+
pointer.set(value4);
|
280946
|
+
return [value4, setFn];
|
280947
|
+
});
|
280948
|
+
}
|
280949
|
+
|
280950
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
280951
|
+
function useEffect3(cb, depArray) {
|
280952
|
+
withPointer3((pointer) => {
|
280953
|
+
const oldDeps = pointer.get();
|
280954
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
280955
|
+
if (hasChanged) {
|
280956
|
+
effectScheduler3.queue(cb);
|
280957
|
+
}
|
280958
|
+
pointer.set(depArray);
|
280959
|
+
});
|
280960
|
+
}
|
280961
|
+
|
280962
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
280963
|
+
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
280964
|
+
var defaultTheme3 = {
|
280965
|
+
prefix: {
|
280966
|
+
idle: import_yoctocolors_cjs5.default.blue("?"),
|
280967
|
+
done: import_yoctocolors_cjs5.default.green(esm_default.tick)
|
280968
|
+
},
|
280969
|
+
spinner: {
|
280970
|
+
interval: 80,
|
280971
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))
|
280972
|
+
},
|
280973
|
+
style: {
|
280974
|
+
answer: import_yoctocolors_cjs5.default.cyan,
|
280975
|
+
message: import_yoctocolors_cjs5.default.bold,
|
280976
|
+
error: (text2) => import_yoctocolors_cjs5.default.red(`> ${text2}`),
|
280977
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs5.default.dim(`(${text2})`),
|
280978
|
+
help: import_yoctocolors_cjs5.default.dim,
|
280979
|
+
highlight: import_yoctocolors_cjs5.default.cyan,
|
280980
|
+
key: (text2) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text2}>`))
|
280981
|
+
}
|
280982
|
+
};
|
280983
|
+
|
280984
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
280985
|
+
function isPlainObject4(value4) {
|
280986
|
+
if (typeof value4 !== "object" || value4 === null)
|
280987
|
+
return false;
|
280988
|
+
let proto = value4;
|
280989
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
280990
|
+
proto = Object.getPrototypeOf(proto);
|
280991
|
+
}
|
280992
|
+
return Object.getPrototypeOf(value4) === proto;
|
280993
|
+
}
|
280994
|
+
function deepMerge4(...objects) {
|
280995
|
+
const output = {};
|
280996
|
+
for (const obj of objects) {
|
280997
|
+
for (const [key3, value4] of Object.entries(obj)) {
|
280998
|
+
const prevValue = output[key3];
|
280999
|
+
output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
|
281000
|
+
}
|
281001
|
+
}
|
281002
|
+
return output;
|
281003
|
+
}
|
281004
|
+
function makeTheme3(...themes) {
|
281005
|
+
const themesToMerge = [
|
281006
|
+
defaultTheme3,
|
281007
|
+
...themes.filter((theme) => theme != null)
|
281008
|
+
];
|
281009
|
+
return deepMerge4(...themesToMerge);
|
281010
|
+
}
|
281011
|
+
|
281012
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
281013
|
+
function usePrefix3({ status = "idle", theme }) {
|
281014
|
+
const [showLoader, setShowLoader] = useState3(false);
|
281015
|
+
const [tick, setTick] = useState3(0);
|
281016
|
+
const { prefix, spinner: spinner2 } = makeTheme3(theme);
|
281017
|
+
useEffect3(() => {
|
281018
|
+
if (status === "loading") {
|
281019
|
+
let tickInterval;
|
281020
|
+
let inc = -1;
|
281021
|
+
const delayTimeout = setTimeout(AsyncResource8.bind(() => {
|
281022
|
+
setShowLoader(true);
|
281023
|
+
tickInterval = setInterval(AsyncResource8.bind(() => {
|
281024
|
+
inc = inc + 1;
|
281025
|
+
setTick(inc % spinner2.frames.length);
|
281026
|
+
}), spinner2.interval);
|
281027
|
+
}), 300);
|
281028
|
+
return () => {
|
281029
|
+
clearTimeout(delayTimeout);
|
281030
|
+
clearInterval(tickInterval);
|
281031
|
+
};
|
281032
|
+
} else {
|
281033
|
+
setShowLoader(false);
|
281034
|
+
}
|
281035
|
+
}, [status]);
|
281036
|
+
if (showLoader) {
|
281037
|
+
return spinner2.frames[tick];
|
281038
|
+
}
|
281039
|
+
const iconName = status === "loading" ? "idle" : status;
|
281040
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
281041
|
+
}
|
281042
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
281043
|
+
function useRef3(val) {
|
281044
|
+
return useState3({ current: val })[0];
|
281045
|
+
}
|
281046
|
+
|
281047
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
281048
|
+
function useKeypress3(userHandler) {
|
281049
|
+
const signal = useRef3(userHandler);
|
281050
|
+
signal.current = userHandler;
|
281051
|
+
useEffect3((rl) => {
|
281052
|
+
let ignore = false;
|
281053
|
+
const handler = withUpdates3((_input, event) => {
|
281054
|
+
if (ignore)
|
281055
|
+
return;
|
281056
|
+
signal.current(event, rl);
|
281057
|
+
});
|
281058
|
+
rl.input.on("keypress", handler);
|
281059
|
+
return () => {
|
281060
|
+
ignore = true;
|
281061
|
+
rl.input.removeListener("keypress", handler);
|
281062
|
+
};
|
281063
|
+
}, []);
|
281064
|
+
}
|
281065
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
281066
|
+
var import_cli_width3 = __toESM(require_cli_width(), 1);
|
281067
|
+
var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
|
281068
|
+
function breakLines3(content, width) {
|
281069
|
+
return content.split(`
|
281070
|
+
`).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
|
281071
|
+
`).map((str) => str.trimEnd())).join(`
|
281072
|
+
`);
|
281073
|
+
}
|
281074
|
+
function readlineWidth3() {
|
281075
|
+
return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
|
281076
|
+
}
|
281077
|
+
|
281078
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
281079
|
+
var import_mute_stream3 = __toESM(require_lib(), 1);
|
281080
|
+
import * as readline6 from "node:readline";
|
281081
|
+
import { AsyncResource as AsyncResource9 } from "node:async_hooks";
|
281082
|
+
|
281083
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
281084
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
281085
|
+
import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
|
281086
|
+
var height3 = (content) => content.split(`
|
281087
|
+
`).length;
|
281088
|
+
var lastLine3 = (content) => content.split(`
|
281089
|
+
`).pop() ?? "";
|
281090
|
+
function cursorDown3(n6) {
|
281091
|
+
return n6 > 0 ? import_ansi_escapes4.default.cursorDown(n6) : "";
|
281092
|
+
}
|
281093
|
+
|
281094
|
+
class ScreenManager3 {
|
281095
|
+
rl;
|
281096
|
+
height = 0;
|
281097
|
+
extraLinesUnderPrompt = 0;
|
281098
|
+
cursorPos;
|
281099
|
+
constructor(rl) {
|
281100
|
+
this.rl = rl;
|
281101
|
+
this.rl = rl;
|
281102
|
+
this.cursorPos = rl.getCursorPos();
|
281103
|
+
}
|
281104
|
+
write(content) {
|
281105
|
+
this.rl.output.unmute();
|
281106
|
+
this.rl.output.write(content);
|
281107
|
+
this.rl.output.mute();
|
281108
|
+
}
|
281109
|
+
render(content, bottomContent = "") {
|
281110
|
+
const promptLine = lastLine3(content);
|
281111
|
+
const rawPromptLine = stripVTControlCharacters4(promptLine);
|
281112
|
+
let prompt = rawPromptLine;
|
281113
|
+
if (this.rl.line.length > 0) {
|
281114
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
281115
|
+
}
|
281116
|
+
this.rl.setPrompt(prompt);
|
281117
|
+
this.cursorPos = this.rl.getCursorPos();
|
281118
|
+
const width = readlineWidth3();
|
281119
|
+
content = breakLines3(content, width);
|
281120
|
+
bottomContent = breakLines3(bottomContent, width);
|
281121
|
+
if (rawPromptLine.length % width === 0) {
|
281122
|
+
content += `
|
281123
|
+
`;
|
281124
|
+
}
|
281125
|
+
let output = content + (bottomContent ? `
|
281126
|
+
` + bottomContent : "");
|
281127
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
281128
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
|
281129
|
+
if (bottomContentHeight > 0)
|
281130
|
+
output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);
|
281131
|
+
output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);
|
281132
|
+
this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);
|
281133
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
281134
|
+
this.height = height3(output);
|
281135
|
+
}
|
281136
|
+
checkCursorPos() {
|
281137
|
+
const cursorPos = this.rl.getCursorPos();
|
281138
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
281139
|
+
this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));
|
281140
|
+
this.cursorPos = cursorPos;
|
281141
|
+
}
|
281142
|
+
}
|
281143
|
+
done({ clearContent }) {
|
281144
|
+
this.rl.setPrompt("");
|
281145
|
+
let output = cursorDown3(this.extraLinesUnderPrompt);
|
281146
|
+
output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `
|
281147
|
+
`;
|
281148
|
+
output += import_ansi_escapes4.default.cursorShow;
|
281149
|
+
this.write(output);
|
281150
|
+
this.rl.close();
|
281151
|
+
}
|
281152
|
+
}
|
281153
|
+
|
281154
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
281155
|
+
class PromisePolyfill3 extends Promise {
|
281156
|
+
static withResolver() {
|
281157
|
+
let resolve6;
|
281158
|
+
let reject;
|
281159
|
+
const promise = new Promise((res, rej) => {
|
281160
|
+
resolve6 = res;
|
281161
|
+
reject = rej;
|
281162
|
+
});
|
281163
|
+
return { promise, resolve: resolve6, reject };
|
281164
|
+
}
|
281165
|
+
}
|
281166
|
+
|
281167
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
281168
|
+
function getCallSites3() {
|
281169
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
281170
|
+
try {
|
281171
|
+
let result = [];
|
281172
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
281173
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
281174
|
+
result = callSitesWithoutCurrent;
|
281175
|
+
return callSitesWithoutCurrent;
|
281176
|
+
};
|
281177
|
+
new Error().stack;
|
281178
|
+
return result;
|
281179
|
+
} finally {
|
281180
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
281181
|
+
}
|
281182
|
+
}
|
281183
|
+
function createPrompt3(view) {
|
281184
|
+
const callSites = getCallSites3();
|
281185
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
281186
|
+
const prompt = (config3, context = {}) => {
|
281187
|
+
const { input = process.stdin, signal } = context;
|
281188
|
+
const cleanups = new Set;
|
281189
|
+
const output = new import_mute_stream3.default;
|
281190
|
+
output.pipe(context.output ?? process.stdout);
|
281191
|
+
const rl = readline6.createInterface({
|
281192
|
+
terminal: true,
|
281193
|
+
input,
|
281194
|
+
output
|
281195
|
+
});
|
281196
|
+
const screen = new ScreenManager3(rl);
|
281197
|
+
const { promise, resolve: resolve6, reject } = PromisePolyfill3.withResolver();
|
281198
|
+
const cancel3 = () => reject(new CancelPromptError3);
|
281199
|
+
if (signal) {
|
281200
|
+
const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
|
281201
|
+
if (signal.aborted) {
|
281202
|
+
abort();
|
281203
|
+
return Object.assign(promise, { cancel: cancel3 });
|
281204
|
+
}
|
281205
|
+
signal.addEventListener("abort", abort);
|
281206
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
281207
|
+
}
|
281208
|
+
cleanups.add(onExit((code2, signal2) => {
|
281209
|
+
reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
|
281210
|
+
}));
|
281211
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
281212
|
+
rl.input.on("keypress", checkCursorPos);
|
281213
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
281214
|
+
return withHooks3(rl, (cycle) => {
|
281215
|
+
const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
|
281216
|
+
rl.on("close", hooksCleanup);
|
281217
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
281218
|
+
cycle(() => {
|
281219
|
+
try {
|
281220
|
+
const nextView = view(config3, (value4) => {
|
281221
|
+
setImmediate(() => resolve6(value4));
|
281222
|
+
});
|
281223
|
+
if (nextView === undefined) {
|
281224
|
+
throw new Error(`Prompt functions must return a string.
|
281225
|
+
at ${callerFilename}`);
|
281226
|
+
}
|
281227
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
281228
|
+
screen.render(content, bottomContent);
|
281229
|
+
effectScheduler3.run();
|
281230
|
+
} catch (error5) {
|
281231
|
+
reject(error5);
|
281232
|
+
}
|
281233
|
+
});
|
281234
|
+
return Object.assign(promise.then((answer) => {
|
281235
|
+
effectScheduler3.clearAll();
|
281236
|
+
return answer;
|
281237
|
+
}, (error5) => {
|
281238
|
+
effectScheduler3.clearAll();
|
281239
|
+
throw error5;
|
281240
|
+
}).finally(() => {
|
281241
|
+
cleanups.forEach((cleanup) => cleanup());
|
281242
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
281243
|
+
output.end();
|
281244
|
+
}).then(() => promise), { cancel: cancel3 });
|
281245
|
+
});
|
281246
|
+
};
|
281247
|
+
return prompt;
|
281248
|
+
}
|
280795
281249
|
// ../../node_modules/@inquirer/input/dist/esm/index.js
|
280796
281250
|
var inputTheme = {
|
280797
281251
|
validationFailureMode: "keep"
|
280798
281252
|
};
|
280799
|
-
var esm_default4 =
|
281253
|
+
var esm_default4 = createPrompt3((config3, done) => {
|
280800
281254
|
const { required, validate: validate3 = () => true } = config3;
|
280801
|
-
const theme =
|
280802
|
-
const [status, setStatus] =
|
280803
|
-
const [defaultValue = "", setDefaultValue] =
|
280804
|
-
const [errorMsg, setError] =
|
280805
|
-
const [value4, setValue] =
|
280806
|
-
const prefix =
|
280807
|
-
|
281255
|
+
const theme = makeTheme3(inputTheme, config3.theme);
|
281256
|
+
const [status, setStatus] = useState3("idle");
|
281257
|
+
const [defaultValue = "", setDefaultValue] = useState3(config3.default);
|
281258
|
+
const [errorMsg, setError] = useState3();
|
281259
|
+
const [value4, setValue] = useState3("");
|
281260
|
+
const prefix = usePrefix3({ status, theme });
|
281261
|
+
useKeypress3(async (key4, rl) => {
|
280808
281262
|
if (status !== "idle") {
|
280809
281263
|
return;
|
280810
281264
|
}
|
280811
|
-
if (
|
281265
|
+
if (isEnterKey3(key4)) {
|
280812
281266
|
const answer = value4 || defaultValue;
|
280813
281267
|
setStatus("loading");
|
280814
281268
|
const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -280825,9 +281279,9 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
280825
281279
|
setError(isValid2 || "You must provide a valid value");
|
280826
281280
|
setStatus("idle");
|
280827
281281
|
}
|
280828
|
-
} else if (
|
281282
|
+
} else if (isBackspaceKey2(key4) && !value4) {
|
280829
281283
|
setDefaultValue(undefined);
|
280830
|
-
} else if (
|
281284
|
+
} else if (key4.name === "tab" && !value4) {
|
280831
281285
|
setDefaultValue(undefined);
|
280832
281286
|
rl.clearLine(0);
|
280833
281287
|
rl.write(defaultValue);
|
@@ -280858,20 +281312,474 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
280858
281312
|
];
|
280859
281313
|
});
|
280860
281314
|
|
281315
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
281316
|
+
var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
|
281317
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
281318
|
+
class AbortPromptError4 extends Error {
|
281319
|
+
name = "AbortPromptError";
|
281320
|
+
message = "Prompt was aborted";
|
281321
|
+
constructor(options) {
|
281322
|
+
super();
|
281323
|
+
this.cause = options?.cause;
|
281324
|
+
}
|
281325
|
+
}
|
281326
|
+
|
281327
|
+
class CancelPromptError4 extends Error {
|
281328
|
+
name = "CancelPromptError";
|
281329
|
+
message = "Prompt was canceled";
|
281330
|
+
}
|
281331
|
+
|
281332
|
+
class ExitPromptError4 extends Error {
|
281333
|
+
name = "ExitPromptError";
|
281334
|
+
}
|
281335
|
+
|
281336
|
+
class HookError4 extends Error {
|
281337
|
+
name = "HookError";
|
281338
|
+
}
|
281339
|
+
|
281340
|
+
class ValidationError4 extends Error {
|
281341
|
+
name = "ValidationError";
|
281342
|
+
}
|
281343
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
281344
|
+
import { AsyncResource as AsyncResource11 } from "node:async_hooks";
|
281345
|
+
|
281346
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
281347
|
+
import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource10 } from "node:async_hooks";
|
281348
|
+
var hookStorage4 = new AsyncLocalStorage4;
|
281349
|
+
function createStore4(rl) {
|
281350
|
+
const store = {
|
281351
|
+
rl,
|
281352
|
+
hooks: [],
|
281353
|
+
hooksCleanup: [],
|
281354
|
+
hooksEffect: [],
|
281355
|
+
index: 0,
|
281356
|
+
handleChange() {
|
281357
|
+
}
|
281358
|
+
};
|
281359
|
+
return store;
|
281360
|
+
}
|
281361
|
+
function withHooks4(rl, cb) {
|
281362
|
+
const store = createStore4(rl);
|
281363
|
+
return hookStorage4.run(store, () => {
|
281364
|
+
function cycle(render) {
|
281365
|
+
store.handleChange = () => {
|
281366
|
+
store.index = 0;
|
281367
|
+
render();
|
281368
|
+
};
|
281369
|
+
store.handleChange();
|
281370
|
+
}
|
281371
|
+
return cb(cycle);
|
281372
|
+
});
|
281373
|
+
}
|
281374
|
+
function getStore4() {
|
281375
|
+
const store = hookStorage4.getStore();
|
281376
|
+
if (!store) {
|
281377
|
+
throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
|
281378
|
+
}
|
281379
|
+
return store;
|
281380
|
+
}
|
281381
|
+
function readline7() {
|
281382
|
+
return getStore4().rl;
|
281383
|
+
}
|
281384
|
+
function withUpdates4(fn) {
|
281385
|
+
const wrapped = (...args) => {
|
281386
|
+
const store = getStore4();
|
281387
|
+
let shouldUpdate = false;
|
281388
|
+
const oldHandleChange = store.handleChange;
|
281389
|
+
store.handleChange = () => {
|
281390
|
+
shouldUpdate = true;
|
281391
|
+
};
|
281392
|
+
const returnValue = fn(...args);
|
281393
|
+
if (shouldUpdate) {
|
281394
|
+
oldHandleChange();
|
281395
|
+
}
|
281396
|
+
store.handleChange = oldHandleChange;
|
281397
|
+
return returnValue;
|
281398
|
+
};
|
281399
|
+
return AsyncResource10.bind(wrapped);
|
281400
|
+
}
|
281401
|
+
function withPointer4(cb) {
|
281402
|
+
const store = getStore4();
|
281403
|
+
const { index } = store;
|
281404
|
+
const pointer = {
|
281405
|
+
get() {
|
281406
|
+
return store.hooks[index];
|
281407
|
+
},
|
281408
|
+
set(value4) {
|
281409
|
+
store.hooks[index] = value4;
|
281410
|
+
},
|
281411
|
+
initialized: index in store.hooks
|
281412
|
+
};
|
281413
|
+
const returnValue = cb(pointer);
|
281414
|
+
store.index++;
|
281415
|
+
return returnValue;
|
281416
|
+
}
|
281417
|
+
function handleChange4() {
|
281418
|
+
getStore4().handleChange();
|
281419
|
+
}
|
281420
|
+
var effectScheduler4 = {
|
281421
|
+
queue(cb) {
|
281422
|
+
const store = getStore4();
|
281423
|
+
const { index } = store;
|
281424
|
+
store.hooksEffect.push(() => {
|
281425
|
+
store.hooksCleanup[index]?.();
|
281426
|
+
const cleanFn = cb(readline7());
|
281427
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
281428
|
+
throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
|
281429
|
+
}
|
281430
|
+
store.hooksCleanup[index] = cleanFn;
|
281431
|
+
});
|
281432
|
+
},
|
281433
|
+
run() {
|
281434
|
+
const store = getStore4();
|
281435
|
+
withUpdates4(() => {
|
281436
|
+
store.hooksEffect.forEach((effect) => {
|
281437
|
+
effect();
|
281438
|
+
});
|
281439
|
+
store.hooksEffect.length = 0;
|
281440
|
+
})();
|
281441
|
+
},
|
281442
|
+
clearAll() {
|
281443
|
+
const store = getStore4();
|
281444
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
281445
|
+
cleanFn?.();
|
281446
|
+
});
|
281447
|
+
store.hooksEffect.length = 0;
|
281448
|
+
store.hooksCleanup.length = 0;
|
281449
|
+
}
|
281450
|
+
};
|
281451
|
+
|
281452
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
281453
|
+
function useState4(defaultValue) {
|
281454
|
+
return withPointer4((pointer) => {
|
281455
|
+
const setFn = (newValue) => {
|
281456
|
+
if (pointer.get() !== newValue) {
|
281457
|
+
pointer.set(newValue);
|
281458
|
+
handleChange4();
|
281459
|
+
}
|
281460
|
+
};
|
281461
|
+
if (pointer.initialized) {
|
281462
|
+
return [pointer.get(), setFn];
|
281463
|
+
}
|
281464
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
281465
|
+
pointer.set(value4);
|
281466
|
+
return [value4, setFn];
|
281467
|
+
});
|
281468
|
+
}
|
281469
|
+
|
281470
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
281471
|
+
function useEffect4(cb, depArray) {
|
281472
|
+
withPointer4((pointer) => {
|
281473
|
+
const oldDeps = pointer.get();
|
281474
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
281475
|
+
if (hasChanged) {
|
281476
|
+
effectScheduler4.queue(cb);
|
281477
|
+
}
|
281478
|
+
pointer.set(depArray);
|
281479
|
+
});
|
281480
|
+
}
|
281481
|
+
|
281482
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
281483
|
+
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
281484
|
+
var defaultTheme4 = {
|
281485
|
+
prefix: {
|
281486
|
+
idle: import_yoctocolors_cjs6.default.blue("?"),
|
281487
|
+
done: import_yoctocolors_cjs6.default.green(esm_default.tick)
|
281488
|
+
},
|
281489
|
+
spinner: {
|
281490
|
+
interval: 80,
|
281491
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
|
281492
|
+
},
|
281493
|
+
style: {
|
281494
|
+
answer: import_yoctocolors_cjs6.default.cyan,
|
281495
|
+
message: import_yoctocolors_cjs6.default.bold,
|
281496
|
+
error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
|
281497
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
|
281498
|
+
help: import_yoctocolors_cjs6.default.dim,
|
281499
|
+
highlight: import_yoctocolors_cjs6.default.cyan,
|
281500
|
+
key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
|
281501
|
+
}
|
281502
|
+
};
|
281503
|
+
|
281504
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
281505
|
+
function isPlainObject5(value4) {
|
281506
|
+
if (typeof value4 !== "object" || value4 === null)
|
281507
|
+
return false;
|
281508
|
+
let proto = value4;
|
281509
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
281510
|
+
proto = Object.getPrototypeOf(proto);
|
281511
|
+
}
|
281512
|
+
return Object.getPrototypeOf(value4) === proto;
|
281513
|
+
}
|
281514
|
+
function deepMerge5(...objects) {
|
281515
|
+
const output = {};
|
281516
|
+
for (const obj of objects) {
|
281517
|
+
for (const [key4, value4] of Object.entries(obj)) {
|
281518
|
+
const prevValue = output[key4];
|
281519
|
+
output[key4] = isPlainObject5(prevValue) && isPlainObject5(value4) ? deepMerge5(prevValue, value4) : value4;
|
281520
|
+
}
|
281521
|
+
}
|
281522
|
+
return output;
|
281523
|
+
}
|
281524
|
+
function makeTheme4(...themes) {
|
281525
|
+
const themesToMerge = [
|
281526
|
+
defaultTheme4,
|
281527
|
+
...themes.filter((theme) => theme != null)
|
281528
|
+
];
|
281529
|
+
return deepMerge5(...themesToMerge);
|
281530
|
+
}
|
281531
|
+
|
281532
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
281533
|
+
function usePrefix4({ status = "idle", theme }) {
|
281534
|
+
const [showLoader, setShowLoader] = useState4(false);
|
281535
|
+
const [tick, setTick] = useState4(0);
|
281536
|
+
const { prefix, spinner: spinner2 } = makeTheme4(theme);
|
281537
|
+
useEffect4(() => {
|
281538
|
+
if (status === "loading") {
|
281539
|
+
let tickInterval;
|
281540
|
+
let inc = -1;
|
281541
|
+
const delayTimeout = setTimeout(AsyncResource11.bind(() => {
|
281542
|
+
setShowLoader(true);
|
281543
|
+
tickInterval = setInterval(AsyncResource11.bind(() => {
|
281544
|
+
inc = inc + 1;
|
281545
|
+
setTick(inc % spinner2.frames.length);
|
281546
|
+
}), spinner2.interval);
|
281547
|
+
}), 300);
|
281548
|
+
return () => {
|
281549
|
+
clearTimeout(delayTimeout);
|
281550
|
+
clearInterval(tickInterval);
|
281551
|
+
};
|
281552
|
+
} else {
|
281553
|
+
setShowLoader(false);
|
281554
|
+
}
|
281555
|
+
}, [status]);
|
281556
|
+
if (showLoader) {
|
281557
|
+
return spinner2.frames[tick];
|
281558
|
+
}
|
281559
|
+
const iconName = status === "loading" ? "idle" : status;
|
281560
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
281561
|
+
}
|
281562
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
281563
|
+
function useRef4(val) {
|
281564
|
+
return useState4({ current: val })[0];
|
281565
|
+
}
|
281566
|
+
|
281567
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
281568
|
+
function useKeypress4(userHandler) {
|
281569
|
+
const signal = useRef4(userHandler);
|
281570
|
+
signal.current = userHandler;
|
281571
|
+
useEffect4((rl) => {
|
281572
|
+
let ignore = false;
|
281573
|
+
const handler = withUpdates4((_input, event) => {
|
281574
|
+
if (ignore)
|
281575
|
+
return;
|
281576
|
+
signal.current(event, rl);
|
281577
|
+
});
|
281578
|
+
rl.input.on("keypress", handler);
|
281579
|
+
return () => {
|
281580
|
+
ignore = true;
|
281581
|
+
rl.input.removeListener("keypress", handler);
|
281582
|
+
};
|
281583
|
+
}, []);
|
281584
|
+
}
|
281585
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
281586
|
+
var import_cli_width4 = __toESM(require_cli_width(), 1);
|
281587
|
+
var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
|
281588
|
+
function breakLines4(content, width) {
|
281589
|
+
return content.split(`
|
281590
|
+
`).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
|
281591
|
+
`).map((str) => str.trimEnd())).join(`
|
281592
|
+
`);
|
281593
|
+
}
|
281594
|
+
function readlineWidth4() {
|
281595
|
+
return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
|
281596
|
+
}
|
281597
|
+
|
281598
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
281599
|
+
var import_mute_stream4 = __toESM(require_lib(), 1);
|
281600
|
+
import * as readline8 from "node:readline";
|
281601
|
+
import { AsyncResource as AsyncResource12 } from "node:async_hooks";
|
281602
|
+
|
281603
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
281604
|
+
var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
|
281605
|
+
import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
|
281606
|
+
var height4 = (content) => content.split(`
|
281607
|
+
`).length;
|
281608
|
+
var lastLine4 = (content) => content.split(`
|
281609
|
+
`).pop() ?? "";
|
281610
|
+
function cursorDown4(n6) {
|
281611
|
+
return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
|
281612
|
+
}
|
281613
|
+
|
281614
|
+
class ScreenManager4 {
|
281615
|
+
rl;
|
281616
|
+
height = 0;
|
281617
|
+
extraLinesUnderPrompt = 0;
|
281618
|
+
cursorPos;
|
281619
|
+
constructor(rl) {
|
281620
|
+
this.rl = rl;
|
281621
|
+
this.rl = rl;
|
281622
|
+
this.cursorPos = rl.getCursorPos();
|
281623
|
+
}
|
281624
|
+
write(content) {
|
281625
|
+
this.rl.output.unmute();
|
281626
|
+
this.rl.output.write(content);
|
281627
|
+
this.rl.output.mute();
|
281628
|
+
}
|
281629
|
+
render(content, bottomContent = "") {
|
281630
|
+
const promptLine = lastLine4(content);
|
281631
|
+
const rawPromptLine = stripVTControlCharacters5(promptLine);
|
281632
|
+
let prompt = rawPromptLine;
|
281633
|
+
if (this.rl.line.length > 0) {
|
281634
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
281635
|
+
}
|
281636
|
+
this.rl.setPrompt(prompt);
|
281637
|
+
this.cursorPos = this.rl.getCursorPos();
|
281638
|
+
const width = readlineWidth4();
|
281639
|
+
content = breakLines4(content, width);
|
281640
|
+
bottomContent = breakLines4(bottomContent, width);
|
281641
|
+
if (rawPromptLine.length % width === 0) {
|
281642
|
+
content += `
|
281643
|
+
`;
|
281644
|
+
}
|
281645
|
+
let output = content + (bottomContent ? `
|
281646
|
+
` + bottomContent : "");
|
281647
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
281648
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
|
281649
|
+
if (bottomContentHeight > 0)
|
281650
|
+
output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
|
281651
|
+
output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
|
281652
|
+
this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
|
281653
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
281654
|
+
this.height = height4(output);
|
281655
|
+
}
|
281656
|
+
checkCursorPos() {
|
281657
|
+
const cursorPos = this.rl.getCursorPos();
|
281658
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
281659
|
+
this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
|
281660
|
+
this.cursorPos = cursorPos;
|
281661
|
+
}
|
281662
|
+
}
|
281663
|
+
done({ clearContent }) {
|
281664
|
+
this.rl.setPrompt("");
|
281665
|
+
let output = cursorDown4(this.extraLinesUnderPrompt);
|
281666
|
+
output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
|
281667
|
+
`;
|
281668
|
+
output += import_ansi_escapes5.default.cursorShow;
|
281669
|
+
this.write(output);
|
281670
|
+
this.rl.close();
|
281671
|
+
}
|
281672
|
+
}
|
281673
|
+
|
281674
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
281675
|
+
class PromisePolyfill4 extends Promise {
|
281676
|
+
static withResolver() {
|
281677
|
+
let resolve6;
|
281678
|
+
let reject;
|
281679
|
+
const promise = new Promise((res, rej) => {
|
281680
|
+
resolve6 = res;
|
281681
|
+
reject = rej;
|
281682
|
+
});
|
281683
|
+
return { promise, resolve: resolve6, reject };
|
281684
|
+
}
|
281685
|
+
}
|
281686
|
+
|
281687
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
281688
|
+
function getCallSites4() {
|
281689
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
281690
|
+
try {
|
281691
|
+
let result = [];
|
281692
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
281693
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
281694
|
+
result = callSitesWithoutCurrent;
|
281695
|
+
return callSitesWithoutCurrent;
|
281696
|
+
};
|
281697
|
+
new Error().stack;
|
281698
|
+
return result;
|
281699
|
+
} finally {
|
281700
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
281701
|
+
}
|
281702
|
+
}
|
281703
|
+
function createPrompt4(view) {
|
281704
|
+
const callSites = getCallSites4();
|
281705
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
281706
|
+
const prompt = (config3, context = {}) => {
|
281707
|
+
const { input = process.stdin, signal } = context;
|
281708
|
+
const cleanups = new Set;
|
281709
|
+
const output = new import_mute_stream4.default;
|
281710
|
+
output.pipe(context.output ?? process.stdout);
|
281711
|
+
const rl = readline8.createInterface({
|
281712
|
+
terminal: true,
|
281713
|
+
input,
|
281714
|
+
output
|
281715
|
+
});
|
281716
|
+
const screen = new ScreenManager4(rl);
|
281717
|
+
const { promise, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
|
281718
|
+
const cancel3 = () => reject(new CancelPromptError4);
|
281719
|
+
if (signal) {
|
281720
|
+
const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
|
281721
|
+
if (signal.aborted) {
|
281722
|
+
abort();
|
281723
|
+
return Object.assign(promise, { cancel: cancel3 });
|
281724
|
+
}
|
281725
|
+
signal.addEventListener("abort", abort);
|
281726
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
281727
|
+
}
|
281728
|
+
cleanups.add(onExit((code2, signal2) => {
|
281729
|
+
reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
|
281730
|
+
}));
|
281731
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
281732
|
+
rl.input.on("keypress", checkCursorPos);
|
281733
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
281734
|
+
return withHooks4(rl, (cycle) => {
|
281735
|
+
const hooksCleanup = AsyncResource12.bind(() => effectScheduler4.clearAll());
|
281736
|
+
rl.on("close", hooksCleanup);
|
281737
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
281738
|
+
cycle(() => {
|
281739
|
+
try {
|
281740
|
+
const nextView = view(config3, (value4) => {
|
281741
|
+
setImmediate(() => resolve6(value4));
|
281742
|
+
});
|
281743
|
+
if (nextView === undefined) {
|
281744
|
+
throw new Error(`Prompt functions must return a string.
|
281745
|
+
at ${callerFilename}`);
|
281746
|
+
}
|
281747
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
281748
|
+
screen.render(content, bottomContent);
|
281749
|
+
effectScheduler4.run();
|
281750
|
+
} catch (error5) {
|
281751
|
+
reject(error5);
|
281752
|
+
}
|
281753
|
+
});
|
281754
|
+
return Object.assign(promise.then((answer) => {
|
281755
|
+
effectScheduler4.clearAll();
|
281756
|
+
return answer;
|
281757
|
+
}, (error5) => {
|
281758
|
+
effectScheduler4.clearAll();
|
281759
|
+
throw error5;
|
281760
|
+
}).finally(() => {
|
281761
|
+
cleanups.forEach((cleanup) => cleanup());
|
281762
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
281763
|
+
output.end();
|
281764
|
+
}).then(() => promise), { cancel: cancel3 });
|
281765
|
+
});
|
281766
|
+
};
|
281767
|
+
return prompt;
|
281768
|
+
}
|
280861
281769
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
280862
|
-
var
|
280863
|
-
var esm_default5 =
|
281770
|
+
var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
|
281771
|
+
var esm_default5 = createPrompt4((config3, done) => {
|
280864
281772
|
const { validate: validate3 = () => true } = config3;
|
280865
|
-
const theme =
|
280866
|
-
const [status, setStatus] =
|
280867
|
-
const [errorMsg, setError] =
|
280868
|
-
const [value4, setValue] =
|
280869
|
-
const prefix =
|
280870
|
-
|
281773
|
+
const theme = makeTheme4(config3.theme);
|
281774
|
+
const [status, setStatus] = useState4("idle");
|
281775
|
+
const [errorMsg, setError] = useState4();
|
281776
|
+
const [value4, setValue] = useState4("");
|
281777
|
+
const prefix = usePrefix4({ status, theme });
|
281778
|
+
useKeypress4(async (key5, rl) => {
|
280871
281779
|
if (status !== "idle") {
|
280872
281780
|
return;
|
280873
281781
|
}
|
280874
|
-
if (
|
281782
|
+
if (isEnterKey4(key5)) {
|
280875
281783
|
const answer = value4;
|
280876
281784
|
setStatus("loading");
|
280877
281785
|
const isValid2 = await validate3(answer);
|
@@ -280896,7 +281804,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
280896
281804
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
280897
281805
|
formattedValue = maskChar.repeat(value4.length);
|
280898
281806
|
} else if (status !== "done") {
|
280899
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
281807
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
|
280900
281808
|
}
|
280901
281809
|
if (status === "done") {
|
280902
281810
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -281968,7 +282876,7 @@ var basename2 = function(p6, extension) {
|
|
281968
282876
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
281969
282877
|
};
|
281970
282878
|
// ../../node_modules/defu/dist/defu.mjs
|
281971
|
-
function
|
282879
|
+
function isPlainObject6(value4) {
|
281972
282880
|
if (value4 === null || typeof value4 !== "object") {
|
281973
282881
|
return false;
|
281974
282882
|
}
|
@@ -281985,27 +282893,27 @@ function isPlainObject4(value4) {
|
|
281985
282893
|
return true;
|
281986
282894
|
}
|
281987
282895
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
281988
|
-
if (!
|
282896
|
+
if (!isPlainObject6(defaults2)) {
|
281989
282897
|
return _defu(baseObject, {}, namespace, merger);
|
281990
282898
|
}
|
281991
282899
|
const object = Object.assign({}, defaults2);
|
281992
|
-
for (const
|
281993
|
-
if (
|
282900
|
+
for (const key5 in baseObject) {
|
282901
|
+
if (key5 === "__proto__" || key5 === "constructor") {
|
281994
282902
|
continue;
|
281995
282903
|
}
|
281996
|
-
const value4 = baseObject[
|
282904
|
+
const value4 = baseObject[key5];
|
281997
282905
|
if (value4 === null || value4 === undefined) {
|
281998
282906
|
continue;
|
281999
282907
|
}
|
282000
|
-
if (merger && merger(object,
|
282908
|
+
if (merger && merger(object, key5, value4, namespace)) {
|
282001
282909
|
continue;
|
282002
282910
|
}
|
282003
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
282004
|
-
object[
|
282005
|
-
} else if (
|
282006
|
-
object[
|
282911
|
+
if (Array.isArray(value4) && Array.isArray(object[key5])) {
|
282912
|
+
object[key5] = [...value4, ...object[key5]];
|
282913
|
+
} else if (isPlainObject6(value4) && isPlainObject6(object[key5])) {
|
282914
|
+
object[key5] = _defu(value4, object[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
|
282007
282915
|
} else {
|
282008
|
-
object[
|
282916
|
+
object[key5] = value4;
|
282009
282917
|
}
|
282010
282918
|
}
|
282011
282919
|
return object;
|
@@ -282014,15 +282922,15 @@ function createDefu(merger) {
|
|
282014
282922
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
282015
282923
|
}
|
282016
282924
|
var defu = createDefu();
|
282017
|
-
var defuFn = createDefu((object,
|
282018
|
-
if (object[
|
282019
|
-
object[
|
282925
|
+
var defuFn = createDefu((object, key5, currentValue) => {
|
282926
|
+
if (object[key5] !== undefined && typeof currentValue === "function") {
|
282927
|
+
object[key5] = currentValue(object[key5]);
|
282020
282928
|
return true;
|
282021
282929
|
}
|
282022
282930
|
});
|
282023
|
-
var defuArrayFn = createDefu((object,
|
282024
|
-
if (Array.isArray(object[
|
282025
|
-
object[
|
282931
|
+
var defuArrayFn = createDefu((object, key5, currentValue) => {
|
282932
|
+
if (Array.isArray(object[key5]) && typeof currentValue === "function") {
|
282933
|
+
object[key5] = currentValue(object[key5]);
|
282026
282934
|
return true;
|
282027
282935
|
}
|
282028
282936
|
});
|
@@ -282284,11 +283192,11 @@ function cacheDirectory() {
|
|
282284
283192
|
}
|
282285
283193
|
function normalizeHeaders(headers = {}) {
|
282286
283194
|
const normalized = {};
|
282287
|
-
for (const [
|
283195
|
+
for (const [key5, value4] of Object.entries(headers)) {
|
282288
283196
|
if (!value4) {
|
282289
283197
|
continue;
|
282290
283198
|
}
|
282291
|
-
normalized[
|
283199
|
+
normalized[key5.toLowerCase()] = value4;
|
282292
283200
|
}
|
282293
283201
|
return normalized;
|
282294
283202
|
}
|
@@ -284521,7 +285429,7 @@ function jsonOutput(data) {
|
|
284521
285429
|
var composer = require_composer();
|
284522
285430
|
var Document = require_Document();
|
284523
285431
|
var Schema = require_Schema();
|
284524
|
-
var
|
285432
|
+
var errors5 = require_errors3();
|
284525
285433
|
var Alias = require_Alias();
|
284526
285434
|
var identity2 = require_identity();
|
284527
285435
|
var Pair = require_Pair();
|
@@ -284537,9 +285445,9 @@ var visit2 = require_visit();
|
|
284537
285445
|
var $Composer = composer.Composer;
|
284538
285446
|
var $Document = Document.Document;
|
284539
285447
|
var $Schema = Schema.Schema;
|
284540
|
-
var $YAMLError =
|
284541
|
-
var $YAMLParseError =
|
284542
|
-
var $YAMLWarning =
|
285448
|
+
var $YAMLError = errors5.YAMLError;
|
285449
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
285450
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
284543
285451
|
var $Alias = Alias.Alias;
|
284544
285452
|
var $isAlias = identity2.isAlias;
|
284545
285453
|
var $isCollection = identity2.isCollection;
|
@@ -284885,7 +285793,7 @@ async function getServicesAndMapResults({
|
|
284885
285793
|
const application = await settlemint.application.read(applicationUniqueName);
|
284886
285794
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
284887
285795
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
284888
|
-
const [_5, labels] = Object.entries(LABELS_MAP).find(([
|
285796
|
+
const [_5, labels] = Object.entries(LABELS_MAP).find(([key5, value4]) => value4.command === serviceType) ?? [
|
284889
285797
|
null,
|
284890
285798
|
{ plural: serviceType }
|
284891
285799
|
];
|
@@ -285113,11 +286021,11 @@ function createCommand4() {
|
|
285113
286021
|
|
285114
286022
|
// src/utils/commands/passthrough-options.ts
|
285115
286023
|
function mapPassthroughOptions(options, command) {
|
285116
|
-
const optionArgs = Object.entries(options).map(([
|
286024
|
+
const optionArgs = Object.entries(options).map(([key5, value4]) => {
|
285117
286025
|
if (value4 === true) {
|
285118
|
-
return `--${
|
286026
|
+
return `--${key5}`;
|
285119
286027
|
}
|
285120
|
-
return `--${
|
286028
|
+
return `--${key5}=${value4}`;
|
285121
286029
|
});
|
285122
286030
|
return [...optionArgs, ...command.args];
|
285123
286031
|
}
|
@@ -286128,4 +287036,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
286128
287036
|
// src/cli.ts
|
286129
287037
|
sdkCliCommand();
|
286130
287038
|
|
286131
|
-
//# debugId=
|
287039
|
+
//# debugId=E7BA66B4CE0C972964756E2164756E21
|