ms-vite-plugin 1.2.4 → 1.2.6

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.
package/docs/api/hid.md CHANGED
@@ -309,7 +309,7 @@ function click(
309
309
  | ---- | ---- | ---- | ------ | ---- |
310
310
  | `x` | number | 是 | - | 点击的 X 坐标 |
311
311
  | `y` | number | 是 | - | 点击的 Y 坐标 |
312
- | `duration` | number | 否 | 10 | 点击持续时间(毫秒) |
312
+ | `duration` | number | 否 | 20 | 点击持续时间(毫秒) |
313
313
  | `jitter` | boolean | 否 | false | 启用随机抖动偏移 |
314
314
 
315
315
  **返回值:**
package/docs/api/node.md CHANGED
@@ -70,7 +70,6 @@ interface NodeInfo {
70
70
  value: string; // 节点值
71
71
  placeholderValue: string; // 节点占位符值
72
72
  title: string; // 节点名称
73
- visible: boolean; // 是否可见
74
73
  enabled: boolean; // 是否启用
75
74
  bounds: NodeBoundsInfo; // 边界信息
76
75
  depth: number; // 层级深度
@@ -194,9 +193,6 @@ typeMatch(match: string): NodeSelector
194
193
 
195
194
  // 启用状态
196
195
  enabled(enabled: boolean): NodeSelector
197
-
198
- // 可见性
199
- visible(visible: boolean): NodeSelector
200
196
  ```
201
197
 
202
198
  **示例:**
@@ -344,7 +340,7 @@ if (textField) {
344
340
 
345
341
  // 查找同级的按钮
346
342
  const siblingButtons = siblings.filter(
347
- (node) => node.type === "XCUIElementTypeButton"
343
+ (node) => node.type === "XCUIElementTypeButton",
348
344
  );
349
345
  }
350
346
  }
package/docs/apicn/hid.md CHANGED
@@ -309,7 +309,7 @@ function 点击(
309
309
  | ---- | ---- | ---- | ------ | ---- |
310
310
  | `坐标x` | 数字 | 是 | - | 点击坐标的 X 轴 |
311
311
  | `坐标y` | 数字 | 是 | - | 点击坐标的 Y 轴 |
312
- | `按下持续时间` | 数字 | 否 | 10 | 点击持续时间(毫秒) |
312
+ | `按下持续时间` | 数字 | 否 | 20 | 点击持续时间(毫秒) |
313
313
  | `抖动` | 布尔值 | 否 | false | 是否添加随机抖动 |
314
314
 
315
315
  **返回值:**
@@ -73,7 +73,6 @@ interface $节点信息 {
73
73
  value: 字符串; // 节点值
74
74
  placeholderValue: 字符串; // 节点占位符值
75
75
  title: 字符串; // 节点名称
76
- visible: 布尔值; // 是否可见
77
76
  enabled: 布尔值; // 是否启用
78
77
  bounds: $节点位置信息; // 边界信息
79
78
  depth: 数字; // 层级深度
@@ -201,9 +200,6 @@ typeMatch(match: string): $节点选择器
201
200
 
202
201
  // 启用状态
203
202
  enabled(enabled: boolean): $节点选择器
204
-
205
- // 可见性
206
- visible(visible: boolean): $节点选择器
207
203
  ```
208
204
 
209
205
  **示例:**
@@ -352,7 +348,7 @@ if (textField) {
352
348
 
353
349
  // 查找同级的按钮
354
350
  const siblingButtons = siblings.filter(
355
- (node) => node.type === "XCUIElementTypeButton"
351
+ (node) => node.type === "XCUIElementTypeButton",
356
352
  );
357
353
  }
358
354
  }
@@ -308,7 +308,7 @@ hid.setJitterValue(5)
308
308
  def click(
309
309
  x: int,
310
310
  y: int,
311
- duration: int = 10,
311
+ duration: int = 20,
312
312
  jitter: bool = False
313
313
  ) -> bool
314
314
  ```
@@ -318,7 +318,7 @@ def click(
318
318
  | ---- | ---- | ---- | ------ | ---- |
319
319
  | `x` | int | 是 | - | 点击的 X 坐标 |
320
320
  | `y` | int | 是 | - | 点击的 Y 坐标 |
321
- | `duration` | int | 否 | 10 | 点击持续时间(毫秒) |
321
+ | `duration` | int | 否 | 20 | 点击持续时间(毫秒) |
322
322
  | `jitter` | bool | 否 | False | 启用随机抖动偏移 |
323
323
 
324
324
  **返回值:**
@@ -27,7 +27,6 @@ class NodeInfo:
27
27
  value: str
28
28
  placeholderValue: str
29
29
  title: str
30
- visible: bool
31
30
  enabled: bool
32
31
  bounds: NodeBounds
33
32
  depth: int
@@ -181,9 +180,6 @@ def typeMatch(pattern: str) -> NodeSelector
181
180
 
182
181
  # 启用状态
183
182
  def enabled(flag: bool) -> NodeSelector
184
-
185
- # 可见性
186
- def visible(flag: bool) -> NodeSelector
187
183
  ```
188
184
 
189
185
  **示例:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -21,23 +21,23 @@
21
21
  "prepublishOnly": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@modelcontextprotocol/sdk": "^1.18.1",
25
- "archiver": "^7.0.1",
24
+ "@modelcontextprotocol/sdk": "^1.29.0",
25
+ "archiver": "^8.0.0",
26
26
  "commander": "^14.0.3",
27
27
  "crc": "^4.3.2",
28
- "fs-extra": "^11.3.4",
28
+ "fs-extra": "^11.3.5",
29
29
  "sharp": "^0.34.5",
30
30
  "uuid": "^14.0.0",
31
- "vite": "^8.0.9",
32
- "vite-plugin-bundle-obfuscator": "^1.11.0",
33
- "ws": "^8.20.0",
34
- "zod": "^4.1.12"
31
+ "vite": "^8.0.13",
32
+ "vite-plugin-bundle-obfuscator": "^1.12.0",
33
+ "ws": "^8.20.1",
34
+ "zod": "^4.4.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/archiver": "^7.0.0",
38
38
  "@types/crc": "^4.0.0",
39
39
  "@types/fs-extra": "^11.0.4",
40
- "@types/node": "^25.6.0",
40
+ "@types/node": "^25.9.0",
41
41
  "@types/uuid": "^11.0.0",
42
42
  "@types/ws": "^8.18.1",
43
43
  "typescript": "~6.0.3"