-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 3.16 KB
/
package.json
File metadata and controls
83 lines (83 loc) · 3.16 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"name": "@switchbot/openapi-cli",
"version": "3.3.2",
"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": {
"typecheck": "tsc --noEmit",
"build": "node scripts/build.mjs",
"dev": "tsx src/index.ts",
"hooks:install": "node scripts/install-git-hooks.mjs",
"lint:md": "markdownlint \"**/*.md\"",
"lint:md:changelog": "markdownlint CHANGELOG.md",
"prepare": "node scripts/install-git-hooks.mjs",
"start": "node dist/index.js",
"smoke:pack-install": "node scripts/smoke-pack-install.mjs",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:release-smoke:manual": "npm test -- tests/commands/policy.test.ts tests/commands/devices.test.ts tests/commands/explain.test.ts tests/commands/doctor.test.ts tests/commands/mcp.test.ts tests/commands/health-check.test.ts tests/commands/quota.test.ts tests/commands/status-sync.test.ts tests/status-sync/smoke.test.ts tests/commands/watch.test.ts tests/commands/events.test.ts tests/devices/catalog-fidelity.test.ts tests/commands/schema.test.ts tests/commands/auth.test.ts tests/commands/config.test.ts tests/commands/scenes.test.ts tests/commands/batch.test.ts tests/commands/history.test.ts tests/commands/expand.test.ts tests/commands/webhook.test.ts tests/commands/daemon.test.ts tests/commands/upgrade-check.test.ts tests/commands/install.test.ts tests/commands/uninstall.test.ts tests/commands/rules.test.ts tests/commands/plan.test.ts",
"verify:pre-commit": "npm run build && npm test -- tests/version.test.ts",
"verify:pre-push": "npm run build && npm test -- tests/version.test.ts && npm run smoke:pack-install",
"prepublishOnly": "npm test && npm run build && npm run smoke:pack-install"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"ajv": "^8.18.0",
"ajv-formats": "^3.0.1",
"axios": "^1.7.9",
"chalk": "^5.4.1",
"cli-table3": "^0.6.5",
"commander": "^12.1.0",
"croner": "^10.0.1",
"js-yaml": "^4.1.1",
"mqtt": "^5.3.0",
"pino": "^9.0.0",
"uuid": "^11.0.5",
"yaml": "^2.8.3",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.10.7",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^2.1.9",
"esbuild": "^0.28.0",
"markdownlint-cli": "^0.48.0",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vitest": "^2.1.9"
}
}