@maaxyz/maa-node 5.0.0-alpha.2 → 5.0.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.
Files changed (2) hide show
  1. package/dist/tasker.d.ts +14 -1
  2. package/package.json +15 -9
package/dist/tasker.d.ts CHANGED
@@ -22,12 +22,25 @@ declare global {
22
22
  detail?: string | Record<string, unknown> // Custom
23
23
  }
24
24
 
25
- type RecoDetail = {
25
+ type RecoDetailObject = {
26
26
  all: RecoDetailEntry[]
27
27
  filtered: RecoDetailEntry[]
28
28
  best: RecoDetailEntry | null
29
29
  }
30
30
 
31
+ type RecoDetailWithoutDraws = {
32
+ name: string
33
+ algorithm: string
34
+ hit: boolean
35
+ box: Rect
36
+ detail: RecoDetailObject
37
+ }
38
+
39
+ type RecoDetail = RecoDetailWithoutDraws & {
40
+ raw: ArrayBuffer
41
+ draws: ArrayBuffer[]
42
+ }
43
+
31
44
  type TaskerNotify = {
32
45
  msg: 'Task.Started' | 'Task.Completed' | 'Task.Failed'
33
46
  task_id: maa.TaskId
package/package.json CHANGED
@@ -4,8 +4,14 @@
4
4
  "main": "./dist/index-client.js",
5
5
  "types": "./dist/index-client.d.ts",
6
6
  "exports": {
7
- ".": "./dist/index-server.js",
8
- "./server": "./dist/index-server.d.ts"
7
+ ".": {
8
+ "default": "./dist/index-client.js",
9
+ "types": "./dist/index-client.d.ts"
10
+ },
11
+ "./server": {
12
+ "default": "./dist/index-server.js",
13
+ "types": "./dist/index-server.d.ts"
14
+ }
9
15
  },
10
16
  "repository": {
11
17
  "type": "git",
@@ -22,13 +28,13 @@
22
28
  "prettier": "^3.5.2",
23
29
  "typescript": "^5.8.2"
24
30
  },
25
- "version": "5.0.0-alpha.2",
31
+ "version": "5.0.0-alpha.3",
26
32
  "optionalDependencies": {
27
- "@maaxyz/maa-node-darwin-arm64": "5.0.0-alpha.2",
28
- "@maaxyz/maa-node-darwin-x64": "5.0.0-alpha.2",
29
- "@maaxyz/maa-node-linux-arm64": "5.0.0-alpha.2",
30
- "@maaxyz/maa-node-linux-x64": "5.0.0-alpha.2",
31
- "@maaxyz/maa-node-win32-arm64": "5.0.0-alpha.2",
32
- "@maaxyz/maa-node-win32-x64": "5.0.0-alpha.2"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.0.0-alpha.3",
34
+ "@maaxyz/maa-node-darwin-x64": "5.0.0-alpha.3",
35
+ "@maaxyz/maa-node-linux-arm64": "5.0.0-alpha.3",
36
+ "@maaxyz/maa-node-linux-x64": "5.0.0-alpha.3",
37
+ "@maaxyz/maa-node-win32-arm64": "5.0.0-alpha.3",
38
+ "@maaxyz/maa-node-win32-x64": "5.0.0-alpha.3"
33
39
  }
34
40
  }