@settlemint/sdk-cli 2.4.0-prbfb36448 → 2.4.0-prc7747625

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.
Files changed (3) hide show
  1. package/dist/cli.js +124 -802
  2. package/dist/cli.js.map +49 -77
  3. package/package.json +8 -10
package/dist/cli.js CHANGED
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.31.6";
231626
+ var version5 = "2.31.3";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -238855,7 +238855,7 @@ async function localBatchGatewayRequest(parameters) {
238855
238855
  const responses = [];
238856
238856
  await Promise.all(queries.map(async (query, i6) => {
238857
238857
  try {
238858
- responses[i6] = query.urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({ data: query.data, ccipRequest }) : await ccipRequest(query);
238858
+ responses[i6] = await ccipRequest(query);
238859
238859
  failures[i6] = false;
238860
238860
  } catch (err) {
238861
238861
  failures[i6] = true;
@@ -258129,9 +258129,9 @@ ${formattedErrors}`);
258129
258129
  throw error$37;
258130
258130
  }
258131
258131
  }
258132
- var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
258133
- var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
258134
- var AccessTokenSchema = string$1().regex(/^(sm_pat_.+|sm_aat_.+)$/);
258132
+ var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
258133
+ var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
258134
+ var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
258135
258135
  function tryParseJson(value, defaultValue = null) {
258136
258136
  try {
258137
258137
  const parsed = JSON.parse(value);
@@ -258139,7 +258139,7 @@ function tryParseJson(value, defaultValue = null) {
258139
258139
  return defaultValue;
258140
258140
  }
258141
258141
  return parsed;
258142
- } catch (_err) {
258142
+ } catch (err) {
258143
258143
  return defaultValue;
258144
258144
  }
258145
258145
  }
@@ -263769,7 +263769,7 @@ async function findMonoRepoPackages(projectDir) {
263769
263769
  }));
263770
263770
  const allPaths = packagePaths.flat();
263771
263771
  return allPaths.length === 0 ? [projectDir] : [monoRepoRoot, ...allPaths];
263772
- } catch (_error) {
263772
+ } catch (error$37) {
263773
263773
  return [projectDir];
263774
263774
  }
263775
263775
  }
@@ -263840,7 +263840,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263840
263840
  var package_default = {
263841
263841
  name: "@settlemint/sdk-cli",
263842
263842
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263843
- version: "2.4.0-prbfb36448",
263843
+ version: "2.4.0-prc7747625",
263844
263844
  type: "module",
263845
263845
  private: false,
263846
263846
  license: "FSL-1.1-MIT",
@@ -263859,9 +263859,7 @@ var package_default = {
263859
263859
  url: "https://github.com/settlemint/sdk/issues",
263860
263860
  email: "support@settlemint.com"
263861
263861
  },
263862
- files: [
263863
- "dist"
263864
- ],
263862
+ files: ["dist"],
263865
263863
  exports: {
263866
263864
  "./*": {
263867
263865
  types: "./dist/*.d.ts",
@@ -263891,10 +263889,10 @@ var package_default = {
263891
263889
  "@inquirer/input": "4.1.12",
263892
263890
  "@inquirer/password": "4.0.15",
263893
263891
  "@inquirer/select": "4.2.3",
263894
- "@settlemint/sdk-js": "2.4.0-prbfb36448",
263895
- "@settlemint/sdk-utils": "2.4.0-prbfb36448",
263896
- "@settlemint/sdk-viem": "2.4.0-prbfb36448",
263897
- "@types/node": "24.0.8",
263892
+ "@settlemint/sdk-js": "2.4.0-prc7747625",
263893
+ "@settlemint/sdk-utils": "2.4.0-prc7747625",
263894
+ "@settlemint/sdk-viem": "2.4.0-prc7747625",
263895
+ "@types/node": "24.0.3",
263898
263896
  "@types/semver": "7.7.0",
263899
263897
  "@types/which": "3.0.4",
263900
263898
  "get-tsconfig": "4.10.1",
@@ -263902,13 +263900,13 @@ var package_default = {
263902
263900
  "is-in-ci": "1.0.0",
263903
263901
  semver: "7.7.2",
263904
263902
  slugify: "1.6.6",
263905
- viem: "2.31.6",
263903
+ viem: "2.31.3",
263906
263904
  which: "5.0.0",
263907
263905
  yaml: "2.8.0",
263908
263906
  yoctocolors: "2.1.1"
263909
263907
  },
263910
263908
  peerDependencies: {
263911
- hardhat: "2.25.0"
263909
+ hardhat: "2.24.3"
263912
263910
  },
263913
263911
  peerDependenciesMeta: {
263914
263912
  hardhat: {
@@ -263963,7 +263961,7 @@ async function telemetry(data) {
263963
263961
  signal: controller.signal
263964
263962
  });
263965
263963
  clearTimeout(timeout);
263966
- } catch (_error) {}
263964
+ } catch (error2) {}
263967
263965
  }
263968
263966
 
263969
263967
  // ../../node_modules/@commander-js/extra-typings/esm.mjs
@@ -276515,9 +276513,9 @@ ${formattedErrors}`);
276515
276513
  throw error$372;
276516
276514
  }
276517
276515
  }
276518
- var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.+$/);
276519
- var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.+$/);
276520
- var AccessTokenSchema2 = string$12().regex(/^(sm_pat_.+|sm_aat_.+)$/);
276516
+ var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
276517
+ var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
276518
+ var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
276521
276519
  function tryParseJson2(value, defaultValue = null) {
276522
276520
  try {
276523
276521
  const parsed = JSON.parse(value);
@@ -276525,7 +276523,7 @@ function tryParseJson2(value, defaultValue = null) {
276525
276523
  return defaultValue;
276526
276524
  }
276527
276525
  return parsed;
276528
- } catch (_err) {
276526
+ } catch (err) {
276529
276527
  return defaultValue;
276530
276528
  }
276531
276529
  }
@@ -288291,20 +288289,6 @@ var restartBlockchainNetwork = graphql(`
288291
288289
  }
288292
288290
  }
288293
288291
  `, [BlockchainNetworkFragment]);
288294
- var pauseBlockchainNetwork = graphql(`
288295
- mutation PauseBlockchainNetwork($uniqueName: String!) {
288296
- pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
288297
- ...BlockchainNetwork
288298
- }
288299
- }
288300
- `, [BlockchainNetworkFragment]);
288301
- var resumeBlockchainNetwork = graphql(`
288302
- mutation ResumeBlockchainNetwork($uniqueName: String!) {
288303
- resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
288304
- ...BlockchainNetwork
288305
- }
288306
- }
288307
- `, [BlockchainNetworkFragment]);
288308
288292
  var blockchainNetworkList = (gqlClient) => {
288309
288293
  return async (applicationUniqueName) => {
288310
288294
  const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
@@ -288339,14 +288323,6 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
288339
288323
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
288340
288324
  return blockchainNetwork;
288341
288325
  };
288342
- var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
288343
- const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
288344
- return blockchainNetwork;
288345
- };
288346
- var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
288347
- const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
288348
- return blockchainNetwork;
288349
- };
288350
288326
  var BlockchainNodeFragment = graphql(`
288351
288327
  fragment BlockchainNode on BlockchainNode {
288352
288328
  __typename
@@ -288480,20 +288456,6 @@ var restartBlockchainNode = graphql(`
288480
288456
  }
288481
288457
  }
288482
288458
  `, [BlockchainNodeFragment]);
288483
- var pauseBlockchainNode = graphql(`
288484
- mutation PauseBlockchainNode($uniqueName: String!) {
288485
- pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
288486
- ...BlockchainNode
288487
- }
288488
- }
288489
- `, [BlockchainNodeFragment]);
288490
- var resumeBlockchainNode = graphql(`
288491
- mutation ResumeBlockchainNode($uniqueName: String!) {
288492
- resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
288493
- ...BlockchainNode
288494
- }
288495
- }
288496
- `, [BlockchainNodeFragment]);
288497
288459
  var blockchainNodeList = (gqlClient) => {
288498
288460
  return async (applicationUniqueName) => {
288499
288461
  const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
@@ -288522,14 +288484,6 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
288522
288484
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
288523
288485
  return blockchainNode;
288524
288486
  };
288525
- var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
288526
- const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
288527
- return blockchainNode;
288528
- };
288529
- var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
288530
- const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
288531
- return blockchainNode;
288532
- };
288533
288487
  var CustomDeploymentFragment = graphql(`
