@maaxyz/maa-node 5.4.2 → 5.5.0-beta.1

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/dist/context.d.ts CHANGED
@@ -18,6 +18,17 @@ declare global {
18
18
  reco_detail: string,
19
19
  pipeline_override?: Record<string, unknown> | Record<string, unknown>[],
20
20
  ): Promise<NodeDetail | null>
21
+ run_recognition_direct(
22
+ reco_type: RecognitionType,
23
+ reco_param: Record<string, unknown>,
24
+ image: ImageData,
25
+ ): Promise<RecoDetail | null>
26
+ run_action_direct(
27
+ action_type: ActionType,
28
+ action_param: Record<string, unknown>,
29
+ box: Rect,
30
+ reco_detail: string,
31
+ ): Promise<NodeDetail | null>
21
32
  override_pipeline(
22
33
  pipeline_override: Record<string, unknown> | Record<string, unknown>[],
23
34
  ): void
@@ -327,6 +327,8 @@ declare global {
327
327
  type ActionStopTask = {}
328
328
 
329
329
  type ActionScroll = {
330
+ target?: true | NodeName | Rect
331
+ target_offset?: Rect
330
332
  dx?: number
331
333
  dy?: number
332
334
  }
@@ -36,6 +36,12 @@ declare global {
36
36
  override_image(image_name: string, image: ImageData): void
37
37
  get_node_data(node_name: string): string | null
38
38
  get_node_data_parsed(node_name: string): DumpTask | null
39
+ get_default_recognition_param(
40
+ reco_type: RecognitionType,
41
+ ): Recognition<ModeFragment>['recognition']['param'] | null
42
+ get_default_action_param(
43
+ action_type: ActionType,
44
+ ): Action<ModeFragment>['action']['param'] | null
39
45
  clear(): void
40
46
  status(id: ResId): Status
41
47
  wait(id: ResId): Promise<Status>
package/dist/tasker.d.ts CHANGED
@@ -151,7 +151,7 @@ declare global {
151
151
  post_stop(): TaskJob
152
152
  status(id: TaskId): Status
153
153
  wait(id: TaskId): Promise<Status>
154
- get inited(): boolean
154
+ get inited(): Promise<boolean>
155
155
  get running(): boolean
156
156
  get stopping(): boolean
157
157
  set resource(res: Resource | null)
@@ -159,6 +159,7 @@ declare global {
159
159
  set controller(res: Controller | null)
160
160
  get controller(): Controller | null
161
161
  clear_cache(): void
162
+ override_pipeline(task_id: TaskId, pipeline: Record<string, unknown> | Record<string, unknown>[]): void
162
163
  recognition_detail(id: RecoId): RecoDetail | null
163
164
  action_detail(id: ActId): ActionDetail | null
164
165
  node_detail(id: NodeId): NodeDetail | null
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.4.2",
31
+ "version": "5.5.0-beta.1",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.4.2",
34
- "@maaxyz/maa-node-darwin-x64": "5.4.2",
35
- "@maaxyz/maa-node-linux-arm64": "5.4.2",
36
- "@maaxyz/maa-node-linux-x64": "5.4.2",
37
- "@maaxyz/maa-node-win32-arm64": "5.4.2",
38
- "@maaxyz/maa-node-win32-x64": "5.4.2"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.5.0-beta.1",
34
+ "@maaxyz/maa-node-darwin-x64": "5.5.0-beta.1",
35
+ "@maaxyz/maa-node-linux-arm64": "5.5.0-beta.1",
36
+ "@maaxyz/maa-node-linux-x64": "5.5.0-beta.1",
37
+ "@maaxyz/maa-node-win32-arm64": "5.5.0-beta.1",
38
+ "@maaxyz/maa-node-win32-x64": "5.5.0-beta.1"
39
39
  }
40
40
  }