@maaxyz/maa-node 4.2.3 → 4.3.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/tasker.d.ts +10 -5
- package/package.json +7 -7
- package/src/tasker.ts +10 -5
package/dist/tasker.d.ts
CHANGED
|
@@ -4,13 +4,18 @@ import maa from './maa';
|
|
|
4
4
|
import { ResourceBase } from './resource';
|
|
5
5
|
type TaskDetail = ReturnType<TaskerBase['task_detail']>;
|
|
6
6
|
type RecoDetailEntry = {
|
|
7
|
-
box: maa.
|
|
8
|
-
|
|
7
|
+
box: maa.FlatRect;
|
|
8
|
+
score?: number;
|
|
9
|
+
count?: number;
|
|
10
|
+
text?: string;
|
|
11
|
+
cls_index?: number;
|
|
12
|
+
label?: string;
|
|
13
|
+
detail?: string | Record<string, unknown>;
|
|
9
14
|
};
|
|
10
15
|
export type RecoDetail = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
all: RecoDetailEntry[];
|
|
17
|
+
filtered: RecoDetailEntry[];
|
|
18
|
+
best: RecoDetailEntry | null;
|
|
14
19
|
};
|
|
15
20
|
declare class TaskJob extends Job<maa.TaskId, JobSource<maa.TaskId>> {
|
|
16
21
|
#private;
|
package/package.json
CHANGED
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"prettier": "^3.5.2",
|
|
26
26
|
"typescript": "^5.8.2"
|
|
27
27
|
},
|
|
28
|
-
"version": "4.2
|
|
28
|
+
"version": "4.3.0-beta.2",
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@maaxyz/maa-node-darwin-arm64": "4.2
|
|
31
|
-
"@maaxyz/maa-node-darwin-x64": "4.2
|
|
32
|
-
"@maaxyz/maa-node-linux-arm64": "4.2
|
|
33
|
-
"@maaxyz/maa-node-linux-x64": "4.2
|
|
34
|
-
"@maaxyz/maa-node-win32-arm64": "4.2
|
|
35
|
-
"@maaxyz/maa-node-win32-x64": "4.2
|
|
30
|
+
"@maaxyz/maa-node-darwin-arm64": "4.3.0-beta.2",
|
|
31
|
+
"@maaxyz/maa-node-darwin-x64": "4.3.0-beta.2",
|
|
32
|
+
"@maaxyz/maa-node-linux-arm64": "4.3.0-beta.2",
|
|
33
|
+
"@maaxyz/maa-node-linux-x64": "4.3.0-beta.2",
|
|
34
|
+
"@maaxyz/maa-node-win32-arm64": "4.3.0-beta.2",
|
|
35
|
+
"@maaxyz/maa-node-win32-x64": "4.3.0-beta.2"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/tasker.ts
CHANGED
|
@@ -6,14 +6,19 @@ import { ResourceBase } from './resource'
|
|
|
6
6
|
type TaskDetail = ReturnType<TaskerBase['task_detail']>
|
|
7
7
|
|
|
8
8
|
type RecoDetailEntry = {
|
|
9
|
-
box: maa.
|
|
10
|
-
|
|
9
|
+
box: maa.FlatRect
|
|
10
|
+
score?: number // TemplateMatch
|
|
11
|
+
count?: number // FeatureMatch | ColorMatch
|
|
12
|
+
text?: string // OCR
|
|
13
|
+
cls_index?: number // NeuralNetworkClassify | NeuralNetworkDetect
|
|
14
|
+
label?: string // NeuralNetworkClassify | NeuralNetworkDetect
|
|
15
|
+
detail?: string | Record<string, unknown> // Custom
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
export type RecoDetail = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
all: RecoDetailEntry[]
|
|
20
|
+
filtered: RecoDetailEntry[]
|
|
21
|
+
best: RecoDetailEntry | null
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
class TaskJob extends Job<maa.TaskId, JobSource<maa.TaskId>> {
|