@maaxyz/maa-node 5.0.0-beta.3 → 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 +10 -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
@@ -102,6 +111,7 @@ declare global {
102
111
  get controller(): Controller | null
103
112
  clear_cache(): void
104
113
  recognition_detail(id: RecoId): RecoDetail | null
114
+ action_detail(id: ActId): ActionDetail | null
105
115
  node_detail(id: NodeId): NodeDetail | null
106
116
  task_detail(id: TaskId): TaskDetail | null
107
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.3",
31
+ "version": "5.0.0-beta.4",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.0.0-beta.3",
34
- "@maaxyz/maa-node-darwin-x64": "5.0.0-beta.3",
35
- "@maaxyz/maa-node-linux-arm64": "5.0.0-beta.3",
36
- "@maaxyz/maa-node-linux-x64": "5.0.0-beta.3",
37
- "@maaxyz/maa-node-win32-arm64": "5.0.0-beta.3",
38
- "@maaxyz/maa-node-win32-x64": "5.0.0-beta.3"
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
  }