-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
69 lines (69 loc) · 1.78 KB
/
Copy pathpackage.json
File metadata and controls
69 lines (69 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "@switchbot/openapi-cli",
"version": "2.6.3",
"description": "SwitchBot smart home CLI — control devices, run scenes, stream real-time events, and integrate AI agents via MCP. Full API v1.1 coverage.",
"keywords": [
"switchbot",
"cli",
"iot",
"smart-home",
"home-automation",
"openapi"
],
"license": "MIT",
"author": "chenliuyun <chenliuyun@onero.com>",
"homepage": "https://github.com/OpenWonderLabs/switchbot-openapi-cli#readme",
"bugs": {
"url": "https://github.com/OpenWonderLabs/switchbot-openapi-cli/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/OpenWonderLabs/switchbot-openapi-cli.git"
},
"type": "module",
"bin": {
"switchbot": "dist/index.js"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc",
"build:prod": "tsc -p tsconfig.build.json",
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
"dev": "tsx src/index.ts",
"start": "node dist/index.js",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"prepublishOnly": "npm test && npm run clean && npm run build:prod"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"axios": "^1.7.9",
"chalk": "^5.4.1",
"cli-table3": "^0.6.5",
"commander": "^12.1.0",
"js-yaml": "^4.1.1",
"mqtt": "^5.3.0",
"pino": "^9.0.0",
"uuid": "^11.0.5"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.10.7",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^2.1.9",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vitest": "^2.1.9"
}
}