@maaxyz/maa-node 5.4.3 → 5.5.0-beta.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 +11 -0
- package/dist/pipeline.d.ts +2 -0
- package/dist/resource.d.ts +6 -0
- package/dist/tasker.d.ts +1 -0
- package/package.json +7 -7
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
|
package/dist/pipeline.d.ts
CHANGED
package/dist/resource.d.ts
CHANGED
|
@@ -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
|
@@ -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.
|
|
31
|
+
"version": "5.5.0-beta.2",
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@maaxyz/maa-node-darwin-arm64": "5.
|
|
34
|
-
"@maaxyz/maa-node-darwin-x64": "5.
|
|
35
|
-
"@maaxyz/maa-node-linux-arm64": "5.
|
|
36
|
-
"@maaxyz/maa-node-linux-x64": "5.
|
|
37
|
-
"@maaxyz/maa-node-win32-arm64": "5.
|
|
38
|
-
"@maaxyz/maa-node-win32-x64": "5.
|
|
33
|
+
"@maaxyz/maa-node-darwin-arm64": "5.5.0-beta.2",
|
|
34
|
+
"@maaxyz/maa-node-darwin-x64": "5.5.0-beta.2",
|
|
35
|
+
"@maaxyz/maa-node-linux-arm64": "5.5.0-beta.2",
|
|
36
|
+
"@maaxyz/maa-node-linux-x64": "5.5.0-beta.2",
|
|
37
|
+
"@maaxyz/maa-node-win32-arm64": "5.5.0-beta.2",
|
|
38
|
+
"@maaxyz/maa-node-win32-x64": "5.5.0-beta.2"
|
|
39
39
|
}
|
|
40
40
|
}
|