@switchbot/openapi-cli 3.2.0 → 3.2.2

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/README.md +3 -1
  2. package/dist/index.js +429 -26
  3. package/package.json +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switchbot/openapi-cli",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "SwitchBot smart home CLI — control devices, run scenes, stream real-time events, and integrate AI agents via MCP. Full API v1.1 coverage.",
5
5
  "keywords": [
6
6
  "switchbot",
@@ -36,17 +36,21 @@
36
36
  "access": "public"
37
37
  },
38
38
  "scripts": {
39
- "build": "tsc && node scripts/copy-assets.mjs",
40
- "build:prod": "node scripts/bundle.mjs && node scripts/copy-assets.mjs",
41
- "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
39
+ "typecheck": "tsc --noEmit",
40
+ "build": "node scripts/build.mjs",
42
41
  "dev": "tsx src/index.ts",
42
+ "hooks:install": "node scripts/install-git-hooks.mjs",
43
43
  "lint:md": "markdownlint \"**/*.md\"",
44
44
  "lint:md:changelog": "markdownlint CHANGELOG.md",
45
+ "prepare": "node scripts/install-git-hooks.mjs",
45
46
  "start": "node dist/index.js",
47
+ "smoke:pack-install": "node scripts/smoke-pack-install.mjs",
46
48
  "test": "vitest run",
47
49
  "test:watch": "vitest",
48
50
  "test:coverage": "vitest run --coverage",
49
- "prepublishOnly": "npm test && npm run clean && npm run build:prod"
51
+ "verify:pre-commit": "npm run build && npm test -- tests/version.test.ts",
52
+ "verify:pre-push": "npm run build && npm test -- tests/version.test.ts && npm run smoke:pack-install",
53
+ "prepublishOnly": "npm test && npm run build && npm run smoke:pack-install"
50
54
  },
51
55
  "dependencies": {
52
56
  "@modelcontextprotocol/sdk": "^1.29.0",