@maaxyz/maa-node 5.3.0-beta.4 → 5.3.0-beta.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.
@@ -218,6 +218,10 @@ declare global {
218
218
  static find(): Promise<DesktopDevice[] | null>
219
219
  }
220
220
 
221
+ class PlayCoverController extends Controller {
222
+ constructor(address: string, uuid: string)
223
+ }
224
+
221
225
  class DbgController extends Controller {
222
226
  constructor(
223
227
  read_path: string,
@@ -27,7 +27,10 @@ declare global {
27
27
  NeuralNetworkDetect: 'Horizontal' | 'Vertical' | 'Score' | 'Area' | 'Random' | 'Expected'
28
28
  }
29
29
 
30
- type RecognitionDirectHit = {}
30
+ type RecognitionDirectHit = {
31
+ roi?: Rect | NodeName
32
+ roi_offset?: Rect
33
+ }
31
34
 
32
35
  type RecognitionTemplateMatch<Mode> = RequiredIfStrict<
33
36
  {
@@ -139,6 +142,26 @@ declare global {
139
142
  Mode
140
143
  >
141
144
 
145
+ type SubRecognition<Mode> = {
146
+ sub_name?: string
147
+ recognition?: string | { type: string; param?: unknown }
148
+ roi?: Rect | NodeName
149
+ roi_offset?: Rect
150
+ template?: MaybeArray<string, Mode>
151
+ threshold?: MaybeArray<number, Mode>
152
+ expected?: MaybeArray<string | number, Mode>
153
+ [key: string]: unknown
154
+ }
155
+
156
+ type RecognitionAnd<Mode> = {
157
+ all_of: SubRecognition<Mode>[]
158
+ box_index?: number
159
+ }
160
+
161
+ type RecognitionOr<Mode> = {
162
+ any_of: SubRecognition<Mode>[]
163
+ }
164
+
142
165
  type MixReco<Type extends string, Param, Mode> =
143
166
  | {
144
167
  recognition: {
@@ -170,6 +193,8 @@ declare global {
170
193
  | MixReco<'OCR', RecognitionOCR<Mode>, Mode>
171
194
  | MixReco<'NeuralNetworkClassify', RecognitionNeuralNetworkClassify<Mode>, Mode>
172
195
  | MixReco<'NeuralNetworkDetect', RecognitionNeuralNetworkDetect<Mode>, Mode>
196
+ | MixReco<'And', RecognitionAnd<Mode>, Mode>
197
+ | MixReco<'Or', RecognitionOr<Mode>, Mode>
173
198
  | MixReco<'Custom', RecognitionCustom<Mode>, Mode>
174
199
 
175
200
  type ActionDoNothing = {}
package/package.json CHANGED
@@ -28,13 +28,13 @@
28
28
  "prettier": "^3.5.2",
29
29
  "typescript": "^5.8.2"
30
30
  },
31
- "version": "5.3.0-beta.4",
31
+ "version": "5.3.0-beta.6",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.3.0-beta.4",
34
- "@maaxyz/maa-node-darwin-x64": "5.3.0-beta.4",
35
- "@maaxyz/maa-node-linux-arm64": "5.3.0-beta.4",
36
- "@maaxyz/maa-node-linux-x64": "5.3.0-beta.4",
37
- "@maaxyz/maa-node-win32-arm64": "5.3.0-beta.4",
38
- "@maaxyz/maa-node-win32-x64": "5.3.0-beta.4"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.3.0-beta.6",
34
+ "@maaxyz/maa-node-darwin-x64": "5.3.0-beta.6",
35
+ "@maaxyz/maa-node-linux-arm64": "5.3.0-beta.6",
36
+ "@maaxyz/maa-node-linux-x64": "5.3.0-beta.6",
37
+ "@maaxyz/maa-node-win32-arm64": "5.3.0-beta.6",
38
+ "@maaxyz/maa-node-win32-x64": "5.3.0-beta.6"
39
39
  }
40
40
  }