@settlemint/sdk-cli 2.6.4-pr5d528293 → 2.6.4-prb18a8132
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 +237 -251
- package/dist/cli.js.map +8 -8
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -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;
|
|
@@ -261866,11 +261866,8 @@ var {
|
|
|
261866
261866
|
} = import__.default;
|
|
261867
261867
|
|
|
261868
261868
|
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
261869
|
-
var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
261870
|
-
var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
261871
261869
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
261872
261870
|
var isTabKey = (key) => key.name === "tab";
|
|
261873
|
-
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
261874
261871
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
261875
261872
|
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
261876
261873
|
class AbortPromptError extends Error {
|
|
@@ -262404,22 +262401,11 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
262404
262401
|
const iconName = status === "loading" ? "idle" : status;
|
|
262405
262402
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
262406
262403
|
}
|
|
262407
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
262408
|
-
function useMemo(fn, dependencies) {
|
|
262409
|
-
return withPointer((pointer) => {
|
|
262410
|
-
const prev = pointer.get();
|
|
262411
|
-
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
|
|
262412
|
-
const value = fn();
|
|
262413
|
-
pointer.set({ value, dependencies });
|
|
262414
|
-
return value;
|
|
262415
|
-
}
|
|
262416
|
-
return prev.value;
|
|
262417
|
-
});
|
|
262418
|
-
}
|
|
262419
262404
|
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
262420
262405
|
function useRef(val) {
|
|
262421
262406
|
return useState({ current: val })[0];
|
|
262422
262407
|
}
|
|
262408
|
+
|
|
262423
262409
|
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
262424
262410
|
function useKeypress(userHandler) {
|
|
262425
262411
|
const signal = useRef(userHandler);
|
|
@@ -262451,72 +262437,6 @@ function readlineWidth() {
|
|
|
262451
262437
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
262452
262438
|
}
|
|
262453
262439
|
|
|
262454
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
262455
|
-
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
262456
|
-
const state = useRef({
|
|
262457
|
-
lastPointer: active,
|
|
262458
|
-
lastActive: undefined
|
|
262459
|
-
});
|
|
262460
|
-
const { lastPointer, lastActive } = state.current;
|
|
262461
|
-
const middle = Math.floor(pageSize / 2);
|
|
262462
|
-
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
262463
|
-
const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
|
|
262464
|
-
let pointer = defaultPointerPosition;
|
|
262465
|
-
if (renderedLength > pageSize) {
|
|
262466
|
-
if (loop) {
|
|
262467
|
-
pointer = lastPointer;
|
|
262468
|
-
if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
|
|
262469
|
-
pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
|
|
262470
|
-
}
|
|
262471
|
-
} else {
|
|
262472
|
-
const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
|
|
262473
|
-
pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
|
|
262474
|
-
}
|
|
262475
|
-
}
|
|
262476
|
-
state.current.lastPointer = pointer;
|
|
262477
|
-
state.current.lastActive = active;
|
|
262478
|
-
return pointer;
|
|
262479
|
-
}
|
|
262480
|
-
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
262481
|
-
const width = readlineWidth();
|
|
262482
|
-
const bound = (num) => (num % items.length + items.length) % items.length;
|
|
262483
|
-
const renderedItems = items.map((item, index) => {
|
|
262484
|
-
if (item == null)
|
|
262485
|
-
return [];
|
|
262486
|
-
return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
|
|
262487
|
-
`);
|
|
262488
|
-
});
|
|
262489
|
-
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
262490
|
-
const renderItemAtIndex = (index) => renderedItems[index] ?? [];
|
|
262491
|
-
const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
|
|
262492
|
-
const activeItem = renderItemAtIndex(active).slice(0, pageSize);
|
|
262493
|
-
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
262494
|
-
const pageBuffer = Array.from({ length: pageSize });
|
|
262495
|
-
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
262496
|
-
const itemVisited = new Set([active]);
|
|
262497
|
-
let bufferPointer = activeItemPosition + activeItem.length;
|
|
262498
|
-
let itemPointer = bound(active + 1);
|
|
262499
|
-
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
262500
|
-
const lines = renderItemAtIndex(itemPointer);
|
|
262501
|
-
const linesToAdd = lines.slice(0, pageSize - bufferPointer);
|
|
262502
|
-
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
|
262503
|
-
itemVisited.add(itemPointer);
|
|
262504
|
-
bufferPointer += linesToAdd.length;
|
|
262505
|
-
itemPointer = bound(itemPointer + 1);
|
|
262506
|
-
}
|
|
262507
|
-
bufferPointer = activeItemPosition - 1;
|
|
262508
|
-
itemPointer = bound(active - 1);
|
|
262509
|
-
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
|
262510
|
-
const lines = renderItemAtIndex(itemPointer);
|
|
262511
|
-
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
|
262512
|
-
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
|
262513
|
-
itemVisited.add(itemPointer);
|
|
262514
|
-
bufferPointer -= linesToAdd.length;
|
|
262515
|
-
itemPointer = bound(itemPointer - 1);
|
|
262516
|
-
}
|
|
262517
|
-
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
262518
|
-
`);
|
|
262519
|
-
}
|
|
262520
262440
|
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
262521
262441
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
262522
262442
|
import * as readline2 from "node:readline";
|
|
@@ -262913,20 +262833,6 @@ function createPrompt(view) {
|
|
|
262913
262833
|
};
|
|
262914
262834
|
return prompt;
|
|
262915
262835
|
}
|
|
262916
|
-
// ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
262917
|
-
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
262918
|
-
class Separator {
|
|
262919
|
-
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
262920
|
-
type = "separator";
|
|
262921
|
-
constructor(separator) {
|
|
262922
|
-
if (separator) {
|
|
262923
|
-
this.separator = separator;
|
|
262924
|
-
}
|
|
262925
|
-
}
|
|
262926
|
-
static isSeparator(choice) {
|
|
262927
|
-
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
|
262928
|
-
}
|
|
262929
|
-
}
|
|
262930
262836
|
// ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
|
|
262931
262837
|
var exports_base = {};
|
|
262932
262838
|
__export(exports_base, {
|
|
@@ -282184,7 +282090,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
282184
282090
|
var package_default = {
|
|
282185
282091
|
name: "@settlemint/sdk-cli",
|
|
282186
282092
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
282187
|
-
version: "2.6.4-
|
|
282093
|
+
version: "2.6.4-prb18a8132",
|
|
282188
282094
|
type: "module",
|
|
282189
282095
|
private: false,
|
|
282190
282096
|
license: "FSL-1.1-MIT",
|
|
@@ -282235,13 +282141,13 @@ var package_default = {
|
|
|
282235
282141
|
"@commander-js/extra-typings": "14.0.0",
|
|
282236
282142
|
commander: "14.0.2",
|
|
282237
282143
|
"@inquirer/confirm": "5.1.19",
|
|
282238
|
-
"@inquirer/input": "4.
|
|
282144
|
+
"@inquirer/input": "4.2.5",
|
|
282239
282145
|
"@inquirer/password": "4.0.21",
|
|
282240
|
-
"@inquirer/select": "4.4.
|
|
282241
|
-
"@settlemint/sdk-hasura": "2.6.4-
|
|
282242
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
282243
|
-
"@settlemint/sdk-utils": "2.6.4-
|
|
282244
|
-
"@settlemint/sdk-viem": "2.6.4-
|
|
282146
|
+
"@inquirer/select": "4.4.1",
|
|
282147
|
+
"@settlemint/sdk-hasura": "2.6.4-prb18a8132",
|
|
282148
|
+
"@settlemint/sdk-js": "2.6.4-prb18a8132",
|
|
282149
|
+
"@settlemint/sdk-utils": "2.6.4-prb18a8132",
|
|
282150
|
+
"@settlemint/sdk-viem": "2.6.4-prb18a8132",
|
|
282245
282151
|
"@types/node": "24.10.0",
|
|
282246
282152
|
"@types/semver": "7.7.1",
|
|
282247
282153
|
"@types/which": "3.0.4",
|
|
@@ -282258,7 +282164,7 @@ var package_default = {
|
|
|
282258
282164
|
},
|
|
282259
282165
|
peerDependencies: {
|
|
282260
282166
|
hardhat: "<= 4",
|
|
282261
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
282167
|
+
"@settlemint/sdk-js": "2.6.4-prb18a8132"
|
|
282262
282168
|
},
|
|
282263
282169
|
peerDependenciesMeta: {
|
|
282264
282170
|
hardhat: {
|
|
@@ -288155,9 +288061,101 @@ function sanitizeName(value5, length = 35) {
|
|
|
288155
288061
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
288156
288062
|
}
|
|
288157
288063
|
|
|
288064
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
|
|
288065
|
+
var inputTheme = {
|
|
288066
|
+
validationFailureMode: "keep"
|
|
288067
|
+
};
|
|
288068
|
+
var esm_default2 = createPrompt((config3, done) => {
|
|
288069
|
+
const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
|
|
288070
|
+
const theme = makeTheme(inputTheme, config3.theme);
|
|
288071
|
+
const [status, setStatus] = useState("idle");
|
|
288072
|
+
const [defaultValue = "", setDefaultValue] = useState(config3.default);
|
|
288073
|
+
const [errorMsg, setError] = useState();
|
|
288074
|
+
const [value5, setValue] = useState("");
|
|
288075
|
+
const prefix = usePrefix({ status, theme });
|
|
288076
|
+
useKeypress(async (key, rl) => {
|
|
288077
|
+
if (status !== "idle") {
|
|
288078
|
+
return;
|
|
288079
|
+
}
|
|
288080
|
+
if (isEnterKey(key)) {
|
|
288081
|
+
const answer = value5 || defaultValue;
|
|
288082
|
+
setStatus("loading");
|
|
288083
|
+
const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
|
|
288084
|
+
if (isValid === true) {
|
|
288085
|
+
setValue(answer);
|
|
288086
|
+
setStatus("done");
|
|
288087
|
+
done(answer);
|
|
288088
|
+
} else {
|
|
288089
|
+
if (theme.validationFailureMode === "clear") {
|
|
288090
|
+
setValue("");
|
|
288091
|
+
} else {
|
|
288092
|
+
rl.write(value5);
|
|
288093
|
+
}
|
|
288094
|
+
setError(isValid || "You must provide a valid value");
|
|
288095
|
+
setStatus("idle");
|
|
288096
|
+
}
|
|
288097
|
+
} else if (isBackspaceKey(key) && !value5) {
|
|
288098
|
+
setDefaultValue(undefined);
|
|
288099
|
+
} else if (isTabKey(key) && !value5) {
|
|
288100
|
+
setDefaultValue(undefined);
|
|
288101
|
+
rl.clearLine(0);
|
|
288102
|
+
rl.write(defaultValue);
|
|
288103
|
+
setValue(defaultValue);
|
|
288104
|
+
} else {
|
|
288105
|
+
setValue(rl.line);
|
|
288106
|
+
setError(undefined);
|
|
288107
|
+
}
|
|
288108
|
+
});
|
|
288109
|
+
useEffect((rl) => {
|
|
288110
|
+
if (prefill === "editable" && defaultValue) {
|
|
288111
|
+
rl.write(defaultValue);
|
|
288112
|
+
setValue(defaultValue);
|
|
288113
|
+
}
|
|
288114
|
+
}, []);
|
|
288115
|
+
const message = theme.style.message(config3.message, status);
|
|
288116
|
+
let formattedValue = value5;
|
|
288117
|
+
if (typeof config3.transformer === "function") {
|
|
288118
|
+
formattedValue = config3.transformer(value5, { isFinal: status === "done" });
|
|
288119
|
+
} else if (status === "done") {
|
|
288120
|
+
formattedValue = theme.style.answer(value5);
|
|
288121
|
+
}
|
|
288122
|
+
let defaultStr;
|
|
288123
|
+
if (defaultValue && status !== "done" && !value5) {
|
|
288124
|
+
defaultStr = theme.style.defaultAnswer(defaultValue);
|
|
288125
|
+
}
|
|
288126
|
+
let error51 = "";
|
|
288127
|
+
if (errorMsg) {
|
|
288128
|
+
error51 = theme.style.error(errorMsg);
|
|
288129
|
+
}
|
|
288130
|
+
return [
|
|
288131
|
+
[prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
|
|
288132
|
+
error51
|
|
288133
|
+
];
|
|
288134
|
+
});
|
|
288135
|
+
|
|
288136
|
+
// src/prompts/smart-contract-set/subgraph-name.prompt.ts
|
|
288137
|
+
async function subgraphNamePrompt({
|
|
288138
|
+
defaultName,
|
|
288139
|
+
env: env2,
|
|
288140
|
+
accept
|
|
288141
|
+
}) {
|
|
288142
|
+
const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
|
|
288143
|
+
if (accept) {
|
|
288144
|
+
return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
|
|
288145
|
+
}
|
|
288146
|
+
const subgraphName = await esm_default2({
|
|
288147
|
+
message: "What is the name of your subgraph?",
|
|
288148
|
+
default: defaultSubgraphName,
|
|
288149
|
+
required: true
|
|
288150
|
+
});
|
|
288151
|
+
return sanitizeName(subgraphName);
|
|
288152
|
+
}
|
|
288153
|
+
|
|
288158
288154
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
288155
|
+
var isUpKey2 = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
288156
|
+
var isDownKey2 = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
|
|
288159
288157
|
var isBackspaceKey2 = (key) => key.name === "backspace";
|
|
288160
|
-
var
|
|
288158
|
+
var isNumberKey2 = (key) => "1234567890".includes(key.name);
|
|
288161
288159
|
var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
|
|
288162
288160
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
288163
288161
|
class AbortPromptError2 extends Error {
|
|
@@ -288324,7 +288322,7 @@ function useEffect2(cb, depArray) {
|
|
|
288324
288322
|
}
|
|
288325
288323
|
|
|
288326
288324
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
288327
|
-
var
|
|
288325
|
+
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
288328
288326
|
|
|
288329
288327
|
// ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
|
|
288330
288328
|
import process8 from "node:process";
|
|
@@ -288612,27 +288610,27 @@ var fallbackSymbols2 = {
|
|
|
288612
288610
|
};
|
|
288613
288611
|
var shouldUseMain2 = isUnicodeSupported3();
|
|
288614
288612
|
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
288615
|
-
var
|
|
288613
|
+
var esm_default3 = figures2;
|
|
288616
288614
|
var replacements2 = Object.entries(specialMainSymbols2);
|
|
288617
288615
|
|
|
288618
288616
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
288619
288617
|
var defaultTheme2 = {
|
|
288620
288618
|
prefix: {
|
|
288621
|
-
idle:
|
|
288622
|
-
done:
|
|
288619
|
+
idle: import_yoctocolors_cjs2.default.blue("?"),
|
|
288620
|
+
done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
|
|
288623
288621
|
},
|
|
288624
288622
|
spinner: {
|
|
288625
288623
|
interval: 80,
|
|
288626
|
-
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) =>
|
|
288624
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
|
|
288627
288625
|
},
|
|
288628
288626
|
style: {
|
|
288629
|
-
answer:
|
|
288630
|
-
message:
|
|
288631
|
-
error: (text2) =>
|
|
288632
|
-
defaultAnswer: (text2) =>
|
|
288633
|
-
help:
|
|
288634
|
-
highlight:
|
|
288635
|
-
key: (text2) =>
|
|
288627
|
+
answer: import_yoctocolors_cjs2.default.cyan,
|
|
288628
|
+
message: import_yoctocolors_cjs2.default.bold,
|
|
288629
|
+
error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
|
|
288630
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
|
|
288631
|
+
help: import_yoctocolors_cjs2.default.dim,
|
|
288632
|
+
highlight: import_yoctocolors_cjs2.default.cyan,
|
|
288633
|
+
key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
|
|
288636
288634
|
}
|
|
288637
288635
|
};
|
|
288638
288636
|
|
|
@@ -288694,11 +288692,22 @@ function usePrefix2({ status = "idle", theme }) {
|
|
|
288694
288692
|
const iconName = status === "loading" ? "idle" : status;
|
|
288695
288693
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
288696
288694
|
}
|
|
288695
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
288696
|
+
function useMemo(fn, dependencies) {
|
|
288697
|
+
return withPointer2((pointer) => {
|
|
288698
|
+
const prev = pointer.get();
|
|
288699
|
+
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
|
|
288700
|
+
const value5 = fn();
|
|
288701
|
+
pointer.set({ value: value5, dependencies });
|
|
288702
|
+
return value5;
|
|
288703
|
+
}
|
|
288704
|
+
return prev.value;
|
|
288705
|
+
});
|
|
288706
|
+
}
|
|
288697
288707
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
288698
288708
|
function useRef2(val) {
|
|
288699
288709
|
return useState2({ current: val })[0];
|
|
288700
288710
|
}
|
|
288701
|
-
|
|
288702
288711
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
288703
288712
|
function useKeypress2(userHandler) {
|
|
288704
288713
|
const signal = useRef2(userHandler);
|
|
@@ -288730,6 +288739,72 @@ function readlineWidth2() {
|
|
|
288730
288739
|
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
288731
288740
|
}
|
|
288732
288741
|
|
|
288742
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
288743
|
+
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
288744
|
+
const state = useRef2({
|
|
288745
|
+
lastPointer: active,
|
|
288746
|
+
lastActive: undefined
|
|
288747
|
+
});
|
|
288748
|
+
const { lastPointer, lastActive } = state.current;
|
|
288749
|
+
const middle = Math.floor(pageSize / 2);
|
|
288750
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
288751
|
+
const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
|
|
288752
|
+
let pointer = defaultPointerPosition;
|
|
288753
|
+
if (renderedLength > pageSize) {
|
|
288754
|
+
if (loop) {
|
|
288755
|
+
pointer = lastPointer;
|
|
288756
|
+
if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
|
|
288757
|
+
pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
|
|
288758
|
+
}
|
|
288759
|
+
} else {
|
|
288760
|
+
const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
|
|
288761
|
+
pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
|
|
288762
|
+
}
|
|
288763
|
+
}
|
|
288764
|
+
state.current.lastPointer = pointer;
|
|
288765
|
+
state.current.lastActive = active;
|
|
288766
|
+
return pointer;
|
|
288767
|
+
}
|
|
288768
|
+
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
288769
|
+
const width = readlineWidth2();
|
|
288770
|
+
const bound = (num) => (num % items.length + items.length) % items.length;
|
|
288771
|
+
const renderedItems = items.map((item, index) => {
|
|
288772
|
+
if (item == null)
|
|
288773
|
+
return [];
|
|
288774
|
+
return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
|
|
288775
|
+
`);
|
|
288776
|
+
});
|
|
288777
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
288778
|
+
const renderItemAtIndex = (index) => renderedItems[index] ?? [];
|
|
288779
|
+
const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
|
|
288780
|
+
const activeItem = renderItemAtIndex(active).slice(0, pageSize);
|
|
288781
|
+
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
288782
|
+
const pageBuffer = Array.from({ length: pageSize });
|
|
288783
|
+
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
288784
|
+
const itemVisited = new Set([active]);
|
|
288785
|
+
let bufferPointer = activeItemPosition + activeItem.length;
|
|
288786
|
+
let itemPointer = bound(active + 1);
|
|
288787
|
+
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
288788
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
288789
|
+
const linesToAdd = lines.slice(0, pageSize - bufferPointer);
|
|
288790
|
+
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
|
288791
|
+
itemVisited.add(itemPointer);
|
|
288792
|
+
bufferPointer += linesToAdd.length;
|
|
288793
|
+
itemPointer = bound(itemPointer + 1);
|
|
288794
|
+
}
|
|
288795
|
+
bufferPointer = activeItemPosition - 1;
|
|
288796
|
+
itemPointer = bound(active - 1);
|
|
288797
|
+
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
|
288798
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
288799
|
+
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
|
288800
|
+
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
|
288801
|
+
itemVisited.add(itemPointer);
|
|
288802
|
+
bufferPointer -= linesToAdd.length;
|
|
288803
|
+
itemPointer = bound(itemPointer - 1);
|
|
288804
|
+
}
|
|
288805
|
+
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
288806
|
+
`);
|
|
288807
|
+
}
|
|
288733
288808
|
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
288734
288809
|
var import_mute_stream2 = __toESM(require_lib13(), 1);
|
|
288735
288810
|
import * as readline4 from "node:readline";
|
|
@@ -288918,113 +288993,24 @@ function createPrompt2(view) {
|
|
|
288918
288993
|
};
|
|
288919
288994
|
return prompt;
|
|
288920
288995
|
}
|
|
288921
|
-
// ../../node_modules/.bun/@inquirer+
|
|
288922
|
-
var
|
|
288923
|
-
|
|
288924
|
-
};
|
|
288925
|
-
|
|
288926
|
-
|
|
288927
|
-
|
|
288928
|
-
|
|
288929
|
-
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
|
288930
|
-
const [errorMsg, setError] = useState2();
|
|
288931
|
-
const [value5, setValue] = useState2("");
|
|
288932
|
-
const prefix = usePrefix2({ status, theme });
|
|
288933
|
-
async function validate3(value6) {
|
|
288934
|
-
const { required: required2, pattern, patternError = "Invalid input" } = config3;
|
|
288935
|
-
if (required2 && !value6) {
|
|
288936
|
-
return "You must provide a value";
|
|
288937
|
-
}
|
|
288938
|
-
if (pattern && !pattern.test(value6)) {
|
|
288939
|
-
return patternError;
|
|
288940
|
-
}
|
|
288941
|
-
if (typeof config3.validate === "function") {
|
|
288942
|
-
return await config3.validate(value6) || "You must provide a valid value";
|
|
288943
|
-
}
|
|
288944
|
-
return true;
|
|
288945
|
-
}
|
|
288946
|
-
useKeypress2(async (key, rl) => {
|
|
288947
|
-
if (status !== "idle") {
|
|
288948
|
-
return;
|
|
288949
|
-
}
|
|
288950
|
-
if (isEnterKey2(key)) {
|
|
288951
|
-
const answer = value5 || defaultValue;
|
|
288952
|
-
setStatus("loading");
|
|
288953
|
-
const isValid = await validate3(answer);
|
|
288954
|
-
if (isValid === true) {
|
|
288955
|
-
setValue(answer);
|
|
288956
|
-
setStatus("done");
|
|
288957
|
-
done(answer);
|
|
288958
|
-
} else {
|
|
288959
|
-
if (theme.validationFailureMode === "clear") {
|
|
288960
|
-
setValue("");
|
|
288961
|
-
} else {
|
|
288962
|
-
rl.write(value5);
|
|
288963
|
-
}
|
|
288964
|
-
setError(isValid);
|
|
288965
|
-
setStatus("idle");
|
|
288966
|
-
}
|
|
288967
|
-
} else if (isBackspaceKey2(key) && !value5) {
|
|
288968
|
-
setDefaultValue(undefined);
|
|
288969
|
-
} else if (isTabKey2(key) && !value5) {
|
|
288970
|
-
setDefaultValue(undefined);
|
|
288971
|
-
rl.clearLine(0);
|
|
288972
|
-
rl.write(defaultValue);
|
|
288973
|
-
setValue(defaultValue);
|
|
288974
|
-
} else {
|
|
288975
|
-
setValue(rl.line);
|
|
288976
|
-
setError(undefined);
|
|
288977
|
-
}
|
|
288978
|
-
});
|
|
288979
|
-
useEffect2((rl) => {
|
|
288980
|
-
if (prefill === "editable" && defaultValue) {
|
|
288981
|
-
rl.write(defaultValue);
|
|
288982
|
-
setValue(defaultValue);
|
|
288996
|
+
// ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
288997
|
+
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
288998
|
+
class Separator {
|
|
288999
|
+
separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
|
|
289000
|
+
type = "separator";
|
|
289001
|
+
constructor(separator) {
|
|
289002
|
+
if (separator) {
|
|
289003
|
+
this.separator = separator;
|
|
288983
289004
|
}
|
|
288984
|
-
}, []);
|
|
288985
|
-
const message = theme.style.message(config3.message, status);
|
|
288986
|
-
let formattedValue = value5;
|
|
288987
|
-
if (typeof config3.transformer === "function") {
|
|
288988
|
-
formattedValue = config3.transformer(value5, { isFinal: status === "done" });
|
|
288989
|
-
} else if (status === "done") {
|
|
288990
|
-
formattedValue = theme.style.answer(value5);
|
|
288991
|
-
}
|
|
288992
|
-
let defaultStr;
|
|
288993
|
-
if (defaultValue && status !== "done" && !value5) {
|
|
288994
|
-
defaultStr = theme.style.defaultAnswer(defaultValue);
|
|
288995
|
-
}
|
|
288996
|
-
let error51 = "";
|
|
288997
|
-
if (errorMsg) {
|
|
288998
|
-
error51 = theme.style.error(errorMsg);
|
|
288999
289005
|
}
|
|
289000
|
-
|
|
289001
|
-
|
|
289002
|
-
error51
|
|
289003
|
-
];
|
|
289004
|
-
});
|
|
289005
|
-
|
|
289006
|
-
// src/prompts/smart-contract-set/subgraph-name.prompt.ts
|
|
289007
|
-
async function subgraphNamePrompt({
|
|
289008
|
-
defaultName,
|
|
289009
|
-
env: env2,
|
|
289010
|
-
accept
|
|
289011
|
-
}) {
|
|
289012
|
-
const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
|
|
289013
|
-
if (accept) {
|
|
289014
|
-
return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
|
|
289006
|
+
static isSeparator(choice) {
|
|
289007
|
+
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
|
289015
289008
|
}
|
|
289016
|
-
const subgraphName = await esm_default3({
|
|
289017
|
-
message: "What is the name of your subgraph?",
|
|
289018
|
-
default: defaultSubgraphName,
|
|
289019
|
-
required: true
|
|
289020
|
-
});
|
|
289021
|
-
return sanitizeName(subgraphName);
|
|
289022
289009
|
}
|
|
289023
|
-
|
|
289024
|
-
// ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
|
|
289010
|
+
// ../../node_modules/.bun/@inquirer+select@4.4.1+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
|
|
289025
289011
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
289026
289012
|
var selectTheme = {
|
|
289027
|
-
icon: { cursor:
|
|
289013
|
+
icon: { cursor: esm_default3.pointer },
|
|
289028
289014
|
style: {
|
|
289029
289015
|
disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
|
|
289030
289016
|
description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
|
|
@@ -289062,20 +289048,20 @@ function normalizeChoices(choices) {
|
|
|
289062
289048
|
return normalizedChoice;
|
|
289063
289049
|
});
|
|
289064
289050
|
}
|
|
289065
|
-
var esm_default4 =
|
|
289051
|
+
var esm_default4 = createPrompt2((config3, done) => {
|
|
289066
289052
|
const { loop = true, pageSize = 7 } = config3;
|
|
289067
|
-
const theme =
|
|
289053
|
+
const theme = makeTheme2(selectTheme, config3.theme);
|
|
289068
289054
|
const { keybindings } = theme;
|
|
289069
|
-
const [status, setStatus] =
|
|
289070
|
-
const prefix =
|
|
289071
|
-
const searchTimeoutRef =
|
|
289055
|
+
const [status, setStatus] = useState2("idle");
|
|
289056
|
+
const prefix = usePrefix2({ status, theme });
|
|
289057
|
+
const searchTimeoutRef = useRef2();
|
|
289072
289058
|
const searchEnabled = !keybindings.includes("vim");
|
|
289073
289059
|
const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
|
|
289074
289060
|
const bounds = useMemo(() => {
|
|
289075
289061
|
const first = items.findIndex(isSelectable);
|
|
289076
289062
|
const last = items.findLastIndex(isSelectable);
|
|
289077
289063
|
if (first === -1) {
|
|
289078
|
-
throw new
|
|
289064
|
+
throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
|
|
289079
289065
|
}
|
|
289080
289066
|
return { first, last };
|
|
289081
289067
|
}, [items]);
|
|
@@ -289084,24 +289070,24 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
289084
289070
|
return -1;
|
|
289085
289071
|
return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
|
|
289086
289072
|
}, [config3.default, items]);
|
|
289087
|
-
const [active, setActive] =
|
|
289073
|
+
const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
|
289088
289074
|
const selectedChoice = items[active];
|
|
289089
|
-
|
|
289075
|
+
useKeypress2((key, rl) => {
|
|
289090
289076
|
clearTimeout(searchTimeoutRef.current);
|
|
289091
|
-
if (
|
|
289077
|
+
if (isEnterKey2(key)) {
|
|
289092
289078
|
setStatus("done");
|
|
289093
289079
|
done(selectedChoice.value);
|
|
289094
|
-
} else if (
|
|
289080
|
+
} else if (isUpKey2(key, keybindings) || isDownKey2(key, keybindings)) {
|
|
289095
289081
|
rl.clearLine(0);
|
|
289096
|
-
if (loop ||
|
|
289097
|
-
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;
|
|
289098
289084
|
let next = active;
|
|
289099
289085
|
do {
|
|
289100
289086
|
next = (next + offset + items.length) % items.length;
|
|
289101
289087
|
} while (!isSelectable(items[next]));
|
|
289102
289088
|
setActive(next);
|
|
289103
289089
|
}
|
|
289104
|
-
} else if (
|
|
289090
|
+
} else if (isNumberKey2(key) && !Number.isNaN(Number(rl.line))) {
|
|
289105
289091
|
const selectedIndex = Number(rl.line) - 1;
|
|
289106
289092
|
let selectableIndex = -1;
|
|
289107
289093
|
const position = items.findIndex((item2) => {
|
|
@@ -289117,7 +289103,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
289117
289103
|
searchTimeoutRef.current = setTimeout(() => {
|
|
289118
289104
|
rl.clearLine(0);
|
|
289119
289105
|
}, 700);
|
|
289120
|
-
} else if (
|
|
289106
|
+
} else if (isBackspaceKey2(key)) {
|
|
289121
289107
|
rl.clearLine(0);
|
|
289122
289108
|
} else if (searchEnabled) {
|
|
289123
289109
|
const searchTerm = rl.line.toLowerCase();
|
|
@@ -289134,7 +289120,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
289134
289120
|
}, 700);
|
|
289135
289121
|
}
|
|
289136
289122
|
});
|
|
289137
|
-
|
|
289123
|
+
useEffect2(() => () => {
|
|
289138
289124
|
clearTimeout(searchTimeoutRef.current);
|
|
289139
289125
|
}, []);
|
|
289140
289126
|
const message = theme.style.message(config3.message, status);
|
|
@@ -289183,7 +289169,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
289183
289169
|
helpLine
|
|
289184
289170
|
].filter(Boolean).join(`
|
|
289185
289171
|
`).trimEnd();
|
|
289186
|
-
return `${lines}${
|
|
289172
|
+
return `${lines}${cursorHide2}`;
|
|
289187
289173
|
});
|
|
289188
289174
|
|
|
289189
289175
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
|
@@ -314818,7 +314804,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
314818
314804
|
default: false
|
|
314819
314805
|
});
|
|
314820
314806
|
if (create3) {
|
|
314821
|
-
const name4 = await
|
|
314807
|
+
const name4 = await esm_default2({
|
|
314822
314808
|
message: "How would you like to name this application access token?",
|
|
314823
314809
|
default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
|
|
314824
314810
|
required: true,
|
|
@@ -315284,7 +315270,7 @@ async function instancePrompt({
|
|
|
315284
315270
|
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
315285
315271
|
}
|
|
315286
315272
|
if (freeTextInput) {
|
|
315287
|
-
const instance = await
|
|
315273
|
+
const instance = await esm_default2({
|
|
315288
315274
|
message: "What is the URL of your SettleMint instance?",
|
|
315289
315275
|
default: defaultPromptInstance,
|
|
315290
315276
|
required: true,
|
|
@@ -315368,7 +315354,7 @@ async function serviceUrlPrompt({
|
|
|
315368
315354
|
if (isCi) {
|
|
315369
315355
|
return defaultUrl ? new URL(defaultUrl).toString() : undefined;
|
|
315370
315356
|
}
|
|
315371
|
-
const serviceUrl = await
|
|
315357
|
+
const serviceUrl = await esm_default2({
|
|
315372
315358
|
message: example ? `${message} (eg ${example})` : message,
|
|
315373
315359
|
default: defaultUrl,
|
|
315374
315360
|
required: true,
|
|
@@ -315803,7 +315789,7 @@ async function serviceValuePrompt({
|
|
|
315803
315789
|
if (isCi) {
|
|
315804
315790
|
return defaultValue;
|
|
315805
315791
|
}
|
|
315806
|
-
const serviceSecret = await
|
|
315792
|
+
const serviceSecret = await esm_default2({
|
|
315807
315793
|
message: example ? `${message} (eg ${example})` : message,
|
|
315808
315794
|
default: defaultValue
|
|
315809
315795
|
});
|
|
@@ -316259,7 +316245,7 @@ async function projectNamePrompt(env2, argument) {
|
|
|
316259
316245
|
if (defaultInstance) {
|
|
316260
316246
|
return defaultInstance;
|
|
316261
316247
|
}
|
|
316262
|
-
return
|
|
316248
|
+
return esm_default2({
|
|
316263
316249
|
message: "What is the name of your new SettleMint project?",
|
|
316264
316250
|
default: defaultInstance,
|
|
316265
316251
|
required: true,
|
|
@@ -321617,7 +321603,7 @@ function createCommand3() {
|
|
|
321617
321603
|
|
|
321618
321604
|
// src/prompts/delete-confirmation.prompt.ts
|
|
321619
321605
|
async function deleteConfirmationPrompt(itemDescription) {
|
|
321620
|
-
const confirmation = await
|
|
321606
|
+
const confirmation = await esm_default2({
|
|
321621
321607
|
message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
|
|
321622
321608
|
required: true,
|
|
321623
321609
|
validate(value5) {
|
|
@@ -323385,7 +323371,7 @@ async function addressPrompt({
|
|
|
323385
323371
|
hardhatConfig
|
|
323386
323372
|
}) {
|
|
323387
323373
|
if (!node) {
|
|
323388
|
-
return
|
|
323374
|
+
return esm_default2({
|
|
323389
323375
|
message: "Which private key address do you want to deploy from?",
|
|
323390
323376
|
validate: (value5) => {
|
|
323391
323377
|
if (!isAddress(value5)) {
|
|
@@ -324356,4 +324342,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
324356
324342
|
// src/cli.ts
|
|
324357
324343
|
sdkCliCommand();
|
|
324358
324344
|
|
|
324359
|
-
//# debugId=
|
|
324345
|
+
//# debugId=30BFA0EF8622593964756E2164756E21
|