@settlemint/sdk-cli 1.1.12-pr3e7d0600 → 1.1.12-pr9071b5b9
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 +16 -16
- package/dist/cli.js.map +5 -5
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -266997,7 +266997,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
266997
266997
|
var package_default = {
|
266998
266998
|
name: "@settlemint/sdk-cli",
|
266999
266999
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
267000
|
-
version: "1.1.12-
|
267000
|
+
version: "1.1.12-pr9071b5b9",
|
267001
267001
|
type: "module",
|
267002
267002
|
private: false,
|
267003
267003
|
license: "FSL-1.1-MIT",
|
@@ -267045,8 +267045,8 @@ var package_default = {
|
|
267045
267045
|
"@inquirer/input": "4.1.6",
|
267046
267046
|
"@inquirer/password": "4.0.9",
|
267047
267047
|
"@inquirer/select": "4.0.9",
|
267048
|
-
"@settlemint/sdk-js": "1.1.12-
|
267049
|
-
"@settlemint/sdk-utils": "1.1.12-
|
267048
|
+
"@settlemint/sdk-js": "1.1.12-pr9071b5b9",
|
267049
|
+
"@settlemint/sdk-utils": "1.1.12-pr9071b5b9",
|
267050
267050
|
"@types/node": "22.13.9",
|
267051
267051
|
"@types/semver": "7.5.8",
|
267052
267052
|
"@types/which": "3.0.4",
|
@@ -273841,21 +273841,21 @@ async function projectNamePrompt(env2, argument) {
|
|
273841
273841
|
|
273842
273842
|
// src/utils/platform-utils.ts
|
273843
273843
|
function getUseCases(platformConfig) {
|
273844
|
-
return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged
|
273844
|
+
return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged);
|
273845
273845
|
}
|
273846
|
-
function
|
273847
|
-
return platformConfig.
|
273846
|
+
function getKits(platformConfig) {
|
273847
|
+
return platformConfig.kits ?? [];
|
273848
273848
|
}
|
273849
273849
|
|
273850
273850
|
// src/prompts/starter-kit/template.prompt.ts
|
273851
273851
|
async function templatePrompt(platformConfig, argument) {
|
273852
|
-
const
|
273853
|
-
if (
|
273852
|
+
const kits = getKits(platformConfig);
|
273853
|
+
if (kits.length === 0) {
|
273854
273854
|
cancel2("No templates found");
|
273855
273855
|
}
|
273856
273856
|
const defaultInstance = argument;
|
273857
273857
|
if (defaultInstance) {
|
273858
|
-
const template2 =
|
273858
|
+
const template2 = kits.find((kit) => kit.id === argument);
|
273859
273859
|
if (!template2) {
|
273860
273860
|
cancel2(`No template found with name '${argument}'`);
|
273861
273861
|
}
|
@@ -273864,7 +273864,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
273864
273864
|
const template = await esm_default2({
|
273865
273865
|
message: "Which template do you want to use?",
|
273866
273866
|
choices: [
|
273867
|
-
...
|
273867
|
+
...kits.map((template2) => ({
|
273868
273868
|
name: template2.name,
|
273869
273869
|
value: template2.id
|
273870
273870
|
})).sort((a7, b4) => a7.name.localeCompare(b4.name))
|
@@ -279127,15 +279127,15 @@ function configCommand() {
|
|
279127
279127
|
});
|
279128
279128
|
const platformConfig = await settlemint.platform.config();
|
279129
279129
|
const useCases = getUseCases(platformConfig);
|
279130
|
-
const
|
279130
|
+
const kits = getKits(platformConfig);
|
279131
279131
|
const platformConfigData = {
|
279132
279132
|
useCases: useCases.map((useCase) => ({
|
279133
279133
|
id: useCase.id,
|
279134
279134
|
name: useCase.name
|
279135
279135
|
})).sort((a8, b4) => a8.name.localeCompare(b4.name)),
|
279136
|
-
|
279137
|
-
id:
|
279138
|
-
name:
|
279136
|
+
kits: kits.map((kit) => ({
|
279137
|
+
id: kit.id,
|
279138
|
+
name: kit.name
|
279139
279139
|
})).sort((a8, b4) => a8.name.localeCompare(b4.name)),
|
279140
279140
|
deploymentEngineTargets: platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
|
279141
279141
|
providerId: provider.id,
|
@@ -279146,7 +279146,7 @@ function configCommand() {
|
|
279146
279146
|
preDeployedContracts: platformConfig.preDeployedContracts.sort()
|
279147
279147
|
};
|
279148
279148
|
if (printToTerminal) {
|
279149
|
-
table("Templates (
|
279149
|
+
table("Templates (Kits)", platformConfigData.kits);
|
279150
279150
|
table("Use cases (Smart Contract Sets)", platformConfigData.useCases);
|
279151
279151
|
table("Providers and regions", platformConfigData.deploymentEngineTargets);
|
279152
279152
|
list("Pre-deployed abis (Smart Contract Portal)", platformConfigData.preDeployedContracts);
|
@@ -280689,4 +280689,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
280689
280689
|
// src/cli.ts
|
280690
280690
|
sdkCliCommand();
|
280691
280691
|
|
280692
|
-
//# debugId=
|
280692
|
+
//# debugId=FFEFCF97E4D3F90764756E2164756E21
|