@settlemint/sdk-cli 1.1.12 → 1.1.14

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/README.md CHANGED
@@ -249,7 +249,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
249
249
 
250
250
  ## API Reference
251
251
 
252
- See the [documentation](https://github.com/settlemint/sdk/tree/v1.1.12/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v1.1.14/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
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.14",
267001
267001
  type: "module",
267002
267002
  private: false,
267003
267003
  license: "FSL-1.1-MIT",
@@ -267045,9 +267045,9 @@ 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",
267050
- "@types/node": "22.13.8",
267048
+ "@settlemint/sdk-js": "1.1.14",
267049
+ "@settlemint/sdk-utils": "1.1.14",
267050
+ "@types/node": "22.13.9",
267051
267051
  "@types/semver": "7.5.8",
267052
267052
  "@types/which": "3.0.4",
267053
267053
  "get-tsconfig": "4.10.0",
@@ -270276,6 +270276,10 @@ var getPlatformConfigQuery = graphql(`
270276
270276
  }
270277
270277
  preDeployedContracts
270278
270278
  sdkVersion
270279
+ kits {
270280
+ id
270281
+ name
270282
+ }
270279
270283
  }
270280
270284
  }
270281
270285
  `, []);
@@ -273841,21 +273845,21 @@ async function projectNamePrompt(env2, argument) {
273841
273845
 
273842
273846
  // src/utils/platform-utils.ts
273843
273847
  function getUseCases(platformConfig) {
273844
- return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged && !useCase.id.startsWith("starterkit-"));
273848
+ return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged);
273845
273849
  }
273846
- function getStarterkits(platformConfig) {
273847
- return platformConfig.smartContractSets.sets.filter((useCase) => !useCase.featureflagged && useCase.id.startsWith("starterkit-"));
273850
+ function getKits(platformConfig) {
273851
+ return platformConfig.kits ?? [];
273848
273852
  }
273849
273853
 
273850
273854
  // src/prompts/starter-kit/template.prompt.ts
273851
273855
  async function templatePrompt(platformConfig, argument) {
273852
- const starterkits = getStarterkits(platformConfig);
273853
- if (starterkits.length === 0) {
273856
+ const kits = getKits(platformConfig);
273857
+ if (kits.length === 0) {
273854
273858
  cancel2("No templates found");
273855
273859
  }
273856
273860
  const defaultInstance = argument;
273857
273861
  if (defaultInstance) {
273858
- const template2 = starterkits.find((starterKit) => starterKit.id === argument);
273862
+ const template2 = kits.find((kit) => kit.id === argument);
273859
273863
  if (!template2) {
273860
273864
  cancel2(`No template found with name '${argument}'`);
273861
273865
  }
@@ -273864,7 +273868,7 @@ async function templatePrompt(platformConfig, argument) {
273864
273868
  const template = await esm_default2({
273865
273869
  message: "Which template do you want to use?",
273866
273870
  choices: [
273867
- ...starterkits.map((template2) => ({
273871
+ ...kits.map((template2) => ({
273868
273872
  name: template2.name,
273869
273873
  value: template2.id
273870
273874
  })).sort((a7, b4) => a7.name.localeCompare(b4.name))
@@ -279127,15 +279131,15 @@ function configCommand() {
279127
279131
  });
279128
279132
  const platformConfig = await settlemint.platform.config();
279129
279133
  const useCases = getUseCases(platformConfig);
279130
- const starterkits = getStarterkits(platformConfig);
279134
+ const kits = getKits(platformConfig);
279131
279135
  const platformConfigData = {
279132
279136
  useCases: useCases.map((useCase) => ({
279133
279137
  id: useCase.id,
279134
279138
  name: useCase.name
279135
279139
  })).sort((a8, b4) => a8.name.localeCompare(b4.name)),
279136
- starterkits: starterkits.map((starterkit) => ({
279137
- id: starterkit.id,
279138
- name: starterkit.name
279140
+ kits: kits.map((kit) => ({
279141
+ id: kit.id,
279142
+ name: kit.name
279139
279143
  })).sort((a8, b4) => a8.name.localeCompare(b4.name)),
279140
279144
  deploymentEngineTargets: platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
279141
279145
  providerId: provider.id,
@@ -279146,7 +279150,7 @@ function configCommand() {
279146
279150
  preDeployedContracts: platformConfig.preDeployedContracts.sort()
279147
279151
  };
279148
279152
  if (printToTerminal) {
279149
- table("Templates (Starterkits)", platformConfigData.starterkits);
279153
+ table("Templates (Kits)", platformConfigData.kits);
279150
279154
  table("Use cases (Smart Contract Sets)", platformConfigData.useCases);
279151
279155
  table("Providers and regions", platformConfigData.deploymentEngineTargets);
279152
279156
  list("Pre-deployed abis (Smart Contract Portal)", platformConfigData.preDeployedContracts);
@@ -280689,4 +280693,4 @@ async function sdkCliCommand(argv = process.argv) {
280689
280693
  // src/cli.ts
280690
280694
  sdkCliCommand();
280691
280695
 
280692
- //# debugId=755D1F413F7B4ED964756E2164756E21
280696
+ //# debugId=70FD3FE5A5898E8164756E2164756E21