@maaxyz/maa-node 5.0.0-beta.2 → 5.0.0-beta.4

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 +11 -0
  2. package/package.json +7 -7
package/dist/tasker.d.ts CHANGED
@@ -9,6 +9,7 @@ declare global {
9
9
  type NodeDetail = {
10
10
  name: string
11
11
  reco: RecoDetail | null
12
+ action: ActionDetail | null
12
13
  completed: boolean
13
14
  }
14
15
 
@@ -41,6 +42,14 @@ declare global {
41
42
  draws: ArrayBuffer[]
42
43
  }
43
44
 
45
+ type ActionDetail = {
46
+ name: string
47
+ action: string
48
+ box: Rect
49
+ success: boolean
50
+ detail: unknown
51
+ }
52
+
44
53
  type TaskerNotify = {
45
54
  msg: 'Task.Started' | 'Task.Completed' | 'Task.Failed'
46
55
  task_id: number // TaskId
@@ -68,6 +77,7 @@ declare global {
68
77
  msg: 'Action.Starting' | 'Action.Succeeded' | 'Action.Failed'
69
78
  task_id: number // TaskId
70
79
  node_id: number // NodeId
80
+ action_id: number // ActId
71
81
  name: string
72
82
  focus: unknown
73
83
  }
@@ -101,6 +111,7 @@ declare global {
101
111
  get controller(): Controller | null
102
112
  clear_cache(): void
103
113
  recognition_detail(id: RecoId): RecoDetail | null
114
+ action_detail(id: ActId): ActionDetail | null
104
115
  node_detail(id: NodeId): NodeDetail | null
105
116
  task_detail(id: TaskId): TaskDetail | null
106
117
  latest_node(node_name: string): NodeId | 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.0.0-beta.2",
31
+ "version": "5.0.0-beta.4",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.0.0-beta.2",
34
- "@maaxyz/maa-node-darwin-x64": "5.0.0-beta.2",
35
- "@maaxyz/maa-node-linux-arm64": "5.0.0-beta.2",
36
- "@maaxyz/maa-node-linux-x64": "5.0.0-beta.2",
37
- "@maaxyz/maa-node-win32-arm64": "5.0.0-beta.2",
38
- "@maaxyz/maa-node-win32-x64": "5.0.0-beta.2"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.0.0-beta.4",
34
+ "@maaxyz/maa-node-darwin-x64": "5.0.0-beta.4",
35
+ "@maaxyz/maa-node-linux-arm64": "5.0.0-beta.4",
36
+ "@maaxyz/maa-node-linux-x64": "5.0.0-beta.4",
37
+ "@maaxyz/maa-node-win32-arm64": "5.0.0-beta.4",
38
+ "@maaxyz/maa-node-win32-x64": "5.0.0-beta.4"
39
39
  }
40
40
  }