@settlemint/sdk-cli 2.6.4-pr7f2ec711 → 2.6.4-prb08251e5
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 +1124 -242
- package/dist/cli.js.map +25 -8
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -3546,7 +3546,7 @@ var require_wrap_ansi = __commonJS((exports, module) => {
|
|
|
3546
3546
|
};
|
|
3547
3547
|
});
|
|
3548
3548
|
|
|
3549
|
-
// ../../node_modules/.bun/mute-stream@
|
|
3549
|
+
// ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
|
|
3550
3550
|
var require_lib = __commonJS((exports, module) => {
|
|
3551
3551
|
var Stream = __require("stream");
|
|
3552
3552
|
|
|
@@ -161879,7 +161879,7 @@ ${lanes.join(`
|
|
|
161879
161879
|
function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
|
|
161880
161880
|
var _a;
|
|
161881
161881
|
const text = [];
|
|
161882
|
-
const
|
|
161882
|
+
const colors2 = createColors(sys2);
|
|
161883
161883
|
const name2 = getDisplayNameTextOfOption(option);
|
|
161884
161884
|
const valueCandidates = getValueCandidate(option);
|
|
161885
161885
|
const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
|
|
@@ -161900,7 +161900,7 @@ ${lanes.join(`
|
|
|
161900
161900
|
}
|
|
161901
161901
|
text.push(sys2.newLine);
|
|
161902
161902
|
} else {
|
|
161903
|
-
text.push(
|
|
161903
|
+
text.push(colors2.blue(name2), sys2.newLine);
|
|
161904
161904
|
if (option.description) {
|
|
161905
161905
|
const description3 = getDiagnosticText(option.description);
|
|
161906
161906
|
text.push(description3);
|
|
@@ -161945,7 +161945,7 @@ ${lanes.join(`
|
|
|
161945
161945
|
if (isFirstLine) {
|
|
161946
161946
|
curLeft = left.padStart(rightAlignOfLeft2);
|
|
161947
161947
|
curLeft = curLeft.padEnd(leftAlignOfRight2);
|
|
161948
|
-
curLeft = colorLeft ?
|
|
161948
|
+
curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
|
|
161949
161949
|
} else {
|
|
161950
161950
|
curLeft = "".padStart(leftAlignOfRight2);
|
|
161951
161951
|
}
|
|
@@ -162057,9 +162057,9 @@ ${lanes.join(`
|
|
|
162057
162057
|
return res;
|
|
162058
162058
|
}
|
|
162059
162059
|
function printEasyHelp(sys2, simpleOptions) {
|
|
162060
|
-
const
|
|
162060
|
+
const colors2 = createColors(sys2);
|
|
162061
162061
|
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version2)}`)];
|
|
162062
|
-
output.push(
|
|
162062
|
+
output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
|
|
162063
162063
|
example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
|
162064
162064
|
example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
|
162065
162065
|
example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
|
|
@@ -162080,7 +162080,7 @@ ${lanes.join(`
|
|
|
162080
162080
|
function example(ex, desc) {
|
|
162081
162081
|
const examples = typeof ex === "string" ? [ex] : ex;
|
|
162082
162082
|
for (const example2 of examples) {
|
|
162083
|
-
output.push(" " +
|
|
162083
|
+
output.push(" " + colors2.blue(example2) + sys2.newLine);
|
|
162084
162084
|
}
|
|
162085
162085
|
output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
|
|
162086
162086
|
}
|
|
@@ -162103,12 +162103,12 @@ ${lanes.join(`
|
|
|
162103
162103
|
}
|
|
162104
162104
|
function getHeader(sys2, message) {
|
|
162105
162105
|
var _a;
|
|
162106
|
-
const
|
|
162106
|
+
const colors2 = createColors(sys2);
|
|
162107
162107
|
const header = [];
|
|
162108
162108
|
const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
|
|
162109
162109
|
const tsIconLength = 5;
|
|
162110
|
-
const tsIconFirstLine =
|
|
162111
|
-
const tsIconSecondLine =
|
|
162110
|
+
const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
|
|
162111
|
+
const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
|
|
162112
162112
|
if (terminalWidth >= message.length + tsIconLength) {
|
|
162113
162113
|
const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
|
|
162114
162114
|
const leftAlign = rightAlign - tsIconLength;
|
|
@@ -246065,6 +246065,126 @@ var require_slugify = __commonJS((exports, module) => {
|
|
|
246065
246065
|
});
|
|
246066
246066
|
});
|
|
246067
246067
|
|
|
246068
|
+
// ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
|
|
246069
|
+
var require_lib13 = __commonJS((exports, module) => {
|
|
246070
|
+
var Stream2 = __require("stream");
|
|
246071
|
+
|
|
246072
|
+
class MuteStream2 extends Stream2 {
|
|
246073
|
+
#isTTY = null;
|
|
246074
|
+
constructor(opts = {}) {
|
|
246075
|
+
super(opts);
|
|
246076
|
+
this.writable = this.readable = true;
|
|
246077
|
+
this.muted = false;
|
|
246078
|
+
this.on("pipe", this._onpipe);
|
|
246079
|
+
this.replace = opts.replace;
|
|
246080
|
+
this._prompt = opts.prompt || null;
|
|
246081
|
+
this._hadControl = false;
|
|
246082
|
+
}
|
|
246083
|
+
#destSrc(key, def) {
|
|
246084
|
+
if (this._dest) {
|
|
246085
|
+
return this._dest[key];
|
|
246086
|
+
}
|
|
246087
|
+
if (this._src) {
|
|
246088
|
+
return this._src[key];
|
|
246089
|
+
}
|
|
246090
|
+
return def;
|
|
246091
|
+
}
|
|
246092
|
+
#proxy(method, ...args) {
|
|
246093
|
+
if (typeof this._dest?.[method] === "function") {
|
|
246094
|
+
this._dest[method](...args);
|
|
246095
|
+
}
|
|
246096
|
+
if (typeof this._src?.[method] === "function") {
|
|
246097
|
+
this._src[method](...args);
|
|
246098
|
+
}
|
|
246099
|
+
}
|
|
246100
|
+
get isTTY() {
|
|
246101
|
+
if (this.#isTTY !== null) {
|
|
246102
|
+
return this.#isTTY;
|
|
246103
|
+
}
|
|
246104
|
+
return this.#destSrc("isTTY", false);
|
|
246105
|
+
}
|
|
246106
|
+
set isTTY(val) {
|
|
246107
|
+
this.#isTTY = val;
|
|
246108
|
+
}
|
|
246109
|
+
get rows() {
|
|
246110
|
+
return this.#destSrc("rows");
|
|
246111
|
+
}
|
|
246112
|
+
get columns() {
|
|
246113
|
+
return this.#destSrc("columns");
|
|
246114
|
+
}
|
|
246115
|
+
mute() {
|
|
246116
|
+
this.muted = true;
|
|
246117
|
+
}
|
|
246118
|
+
unmute() {
|
|
246119
|
+
this.muted = false;
|
|
246120
|
+
}
|
|
246121
|
+
_onpipe(src) {
|
|
246122
|
+
this._src = src;
|
|
246123
|
+
}
|
|
246124
|
+
pipe(dest, options) {
|
|
246125
|
+
this._dest = dest;
|
|
246126
|
+
return super.pipe(dest, options);
|
|
246127
|
+
}
|
|
246128
|
+
pause() {
|
|
246129
|
+
if (this._src) {
|
|
246130
|
+
return this._src.pause();
|
|
246131
|
+
}
|
|
246132
|
+
}
|
|
246133
|
+
resume() {
|
|
246134
|
+
if (this._src) {
|
|
246135
|
+
return this._src.resume();
|
|
246136
|
+
}
|
|
246137
|
+
}
|
|
246138
|
+
write(c3) {
|
|
246139
|
+
if (this.muted) {
|
|
246140
|
+
if (!this.replace) {
|
|
246141
|
+
return true;
|
|
246142
|
+
}
|
|
246143
|
+
if (c3.match(/^\u001b/)) {
|
|
246144
|
+
if (c3.indexOf(this._prompt) === 0) {
|
|
246145
|
+
c3 = c3.slice(this._prompt.length);
|
|
246146
|
+
c3 = c3.replace(/./g, this.replace);
|
|
246147
|
+
c3 = this._prompt + c3;
|
|
246148
|
+
}
|
|
246149
|
+
this._hadControl = true;
|
|
246150
|
+
return this.emit("data", c3);
|
|
246151
|
+
} else {
|
|
246152
|
+
if (this._prompt && this._hadControl && c3.indexOf(this._prompt) === 0) {
|
|
246153
|
+
this._hadControl = false;
|
|
246154
|
+
this.emit("data", this._prompt);
|
|
246155
|
+
c3 = c3.slice(this._prompt.length);
|
|
246156
|
+
}
|
|
246157
|
+
c3 = c3.toString().replace(/./g, this.replace);
|
|
246158
|
+
}
|
|
246159
|
+
}
|
|
246160
|
+
this.emit("data", c3);
|
|
246161
|
+
}
|
|
246162
|
+
end(c3) {
|
|
246163
|
+
if (this.muted) {
|
|
246164
|
+
if (c3 && this.replace) {
|
|
246165
|
+
c3 = c3.toString().replace(/./g, this.replace);
|
|
246166
|
+
} else {
|
|
246167
|
+
c3 = null;
|
|
246168
|
+
}
|
|
246169
|
+
}
|
|
246170
|
+
if (c3) {
|
|
246171
|
+
this.emit("data", c3);
|
|
246172
|
+
}
|
|
246173
|
+
this.emit("end");
|
|
246174
|
+
}
|
|
246175
|
+
destroy(...args) {
|
|
246176
|
+
return this.#proxy("destroy", ...args);
|
|
246177
|
+
}
|
|
246178
|
+
destroySoon(...args) {
|
|
246179
|
+
return this.#proxy("destroySoon", ...args);
|
|
246180
|
+
}
|
|
246181
|
+
close(...args) {
|
|
246182
|
+
return this.#proxy("close", ...args);
|
|
246183
|
+
}
|
|
246184
|
+
}
|
|
246185
|
+
module.exports = MuteStream2;
|
|
246186
|
+
});
|
|
246187
|
+
|
|
246068
246188
|
// ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
|
|
246069
246189
|
var version2 = "1.1.0";
|
|
246070
246190
|
|
|
@@ -259580,7 +259700,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
259580
259700
|
var node_process = __require("process");
|
|
259581
259701
|
var directives5 = require_directives3();
|
|
259582
259702
|
var Document = require_Document();
|
|
259583
|
-
var
|
|
259703
|
+
var errors5 = require_errors3();
|
|
259584
259704
|
var identity2 = require_identity();
|
|
259585
259705
|
var composeDoc = require_compose_doc();
|
|
259586
259706
|
var resolveEnd = require_resolve_end();
|
|
@@ -259631,9 +259751,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
259631
259751
|
this.onError = (source, code2, message, warning) => {
|
|
259632
259752
|
const pos = getErrorPos(source);
|
|
259633
259753
|
if (warning)
|
|
259634
|
-
this.warnings.push(new
|
|
259754
|
+
this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
|
|
259635
259755
|
else
|
|
259636
|
-
this.errors.push(new
|
|
259756
|
+
this.errors.push(new errors5.YAMLParseError(pos, code2, message));
|
|
259637
259757
|
};
|
|
259638
259758
|
this.directives = new directives5.Directives({ version: options.version || "1.2" });
|
|
259639
259759
|
this.options = options;
|
|
@@ -259717,7 +259837,7 @@ ${cb}` : comment;
|
|
|
259717
259837
|
break;
|
|
259718
259838
|
case "error": {
|
|
259719
259839
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
259720
|
-
const error51 = new
|
|
259840
|
+
const error51 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
259721
259841
|
if (this.atDirectives || !this.doc)
|
|
259722
259842
|
this.errors.push(error51);
|
|
259723
259843
|
else
|
|
@@ -259727,7 +259847,7 @@ ${cb}` : comment;
|
|
|
259727
259847
|
case "doc-end": {
|
|
259728
259848
|
if (!this.doc) {
|
|
259729
259849
|
const msg = "Unexpected doc-end without preceding document";
|
|
259730
|
-
this.errors.push(new
|
|
259850
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
259731
259851
|
break;
|
|
259732
259852
|
}
|
|
259733
259853
|
this.doc.directives.docEnd = true;
|
|
@@ -259742,7 +259862,7 @@ ${end.comment}` : end.comment;
|
|
|
259742
259862
|
break;
|
|
259743
259863
|
}
|
|
259744
259864
|
default:
|
|
259745
|
-
this.errors.push(new
|
|
259865
|
+
this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
259746
259866
|
}
|
|
259747
259867
|
}
|
|
259748
259868
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -259768,7 +259888,7 @@ ${end.comment}` : end.comment;
|
|
|
259768
259888
|
var require_cst_scalar = __commonJS((exports) => {
|
|
259769
259889
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
259770
259890
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
259771
|
-
var
|
|
259891
|
+
var errors5 = require_errors3();
|
|
259772
259892
|
var stringifyString = require_stringifyString();
|
|
259773
259893
|
function resolveAsScalar(token, strict = true, onError) {
|
|
259774
259894
|
if (token) {
|
|
@@ -259777,7 +259897,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
259777
259897
|
if (onError)
|
|
259778
259898
|
onError(offset, code2, message);
|
|
259779
259899
|
else
|
|
259780
|
-
throw new
|
|
259900
|
+
throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
|
|
259781
259901
|
};
|
|
259782
259902
|
switch (token.type) {
|
|
259783
259903
|
case "scalar":
|
|
@@ -261639,7 +261759,7 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
261639
261759
|
var require_public_api = __commonJS((exports) => {
|
|
261640
261760
|
var composer = require_composer();
|
|
261641
261761
|
var Document = require_Document();
|
|
261642
|
-
var
|
|
261762
|
+
var errors5 = require_errors3();
|
|
261643
261763
|
var log = require_log();
|
|
261644
261764
|
var identity2 = require_identity();
|
|
261645
261765
|
var lineCounter = require_line_counter();
|
|
@@ -261656,8 +261776,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
261656
261776
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
261657
261777
|
if (prettyErrors && lineCounter2)
|
|
261658
261778
|
for (const doc2 of docs) {
|
|
261659
|
-
doc2.errors.forEach(
|
|
261660
|
-
doc2.warnings.forEach(
|
|
261779
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
261780
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
261661
261781
|
}
|
|
261662
261782
|
if (docs.length > 0)
|
|
261663
261783
|
return docs;
|
|
@@ -261672,13 +261792,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
261672
261792
|
if (!doc2)
|
|
261673
261793
|
doc2 = _doc;
|
|
261674
261794
|
else if (doc2.options.logLevel !== "silent") {
|
|
261675
|
-
doc2.errors.push(new
|
|
261795
|
+
doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
261676
261796
|
break;
|
|
261677
261797
|
}
|
|
261678
261798
|
}
|
|
261679
261799
|
if (prettyErrors && lineCounter2) {
|
|
261680
|
-
doc2.errors.forEach(
|
|
261681
|
-
doc2.warnings.forEach(
|
|
261800
|
+
doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
|
|
261801
|
+
doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
|
|
261682
261802
|
}
|
|
261683
261803
|
return doc2;
|
|
261684
261804
|
}
|
|
@@ -261745,14 +261865,10 @@ var {
|
|
|
261745
261865
|
Help
|
|
261746
261866
|
} = import__.default;
|
|
261747
261867
|
|
|
261748
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
261749
|
-
var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
261750
|
-
var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
261751
|
-
var isBackspaceKey = (key) => key.name === "backspace";
|
|
261868
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
261752
261869
|
var isTabKey = (key) => key.name === "tab";
|
|
261753
|
-
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
261754
261870
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
261755
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
261871
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
261756
261872
|
class AbortPromptError extends Error {
|
|
261757
261873
|
name = "AbortPromptError";
|
|
261758
261874
|
message = "Prompt was aborted";
|
|
@@ -261778,10 +261894,10 @@ class HookError extends Error {
|
|
|
261778
261894
|
class ValidationError extends Error {
|
|
261779
261895
|
name = "ValidationError";
|
|
261780
261896
|
}
|
|
261781
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
261897
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
261782
261898
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
261783
261899
|
|
|
261784
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
261900
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
261785
261901
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
261786
261902
|
var hookStorage = new AsyncLocalStorage;
|
|
261787
261903
|
function createStore(rl) {
|
|
@@ -261886,7 +262002,7 @@ var effectScheduler = {
|
|
|
261886
262002
|
}
|
|
261887
262003
|
};
|
|
261888
262004
|
|
|
261889
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262005
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
261890
262006
|
function useState(defaultValue) {
|
|
261891
262007
|
return withPointer((pointer) => {
|
|
261892
262008
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
|
@@ -261904,7 +262020,7 @@ function useState(defaultValue) {
|
|
|
261904
262020
|
});
|
|
261905
262021
|
}
|
|
261906
262022
|
|
|
261907
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262023
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
261908
262024
|
function useEffect(cb, depArray) {
|
|
261909
262025
|
withPointer((pointer) => {
|
|
261910
262026
|
const oldDeps = pointer.get();
|
|
@@ -261916,10 +262032,10 @@ function useEffect(cb, depArray) {
|
|
|
261916
262032
|
});
|
|
261917
262033
|
}
|
|
261918
262034
|
|
|
261919
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262035
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
261920
262036
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
261921
262037
|
|
|
261922
|
-
// ../../node_modules/.bun/@inquirer+figures@1.0.
|
|
262038
|
+
// ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
|
|
261923
262039
|
import process2 from "node:process";
|
|
261924
262040
|
function isUnicodeSupported() {
|
|
261925
262041
|
if (process2.platform !== "win32") {
|
|
@@ -262195,7 +262311,10 @@ var specialFallbackSymbols = {
|
|
|
262195
262311
|
oneNinth: "1/9",
|
|
262196
262312
|
oneTenth: "1/10"
|
|
262197
262313
|
};
|
|
262198
|
-
var mainSymbols = {
|
|
262314
|
+
var mainSymbols = {
|
|
262315
|
+
...common,
|
|
262316
|
+
...specialMainSymbols
|
|
262317
|
+
};
|
|
262199
262318
|
var fallbackSymbols = {
|
|
262200
262319
|
...common,
|
|
262201
262320
|
...specialFallbackSymbols
|
|
@@ -262205,7 +262324,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
262205
262324
|
var esm_default = figures;
|
|
262206
262325
|
var replacements = Object.entries(specialMainSymbols);
|
|
262207
262326
|
|
|
262208
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262327
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
262209
262328
|
var defaultTheme = {
|
|
262210
262329
|
prefix: {
|
|
262211
262330
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -262226,7 +262345,7 @@ var defaultTheme = {
|
|
|
262226
262345
|
}
|
|
262227
262346
|
};
|
|
262228
262347
|
|
|
262229
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262348
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
262230
262349
|
function isPlainObject(value) {
|
|
262231
262350
|
if (typeof value !== "object" || value === null)
|
|
262232
262351
|
return false;
|
|
@@ -262254,7 +262373,7 @@ function makeTheme(...themes) {
|
|
|
262254
262373
|
return deepMerge(...themesToMerge);
|
|
262255
262374
|
}
|
|
262256
262375
|
|
|
262257
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262376
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
262258
262377
|
function usePrefix({ status = "idle", theme }) {
|
|
262259
262378
|
const [showLoader, setShowLoader] = useState(false);
|
|
262260
262379
|
const [tick, setTick] = useState(0);
|
|
@@ -262284,23 +262403,12 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
262284
262403
|
const iconName = status === "loading" ? "idle" : status;
|
|
262285
262404
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
262286
262405
|
}
|
|
262287
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262288
|
-
function useMemo(fn, dependencies) {
|
|
262289
|
-
return withPointer((pointer) => {
|
|
262290
|
-
const prev = pointer.get();
|
|
262291
|
-
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
|
|
262292
|
-
const value = fn();
|
|
262293
|
-
pointer.set({ value, dependencies });
|
|
262294
|
-
return value;
|
|
262295
|
-
}
|
|
262296
|
-
return prev.value;
|
|
262297
|
-
});
|
|
262298
|
-
}
|
|
262299
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
262406
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
262300
262407
|
function useRef(val) {
|
|
262301
262408
|
return useState({ current: val })[0];
|
|
262302
262409
|
}
|
|
262303
|
-
|
|
262410
|
+
|
|
262411
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
262304
262412
|
function useKeypress(userHandler) {
|
|
262305
262413
|
const signal = useRef(userHandler);
|
|
262306
262414
|
signal.current = userHandler;
|
|
@@ -262318,7 +262426,7 @@ function useKeypress(userHandler) {
|
|
|
262318
262426
|
};
|
|
262319
262427
|
}, []);
|
|
262320
262428
|
}
|
|
262321
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262429
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
262322
262430
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
262323
262431
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
262324
262432
|
function breakLines(content, width) {
|
|
@@ -262331,73 +262439,7 @@ function readlineWidth() {
|
|
|
262331
262439
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
262332
262440
|
}
|
|
262333
262441
|
|
|
262334
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262335
|
-
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
262336
|
-
const state = useRef({
|
|
262337
|
-
lastPointer: active,
|
|
262338
|
-
lastActive: undefined
|
|
262339
|
-
});
|
|
262340
|
-
const { lastPointer, lastActive } = state.current;
|
|
262341
|
-
const middle = Math.floor(pageSize / 2);
|
|
262342
|
-
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
262343
|
-
const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
|
|
262344
|
-
let pointer = defaultPointerPosition;
|
|
262345
|
-
if (renderedLength > pageSize) {
|
|
262346
|
-
if (loop) {
|
|
262347
|
-
pointer = lastPointer;
|
|
262348
|
-
if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
|
|
262349
|
-
pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
|
|
262350
|
-
}
|
|
262351
|
-
} else {
|
|
262352
|
-
const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
|
|
262353
|
-
pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
|
|
262354
|
-
}
|
|
262355
|
-
}
|
|
262356
|
-
state.current.lastPointer = pointer;
|
|
262357
|
-
state.current.lastActive = active;
|
|
262358
|
-
return pointer;
|
|
262359
|
-
}
|
|
262360
|
-
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
262361
|
-
const width = readlineWidth();
|
|
262362
|
-
const bound = (num) => (num % items.length + items.length) % items.length;
|
|
262363
|
-
const renderedItems = items.map((item, index) => {
|
|
262364
|
-
if (item == null)
|
|
262365
|
-
return [];
|
|
262366
|
-
return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
|
|
262367
|
-
`);
|
|
262368
|
-
});
|
|
262369
|
-
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
262370
|
-
const renderItemAtIndex = (index) => renderedItems[index] ?? [];
|
|
262371
|
-
const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
|
|
262372
|
-
const activeItem = renderItemAtIndex(active).slice(0, pageSize);
|
|
262373
|
-
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
262374
|
-
const pageBuffer = Array.from({ length: pageSize });
|
|
262375
|
-
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
262376
|
-
const itemVisited = new Set([active]);
|
|
262377
|
-
let bufferPointer = activeItemPosition + activeItem.length;
|
|
262378
|
-
let itemPointer = bound(active + 1);
|
|
262379
|
-
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
262380
|
-
const lines = renderItemAtIndex(itemPointer);
|
|
262381
|
-
const linesToAdd = lines.slice(0, pageSize - bufferPointer);
|
|
262382
|
-
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
|
262383
|
-
itemVisited.add(itemPointer);
|
|
262384
|
-
bufferPointer += linesToAdd.length;
|
|
262385
|
-
itemPointer = bound(itemPointer + 1);
|
|
262386
|
-
}
|
|
262387
|
-
bufferPointer = activeItemPosition - 1;
|
|
262388
|
-
itemPointer = bound(active - 1);
|
|
262389
|
-
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
|
262390
|
-
const lines = renderItemAtIndex(itemPointer);
|
|
262391
|
-
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
|
262392
|
-
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
|
262393
|
-
itemVisited.add(itemPointer);
|
|
262394
|
-
bufferPointer -= linesToAdd.length;
|
|
262395
|
-
itemPointer = bound(itemPointer - 1);
|
|
262396
|
-
}
|
|
262397
|
-
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
262398
|
-
`);
|
|
262399
|
-
}
|
|
262400
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
262442
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
262401
262443
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
262402
262444
|
import * as readline2 from "node:readline";
|
|
262403
262445
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
@@ -262610,10 +262652,10 @@ var {
|
|
|
262610
262652
|
unload
|
|
262611
262653
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
262612
262654
|
|
|
262613
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262655
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
262614
262656
|
import { stripVTControlCharacters } from "node:util";
|
|
262615
262657
|
|
|
262616
|
-
// ../../node_modules/.bun/@inquirer+ansi@1.0.
|
|
262658
|
+
// ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
262617
262659
|
var ESC = "\x1B[";
|
|
262618
262660
|
var cursorLeft = ESC + "G";
|
|
262619
262661
|
var cursorHide = ESC + "?25l";
|
|
@@ -262629,7 +262671,7 @@ var cursorTo = (x, y) => {
|
|
|
262629
262671
|
var eraseLine = ESC + "2K";
|
|
262630
262672
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
262631
262673
|
|
|
262632
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262674
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
262633
262675
|
var height = (content) => content.split(`
|
|
262634
262676
|
`).length;
|
|
262635
262677
|
var lastLine = (content) => content.split(`
|
|
@@ -262694,7 +262736,7 @@ class ScreenManager {
|
|
|
262694
262736
|
}
|
|
262695
262737
|
}
|
|
262696
262738
|
|
|
262697
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262739
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
262698
262740
|
class PromisePolyfill extends Promise {
|
|
262699
262741
|
static withResolver() {
|
|
262700
262742
|
let resolve;
|
|
@@ -262707,7 +262749,7 @@ class PromisePolyfill extends Promise {
|
|
|
262707
262749
|
}
|
|
262708
262750
|
}
|
|
262709
262751
|
|
|
262710
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.
|
|
262752
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
262711
262753
|
function getCallSites() {
|
|
262712
262754
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
262713
262755
|
let result = [];
|
|
@@ -262793,20 +262835,6 @@ function createPrompt(view) {
|
|
|
262793
262835
|
};
|
|
262794
262836
|
return prompt;
|
|
262795
262837
|
}
|
|
262796
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
262797
|
-
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
262798
|
-
class Separator {
|
|
262799
|
-
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
262800
|
-
type = "separator";
|
|
262801
|
-
constructor(separator) {
|
|
262802
|
-
if (separator) {
|
|
262803
|
-
this.separator = separator;
|
|
262804
|
-
}
|
|
262805
|
-
}
|
|
262806
|
-
static isSeparator(choice) {
|
|
262807
|
-
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
|
262808
|
-
}
|
|
262809
|
-
}
|
|
262810
262838
|
// ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
262811
262839
|
var exports_base = {};
|
|
262812
262840
|
__export(exports_base, {
|
|
@@ -282064,7 +282092,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
282064
282092
|
var package_default = {
|
|
282065
282093
|
name: "@settlemint/sdk-cli",
|
|
282066
282094
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
282067
|
-
version: "2.6.4-
|
|
282095
|
+
version: "2.6.4-prb08251e5",
|
|
282068
282096
|
type: "module",
|
|
282069
282097
|
private: false,
|
|
282070
282098
|
license: "FSL-1.1-MIT",
|
|
@@ -282107,21 +282135,21 @@ var package_default = {
|
|
|
282107
282135
|
},
|
|
282108
282136
|
dependencies: {
|
|
282109
282137
|
"@gql.tada/cli-utils": "1.7.1",
|
|
282110
|
-
"@inquirer/core": "10.3.
|
|
282138
|
+
"@inquirer/core": "10.3.1",
|
|
282111
282139
|
"node-fetch-native": "1.6.7",
|
|
282112
282140
|
zod: "^4"
|
|
282113
282141
|
},
|
|
282114
282142
|
devDependencies: {
|
|
282115
282143
|
"@commander-js/extra-typings": "14.0.0",
|
|
282116
282144
|
commander: "14.0.2",
|
|
282117
|
-
"@inquirer/confirm": "5.1.
|
|
282145
|
+
"@inquirer/confirm": "5.1.20",
|
|
282118
282146
|
"@inquirer/input": "4.2.5",
|
|
282119
282147
|
"@inquirer/password": "4.0.21",
|
|
282120
282148
|
"@inquirer/select": "4.4.0",
|
|
282121
|
-
"@settlemint/sdk-hasura": "2.6.4-
|
|
282122
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
282123
|
-
"@settlemint/sdk-utils": "2.6.4-
|
|
282124
|
-
"@settlemint/sdk-viem": "2.6.4-
|
|
282149
|
+
"@settlemint/sdk-hasura": "2.6.4-prb08251e5",
|
|
282150
|
+
"@settlemint/sdk-js": "2.6.4-prb08251e5",
|
|
282151
|
+
"@settlemint/sdk-utils": "2.6.4-prb08251e5",
|
|
282152
|
+
"@settlemint/sdk-viem": "2.6.4-prb08251e5",
|
|
282125
282153
|
"@types/node": "24.10.0",
|
|
282126
282154
|
"@types/semver": "7.7.1",
|
|
282127
282155
|
"@types/which": "3.0.4",
|
|
@@ -282138,7 +282166,7 @@ var package_default = {
|
|
|
282138
282166
|
},
|
|
282139
282167
|
peerDependencies: {
|
|
282140
282168
|
hardhat: "<= 4",
|
|
282141
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
282169
|
+
"@settlemint/sdk-js": "2.6.4-prb08251e5"
|
|
282142
282170
|
},
|
|
282143
282171
|
peerDependenciesMeta: {
|
|
282144
282172
|
hardhat: {
|
|
@@ -282938,7 +282966,7 @@ var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
|
|
|
282938
282966
|
signal: undefined
|
|
282939
282967
|
};
|
|
282940
282968
|
};
|
|
282941
|
-
// ../../node_modules/.bun/@0no-co+graphql.web@1.2.0/node_modules/@0no-co/graphql.web/dist/graphql.web.mjs
|
|
282969
|
+
// ../../node_modules/.bun/@0no-co+graphql.web@1.2.0+2e36366335d68c76/node_modules/@0no-co/graphql.web/dist/graphql.web.mjs
|
|
282942
282970
|
var e = {
|
|
282943
282971
|
NAME: "Name",
|
|
282944
282972
|
DOCUMENT: "Document",
|
|
@@ -288035,23 +288063,877 @@ function sanitizeName(value5, length = 35) {
|
|
|
288035
288063
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
288036
288064
|
}
|
|
288037
288065
|
|
|
288066
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
288067
|
+
var isUpKey2 = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
288068
|
+
var isDownKey2 = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
288069
|
+
var isBackspaceKey2 = (key) => key.name === "backspace";
|
|
288070
|
+
var isTabKey2 = (key) => key.name === "tab";
|
|
288071
|
+
var isNumberKey2 = (key) => "1234567890".includes(key.name);
|
|
288072
|
+
var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
|
|
288073
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
288074
|
+
class AbortPromptError2 extends Error {
|
|
288075
|
+
name = "AbortPromptError";
|
|
288076
|
+
message = "Prompt was aborted";
|
|
288077
|
+
constructor(options) {
|
|
288078
|
+
super();
|
|
288079
|
+
this.cause = options?.cause;
|
|
288080
|
+
}
|
|
288081
|
+
}
|
|
288082
|
+
|
|
288083
|
+
class CancelPromptError2 extends Error {
|
|
288084
|
+
name = "CancelPromptError";
|
|
288085
|
+
message = "Prompt was canceled";
|
|
288086
|
+
}
|
|
288087
|
+
|
|
288088
|
+
class ExitPromptError2 extends Error {
|
|
288089
|
+
name = "ExitPromptError";
|
|
288090
|
+
}
|
|
288091
|
+
|
|
288092
|
+
class HookError2 extends Error {
|
|
288093
|
+
name = "HookError";
|
|
288094
|
+
}
|
|
288095
|
+
|
|
288096
|
+
class ValidationError2 extends Error {
|
|
288097
|
+
name = "ValidationError";
|
|
288098
|
+
}
|
|
288099
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
288100
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
288101
|
+
|
|
288102
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
288103
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
288104
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
|
288105
|
+
function createStore2(rl) {
|
|
288106
|
+
const store = {
|
|
288107
|
+
rl,
|
|
288108
|
+
hooks: [],
|
|
288109
|
+
hooksCleanup: [],
|
|
288110
|
+
hooksEffect: [],
|
|
288111
|
+
index: 0,
|
|
288112
|
+
handleChange() {}
|
|
288113
|
+
};
|
|
288114
|
+
return store;
|
|
288115
|
+
}
|
|
288116
|
+
function withHooks2(rl, cb) {
|
|
288117
|
+
const store = createStore2(rl);
|
|
288118
|
+
return hookStorage2.run(store, () => {
|
|
288119
|
+
function cycle(render) {
|
|
288120
|
+
store.handleChange = () => {
|
|
288121
|
+
store.index = 0;
|
|
288122
|
+
render();
|
|
288123
|
+
};
|
|
288124
|
+
store.handleChange();
|
|
288125
|
+
}
|
|
288126
|
+
return cb(cycle);
|
|
288127
|
+
});
|
|
288128
|
+
}
|
|
288129
|
+
function getStore2() {
|
|
288130
|
+
const store = hookStorage2.getStore();
|
|
288131
|
+
if (!store) {
|
|
288132
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
|
288133
|
+
}
|
|
288134
|
+
return store;
|
|
288135
|
+
}
|
|
288136
|
+
function readline3() {
|
|
288137
|
+
return getStore2().rl;
|
|
288138
|
+
}
|
|
288139
|
+
function withUpdates2(fn) {
|
|
288140
|
+
const wrapped = (...args) => {
|
|
288141
|
+
const store = getStore2();
|
|
288142
|
+
let shouldUpdate = false;
|
|
288143
|
+
const oldHandleChange = store.handleChange;
|
|
288144
|
+
store.handleChange = () => {
|
|
288145
|
+
shouldUpdate = true;
|
|
288146
|
+
};
|
|
288147
|
+
const returnValue = fn(...args);
|
|
288148
|
+
if (shouldUpdate) {
|
|
288149
|
+
oldHandleChange();
|
|
288150
|
+
}
|
|
288151
|
+
store.handleChange = oldHandleChange;
|
|
288152
|
+
return returnValue;
|
|
288153
|
+
};
|
|
288154
|
+
return AsyncResource4.bind(wrapped);
|
|
288155
|
+
}
|
|
288156
|
+
function withPointer2(cb) {
|
|
288157
|
+
const store = getStore2();
|
|
288158
|
+
const { index } = store;
|
|
288159
|
+
const pointer = {
|
|
288160
|
+
get() {
|
|
288161
|
+
return store.hooks[index];
|
|
288162
|
+
},
|
|
288163
|
+
set(value5) {
|
|
288164
|
+
store.hooks[index] = value5;
|
|
288165
|
+
},
|
|
288166
|
+
initialized: index in store.hooks
|
|
288167
|
+
};
|
|
288168
|
+
const returnValue = cb(pointer);
|
|
288169
|
+
store.index++;
|
|
288170
|
+
return returnValue;
|
|
288171
|
+
}
|
|
288172
|
+
function handleChange2() {
|
|
288173
|
+
getStore2().handleChange();
|
|
288174
|
+
}
|
|
288175
|
+
var effectScheduler2 = {
|
|
288176
|
+
queue(cb) {
|
|
288177
|
+
const store = getStore2();
|
|
288178
|
+
const { index } = store;
|
|
288179
|
+
store.hooksEffect.push(() => {
|
|
288180
|
+
store.hooksCleanup[index]?.();
|
|
288181
|
+
const cleanFn = cb(readline3());
|
|
288182
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
288183
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
|
288184
|
+
}
|
|
288185
|
+
store.hooksCleanup[index] = cleanFn;
|
|
288186
|
+
});
|
|
288187
|
+
},
|
|
288188
|
+
run() {
|
|
288189
|
+
const store = getStore2();
|
|
288190
|
+
withUpdates2(() => {
|
|
288191
|
+
store.hooksEffect.forEach((effect) => {
|
|
288192
|
+
effect();
|
|
288193
|
+
});
|
|
288194
|
+
store.hooksEffect.length = 0;
|
|
288195
|
+
})();
|
|
288196
|
+
},
|
|
288197
|
+
clearAll() {
|
|
288198
|
+
const store = getStore2();
|
|
288199
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
|
288200
|
+
cleanFn?.();
|
|
288201
|
+
});
|
|
288202
|
+
store.hooksEffect.length = 0;
|
|
288203
|
+
store.hooksCleanup.length = 0;
|
|
288204
|
+
}
|
|
288205
|
+
};
|
|
288206
|
+
|
|
288207
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
288208
|
+
function useState2(defaultValue) {
|
|
288209
|
+
return withPointer2((pointer) => {
|
|
288210
|
+
const setState = AsyncResource5.bind(function setState(newValue) {
|
|
288211
|
+
if (pointer.get() !== newValue) {
|
|
288212
|
+
pointer.set(newValue);
|
|
288213
|
+
handleChange2();
|
|
288214
|
+
}
|
|
288215
|
+
});
|
|
288216
|
+
if (pointer.initialized) {
|
|
288217
|
+
return [pointer.get(), setState];
|
|
288218
|
+
}
|
|
288219
|
+
const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
288220
|
+
pointer.set(value5);
|
|
288221
|
+
return [value5, setState];
|
|
288222
|
+
});
|
|
288223
|
+
}
|
|
288224
|
+
|
|
288225
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
288226
|
+
function useEffect2(cb, depArray) {
|
|
288227
|
+
withPointer2((pointer) => {
|
|
288228
|
+
const oldDeps = pointer.get();
|
|
288229
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
|
|
288230
|
+
if (hasChanged) {
|
|
288231
|
+
effectScheduler2.queue(cb);
|
|
288232
|
+
}
|
|
288233
|
+
pointer.set(depArray);
|
|
288234
|
+
});
|
|
288235
|
+
}
|
|
288236
|
+
|
|
288237
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
288238
|
+
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
288239
|
+
|
|
288240
|
+
// ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
|
|
288241
|
+
import process8 from "node:process";
|
|
288242
|
+
function isUnicodeSupported3() {
|
|
288243
|
+
if (process8.platform !== "win32") {
|
|
288244
|
+
return process8.env["TERM"] !== "linux";
|
|
288245
|
+
}
|
|
288246
|
+
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";
|
|
288247
|
+
}
|
|
288248
|
+
var common2 = {
|
|
288249
|
+
circleQuestionMark: "(?)",
|
|
288250
|
+
questionMarkPrefix: "(?)",
|
|
288251
|
+
square: "█",
|
|
288252
|
+
squareDarkShade: "▓",
|
|
288253
|
+
squareMediumShade: "▒",
|
|
288254
|
+
squareLightShade: "░",
|
|
288255
|
+
squareTop: "▀",
|
|
288256
|
+
squareBottom: "▄",
|
|
288257
|
+
squareLeft: "▌",
|
|
288258
|
+
squareRight: "▐",
|
|
288259
|
+
squareCenter: "■",
|
|
288260
|
+
bullet: "●",
|
|
288261
|
+
dot: "․",
|
|
288262
|
+
ellipsis: "…",
|
|
288263
|
+
pointerSmall: "›",
|
|
288264
|
+
triangleUp: "▲",
|
|
288265
|
+
triangleUpSmall: "▴",
|
|
288266
|
+
triangleDown: "▼",
|
|
288267
|
+
triangleDownSmall: "▾",
|
|
288268
|
+
triangleLeftSmall: "◂",
|
|
288269
|
+
triangleRightSmall: "▸",
|
|
288270
|
+
home: "⌂",
|
|
288271
|
+
heart: "♥",
|
|
288272
|
+
musicNote: "♪",
|
|
288273
|
+
musicNoteBeamed: "♫",
|
|
288274
|
+
arrowUp: "↑",
|
|
288275
|
+
arrowDown: "↓",
|
|
288276
|
+
arrowLeft: "←",
|
|
288277
|
+
arrowRight: "→",
|
|
288278
|
+
arrowLeftRight: "↔",
|
|
288279
|
+
arrowUpDown: "↕",
|
|
288280
|
+
almostEqual: "≈",
|
|
288281
|
+
notEqual: "≠",
|
|
288282
|
+
lessOrEqual: "≤",
|
|
288283
|
+
greaterOrEqual: "≥",
|
|
288284
|
+
identical: "≡",
|
|
288285
|
+
infinity: "∞",
|
|
288286
|
+
subscriptZero: "₀",
|
|
288287
|
+
subscriptOne: "₁",
|
|
288288
|
+
subscriptTwo: "₂",
|
|
288289
|
+
subscriptThree: "₃",
|
|
288290
|
+
subscriptFour: "₄",
|
|
288291
|
+
subscriptFive: "₅",
|
|
288292
|
+
subscriptSix: "₆",
|
|
288293
|
+
subscriptSeven: "₇",
|
|
288294
|
+
subscriptEight: "₈",
|
|
288295
|
+
subscriptNine: "₉",
|
|
288296
|
+
oneHalf: "½",
|
|
288297
|
+
oneThird: "⅓",
|
|
288298
|
+
oneQuarter: "¼",
|
|
288299
|
+
oneFifth: "⅕",
|
|
288300
|
+
oneSixth: "⅙",
|
|
288301
|
+
oneEighth: "⅛",
|
|
288302
|
+
twoThirds: "⅔",
|
|
288303
|
+
twoFifths: "⅖",
|
|
288304
|
+
threeQuarters: "¾",
|
|
288305
|
+
threeFifths: "⅗",
|
|
288306
|
+
threeEighths: "⅜",
|
|
288307
|
+
fourFifths: "⅘",
|
|
288308
|
+
fiveSixths: "⅚",
|
|
288309
|
+
fiveEighths: "⅝",
|
|
288310
|
+
sevenEighths: "⅞",
|
|
288311
|
+
line: "─",
|
|
288312
|
+
lineBold: "━",
|
|
288313
|
+
lineDouble: "═",
|
|
288314
|
+
lineDashed0: "┄",
|
|
288315
|
+
lineDashed1: "┅",
|
|
288316
|
+
lineDashed2: "┈",
|
|
288317
|
+
lineDashed3: "┉",
|
|
288318
|
+
lineDashed4: "╌",
|
|
288319
|
+
lineDashed5: "╍",
|
|
288320
|
+
lineDashed6: "╴",
|
|
288321
|
+
lineDashed7: "╶",
|
|
288322
|
+
lineDashed8: "╸",
|
|
288323
|
+
lineDashed9: "╺",
|
|
288324
|
+
lineDashed10: "╼",
|
|
288325
|
+
lineDashed11: "╾",
|
|
288326
|
+
lineDashed12: "−",
|
|
288327
|
+
lineDashed13: "–",
|
|
288328
|
+
lineDashed14: "‐",
|
|
288329
|
+
lineDashed15: "⁃",
|
|
288330
|
+
lineVertical: "│",
|
|
288331
|
+
lineVerticalBold: "┃",
|
|
288332
|
+
lineVerticalDouble: "║",
|
|
288333
|
+
lineVerticalDashed0: "┆",
|
|
288334
|
+
lineVerticalDashed1: "┇",
|
|
288335
|
+
lineVerticalDashed2: "┊",
|
|
288336
|
+
lineVerticalDashed3: "┋",
|
|
288337
|
+
lineVerticalDashed4: "╎",
|
|
288338
|
+
lineVerticalDashed5: "╏",
|
|
288339
|
+
lineVerticalDashed6: "╵",
|
|
288340
|
+
lineVerticalDashed7: "╷",
|
|
288341
|
+
lineVerticalDashed8: "╹",
|
|
288342
|
+
lineVerticalDashed9: "╻",
|
|
288343
|
+
lineVerticalDashed10: "╽",
|
|
288344
|
+
lineVerticalDashed11: "╿",
|
|
288345
|
+
lineDownLeft: "┐",
|
|
288346
|
+
lineDownLeftArc: "╮",
|
|
288347
|
+
lineDownBoldLeftBold: "┓",
|
|
288348
|
+
lineDownBoldLeft: "┒",
|
|
288349
|
+
lineDownLeftBold: "┑",
|
|
288350
|
+
lineDownDoubleLeftDouble: "╗",
|
|
288351
|
+
lineDownDoubleLeft: "╖",
|
|
288352
|
+
lineDownLeftDouble: "╕",
|
|
288353
|
+
lineDownRight: "┌",
|
|
288354
|
+
lineDownRightArc: "╭",
|
|
288355
|
+
lineDownBoldRightBold: "┏",
|
|
288356
|
+
lineDownBoldRight: "┎",
|
|
288357
|
+
lineDownRightBold: "┍",
|
|
288358
|
+
lineDownDoubleRightDouble: "╔",
|
|
288359
|
+
lineDownDoubleRight: "╓",
|
|
288360
|
+
lineDownRightDouble: "╒",
|
|
288361
|
+
lineUpLeft: "┘",
|
|
288362
|
+
lineUpLeftArc: "╯",
|
|
288363
|
+
lineUpBoldLeftBold: "┛",
|
|
288364
|
+
lineUpBoldLeft: "┚",
|
|
288365
|
+
lineUpLeftBold: "┙",
|
|
288366
|
+
lineUpDoubleLeftDouble: "╝",
|
|
288367
|
+
lineUpDoubleLeft: "╜",
|
|
288368
|
+
lineUpLeftDouble: "╛",
|
|
288369
|
+
lineUpRight: "└",
|
|
288370
|
+
lineUpRightArc: "╰",
|
|
288371
|
+
lineUpBoldRightBold: "┗",
|
|
288372
|
+
lineUpBoldRight: "┖",
|
|
288373
|
+
lineUpRightBold: "┕",
|
|
288374
|
+
lineUpDoubleRightDouble: "╚",
|
|
288375
|
+
lineUpDoubleRight: "╙",
|
|
288376
|
+
lineUpRightDouble: "╘",
|
|
288377
|
+
lineUpDownLeft: "┤",
|
|
288378
|
+
lineUpBoldDownBoldLeftBold: "┫",
|
|
288379
|
+
lineUpBoldDownBoldLeft: "┨",
|
|
288380
|
+
lineUpDownLeftBold: "┥",
|
|
288381
|
+
lineUpBoldDownLeftBold: "┩",
|
|
288382
|
+
lineUpDownBoldLeftBold: "┪",
|
|
288383
|
+
lineUpDownBoldLeft: "┧",
|
|
288384
|
+
lineUpBoldDownLeft: "┦",
|
|
288385
|
+
lineUpDoubleDownDoubleLeftDouble: "╣",
|
|
288386
|
+
lineUpDoubleDownDoubleLeft: "╢",
|
|
288387
|
+
lineUpDownLeftDouble: "╡",
|
|
288388
|
+
lineUpDownRight: "├",
|
|
288389
|
+
lineUpBoldDownBoldRightBold: "┣",
|
|
288390
|
+
lineUpBoldDownBoldRight: "┠",
|
|
288391
|
+
lineUpDownRightBold: "┝",
|
|
288392
|
+
lineUpBoldDownRightBold: "┡",
|
|
288393
|
+
lineUpDownBoldRightBold: "┢",
|
|
288394
|
+
lineUpDownBoldRight: "┟",
|
|
288395
|
+
lineUpBoldDownRight: "┞",
|
|
288396
|
+
lineUpDoubleDownDoubleRightDouble: "╠",
|
|
288397
|
+
lineUpDoubleDownDoubleRight: "╟",
|
|
288398
|
+
lineUpDownRightDouble: "╞",
|
|
288399
|
+
lineDownLeftRight: "┬",
|
|
288400
|
+
lineDownBoldLeftBoldRightBold: "┳",
|
|
288401
|
+
lineDownLeftBoldRightBold: "┯",
|
|
288402
|
+
lineDownBoldLeftRight: "┰",
|
|
288403
|
+
lineDownBoldLeftBoldRight: "┱",
|
|
288404
|
+
lineDownBoldLeftRightBold: "┲",
|
|
288405
|
+
lineDownLeftRightBold: "┮",
|
|
288406
|
+
lineDownLeftBoldRight: "┭",
|
|
288407
|
+
lineDownDoubleLeftDoubleRightDouble: "╦",
|
|
288408
|
+
lineDownDoubleLeftRight: "╥",
|
|
288409
|
+
lineDownLeftDoubleRightDouble: "╤",
|
|
288410
|
+
lineUpLeftRight: "┴",
|
|
288411
|
+
lineUpBoldLeftBoldRightBold: "┻",
|
|
288412
|
+
lineUpLeftBoldRightBold: "┷",
|
|
288413
|
+
lineUpBoldLeftRight: "┸",
|
|
288414
|
+
lineUpBoldLeftBoldRight: "┹",
|
|
288415
|
+
lineUpBoldLeftRightBold: "┺",
|
|
288416
|
+
lineUpLeftRightBold: "┶",
|
|
288417
|
+
lineUpLeftBoldRight: "┵",
|
|
288418
|
+
lineUpDoubleLeftDoubleRightDouble: "╩",
|
|
288419
|
+
lineUpDoubleLeftRight: "╨",
|
|
288420
|
+
lineUpLeftDoubleRightDouble: "╧",
|
|
288421
|
+
lineUpDownLeftRight: "┼",
|
|
288422
|
+
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
|
288423
|
+
lineUpDownBoldLeftBoldRightBold: "╈",
|
|
288424
|
+
lineUpBoldDownLeftBoldRightBold: "╇",
|
|
288425
|
+
lineUpBoldDownBoldLeftRightBold: "╊",
|
|
288426
|
+
lineUpBoldDownBoldLeftBoldRight: "╉",
|
|
288427
|
+
lineUpBoldDownLeftRight: "╀",
|
|
288428
|
+
lineUpDownBoldLeftRight: "╁",
|
|
288429
|
+
lineUpDownLeftBoldRight: "┽",
|
|
288430
|
+
lineUpDownLeftRightBold: "┾",
|
|
288431
|
+
lineUpBoldDownBoldLeftRight: "╂",
|
|
288432
|
+
lineUpDownLeftBoldRightBold: "┿",
|
|
288433
|
+
lineUpBoldDownLeftBoldRight: "╃",
|
|
288434
|
+
lineUpBoldDownLeftRightBold: "╄",
|
|
288435
|
+
lineUpDownBoldLeftBoldRight: "╅",
|
|
288436
|
+
lineUpDownBoldLeftRightBold: "╆",
|
|
288437
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
|
288438
|
+
lineUpDoubleDownDoubleLeftRight: "╫",
|
|
288439
|
+
lineUpDownLeftDoubleRightDouble: "╪",
|
|
288440
|
+
lineCross: "╳",
|
|
288441
|
+
lineBackslash: "╲",
|
|
288442
|
+
lineSlash: "╱"
|
|
288443
|
+
};
|
|
288444
|
+
var specialMainSymbols2 = {
|
|
288445
|
+
tick: "✔",
|
|
288446
|
+
info: "ℹ",
|
|
288447
|
+
warning: "⚠",
|
|
288448
|
+
cross: "✘",
|
|
288449
|
+
squareSmall: "◻",
|
|
288450
|
+
squareSmallFilled: "◼",
|
|
288451
|
+
circle: "◯",
|
|
288452
|
+
circleFilled: "◉",
|
|
288453
|
+
circleDotted: "◌",
|
|
288454
|
+
circleDouble: "◎",
|
|
288455
|
+
circleCircle: "ⓞ",
|
|
288456
|
+
circleCross: "ⓧ",
|
|
288457
|
+
circlePipe: "Ⓘ",
|
|
288458
|
+
radioOn: "◉",
|
|
288459
|
+
radioOff: "◯",
|
|
288460
|
+
checkboxOn: "☒",
|
|
288461
|
+
checkboxOff: "☐",
|
|
288462
|
+
checkboxCircleOn: "ⓧ",
|
|
288463
|
+
checkboxCircleOff: "Ⓘ",
|
|
288464
|
+
pointer: "❯",
|
|
288465
|
+
triangleUpOutline: "△",
|
|
288466
|
+
triangleLeft: "◀",
|
|
288467
|
+
triangleRight: "▶",
|
|
288468
|
+
lozenge: "◆",
|
|
288469
|
+
lozengeOutline: "◇",
|
|
288470
|
+
hamburger: "☰",
|
|
288471
|
+
smiley: "㋡",
|
|
288472
|
+
mustache: "෴",
|
|
288473
|
+
star: "★",
|
|
288474
|
+
play: "▶",
|
|
288475
|
+
nodejs: "⬢",
|
|
288476
|
+
oneSeventh: "⅐",
|
|
288477
|
+
oneNinth: "⅑",
|
|
288478
|
+
oneTenth: "⅒"
|
|
288479
|
+
};
|
|
288480
|
+
var specialFallbackSymbols2 = {
|
|
288481
|
+
tick: "√",
|
|
288482
|
+
info: "i",
|
|
288483
|
+
warning: "‼",
|
|
288484
|
+
cross: "×",
|
|
288485
|
+
squareSmall: "□",
|
|
288486
|
+
squareSmallFilled: "■",
|
|
288487
|
+
circle: "( )",
|
|
288488
|
+
circleFilled: "(*)",
|
|
288489
|
+
circleDotted: "( )",
|
|
288490
|
+
circleDouble: "( )",
|
|
288491
|
+
circleCircle: "(○)",
|
|
288492
|
+
circleCross: "(×)",
|
|
288493
|
+
circlePipe: "(│)",
|
|
288494
|
+
radioOn: "(*)",
|
|
288495
|
+
radioOff: "( )",
|
|
288496
|
+
checkboxOn: "[×]",
|
|
288497
|
+
checkboxOff: "[ ]",
|
|
288498
|
+
checkboxCircleOn: "(×)",
|
|
288499
|
+
checkboxCircleOff: "( )",
|
|
288500
|
+
pointer: ">",
|
|
288501
|
+
triangleUpOutline: "∆",
|
|
288502
|
+
triangleLeft: "◄",
|
|
288503
|
+
triangleRight: "►",
|
|
288504
|
+
lozenge: "♦",
|
|
288505
|
+
lozengeOutline: "◊",
|
|
288506
|
+
hamburger: "≡",
|
|
288507
|
+
smiley: "☺",
|
|
288508
|
+
mustache: "┌─┐",
|
|
288509
|
+
star: "✶",
|
|
288510
|
+
play: "►",
|
|
288511
|
+
nodejs: "♦",
|
|
288512
|
+
oneSeventh: "1/7",
|
|
288513
|
+
oneNinth: "1/9",
|
|
288514
|
+
oneTenth: "1/10"
|
|
288515
|
+
};
|
|
288516
|
+
var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
|
|
288517
|
+
var fallbackSymbols2 = {
|
|
288518
|
+
...common2,
|
|
288519
|
+
...specialFallbackSymbols2
|
|
288520
|
+
};
|
|
288521
|
+
var shouldUseMain2 = isUnicodeSupported3();
|
|
288522
|
+
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
288523
|
+
var esm_default2 = figures2;
|
|
288524
|
+
var replacements2 = Object.entries(specialMainSymbols2);
|
|
288525
|
+
|
|
288526
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
288527
|
+
var defaultTheme2 = {
|
|
288528
|
+
prefix: {
|
|
288529
|
+
idle: import_yoctocolors_cjs2.default.blue("?"),
|
|
288530
|
+
done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
|
|
288531
|
+
},
|
|
288532
|
+
spinner: {
|
|
288533
|
+
interval: 80,
|
|
288534
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
|
|
288535
|
+
},
|
|
288536
|
+
style: {
|
|
288537
|
+
answer: import_yoctocolors_cjs2.default.cyan,
|
|
288538
|
+
message: import_yoctocolors_cjs2.default.bold,
|
|
288539
|
+
error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
|
|
288540
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
|
|
288541
|
+
help: import_yoctocolors_cjs2.default.dim,
|
|
288542
|
+
highlight: import_yoctocolors_cjs2.default.cyan,
|
|
288543
|
+
key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
|
|
288544
|
+
}
|
|
288545
|
+
};
|
|
288546
|
+
|
|
288547
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
288548
|
+
function isPlainObject4(value5) {
|
|
288549
|
+
if (typeof value5 !== "object" || value5 === null)
|
|
288550
|
+
return false;
|
|
288551
|
+
let proto = value5;
|
|
288552
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
288553
|
+
proto = Object.getPrototypeOf(proto);
|
|
288554
|
+
}
|
|
288555
|
+
return Object.getPrototypeOf(value5) === proto;
|
|
288556
|
+
}
|
|
288557
|
+
function deepMerge3(...objects) {
|
|
288558
|
+
const output = {};
|
|
288559
|
+
for (const obj of objects) {
|
|
288560
|
+
for (const [key, value5] of Object.entries(obj)) {
|
|
288561
|
+
const prevValue = output[key];
|
|
288562
|
+
output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
|
|
288563
|
+
}
|
|
288564
|
+
}
|
|
288565
|
+
return output;
|
|
288566
|
+
}
|
|
288567
|
+
function makeTheme2(...themes) {
|
|
288568
|
+
const themesToMerge = [
|
|
288569
|
+
defaultTheme2,
|
|
288570
|
+
...themes.filter((theme) => theme != null)
|
|
288571
|
+
];
|
|
288572
|
+
return deepMerge3(...themesToMerge);
|
|
288573
|
+
}
|
|
288574
|
+
|
|
288575
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
288576
|
+
function usePrefix2({ status = "idle", theme }) {
|
|
288577
|
+
const [showLoader, setShowLoader] = useState2(false);
|
|
288578
|
+
const [tick, setTick] = useState2(0);
|
|
288579
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
|
288580
|
+
useEffect2(() => {
|
|
288581
|
+
if (status === "loading") {
|
|
288582
|
+
let tickInterval;
|
|
288583
|
+
let inc = -1;
|
|
288584
|
+
const delayTimeout = setTimeout(() => {
|
|
288585
|
+
setShowLoader(true);
|
|
288586
|
+
tickInterval = setInterval(() => {
|
|
288587
|
+
inc = inc + 1;
|
|
288588
|
+
setTick(inc % spinner2.frames.length);
|
|
288589
|
+
}, spinner2.interval);
|
|
288590
|
+
}, 300);
|
|
288591
|
+
return () => {
|
|
288592
|
+
clearTimeout(delayTimeout);
|
|
288593
|
+
clearInterval(tickInterval);
|
|
288594
|
+
};
|
|
288595
|
+
} else {
|
|
288596
|
+
setShowLoader(false);
|
|
288597
|
+
}
|
|
288598
|
+
}, [status]);
|
|
288599
|
+
if (showLoader) {
|
|
288600
|
+
return spinner2.frames[tick];
|
|
288601
|
+
}
|
|
288602
|
+
const iconName = status === "loading" ? "idle" : status;
|
|
288603
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
288604
|
+
}
|
|
288605
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
288606
|
+
function useMemo(fn, dependencies) {
|
|
288607
|
+
return withPointer2((pointer) => {
|
|
288608
|
+
const prev = pointer.get();
|
|
288609
|
+
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
|
|
288610
|
+
const value5 = fn();
|
|
288611
|
+
pointer.set({ value: value5, dependencies });
|
|
288612
|
+
return value5;
|
|
288613
|
+
}
|
|
288614
|
+
return prev.value;
|
|
288615
|
+
});
|
|
288616
|
+
}
|
|
288617
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
288618
|
+
function useRef2(val) {
|
|
288619
|
+
return useState2({ current: val })[0];
|
|
288620
|
+
}
|
|
288621
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
288622
|
+
function useKeypress2(userHandler) {
|
|
288623
|
+
const signal = useRef2(userHandler);
|
|
288624
|
+
signal.current = userHandler;
|
|
288625
|
+
useEffect2((rl) => {
|
|
288626
|
+
let ignore = false;
|
|
288627
|
+
const handler = withUpdates2((_input, event) => {
|
|
288628
|
+
if (ignore)
|
|
288629
|
+
return;
|
|
288630
|
+
signal.current(event, rl);
|
|
288631
|
+
});
|
|
288632
|
+
rl.input.on("keypress", handler);
|
|
288633
|
+
return () => {
|
|
288634
|
+
ignore = true;
|
|
288635
|
+
rl.input.removeListener("keypress", handler);
|
|
288636
|
+
};
|
|
288637
|
+
}, []);
|
|
288638
|
+
}
|
|
288639
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
288640
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
288641
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
288642
|
+
function breakLines2(content, width) {
|
|
288643
|
+
return content.split(`
|
|
288644
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
|
288645
|
+
`).map((str) => str.trimEnd())).join(`
|
|
288646
|
+
`);
|
|
288647
|
+
}
|
|
288648
|
+
function readlineWidth2() {
|
|
288649
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
288650
|
+
}
|
|
288651
|
+
|
|
288652
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
288653
|
+
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
288654
|
+
const state = useRef2({
|
|
288655
|
+
lastPointer: active,
|
|
288656
|
+
lastActive: undefined
|
|
288657
|
+
});
|
|
288658
|
+
const { lastPointer, lastActive } = state.current;
|
|
288659
|
+
const middle = Math.floor(pageSize / 2);
|
|
288660
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
288661
|
+
const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
|
|
288662
|
+
let pointer = defaultPointerPosition;
|
|
288663
|
+
if (renderedLength > pageSize) {
|
|
288664
|
+
if (loop) {
|
|
288665
|
+
pointer = lastPointer;
|
|
288666
|
+
if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
|
|
288667
|
+
pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
|
|
288668
|
+
}
|
|
288669
|
+
} else {
|
|
288670
|
+
const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
|
|
288671
|
+
pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
|
|
288672
|
+
}
|
|
288673
|
+
}
|
|
288674
|
+
state.current.lastPointer = pointer;
|
|
288675
|
+
state.current.lastActive = active;
|
|
288676
|
+
return pointer;
|
|
288677
|
+
}
|
|
288678
|
+
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
288679
|
+
const width = readlineWidth2();
|
|
288680
|
+
const bound = (num) => (num % items.length + items.length) % items.length;
|
|
288681
|
+
const renderedItems = items.map((item, index) => {
|
|
288682
|
+
if (item == null)
|
|
288683
|
+
return [];
|
|
288684
|
+
return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
|
|
288685
|
+
`);
|
|
288686
|
+
});
|
|
288687
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
288688
|
+
const renderItemAtIndex = (index) => renderedItems[index] ?? [];
|
|
288689
|
+
const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
|
|
288690
|
+
const activeItem = renderItemAtIndex(active).slice(0, pageSize);
|
|
288691
|
+
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
288692
|
+
const pageBuffer = Array.from({ length: pageSize });
|
|
288693
|
+
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
288694
|
+
const itemVisited = new Set([active]);
|
|
288695
|
+
let bufferPointer = activeItemPosition + activeItem.length;
|
|
288696
|
+
let itemPointer = bound(active + 1);
|
|
288697
|
+
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
288698
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
288699
|
+
const linesToAdd = lines.slice(0, pageSize - bufferPointer);
|
|
288700
|
+
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
|
288701
|
+
itemVisited.add(itemPointer);
|
|
288702
|
+
bufferPointer += linesToAdd.length;
|
|
288703
|
+
itemPointer = bound(itemPointer + 1);
|
|
288704
|
+
}
|
|
288705
|
+
bufferPointer = activeItemPosition - 1;
|
|
288706
|
+
itemPointer = bound(active - 1);
|
|
288707
|
+
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
|
288708
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
288709
|
+
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
|
288710
|
+
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
|
288711
|
+
itemVisited.add(itemPointer);
|
|
288712
|
+
bufferPointer -= linesToAdd.length;
|
|
288713
|
+
itemPointer = bound(itemPointer - 1);
|
|
288714
|
+
}
|
|
288715
|
+
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
288716
|
+
`);
|
|
288717
|
+
}
|
|
288718
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
288719
|
+
var import_mute_stream2 = __toESM(require_lib13(), 1);
|
|
288720
|
+
import * as readline4 from "node:readline";
|
|
288721
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
288722
|
+
|
|
288723
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
288724
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
|
288725
|
+
|
|
288726
|
+
// ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
288727
|
+
var ESC2 = "\x1B[";
|
|
288728
|
+
var cursorLeft2 = ESC2 + "G";
|
|
288729
|
+
var cursorHide2 = ESC2 + "?25l";
|
|
288730
|
+
var cursorShow2 = ESC2 + "?25h";
|
|
288731
|
+
var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
|
|
288732
|
+
var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
|
|
288733
|
+
var cursorTo2 = (x6, y4) => {
|
|
288734
|
+
if (typeof y4 === "number" && !Number.isNaN(y4)) {
|
|
288735
|
+
return `${ESC2}${y4 + 1};${x6 + 1}H`;
|
|
288736
|
+
}
|
|
288737
|
+
return `${ESC2}${x6 + 1}G`;
|
|
288738
|
+
};
|
|
288739
|
+
var eraseLine2 = ESC2 + "2K";
|
|
288740
|
+
var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
|
|
288741
|
+
|
|
288742
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
288743
|
+
var height2 = (content) => content.split(`
|
|
288744
|
+
`).length;
|
|
288745
|
+
var lastLine2 = (content) => content.split(`
|
|
288746
|
+
`).pop() ?? "";
|
|
288747
|
+
|
|
288748
|
+
class ScreenManager2 {
|
|
288749
|
+
height = 0;
|
|
288750
|
+
extraLinesUnderPrompt = 0;
|
|
288751
|
+
cursorPos;
|
|
288752
|
+
rl;
|
|
288753
|
+
constructor(rl) {
|
|
288754
|
+
this.rl = rl;
|
|
288755
|
+
this.cursorPos = rl.getCursorPos();
|
|
288756
|
+
}
|
|
288757
|
+
write(content) {
|
|
288758
|
+
this.rl.output.unmute();
|
|
288759
|
+
this.rl.output.write(content);
|
|
288760
|
+
this.rl.output.mute();
|
|
288761
|
+
}
|
|
288762
|
+
render(content, bottomContent = "") {
|
|
288763
|
+
const promptLine = lastLine2(content);
|
|
288764
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
|
288765
|
+
let prompt = rawPromptLine;
|
|
288766
|
+
if (this.rl.line.length > 0) {
|
|
288767
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
|
288768
|
+
}
|
|
288769
|
+
this.rl.setPrompt(prompt);
|
|
288770
|
+
this.cursorPos = this.rl.getCursorPos();
|
|
288771
|
+
const width = readlineWidth2();
|
|
288772
|
+
content = breakLines2(content, width);
|
|
288773
|
+
bottomContent = breakLines2(bottomContent, width);
|
|
288774
|
+
if (rawPromptLine.length % width === 0) {
|
|
288775
|
+
content += `
|
|
288776
|
+
`;
|
|
288777
|
+
}
|
|
288778
|
+
let output = content + (bottomContent ? `
|
|
288779
|
+
` + bottomContent : "");
|
|
288780
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
288781
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
|
288782
|
+
if (bottomContentHeight > 0)
|
|
288783
|
+
output += cursorUp2(bottomContentHeight);
|
|
288784
|
+
output += cursorTo2(this.cursorPos.cols);
|
|
288785
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
|
|
288786
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
288787
|
+
this.height = height2(output);
|
|
288788
|
+
}
|
|
288789
|
+
checkCursorPos() {
|
|
288790
|
+
const cursorPos = this.rl.getCursorPos();
|
|
288791
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
288792
|
+
this.write(cursorTo2(cursorPos.cols));
|
|
288793
|
+
this.cursorPos = cursorPos;
|
|
288794
|
+
}
|
|
288795
|
+
}
|
|
288796
|
+
done({ clearContent }) {
|
|
288797
|
+
this.rl.setPrompt("");
|
|
288798
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
|
288799
|
+
output += clearContent ? eraseLines2(this.height) : `
|
|
288800
|
+
`;
|
|
288801
|
+
output += cursorShow2;
|
|
288802
|
+
this.write(output);
|
|
288803
|
+
this.rl.close();
|
|
288804
|
+
}
|
|
288805
|
+
}
|
|
288806
|
+
|
|
288807
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
288808
|
+
class PromisePolyfill2 extends Promise {
|
|
288809
|
+
static withResolver() {
|
|
288810
|
+
let resolve6;
|
|
288811
|
+
let reject;
|
|
288812
|
+
const promise2 = new Promise((res, rej) => {
|
|
288813
|
+
resolve6 = res;
|
|
288814
|
+
reject = rej;
|
|
288815
|
+
});
|
|
288816
|
+
return { promise: promise2, resolve: resolve6, reject };
|
|
288817
|
+
}
|
|
288818
|
+
}
|
|
288819
|
+
|
|
288820
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
288821
|
+
function getCallSites2() {
|
|
288822
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
|
288823
|
+
let result = [];
|
|
288824
|
+
try {
|
|
288825
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
|
288826
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
|
288827
|
+
result = callSitesWithoutCurrent;
|
|
288828
|
+
return callSitesWithoutCurrent;
|
|
288829
|
+
};
|
|
288830
|
+
new Error().stack;
|
|
288831
|
+
} catch {
|
|
288832
|
+
return result;
|
|
288833
|
+
}
|
|
288834
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
|
288835
|
+
return result;
|
|
288836
|
+
}
|
|
288837
|
+
function createPrompt2(view) {
|
|
288838
|
+
const callSites = getCallSites2();
|
|
288839
|
+
const prompt = (config3, context = {}) => {
|
|
288840
|
+
const { input = process.stdin, signal } = context;
|
|
288841
|
+
const cleanups = new Set;
|
|
288842
|
+
const output = new import_mute_stream2.default;
|
|
288843
|
+
output.pipe(context.output ?? process.stdout);
|
|
288844
|
+
const rl = readline4.createInterface({
|
|
288845
|
+
terminal: true,
|
|
288846
|
+
input,
|
|
288847
|
+
output
|
|
288848
|
+
});
|
|
288849
|
+
const screen = new ScreenManager2(rl);
|
|
288850
|
+
const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
|
|
288851
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
|
288852
|
+
if (signal) {
|
|
288853
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
|
288854
|
+
if (signal.aborted) {
|
|
288855
|
+
abort();
|
|
288856
|
+
return Object.assign(promise2, { cancel: cancel3 });
|
|
288857
|
+
}
|
|
288858
|
+
signal.addEventListener("abort", abort);
|
|
288859
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
288860
|
+
}
|
|
288861
|
+
cleanups.add(onExit((code2, signal2) => {
|
|
288862
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
|
288863
|
+
}));
|
|
288864
|
+
const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
|
|
288865
|
+
rl.on("SIGINT", sigint);
|
|
288866
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
|
288867
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
|
288868
|
+
rl.input.on("keypress", checkCursorPos);
|
|
288869
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
288870
|
+
return withHooks2(rl, (cycle) => {
|
|
288871
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
|
288872
|
+
rl.on("close", hooksCleanup);
|
|
288873
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
288874
|
+
cycle(() => {
|
|
288875
|
+
try {
|
|
288876
|
+
const nextView = view(config3, (value5) => {
|
|
288877
|
+
setImmediate(() => resolve6(value5));
|
|
288878
|
+
});
|
|
288879
|
+
if (nextView === undefined) {
|
|
288880
|
+
const callerFilename = callSites[1]?.getFileName();
|
|
288881
|
+
throw new Error(`Prompt functions must return a string.
|
|
288882
|
+
at ${callerFilename}`);
|
|
288883
|
+
}
|
|
288884
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
288885
|
+
screen.render(content, bottomContent);
|
|
288886
|
+
effectScheduler2.run();
|
|
288887
|
+
} catch (error51) {
|
|
288888
|
+
reject(error51);
|
|
288889
|
+
}
|
|
288890
|
+
});
|
|
288891
|
+
return Object.assign(promise2.then((answer) => {
|
|
288892
|
+
effectScheduler2.clearAll();
|
|
288893
|
+
return answer;
|
|
288894
|
+
}, (error51) => {
|
|
288895
|
+
effectScheduler2.clearAll();
|
|
288896
|
+
throw error51;
|
|
288897
|
+
}).finally(() => {
|
|
288898
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
288899
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
288900
|
+
output.end();
|
|
288901
|
+
}).then(() => promise2), { cancel: cancel3 });
|
|
288902
|
+
});
|
|
288903
|
+
};
|
|
288904
|
+
return prompt;
|
|
288905
|
+
}
|
|
288906
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
288907
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
288908
|
+
class Separator {
|
|
288909
|
+
separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
|
|
288910
|
+
type = "separator";
|
|
288911
|
+
constructor(separator) {
|
|
288912
|
+
if (separator) {
|
|
288913
|
+
this.separator = separator;
|
|
288914
|
+
}
|
|
288915
|
+
}
|
|
288916
|
+
static isSeparator(choice) {
|
|
288917
|
+
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
|
288918
|
+
}
|
|
288919
|
+
}
|
|
288038
288920
|
// ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
|
|
288039
288921
|
var inputTheme = {
|
|
288040
288922
|
validationFailureMode: "keep"
|
|
288041
288923
|
};
|
|
288042
|
-
var
|
|
288924
|
+
var esm_default3 = createPrompt2((config3, done) => {
|
|
288043
288925
|
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
|
288044
|
-
const theme =
|
|
288045
|
-
const [status, setStatus] =
|
|
288046
|
-
const [defaultValue = "", setDefaultValue] =
|
|
288047
|
-
const [errorMsg, setError] =
|
|
288048
|
-
const [value5, setValue] =
|
|
288049
|
-
const prefix =
|
|
288050
|
-
|
|
288926
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
|
288927
|
+
const [status, setStatus] = useState2("idle");
|
|
288928
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
|
288929
|
+
const [errorMsg, setError] = useState2();
|
|
288930
|
+
const [value5, setValue] = useState2("");
|
|
288931
|
+
const prefix = usePrefix2({ status, theme });
|
|
288932
|
+
useKeypress2(async (key, rl) => {
|
|
288051
288933
|
if (status !== "idle") {
|
|
288052
288934
|
return;
|
|
288053
288935
|
}
|
|
288054
|
-
if (
|
|
288936
|
+
if (isEnterKey2(key)) {
|
|
288055
288937
|
const answer = value5 || defaultValue;
|
|
288056
288938
|
setStatus("loading");
|
|
288057
288939
|
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
|
@@ -288068,9 +288950,9 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
288068
288950
|
setError(isValid || "You must provide a valid value");
|
|
288069
288951
|
setStatus("idle");
|
|
288070
288952
|
}
|
|
288071
|
-
} else if (
|
|
288953
|
+
} else if (isBackspaceKey2(key) && !value5) {
|
|
288072
288954
|
setDefaultValue(undefined);
|
|
288073
|
-
} else if (
|
|
288955
|
+
} else if (isTabKey2(key) && !value5) {
|
|
288074
288956
|
setDefaultValue(undefined);
|
|
288075
288957
|
rl.clearLine(0);
|
|
288076
288958
|
rl.write(defaultValue);
|
|
@@ -288080,7 +288962,7 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
|
288080
288962
|
setError(undefined);
|
|
288081
288963
|
}
|
|
288082
288964
|
});
|
|
288083
|
-
|
|
288965
|
+
useEffect2((rl) => {
|
|
288084
288966
|
if (prefill === "editable" && defaultValue) {
|
|
288085
288967
|
rl.write(defaultValue);
|
|
288086
288968
|
setValue(defaultValue);
|
|
@@ -288117,7 +288999,7 @@ async function subgraphNamePrompt({
|
|
|
288117
288999
|
if (accept) {
|
|
288118
289000
|
return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
|
|
288119
289001
|
}
|
|
288120
|
-
const subgraphName = await
|
|
289002
|
+
const subgraphName = await esm_default3({
|
|
288121
289003
|
message: "What is the name of your subgraph?",
|
|
288122
289004
|
default: defaultSubgraphName,
|
|
288123
289005
|
required: true
|
|
@@ -288126,13 +289008,13 @@ async function subgraphNamePrompt({
|
|
|
288126
289008
|
}
|
|
288127
289009
|
|
|
288128
289010
|
// ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
|
|
288129
|
-
var
|
|
289011
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
288130
289012
|
var selectTheme = {
|
|
288131
|
-
icon: { cursor:
|
|
289013
|
+
icon: { cursor: esm_default2.pointer },
|
|
288132
289014
|
style: {
|
|
288133
|
-
disabled: (text2) =>
|
|
288134
|
-
description: (text2) =>
|
|
288135
|
-
keysHelpTip: (keys) => keys.map(([key, action]) => `${
|
|
289015
|
+
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
|
289016
|
+
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
|
|
289017
|
+
keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
|
|
288136
289018
|
},
|
|
288137
289019
|
helpMode: "always",
|
|
288138
289020
|
indexMode: "hidden",
|
|
@@ -288166,20 +289048,20 @@ function normalizeChoices(choices) {
|
|
|
288166
289048
|
return normalizedChoice;
|
|
288167
289049
|
});
|
|
288168
289050
|
}
|
|
288169
|
-
var
|
|
289051
|
+
var esm_default4 = createPrompt2((config3, done) => {
|
|
288170
289052
|
const { loop = true, pageSize = 7 } = config3;
|
|
288171
|
-
const theme =
|
|
289053
|
+
const theme = makeTheme2(selectTheme, config3.theme);
|
|
288172
289054
|
const { keybindings } = theme;
|
|
288173
|
-
const [status, setStatus] =
|
|
288174
|
-
const prefix =
|
|
288175
|
-
const searchTimeoutRef =
|
|
289055
|
+
const [status, setStatus] = useState2("idle");
|
|
289056
|
+
const prefix = usePrefix2({ status, theme });
|
|
289057
|
+
const searchTimeoutRef = useRef2();
|
|
288176
289058
|
const searchEnabled = !keybindings.includes("vim");
|
|
288177
289059
|
const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
|
|
288178
289060
|
const bounds = useMemo(() => {
|
|
288179
289061
|
const first = items.findIndex(isSelectable);
|
|
288180
289062
|
const last = items.findLastIndex(isSelectable);
|
|
288181
289063
|
if (first === -1) {
|
|
288182
|
-
throw new
|
|
289064
|
+
throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
|
|
288183
289065
|
}
|
|
288184
289066
|
return { first, last };
|
|
288185
289067
|
}, [items]);
|
|
@@ -288188,24 +289070,24 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
|
288188
289070
|
return -1;
|
|
288189
289071
|
return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
|
|
288190
289072
|
}, [config3.default, items]);
|
|
288191
|
-
const [active, setActive] =
|
|
289073
|
+
const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
|
288192
289074
|
const selectedChoice = items[active];
|
|
288193
|
-
|
|
289075
|
+
useKeypress2((key, rl) => {
|
|
288194
289076
|
clearTimeout(searchTimeoutRef.current);
|
|
288195
|
-
if (
|
|
289077
|
+
if (isEnterKey2(key)) {
|
|
288196
289078
|
setStatus("done");
|
|
288197
289079
|
done(selectedChoice.value);
|
|
288198
|
-
} else if (
|
|
289080
|
+
} else if (isUpKey2(key, keybindings) || isDownKey2(key, keybindings)) {
|
|
288199
289081
|
rl.clearLine(0);
|
|
288200
|
-
if (loop ||
|
|
288201
|
-
const offset =
|
|
289082
|
+
if (loop || isUpKey2(key, keybindings) && active !== bounds.first || isDownKey2(key, keybindings) && active !== bounds.last) {
|
|
289083
|
+
const offset = isUpKey2(key, keybindings) ? -1 : 1;
|
|
288202
289084
|
let next = active;
|
|
288203
289085
|
do {
|
|
288204
289086
|
next = (next + offset + items.length) % items.length;
|
|
288205
289087
|
} while (!isSelectable(items[next]));
|
|
288206
289088
|
setActive(next);
|
|
288207
289089
|
}
|
|
288208
|
-
} else if (
|
|
289090
|
+
} else if (isNumberKey2(key) && !Number.isNaN(Number(rl.line))) {
|
|
288209
289091
|
const selectedIndex = Number(rl.line) - 1;
|
|
288210
289092
|
let selectableIndex = -1;
|
|
288211
289093
|
const position = items.findIndex((item2) => {
|
|
@@ -288221,7 +289103,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
|
288221
289103
|
searchTimeoutRef.current = setTimeout(() => {
|
|
288222
289104
|
rl.clearLine(0);
|
|
288223
289105
|
}, 700);
|
|
288224
|
-
} else if (
|
|
289106
|
+
} else if (isBackspaceKey2(key)) {
|
|
288225
289107
|
rl.clearLine(0);
|
|
288226
289108
|
} else if (searchEnabled) {
|
|
288227
289109
|
const searchTerm = rl.line.toLowerCase();
|
|
@@ -288238,7 +289120,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
|
288238
289120
|
}, 700);
|
|
288239
289121
|
}
|
|
288240
289122
|
});
|
|
288241
|
-
|
|
289123
|
+
useEffect2(() => () => {
|
|
288242
289124
|
clearTimeout(searchTimeoutRef.current);
|
|
288243
289125
|
}, []);
|
|
288244
289126
|
const message = theme.style.message(config3.message, status);
|
|
@@ -288287,7 +289169,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
|
288287
289169
|
helpLine
|
|
288288
289170
|
].filter(Boolean).join(`
|
|
288289
289171
|
`).trimEnd();
|
|
288290
|
-
return `${lines}${
|
|
289172
|
+
return `${lines}${cursorHide2}`;
|
|
288291
289173
|
});
|
|
288292
289174
|
|
|
288293
289175
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
|
@@ -288341,7 +289223,7 @@ async function subgraphPrompt({
|
|
|
288341
289223
|
} else {
|
|
288342
289224
|
defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
|
|
288343
289225
|
}
|
|
288344
|
-
const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await
|
|
289226
|
+
const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
|
|
288345
289227
|
message,
|
|
288346
289228
|
choices: choices.map((name4) => ({
|
|
288347
289229
|
name: name4,
|
|
@@ -313804,7 +314686,7 @@ function extractInfoFromBody(body) {
|
|
|
313804
314686
|
}
|
|
313805
314687
|
}
|
|
313806
314688
|
|
|
313807
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.
|
|
314689
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.20+c30ff3a63f0500d5/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
313808
314690
|
function getBooleanValue(value5, defaultValue) {
|
|
313809
314691
|
let answer = defaultValue !== false;
|
|
313810
314692
|
if (/^(y|yes)/i.test(value5))
|
|
@@ -313816,7 +314698,7 @@ function getBooleanValue(value5, defaultValue) {
|
|
|
313816
314698
|
function boolToString(value5) {
|
|
313817
314699
|
return value5 ? "Yes" : "No";
|
|
313818
314700
|
}
|
|
313819
|
-
var
|
|
314701
|
+
var esm_default5 = createPrompt((config3, done) => {
|
|
313820
314702
|
const { transformer = boolToString } = config3;
|
|
313821
314703
|
const [status, setStatus] = useState("idle");
|
|
313822
314704
|
const [value5, setValue] = useState("");
|
|
@@ -313851,18 +314733,18 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
313851
314733
|
});
|
|
313852
314734
|
|
|
313853
314735
|
// ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
|
|
313854
|
-
var
|
|
314736
|
+
var esm_default6 = createPrompt2((config3, done) => {
|
|
313855
314737
|
const { validate: validate8 = () => true } = config3;
|
|
313856
|
-
const theme =
|
|
313857
|
-
const [status, setStatus] =
|
|
313858
|
-
const [errorMsg, setError] =
|
|
313859
|
-
const [value5, setValue] =
|
|
313860
|
-
const prefix =
|
|
313861
|
-
|
|
314738
|
+
const theme = makeTheme2(config3.theme);
|
|
314739
|
+
const [status, setStatus] = useState2("idle");
|
|
314740
|
+
const [errorMsg, setError] = useState2();
|
|
314741
|
+
const [value5, setValue] = useState2("");
|
|
314742
|
+
const prefix = usePrefix2({ status, theme });
|
|
314743
|
+
useKeypress2(async (key, rl) => {
|
|
313862
314744
|
if (status !== "idle") {
|
|
313863
314745
|
return;
|
|
313864
314746
|
}
|
|
313865
|
-
if (
|
|
314747
|
+
if (isEnterKey2(key)) {
|
|
313866
314748
|
const answer = value5;
|
|
313867
314749
|
setStatus("loading");
|
|
313868
314750
|
const isValid = await validate8(answer);
|
|
@@ -313887,7 +314769,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
|
313887
314769
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
|
313888
314770
|
formattedValue = maskChar.repeat(value5.length);
|
|
313889
314771
|
} else if (status !== "done") {
|
|
313890
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
|
314772
|
+
helpTip = `${theme.style.help("[input is masked]")}${cursorHide2}`;
|
|
313891
314773
|
}
|
|
313892
314774
|
if (status === "done") {
|
|
313893
314775
|
formattedValue = theme.style.answer(formattedValue);
|
|
@@ -313909,7 +314791,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
313909
314791
|
return defaultAccessToken;
|
|
313910
314792
|
}
|
|
313911
314793
|
if (defaultAccessToken) {
|
|
313912
|
-
const keep = await
|
|
314794
|
+
const keep = await esm_default5({
|
|
313913
314795
|
message: "Do you want to use the existing application access token?",
|
|
313914
314796
|
default: true
|
|
313915
314797
|
});
|
|
@@ -313917,12 +314799,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
313917
314799
|
return defaultAccessToken;
|
|
313918
314800
|
}
|
|
313919
314801
|
}
|
|
313920
|
-
const create3 = await
|
|
314802
|
+
const create3 = await esm_default5({
|
|
313921
314803
|
message: "Do you want to create a new application access token?",
|
|
313922
314804
|
default: false
|
|
313923
314805
|
});
|
|
313924
314806
|
if (create3) {
|
|
313925
|
-
const name4 = await
|
|
314807
|
+
const name4 = await esm_default3({
|
|
313926
314808
|
message: "How would you like to name this application access token?",
|
|
313927
314809
|
default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
|
|
313928
314810
|
required: true,
|
|
@@ -313985,7 +314867,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
313985
314867
|
return aat;
|
|
313986
314868
|
} catch (_error) {}
|
|
313987
314869
|
}
|
|
313988
|
-
return
|
|
314870
|
+
return esm_default6({
|
|
313989
314871
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
313990
314872
|
validate(value5) {
|
|
313991
314873
|
try {
|
|
@@ -314017,7 +314899,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
314017
314899
|
if (is_in_ci_default) {
|
|
314018
314900
|
nothingSelectedError("application");
|
|
314019
314901
|
}
|
|
314020
|
-
const application = await
|
|
314902
|
+
const application = await esm_default4({
|
|
314021
314903
|
message: "Which application do you want to connect to?",
|
|
314022
314904
|
choices: applications.map((applications2) => ({
|
|
314023
314905
|
name: `${applications2.name} (${applications2.uniqueName})`,
|
|
@@ -314130,7 +315012,7 @@ async function blockchainNodePrompt({
|
|
|
314130
315012
|
}
|
|
314131
315013
|
return item;
|
|
314132
315014
|
}) : choices;
|
|
314133
|
-
return
|
|
315015
|
+
return esm_default4({
|
|
314134
315016
|
message: promptMessage ?? "Which blockchain node do you want to connect to?",
|
|
314135
315017
|
choices: filteredChoices,
|
|
314136
315018
|
default: defaultNode
|
|
@@ -314160,7 +315042,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
|
|
|
314160
315042
|
isRequired,
|
|
314161
315043
|
defaultHandler: async ({ defaultService: defaultNode, choices }) => {
|
|
314162
315044
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
|
|
314163
|
-
return
|
|
315045
|
+
return esm_default4({
|
|
314164
315046
|
message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
|
|
314165
315047
|
choices: filteredChoices,
|
|
314166
315048
|
default: defaultNode
|
|
@@ -314185,7 +315067,7 @@ async function blockscoutPrompt({
|
|
|
314185
315067
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
314186
315068
|
isRequired,
|
|
314187
315069
|
defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
|
|
314188
|
-
return
|
|
315070
|
+
return esm_default4({
|
|
314189
315071
|
message: "Which blockscout instance do you want to connect to?",
|
|
314190
315072
|
choices,
|
|
314191
315073
|
default: defaultBlockscout
|
|
@@ -314208,7 +315090,7 @@ async function customDeploymentPrompt({
|
|
|
314208
315090
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
314209
315091
|
isRequired,
|
|
314210
315092
|
defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
|
|
314211
|
-
return
|
|
315093
|
+
return esm_default4({
|
|
314212
315094
|
message: "Which Custom Deployment do you want to connect to?",
|
|
314213
315095
|
choices,
|
|
314214
315096
|
default: defaultCustomDeployment
|
|
@@ -314235,7 +315117,7 @@ async function hasuraPrompt({
|
|
|
314235
315117
|
envKey: "SETTLEMINT_HASURA",
|
|
314236
315118
|
isRequired,
|
|
314237
315119
|
defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
|
|
314238
|
-
return
|
|
315120
|
+
return esm_default4({
|
|
314239
315121
|
message: "Which Hasura instance do you want to connect to?",
|
|
314240
315122
|
choices,
|
|
314241
315123
|
default: defaultHasura
|
|
@@ -314259,7 +315141,7 @@ async function hdPrivateKeyPrompt({
|
|
|
314259
315141
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
314260
315142
|
isRequired,
|
|
314261
315143
|
defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
|
|
314262
|
-
return
|
|
315144
|
+
return esm_default4({
|
|
314263
315145
|
message: "Which HD Private Key do you want to use?",
|
|
314264
315146
|
choices,
|
|
314265
315147
|
default: defaultPrivateKey
|
|
@@ -314283,7 +315165,7 @@ async function ipfsPrompt({
|
|
|
314283
315165
|
envKey: "SETTLEMINT_IPFS",
|
|
314284
315166
|
isRequired,
|
|
314285
315167
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
314286
|
-
return
|
|
315168
|
+
return esm_default4({
|
|
314287
315169
|
message: "Which IPFS instance do you want to connect to?",
|
|
314288
315170
|
choices,
|
|
314289
315171
|
default: defaultStorage
|
|
@@ -314307,7 +315189,7 @@ async function minioPrompt({
|
|
|
314307
315189
|
envKey: "SETTLEMINT_MINIO",
|
|
314308
315190
|
isRequired,
|
|
314309
315191
|
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
314310
|
-
return
|
|
315192
|
+
return esm_default4({
|
|
314311
315193
|
message: "Which MinIO instance do you want to connect to?",
|
|
314312
315194
|
choices,
|
|
314313
315195
|
default: defaultStorage
|
|
@@ -314331,7 +315213,7 @@ async function portalPrompt({
|
|
|
314331
315213
|
envKey: "SETTLEMINT_PORTAL",
|
|
314332
315214
|
isRequired,
|
|
314333
315215
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
314334
|
-
return
|
|
315216
|
+
return esm_default4({
|
|
314335
315217
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
314336
315218
|
choices,
|
|
314337
315219
|
default: defaultMiddleware
|
|
@@ -314360,7 +315242,7 @@ async function theGraphPrompt({
|
|
|
314360
315242
|
isRequired,
|
|
314361
315243
|
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
314362
315244
|
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
|
|
314363
|
-
return
|
|
315245
|
+
return esm_default4({
|
|
314364
315246
|
message: "Which The Graph instance do you want to connect to?",
|
|
314365
315247
|
choices: filteredChoices,
|
|
314366
315248
|
default: defaultMiddleware
|
|
@@ -314388,7 +315270,7 @@ async function instancePrompt({
|
|
|
314388
315270
|
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
314389
315271
|
}
|
|
314390
315272
|
if (freeTextInput) {
|
|
314391
|
-
const instance = await
|
|
315273
|
+
const instance = await esm_default3({
|
|
314392
315274
|
message: "What is the URL of your SettleMint instance?",
|
|
314393
315275
|
default: defaultPromptInstance,
|
|
314394
315276
|
required: true,
|
|
@@ -314407,7 +315289,7 @@ async function instancePrompt({
|
|
|
314407
315289
|
if (knownInstances.length === 0) {
|
|
314408
315290
|
note("No instances found. Run `settlemint login` to configure an instance.", "warn");
|
|
314409
315291
|
}
|
|
314410
|
-
return
|
|
315292
|
+
return esm_default4({
|
|
314411
315293
|
message: "What instance do you want to connect to?",
|
|
314412
315294
|
choices: [
|
|
314413
315295
|
...knownInstances.map((instance) => ({
|
|
@@ -314443,7 +315325,7 @@ async function serviceSecretPrompt({
|
|
|
314443
315325
|
return defaultSecret;
|
|
314444
315326
|
}
|
|
314445
315327
|
if (defaultSecret) {
|
|
314446
|
-
const keep = await
|
|
315328
|
+
const keep = await esm_default5({
|
|
314447
315329
|
message: `Do you want to use the existing ${name4} secret?`,
|
|
314448
315330
|
default: true
|
|
314449
315331
|
});
|
|
@@ -314451,7 +315333,7 @@ async function serviceSecretPrompt({
|
|
|
314451
315333
|
return defaultSecret;
|
|
314452
315334
|
}
|
|
314453
315335
|
}
|
|
314454
|
-
const serviceSecret = await
|
|
315336
|
+
const serviceSecret = await esm_default6({
|
|
314455
315337
|
message
|
|
314456
315338
|
});
|
|
314457
315339
|
return serviceSecret || undefined;
|
|
@@ -314472,7 +315354,7 @@ async function serviceUrlPrompt({
|
|
|
314472
315354
|
if (isCi) {
|
|
314473
315355
|
return defaultUrl ? new URL(defaultUrl).toString() : undefined;
|
|
314474
315356
|
}
|
|
314475
|
-
const serviceUrl = await
|
|
315357
|
+
const serviceUrl = await esm_default3({
|
|
314476
315358
|
message: example ? `${message} (eg ${example})` : message,
|
|
314477
315359
|
default: defaultUrl,
|
|
314478
315360
|
required: true,
|
|
@@ -314503,7 +315385,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
314503
315385
|
if (is_in_ci_default) {
|
|
314504
315386
|
nothingSelectedError("workspace");
|
|
314505
315387
|
}
|
|
314506
|
-
const workspace = await
|
|
315388
|
+
const workspace = await esm_default4({
|
|
314507
315389
|
message: "Which workspace do you want to connect to?",
|
|
314508
315390
|
choices: workspaces.map((workspace2) => ({
|
|
314509
315391
|
name: `${workspace2.name} (${workspace2.uniqueName})`,
|
|
@@ -314907,7 +315789,7 @@ async function serviceValuePrompt({
|
|
|
314907
315789
|
if (isCi) {
|
|
314908
315790
|
return defaultValue;
|
|
314909
315791
|
}
|
|
314910
|
-
const serviceSecret = await
|
|
315792
|
+
const serviceSecret = await esm_default3({
|
|
314911
315793
|
message: example ? `${message} (eg ${example})` : message,
|
|
314912
315794
|
default: defaultValue
|
|
314913
315795
|
});
|
|
@@ -315345,7 +316227,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
|
315345
316227
|
}
|
|
315346
316228
|
return template2;
|
|
315347
316229
|
}
|
|
315348
|
-
const template = await
|
|
316230
|
+
const template = await esm_default4({
|
|
315349
316231
|
message: "Which template do you want to use?",
|
|
315350
316232
|
choices: [
|
|
315351
316233
|
...kits.map((template2) => ({
|
|
@@ -315363,7 +316245,7 @@ async function projectNamePrompt(env2, argument) {
|
|
|
315363
316245
|
if (defaultInstance) {
|
|
315364
316246
|
return defaultInstance;
|
|
315365
316247
|
}
|
|
315366
|
-
return
|
|
316248
|
+
return esm_default3({
|
|
315367
316249
|
message: "What is the name of your new SettleMint project?",
|
|
315368
316250
|
default: defaultInstance,
|
|
315369
316251
|
required: true,
|
|
@@ -315565,7 +316447,7 @@ var basename2 = function(p5, extension) {
|
|
|
315565
316447
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
315566
316448
|
};
|
|
315567
316449
|
// ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
315568
|
-
function
|
|
316450
|
+
function isPlainObject5(value5) {
|
|
315569
316451
|
if (value5 === null || typeof value5 !== "object") {
|
|
315570
316452
|
return false;
|
|
315571
316453
|
}
|
|
@@ -315582,7 +316464,7 @@ function isPlainObject4(value5) {
|
|
|
315582
316464
|
return true;
|
|
315583
316465
|
}
|
|
315584
316466
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
315585
|
-
if (!
|
|
316467
|
+
if (!isPlainObject5(defaults2)) {
|
|
315586
316468
|
return _defu(baseObject, {}, namespace, merger);
|
|
315587
316469
|
}
|
|
315588
316470
|
const object2 = Object.assign({}, defaults2);
|
|
@@ -315599,7 +316481,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
|
315599
316481
|
}
|
|
315600
316482
|
if (Array.isArray(value5) && Array.isArray(object2[key])) {
|
|
315601
316483
|
object2[key] = [...value5, ...object2[key]];
|
|
315602
|
-
} else if (
|
|
316484
|
+
} else if (isPlainObject5(value5) && isPlainObject5(object2[key])) {
|
|
315603
316485
|
object2[key] = _defu(value5, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
315604
316486
|
} else {
|
|
315605
316487
|
object2[key] = value5;
|
|
@@ -318630,7 +319512,7 @@ function createCommand2() {
|
|
|
318630
319512
|
await mkdir6(projectDir, { recursive: true });
|
|
318631
319513
|
}
|
|
318632
319514
|
if (!await isEmpty(projectDir)) {
|
|
318633
|
-
const confirmEmpty = await
|
|
319515
|
+
const confirmEmpty = await esm_default5({
|
|
318634
319516
|
message: `The folder ${projectDir} already exists. Do you want to empty it?`,
|
|
318635
319517
|
default: false
|
|
318636
319518
|
});
|
|
@@ -318883,7 +319765,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
318883
319765
|
return defaultPersonalAccessToken;
|
|
318884
319766
|
}
|
|
318885
319767
|
if (existingConfig && defaultPersonalAccessToken) {
|
|
318886
|
-
const useExisting = await
|
|
319768
|
+
const useExisting = await esm_default5({
|
|
318887
319769
|
message: `Do you want to use your existing personal access token for ${instance}?`,
|
|
318888
319770
|
default: true
|
|
318889
319771
|
});
|
|
@@ -318891,7 +319773,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
318891
319773
|
return defaultPersonalAccessToken;
|
|
318892
319774
|
}
|
|
318893
319775
|
}
|
|
318894
|
-
return
|
|
319776
|
+
return esm_default6({
|
|
318895
319777
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
318896
319778
|
validate(value5) {
|
|
318897
319779
|
try {
|
|
@@ -319017,7 +319899,7 @@ function logoutCommand() {
|
|
|
319017
319899
|
}
|
|
319018
319900
|
const env2 = await loadEnv(false, false);
|
|
319019
319901
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
319020
|
-
const instance = await
|
|
319902
|
+
const instance = await esm_default4({
|
|
319021
319903
|
message: "Select the instance to logout from:",
|
|
319022
319904
|
choices: instances.map((instance2) => ({
|
|
319023
319905
|
value: instance2,
|
|
@@ -319038,7 +319920,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
|
|
|
319038
319920
|
if (verificationChallenges.length === 1) {
|
|
319039
319921
|
return verificationChallenges[0];
|
|
319040
319922
|
}
|
|
319041
|
-
const verificationChallenge = await
|
|
319923
|
+
const verificationChallenge = await esm_default4({
|
|
319042
319924
|
message: "Which pincode verification do you want to use?",
|
|
319043
319925
|
choices: verificationChallenges.map((verificationChallenge2) => ({
|
|
319044
319926
|
name: verificationChallenge2.name,
|
|
@@ -319102,7 +319984,7 @@ function pincodeVerificationResponseCommand() {
|
|
|
319102
319984
|
nodeId: selectedBlockchainNode.id
|
|
319103
319985
|
});
|
|
319104
319986
|
const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
|
|
319105
|
-
const pincode = await
|
|
319987
|
+
const pincode = await esm_default6({
|
|
319106
319988
|
message: "Enter your pincode",
|
|
319107
319989
|
validate(value5) {
|
|
319108
319990
|
if (!value5.trim()) {
|
|
@@ -319255,7 +320137,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
|
319255
320137
|
if (possibleProviders.length === 1) {
|
|
319256
320138
|
return possibleProviders[0];
|
|
319257
320139
|
}
|
|
319258
|
-
const provider = await
|
|
320140
|
+
const provider = await esm_default4({
|
|
319259
320141
|
message: "Which provider do you want to use?",
|
|
319260
320142
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
|
319261
320143
|
name: target.name,
|
|
@@ -319286,7 +320168,7 @@ async function regionPrompt(provider, argument) {
|
|
|
319286
320168
|
if (possibleRegions.length === 1) {
|
|
319287
320169
|
return possibleRegions[0];
|
|
319288
320170
|
}
|
|
319289
|
-
const region = await
|
|
320171
|
+
const region = await esm_default4({
|
|
319290
320172
|
message: "Which region do you want to use?",
|
|
319291
320173
|
choices: provider.clusters.map((cluster) => ({
|
|
319292
320174
|
name: cluster.name,
|
|
@@ -319816,7 +320698,7 @@ async function blockchainNetworkPrompt({
|
|
|
319816
320698
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
319817
320699
|
isRequired,
|
|
319818
320700
|
defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
|
|
319819
|
-
return
|
|
320701
|
+
return esm_default4({
|
|
319820
320702
|
message: "Which blockchain network do you want to connect to?",
|
|
319821
320703
|
choices,
|
|
319822
320704
|
default: defaultNetwork
|
|
@@ -320721,7 +321603,7 @@ function createCommand3() {
|
|
|
320721
321603
|
|
|
320722
321604
|
// src/prompts/delete-confirmation.prompt.ts
|
|
320723
321605
|
async function deleteConfirmationPrompt(itemDescription) {
|
|
320724
|
-
const confirmation = await
|
|
321606
|
+
const confirmation = await esm_default3({
|
|
320725
321607
|
message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
|
|
320726
321608
|
required: true,
|
|
320727
321609
|
validate(value5) {
|
|
@@ -321581,7 +322463,7 @@ function jsonOutput(data) {
|
|
|
321581
322463
|
var composer = require_composer();
|
|
321582
322464
|
var Document = require_Document();
|
|
321583
322465
|
var Schema = require_Schema();
|
|
321584
|
-
var
|
|
322466
|
+
var errors5 = require_errors3();
|
|
321585
322467
|
var Alias = require_Alias();
|
|
321586
322468
|
var identity2 = require_identity();
|
|
321587
322469
|
var Pair = require_Pair();
|
|
@@ -321597,9 +322479,9 @@ var visit2 = require_visit();
|
|
|
321597
322479
|
var $Composer = composer.Composer;
|
|
321598
322480
|
var $Document = Document.Document;
|
|
321599
322481
|
var $Schema = Schema.Schema;
|
|
321600
|
-
var $YAMLError =
|
|
321601
|
-
var $YAMLParseError =
|
|
321602
|
-
var $YAMLWarning =
|
|
322482
|
+
var $YAMLError = errors5.YAMLError;
|
|
322483
|
+
var $YAMLParseError = errors5.YAMLParseError;
|
|
322484
|
+
var $YAMLWarning = errors5.YAMLWarning;
|
|
321603
322485
|
var $Alias = Alias.Alias;
|
|
321604
322486
|
var $isAlias = identity2.isAlias;
|
|
321605
322487
|
var $isCollection = identity2.isCollection;
|
|
@@ -322118,7 +323000,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
|
322118
323000
|
if (selectableUseCases.length === 1) {
|
|
322119
323001
|
return selectableUseCases[0];
|
|
322120
323002
|
}
|
|
322121
|
-
const useCase = await
|
|
323003
|
+
const useCase = await esm_default4({
|
|
322122
323004
|
message: "Which use case do you want to use?",
|
|
322123
323005
|
choices: selectableUseCases.map((useCase2) => ({
|
|
322124
323006
|
name: formatUseCaseName(useCase2.name),
|
|
@@ -322176,7 +323058,7 @@ function createCommand4() {
|
|
|
322176
323058
|
const targetDir = formatTargetDir(name4);
|
|
322177
323059
|
const projectDir = join10(process.cwd(), targetDir);
|
|
322178
323060
|
if (await exists3(projectDir) && !await isEmpty(projectDir)) {
|
|
322179
|
-
const confirmEmpty = await
|
|
323061
|
+
const confirmEmpty = await esm_default5({
|
|
322180
323062
|
message: `The folder ${projectDir} already exists. Do you want to delete it?`,
|
|
322181
323063
|
default: false
|
|
322182
323064
|
});
|
|
@@ -322489,7 +323371,7 @@ async function addressPrompt({
|
|
|
322489
323371
|
hardhatConfig
|
|
322490
323372
|
}) {
|
|
322491
323373
|
if (!node) {
|
|
322492
|
-
return
|
|
323374
|
+
return esm_default3({
|
|
322493
323375
|
message: "Which private key address do you want to deploy from?",
|
|
322494
323376
|
validate: (value5) => {
|
|
322495
323377
|
if (!isAddress(value5)) {
|
|
@@ -322509,7 +323391,7 @@ async function addressPrompt({
|
|
|
322509
323391
|
note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
|
|
322510
323392
|
Please select another key or activate this key on the node and try again.`, "warn");
|
|
322511
323393
|
}
|
|
322512
|
-
const address = await
|
|
323394
|
+
const address = await esm_default4({
|
|
322513
323395
|
message: "Which private key do you want to deploy from?",
|
|
322514
323396
|
choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
|
|
322515
323397
|
name: name4,
|
|
@@ -323460,4 +324342,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
323460
324342
|
// src/cli.ts
|
|
323461
324343
|
sdkCliCommand();
|
|
323462
324344
|
|
|
323463
|
-
//# debugId=
|
|
324345
|
+
//# debugId=D7BDC012103A528C64756E2164756E21
|