mc8yp 2.3.2 → 2.4.0

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.
@@ -7,7 +7,7 @@ const command = defineCommand({
7
7
  },
8
8
  subCommands: {
9
9
  add: () => import("./add-CO4XaqJr.mjs").then((m) => m.default),
10
- remove: () => import("./remove-CAB5quKV.mjs").then((m) => m.default),
10
+ remove: () => import("./remove-C6FCjW31.mjs").then((m) => m.default),
11
11
  list: () => import("./list-DGPagAtJ.mjs").then((m) => m.default)
12
12
  },
13
13
  run: async ({ rawArgs }) => {
@@ -30,8 +30,12 @@ const command = defineCommand({
30
30
  let removed = 0;
31
31
  for (const sel of selections) {
32
32
  const tenantUrl = typeof sel === "string" ? sel : sel.value;
33
- if (await deleteStoredC8yAuth(tenantUrl)) removed++;
34
- else consola.warn(`Failed to remove credentials for: ${tenantUrl}`);
33
+ try {
34
+ if (await deleteStoredC8yAuth(tenantUrl)) removed++;
35
+ else consola.warn(`No stored credentials found for: ${tenantUrl}`);
36
+ } catch (err) {
37
+ consola.warn(`Failed to remove credentials for ${tenantUrl}: ${err instanceof Error ? err.message : String(err)}`);
38
+ }
35
39
  }
36
40
  if (removed === 0) consola.info("No credentials were removed.");
37
41
  else consola.success(`Removed ${removed} credential(s).`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc8yp",
3
- "version": "2.3.2",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "description": "Cumulocity IoT MCP Server - Model Context Protocol integration for IoT device management",
6
6
  "keywords": [