@settlemint/sdk-cli 2.6.2-main80caac92 → 2.6.2-main87ab0643
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 +855 -96
- package/dist/cli.js.map +19 -3
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -245275,7 +245275,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
245275
245275
|
var node_process = __require("process");
|
|
245276
245276
|
var directives5 = require_directives2();
|
|
245277
245277
|
var Document = require_Document();
|
|
245278
|
-
var
|
|
245278
|
+
var errors5 = require_errors3();
|
|
245279
245279
|
var identity2 = require_identity();
|
|
245280
245280
|
var composeDoc = require_compose_doc();
|
|
245281
245281
|
var resolveEnd = require_resolve_end();
|
|
@@ -245326,9 +245326,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
245326
245326
|
this.onError = (source, code2, message, warning) => {
|
|
245327
245327
|
const pos = getErrorPos(source);
|
|
245328
245328
|
if (warning)
|
|
245329
|
-
this.warnings.push(new
|
|
245329
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
|
245330
245330
|
else
|
|
245331
|
-
this.errors.push(new
|
|
245331
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
|
245332
245332
|
};
|
|
245333
245333
|
this.directives = new directives5.Directives({ version: options.version || "1.2" });
|
|
245334
245334
|
this.options = options;
|
|
@@ -245412,7 +245412,7 @@ ${cb}` : comment;
|
|
|
245412
245412
|
break;
|
|
245413
245413
|
case "error": {
|
|
245414
245414
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
245415
|
-
const error51 = new
|
|
245415
|
+
const error51 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
245416
245416
|
if (this.atDirectives || !this.doc)
|
|
245417
245417
|
this.errors.push(error51);
|
|
245418
245418
|
else
|
|
@@ -245422,7 +245422,7 @@ ${cb}` : comment;
|
|
|
245422
245422
|
case "doc-end": {
|
|
245423
245423
|
if (!this.doc) {
|
|
245424
245424
|
const msg = "Unexpected doc-end without preceding document";
|
|
245425
|
-
this.errors.push(new
|
|
245425
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
245426
245426
|
break;
|
|
245427
245427
|
}
|
|
245428
245428
|
this.doc.directives.docEnd = true;
|
|
@@ -245437,7 +245437,7 @@ ${end.comment}` : end.comment;
|
|
|
245437
245437
|
break;
|
|
245438
245438
|
}
|
|
245439
245439
|
default:
|
|
245440
|
-
this.errors.push(new
|
|
245440
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
245441
245441
|
}
|
|
245442
245442
|
}
|
|
245443
245443
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -245463,7 +245463,7 @@ ${end.comment}` : end.comment;
|
|
|
245463
245463
|
var require_cst_scalar = __commonJS((exports) => {
|
|
245464
245464
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
245465
245465
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
245466
|
-
var
|
|
245466
|
+
var errors5 = require_errors3();
|
|
245467
245467
|
var stringifyString = require_stringifyString();
|
|
245468
245468
|
function resolveAsScalar(token, strict = true, onError) {
|
|
245469
245469
|
if (token) {
|
|
@@ -245472,7 +245472,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
245472
245472
|
if (onError)
|
|
245473
245473
|
onError(offset, code2, message);
|
|
245474
245474
|
else
|
|
245475
|
-
throw new
|
|
245475
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
|
245476
245476
|
};
|
|
245477
245477
|
switch (token.type) {
|
|
245478
245478
|
case "scalar":
|
|
@@ -247334,7 +247334,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
247334
247334
|
var require_public_api = __commonJS((exports) => {
|
|
247335
247335
|
var composer = require_composer();
|
|
247336
247336
|
var Document = require_Document();
|
|
247337
|
-
var
|
|
247337
|
+
var errors5 = require_errors3();
|
|
247338
247338
|
var log = require_log();
|
|
247339
247339
|
var identity2 = require_identity();
|
|
247340
247340
|
var lineCounter = require_line_counter();
|
|
@@ -247351,8 +247351,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
247351
247351
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
247352
247352
|
if (prettyErrors && lineCounter2)
|
|
247353
247353
|
for (const doc2 of docs) {
|
|
247354
|
-
doc2.errors.forEach(
|
|
247355
|
-
doc2.warnings.forEach(
|
|
247354
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
247355
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
247356
247356
|
}
|
|
247357
247357
|
if (docs.length > 0)
|
|
247358
247358
|
return docs;
|
|
@@ -247367,13 +247367,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
247367
247367
|
if (!doc2)
|
|
247368
247368
|
doc2 = _doc;
|
|
247369
247369
|
else if (doc2.options.logLevel !== "silent") {
|
|
247370
|
-
doc2.errors.push(new
|
|
247370
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
247371
247371
|
break;
|
|
247372
247372
|
}
|
|
247373
247373
|
}
|
|
247374
247374
|
if (prettyErrors && lineCounter2) {
|
|
247375
|
-
doc2.errors.forEach(
|
|
247376
|
-
doc2.warnings.forEach(
|
|
247375
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
247376
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
247377
247377
|
}
|
|
247378
247378
|
return doc2;
|
|
247379
247379
|
}
|
|
@@ -247444,7 +247444,6 @@ var {
|
|
|
247444
247444
|
var isUpKey = (key) => key.name === "up";
|
|
247445
247445
|
var isDownKey = (key) => key.name === "down";
|
|
247446
247446
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
247447
|
-
var isTabKey = (key) => key.name === "tab";
|
|
247448
247447
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
247449
247448
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
247450
247449
|
// ../../node_modules/.bun/@inquirer+core@10.2.2+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
@@ -267701,7 +267700,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267701
267700
|
var package_default = {
|
|
267702
267701
|
name: "@settlemint/sdk-cli",
|
|
267703
267702
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267704
|
-
version: "2.6.2-
|
|
267703
|
+
version: "2.6.2-main87ab0643",
|
|
267705
267704
|
type: "module",
|
|
267706
267705
|
private: false,
|
|
267707
267706
|
license: "FSL-1.1-MIT",
|
|
@@ -267751,14 +267750,14 @@ var package_default = {
|
|
|
267751
267750
|
devDependencies: {
|
|
267752
267751
|
"@commander-js/extra-typings": "14.0.0",
|
|
267753
267752
|
commander: "14.0.1",
|
|
267754
|
-
"@inquirer/confirm": "5.1.
|
|
267755
|
-
"@inquirer/input": "4.2.
|
|
267753
|
+
"@inquirer/confirm": "5.1.19",
|
|
267754
|
+
"@inquirer/input": "4.2.5",
|
|
267756
267755
|
"@inquirer/password": "4.0.20",
|
|
267757
267756
|
"@inquirer/select": "4.3.4",
|
|
267758
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
|
267759
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267760
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
267761
|
-
"@settlemint/sdk-viem": "2.6.2-
|
|
267757
|
+
"@settlemint/sdk-hasura": "2.6.2-main87ab0643",
|
|
267758
|
+
"@settlemint/sdk-js": "2.6.2-main87ab0643",
|
|
267759
|
+
"@settlemint/sdk-utils": "2.6.2-main87ab0643",
|
|
267760
|
+
"@settlemint/sdk-viem": "2.6.2-main87ab0643",
|
|
267762
267761
|
"@types/node": "24.7.2",
|
|
267763
267762
|
"@types/semver": "7.7.1",
|
|
267764
267763
|
"@types/which": "3.0.4",
|
|
@@ -267775,7 +267774,7 @@ var package_default = {
|
|
|
267775
267774
|
},
|
|
267776
267775
|
peerDependencies: {
|
|
267777
267776
|
hardhat: "<= 4",
|
|
267778
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267777
|
+
"@settlemint/sdk-js": "2.6.2-main87ab0643"
|
|
267779
267778
|
},
|
|
267780
267779
|
peerDependenciesMeta: {
|
|
267781
267780
|
hardhat: {
|
|
@@ -273632,23 +273631,783 @@ function sanitizeName(value5, length = 35) {
|
|
|
273632
273631
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
273633
273632
|
}
|
|
273634
273633
|
|
|
273635
|
-
// ../../node_modules/.bun/@inquirer+
|
|
273634
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
273635
|
+
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
|
273636
|
+
var isTabKey = (key2) => key2.name === "tab";
|
|
273637
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
|
273638
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
273639
|
+
class AbortPromptError2 extends Error {
|
|
273640
|
+
name = "AbortPromptError";
|
|
273641
|
+
message = "Prompt was aborted";
|
|
273642
|
+
constructor(options) {
|
|
273643
|
+
super();
|
|
273644
|
+
this.cause = options?.cause;
|
|
273645
|
+
}
|
|
273646
|
+
}
|
|
273647
|
+
|
|
273648
|
+
class CancelPromptError2 extends Error {
|
|
273649
|
+
name = "CancelPromptError";
|
|
273650
|
+
message = "Prompt was canceled";
|
|
273651
|
+
}
|
|
273652
|
+
|
|
273653
|
+
class ExitPromptError2 extends Error {
|
|
273654
|
+
name = "ExitPromptError";
|
|
273655
|
+
}
|
|
273656
|
+
|
|
273657
|
+
class HookError2 extends Error {
|
|
273658
|
+
name = "HookError";
|
|
273659
|
+
}
|
|
273660
|
+
|
|
273661
|
+
class ValidationError2 extends Error {
|
|
273662
|
+
name = "ValidationError";
|
|
273663
|
+
}
|
|
273664
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
273665
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
273666
|
+
|
|
273667
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
273668
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
273669
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
|
273670
|
+
function createStore2(rl) {
|
|
273671
|
+
const store = {
|
|
273672
|
+
rl,
|
|
273673
|
+
hooks: [],
|
|
273674
|
+
hooksCleanup: [],
|
|
273675
|
+
hooksEffect: [],
|
|
273676
|
+
index: 0,
|
|
273677
|
+
handleChange() {}
|
|
273678
|
+
};
|
|
273679
|
+
return store;
|
|
273680
|
+
}
|
|
273681
|
+
function withHooks2(rl, cb) {
|
|
273682
|
+
const store = createStore2(rl);
|
|
273683
|
+
return hookStorage2.run(store, () => {
|
|
273684
|
+
function cycle(render) {
|
|
273685
|
+
store.handleChange = () => {
|
|
273686
|
+
store.index = 0;
|
|
273687
|
+
render();
|
|
273688
|
+
};
|
|
273689
|
+
store.handleChange();
|
|
273690
|
+
}
|
|
273691
|
+
return cb(cycle);
|
|
273692
|
+
});
|
|
273693
|
+
}
|
|
273694
|
+
function getStore2() {
|
|
273695
|
+
const store = hookStorage2.getStore();
|
|
273696
|
+
if (!store) {
|
|
273697
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
|
273698
|
+
}
|
|
273699
|
+
return store;
|
|
273700
|
+
}
|
|
273701
|
+
function readline3() {
|
|
273702
|
+
return getStore2().rl;
|
|
273703
|
+
}
|
|
273704
|
+
function withUpdates2(fn) {
|
|
273705
|
+
const wrapped = (...args) => {
|
|
273706
|
+
const store = getStore2();
|
|
273707
|
+
let shouldUpdate = false;
|
|
273708
|
+
const oldHandleChange = store.handleChange;
|
|
273709
|
+
store.handleChange = () => {
|
|
273710
|
+
shouldUpdate = true;
|
|
273711
|
+
};
|
|
273712
|
+
const returnValue = fn(...args);
|
|
273713
|
+
if (shouldUpdate) {
|
|
273714
|
+
oldHandleChange();
|
|
273715
|
+
}
|
|
273716
|
+
store.handleChange = oldHandleChange;
|
|
273717
|
+
return returnValue;
|
|
273718
|
+
};
|
|
273719
|
+
return AsyncResource4.bind(wrapped);
|
|
273720
|
+
}
|
|
273721
|
+
function withPointer2(cb) {
|
|
273722
|
+
const store = getStore2();
|
|
273723
|
+
const { index } = store;
|
|
273724
|
+
const pointer = {
|
|
273725
|
+
get() {
|
|
273726
|
+
return store.hooks[index];
|
|
273727
|
+
},
|
|
273728
|
+
set(value5) {
|
|
273729
|
+
store.hooks[index] = value5;
|
|
273730
|
+
},
|
|
273731
|
+
initialized: index in store.hooks
|
|
273732
|
+
};
|
|
273733
|
+
const returnValue = cb(pointer);
|
|
273734
|
+
store.index++;
|
|
273735
|
+
return returnValue;
|
|
273736
|
+
}
|
|
273737
|
+
function handleChange2() {
|
|
273738
|
+
getStore2().handleChange();
|
|
273739
|
+
}
|
|
273740
|
+
var effectScheduler2 = {
|
|
273741
|
+
queue(cb) {
|
|
273742
|
+
const store = getStore2();
|
|
273743
|
+
const { index } = store;
|
|
273744
|
+
store.hooksEffect.push(() => {
|
|
273745
|
+
store.hooksCleanup[index]?.();
|
|
273746
|
+
const cleanFn = cb(readline3());
|
|
273747
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
273748
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
|
273749
|
+
}
|
|
273750
|
+
store.hooksCleanup[index] = cleanFn;
|
|
273751
|
+
});
|
|
273752
|
+
},
|
|
273753
|
+
run() {
|
|
273754
|
+
const store = getStore2();
|
|
273755
|
+
withUpdates2(() => {
|
|
273756
|
+
store.hooksEffect.forEach((effect) => {
|
|
273757
|
+
effect();
|
|
273758
|
+
});
|
|
273759
|
+
store.hooksEffect.length = 0;
|
|
273760
|
+
})();
|
|
273761
|
+
},
|
|
273762
|
+
clearAll() {
|
|
273763
|
+
const store = getStore2();
|
|
273764
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
|
273765
|
+
cleanFn?.();
|
|
273766
|
+
});
|
|
273767
|
+
store.hooksEffect.length = 0;
|
|
273768
|
+
store.hooksCleanup.length = 0;
|
|
273769
|
+
}
|
|
273770
|
+
};
|
|
273771
|
+
|
|
273772
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
273773
|
+
function useState2(defaultValue) {
|
|
273774
|
+
return withPointer2((pointer) => {
|
|
273775
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
|
273776
|
+
if (pointer.get() !== newValue) {
|
|
273777
|
+
pointer.set(newValue);
|
|
273778
|
+
handleChange2();
|
|
273779
|
+
}
|
|
273780
|
+
});
|
|
273781
|
+
if (pointer.initialized) {
|
|
273782
|
+
return [pointer.get(), setState];
|
|
273783
|
+
}
|
|
273784
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
273785
|
+
pointer.set(value5);
|
|
273786
|
+
return [value5, setState];
|
|
273787
|
+
});
|
|
273788
|
+
}
|
|
273789
|
+
|
|
273790
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
273791
|
+
function useEffect2(cb, depArray) {
|
|
273792
|
+
withPointer2((pointer) => {
|
|
273793
|
+
const oldDeps = pointer.get();
|
|
273794
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
|
273795
|
+
if (hasChanged) {
|
|
273796
|
+
effectScheduler2.queue(cb);
|
|
273797
|
+
}
|
|
273798
|
+
pointer.set(depArray);
|
|
273799
|
+
});
|
|
273800
|
+
}
|
|
273801
|
+
|
|
273802
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
273803
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
273804
|
+
|
|
273805
|
+
// ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
|
|
273806
|
+
import process8 from "node:process";
|
|
273807
|
+
function isUnicodeSupported3() {
|
|
273808
|
+
if (process8.platform !== "win32") {
|
|
273809
|
+
return process8.env["TERM"] !== "linux";
|
|
273810
|
+
}
|
|
273811
|
+
return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
273812
|
+
}
|
|
273813
|
+
var common2 = {
|
|
273814
|
+
circleQuestionMark: "(?)",
|
|
273815
|
+
questionMarkPrefix: "(?)",
|
|
273816
|
+
square: "█",
|
|
273817
|
+
squareDarkShade: "▓",
|
|
273818
|
+
squareMediumShade: "▒",
|
|
273819
|
+
squareLightShade: "░",
|
|
273820
|
+
squareTop: "▀",
|
|
273821
|
+
squareBottom: "▄",
|
|
273822
|
+
squareLeft: "▌",
|
|
273823
|
+
squareRight: "▐",
|
|
273824
|
+
squareCenter: "■",
|
|
273825
|
+
bullet: "●",
|
|
273826
|
+
dot: "․",
|
|
273827
|
+
ellipsis: "…",
|
|
273828
|
+
pointerSmall: "›",
|
|
273829
|
+
triangleUp: "▲",
|
|
273830
|
+
triangleUpSmall: "▴",
|
|
273831
|
+
triangleDown: "▼",
|
|
273832
|
+
triangleDownSmall: "▾",
|
|
273833
|
+
triangleLeftSmall: "◂",
|
|
273834
|
+
triangleRightSmall: "▸",
|
|
273835
|
+
home: "⌂",
|
|
273836
|
+
heart: "♥",
|
|
273837
|
+
musicNote: "♪",
|
|
273838
|
+
musicNoteBeamed: "♫",
|
|
273839
|
+
arrowUp: "↑",
|
|
273840
|
+
arrowDown: "↓",
|
|
273841
|
+
arrowLeft: "←",
|
|
273842
|
+
arrowRight: "→",
|
|
273843
|
+
arrowLeftRight: "↔",
|
|
273844
|
+
arrowUpDown: "↕",
|
|
273845
|
+
almostEqual: "≈",
|
|
273846
|
+
notEqual: "≠",
|
|
273847
|
+
lessOrEqual: "≤",
|
|
273848
|
+
greaterOrEqual: "≥",
|
|
273849
|
+
identical: "≡",
|
|
273850
|
+
infinity: "∞",
|
|
273851
|
+
subscriptZero: "₀",
|
|
273852
|
+
subscriptOne: "₁",
|
|
273853
|
+
subscriptTwo: "₂",
|
|
273854
|
+
subscriptThree: "₃",
|
|
273855
|
+
subscriptFour: "₄",
|
|
273856
|
+
subscriptFive: "₅",
|
|
273857
|
+
subscriptSix: "₆",
|
|
273858
|
+
subscriptSeven: "₇",
|
|
273859
|
+
subscriptEight: "₈",
|
|
273860
|
+
subscriptNine: "₉",
|
|
273861
|
+
oneHalf: "½",
|
|
273862
|
+
oneThird: "⅓",
|
|
273863
|
+
oneQuarter: "¼",
|
|
273864
|
+
oneFifth: "⅕",
|
|
273865
|
+
oneSixth: "⅙",
|
|
273866
|
+
oneEighth: "⅛",
|
|
273867
|
+
twoThirds: "⅔",
|
|
273868
|
+
twoFifths: "⅖",
|
|
273869
|
+
threeQuarters: "¾",
|
|
273870
|
+
threeFifths: "⅗",
|
|
273871
|
+
threeEighths: "⅜",
|
|
273872
|
+
fourFifths: "⅘",
|
|
273873
|
+
fiveSixths: "⅚",
|
|
273874
|
+
fiveEighths: "⅝",
|
|
273875
|
+
sevenEighths: "⅞",
|
|
273876
|
+
line: "─",
|
|
273877
|
+
lineBold: "━",
|
|
273878
|
+
lineDouble: "═",
|
|
273879
|
+
lineDashed0: "┄",
|
|
273880
|
+
lineDashed1: "┅",
|
|
273881
|
+
lineDashed2: "┈",
|
|
273882
|
+
lineDashed3: "┉",
|
|
273883
|
+
lineDashed4: "╌",
|
|
273884
|
+
lineDashed5: "╍",
|
|
273885
|
+
lineDashed6: "╴",
|
|
273886
|
+
lineDashed7: "╶",
|
|
273887
|
+
lineDashed8: "╸",
|
|
273888
|
+
lineDashed9: "╺",
|
|
273889
|
+
lineDashed10: "╼",
|
|
273890
|
+
lineDashed11: "╾",
|
|
273891
|
+
lineDashed12: "−",
|
|
273892
|
+
lineDashed13: "–",
|
|
273893
|
+
lineDashed14: "‐",
|
|
273894
|
+
lineDashed15: "⁃",
|
|
273895
|
+
lineVertical: "│",
|
|
273896
|
+
lineVerticalBold: "┃",
|
|
273897
|
+
lineVerticalDouble: "║",
|
|
273898
|
+
lineVerticalDashed0: "┆",
|
|
273899
|
+
lineVerticalDashed1: "┇",
|
|
273900
|
+
lineVerticalDashed2: "┊",
|
|
273901
|
+
lineVerticalDashed3: "┋",
|
|
273902
|
+
lineVerticalDashed4: "╎",
|
|
273903
|
+
lineVerticalDashed5: "╏",
|
|
273904
|
+
lineVerticalDashed6: "╵",
|
|
273905
|
+
lineVerticalDashed7: "╷",
|
|
273906
|
+
lineVerticalDashed8: "╹",
|
|
273907
|
+
lineVerticalDashed9: "╻",
|
|
273908
|
+
lineVerticalDashed10: "╽",
|
|
273909
|
+
lineVerticalDashed11: "╿",
|
|
273910
|
+
lineDownLeft: "┐",
|
|
273911
|
+
lineDownLeftArc: "╮",
|
|
273912
|
+
lineDownBoldLeftBold: "┓",
|
|
273913
|
+
lineDownBoldLeft: "┒",
|
|
273914
|
+
lineDownLeftBold: "┑",
|
|
273915
|
+
lineDownDoubleLeftDouble: "╗",
|
|
273916
|
+
lineDownDoubleLeft: "╖",
|
|
273917
|
+
lineDownLeftDouble: "╕",
|
|
273918
|
+
lineDownRight: "┌",
|
|
273919
|
+
lineDownRightArc: "╭",
|
|
273920
|
+
lineDownBoldRightBold: "┏",
|
|
273921
|
+
lineDownBoldRight: "┎",
|
|
273922
|
+
lineDownRightBold: "┍",
|
|
273923
|
+
lineDownDoubleRightDouble: "╔",
|
|
273924
|
+
lineDownDoubleRight: "╓",
|
|
273925
|
+
lineDownRightDouble: "╒",
|
|
273926
|
+
lineUpLeft: "┘",
|
|
273927
|
+
lineUpLeftArc: "╯",
|
|
273928
|
+
lineUpBoldLeftBold: "┛",
|
|
273929
|
+
lineUpBoldLeft: "┚",
|
|
273930
|
+
lineUpLeftBold: "┙",
|
|
273931
|
+
lineUpDoubleLeftDouble: "╝",
|
|
273932
|
+
lineUpDoubleLeft: "╜",
|
|
273933
|
+
lineUpLeftDouble: "╛",
|
|
273934
|
+
lineUpRight: "└",
|
|
273935
|
+
lineUpRightArc: "╰",
|
|
273936
|
+
lineUpBoldRightBold: "┗",
|
|
273937
|
+
lineUpBoldRight: "┖",
|
|
273938
|
+
lineUpRightBold: "┕",
|
|
273939
|
+
lineUpDoubleRightDouble: "╚",
|
|
273940
|
+
lineUpDoubleRight: "╙",
|
|
273941
|
+
lineUpRightDouble: "╘",
|
|
273942
|
+
lineUpDownLeft: "┤",
|
|
273943
|
+
lineUpBoldDownBoldLeftBold: "┫",
|
|
273944
|
+
lineUpBoldDownBoldLeft: "┨",
|
|
273945
|
+
lineUpDownLeftBold: "┥",
|
|
273946
|
+
lineUpBoldDownLeftBold: "┩",
|
|
273947
|
+
lineUpDownBoldLeftBold: "┪",
|
|
273948
|
+
lineUpDownBoldLeft: "┧",
|
|
273949
|
+
lineUpBoldDownLeft: "┦",
|
|
273950
|
+
lineUpDoubleDownDoubleLeftDouble: "╣",
|
|
273951
|
+
lineUpDoubleDownDoubleLeft: "╢",
|
|
273952
|
+
lineUpDownLeftDouble: "╡",
|
|
273953
|
+
lineUpDownRight: "├",
|
|
273954
|
+
lineUpBoldDownBoldRightBold: "┣",
|
|
273955
|
+
lineUpBoldDownBoldRight: "┠",
|
|
273956
|
+
lineUpDownRightBold: "┝",
|
|
273957
|
+
lineUpBoldDownRightBold: "┡",
|
|
273958
|
+
lineUpDownBoldRightBold: "┢",
|
|
273959
|
+
lineUpDownBoldRight: "┟",
|
|
273960
|
+
lineUpBoldDownRight: "┞",
|
|
273961
|
+
lineUpDoubleDownDoubleRightDouble: "╠",
|
|
273962
|
+
lineUpDoubleDownDoubleRight: "╟",
|
|
273963
|
+
lineUpDownRightDouble: "╞",
|
|
273964
|
+
lineDownLeftRight: "┬",
|
|
273965
|
+
lineDownBoldLeftBoldRightBold: "┳",
|
|
273966
|
+
lineDownLeftBoldRightBold: "┯",
|
|
273967
|
+
lineDownBoldLeftRight: "┰",
|
|
273968
|
+
lineDownBoldLeftBoldRight: "┱",
|
|
273969
|
+
lineDownBoldLeftRightBold: "┲",
|
|
273970
|
+
lineDownLeftRightBold: "┮",
|
|
273971
|
+
lineDownLeftBoldRight: "┭",
|
|
273972
|
+
lineDownDoubleLeftDoubleRightDouble: "╦",
|
|
273973
|
+
lineDownDoubleLeftRight: "╥",
|
|
273974
|
+
lineDownLeftDoubleRightDouble: "╤",
|
|
273975
|
+
lineUpLeftRight: "┴",
|
|
273976
|
+
lineUpBoldLeftBoldRightBold: "┻",
|
|
273977
|
+
lineUpLeftBoldRightBold: "┷",
|
|
273978
|
+
lineUpBoldLeftRight: "┸",
|
|
273979
|
+
lineUpBoldLeftBoldRight: "┹",
|
|
273980
|
+
lineUpBoldLeftRightBold: "┺",
|
|
273981
|
+
lineUpLeftRightBold: "┶",
|
|
273982
|
+
lineUpLeftBoldRight: "┵",
|
|
273983
|
+
lineUpDoubleLeftDoubleRightDouble: "╩",
|
|
273984
|
+
lineUpDoubleLeftRight: "╨",
|
|
273985
|
+
lineUpLeftDoubleRightDouble: "╧",
|
|
273986
|
+
lineUpDownLeftRight: "┼",
|
|
273987
|
+
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
|
273988
|
+
lineUpDownBoldLeftBoldRightBold: "╈",
|
|
273989
|
+
lineUpBoldDownLeftBoldRightBold: "╇",
|
|
273990
|
+
lineUpBoldDownBoldLeftRightBold: "╊",
|
|
273991
|
+
lineUpBoldDownBoldLeftBoldRight: "╉",
|
|
273992
|
+
lineUpBoldDownLeftRight: "╀",
|
|
273993
|
+
lineUpDownBoldLeftRight: "╁",
|
|
273994
|
+
lineUpDownLeftBoldRight: "┽",
|
|
273995
|
+
lineUpDownLeftRightBold: "┾",
|
|
273996
|
+
lineUpBoldDownBoldLeftRight: "╂",
|
|
273997
|
+
lineUpDownLeftBoldRightBold: "┿",
|
|
273998
|
+
lineUpBoldDownLeftBoldRight: "╃",
|
|
273999
|
+
lineUpBoldDownLeftRightBold: "╄",
|
|
274000
|
+
lineUpDownBoldLeftBoldRight: "╅",
|
|
274001
|
+
lineUpDownBoldLeftRightBold: "╆",
|
|
274002
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
|
274003
|
+
lineUpDoubleDownDoubleLeftRight: "╫",
|
|
274004
|
+
lineUpDownLeftDoubleRightDouble: "╪",
|
|
274005
|
+
lineCross: "╳",
|
|
274006
|
+
lineBackslash: "╲",
|
|
274007
|
+
lineSlash: "╱"
|
|
274008
|
+
};
|
|
274009
|
+
var specialMainSymbols2 = {
|
|
274010
|
+
tick: "✔",
|
|
274011
|
+
info: "ℹ",
|
|
274012
|
+
warning: "⚠",
|
|
274013
|
+
cross: "✘",
|
|
274014
|
+
squareSmall: "◻",
|
|
274015
|
+
squareSmallFilled: "◼",
|
|
274016
|
+
circle: "◯",
|
|
274017
|
+
circleFilled: "◉",
|
|
274018
|
+
circleDotted: "◌",
|
|
274019
|
+
circleDouble: "◎",
|
|
274020
|
+
circleCircle: "ⓞ",
|
|
274021
|
+
circleCross: "ⓧ",
|
|
274022
|
+
circlePipe: "Ⓘ",
|
|
274023
|
+
radioOn: "◉",
|
|
274024
|
+
radioOff: "◯",
|
|
274025
|
+
checkboxOn: "☒",
|
|
274026
|
+
checkboxOff: "☐",
|
|
274027
|
+
checkboxCircleOn: "ⓧ",
|
|
274028
|
+
checkboxCircleOff: "Ⓘ",
|
|
274029
|
+
pointer: "❯",
|
|
274030
|
+
triangleUpOutline: "△",
|
|
274031
|
+
triangleLeft: "◀",
|
|
274032
|
+
triangleRight: "▶",
|
|
274033
|
+
lozenge: "◆",
|
|
274034
|
+
lozengeOutline: "◇",
|
|
274035
|
+
hamburger: "☰",
|
|
274036
|
+
smiley: "㋡",
|
|
274037
|
+
mustache: "෴",
|
|
274038
|
+
star: "★",
|
|
274039
|
+
play: "▶",
|
|
274040
|
+
nodejs: "⬢",
|
|
274041
|
+
oneSeventh: "⅐",
|
|
274042
|
+
oneNinth: "⅑",
|
|
274043
|
+
oneTenth: "⅒"
|
|
274044
|
+
};
|
|
274045
|
+
var specialFallbackSymbols2 = {
|
|
274046
|
+
tick: "√",
|
|
274047
|
+
info: "i",
|
|
274048
|
+
warning: "‼",
|
|
274049
|
+
cross: "×",
|
|
274050
|
+
squareSmall: "□",
|
|
274051
|
+
squareSmallFilled: "■",
|
|
274052
|
+
circle: "( )",
|
|
274053
|
+
circleFilled: "(*)",
|
|
274054
|
+
circleDotted: "( )",
|
|
274055
|
+
circleDouble: "( )",
|
|
274056
|
+
circleCircle: "(○)",
|
|
274057
|
+
circleCross: "(×)",
|
|
274058
|
+
circlePipe: "(│)",
|
|
274059
|
+
radioOn: "(*)",
|
|
274060
|
+
radioOff: "( )",
|
|
274061
|
+
checkboxOn: "[×]",
|
|
274062
|
+
checkboxOff: "[ ]",
|
|
274063
|
+
checkboxCircleOn: "(×)",
|
|
274064
|
+
checkboxCircleOff: "( )",
|
|
274065
|
+
pointer: ">",
|
|
274066
|
+
triangleUpOutline: "∆",
|
|
274067
|
+
triangleLeft: "◄",
|
|
274068
|
+
triangleRight: "►",
|
|
274069
|
+
lozenge: "♦",
|
|
274070
|
+
lozengeOutline: "◊",
|
|
274071
|
+
hamburger: "≡",
|
|
274072
|
+
smiley: "☺",
|
|
274073
|
+
mustache: "┌─┐",
|
|
274074
|
+
star: "✶",
|
|
274075
|
+
play: "►",
|
|
274076
|
+
nodejs: "♦",
|
|
274077
|
+
oneSeventh: "1/7",
|
|
274078
|
+
oneNinth: "1/9",
|
|
274079
|
+
oneTenth: "1/10"
|
|
274080
|
+
};
|
|
274081
|
+
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
|
274082
|
+
var fallbackSymbols2 = {
|
|
274083
|
+
...common2,
|
|
274084
|
+
...specialFallbackSymbols2
|
|
274085
|
+
};
|
|
274086
|
+
var shouldUseMain2 = isUnicodeSupported3();
|
|
274087
|
+
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
274088
|
+
var esm_default2 = figures2;
|
|
274089
|
+
var replacements2 = Object.entries(specialMainSymbols2);
|
|
274090
|
+
|
|
274091
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
274092
|
+
var defaultTheme2 = {
|
|
274093
|
+
prefix: {
|
|
274094
|
+
idle: import_yoctocolors_cjs3.default.blue("?"),
|
|
274095
|
+
done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
|
|
274096
|
+
},
|
|
274097
|
+
spinner: {
|
|
274098
|
+
interval: 80,
|
|
274099
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
|
274100
|
+
},
|
|
274101
|
+
style: {
|
|
274102
|
+
answer: import_yoctocolors_cjs3.default.cyan,
|
|
274103
|
+
message: import_yoctocolors_cjs3.default.bold,
|
|
274104
|
+
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
|
274105
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
|
274106
|
+
help: import_yoctocolors_cjs3.default.dim,
|
|
274107
|
+
highlight: import_yoctocolors_cjs3.default.cyan,
|
|
274108
|
+
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
|
274109
|
+
}
|
|
274110
|
+
};
|
|
274111
|
+
|
|
274112
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
274113
|
+
function isPlainObject4(value5) {
|
|
274114
|
+
if (typeof value5 !== "object" || value5 === null)
|
|
274115
|
+
return false;
|
|
274116
|
+
let proto = value5;
|
|
274117
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
274118
|
+
proto = Object.getPrototypeOf(proto);
|
|
274119
|
+
}
|
|
274120
|
+
return Object.getPrototypeOf(value5) === proto;
|
|
274121
|
+
}
|
|
274122
|
+
function deepMerge3(...objects) {
|
|
274123
|
+
const output = {};
|
|
274124
|
+
for (const obj of objects) {
|
|
274125
|
+
for (const [key2, value5] of Object.entries(obj)) {
|
|
274126
|
+
const prevValue = output[key2];
|
|
274127
|
+
output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
|
274128
|
+
}
|
|
274129
|
+
}
|
|
274130
|
+
return output;
|
|
274131
|
+
}
|
|
274132
|
+
function makeTheme2(...themes) {
|
|
274133
|
+
const themesToMerge = [
|
|
274134
|
+
defaultTheme2,
|
|
274135
|
+
...themes.filter((theme) => theme != null)
|
|
274136
|
+
];
|
|
274137
|
+
return deepMerge3(...themesToMerge);
|
|
274138
|
+
}
|
|
274139
|
+
|
|
274140
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
274141
|
+
function usePrefix2({ status = "idle", theme }) {
|
|
274142
|
+
const [showLoader, setShowLoader] = useState2(false);
|
|
274143
|
+
const [tick, setTick] = useState2(0);
|
|
274144
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
|
274145
|
+
useEffect2(() => {
|
|
274146
|
+
if (status === "loading") {
|
|
274147
|
+
let tickInterval;
|
|
274148
|
+
let inc = -1;
|
|
274149
|
+
const delayTimeout = setTimeout(() => {
|
|
274150
|
+
setShowLoader(true);
|
|
274151
|
+
tickInterval = setInterval(() => {
|
|
274152
|
+
inc = inc + 1;
|
|
274153
|
+
setTick(inc % spinner2.frames.length);
|
|
274154
|
+
}, spinner2.interval);
|
|
274155
|
+
}, 300);
|
|
274156
|
+
return () => {
|
|
274157
|
+
clearTimeout(delayTimeout);
|
|
274158
|
+
clearInterval(tickInterval);
|
|
274159
|
+
};
|
|
274160
|
+
} else {
|
|
274161
|
+
setShowLoader(false);
|
|
274162
|
+
}
|
|
274163
|
+
}, [status]);
|
|
274164
|
+
if (showLoader) {
|
|
274165
|
+
return spinner2.frames[tick];
|
|
274166
|
+
}
|
|
274167
|
+
const iconName = status === "loading" ? "idle" : status;
|
|
274168
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
274169
|
+
}
|
|
274170
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
274171
|
+
function useRef2(val) {
|
|
274172
|
+
return useState2({ current: val })[0];
|
|
274173
|
+
}
|
|
274174
|
+
|
|
274175
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
274176
|
+
function useKeypress2(userHandler) {
|
|
274177
|
+
const signal = useRef2(userHandler);
|
|
274178
|
+
signal.current = userHandler;
|
|
274179
|
+
useEffect2((rl) => {
|
|
274180
|
+
let ignore = false;
|
|
274181
|
+
const handler = withUpdates2((_input, event) => {
|
|
274182
|
+
if (ignore)
|
|
274183
|
+
return;
|
|
274184
|
+
signal.current(event, rl);
|
|
274185
|
+
});
|
|
274186
|
+
rl.input.on("keypress", handler);
|
|
274187
|
+
return () => {
|
|
274188
|
+
ignore = true;
|
|
274189
|
+
rl.input.removeListener("keypress", handler);
|
|
274190
|
+
};
|
|
274191
|
+
}, []);
|
|
274192
|
+
}
|
|
274193
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
274194
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
274195
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
274196
|
+
function breakLines2(content, width) {
|
|
274197
|
+
return content.split(`
|
|
274198
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
|
274199
|
+
`).map((str) => str.trimEnd())).join(`
|
|
274200
|
+
`);
|
|
274201
|
+
}
|
|
274202
|
+
function readlineWidth2() {
|
|
274203
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
274204
|
+
}
|
|
274205
|
+
|
|
274206
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
274207
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
|
274208
|
+
import * as readline4 from "node:readline";
|
|
274209
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
274210
|
+
|
|
274211
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
274212
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
|
274213
|
+
|
|
274214
|
+
// ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
274215
|
+
var ESC2 = "\x1B[";
|
|
274216
|
+
var cursorLeft2 = ESC2 + "G";
|
|
274217
|
+
var cursorHide2 = ESC2 + "?25l";
|
|
274218
|
+
var cursorShow2 = ESC2 + "?25h";
|
|
274219
|
+
var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
|
|
274220
|
+
var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
|
|
274221
|
+
var cursorTo2 = (x6, y4) => {
|
|
274222
|
+
if (typeof y4 === "number" && !Number.isNaN(y4)) {
|
|
274223
|
+
return `${ESC2}${y4 + 1};${x6 + 1}H`;
|
|
274224
|
+
}
|
|
274225
|
+
return `${ESC2}${x6 + 1}G`;
|
|
274226
|
+
};
|
|
274227
|
+
var eraseLine2 = ESC2 + "2K";
|
|
274228
|
+
var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
|
|
274229
|
+
|
|
274230
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
274231
|
+
var height2 = (content) => content.split(`
|
|
274232
|
+
`).length;
|
|
274233
|
+
var lastLine2 = (content) => content.split(`
|
|
274234
|
+
`).pop() ?? "";
|
|
274235
|
+
|
|
274236
|
+
class ScreenManager2 {
|
|
274237
|
+
height = 0;
|
|
274238
|
+
extraLinesUnderPrompt = 0;
|
|
274239
|
+
cursorPos;
|
|
274240
|
+
rl;
|
|
274241
|
+
constructor(rl) {
|
|
274242
|
+
this.rl = rl;
|
|
274243
|
+
this.cursorPos = rl.getCursorPos();
|
|
274244
|
+
}
|
|
274245
|
+
write(content) {
|
|
274246
|
+
this.rl.output.unmute();
|
|
274247
|
+
this.rl.output.write(content);
|
|
274248
|
+
this.rl.output.mute();
|
|
274249
|
+
}
|
|
274250
|
+
render(content, bottomContent = "") {
|
|
274251
|
+
const promptLine = lastLine2(content);
|
|
274252
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
|
274253
|
+
let prompt = rawPromptLine;
|
|
274254
|
+
if (this.rl.line.length > 0) {
|
|
274255
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
|
274256
|
+
}
|
|
274257
|
+
this.rl.setPrompt(prompt);
|
|
274258
|
+
this.cursorPos = this.rl.getCursorPos();
|
|
274259
|
+
const width = readlineWidth2();
|
|
274260
|
+
content = breakLines2(content, width);
|
|
274261
|
+
bottomContent = breakLines2(bottomContent, width);
|
|
274262
|
+
if (rawPromptLine.length % width === 0) {
|
|
274263
|
+
content += `
|
|
274264
|
+
`;
|
|
274265
|
+
}
|
|
274266
|
+
let output = content + (bottomContent ? `
|
|
274267
|
+
` + bottomContent : "");
|
|
274268
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
274269
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
274270
|
+
if (bottomContentHeight > 0)
|
|
274271
|
+
output += cursorUp2(bottomContentHeight);
|
|
274272
|
+
output += cursorTo2(this.cursorPos.cols);
|
|
274273
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
|
|
274274
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
274275
|
+
this.height = height2(output);
|
|
274276
|
+
}
|
|
274277
|
+
checkCursorPos() {
|
|
274278
|
+
const cursorPos = this.rl.getCursorPos();
|
|
274279
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
274280
|
+
this.write(cursorTo2(cursorPos.cols));
|
|
274281
|
+
this.cursorPos = cursorPos;
|
|
274282
|
+
}
|
|
274283
|
+
}
|
|
274284
|
+
done({ clearContent }) {
|
|
274285
|
+
this.rl.setPrompt("");
|
|
274286
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
274287
|
+
output += clearContent ? eraseLines2(this.height) : `
|
|
274288
|
+
`;
|
|
274289
|
+
output += cursorShow2;
|
|
274290
|
+
this.write(output);
|
|
274291
|
+
this.rl.close();
|
|
274292
|
+
}
|
|
274293
|
+
}
|
|
274294
|
+
|
|
274295
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
274296
|
+
class PromisePolyfill2 extends Promise {
|
|
274297
|
+
static withResolver() {
|
|
274298
|
+
let resolve6;
|
|
274299
|
+
let reject;
|
|
274300
|
+
const promise2 = new Promise((res, rej) => {
|
|
274301
|
+
resolve6 = res;
|
|
274302
|
+
reject = rej;
|
|
274303
|
+
});
|
|
274304
|
+
return { promise: promise2, resolve: resolve6, reject };
|
|
274305
|
+
}
|
|
274306
|
+
}
|
|
274307
|
+
|
|
274308
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+bbb8dd451823580b/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
274309
|
+
function getCallSites2() {
|
|
274310
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
|
274311
|
+
let result = [];
|
|
274312
|
+
try {
|
|
274313
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
|
274314
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
|
274315
|
+
result = callSitesWithoutCurrent;
|
|
274316
|
+
return callSitesWithoutCurrent;
|
|
274317
|
+
};
|
|
274318
|
+
new Error().stack;
|
|
274319
|
+
} catch {
|
|
274320
|
+
return result;
|
|
274321
|
+
}
|
|
274322
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
|
274323
|
+
return result;
|
|
274324
|
+
}
|
|
274325
|
+
function createPrompt2(view) {
|
|
274326
|
+
const callSites = getCallSites2();
|
|
274327
|
+
const prompt = (config3, context = {}) => {
|
|
274328
|
+
const { input = process.stdin, signal } = context;
|
|
274329
|
+
const cleanups = new Set;
|
|
274330
|
+
const output = new import_mute_stream2.default;
|
|
274331
|
+
output.pipe(context.output ?? process.stdout);
|
|
274332
|
+
const rl = readline4.createInterface({
|
|
274333
|
+
terminal: true,
|
|
274334
|
+
input,
|
|
274335
|
+
output
|
|
274336
|
+
});
|
|
274337
|
+
const screen = new ScreenManager2(rl);
|
|
274338
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
|
274339
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
|
274340
|
+
if (signal) {
|
|
274341
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
|
274342
|
+
if (signal.aborted) {
|
|
274343
|
+
abort();
|
|
274344
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
|
274345
|
+
}
|
|
274346
|
+
signal.addEventListener("abort", abort);
|
|
274347
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
274348
|
+
}
|
|
274349
|
+
cleanups.add(onExit((code2, signal2) => {
|
|
274350
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
|
274351
|
+
}));
|
|
274352
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
|
274353
|
+
rl.on("SIGINT", sigint);
|
|
274354
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
|
274355
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
|
274356
|
+
rl.input.on("keypress", checkCursorPos);
|
|
274357
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
274358
|
+
return withHooks2(rl, (cycle) => {
|
|
274359
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
|
274360
|
+
rl.on("close", hooksCleanup);
|
|
274361
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
274362
|
+
cycle(() => {
|
|
274363
|
+
try {
|
|
274364
|
+
const nextView = view(config3, (value5) => {
|
|
274365
|
+
setImmediate(() => resolve6(value5));
|
|
274366
|
+
});
|
|
274367
|
+
if (nextView === undefined) {
|
|
274368
|
+
const callerFilename = callSites[1]?.getFileName();
|
|
274369
|
+
throw new Error(`Prompt functions must return a string.
|
|
274370
|
+
at ${callerFilename}`);
|
|
274371
|
+
}
|
|
274372
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
274373
|
+
screen.render(content, bottomContent);
|
|
274374
|
+
effectScheduler2.run();
|
|
274375
|
+
} catch (error51) {
|
|
274376
|
+
reject(error51);
|
|
274377
|
+
}
|
|
274378
|
+
});
|
|
274379
|
+
return Object.assign(promise2.then((answer) => {
|
|
274380
|
+
effectScheduler2.clearAll();
|
|
274381
|
+
return answer;
|
|
274382
|
+
}, (error51) => {
|
|
274383
|
+
effectScheduler2.clearAll();
|
|
274384
|
+
throw error51;
|
|
274385
|
+
}).finally(() => {
|
|
274386
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
274387
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
274388
|
+
output.end();
|
|
274389
|
+
}).then(() => promise2), { cancel: cancel3 });
|
|
274390
|
+
});
|
|
274391
|
+
};
|
|
274392
|
+
return prompt;
|
|
274393
|
+
}
|
|
274394
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.5+bbb8dd451823580b/node_modules/@inquirer/input/dist/esm/index.js
|
|
273636
274395
|
var inputTheme = {
|
|
273637
274396
|
validationFailureMode: "keep"
|
|
273638
274397
|
};
|
|
273639
|
-
var
|
|
274398
|
+
var esm_default3 = createPrompt2((config3, done) => {
|
|
273640
274399
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
|
273641
|
-
const theme =
|
|
273642
|
-
const [status, setStatus] =
|
|
273643
|
-
const [defaultValue = "", setDefaultValue] =
|
|
273644
|
-
const [errorMsg, setError] =
|
|
273645
|
-
const [value5, setValue] =
|
|
273646
|
-
const prefix =
|
|
273647
|
-
|
|
274400
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
|
274401
|
+
const [status, setStatus] = useState2("idle");
|
|
274402
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
|
274403
|
+
const [errorMsg, setError] = useState2();
|
|
274404
|
+
const [value5, setValue] = useState2("");
|
|
274405
|
+
const prefix = usePrefix2({ status, theme });
|
|
274406
|
+
useKeypress2(async (key2, rl) => {
|
|
273648
274407
|
if (status !== "idle") {
|
|
273649
274408
|
return;
|
|
273650
274409
|
}
|
|
273651
|
-
if (
|
|
274410
|
+
if (isEnterKey2(key2)) {
|
|
273652
274411
|
const answer = value5 || defaultValue;
|
|
273653
274412
|
setStatus("loading");
|
|
273654
274413
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
|
@@ -273665,7 +274424,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
273665
274424
|
setError(isValid || "You must provide a valid value");
|
|
273666
274425
|
setStatus("idle");
|
|
273667
274426
|
}
|
|
273668
|
-
} else if (
|
|
274427
|
+
} else if (isBackspaceKey2(key2) && !value5) {
|
|
273669
274428
|
setDefaultValue(undefined);
|
|
273670
274429
|
} else if (isTabKey(key2) && !value5) {
|
|
273671
274430
|
setDefaultValue(undefined);
|
|
@@ -273677,7 +274436,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
273677
274436
|
setError(undefined);
|
|
273678
274437
|
}
|
|
273679
274438
|
});
|
|
273680
|
-
|
|
274439
|
+
useEffect2((rl) => {
|
|
273681
274440
|
if (prefill === "editable" && defaultValue) {
|
|
273682
274441
|
rl.write(defaultValue);
|
|
273683
274442
|
setValue(defaultValue);
|
|
@@ -273714,7 +274473,7 @@ async function subgraphNamePrompt({
|
|
|
273714
274473
|
if (accept) {
|
|
273715
274474
|
return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
|
|
273716
274475
|
}
|
|
273717
|
-
const subgraphName = await
|
|
274476
|
+
const subgraphName = await esm_default3({
|
|
273718
274477
|
message: "What is the name of your subgraph?",
|
|
273719
274478
|
default: defaultSubgraphName,
|
|
273720
274479
|
required: true
|
|
@@ -273723,12 +274482,12 @@ async function subgraphNamePrompt({
|
|
|
273723
274482
|
}
|
|
273724
274483
|
|
|
273725
274484
|
// ../../node_modules/.bun/@inquirer+select@4.3.4+bbb8dd451823580b/node_modules/@inquirer/select/dist/esm/index.js
|
|
273726
|
-
var
|
|
274485
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
273727
274486
|
var selectTheme = {
|
|
273728
274487
|
icon: { cursor: esm_default.pointer },
|
|
273729
274488
|
style: {
|
|
273730
|
-
disabled: (text2) =>
|
|
273731
|
-
description: (text2) =>
|
|
274489
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
|
274490
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
|
|
273732
274491
|
},
|
|
273733
274492
|
helpMode: "auto",
|
|
273734
274493
|
indexMode: "hidden"
|
|
@@ -273761,7 +274520,7 @@ function normalizeChoices(choices) {
|
|
|
273761
274520
|
return normalizedChoice;
|
|
273762
274521
|
});
|
|
273763
274522
|
}
|
|
273764
|
-
var
|
|
274523
|
+
var esm_default4 = createPrompt((config3, done) => {
|
|
273765
274524
|
const { loop = true, pageSize = 7 } = config3;
|
|
273766
274525
|
const firstRender = useRef(true);
|
|
273767
274526
|
const theme = makeTheme(selectTheme, config3.theme);
|
|
@@ -273928,7 +274687,7 @@ async function subgraphPrompt({
|
|
|
273928
274687
|
} else {
|
|
273929
274688
|
defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
|
|
273930
274689
|
}
|
|
273931
|
-
const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await
|
|
274690
|
+
const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
|
|
273932
274691
|
message,
|
|
273933
274692
|
choices: choices.map((name4) => ({
|
|
273934
274693
|
name: name4,
|
|
@@ -299121,7 +299880,7 @@ function extractInfoFromBody(body) {
|
|
|
299121
299880
|
}
|
|
299122
299881
|
}
|
|
299123
299882
|
|
|
299124
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.
|
|
299883
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.19+bbb8dd451823580b/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
299125
299884
|
function getBooleanValue(value5, defaultValue) {
|
|
299126
299885
|
let answer = defaultValue !== false;
|
|
299127
299886
|
if (/^(y|yes)/i.test(value5))
|
|
@@ -299133,16 +299892,16 @@ function getBooleanValue(value5, defaultValue) {
|
|
|
299133
299892
|
function boolToString(value5) {
|
|
299134
299893
|
return value5 ? "Yes" : "No";
|
|
299135
299894
|
}
|
|
299136
|
-
var
|
|
299895
|
+
var esm_default5 = createPrompt2((config3, done) => {
|
|
299137
299896
|
const { transformer = boolToString } = config3;
|
|
299138
|
-
const [status, setStatus] =
|
|
299139
|
-
const [value5, setValue] =
|
|
299140
|
-
const theme =
|
|
299141
|
-
const prefix =
|
|
299142
|
-
|
|
299897
|
+
const [status, setStatus] = useState2("idle");
|
|
299898
|
+
const [value5, setValue] = useState2("");
|
|
299899
|
+
const theme = makeTheme2(config3.theme);
|
|
299900
|
+
const prefix = usePrefix2({ status, theme });
|
|
299901
|
+
useKeypress2((key2, rl) => {
|
|
299143
299902
|
if (status !== "idle")
|
|
299144
299903
|
return;
|
|
299145
|
-
if (
|
|
299904
|
+
if (isEnterKey2(key2)) {
|
|
299146
299905
|
const answer = getBooleanValue(value5, config3.default);
|
|
299147
299906
|
setValue(transformer(answer));
|
|
299148
299907
|
setStatus("done");
|
|
@@ -299168,7 +299927,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
299168
299927
|
});
|
|
299169
299928
|
|
|
299170
299929
|
// ../../node_modules/.bun/@inquirer+password@4.0.20+bbb8dd451823580b/node_modules/@inquirer/password/dist/esm/index.js
|
|
299171
|
-
var
|
|
299930
|
+
var esm_default6 = createPrompt((config3, done) => {
|
|
299172
299931
|
const { validate: validate8 = () => true } = config3;
|
|
299173
299932
|
const theme = makeTheme(config3.theme);
|
|
299174
299933
|
const [status, setStatus] = useState("idle");
|
|
@@ -299226,7 +299985,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
299226
299985
|
return defaultAccessToken;
|
|
299227
299986
|
}
|
|
299228
299987
|
if (defaultAccessToken) {
|
|
299229
|
-
const keep = await
|
|
299988
|
+
const keep = await esm_default5({
|
|
299230
299989
|
message: "Do you want to use the existing application access token?",
|
|
299231
299990
|
default: true
|
|
299232
299991
|
});
|
|
@@ -299234,12 +299993,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
299234
299993
|
return defaultAccessToken;
|
|
299235
299994
|
}
|
|
299236
299995
|
}
|
|
299237
|
-
const create3 = await
|
|
299996
|
+
const create3 = await esm_default5({
|
|
299238
299997
|
message: "Do you want to create a new application access token?",
|
|
299239
299998
|
default: false
|
|
299240
299999
|
});
|
|
299241
300000
|
if (create3) {
|
|
299242
|
-
const name4 = await
|
|
300001
|
+
const name4 = await esm_default3({
|
|
299243
300002
|
message: "How would you like to name this application access token?",
|
|
299244
300003
|
default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
|
|
299245
300004
|
required: true,
|
|
@@ -299302,7 +300061,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
299302
300061
|
return aat;
|
|
299303
300062
|
} catch (_error) {}
|
|
299304
300063
|
}
|
|
299305
|
-
return
|
|
300064
|
+
return esm_default6({
|
|
299306
300065
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
299307
300066
|
validate(value5) {
|
|
299308
300067
|
try {
|
|
@@ -299334,7 +300093,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
299334
300093
|
if (is_in_ci_default) {
|
|
299335
300094
|
nothingSelectedError("application");
|
|
299336
300095
|
}
|
|
299337
|
-
const application = await
|
|
300096
|
+
const application = await esm_default4({
|
|
299338
300097
|
message: "Which application do you want to connect to?",
|
|
299339
300098
|
choices: applications.map((applications2) => ({
|
|
299340
300099
|
name: `${applications2.name} (${applications2.uniqueName})`,
|
|
@@ -299447,7 +300206,7 @@ async function blockchainNodePrompt({
|
|
|
299447
300206
|
}
|
|
299448
300207
|
return item;
|
|
299449
300208
|
}) : choices;
|
|
299450
|
-
return
|
|
300209
|
+
return esm_default4({
|
|
299451
300210
|
message: promptMessage ?? "Which blockchain node do you want to connect to?",
|
|
299452
300211
|
choices: filteredChoices,
|
|
299453
300212
|
default: defaultNode
|
|
@@ -299477,7 +300236,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
|
|
|
299477
300236
|
isRequired,
|
|
299478
300237
|
defaultHandler: async ({ defaultService: defaultNode, choices }) => {
|
|
299479
300238
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
|
|
299480
|
-
return
|
|
300239
|
+
return esm_default4({
|
|
299481
300240
|
message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
|
|
299482
300241
|
choices: filteredChoices,
|
|
299483
300242
|
default: defaultNode
|
|
@@ -299502,7 +300261,7 @@ async function blockscoutPrompt({
|
|
|
299502
300261
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
299503
300262
|
isRequired,
|
|
299504
300263
|
defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
|
|
299505
|
-
return
|
|
300264
|
+
return esm_default4({
|
|
299506
300265
|
message: "Which blockscout instance do you want to connect to?",
|
|
299507
300266
|
choices,
|
|
299508
300267
|
default: defaultBlockscout
|
|
@@ -299525,7 +300284,7 @@ async function customDeploymentPrompt({
|
|
|
299525
300284
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
299526
300285
|
isRequired,
|
|
299527
300286
|
defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
|
|
299528
|
-
return
|
|
300287
|
+
return esm_default4({
|
|
299529
300288
|
message: "Which Custom Deployment do you want to connect to?",
|
|
299530
300289
|
choices,
|
|
299531
300290
|
default: defaultCustomDeployment
|
|
@@ -299552,7 +300311,7 @@ async function hasuraPrompt({
|
|
|
299552
300311
|
envKey: "SETTLEMINT_HASURA",
|
|
299553
300312
|
isRequired,
|
|
299554
300313
|
defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
|
|
299555
|
-
return
|
|
300314
|
+
return esm_default4({
|
|
299556
300315
|
message: "Which Hasura instance do you want to connect to?",
|
|
299557
300316
|
choices,
|
|
299558
300317
|
default: defaultHasura
|
|
@@ -299576,7 +300335,7 @@ async function hdPrivateKeyPrompt({
|
|
|
299576
300335
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
299577
300336
|
isRequired,
|
|
299578
300337
|
defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
|
|
299579
|
-
return
|
|
300338
|
+
return esm_default4({
|
|
299580
300339
|
message: "Which HD Private Key do you want to use?",
|
|
299581
300340
|
choices,
|
|
299582
300341
|
default: defaultPrivateKey
|
|
@@ -299600,7 +300359,7 @@ async function ipfsPrompt({
|
|
|
299600
300359
|
envKey: "SETTLEMINT_IPFS",
|
|
299601
300360
|
isRequired,
|
|
299602
300361
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
299603
|
-
return
|
|
300362
|
+
return esm_default4({
|
|
299604
300363
|
message: "Which IPFS instance do you want to connect to?",
|
|
299605
300364
|
choices,
|
|
299606
300365
|
default: defaultStorage
|
|
@@ -299624,7 +300383,7 @@ async function minioPrompt({
|
|
|
299624
300383
|
envKey: "SETTLEMINT_MINIO",
|
|
299625
300384
|
isRequired,
|
|
299626
300385
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
299627
|
-
return
|
|
300386
|
+
return esm_default4({
|
|
299628
300387
|
message: "Which MinIO instance do you want to connect to?",
|
|
299629
300388
|
choices,
|
|
299630
300389
|
default: defaultStorage
|
|
@@ -299648,7 +300407,7 @@ async function portalPrompt({
|
|
|
299648
300407
|
envKey: "SETTLEMINT_PORTAL",
|
|
299649
300408
|
isRequired,
|
|
299650
300409
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
299651
|
-
return
|
|
300410
|
+
return esm_default4({
|
|
299652
300411
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
299653
300412
|
choices,
|
|
299654
300413
|
default: defaultMiddleware
|
|
@@ -299677,7 +300436,7 @@ async function theGraphPrompt({
|
|
|
299677
300436
|
isRequired,
|
|
299678
300437
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
299679
300438
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
|
|
299680
|
-
return
|
|
300439
|
+
return esm_default4({
|
|
299681
300440
|
message: "Which The Graph instance do you want to connect to?",
|
|
299682
300441
|
choices: filteredChoices,
|
|
299683
300442
|
default: defaultMiddleware
|
|
@@ -299705,7 +300464,7 @@ async function instancePrompt({
|
|
|
299705
300464
|
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
299706
300465
|
}
|
|
299707
300466
|
if (freeTextInput) {
|
|
299708
|
-
const instance = await
|
|
300467
|
+
const instance = await esm_default3({
|
|
299709
300468
|
message: "What is the URL of your SettleMint instance?",
|
|
299710
300469
|
default: defaultPromptInstance,
|
|
299711
300470
|
required: true,
|
|
@@ -299724,7 +300483,7 @@ async function instancePrompt({
|
|
|
299724
300483
|
if (knownInstances.length === 0) {
|
|
299725
300484
|
note("No instances found. Run `settlemint login` to configure an instance.", "warn");
|
|
299726
300485
|
}
|
|
299727
|
-
return
|
|
300486
|
+
return esm_default4({
|
|
299728
300487
|
message: "What instance do you want to connect to?",
|
|
299729
300488
|
choices: [
|
|
299730
300489
|
...knownInstances.map((instance) => ({
|
|
@@ -299760,7 +300519,7 @@ async function serviceSecretPrompt({
|
|
|
299760
300519
|
return defaultSecret;
|
|
299761
300520
|
}
|
|
299762
300521
|
if (defaultSecret) {
|
|
299763
|
-
const keep = await
|
|
300522
|
+
const keep = await esm_default5({
|
|
299764
300523
|
message: `Do you want to use the existing ${name4} secret?`,
|
|
299765
300524
|
default: true
|
|
299766
300525
|
});
|
|
@@ -299768,7 +300527,7 @@ async function serviceSecretPrompt({
|
|
|
299768
300527
|
return defaultSecret;
|
|
299769
300528
|
}
|
|
299770
300529
|
}
|
|
299771
|
-
const serviceSecret = await
|
|
300530
|
+
const serviceSecret = await esm_default6({
|
|
299772
300531
|
message
|
|
299773
300532
|
});
|
|
299774
300533
|
return serviceSecret || undefined;
|
|
@@ -299789,7 +300548,7 @@ async function serviceUrlPrompt({
|
|
|
299789
300548
|
if (isCi) {
|
|
299790
300549
|
return defaultUrl ? new URL(defaultUrl).toString() : undefined;
|
|
299791
300550
|
}
|
|
299792
|
-
const serviceUrl = await
|
|
300551
|
+
const serviceUrl = await esm_default3({
|
|
299793
300552
|
message: example ? `${message} (eg ${example})` : message,
|
|
299794
300553
|
default: defaultUrl,
|
|
299795
300554
|
required: true,
|
|
@@ -299820,7 +300579,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
299820
300579
|
if (is_in_ci_default) {
|
|
299821
300580
|
nothingSelectedError("workspace");
|
|
299822
300581
|
}
|
|
299823
|
-
const workspace = await
|
|
300582
|
+
const workspace = await esm_default4({
|
|
299824
300583
|
message: "Which workspace do you want to connect to?",
|
|
299825
300584
|
choices: workspaces.map((workspace2) => ({
|
|
299826
300585
|
name: `${workspace2.name} (${workspace2.uniqueName})`,
|
|
@@ -300224,7 +300983,7 @@ async function serviceValuePrompt({
|
|
|
300224
300983
|
if (isCi) {
|
|
300225
300984
|
return defaultValue;
|
|
300226
300985
|
}
|
|
300227
|
-
const serviceSecret = await
|
|
300986
|
+
const serviceSecret = await esm_default3({
|
|
300228
300987
|
message: example ? `${message} (eg ${example})` : message,
|
|
300229
300988
|
default: defaultValue
|
|
300230
300989
|
});
|
|
@@ -300662,7 +301421,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
|
300662
301421
|
}
|
|
300663
301422
|
return template2;
|
|
300664
301423
|
}
|
|
300665
|
-
const template = await
|
|
301424
|
+
const template = await esm_default4({
|
|
300666
301425
|
message: "Which template do you want to use?",
|
|
300667
301426
|
choices: [
|
|
300668
301427
|
...kits.map((template2) => ({
|
|
@@ -300680,7 +301439,7 @@ async function projectNamePrompt(env2, argument) {
|
|
|
300680
301439
|
if (defaultInstance) {
|
|
300681
301440
|
return defaultInstance;
|
|
300682
301441
|
}
|
|
300683
|
-
return
|
|
301442
|
+
return esm_default3({
|
|
300684
301443
|
message: "What is the name of your new SettleMint project?",
|
|
300685
301444
|
default: defaultInstance,
|
|
300686
301445
|
required: true,
|
|
@@ -300882,7 +301641,7 @@ var basename2 = function(p5, extension) {
|
|
|
300882
301641
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
300883
301642
|
};
|
|
300884
301643
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
300885
|
-
function
|
|
301644
|
+
function isPlainObject5(value5) {
|
|
300886
301645
|
if (value5 === null || typeof value5 !== "object") {
|
|
300887
301646
|
return false;
|
|
300888
301647
|
}
|
|
@@ -300899,7 +301658,7 @@ function isPlainObject4(value5) {
|
|
|
300899
301658
|
return true;
|
|
300900
301659
|
}
|
|
300901
301660
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
300902
|
-
if (!
|
|
301661
|
+
if (!isPlainObject5(defaults2)) {
|
|
300903
301662
|
return _defu(baseObject, {}, namespace, merger);
|
|
300904
301663
|
}
|
|
300905
301664
|
const object2 = Object.assign({}, defaults2);
|
|
@@ -300916,7 +301675,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
|
300916
301675
|
}
|
|
300917
301676
|
if (Array.isArray(value5) && Array.isArray(object2[key2])) {
|
|
300918
301677
|
object2[key2] = [...value5, ...object2[key2]];
|
|
300919
|
-
} else if (
|
|
301678
|
+
} else if (isPlainObject5(value5) && isPlainObject5(object2[key2])) {
|
|
300920
301679
|
object2[key2] = _defu(value5, object2[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
|
|
300921
301680
|
} else {
|
|
300922
301681
|
object2[key2] = value5;
|
|
@@ -303947,7 +304706,7 @@ function createCommand2() {
|
|
|
303947
304706
|
await mkdir6(projectDir, { recursive: true });
|
|
303948
304707
|
}
|
|
303949
304708
|
if (!await isEmpty(projectDir)) {
|
|
303950
|
-
const confirmEmpty = await
|
|
304709
|
+
const confirmEmpty = await esm_default5({
|
|
303951
304710
|
message: `The folder ${projectDir} already exists. Do you want to empty it?`,
|
|
303952
304711
|
default: false
|
|
303953
304712
|
});
|
|
@@ -304200,7 +304959,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
304200
304959
|
return defaultPersonalAccessToken;
|
|
304201
304960
|
}
|
|
304202
304961
|
if (existingConfig && defaultPersonalAccessToken) {
|
|
304203
|
-
const useExisting = await
|
|
304962
|
+
const useExisting = await esm_default5({
|
|
304204
304963
|
message: `Do you want to use your existing personal access token for ${instance}?`,
|
|
304205
304964
|
default: true
|
|
304206
304965
|
});
|
|
@@ -304208,7 +304967,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
304208
304967
|
return defaultPersonalAccessToken;
|
|
304209
304968
|
}
|
|
304210
304969
|
}
|
|
304211
|
-
return
|
|
304970
|
+
return esm_default6({
|
|
304212
304971
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
304213
304972
|
validate(value5) {
|
|
304214
304973
|
try {
|
|
@@ -304334,7 +305093,7 @@ function logoutCommand() {
|
|
|
304334
305093
|
}
|
|
304335
305094
|
const env2 = await loadEnv(false, false);
|
|
304336
305095
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
304337
|
-
const instance = await
|
|
305096
|
+
const instance = await esm_default4({
|
|
304338
305097
|
message: "Select the instance to logout from:",
|
|
304339
305098
|
choices: instances.map((instance2) => ({
|
|
304340
305099
|
value: instance2,
|
|
@@ -304355,7 +305114,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
|
|
|
304355
305114
|
if (verificationChallenges.length === 1) {
|
|
304356
305115
|
return verificationChallenges[0];
|
|
304357
305116
|
}
|
|
304358
|
-
const verificationChallenge = await
|
|
305117
|
+
const verificationChallenge = await esm_default4({
|
|
304359
305118
|
message: "Which pincode verification do you want to use?",
|
|
304360
305119
|
choices: verificationChallenges.map((verificationChallenge2) => ({
|
|
304361
305120
|
name: verificationChallenge2.name,
|
|
@@ -304419,7 +305178,7 @@ function pincodeVerificationResponseCommand() {
|
|
|
304419
305178
|
nodeId: selectedBlockchainNode.id
|
|
304420
305179
|
});
|
|
304421
305180
|
const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
|
|
304422
|
-
const pincode = await
|
|
305181
|
+
const pincode = await esm_default6({
|
|
304423
305182
|
message: "Enter your pincode",
|
|
304424
305183
|
validate(value5) {
|
|
304425
305184
|
if (!value5.trim()) {
|
|
@@ -304572,7 +305331,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
|
304572
305331
|
if (possibleProviders.length === 1) {
|
|
304573
305332
|
return possibleProviders[0];
|
|
304574
305333
|
}
|
|
304575
|
-
const provider = await
|
|
305334
|
+
const provider = await esm_default4({
|
|
304576
305335
|
message: "Which provider do you want to use?",
|
|
304577
305336
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
|
304578
305337
|
name: target.name,
|
|
@@ -304603,7 +305362,7 @@ async function regionPrompt(provider, argument) {
|
|
|
304603
305362
|
if (possibleRegions.length === 1) {
|
|
304604
305363
|
return possibleRegions[0];
|
|
304605
305364
|
}
|
|
304606
|
-
const region = await
|
|
305365
|
+
const region = await esm_default4({
|
|
304607
305366
|
message: "Which region do you want to use?",
|
|
304608
305367
|
choices: provider.clusters.map((cluster) => ({
|
|
304609
305368
|
name: cluster.name,
|
|
@@ -305133,7 +305892,7 @@ async function blockchainNetworkPrompt({
|
|
|
305133
305892
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
305134
305893
|
isRequired,
|
|
305135
305894
|
defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
|
|
305136
|
-
return
|
|
305895
|
+
return esm_default4({
|
|
305137
305896
|
message: "Which blockchain network do you want to connect to?",
|
|
305138
305897
|
choices,
|
|
305139
305898
|
default: defaultNetwork
|
|
@@ -306038,7 +306797,7 @@ function createCommand3() {
|
|
|
306038
306797
|
|
|
306039
306798
|
// src/prompts/delete-confirmation.prompt.ts
|
|
306040
306799
|
async function deleteConfirmationPrompt(itemDescription) {
|
|
306041
|
-
const confirmation = await
|
|
306800
|
+
const confirmation = await esm_default3({
|
|
306042
306801
|
message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
|
|
306043
306802
|
required: true,
|
|
306044
306803
|
validate(value5) {
|
|
@@ -306898,7 +307657,7 @@ function jsonOutput(data) {
|
|
|
306898
307657
|
var composer = require_composer();
|
|
306899
307658
|
var Document = require_Document();
|
|
306900
307659
|
var Schema = require_Schema();
|
|
306901
|
-
var
|
|
307660
|
+
var errors5 = require_errors3();
|
|
306902
307661
|
var Alias = require_Alias();
|
|
306903
307662
|
var identity2 = require_identity();
|
|
306904
307663
|
var Pair = require_Pair();
|
|
@@ -306914,9 +307673,9 @@ var visit2 = require_visit();
|
|
|
306914
307673
|
var $Composer = composer.Composer;
|
|
306915
307674
|
var $Document = Document.Document;
|
|
306916
307675
|
var $Schema = Schema.Schema;
|
|
306917
|
-
var $YAMLError =
|
|
306918
|
-
var $YAMLParseError =
|
|
306919
|
-
var $YAMLWarning =
|
|
307676
|
+
var $YAMLError = errors5.YAMLError;
|
|
307677
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
|
307678
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
|
306920
307679
|
var $Alias = Alias.Alias;
|
|
306921
307680
|
var $isAlias = identity2.isAlias;
|
|
306922
307681
|
var $isCollection = identity2.isCollection;
|
|
@@ -307435,7 +308194,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
|
307435
308194
|
if (selectableUseCases.length === 1) {
|
|
307436
308195
|
return selectableUseCases[0];
|
|
307437
308196
|
}
|
|
307438
|
-
const useCase = await
|
|
308197
|
+
const useCase = await esm_default4({
|
|
307439
308198
|
message: "Which use case do you want to use?",
|
|
307440
308199
|
choices: selectableUseCases.map((useCase2) => ({
|
|
307441
308200
|
name: formatUseCaseName(useCase2.name),
|
|
@@ -307493,7 +308252,7 @@ function createCommand4() {
|
|
|
307493
308252
|
const targetDir = formatTargetDir(name4);
|
|
307494
308253
|
const projectDir = join10(process.cwd(), targetDir);
|
|
307495
308254
|
if (await exists3(projectDir) && !await isEmpty(projectDir)) {
|
|
307496
|
-
const confirmEmpty = await
|
|
308255
|
+
const confirmEmpty = await esm_default5({
|
|
307497
308256
|
message: `The folder ${projectDir} already exists. Do you want to delete it?`,
|
|
307498
308257
|
default: false
|
|
307499
308258
|
});
|
|
@@ -307806,7 +308565,7 @@ async function addressPrompt({
|
|
|
307806
308565
|
hardhatConfig
|
|
307807
308566
|
}) {
|
|
307808
308567
|
if (!node) {
|
|
307809
|
-
return
|
|
308568
|
+
return esm_default3({
|
|
307810
308569
|
message: "Which private key address do you want to deploy from?",
|
|
307811
308570
|
validate: (value5) => {
|
|
307812
308571
|
if (!isAddress(value5)) {
|
|
@@ -307826,7 +308585,7 @@ async function addressPrompt({
|
|
|
307826
308585
|
note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
|
|
307827
308586
|
Please select another key or activate this key on the node and try again.`, "warn");
|
|
307828
308587
|
}
|
|
307829
|
-
const address = await
|
|
308588
|
+
const address = await esm_default4({
|
|
307830
308589
|
message: "Which private key do you want to deploy from?",
|
|
307831
308590
|
choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
|
|
307832
308591
|
name: name4,
|
|
@@ -308780,4 +309539,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
308780
309539
|
// src/cli.ts
|
|
308781
309540
|
sdkCliCommand();
|
|
308782
309541
|
|
|
308783
|
-
//# debugId=
|
|
309542
|
+
//# debugId=A024F3F9F005536A64756E2164756E21
|