288534
288488
  fragment CustomDeployment on CustomDeployment {
288535
288489
  id
@@ -288612,20 +288566,6 @@ var restartCustomDeployment = graphql(`
288612
288566
  }
288613
288567
  }
288614
288568
  `, [CustomDeploymentFragment]);
288615
- var pauseCustomDeployment = graphql(`
288616
- mutation PauseCustomDeployment($uniqueName: String!) {
288617
- pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
288618
- ...CustomDeployment
288619
- }
288620
- }
288621
- `, [CustomDeploymentFragment]);
288622
- var resumeCustomDeployment = graphql(`
288623
- mutation ResumeCustomDeployment($uniqueName: String!) {
288624
- resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
288625
- ...CustomDeployment
288626
- }
288627
- }
288628
- `, [CustomDeploymentFragment]);
288629
288569
  var customdeploymentList = (gqlClient) => {
288630
288570
  return async (applicationUniqueName) => {
288631
288571
  const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
@@ -288662,14 +288602,6 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
288662
288602
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
288663
288603
  return customDeployment;
288664
288604
  };
288665
- var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
288666
- const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
288667
- return customDeployment;
288668
- };
288669
- var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
288670
- const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
288671
- return customDeployment;
288672
- };
288673
288605
  var getFoundryEnvConfig = graphql(`
288674
288606
  query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
288675
288607
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
@@ -288746,20 +288678,6 @@ var restartLoadBalancer = graphql(`
288746
288678
  }
288747
288679
  }
288748
288680
  `, [LoadBalancerFragment]);
288749
- var pauseLoadBalancer = graphql(`
288750
- mutation PauseLoadBalancer($uniqueName: String!) {
288751
- pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
288752
- ...LoadBalancer
288753
- }
288754
- }
288755
- `, [LoadBalancerFragment]);
288756
- var resumeLoadBalancer = graphql(`
288757
- mutation ResumeLoadBalancer($uniqueName: String!) {
288758
- resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
288759
- ...LoadBalancer
288760
- }
288761
- }
288762
- `, [LoadBalancerFragment]);
288763
288681
  var loadBalancerRead = (gqlClient) => {
288764
288682
  return async (loadBalancerUniqueName) => {
288765
288683
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
@@ -288793,14 +288711,6 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
288793
288711
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
288794
288712
  return loadBalancer;
288795
288713
  };
288796
- var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
288797
- const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
288798
- return loadBalancer;
288799
- };
288800
- var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
288801
- const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
288802
- return loadBalancer;
288803
- };
288804
288714
  var InsightsFragment = graphql(`
288805
288715
  fragment Insights on Insights {
288806
288716
  __typename
@@ -288874,20 +288784,6 @@ var restartInsights = graphql(`
288874
288784
  }
288875
288785
  }
288876
288786
  `, [InsightsFragment]);
288877
- var pauseInsights = graphql(`
288878
- mutation PauseInsights($uniqueName: String!) {
288879
- pauseInsightsByUniqueName(uniqueName: $uniqueName) {
288880
- ...Insights
288881
- }
288882
- }
288883
- `, [InsightsFragment]);
288884
- var resumeInsights = graphql(`
288885
- mutation ResumeInsights($uniqueName: String!) {
288886
- resumeInsightsByUniqueName(uniqueName: $uniqueName) {
288887
- ...Insights
288888
- }
288889
- }
288890
- `, [InsightsFragment]);
288891
288787
  var insightsList = (gqlClient) => {
288892
288788
  return async (applicationUniqueName) => {
288893
288789
  const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
@@ -288921,14 +288817,6 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
288921
288817
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
288922
288818
  return insights;
288923
288819
  };
288924
- var insightsPause = (gqlClient) => async (insightsUniqueName) => {
288925
- const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
288926
- return insights;
288927
- };
288928
- var insightsResume = (gqlClient) => async (insightsUniqueName) => {
288929
- const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
288930
- return insights;
288931
- };
288932
288820
  var IntegrationFragment = graphql(`
288933
288821
  fragment Integration on Integration {
288934
288822
  __typename
@@ -288998,20 +288886,6 @@ var restartIntegrationTool = graphql(`
288998
288886
  }
288999
288887
  }
289000
288888
  `, [IntegrationFragment]);
289001
- var pauseIntegrationTool = graphql(`
289002
- mutation PauseIntegrationTool($uniqueName: String!) {
289003
- pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
289004
- ...Integration
289005
- }
289006
- }
289007
- `, [IntegrationFragment]);
289008
- var resumeIntegrationTool = graphql(`
289009
- mutation ResumeIntegrationTool($uniqueName: String!) {
289010
- resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
289011
- ...Integration
289012
- }
289013
- }
289014
- `, [IntegrationFragment]);
289015
288889
  var integrationToolList = (gqlClient) => {
289016
288890
  return async (applicationUniqueName) => {
289017
288891
  const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
@@ -289039,14 +288913,6 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
289039
288913
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
289040
288914
  return integration;
289041
288915
  };
289042
- var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
289043
- const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
289044
- return integration;
289045
- };
289046
- var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
289047
- const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
289048
- return integration;
289049
- };
289050
288916
  var StorageFragment = graphql(`
289051
288917
  fragment Storage on Storage {
289052
288918
  __typename
@@ -289116,20 +288982,6 @@ var restartStorage = graphql(`
289116
288982
  }
289117
288983
  }
289118
288984
  `, [StorageFragment]);
289119
- var pauseStorage = graphql(`
289120
- mutation PauseStorage($uniqueName: String!) {
289121
- pauseStorageByUniqueName(uniqueName: $uniqueName) {
289122
- ...Storage
289123
- }
289124
- }
289125
- `, [StorageFragment]);
289126
- var resumeStorage = graphql(`
289127
- mutation ResumeStorage($uniqueName: String!) {
289128
- resumeStorageByUniqueName(uniqueName: $uniqueName) {
289129
- ...Storage
289130
- }
289131
- }
289132
- `, [StorageFragment]);
289133
288985
  var storageList = (gqlClient) => {
289134
288986
  return async (applicationUniqueName) => {
289135
288987
  const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
@@ -289157,14 +289009,6 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
289157
289009
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
289158
289010
  return storage;
289159
289011
  };
289160
- var storagePause = (gqlClient) => async (storageUniqueName) => {
289161
- const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
289162
- return storage;
289163
- };
289164
- var storageResume = (gqlClient) => async (storageUniqueName) => {
289165
- const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
289166
- return storage;
289167
- };
289168
289012
  var MiddlewareFragment = graphql(`
289169
289013
  fragment Middleware on Middleware {
289170
289014
  __typename
@@ -289265,20 +289109,6 @@ var restartMiddleware = graphql(`
289265
289109
  }
289266
289110
  }
289267
289111
  `, [MiddlewareFragment]);
289268
- var pauseMiddleware = graphql(`
289269
- mutation PauseMiddleware($uniqueName: String!) {
289270
- pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
289271
- ...Middleware
289272
- }
289273
- }
289274
- `, [MiddlewareFragment]);
289275
- var resumeMiddleware = graphql(`
289276
- mutation ResumeMiddleware($uniqueName: String!) {
289277
- resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
289278
- ...Middleware
289279
- }
289280
- }
289281
- `, [MiddlewareFragment]);
289282
289112
  var middlewareList = (gqlClient) => {
289283
289113
  return async (applicationUniqueName) => {
289284
289114
  const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
@@ -289323,14 +289153,6 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
289323
289153
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
289324
289154
  return middleware;
289325
289155
  };
289326
- var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
289327
- const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
289328
- return middleware;
289329
- };
289330
- var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
289331
- const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
289332
- return middleware;
289333
- };
289334
289156
  var getPlatformConfigQuery = graphql(`
