@maaxyz/maa-node 5.8.0-alpha.1 → 5.8.0-alpha.3

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.
@@ -76,8 +76,10 @@ declare global {
76
76
  * | PrintWindow | Medium | Medium | No | Yes | |
77
77
  * | ScreenDC | Fast | High | No | No | |
78
78
  *
79
- * Note: When a window is minimized on Windows, all screencap methods will fail.
80
- * Avoid minimizing the target window.
79
+ * Note: FramePool and PrintWindow have built-in pseudo-minimize support
80
+ * when the target window is minimized, they make it transparent and click-through,
81
+ * then restore it without activation, allowing screencap to continue.
82
+ * Other screencap methods will fail when the target window is minimized.
81
83
  */
82
84
  const Win32ScreencapMethod: Record<
83
85
  | 'GDI'
@@ -38,10 +38,10 @@ declare global {
38
38
  get_node_data_parsed(node_name: string): DumpTask | null
39
39
  get_default_recognition_param(
40
40
  reco_type: RecognitionType,
41
- ): Recognition<ModeFragment>['recognition']['param'] | null
41
+ ): Exclude<Recognition<ModeFragment>['recognition'], string | undefined>['param'] | null
42
42
  get_default_action_param(
43
43
  action_type: ActionType,
44
- ): Action<ModeFragment>['action']['param'] | null
44
+ ): Exclude<Action<ModeFragment>['action'], string | undefined>['param'] | null
45
45
  clear(): void
46
46
  status(id: ResId): Status
47
47
  wait(id: ResId): Promise<Status>
package/package.json CHANGED
@@ -20,13 +20,13 @@
20
20
  "engines": {
21
21
  "node": ">= 20.0.0"
22
22
  },
23
- "version": "5.8.0-alpha.1",
23
+ "version": "5.8.0-alpha.3",
24
24
  "optionalDependencies": {
25
- "@maaxyz/maa-node-darwin-arm64": "5.8.0-alpha.1",
26
- "@maaxyz/maa-node-darwin-x64": "5.8.0-alpha.1",
27
- "@maaxyz/maa-node-linux-arm64": "5.8.0-alpha.1",
28
- "@maaxyz/maa-node-linux-x64": "5.8.0-alpha.1",
29
- "@maaxyz/maa-node-win32-arm64": "5.8.0-alpha.1",
30
- "@maaxyz/maa-node-win32-x64": "5.8.0-alpha.1"
25
+ "@maaxyz/maa-node-darwin-arm64": "5.8.0-alpha.3",
26
+ "@maaxyz/maa-node-darwin-x64": "5.8.0-alpha.3",
27
+ "@maaxyz/maa-node-linux-arm64": "5.8.0-alpha.3",
28
+ "@maaxyz/maa-node-linux-x64": "5.8.0-alpha.3",
29
+ "@maaxyz/maa-node-win32-arm64": "5.8.0-alpha.3",
30
+ "@maaxyz/maa-node-win32-x64": "5.8.0-alpha.3"
31
31
  }
32
32
  }