@settlemint/sdk-cli 2.6.4-pr22d4dda4 → 2.6.4-pr2b689b7a
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 +647 -73
- package/dist/cli.js.map +18 -3
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -230792,6 +230792,126 @@ var require_slugify = __commonJS((exports, module) => {
|
|
|
230792
230792
|
});
|
|
230793
230793
|
});
|
|
230794
230794
|
|
|
230795
|
+
// ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
|
|
230796
|
+
var require_lib13 = __commonJS((exports, module) => {
|
|
230797
|
+
var Stream2 = __require("stream");
|
|
230798
|
+
|
|
230799
|
+
class MuteStream2 extends Stream2 {
|
|
230800
|
+
#isTTY = null;
|
|
230801
|
+
constructor(opts = {}) {
|
|
230802
|
+
super(opts);
|
|
230803
|
+
this.writable = this.readable = true;
|
|
230804
|
+
this.muted = false;
|
|
230805
|
+
this.on("pipe", this._onpipe);
|
|
230806
|
+
this.replace = opts.replace;
|
|
230807
|
+
this._prompt = opts.prompt || null;
|
|
230808
|
+
this._hadControl = false;
|
|
230809
|
+
}
|
|
230810
|
+
#destSrc(key, def) {
|
|
230811
|
+
if (this._dest) {
|
|
230812
|
+
return this._dest[key];
|
|
230813
|
+
}
|
|
230814
|
+
if (this._src) {
|
|
230815
|
+
return this._src[key];
|
|
230816
|
+
}
|
|
230817
|
+
return def;
|
|
230818
|
+
}
|
|
230819
|
+
#proxy(method, ...args) {
|
|
230820
|
+
if (typeof this._dest?.[method] === "function") {
|
|
230821
|
+
this._dest[method](...args);
|
|
230822
|
+
}
|
|
230823
|
+
if (typeof this._src?.[method] === "function") {
|
|
230824
|
+
this._src[method](...args);
|
|
230825
|
+
}
|
|
230826
|
+
}
|
|
230827
|
+
get isTTY() {
|
|
230828
|
+
if (this.#isTTY !== null) {
|
|
230829
|
+
return this.#isTTY;
|
|
230830
|
+
}
|
|
230831
|
+
return this.#destSrc("isTTY", false);
|
|
230832
|
+
}
|
|
230833
|
+
set isTTY(val) {
|
|
230834
|
+
this.#isTTY = val;
|
|
230835
|
+
}
|
|
230836
|
+
get rows() {
|
|
230837
|
+
return this.#destSrc("rows");
|
|
230838
|
+
}
|
|
230839
|
+
get columns() {
|
|
230840
|
+
return this.#destSrc("columns");
|
|
230841
|
+
}
|
|
230842
|
+
mute() {
|
|
230843
|
+
this.muted = true;
|
|
230844
|
+
}
|
|
230845
|
+
unmute() {
|
|
230846
|
+
this.muted = false;
|
|
230847
|
+
}
|
|
230848
|
+
_onpipe(src) {
|
|
230849
|
+
this._src = src;
|
|
230850
|
+
}
|
|
230851
|
+
pipe(dest, options) {
|
|
230852
|
+
this._dest = dest;
|
|
230853
|
+
return super.pipe(dest, options);
|
|
230854
|
+
}
|
|
230855
|
+
pause() {
|
|
230856
|
+
if (this._src) {
|
|
230857
|
+
return this._src.pause();
|
|
230858
|
+
}
|
|
230859
|
+
}
|
|
230860
|
+
resume() {
|
|
230861
|
+
if (this._src) {
|
|
230862
|
+
return this._src.resume();
|
|
230863
|
+
}
|
|
230864
|
+
}
|
|
230865
|
+
write(c4) {
|
|
230866
|
+
if (this.muted) {
|
|
230867
|
+
if (!this.replace) {
|
|
230868
|
+
return true;
|
|
230869
|
+
}
|
|
230870
|
+
if (c4.match(/^\u001b/)) {
|
|
230871
|
+
if (c4.indexOf(this._prompt) === 0) {
|
|
230872
|
+
c4 = c4.slice(this._prompt.length);
|
|
230873
|
+
c4 = c4.replace(/./g, this.replace);
|
|
230874
|
+
c4 = this._prompt + c4;
|
|
230875
|
+
}
|
|
230876
|
+
this._hadControl = true;
|
|
230877
|
+
return this.emit("data", c4);
|
|
230878
|
+
} else {
|
|
230879
|
+
if (this._prompt && this._hadControl && c4.indexOf(this._prompt) === 0) {
|
|
230880
|
+
this._hadControl = false;
|
|
230881
|
+
this.emit("data", this._prompt);
|
|
230882
|
+
c4 = c4.slice(this._prompt.length);
|
|
230883
|
+
}
|
|
230884
|
+
c4 = c4.toString().replace(/./g, this.replace);
|
|
230885
|
+
}
|
|
230886
|
+
}
|
|
230887
|
+
this.emit("data", c4);
|
|
230888
|
+
}
|
|
230889
|
+
end(c4) {
|
|
230890
|
+
if (this.muted) {
|
|
230891
|
+
if (c4 && this.replace) {
|
|
230892
|
+
c4 = c4.toString().replace(/./g, this.replace);
|
|
230893
|
+
} else {
|
|
230894
|
+
c4 = null;
|
|
230895
|
+
}
|
|
230896
|
+
}
|
|
230897
|
+
if (c4) {
|
|
230898
|
+
this.emit("data", c4);
|
|
230899
|
+
}
|
|
230900
|
+
this.emit("end");
|
|
230901
|
+
}
|
|
230902
|
+
destroy(...args) {
|
|
230903
|
+
return this.#proxy("destroy", ...args);
|
|
230904
|
+
}
|
|
230905
|
+
destroySoon(...args) {
|
|
230906
|
+
return this.#proxy("destroySoon", ...args);
|
|
230907
|
+
}
|
|
230908
|
+
close(...args) {
|
|
230909
|
+
return this.#proxy("close", ...args);
|
|
230910
|
+
}
|
|
230911
|
+
}
|
|
230912
|
+
module.exports = MuteStream2;
|
|
230913
|
+
});
|
|
230914
|
+
|
|
230795
230915
|
// ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
|
|
230796
230916
|
var version2 = "1.1.0";
|
|
230797
230917
|
|
|
@@ -244307,7 +244427,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
244307
244427
|
var node_process = __require("process");
|
|
244308
244428
|
var directives4 = require_directives2();
|
|
244309
244429
|
var Document = require_Document();
|
|
244310
|
-
var
|
|
244430
|
+
var errors5 = require_errors3();
|
|
244311
244431
|
var identity2 = require_identity();
|
|
244312
244432
|
var composeDoc = require_compose_doc();
|
|
244313
244433
|
var resolveEnd = require_resolve_end();
|
|
@@ -244358,9 +244478,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
244358
244478
|
this.onError = (source, code2, message, warning) => {
|
|
244359
244479
|
const pos = getErrorPos(source);
|
|
244360
244480
|
if (warning)
|
|
244361
|
-
this.warnings.push(new
|
|
244481
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
|
244362
244482
|
else
|
|
244363
|
-
this.errors.push(new
|
|
244483
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
|
244364
244484
|
};
|
|
244365
244485
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
|
244366
244486
|
this.options = options;
|
|
@@ -244444,7 +244564,7 @@ ${cb}` : comment;
|
|
|
244444
244564
|
break;
|
|
244445
244565
|
case "error": {
|
|
244446
244566
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
244447
|
-
const error50 = new
|
|
244567
|
+
const error50 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
244448
244568
|
if (this.atDirectives || !this.doc)
|
|
244449
244569
|
this.errors.push(error50);
|
|
244450
244570
|
else
|
|
@@ -244454,7 +244574,7 @@ ${cb}` : comment;
|
|
|
244454
244574
|
case "doc-end": {
|
|
244455
244575
|
if (!this.doc) {
|
|
244456
244576
|
const msg = "Unexpected doc-end without preceding document";
|
|
244457
|
-
this.errors.push(new
|
|
244577
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
244458
244578
|
break;
|
|
244459
244579
|
}
|
|
244460
244580
|
this.doc.directives.docEnd = true;
|
|
@@ -244469,7 +244589,7 @@ ${end.comment}` : end.comment;
|
|
|
244469
244589
|
break;
|
|
244470
244590
|
}
|
|
244471
244591
|
default:
|
|
244472
|
-
this.errors.push(new
|
|
244592
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
244473
244593
|
}
|
|
244474
244594
|
}
|
|
244475
244595
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -244495,7 +244615,7 @@ ${end.comment}` : end.comment;
|
|
|
244495
244615
|
var require_cst_scalar = __commonJS((exports) => {
|
|
244496
244616
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
244497
244617
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
244498
|
-
var
|
|
244618
|
+
var errors5 = require_errors3();
|
|
244499
244619
|
var stringifyString = require_stringifyString();
|
|
244500
244620
|
function resolveAsScalar(token, strict = true, onError) {
|
|
244501
244621
|
if (token) {
|
|
@@ -244504,7 +244624,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
244504
244624
|
if (onError)
|
|
244505
244625
|
onError(offset, code2, message);
|
|
244506
244626
|
else
|
|
244507
|
-
throw new
|
|
244627
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
|
244508
244628
|
};
|
|
244509
244629
|
switch (token.type) {
|
|
244510
244630
|
case "scalar":
|
|
@@ -246366,7 +246486,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
246366
246486
|
var require_public_api = __commonJS((exports) => {
|
|
246367
246487
|
var composer = require_composer();
|
|
246368
246488
|
var Document = require_Document();
|
|
246369
|
-
var
|
|
246489
|
+
var errors5 = require_errors3();
|
|
246370
246490
|
var log = require_log();
|
|
246371
246491
|
var identity2 = require_identity();
|
|
246372
246492
|
var lineCounter = require_line_counter();
|
|
@@ -246383,8 +246503,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
246383
246503
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
246384
246504
|
if (prettyErrors && lineCounter2)
|
|
246385
246505
|
for (const doc2 of docs) {
|
|
246386
|
-
doc2.errors.forEach(
|
|
246387
|
-
doc2.warnings.forEach(
|
|
246506
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
246507
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
246388
246508
|
}
|
|
246389
246509
|
if (docs.length > 0)
|
|
246390
246510
|
return docs;
|
|
@@ -246399,13 +246519,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
246399
246519
|
if (!doc2)
|
|
246400
246520
|
doc2 = _doc;
|
|
246401
246521
|
else if (doc2.options.logLevel !== "silent") {
|
|
246402
|
-
doc2.errors.push(new
|
|
246522
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
246403
246523
|
break;
|
|
246404
246524
|
}
|
|
246405
246525
|
}
|
|
246406
246526
|
if (prettyErrors && lineCounter2) {
|
|
246407
|
-
doc2.errors.forEach(
|
|
246408
|
-
doc2.warnings.forEach(
|
|
246527
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
246528
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
246409
246529
|
}
|
|
246410
246530
|
return doc2;
|
|
246411
246531
|
}
|
|
@@ -246457,7 +246577,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
246457
246577
|
});
|
|
246458
246578
|
|
|
246459
246579
|
// ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
|
|
246460
|
-
var
|
|
246580
|
+
var require_lib14 = __commonJS((exports, module) => {
|
|
246461
246581
|
var { isexe, sync: isexeSync } = require_cjs();
|
|
246462
246582
|
var { join: join10, delimiter, sep: sep4, posix: posix2 } = __require("path");
|
|
246463
246583
|
var isWindows2 = process.platform === "win32";
|
|
@@ -246556,14 +246676,14 @@ var {
|
|
|
246556
246676
|
Help
|
|
246557
246677
|
} = import__.default;
|
|
246558
246678
|
|
|
246559
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246679
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
246560
246680
|
var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
246561
246681
|
var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
246562
246682
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
246563
246683
|
var isTabKey = (key) => key.name === "tab";
|
|
246564
246684
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
246565
246685
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
246566
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246686
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
246567
246687
|
class AbortPromptError extends Error {
|
|
246568
246688
|
name = "AbortPromptError";
|
|
246569
246689
|
message = "Prompt was aborted";
|
|
@@ -246589,10 +246709,10 @@ class HookError extends Error {
|
|
|
246589
246709
|
class ValidationError extends Error {
|
|
246590
246710
|
name = "ValidationError";
|
|
246591
246711
|
}
|
|
246592
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246712
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
246593
246713
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
246594
246714
|
|
|
246595
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246715
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
246596
246716
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
246597
246717
|
var hookStorage = new AsyncLocalStorage;
|
|
246598
246718
|
function createStore(rl) {
|
|
@@ -246697,7 +246817,7 @@ var effectScheduler = {
|
|
|
246697
246817
|
}
|
|
246698
246818
|
};
|
|
246699
246819
|
|
|
246700
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246820
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
246701
246821
|
function useState(defaultValue) {
|
|
246702
246822
|
return withPointer((pointer) => {
|
|
246703
246823
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
|
@@ -246715,7 +246835,7 @@ function useState(defaultValue) {
|
|
|
246715
246835
|
});
|
|
246716
246836
|
}
|
|
246717
246837
|
|
|
246718
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246838
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
246719
246839
|
function useEffect(cb, depArray) {
|
|
246720
246840
|
withPointer((pointer) => {
|
|
246721
246841
|
const oldDeps = pointer.get();
|
|
@@ -246727,7 +246847,7 @@ function useEffect(cb, depArray) {
|
|
|
246727
246847
|
});
|
|
246728
246848
|
}
|
|
246729
246849
|
|
|
246730
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
246850
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
246731
246851
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
246732
246852
|
|
|
246733
246853
|
// ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -247019,7 +247139,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
247019
247139
|
var esm_default = figures;
|
|
247020
247140
|
var replacements = Object.entries(specialMainSymbols);
|
|
247021
247141
|
|
|
247022
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247142
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
247023
247143
|
var defaultTheme = {
|
|
247024
247144
|
prefix: {
|
|
247025
247145
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -247040,7 +247160,7 @@ var defaultTheme = {
|
|
|
247040
247160
|
}
|
|
247041
247161
|
};
|
|
247042
247162
|
|
|
247043
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247163
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
247044
247164
|
function isPlainObject(value) {
|
|
247045
247165
|
if (typeof value !== "object" || value === null)
|
|
247046
247166
|
return false;
|
|
@@ -247068,7 +247188,7 @@ function makeTheme(...themes) {
|
|
|
247068
247188
|
return deepMerge(...themesToMerge);
|
|
247069
247189
|
}
|
|
247070
247190
|
|
|
247071
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247191
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
247072
247192
|
function usePrefix({ status = "idle", theme }) {
|
|
247073
247193
|
const [showLoader, setShowLoader] = useState(false);
|
|
247074
247194
|
const [tick, setTick] = useState(0);
|
|
@@ -247098,7 +247218,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
247098
247218
|
const iconName = status === "loading" ? "idle" : status;
|
|
247099
247219
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
247100
247220
|
}
|
|
247101
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247221
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
247102
247222
|
function useMemo(fn, dependencies) {
|
|
247103
247223
|
return withPointer((pointer) => {
|
|
247104
247224
|
const prev = pointer.get();
|
|
@@ -247110,11 +247230,11 @@ function useMemo(fn, dependencies) {
|
|
|
247110
247230
|
return prev.value;
|
|
247111
247231
|
});
|
|
247112
247232
|
}
|
|
247113
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247233
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
247114
247234
|
function useRef(val) {
|
|
247115
247235
|
return useState({ current: val })[0];
|
|
247116
247236
|
}
|
|
247117
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247237
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
247118
247238
|
function useKeypress(userHandler) {
|
|
247119
247239
|
const signal = useRef(userHandler);
|
|
247120
247240
|
signal.current = userHandler;
|
|
@@ -247132,7 +247252,7 @@ function useKeypress(userHandler) {
|
|
|
247132
247252
|
};
|
|
247133
247253
|
}, []);
|
|
247134
247254
|
}
|
|
247135
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247255
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
247136
247256
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
247137
247257
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
247138
247258
|
function breakLines(content, width) {
|
|
@@ -247145,7 +247265,7 @@ function readlineWidth() {
|
|
|
247145
247265
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
247146
247266
|
}
|
|
247147
247267
|
|
|
247148
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247268
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
247149
247269
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
247150
247270
|
const state = useRef({
|
|
247151
247271
|
lastPointer: active,
|
|
@@ -247211,7 +247331,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
247211
247331
|
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
247212
247332
|
`);
|
|
247213
247333
|
}
|
|
247214
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247334
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
247215
247335
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
247216
247336
|
import * as readline2 from "node:readline";
|
|
247217
247337
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
@@ -247424,7 +247544,7 @@ var {
|
|
|
247424
247544
|
unload
|
|
247425
247545
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
247426
247546
|
|
|
247427
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247547
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
247428
247548
|
import { stripVTControlCharacters } from "node:util";
|
|
247429
247549
|
|
|
247430
247550
|
// ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
@@ -247443,7 +247563,7 @@ var cursorTo = (x, y) => {
|
|
|
247443
247563
|
var eraseLine = ESC + "2K";
|
|
247444
247564
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
247445
247565
|
|
|
247446
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247566
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
247447
247567
|
var height = (content) => content.split(`
|
|
247448
247568
|
`).length;
|
|
247449
247569
|
var lastLine = (content) => content.split(`
|
|
@@ -247508,7 +247628,7 @@ class ScreenManager {
|
|
|
247508
247628
|
}
|
|
247509
247629
|
}
|
|
247510
247630
|
|
|
247511
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247631
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
247512
247632
|
class PromisePolyfill extends Promise {
|
|
247513
247633
|
static withResolver() {
|
|
247514
247634
|
let resolve;
|
|
@@ -247521,7 +247641,7 @@ class PromisePolyfill extends Promise {
|
|
|
247521
247641
|
}
|
|
247522
247642
|
}
|
|
247523
247643
|
|
|
247524
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247644
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
247525
247645
|
function getCallSites() {
|
|
247526
247646
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
247527
247647
|
let result = [];
|
|
@@ -247607,7 +247727,7 @@ function createPrompt(view) {
|
|
|
247607
247727
|
};
|
|
247608
247728
|
return prompt;
|
|
247609
247729
|
}
|
|
247610
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.1+
|
|
247730
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
247611
247731
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
247612
247732
|
class Separator {
|
|
247613
247733
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -266895,7 +267015,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
266895
267015
|
var package_default = {
|
|
266896
267016
|
name: "@settlemint/sdk-cli",
|
|
266897
267017
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
266898
|
-
version: "2.6.4-
|
|
267018
|
+
version: "2.6.4-pr2b689b7a",
|
|
266899
267019
|
type: "module",
|
|
266900
267020
|
private: false,
|
|
266901
267021
|
license: "FSL-1.1-MIT",
|
|
@@ -266946,14 +267066,14 @@ var package_default = {
|
|
|
266946
267066
|
"@commander-js/extra-typings": "14.0.0",
|
|
266947
267067
|
commander: "14.0.2",
|
|
266948
267068
|
"@inquirer/confirm": "5.1.20",
|
|
266949
|
-
"@inquirer/input": "4.3.
|
|
267069
|
+
"@inquirer/input": "4.3.1",
|
|
266950
267070
|
"@inquirer/password": "4.0.21",
|
|
266951
267071
|
"@inquirer/select": "4.4.0",
|
|
266952
|
-
"@settlemint/sdk-hasura": "2.6.4-
|
|
266953
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
266954
|
-
"@settlemint/sdk-utils": "2.6.4-
|
|
266955
|
-
"@settlemint/sdk-viem": "2.6.4-
|
|
266956
|
-
"@types/node": "24.10.
|
|
267072
|
+
"@settlemint/sdk-hasura": "2.6.4-pr2b689b7a",
|
|
267073
|
+
"@settlemint/sdk-js": "2.6.4-pr2b689b7a",
|
|
267074
|
+
"@settlemint/sdk-utils": "2.6.4-pr2b689b7a",
|
|
267075
|
+
"@settlemint/sdk-viem": "2.6.4-pr2b689b7a",
|
|
267076
|
+
"@types/node": "24.10.0",
|
|
266957
267077
|
"@types/semver": "7.7.1",
|
|
266958
267078
|
"@types/which": "3.0.4",
|
|
266959
267079
|
"get-tsconfig": "4.13.0",
|
|
@@ -266969,7 +267089,7 @@ var package_default = {
|
|
|
266969
267089
|
},
|
|
266970
267090
|
peerDependencies: {
|
|
266971
267091
|
hardhat: "<= 4",
|
|
266972
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
267092
|
+
"@settlemint/sdk-js": "2.6.4-pr2b689b7a"
|
|
266973
267093
|
},
|
|
266974
267094
|
peerDependenciesMeta: {
|
|
266975
267095
|
hardhat: {
|
|
@@ -272524,18 +272644,472 @@ function sanitizeName(value4, length = 35) {
|
|
|
272524
272644
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
272525
272645
|
}
|
|
272526
272646
|
|
|
272527
|
-
// ../../node_modules/.bun/@inquirer+
|
|
272647
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
272648
|
+
var isBackspaceKey2 = (key) => key.name === "backspace";
|
|
272649
|
+
var isTabKey2 = (key) => key.name === "tab";
|
|
272650
|
+
var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
|
|
272651
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
272652
|
+
class AbortPromptError2 extends Error {
|
|
272653
|
+
name = "AbortPromptError";
|
|
272654
|
+
message = "Prompt was aborted";
|
|
272655
|
+
constructor(options) {
|
|
272656
|
+
super();
|
|
272657
|
+
this.cause = options?.cause;
|
|
272658
|
+
}
|
|
272659
|
+
}
|
|
272660
|
+
|
|
272661
|
+
class CancelPromptError2 extends Error {
|
|
272662
|
+
name = "CancelPromptError";
|
|
272663
|
+
message = "Prompt was canceled";
|
|
272664
|
+
}
|
|
272665
|
+
|
|
272666
|
+
class ExitPromptError2 extends Error {
|
|
272667
|
+
name = "ExitPromptError";
|
|
272668
|
+
}
|
|
272669
|
+
|
|
272670
|
+
class HookError2 extends Error {
|
|
272671
|
+
name = "HookError";
|
|
272672
|
+
}
|
|
272673
|
+
|
|
272674
|
+
class ValidationError2 extends Error {
|
|
272675
|
+
name = "ValidationError";
|
|
272676
|
+
}
|
|
272677
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
272678
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
272679
|
+
|
|
272680
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
272681
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
272682
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
|
272683
|
+
function createStore2(rl) {
|
|
272684
|
+
const store = {
|
|
272685
|
+
rl,
|
|
272686
|
+
hooks: [],
|
|
272687
|
+
hooksCleanup: [],
|
|
272688
|
+
hooksEffect: [],
|
|
272689
|
+
index: 0,
|
|
272690
|
+
handleChange() {}
|
|
272691
|
+
};
|
|
272692
|
+
return store;
|
|
272693
|
+
}
|
|
272694
|
+
function withHooks2(rl, cb) {
|
|
272695
|
+
const store = createStore2(rl);
|
|
272696
|
+
return hookStorage2.run(store, () => {
|
|
272697
|
+
function cycle(render) {
|
|
272698
|
+
store.handleChange = () => {
|
|
272699
|
+
store.index = 0;
|
|
272700
|
+
render();
|
|
272701
|
+
};
|
|
272702
|
+
store.handleChange();
|
|
272703
|
+
}
|
|
272704
|
+
return cb(cycle);
|
|
272705
|
+
});
|
|
272706
|
+
}
|
|
272707
|
+
function getStore2() {
|
|
272708
|
+
const store = hookStorage2.getStore();
|
|
272709
|
+
if (!store) {
|
|
272710
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
|
272711
|
+
}
|
|
272712
|
+
return store;
|
|
272713
|
+
}
|
|
272714
|
+
function readline3() {
|
|
272715
|
+
return getStore2().rl;
|
|
272716
|
+
}
|
|
272717
|
+
function withUpdates2(fn) {
|
|
272718
|
+
const wrapped = (...args) => {
|
|
272719
|
+
const store = getStore2();
|
|
272720
|
+
let shouldUpdate = false;
|
|
272721
|
+
const oldHandleChange = store.handleChange;
|
|
272722
|
+
store.handleChange = () => {
|
|
272723
|
+
shouldUpdate = true;
|
|
272724
|
+
};
|
|
272725
|
+
const returnValue = fn(...args);
|
|
272726
|
+
if (shouldUpdate) {
|
|
272727
|
+
oldHandleChange();
|
|
272728
|
+
}
|
|
272729
|
+
store.handleChange = oldHandleChange;
|
|
272730
|
+
return returnValue;
|
|
272731
|
+
};
|
|
272732
|
+
return AsyncResource4.bind(wrapped);
|
|
272733
|
+
}
|
|
272734
|
+
function withPointer2(cb) {
|
|
272735
|
+
const store = getStore2();
|
|
272736
|
+
const { index } = store;
|
|
272737
|
+
const pointer = {
|
|
272738
|
+
get() {
|
|
272739
|
+
return store.hooks[index];
|
|
272740
|
+
},
|
|
272741
|
+
set(value4) {
|
|
272742
|
+
store.hooks[index] = value4;
|
|
272743
|
+
},
|
|
272744
|
+
initialized: index in store.hooks
|
|
272745
|
+
};
|
|
272746
|
+
const returnValue = cb(pointer);
|
|
272747
|
+
store.index++;
|
|
272748
|
+
return returnValue;
|
|
272749
|
+
}
|
|
272750
|
+
function handleChange2() {
|
|
272751
|
+
getStore2().handleChange();
|
|
272752
|
+
}
|
|
272753
|
+
var effectScheduler2 = {
|
|
272754
|
+
queue(cb) {
|
|
272755
|
+
const store = getStore2();
|
|
272756
|
+
const { index } = store;
|
|
272757
|
+
store.hooksEffect.push(() => {
|
|
272758
|
+
store.hooksCleanup[index]?.();
|
|
272759
|
+
const cleanFn = cb(readline3());
|
|
272760
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
272761
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
|
272762
|
+
}
|
|
272763
|
+
store.hooksCleanup[index] = cleanFn;
|
|
272764
|
+
});
|
|
272765
|
+
},
|
|
272766
|
+
run() {
|
|
272767
|
+
const store = getStore2();
|
|
272768
|
+
withUpdates2(() => {
|
|
272769
|
+
store.hooksEffect.forEach((effect) => {
|
|
272770
|
+
effect();
|
|
272771
|
+
});
|
|
272772
|
+
store.hooksEffect.length = 0;
|
|
272773
|
+
})();
|
|
272774
|
+
},
|
|
272775
|
+
clearAll() {
|
|
272776
|
+
const store = getStore2();
|
|
272777
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
|
272778
|
+
cleanFn?.();
|
|
272779
|
+
});
|
|
272780
|
+
store.hooksEffect.length = 0;
|
|
272781
|
+
store.hooksCleanup.length = 0;
|
|
272782
|
+
}
|
|
272783
|
+
};
|
|
272784
|
+
|
|
272785
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
272786
|
+
function useState2(defaultValue) {
|
|
272787
|
+
return withPointer2((pointer) => {
|
|
272788
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
|
272789
|
+
if (pointer.get() !== newValue) {
|
|
272790
|
+
pointer.set(newValue);
|
|
272791
|
+
handleChange2();
|
|
272792
|
+
}
|
|
272793
|
+
});
|
|
272794
|
+
if (pointer.initialized) {
|
|
272795
|
+
return [pointer.get(), setState];
|
|
272796
|
+
}
|
|
272797
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
272798
|
+
pointer.set(value4);
|
|
272799
|
+
return [value4, setState];
|
|
272800
|
+
});
|
|
272801
|
+
}
|
|
272802
|
+
|
|
272803
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
272804
|
+
function useEffect2(cb, depArray) {
|
|
272805
|
+
withPointer2((pointer) => {
|
|
272806
|
+
const oldDeps = pointer.get();
|
|
272807
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
|
272808
|
+
if (hasChanged) {
|
|
272809
|
+
effectScheduler2.queue(cb);
|
|
272810
|
+
}
|
|
272811
|
+
pointer.set(depArray);
|
|
272812
|
+
});
|
|
272813
|
+
}
|
|
272814
|
+
|
|
272815
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
272816
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
272817
|
+
var defaultTheme2 = {
|
|
272818
|
+
prefix: {
|
|
272819
|
+
idle: import_yoctocolors_cjs3.default.blue("?"),
|
|
272820
|
+
done: import_yoctocolors_cjs3.default.green(esm_default.tick)
|
|
272821
|
+
},
|
|
272822
|
+
spinner: {
|
|
272823
|
+
interval: 80,
|
|
272824
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
|
272825
|
+
},
|
|
272826
|
+
style: {
|
|
272827
|
+
answer: import_yoctocolors_cjs3.default.cyan,
|
|
272828
|
+
message: import_yoctocolors_cjs3.default.bold,
|
|
272829
|
+
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
|
272830
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
|
272831
|
+
help: import_yoctocolors_cjs3.default.dim,
|
|
272832
|
+
highlight: import_yoctocolors_cjs3.default.cyan,
|
|
272833
|
+
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
|
272834
|
+
}
|
|
272835
|
+
};
|
|
272836
|
+
|
|
272837
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
272838
|
+
function isPlainObject4(value4) {
|
|
272839
|
+
if (typeof value4 !== "object" || value4 === null)
|
|
272840
|
+
return false;
|
|
272841
|
+
let proto = value4;
|
|
272842
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
272843
|
+
proto = Object.getPrototypeOf(proto);
|
|
272844
|
+
}
|
|
272845
|
+
return Object.getPrototypeOf(value4) === proto;
|
|
272846
|
+
}
|
|
272847
|
+
function deepMerge3(...objects) {
|
|
272848
|
+
const output = {};
|
|
272849
|
+
for (const obj of objects) {
|
|
272850
|
+
for (const [key, value4] of Object.entries(obj)) {
|
|
272851
|
+
const prevValue = output[key];
|
|
272852
|
+
output[key] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge3(prevValue, value4) : value4;
|
|
272853
|
+
}
|
|
272854
|
+
}
|
|
272855
|
+
return output;
|
|
272856
|
+
}
|
|
272857
|
+
function makeTheme2(...themes) {
|
|
272858
|
+
const themesToMerge = [
|
|
272859
|
+
defaultTheme2,
|
|
272860
|
+
...themes.filter((theme) => theme != null)
|
|
272861
|
+
];
|
|
272862
|
+
return deepMerge3(...themesToMerge);
|
|
272863
|
+
}
|
|
272864
|
+
|
|
272865
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
272866
|
+
function usePrefix2({ status = "idle", theme }) {
|
|
272867
|
+
const [showLoader, setShowLoader] = useState2(false);
|
|
272868
|
+
const [tick, setTick] = useState2(0);
|
|
272869
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
|
272870
|
+
useEffect2(() => {
|
|
272871
|
+
if (status === "loading") {
|
|
272872
|
+
let tickInterval;
|
|
272873
|
+
let inc = -1;
|
|
272874
|
+
const delayTimeout = setTimeout(() => {
|
|
272875
|
+
setShowLoader(true);
|
|
272876
|
+
tickInterval = setInterval(() => {
|
|
272877
|
+
inc = inc + 1;
|
|
272878
|
+
setTick(inc % spinner2.frames.length);
|
|
272879
|
+
}, spinner2.interval);
|
|
272880
|
+
}, 300);
|
|
272881
|
+
return () => {
|
|
272882
|
+
clearTimeout(delayTimeout);
|
|
272883
|
+
clearInterval(tickInterval);
|
|
272884
|
+
};
|
|
272885
|
+
} else {
|
|
272886
|
+
setShowLoader(false);
|
|
272887
|
+
}
|
|
272888
|
+
}, [status]);
|
|
272889
|
+
if (showLoader) {
|
|
272890
|
+
return spinner2.frames[tick];
|
|
272891
|
+
}
|
|
272892
|
+
const iconName = status === "loading" ? "idle" : status;
|
|
272893
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
272894
|
+
}
|
|
272895
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
272896
|
+
function useRef2(val) {
|
|
272897
|
+
return useState2({ current: val })[0];
|
|
272898
|
+
}
|
|
272899
|
+
|
|
272900
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
272901
|
+
function useKeypress2(userHandler) {
|
|
272902
|
+
const signal = useRef2(userHandler);
|
|
272903
|
+
signal.current = userHandler;
|
|
272904
|
+
useEffect2((rl) => {
|
|
272905
|
+
let ignore = false;
|
|
272906
|
+
const handler = withUpdates2((_input, event) => {
|
|
272907
|
+
if (ignore)
|
|
272908
|
+
return;
|
|
272909
|
+
signal.current(event, rl);
|
|
272910
|
+
});
|
|
272911
|
+
rl.input.on("keypress", handler);
|
|
272912
|
+
return () => {
|
|
272913
|
+
ignore = true;
|
|
272914
|
+
rl.input.removeListener("keypress", handler);
|
|
272915
|
+
};
|
|
272916
|
+
}, []);
|
|
272917
|
+
}
|
|
272918
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
272919
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
272920
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
272921
|
+
function breakLines2(content, width) {
|
|
272922
|
+
return content.split(`
|
|
272923
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
|
272924
|
+
`).map((str) => str.trimEnd())).join(`
|
|
272925
|
+
`);
|
|
272926
|
+
}
|
|
272927
|
+
function readlineWidth2() {
|
|
272928
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
272929
|
+
}
|
|
272930
|
+
|
|
272931
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
272932
|
+
var import_mute_stream2 = __toESM(require_lib13(), 1);
|
|
272933
|
+
import * as readline4 from "node:readline";
|
|
272934
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
272935
|
+
|
|
272936
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
272937
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
|
272938
|
+
var height2 = (content) => content.split(`
|
|
272939
|
+
`).length;
|
|
272940
|
+
var lastLine2 = (content) => content.split(`
|
|
272941
|
+
`).pop() ?? "";
|
|
272942
|
+
|
|
272943
|
+
class ScreenManager2 {
|
|
272944
|
+
height = 0;
|
|
272945
|
+
extraLinesUnderPrompt = 0;
|
|
272946
|
+
cursorPos;
|
|
272947
|
+
rl;
|
|
272948
|
+
constructor(rl) {
|
|
272949
|
+
this.rl = rl;
|
|
272950
|
+
this.cursorPos = rl.getCursorPos();
|
|
272951
|
+
}
|
|
272952
|
+
write(content) {
|
|
272953
|
+
this.rl.output.unmute();
|
|
272954
|
+
this.rl.output.write(content);
|
|
272955
|
+
this.rl.output.mute();
|
|
272956
|
+
}
|
|
272957
|
+
render(content, bottomContent = "") {
|
|
272958
|
+
const promptLine = lastLine2(content);
|
|
272959
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
|
272960
|
+
let prompt = rawPromptLine;
|
|
272961
|
+
if (this.rl.line.length > 0) {
|
|
272962
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
|
272963
|
+
}
|
|
272964
|
+
this.rl.setPrompt(prompt);
|
|
272965
|
+
this.cursorPos = this.rl.getCursorPos();
|
|
272966
|
+
const width = readlineWidth2();
|
|
272967
|
+
content = breakLines2(content, width);
|
|
272968
|
+
bottomContent = breakLines2(bottomContent, width);
|
|
272969
|
+
if (rawPromptLine.length % width === 0) {
|
|
272970
|
+
content += `
|
|
272971
|
+
`;
|
|
272972
|
+
}
|
|
272973
|
+
let output = content + (bottomContent ? `
|
|
272974
|
+
` + bottomContent : "");
|
|
272975
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
272976
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
272977
|
+
if (bottomContentHeight > 0)
|
|
272978
|
+
output += cursorUp(bottomContentHeight);
|
|
272979
|
+
output += cursorTo(this.cursorPos.cols);
|
|
272980
|
+
this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
|
|
272981
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
272982
|
+
this.height = height2(output);
|
|
272983
|
+
}
|
|
272984
|
+
checkCursorPos() {
|
|
272985
|
+
const cursorPos = this.rl.getCursorPos();
|
|
272986
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
272987
|
+
this.write(cursorTo(cursorPos.cols));
|
|
272988
|
+
this.cursorPos = cursorPos;
|
|
272989
|
+
}
|
|
272990
|
+
}
|
|
272991
|
+
done({ clearContent }) {
|
|
272992
|
+
this.rl.setPrompt("");
|
|
272993
|
+
let output = cursorDown(this.extraLinesUnderPrompt);
|
|
272994
|
+
output += clearContent ? eraseLines(this.height) : `
|
|
272995
|
+
`;
|
|
272996
|
+
output += cursorShow;
|
|
272997
|
+
this.write(output);
|
|
272998
|
+
this.rl.close();
|
|
272999
|
+
}
|
|
273000
|
+
}
|
|
273001
|
+
|
|
273002
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
273003
|
+
class PromisePolyfill2 extends Promise {
|
|
273004
|
+
static withResolver() {
|
|
273005
|
+
let resolve6;
|
|
273006
|
+
let reject;
|
|
273007
|
+
const promise2 = new Promise((res, rej) => {
|
|
273008
|
+
resolve6 = res;
|
|
273009
|
+
reject = rej;
|
|
273010
|
+
});
|
|
273011
|
+
return { promise: promise2, resolve: resolve6, reject };
|
|
273012
|
+
}
|
|
273013
|
+
}
|
|
273014
|
+
|
|
273015
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.2+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273016
|
+
function getCallSites2() {
|
|
273017
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
|
273018
|
+
let result = [];
|
|
273019
|
+
try {
|
|
273020
|
+
Error.prepareStackTrace = (_6, callSites) => {
|
|
273021
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
|
273022
|
+
result = callSitesWithoutCurrent;
|
|
273023
|
+
return callSitesWithoutCurrent;
|
|
273024
|
+
};
|
|
273025
|
+
new Error().stack;
|
|
273026
|
+
} catch {
|
|
273027
|
+
return result;
|
|
273028
|
+
}
|
|
273029
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
|
273030
|
+
return result;
|
|
273031
|
+
}
|
|
273032
|
+
function createPrompt2(view) {
|
|
273033
|
+
const callSites = getCallSites2();
|
|
273034
|
+
const prompt = (config3, context = {}) => {
|
|
273035
|
+
const { input = process.stdin, signal } = context;
|
|
273036
|
+
const cleanups = new Set;
|
|
273037
|
+
const output = new import_mute_stream2.default;
|
|
273038
|
+
output.pipe(context.output ?? process.stdout);
|
|
273039
|
+
const rl = readline4.createInterface({
|
|
273040
|
+
terminal: true,
|
|
273041
|
+
input,
|
|
273042
|
+
output
|
|
273043
|
+
});
|
|
273044
|
+
const screen = new ScreenManager2(rl);
|
|
273045
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
|
273046
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
|
273047
|
+
if (signal) {
|
|
273048
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
|
273049
|
+
if (signal.aborted) {
|
|
273050
|
+
abort();
|
|
273051
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
|
273052
|
+
}
|
|
273053
|
+
signal.addEventListener("abort", abort);
|
|
273054
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
273055
|
+
}
|
|
273056
|
+
cleanups.add(onExit((code2, signal2) => {
|
|
273057
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
|
273058
|
+
}));
|
|
273059
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
|
273060
|
+
rl.on("SIGINT", sigint);
|
|
273061
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
|
273062
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
|
273063
|
+
rl.input.on("keypress", checkCursorPos);
|
|
273064
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
273065
|
+
return withHooks2(rl, (cycle) => {
|
|
273066
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
|
273067
|
+
rl.on("close", hooksCleanup);
|
|
273068
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
273069
|
+
cycle(() => {
|
|
273070
|
+
try {
|
|
273071
|
+
const nextView = view(config3, (value4) => {
|
|
273072
|
+
setImmediate(() => resolve6(value4));
|
|
273073
|
+
});
|
|
273074
|
+
if (nextView === undefined) {
|
|
273075
|
+
const callerFilename = callSites[1]?.getFileName();
|
|
273076
|
+
throw new Error(`Prompt functions must return a string.
|
|
273077
|
+
at ${callerFilename}`);
|
|
273078
|
+
}
|
|
273079
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
273080
|
+
screen.render(content, bottomContent);
|
|
273081
|
+
effectScheduler2.run();
|
|
273082
|
+
} catch (error50) {
|
|
273083
|
+
reject(error50);
|
|
273084
|
+
}
|
|
273085
|
+
});
|
|
273086
|
+
return Object.assign(promise2.then((answer) => {
|
|
273087
|
+
effectScheduler2.clearAll();
|
|
273088
|
+
return answer;
|
|
273089
|
+
}, (error50) => {
|
|
273090
|
+
effectScheduler2.clearAll();
|
|
273091
|
+
throw error50;
|
|
273092
|
+
}).finally(() => {
|
|
273093
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
273094
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
273095
|
+
output.end();
|
|
273096
|
+
}).then(() => promise2), { cancel: cancel3 });
|
|
273097
|
+
});
|
|
273098
|
+
};
|
|
273099
|
+
return prompt;
|
|
273100
|
+
}
|
|
273101
|
+
// ../../node_modules/.bun/@inquirer+input@4.3.1+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
|
|
272528
273102
|
var inputTheme = {
|
|
272529
273103
|
validationFailureMode: "keep"
|
|
272530
273104
|
};
|
|
272531
|
-
var esm_default2 =
|
|
273105
|
+
var esm_default2 = createPrompt2((config3, done) => {
|
|
272532
273106
|
const { prefill = "tab" } = config3;
|
|
272533
|
-
const theme =
|
|
272534
|
-
const [status, setStatus] =
|
|
272535
|
-
const [defaultValue = "", setDefaultValue] =
|
|
272536
|
-
const [errorMsg, setError] =
|
|
272537
|
-
const [value4, setValue] =
|
|
272538
|
-
const prefix =
|
|
273107
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
|
273108
|
+
const [status, setStatus] = useState2("idle");
|
|
273109
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
|
273110
|
+
const [errorMsg, setError] = useState2();
|
|
273111
|
+
const [value4, setValue] = useState2("");
|
|
273112
|
+
const prefix = usePrefix2({ status, theme });
|
|
272539
273113
|
async function validate3(value5) {
|
|
272540
273114
|
const { required: required2, pattern, patternError = "Invalid input" } = config3;
|
|
272541
273115
|
if (required2 && !value5) {
|
|
@@ -272549,11 +273123,11 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
272549
273123
|
}
|
|
272550
273124
|
return true;
|
|
272551
273125
|
}
|
|
272552
|
-
|
|
273126
|
+
useKeypress2(async (key, rl) => {
|
|
272553
273127
|
if (status !== "idle") {
|
|
272554
273128
|
return;
|
|
272555
273129
|
}
|
|
272556
|
-
if (
|
|
273130
|
+
if (isEnterKey2(key)) {
|
|
272557
273131
|
const answer = value4 || defaultValue;
|
|
272558
273132
|
setStatus("loading");
|
|
272559
273133
|
const isValid = await validate3(answer);
|
|
@@ -272570,9 +273144,9 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
272570
273144
|
setError(isValid);
|
|
272571
273145
|
setStatus("idle");
|
|
272572
273146
|
}
|
|
272573
|
-
} else if (
|
|
273147
|
+
} else if (isBackspaceKey2(key) && !value4) {
|
|
272574
273148
|
setDefaultValue(undefined);
|
|
272575
|
-
} else if (
|
|
273149
|
+
} else if (isTabKey2(key) && !value4) {
|
|
272576
273150
|
setDefaultValue(undefined);
|
|
272577
273151
|
rl.clearLine(0);
|
|
272578
273152
|
rl.write(defaultValue);
|
|
@@ -272582,7 +273156,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
272582
273156
|
setError(undefined);
|
|
272583
273157
|
}
|
|
272584
273158
|
});
|
|
272585
|
-
|
|
273159
|
+
useEffect2((rl) => {
|
|
272586
273160
|
if (prefill === "editable" && defaultValue) {
|
|
272587
273161
|
rl.write(defaultValue);
|
|
272588
273162
|
setValue(defaultValue);
|
|
@@ -272627,14 +273201,14 @@ async function subgraphNamePrompt({
|
|
|
272627
273201
|
return sanitizeName(subgraphName);
|
|
272628
273202
|
}
|
|
272629
273203
|
|
|
272630
|
-
// ../../node_modules/.bun/@inquirer+select@4.4.0+
|
|
272631
|
-
var
|
|
273204
|
+
// ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
|
|
273205
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
272632
273206
|
var selectTheme = {
|
|
272633
273207
|
icon: { cursor: esm_default.pointer },
|
|
272634
273208
|
style: {
|
|
272635
|
-
disabled: (text2) =>
|
|
272636
|
-
description: (text2) =>
|
|
272637
|
-
keysHelpTip: (keys) => keys.map(([key, action]) => `${
|
|
273209
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
|
273210
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
|
|
273211
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
|
|
272638
273212
|
},
|
|
272639
273213
|
helpMode: "always",
|
|
272640
273214
|
indexMode: "hidden",
|
|
@@ -298306,7 +298880,7 @@ function extractInfoFromBody(body) {
|
|
|
298306
298880
|
}
|
|
298307
298881
|
}
|
|
298308
298882
|
|
|
298309
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.20+
|
|
298883
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.20+c30ff3a63f0500d5/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
298310
298884
|
function getBooleanValue(value4, defaultValue) {
|
|
298311
298885
|
let answer = defaultValue !== false;
|
|
298312
298886
|
if (/^(y|yes)/i.test(value4))
|
|
@@ -298352,7 +298926,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
298352
298926
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
298353
298927
|
});
|
|
298354
298928
|
|
|
298355
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.21+
|
|
298929
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
|
|
298356
298930
|
var esm_default5 = createPrompt((config3, done) => {
|
|
298357
298931
|
const { validate: validate8 = () => true } = config3;
|
|
298358
298932
|
const theme = makeTheme(config3.theme);
|
|
@@ -300067,7 +300641,7 @@ var basename2 = function(p6, extension) {
|
|
|
300067
300641
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
300068
300642
|
};
|
|
300069
300643
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
300070
|
-
function
|
|
300644
|
+
function isPlainObject5(value4) {
|
|
300071
300645
|
if (value4 === null || typeof value4 !== "object") {
|
|
300072
300646
|
return false;
|
|
300073
300647
|
}
|
|
@@ -300084,7 +300658,7 @@ function isPlainObject4(value4) {
|
|
|
300084
300658
|
return true;
|
|
300085
300659
|
}
|
|
300086
300660
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
300087
|
-
if (!
|
|
300661
|
+
if (!isPlainObject5(defaults2)) {
|
|
300088
300662
|
return _defu(baseObject, {}, namespace, merger);
|
|
300089
300663
|
}
|
|
300090
300664
|
const object2 = Object.assign({}, defaults2);
|
|
@@ -300101,7 +300675,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
|
300101
300675
|
}
|
|
300102
300676
|
if (Array.isArray(value4) && Array.isArray(object2[key])) {
|
|
300103
300677
|
object2[key] = [...value4, ...object2[key]];
|
|
300104
|
-
} else if (
|
|
300678
|
+
} else if (isPlainObject5(value4) && isPlainObject5(object2[key])) {
|
|
300105
300679
|
object2[key] = _defu(value4, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
300106
300680
|
} else {
|
|
300107
300681
|
object2[key] = value4;
|
|
@@ -306083,7 +306657,7 @@ function jsonOutput(data) {
|
|
|
306083
306657
|
var composer = require_composer();
|
|
306084
306658
|
var Document = require_Document();
|
|
306085
306659
|
var Schema = require_Schema();
|
|
306086
|
-
var
|
|
306660
|
+
var errors5 = require_errors3();
|
|
306087
306661
|
var Alias = require_Alias();
|
|
306088
306662
|
var identity2 = require_identity();
|
|
306089
306663
|
var Pair = require_Pair();
|
|
@@ -306099,9 +306673,9 @@ var visit2 = require_visit();
|
|
|
306099
306673
|
var $Composer = composer.Composer;
|
|
306100
306674
|
var $Document = Document.Document;
|
|
306101
306675
|
var $Schema = Schema.Schema;
|
|
306102
|
-
var $YAMLError =
|
|
306103
|
-
var $YAMLParseError =
|
|
306104
|
-
var $YAMLWarning =
|
|
306676
|
+
var $YAMLError = errors5.YAMLError;
|
|
306677
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
|
306678
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
|
306105
306679
|
var $Alias = Alias.Alias;
|
|
306106
306680
|
var $isAlias = identity2.isAlias;
|
|
306107
306681
|
var $isCollection = identity2.isCollection;
|
|
@@ -306640,7 +307214,7 @@ function formatUseCaseName(name3) {
|
|
|
306640
307214
|
}
|
|
306641
307215
|
|
|
306642
307216
|
// src/utils/smart-contract-set/execute-foundry-command.ts
|
|
306643
|
-
var import_which = __toESM(
|
|
307217
|
+
var import_which = __toESM(require_lib14(), 1);
|
|
306644
307218
|
async function executeFoundryCommand(command, args) {
|
|
306645
307219
|
try {
|
|
306646
307220
|
await import_which.default(command);
|
|
@@ -307962,4 +308536,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
307962
308536
|
// src/cli.ts
|
|
307963
308537
|
sdkCliCommand();
|
|
307964
308538
|
|
|
307965
|
-
//# debugId=
|
|
308539
|
+
//# debugId=1866C1649F53506564756E2164756E21
|