289335
289157
  query platformConfig {
289336
289158
  config {
@@ -289463,20 +289285,6 @@ var restartPrivateKey = graphql(`
289463
289285
  }
289464
289286
  }
289465
289287
  `, [PrivateKeyFragment]);
289466
- var pausePrivateKey = graphql(`
289467
- mutation PausePrivateKey($uniqueName: String!) {
289468
- pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
289469
- ...PrivateKey
289470
- }
289471
- }
289472
- `, [PrivateKeyFragment]);
289473
- var resumePrivateKey = graphql(`
289474
- mutation ResumePrivateKey($uniqueName: String!) {
289475
- resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
289476
- ...PrivateKey
289477
- }
289478
- }
289479
- `, [PrivateKeyFragment]);
289480
289288
  var privateKeyList = (gqlClient) => {
289481
289289
  return async (applicationUniqueName) => {
289482
289290
  const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
@@ -289515,14 +289323,6 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
289515
289323
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
289516
289324
  return privateKey;
289517
289325
  };
289518
- var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
289519
- const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
289520
- return privateKey;
289521
- };
289522
- var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
289523
- const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
289524
- return privateKey;
289525
- };
289526
289326
  var ClientOptionsSchema = exports_external.object({
289527
289327
  accessToken: AccessTokenSchema2,
289528
289328
  instance: UrlSchema2
@@ -289602,75 +289402,57 @@ function createSettleMintClient(options) {
289602
289402
  read: blockchainNetworkRead(gqlClient),
289603
289403
  create: blockchainNetworkCreate(gqlClient),
289604
289404
  delete: blockchainNetworkDelete(gqlClient),
289605
- restart: blockchainNetworkRestart(gqlClient),
289606
- pause: blockchainNetworkPause(gqlClient),
289607
- resume: blockchainNetworkResume(gqlClient)
289405
+ restart: blockchainNetworkRestart(gqlClient)
289608
289406
  },
289609
289407
  blockchainNode: {
289610
289408
  list: blockchainNodeList(gqlClient),
289611
289409
  read: blockchainNodeRead(gqlClient),
289612
289410
  create: blockchainNodeCreate(gqlClient),
289613
- restart: blockchainNodeRestart(gqlClient),
289614
- pause: blockchainNodePause(gqlClient),
289615
- resume: blockchainNodeResume(gqlClient)
289411
+ restart: blockchainNodeRestart(gqlClient)
289616
289412
  },
289617
289413
  loadBalancer: {
289618
289414
  list: loadBalancerList(gqlClient),
289619
289415
  read: loadBalancerRead(gqlClient),
289620
289416
  create: loadBalancerCreate(gqlClient),
289621
- restart: loadBalancerRestart(gqlClient),
289622
- pause: loadBalancerPause(gqlClient),
289623
- resume: loadBalancerResume(gqlClient)
289417
+ restart: loadBalancerRestart(gqlClient)
289624
289418
  },
289625
289419
  middleware: {
289626
289420
  list: middlewareList(gqlClient),
289627
289421
  read: middlewareRead(gqlClient),
289628
289422
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
289629
289423
  create: middlewareCreate(gqlClient),
289630
- restart: middlewareRestart(gqlClient),
289631
- pause: middlewarePause(gqlClient),
289632
- resume: middlewareResume(gqlClient)
289424
+ restart: middlewareRestart(gqlClient)
289633
289425
  },
289634
289426
  integrationTool: {
289635
289427
  list: integrationToolList(gqlClient),
289636
289428
  read: integrationToolRead(gqlClient),
289637
289429
  create: integrationToolCreate(gqlClient),
289638
- restart: integrationToolRestart(gqlClient),
289639
- pause: integrationToolPause(gqlClient),
289640
- resume: integrationToolResume(gqlClient)
289430
+ restart: integrationToolRestart(gqlClient)
289641
289431
  },
289642
289432
  storage: {
289643
289433
  list: storageList(gqlClient),
289644
289434
  read: storageRead(gqlClient),
289645
289435
  create: storageCreate(gqlClient),
289646
- restart: storageRestart(gqlClient),
289647
- pause: storagePause(gqlClient),
289648
- resume: storageResume(gqlClient)
289436
+ restart: storageRestart(gqlClient)
289649
289437
  },
289650
289438
  privateKey: {
289651
289439
  list: privateKeyList(gqlClient),
289652
289440
  read: privatekeyRead(gqlClient),
289653
289441
  create: privateKeyCreate(gqlClient),
289654
- restart: privateKeyRestart(gqlClient),
289655
- pause: privateKeyPause(gqlClient),
289656
- resume: privateKeyResume(gqlClient)
289442
+ restart: privateKeyRestart(gqlClient)
289657
289443
  },
289658
289444
  insights: {
289659
289445
  list: insightsList(gqlClient),
289660
289446
  read: insightsRead(gqlClient),
289661
289447
  create: insightsCreate(gqlClient),
289662
- restart: insightsRestart(gqlClient),
289663
- pause: insightsPause(gqlClient),
289664
- resume: insightsResume(gqlClient)
289448
+ restart: insightsRestart(gqlClient)
289665
289449
  },
289666
289450
  customDeployment: {
289667
289451
  list: customdeploymentList(gqlClient),
289668
289452
  read: customdeploymentRead(gqlClient),
289669
289453
  create: customdeploymentCreate(gqlClient),
289670
289454
  update: customdeploymentUpdate(gqlClient),
289671
- restart: customDeploymentRestart(gqlClient),
289672
- pause: customDeploymentPause(gqlClient),
289673
- resume: customDeploymentResume(gqlClient)
289455
+ restart: customDeploymentRestart(gqlClient)
289674
289456
  },
289675
289457
  foundry: { env: getEnv(gqlClient) },
289676
289458
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
@@ -296087,6 +295869,17 @@ async function exists3(path$1) {
296087
295869
  return false;
296088
295870
  }
296089
295871
  }
295872
+ function tryParseJson3(value2, defaultValue = null) {
295873
+ try {
295874
+ const parsed = JSON.parse(value2);
295875
+ if (parsed === undefined || parsed === null) {
295876
+ return defaultValue;
295877
+ }
295878
+ return parsed;
295879
+ } catch (err) {
295880
+ return defaultValue;
295881
+ }
295882
+ }
296090
295883
  var require_balanced_match4 = __commonJS4({ "../../node_modules/balanced-match/index.js"(exports, module) {
296091
295884
  module.exports = balanced$1;
296092
295885
  function balanced$1(a3, b, str) {
@@ -301565,17 +301358,6 @@ var glob3 = Object.assign(glob_3, {
301565
301358
  unescape: unescape4
301566
301359
  });
301567
301360
  glob3.glob = glob3;
301568
- function tryParseJson3(value2, defaultValue = null) {
301569
- try {
301570
- const parsed = JSON.parse(value2);
301571
- if (parsed === undefined || parsed === null) {
301572
- return defaultValue;
301573
- }
301574
- return parsed;
301575
- } catch (_err) {
301576
- return defaultValue;
301577
- }
301578
- }
301579
301361
  async function findMonoRepoRoot2(startDir) {
301580
301362
  const lockFilePath = await findUp([
301581
301363
  "package-lock.json",
@@ -301621,7 +301403,7 @@ function tryParseJson4(value2, defaultValue = null) {
301621
301403
  return defaultValue;
301622
301404
  }
301623
301405
  return parsed;
301624
- } catch (_err) {
301406
+ } catch (err) {
301625
301407
  return defaultValue;
301626
301408
  }
301627
301409
  }
@@ -301649,7 +301431,7 @@ async function readConfig() {
301649
301431
  try {
301650
301432
  const content = await readFile4(CONFIG_FILE, "utf-8");
301651
301433
  return tryParseJson4(content, { instances: {} });
301652
- } catch (_error) {
301434
+ } catch (error41) {
301653
301435
  return { instances: {} };
301654
301436
  }
301655
301437
  }
@@ -305372,9 +305154,9 @@ function watchContractEvent(client, parameters) {
305372
305154
  return poll_;
305373
305155
  if (typeof fromBlock === "bigint")
305374
305156
  return true;
305375
- if (client.transport.type === "webSocket" || client.transport.type === "ipc")
305157
+ if (client.transport.type === "webSocket")
305376
305158
  return false;
305377
- if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
305159
+ if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
305378
305160
  return false;
305379
305161
  return true;
305380
305162
  })();
@@ -305475,7 +305257,7 @@ function watchContractEvent(client, parameters) {
305475
305257
  try {
305476
305258
  const transport = (() => {
305477
305259
  if (client.transport.type === "fallback") {
305478
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
305260
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
305479
305261
  if (!transport2)
305480
305262
  return client.transport;
305481
305263
  return transport2.value;
@@ -308636,9 +308418,9 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308636
308418
  const enablePolling = (() => {
308637
308419
  if (typeof poll_ !== "undefined")
308638
308420
  return poll_;
308639
- if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308421
+ if (client.transport.type === "webSocket")
308640
308422
  return false;
308641
- if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308423
+ if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308642
308424
  return false;
308643
308425
  return true;
308644
308426
  })();
@@ -308690,7 +308472,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308690
308472
  try {
308691
308473
  const transport = (() => {
308692
308474
  if (client.transport.type === "fallback") {
308693
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308475
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308694
308476
  if (!transport2)
308695
308477
  return client.transport;
308696
308478
  return transport2.value;
@@ -308843,9 +308625,9 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308843
308625
  const enablePolling = (() => {
308844
308626
  if (typeof poll_ !== "undefined")
308845
308627
  return poll_;
308846
- if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308628
+ if (client.transport.type === "webSocket")
308847
308629
  return false;
308848
- if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308630
+ if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308849
308631
  return false;
308850
308632
  return true;
308851
308633
  })();
@@ -308914,7 +308696,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308914
308696
  }
308915
308697
  const transport = (() => {
308916
308698
  if (client.transport.type === "fallback") {
308917
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308699
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308918
308700
  if (!transport2)
308919
308701
  return client.transport;
308920
308702
  return transport2.value;
@@ -308961,9 +308743,9 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308961
308743
  return poll_;
308962
308744
  if (typeof fromBlock === "bigint")
308963
308745
  return true;
308964
- if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308746
+ if (client.transport.type === "webSocket")
308965
308747
  return false;
308966
- if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308748
+ if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308967
308749
  return false;
308968
308750
  return true;
308969
308751
  })();
@@ -309050,7 +308832,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
309050
308832
  try {
309051
308833
  const transport = (() => {
309052
308834
  if (client.transport.type === "fallback") {
309053
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308835
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
309054
308836
  if (!transport2)
309055
308837
  return client.transport;
309056
308838
  return transport2.value;
@@ -309117,7 +308899,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
309117
308899
  }
309118
308900
  // ../../node_modules/viem/_esm/actions/public/watchPendingTransactions.js
309119
308901
  function watchPendingTransactions(client, { batch = true, onError, onTransactions, poll: poll_, pollingInterval = client.pollingInterval }) {
309120
- const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket" && client.transport.type !== "ipc";
308902
+ const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket";
309121
308903
  const pollPendingTransactions = () => {
309122
308904
  const observerId = stringify3([
309123
308905
  "watchPendingTransactions",
@@ -320775,7 +320557,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320775
320557
  try {
320776
320558
  validate2(exports_external.string(), value4);
320777
320559
  return true;
320778
- } catch (_error) {
320560
+ } catch (error45) {
320779
320561
  return "Invalid token name";
320780
320562
  }
320781
320563
  }
@@ -320828,7 +320610,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320828
320610
  try {
320829
320611
  validate2(ApplicationAccessTokenSchema2, aat);
320830
320612
  return aat;
320831
- } catch (_error) {}
320613
+ } catch (error45) {}
320832
320614
  }
320833
320615
  return esm_default5({
320834
320616
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
@@ -320836,7 +320618,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320836
320618
  try {
320837
320619
  validate2(ApplicationAccessTokenSchema2, value4);
320838
320620
  return true;
320839
- } catch (_error) {
320621
+ } catch (error45) {
320840
320622
  return "Invalid application access token, it should start with sm_aat_...";
320841
320623
  }
320842
320624
  }
@@ -321241,7 +321023,7 @@ async function instancePrompt({
321241
321023
  try {
321242
321024
  validate2(UrlSchema2, value4);
321243
321025
  return true;
321244
- } catch (_error) {
321026
+ } catch (error45) {
321245
321027
  return "Invalid URL";
321246
321028
  }
321247
321029
  },
@@ -321325,7 +321107,7 @@ async function serviceUrlPrompt({
321325
321107
  try {
321326
321108
  validate2(UrlSchema2, value4);
321327
321109
  return true;
321328
- } catch (_error) {
321110
+ } catch (error45) {
321329
321111
  return "Invalid URL";
321330
321112
  }
321331
321113
  },
@@ -322269,7 +322051,7 @@ async function projectNamePrompt(env2, argument) {
322269
322051
  try {
322270
322052
  validate2(exports_external.string(), value4);
322271
322053
  return true;
322272
- } catch (_error) {
322054
+ } catch (error45) {
322273
322055
  return "Invalid projectname";
322274
322056
  }
322275
322057
  }
@@ -326257,7 +326039,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326257
326039
  try {
326258
326040
  validate2(PersonalAccessTokenSchema2, value4);
326259
326041
  return true;
326260
- } catch (_error) {
326042
+ } catch (error45) {
326261
326043
  return "Invalid personal access token, it should start with sm_pat_...";
326262
326044
  }
326263
326045
  }
@@ -326338,7 +326120,7 @@ function loginCommand() {
326338
326120
  });
326339
326121
  try {
326340
326122
  await loginSpinner(client);
326341
- } catch (_error) {
326123
+ } catch (error45) {
326342
326124
  cancel2(`Invalid personal access token for instance ${selectedInstance}`);
326343
326125
  }
326344
326126
  await storeCredentials(personalAccessToken, selectedInstance);
@@ -326494,8 +326276,7 @@ async function waitForCompletion({
326494
326276
  uniqueName,
326495
326277
  action,
326496
326278
  maxTimeout = 10 * 60 * 1000,
326497
- restartIfTimeout = false,
326498
- restartOnError = false
326279
+ restartIfTimeout = false
326499
326280
  }) {
326500
326281
  const serviceType = SETTLEMINT_CLIENT_MAP[type4];
326501
326282
  if (serviceType === "workspace" || serviceType === "application" || serviceType === "foundry" || serviceType === "applicationAccessToken" || serviceType === "platform" || serviceType === "wallet") {
@@ -326514,21 +326295,33 @@ async function waitForCompletion({
326514
326295
  while (true) {
326515
326296
  try {
326516
326297
  const resource = await service.read(uniqueName);
326298
+ if (resource.status === "COMPLETED") {
326299
+ if (spinner2) {
326300
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
326301
+ } else {
326302
+ note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
326303
+ }
326304
+ return true;
326305
+ }
326517
326306
  if (resource.status === "FAILED") {
326518
- updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`);
326519
- if (restartOnError) {
326520
- note(`Restarting ${capitalizeFirstLetter2(type4)}`);
326521
- await service.restart(uniqueName);
326307
+ if (spinner2) {
326308
+ spinner2.text = `${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`;
326309
+ } else {
326310
+ note(`${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`);
326522
326311
  }
326523
326312
  return false;
326524
326313
  }
326525
- if (isActionComplete(action, resource.status)) {
326526
- updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
326527
- return true;
326314
+ if (spinner2) {
326315
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`;
326316
+ } else {
326317
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
326318
+ }
326319
+ } catch (error45) {
326320
+ if (spinner2) {
326321
+ spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
326322
+ } else {
326323
+ note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
326528
326324
  }
326529
- updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
326530
- } catch (_error) {
326531
- updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
326532
326325
  }
326533
326326
  if (Date.now() - startTime > maxTimeout) {
326534
326327
  throw new TimeoutError2(`Operation timed out after ${maxTimeout / 60000} minutes for ${type4} with unique name ${uniqueName}`);
@@ -326550,41 +326343,14 @@ async function waitForCompletion({
326550
326343
  throw error45;
326551
326344
  }
326552
326345
  }
326553
- function updateStatus(spinner2, message) {
326554
- if (spinner2) {
326555
- spinner2.text = message;
326556
- } else {
326557
- note(message);
326558
- }
326559
- }
326560
- function isActionComplete(action, status) {
326561
- switch (action) {
326562
- case "pause":
326563
- return status === "PAUSED" || status === "AUTO_PAUSED";
326564
- case "resume":
326565
- case "deploy":
326566
- case "destroy":
326567
- case "restart":
326568
- return status === "COMPLETED";
326569
- default:
326570
- return false;
326571
- }
326572
- }
326573
326346
  function getActionLabel(action) {
326574
- switch (action) {
326575
- case "restart":
326576
- return "restarted";
326577
- case "destroy":
326578
- return "destroyed";
326579
- case "pause":
326580
- return "paused";
326581
- case "resume":
326582
- return "resumed";
326583
- case "deploy":
326584
- return "deployed";
326585
- default:
326586
- return "deployed";
326347
+ if (action === "restart") {
326348
+ return "restarted";
326587
326349
  }
326350
+ if (action === "destroy") {
326351
+ return "destroyed";
326352
+ }
326353
+ return "deployed";
326588
326354
  }
326589
326355
 
326590
326356
  // src/prompts/provider.prompt.ts
@@ -326665,9 +326431,9 @@ function getCreateCommand({
326665
326431
  cmd2.alias(alias);
326666
326432
  }
326667
326433
  if (requiresDeployment) {
326668
- cmd2.option("-w, --wait", "Wait until deployed").option("--restart-if-timeout", "Restart if wait time is exceeded").option("--restart-on-error", "Restart if deployment fails");
326434
+ cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
326669
326435
  }
326670
- execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait: wait2, restartIfTimeout, restartOnError, provider, region }, createFunction) => {
326436
+ execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait: wait2, restartIfTimeout, provider, region }, createFunction) => {
326671
326437
  intro(`Creating ${type4} in the SettleMint platform`);
326672
326438
  const env2 = await loadEnv(false, !!prod);
326673
326439
  const instance = await instancePrompt({ env: env2, accept: acceptDefaults });
@@ -326681,8 +326447,8 @@ function getCreateCommand({
326681
326447
  instance
326682
326448
  });
326683
326449
  const platformConfig = await settlemint.platform.config();
326684
- let selectedProvider;
326685
- let selectedRegion;
326450
+ let selectedProvider = undefined;
326451
+ let selectedRegion = undefined;
326686
326452
  if (cmd2.options.some((option) => option.long === "--provider")) {
326687
326453
  selectedProvider = await providerPrompt(platformConfig, provider);
326688
326454
  if (!selectedProvider) {
@@ -326711,8 +326477,7 @@ function getCreateCommand({
326711
326477
  type: waitFor?.resourceType ?? type4,
326712
326478
  uniqueName: waitFor?.uniqueName ?? result.uniqueName,
326713
326479
  action: "deploy",
326714
- restartIfTimeout,
326715
- restartOnError
326480
+ restartIfTimeout
326716
326481
  });
326717
326482
  if (!isDeployed) {
326718
326483
  throw new Error(`Failed to deploy ${waitFor?.resourceType ?? type4} ${waitFor?.uniqueName ?? result.uniqueName}`);
@@ -327894,7 +327659,7 @@ function privateKeyHsmCreateCommand() {
327894
327659
  return baseAction({
327895
327660
  ...defaultArgs,
327896
327661
  acceptDefaults
327897
- }, async ({ settlemint, env: env2, showSpinner, provider: _provider, region: _region }) => {
327662
+ }, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
327898
327663
  const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
327899
327664
  if (!applicationUniqueName) {
327900
327665
  return missingApplication();
@@ -328183,249 +327948,25 @@ function deleteCommand() {
328183
327948
  return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(applicationDeleteCommand()).addCommand(workspaceDeleteCommand());
328184
327949
  }
328185
327950
 
328186
- // src/commands/platform/common/pause-command.ts
328187
- function getPauseCommand({
328188
- name: name3,
328189
- type: type4,
328190
- alias,
328191
- envKey,
328192
- pauseFunction,
328193
- usePersonalAccessToken = true
328194
- }) {
328195
- const commandName = sanitizeCommandName(name3);
328196
- const typeCommandName = sanitizeCommandName(type4);
328197
- const exampleCommandPrefix = `platform pause ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
328198
- return new Command(commandName).alias(alias).description(`Pause a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to pause the default ${type4} from your .env file.`).usage(createExamples([
328199
- {
328200
- description: `Pauses the specified ${type4} by unique name`,
328201
- command: `${exampleCommandPrefix} <unique-name>`
328202
- },
328203
- {
328204
- description: `Pauses the default ${type4} in the production environment`,
328205
- command: `${exampleCommandPrefix} default --prod`
328206
- }
328207
- ])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to pause the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until paused").action(async (uniqueName, { acceptDefaults, prod, wait: wait2 }) => {
328208
- intro(`Pausing ${type4} in the SettleMint platform`);
328209
- const env2 = await loadEnv(false, !!prod);
328210
- const instance = await instancePrompt({ env: env2, accept: acceptDefaults });
328211
- const accessToken = await getApplicationOrPersonalAccessToken({
328212
- env: env2,
328213
- instance,
328214
- prefer: usePersonalAccessToken ? "personal" : "application"
328215
- });
328216
- const settlemint = createSettleMintClient({
328217
- accessToken,
328218
- instance
328219
- });
328220
- const isDefaultUniqueName = uniqueName === "default";
328221
- const serviceUniqueName = isDefaultUniqueName ? typeof env2[envKey] === "string" ? env2[envKey] : null : uniqueName;
328222
- if (!serviceUniqueName) {
328223
- cancel2(`No default ${type4} found in your .env file. Please provide a valid ${type4} unique name or set a default ${type4} first.`);
328224
- }
328225
- const result = await spinner({
328226
- startMessage: `Pausing ${type4}`,
328227
- task: async () => {
328228
- return pauseFunction(settlemint, serviceUniqueName);
328229
- },
328230
- stopMessage: `${capitalizeFirstLetter2(type4)} pause initiated`
328231
- });
328232
- if (wait2) {
328233
- const isPaused = await waitForCompletion({
328234
- settlemint,
328235
- type: type4,
328236
- uniqueName: serviceUniqueName,
328237
- action: "pause"
328238
- });
328239
- if (!isPaused) {
328240
- throw new Error(`Failed to pause ${type4} ${serviceUniqueName}`);
328241
- }
328242
- }
328243
- outro(`${capitalizeFirstLetter2(type4)} ${result.name} pause initiated successfully`);
328244
- });
328245
- }
328246
-
328247
- // src/commands/platform/blockchain-network/pause.ts
328248
- function blockchainNetworkPauseCommand() {
328249
- return getPauseCommand({
328250
- name: "blockchain-network",
328251
- type: "blockchain network",
328252
- alias: "bnw",
328253
- envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
328254
- pauseFunction: async (settlemint, id) => {
328255
- return settlemint.blockchainNetwork.pause(id);
328256
- }
328257
- });
328258
- }
328259
-
328260
- // src/commands/platform/blockchain-node/pause.ts
328261
- function blockchainNodePauseCommand() {
328262
- return getPauseCommand({
328263
- name: "blockchain-node",
328264
- type: "blockchain node",
328265
- alias: "bn",
328266
- envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
328267
- pauseFunction: async (settlemint, id) => {
328268
- return settlemint.blockchainNode.pause(id);
328269
- }
328270
- });
328271
- }
328272
-
328273
- // src/commands/platform/custom-deployments/pause.ts
328274
- function customDeploymentPauseCommand() {
328275
- return getPauseCommand({
328276
- name: "custom-deployment",
328277
- type: "custom deployment",
328278
- alias: "cd",
328279
- envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
328280
- pauseFunction: async (settlemint, id) => {
328281
- return settlemint.customDeployment.pause(id);
328282
- }
328283
- });
328284
- }
328285
-
328286
- // src/commands/platform/insights/blockscout/pause.ts
328287
- function blockscoutPauseCommand() {
328288
- return getPauseCommand({
328289
- name: "blockscout",
328290
- type: "insights",
328291
- alias: "bs",
328292
- envKey: "SETTLEMINT_BLOCKSCOUT",
328293
- pauseFunction: async (settlemint, id) => {
328294
- return settlemint.insights.pause(id);
328295
- }
328296
- });
328297
- }
328298
-
328299
- // src/commands/platform/integration-tools/hasura/pause.ts
328300
- function hasuraPauseCommand() {
328301
- return getPauseCommand({
328302
- name: "hasura",
328303
- type: "integration tool",
328304
- alias: "ha",
328305
- envKey: "SETTLEMINT_HASURA",
328306
- pauseFunction: async (settlemint, id) => {
328307
- return settlemint.integrationTool.pause(id);
328308
- }
328309
- });
328310
- }
328311
-
328312
- // src/commands/platform/load-balancer/evm/pause.ts
328313
- function evmLoadBalancerPauseCommand() {
328314
- return getPauseCommand({
328315
- name: "evm",
328316
- type: "load balancer",
328317
- alias: "lb",
328318
- envKey: "SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER",
328319
- pauseFunction: async (settlemint, id) => {
328320
- return settlemint.loadBalancer.pause(id);
328321
- }
328322
- });
328323
- }
328324
-
328325
- // src/commands/platform/middleware/graph/pause.ts
328326
- function graphMiddlewarePauseCommand() {
328327
- return getPauseCommand({
328328
- name: "graph",
328329
- type: "middleware",
328330
- alias: "gr",
328331
- envKey: "SETTLEMINT_THEGRAPH",
328332
- pauseFunction: async (settlemint, id) => {
328333
- return settlemint.middleware.pause(id);
328334
- }
328335
- });
328336
- }
328337
-
328338
- // src/commands/platform/middleware/smart-contract-portal/pause.ts
328339
- function smartContractPortalMiddlewarePauseCommand() {
328340
- return getPauseCommand({
328341
- name: "smart-contract-portal",
328342
- type: "middleware",
328343
- alias: "scp",
328344
- envKey: "SETTLEMINT_PORTAL",
328345
- pauseFunction: async (settlemint, id) => {
328346
- return settlemint.middleware.pause(id);
328347
- }
328348
- });
328349
- }
328350
-
328351
- // src/commands/platform/private-key/accessible-ecdsa-p256/pause.ts
328352
- function accessibleEcdsaP256PrivateKeyPauseCommand() {
328353
- return getPauseCommand({
328354
- name: "accessible-ecdsa-p256",
328355
- type: "private key",
328356
- alias: "acc",
328357
- envKey: "SETTLEMINT_ACCESSIBLE_PRIVATE_KEY",
328358
- pauseFunction: async (settlemint, id) => {
328359
- return settlemint.privateKey.pause(id);
328360
- }
328361
- });
328362
- }
328363
-
328364
- // src/commands/platform/private-key/hd-ecdsa-p256/pause.ts
328365
- function hdEcdsaP256PrivateKeyPauseCommand() {
328366
- return getPauseCommand({
328367
- name: "hd-ecdsa-p256",
328368
- type: "private key",
328369
- alias: "hd",
328370
- envKey: "SETTLEMINT_HD_PRIVATE_KEY",
328371
- pauseFunction: async (settlemint, id) => {
328372
- return settlemint.privateKey.pause(id);
328373
- }
328374
- });
328375
- }
328376
-
328377
- // src/commands/platform/storage/ipfs/pause.ts
328378
- function ipfsStoragePauseCommand() {
328379
- return getPauseCommand({
328380
- name: "ipfs",
328381
- type: "storage",
328382
- alias: "ip",
328383
- envKey: "SETTLEMINT_IPFS",
328384
- pauseFunction: async (settlemint, id) => {
328385
- return settlemint.storage.pause(id);
328386
- }
328387
- });
328388
- }
328389
-
328390
- // src/commands/platform/storage/minio/pause.ts
328391
- function minioStoragePauseCommand() {
328392
- return getPauseCommand({
328393
- name: "minio",
328394
- type: "storage",
328395
- alias: "m",
328396
- envKey: "SETTLEMINT_MINIO",
328397
- pauseFunction: async (settlemint, id) => {
328398
- return settlemint.storage.pause(id);
328399
- }
328400
- });
328401
- }
328402
-
328403
- // src/commands/platform/pause.ts
328404
- function pauseCommand() {
328405
- const cmd2 = new Command("pause").description("Pause a resource in the SettleMint platform").addCommand(blockchainNodePauseCommand()).addCommand(blockchainNetworkPauseCommand()).addCommand(customDeploymentPauseCommand()).addCommand(blockscoutPauseCommand()).addCommand(hasuraPauseCommand()).addCommand(evmLoadBalancerPauseCommand()).addCommand(graphMiddlewarePauseCommand()).addCommand(smartContractPortalMiddlewarePauseCommand()).addCommand(accessibleEcdsaP256PrivateKeyPauseCommand()).addCommand(hdEcdsaP256PrivateKeyPauseCommand()).addCommand(ipfsStoragePauseCommand()).addCommand(minioStoragePauseCommand());
328406
- return cmd2;
328407
- }
328408
-
328409
327951
  // src/commands/platform/common/restart-command.ts
328410
327952
  function getRestartCommand({
328411
327953
  name: name3,
328412
327954
  type: type4,
327955
+ subType,
328413
327956
  alias,
328414
327957
  envKey,
328415
327958
  restartFunction,
328416
327959
  usePersonalAccessToken = true
328417
327960
  }) {
328418
327961
  const commandName = sanitizeCommandName(name3);
328419
- const typeCommandName = sanitizeCommandName(type4);
328420
- const exampleCommandPrefix = `platform restart ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
328421
327962
  return new Command(commandName).alias(alias).description(`Restart a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to restart the default ${type4} from your .env file.`).usage(createExamples([
328422
327963
  {
328423
- description: `Restarts the specified ${type4} by unique name`,
328424
- command: `${exampleCommandPrefix} <unique-name>`
327964
+ description: `Restarts the specified ${type4} by id`,
327965
+ command: `platform restart ${commandName}${subType ? ` ${subType}` : ""} <${type4}-id>`
328425
327966
  },
328426
327967
  {
328427
327968
  description: `Restarts the default ${type4} in the production environment`,
328428
- command: `${exampleCommandPrefix} default --prod`
327969
+ command: `platform restart ${commandName}${subType ? ` ${subType}` : ""} default --prod`
328429
327970
  }
328430
327971
  ])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to restart the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until restarted").action(async (uniqueName, { acceptDefaults, prod, wait: wait2 }) => {
328431
327972
  intro(`Restarting ${type4} in the SettleMint platform`);
@@ -328512,6 +328053,7 @@ function blockscoutRestartCommand() {
328512
328053
  return getRestartCommand({
328513
328054
  name: "blockscout",
328514
328055
  type: "insights",
328056
+ subType: "blockscout",
328515
328057
  alias: "bs",
328516
328058
  envKey: "SETTLEMINT_BLOCKSCOUT",
328517
328059
  restartFunction: async (settlemint, uniqueName) => {
@@ -328530,6 +328072,7 @@ function hasuraRestartCommand() {
328530
328072
  return getRestartCommand({
328531
328073
  name: "hasura",
328532
328074
  type: "integration tool",
328075
+ subType: "hasura",
328533
328076
  alias: "ha",
328534
328077
  envKey: "SETTLEMINT_HASURA",
328535
328078
  restartFunction: async (settlemint, uniqueName) => {
@@ -328561,6 +328104,7 @@ function graphRestartCommand() {
328561
328104
  return getRestartCommand({
328562
328105
  name: "graph",
328563
328106
  type: "middleware",
328107
+ subType: "graph",
328564
328108
  alias: "gr",
328565
328109
  envKey: "SETTLEMINT_THEGRAPH",
328566
328110
  restartFunction: async (settlemint, id) => {
@@ -328574,6 +328118,7 @@ function smartContractPortalRestartCommand() {
328574
328118
  return getRestartCommand({
328575
328119
  name: "smart-contract-portal",
328576
328120
  type: "middleware",
328121
+ subType: "smart-contract-portal",
328577
328122
  alias: "scp",
328578
328123
  envKey: "SETTLEMINT_PORTAL",
328579
328124
  restartFunction: async (settlemint, uniqueName) => {
@@ -328624,229 +328169,6 @@ function restartCommand() {
328624
328169
  return cmd2;
328625
328170
  }
328626
328171
 
328627
- // src/commands/platform/common/resume-command.ts
328628
- function getResumeCommand({
328629
- name: name3,
328630
- type: type4,
328631
- alias,
328632
- envKey,
328633
- resumeFunction,
328634
- usePersonalAccessToken = true
328635
- }) {
328636
- const commandName = sanitizeCommandName(name3);
328637
- const typeCommandName = sanitizeCommandName(type4);
328638
- const exampleCommandPrefix = `platform resume ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
328639
- return new Command(commandName).alias(alias).description(`Resume a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to resume the default ${type4} from your .env file.`).usage(createExamples([
328640
- {
328641
- description: `Resumes the specified ${type4} by unique name`,
328642
- command: `${exampleCommandPrefix} <unique-name>`
328643
- },
328644
- {
328645
- description: `Resumes the default ${type4} in the production environment`,
328646
- command: `${exampleCommandPrefix} default --prod`
328647
- }
328648
- ])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to resume the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until resumed").action(async (uniqueName, { acceptDefaults, prod, wait: wait2 }) => {
328649
- intro(`Resuming ${type4} in the SettleMint platform`);
328650
- const env2 = await loadEnv(false, !!prod);
328651
- const instance = await instancePrompt({ env: env2, accept: acceptDefaults });
328652
- const accessToken = await getApplicationOrPersonalAccessToken({
328653
- env: env2,
328654
- instance,
328655
- prefer: usePersonalAccessToken ? "personal" : "application"
328656
- });
328657
- const settlemint = createSettleMintClient({
328658
- accessToken,
328659
- instance
328660
- });
328661
- const isDefaultUniqueName = uniqueName === "default";
328662
- const serviceUniqueName = isDefaultUniqueName ? typeof env2[envKey] === "string" ? env2[envKey] : null : uniqueName;
328663
- if (!serviceUniqueName) {
328664
- cancel2(`No default ${type4} found in your .env file. Please provide a valid ${type4} unique name or set a default ${type4} first.`);
328665
- }
328666
- const result = await spinner({
328667
- startMessage: `Resuming ${type4}`,
328668
- task: async () => {
328669
- return resumeFunction(settlemint, serviceUniqueName);
328670
- },
328671
- stopMessage: `${capitalizeFirstLetter2(type4)} resume initiated`
328672
- });
328673
- if (wait2) {
328674
- const isResumed = await waitForCompletion({
328675
- settlemint,
328676
- type: type4,
328677
- uniqueName: serviceUniqueName,
328678
- action: "resume"
328679
- });
328680
- if (!isResumed) {
328681
- throw new Error(`Failed to resume ${type4} ${serviceUniqueName}`);
328682
- }
328683
- }
328684
- outro(`${capitalizeFirstLetter2(type4)} ${result.name} resume initiated successfully`);
328685
- });
328686
- }
328687
-
328688
- // src/commands/platform/blockchain-network/resume.ts
328689
- function blockchainNetworkResumeCommand() {
328690
- return getResumeCommand({
328691
- name: "blockchain-network",
328692
- type: "blockchain network",
328693
- alias: "bnw",
328694
- envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
328695
- resumeFunction: async (settlemint, id) => {
328696
- return settlemint.blockchainNetwork.resume(id);
328697
- }
328698
- });
328699
- }
328700
-
328701
- // src/commands/platform/blockchain-node/resume.ts
328702
- function blockchainNodeResumeCommand() {
328703
- return getResumeCommand({
328704
- name: "blockchain-node",
328705
- type: "blockchain node",
328706
- alias: "bn",
328707
- envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
328708
- resumeFunction: async (settlemint, id) => {
328709
- return settlemint.blockchainNode.resume(id);
328710
- }
328711
- });
328712
- }
328713
-
328714
- // src/commands/platform/custom-deployments/resume.ts
328715
- function customDeploymentResumeCommand() {
328716
- return getResumeCommand({
328717
- name: "custom-deployment",
328718
- type: "custom deployment",
328719
- alias: "cd",
328720
- envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
328721
- resumeFunction: async (settlemint, id) => {
328722
- return settlemint.customDeployment.resume(id);
328723
- }
328724
- });
328725
- }
328726
-
328727
- // src/commands/platform/insights/blockscout/resume.ts
328728
- function blockscoutResumeCommand() {
328729
- return getResumeCommand({
328730
- name: "blockscout",
328731
- type: "insights",
328732
- alias: "bs",
328733
- envKey: "SETTLEMINT_BLOCKSCOUT",
328734
- resumeFunction: async (settlemint, id) => {
328735
- return settlemint.insights.resume(id);
328736
- }
328737
- });
328738
- }
328739
-
328740
- // src/commands/platform/integration-tools/hasura/resume.ts
328741
- function hasuraResumeCommand() {
328742
- return getResumeCommand({
328743
- name: "hasura",
328744
- type: "integration tool",
328745
- alias: "ha",
328746
- envKey: "SETTLEMINT_HASURA",
328747
- resumeFunction: async (settlemint, id) => {
328748
- return settlemint.integrationTool.resume(id);
328749
- }
328750
- });
328751
- }
328752
-
328753
- // src/commands/platform/load-balancer/evm/resume.ts
328754
- function evmLoadBalancerResumeCommand() {
328755
- return getResumeCommand({
328756
- name: "evm",
328757
- type: "load balancer",
328758
- alias: "lb",
328759
- envKey: "SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER",
328760
- resumeFunction: async (settlemint, id) => {
328761
- return settlemint.loadBalancer.resume(id);
328762
- }
328763
- });
328764
- }
328765
-
328766
- // src/commands/platform/middleware/graph/resume.ts
328767
- function graphMiddlewareResumeCommand() {
328768
- return getResumeCommand({
328769
- name: "graph",
328770
- type: "middleware",
328771
- alias: "gr",
328772
- envKey: "SETTLEMINT_THEGRAPH",
328773
- resumeFunction: async (settlemint, id) => {
328774
- return settlemint.middleware.resume(id);
328775
- }
328776
- });
328777
- }
328778
-
328779
- // src/commands/platform/middleware/smart-contract-portal/resume.ts
328780
- function smartContractPortalMiddlewareResumeCommand() {
328781
- return getResumeCommand({
328782
- name: "smart-contract-portal",
328783
- type: "middleware",
328784
- alias: "scp",
328785
- envKey: "SETTLEMINT_PORTAL",
328786
- resumeFunction: async (settlemint, id) => {
328787
- return settlemint.middleware.resume(id);
328788
- }
328789
- });
328790
- }
328791
-
328792
- // src/commands/platform/private-key/accessible-ecdsa-p256/resume.ts
328793
- function accessibleEcdsaP256PrivateKeyResumeCommand() {
328794
- return getResumeCommand({
328795
- name: "accessible-ecdsa-p256",
328796
- type: "private key",
328797
- alias: "acc",
328798
- envKey: "SETTLEMINT_ACCESSIBLE_PRIVATE_KEY",
328799
- resumeFunction: async (settlemint, id) => {
328800
- return settlemint.privateKey.resume(id);
328801
- }
328802
- });
328803
- }
328804
-
328805
- // src/commands/platform/private-key/hd-ecdsa-p256/resume.ts
328806
- function hdEcdsaP256PrivateKeyResumeCommand() {
328807
- return getResumeCommand({
328808
- name: "hd-ecdsa-p256",
328809
- type: "private key",
328810
- alias: "hd",
328811
- envKey: "SETTLEMINT_HD_PRIVATE_KEY",
328812
- resumeFunction: async (settlemint, id) => {
328813
- return settlemint.privateKey.resume(id);
328814
- }
328815
- });
328816
- }
328817
-
328818
- // src/commands/platform/storage/ipfs/resume.ts
328819
- function ipfsStorageResumeCommand() {
328820
- return getResumeCommand({
328821
- name: "ipfs",
328822
- type: "storage",
328823
- alias: "ip",
328824
- envKey: "SETTLEMINT_IPFS",
328825
- resumeFunction: async (settlemint, id) => {
328826
- return settlemint.storage.resume(id);
328827
- }
328828
- });
328829
- }
328830
-
328831
- // src/commands/platform/storage/minio/resume.ts
328832
- function minioStorageResumeCommand() {
328833
- return getResumeCommand({
328834
- name: "minio",
328835
- type: "storage",
328836
- alias: "m",
328837
- envKey: "SETTLEMINT_MINIO",
328838
- resumeFunction: async (settlemint, id) => {
328839
- return settlemint.storage.resume(id);
328840
- }
328841
- });
328842
- }
328843
-
328844
- // src/commands/platform/resume.ts
328845
- function resumeCommand() {
328846
- const cmd2 = new Command("resume").description("Resume a resource in the SettleMint platform").addCommand(blockchainNodeResumeCommand()).addCommand(blockchainNetworkResumeCommand()).addCommand(customDeploymentResumeCommand()).addCommand(blockscoutResumeCommand()).addCommand(hasuraResumeCommand()).addCommand(evmLoadBalancerResumeCommand()).addCommand(graphMiddlewareResumeCommand()).addCommand(smartContractPortalMiddlewareResumeCommand()).addCommand(accessibleEcdsaP256PrivateKeyResumeCommand()).addCommand(hdEcdsaP256PrivateKeyResumeCommand()).addCommand(ipfsStorageResumeCommand()).addCommand(minioStorageResumeCommand());
328847
- return cmd2;
328848
- }
328849
-
328850
328172
  // src/commands/platform/custom-deployments/update.ts
328851
328173
  function customDeploymentsUpdateCommand() {
328852
328174
  return new Command("custom-deployment").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").usage(createExamples([
@@ -329237,7 +328559,7 @@ function servicesCommand() {
329237
328559
  if (!applicationUniqueName) {
329238
328560
  return nothingSelectedError("application");
329239
328561
  }
329240
- let effectiveTypes;
328562
+ let effectiveTypes = undefined;
329241
328563
  if (options.type && options.type.length > 0) {
329242
328564
  effectiveTypes = options.type;
329243
328565
  } else if (typeOperands && typeOperands.length > 0) {
@@ -329295,7 +328617,7 @@ async function getServicesAndMapResults({
329295
328617
  const application = await settlemint.application.read(applicationUniqueName);
329296
328618
  const services = await servicesSpinner(settlemint, applicationUniqueName, types4);
329297
328619
  const results = (types4 ?? SERVICE_TYPES).filter((serviceType) => !types4 || types4.includes(serviceType)).map((serviceType) => {
329298
- const [_6, labels] = Object.entries(LABELS_MAP).find(([_key, value4]) => value4.command === serviceType) ?? [
328620
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
329299
328621
  null,
329300
328622
  { plural: serviceType }
329301
328623
  ];
@@ -329422,7 +328744,7 @@ function listCommand() {
329422
328744
 
329423
328745
  // src/commands/platform.ts
329424
328746
  function platformCommand() {
329425
- return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(pauseCommand()).addCommand(resumeCommand()).addCommand(restartCommand()).addCommand(updateCommand());
328747
+ return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(restartCommand()).addCommand(updateCommand());
329426
328748
  }
329427
328749
 
329428
328750
  // src/commands/smart-contract-set/create.ts
@@ -329472,7 +328794,7 @@ var import_which = __toESM(require_lib5(), 1);
329472
328794
  async function executeFoundryCommand(command, args) {
329473
328795
  try {
329474
328796
  await import_which.default(command);
329475
- } catch (_error) {
328797
+ } catch (error45) {
329476
328798
  cancel2("Foundry is not installed. Instructions to install Foundry can be found here: https://book.getfoundry.sh/getting-started/installation");
329477
328799
  }
329478
328800
  return executeCommand(command, args);
@@ -329560,7 +328882,7 @@ function foundryBuildCommand() {
329560
328882
  description: "Build the smart contracts with additional Forge options",
329561
328883
  command: "scs foundry build --optimize --force"
329562
328884
  }
329563
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328885
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329564
328886
  intro("Building smart contracts using Foundry");
329565
328887
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
329566
328888
  await executeFoundryCommand("forge", ["build", ...forgeOptions]);
@@ -329583,7 +328905,7 @@ function foundryFormatCommand() {
329583
328905
  description: "Format the smart contracts with additional Forge options",
329584
328906
  command: "scs foundry format --check"
329585
328907
  }
329586
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328908
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329587
328909
  intro("Formatting smart contracts using Foundry");
329588
328910
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
329589
328911
  await executeFoundryCommand("forge", ["fmt", ...forgeOptions]);
@@ -329606,7 +328928,7 @@ function foundryNetworkCommand() {
329606
328928
  description: "Start a development network using Foundry with a specific port",
329607
328929
  command: "scs foundry network --port 3000"
329608
328930
  }
329609
- ])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328931
+ ])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329610
328932
  const anvilOptions = mapPassthroughOptions(options, { args: operands });
329611
328933
  await executeFoundryCommand("anvil", anvilOptions);
329612
328934
  });
@@ -329627,7 +328949,7 @@ function foundryTestCommand() {
329627
328949
  description: "Run a specific test function",
329628
328950
  command: "scs foundry test --match-test testToken"
329629
328951
  }
329630
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328952
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329631
328953
  intro("Running smart contract tests using Foundry");
329632
328954
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
329633
328955
  await executeFoundryCommand("forge", ["test", ...forgeOptions]);
@@ -329641,7 +328963,7 @@ var validateIfRequiredPackagesAreInstalled = async (packages, cwd2) => {
329641
328963
  try {
329642
328964
  const isInstalled = await isPackageInstalled(pkg, cwd2);
329643
328965
  return { packageName: pkg, isInstalled };
329644
- } catch (_err) {
328966
+ } catch (err) {
329645
328967
  return { packageName: pkg, isInstalled: false };
329646
328968
  }
329647
328969
  }));
@@ -329666,7 +328988,7 @@ function hardhatBuildCommand() {
329666
328988
  description: "Build the smart contracts using additional options to the Hardhat compile command",
329667
328989
  command: "scs hardhat build --concurrency 2"
329668
328990
  }
329669
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328991
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329670
328992
  intro("Building smart contracts using Hardhat");
329671
328993
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
329672
328994
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -329737,7 +329059,7 @@ async function selectTargetNode({
329737
329059
  settlemint
329738
329060
  }) {
329739
329061
  const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
329740
- let node;
329062
+ let node = undefined;
329741
329063
  if (!nodeUniqueName) {
329742
329064
  if (!env2.SETTLEMINT_APPLICATION) {
329743
329065
  return missingApplication();
@@ -329961,7 +329283,7 @@ function hardhatDeployRemoteCommand() {
329961
329283
  } else {
329962
329284
  note("Smart contract deployment was cancelled");
329963
329285
  }
329964
- } catch (_error) {
329286
+ } catch (error45) {
329965
329287
  cancel2("The smart contract deployment was unsuccessful. Please check the error details above and try again. You may need to review your contract code or deployment configuration.");
329966
329288
  }
329967
329289
  });
@@ -329991,7 +329313,7 @@ function hardhatNetworkCommand() {
329991
329313
  description: "Start a development network using Hardhat with a specific port",
329992
329314
  command: "scs hardhat network --port 3000"
329993
329315
  }
329994
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
329316
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329995
329317
  intro("Starting development network using Hardhat");
329996
329318
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
329997
329319
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -330100,7 +329422,7 @@ function hardhatTestCommand() {
330100
329422
  description: "Run a specific test file",
330101
329423
  command: "scs hardhat test test/token.test.ts"
330102
329424
  }
330103
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
329425
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
330104
329426
  intro("Running smart contract tests using Hardhat");
330105
329427
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
330106
329428
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -330358,12 +329680,12 @@ async function getNodeName({
330358
329680
 
330359
329681
  // src/commands/smart-contract-set/subgraph/build.ts
330360
329682
  function subgraphBuildCommand() {
330361
- return new Command("build").description("Build the subgraph").option("--ipfs <ipfs-url>", "The IPFS URL to use for the subgraph deployment").usage(createExamples([
329683
+ return new Command("build").description("Build the subgraph").usage(createExamples([
330362
329684
  {
330363
329685
  description: "Build the subgraph",
330364
329686
  command: "scs subgraph build"
330365
329687
  }
330366
- ])).action(async ({ ipfs }) => {
329688
+ ])).action(async () => {
330367
329689
  intro("Building subgraph");
330368
329690
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
330369
329691
  await subgraphSetup({
@@ -330372,7 +329694,7 @@ function subgraphBuildCommand() {
330372
329694
  const { command, args } = await getPackageManagerExecutable();
330373
329695
  const subgraphYamlFile = await getSubgraphYamlFile();
330374
329696
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]);
330375
- await executeCommand(command, [...args, "graph", "build", ...ipfs ? ["--ipfs", ipfs] : [], subgraphYamlFile]);
329697
+ await executeCommand(command, [...args, "graph", "build", subgraphYamlFile]);
330376
329698
  outro("Subgraph built successfully");
330377
329699
  });
330378
329700
  }
@@ -330768,4 +330090,4 @@ async function sdkCliCommand(argv = process.argv) {
330768
330090
  // src/cli.ts
330769
330091
  sdkCliCommand();
330770
330092
 
330771
- //# debugId=4726156CD310F48C64756E2164756E21
330093
+ //# debugId=8478BDA9C0F9B91164756E2164756E21