@maaxyz/maa-node 5.3.0 → 5.3.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.
package/dist/context.d.ts CHANGED
@@ -9,7 +9,7 @@ declare global {
9
9
  ): Promise<TaskDetail | null>
10
10
  run_recognition(
11
11
  entry: string,
12
- image: ImageData | Buffer,
12
+ image: ImageData,
13
13
  pipeline_override?: Record<string, unknown> | Record<string, unknown>[],
14
14
  ): Promise<RecoDetail | null>
15
15
  run_action(
@@ -22,7 +22,7 @@ declare global {
22
22
  pipeline_override: Record<string, unknown> | Record<string, unknown>[],
23
23
  ): void
24
24
  override_next(node_name: string, next: string[]): void
25
- override_image(image_name: string, image: ImageData | Buffer): void
25
+ override_image(image_name: string, image: ImageData): void
26
26
  get_node_data(node_name: string): string | null
27
27
  get_node_data_parsed(node_name: string): DumpTask | null
28
28
  get task_id(): TaskId
@@ -33,7 +33,7 @@ declare global {
33
33
  pipeline_override: Record<string, unknown> | Record<string, unknown>[],
34
34
  ): void
35
35
  override_next(node_name: string, next_list: string[]): void
36
- override_image(image_name: string, image: ImageData | Buffer): void
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
39
  clear(): void
package/dist/tasker.d.ts CHANGED
@@ -34,7 +34,7 @@ declare global {
34
34
  algorithm: string
35
35
  hit: boolean
36
36
  box: Rect
37
- detail: RecoDetailObject
37
+ detail: RecoDetailObject | RecoDetailWithoutDraws[]
38
38
  }
39
39
 
40
40
  type RecoDetail = RecoDetailWithoutDraws & {
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",
31
+ "version": "5.3.2",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.3.0",
34
- "@maaxyz/maa-node-darwin-x64": "5.3.0",
35
- "@maaxyz/maa-node-linux-arm64": "5.3.0",
36
- "@maaxyz/maa-node-linux-x64": "5.3.0",
37
- "@maaxyz/maa-node-win32-arm64": "5.3.0",
38
- "@maaxyz/maa-node-win32-x64": "5.3.0"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.3.2",
34
+ "@maaxyz/maa-node-darwin-x64": "5.3.2",
35
+ "@maaxyz/maa-node-linux-arm64": "5.3.2",
36
+ "@maaxyz/maa-node-linux-x64": "5.3.2",
37
+ "@maaxyz/maa-node-win32-arm64": "5.3.2",
38
+ "@maaxyz/maa-node-win32-x64": "5.3.2"
39
39
  }
40
40
  }