mc8yp 1.0.4 → 2.0.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.
@@ -0,0 +1,18 @@
1
+ import { defineCommand, runCommand } from "citty";
2
+ //#region src/cli/subcommands/creds.ts
3
+ const command = defineCommand({
4
+ meta: {
5
+ name: "creds",
6
+ description: "Manage your Cumulocity credentials"
7
+ },
8
+ subCommands: {
9
+ add: () => import("./add-C-dXxz3k.mjs").then((m) => m.default),
10
+ remove: () => import("./remove-DJHimlMb.mjs").then((m) => m.default),
11
+ list: () => import("./list-DZcNpiMS.mjs").then((m) => m.default)
12
+ },
13
+ run: async ({ rawArgs }) => {
14
+ await runCommand(await import("./add-C-dXxz3k.mjs").then((m) => m.default), { rawArgs });
15
+ }
16
+ });
17
+ //#endregion
18
+ export { command as default };
@@ -2,7 +2,6 @@ import { r as getStoredC8yAuth } from "./cli.mjs";
2
2
  import { defineCommand } from "citty";
3
3
  import consola from "consola";
4
4
  import { exit } from "node:process";
5
-
6
5
  //#region src/cli/subcommands/subcommands/list.ts
7
6
  const command = defineCommand({
8
7
  meta: {
@@ -17,7 +16,7 @@ const command = defineCommand({
17
16
  exit();
18
17
  }
19
18
  consola.box("Stored credentials");
20
- for (const c of creds) consola.log(`${c.tenantUrl} — ${c.user}`);
19
+ for (const c of creds) consola.log(`${c.tenantUrl} (${c.tenantId}) - ${c.user}`);
21
20
  exit();
22
21
  } catch (err) {
23
22
  consola.error("Failed to list credentials:", err);
@@ -25,7 +24,5 @@ const command = defineCommand({
25
24
  }
26
25
  }
27
26
  });
28
- var list_default = command;
29
-
30
27
  //#endregion
31
- export { list_default as default };
28
+ export { command as default };
@@ -2,7 +2,6 @@ import { n as deleteStoredC8yAuth, r as getStoredC8yAuth } from "./cli.mjs";
2
2
  import { defineCommand } from "citty";
3
3
  import consola from "consola";
4
4
  import { exit } from "node:process";
5
-
6
5
  //#region src/cli/subcommands/subcommands/remove.ts
7
6
  const command = defineCommand({
8
7
  meta: {
@@ -18,7 +17,7 @@ const command = defineCommand({
18
17
  }
19
18
  const options = creds.map((c) => ({
20
19
  value: c.tenantUrl,
21
- label: `${c.tenantUrl} — ${c.user}`
20
+ label: `${c.tenantUrl} (${c.tenantId}) - ${c.user}`
22
21
  }));
23
22
  const selected = await consola.prompt("Select credentials to remove:", {
24
23
  type: "multiselect",
@@ -45,7 +44,5 @@ const command = defineCommand({
45
44
  }
46
45
  }
47
46
  });
48
- var remove_default = command;
49
-
50
47
  //#endregion
51
- export { remove_default as default };
48
+ export { command as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc8yp",
3
- "version": "1.0.4",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "description": "Cumulocity IoT MCP Server - Model Context Protocol integration for IoT device management",
6
6
  "keywords": [
@@ -30,41 +30,47 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@c8y/client": "^1023.17.6",
33
+ "@c8y/client": "^1023.68.7",
34
34
  "@napi-rs/keyring": "^1.2.0",
35
- "@schplitt/eslint-config": "^1.2.0",
36
35
  "@tmcp/adapter-valibot": "^0.1.5",
37
- "@tmcp/transport-http": "^0.8.3",
38
- "@tmcp/transport-stdio": "^0.4.1",
36
+ "@tmcp/transport-http": "^0.8.5",
37
+ "@tmcp/transport-stdio": "^0.4.2",
39
38
  "@toon-format/toon": "^2.1.0",
40
- "bumpp": "^10.3.2",
41
- "citty": "^0.1.6",
39
+ "bumpp": "^11.0.1",
40
+ "citty": "^0.2.2",
42
41
  "consola": "^3.4.2",
43
42
  "h3": "2.0.1-rc.6",
44
- "tmcp": "^1.19.0",
45
- "ufo": "^1.6.2",
43
+ "secure-exec": "^0.2.1",
44
+ "tmcp": "^1.19.3",
45
+ "ufo": "^1.6.3",
46
46
  "unctx": "^2.5.0",
47
- "valibot": "^1.2.0"
47
+ "valibot": "^1.3.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@antfu/eslint-config": "^6.7.3",
51
- "@types/node": "^24.10.7",
52
- "eslint": "^9.39.2",
53
- "tsdown": "^0.19.0",
54
- "typescript": "^5.9.3"
50
+ "@schplitt/eslint-config": "^1.4.0",
51
+ "@types/node": "^24.12.2",
52
+ "eslint": "^9.39.4",
53
+ "tsdown": "^0.21.9",
54
+ "typescript": "^5.9.3",
55
+ "vitest": "^4.1.4"
55
56
  },
56
57
  "engines": {
57
- "node": ">=20.0.0"
58
+ "node": ">=24.0.0"
58
59
  },
59
60
  "scripts": {
60
61
  "creds-add": "pnpm dlx jiti ./src/cli/index.ts creds add",
61
62
  "creds-remove": "pnpm dlx jiti ./src/cli/index.ts creds remove",
62
63
  "creds-list": "pnpm dlx jiti ./src/cli/index.ts creds list",
63
64
  "build": "tsdown",
65
+ "update:openapi": "node ./scripts/update-openapi.mjs",
66
+ "package:microservices": "node ./scripts/package-microservices.mjs",
64
67
  "lint": "eslint",
65
68
  "lint:fix": "eslint --fix",
69
+ "test": "vitest",
70
+ "test:bench": "vitest bench --run",
71
+ "test:run": "vitest run",
66
72
  "typecheck": "tsc --noEmit",
67
- "prerelease": "eslint && tsc --noEmit && pnpm build",
73
+ "prerelease": "vitest run && eslint && tsc --noEmit && pnpm build",
68
74
  "release": "bumpp"
69
75
  }
70
76
  }
@@ -1,21 +0,0 @@
1
- import { defineCommand, runCommand } from "citty";
2
-
3
- //#region src/cli/subcommands/creds.ts
4
- const command = defineCommand({
5
- meta: {
6
- name: "creds",
7
- description: "Manage your Cumulocity credentials"
8
- },
9
- subCommands: {
10
- add: () => import("./add-BnID18hd.mjs").then((m) => m.default),
11
- remove: () => import("./remove-B-bSxaTt.mjs").then((m) => m.default),
12
- list: () => import("./list-qI93mmZ-.mjs").then((m) => m.default)
13
- },
14
- run: async ({ rawArgs }) => {
15
- await runCommand(await import("./add-BnID18hd.mjs").then((m) => m.default), { rawArgs });
16
- }
17
- });
18
- var creds_default = command;
19
-
20
- //#endregion
21
- export { creds_default as default };