@maaxyz/maa-node 5.6.0 → 5.7.0-alpha.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.
@@ -146,7 +146,7 @@ declare global {
146
146
 
147
147
  type RecognitionAnd<Mode> = RequiredIfStrict<
148
148
  {
149
- all_of?: Recognition<Mode>['recognition'][]
149
+ all_of?: (string | Recognition<Mode>['recognition'])[]
150
150
  box_index?: number
151
151
  },
152
152
  'all_of',
@@ -155,7 +155,7 @@ declare global {
155
155
 
156
156
  type RecognitionOr<Mode> = RequiredIfStrict<
157
157
  {
158
- any_of: Recognition<Mode>['recognition'][]
158
+ any_of: (string | Recognition<Mode>['recognition'])[]
159
159
  },
160
160
  'any_of',
161
161
  Mode
package/dist/tasker.d.ts CHANGED
@@ -2,7 +2,7 @@ declare global {
2
2
  namespace maa {
3
3
  type TaskDetail = {
4
4
  entry: string
5
- nodes: (NodeDetail | null)[]
5
+ nodes: NodeId[]
6
6
  status: Status
7
7
  }
8
8
 
@@ -159,7 +159,10 @@ 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
+ override_pipeline(
163
+ task_id: TaskId,
164
+ pipeline: Record<string, unknown> | Record<string, unknown>[],
165
+ ): void
163
166
  recognition_detail(id: RecoId): RecoDetail | null
164
167
  action_detail(id: ActId): ActionDetail | null
165
168
  node_detail(id: NodeId): NodeDetail | null
package/package.json CHANGED
@@ -20,13 +20,13 @@
20
20
  "engines": {
21
21
  "node": ">= 20.0.0"
22
22
  },
23
- "version": "5.6.0",
23
+ "version": "5.7.0-alpha.2",
24
24
  "optionalDependencies": {
25
- "@maaxyz/maa-node-darwin-arm64": "5.6.0",
26
- "@maaxyz/maa-node-darwin-x64": "5.6.0",
27
- "@maaxyz/maa-node-linux-arm64": "5.6.0",
28
- "@maaxyz/maa-node-linux-x64": "5.6.0",
29
- "@maaxyz/maa-node-win32-arm64": "5.6.0",
30
- "@maaxyz/maa-node-win32-x64": "5.6.0"
25
+ "@maaxyz/maa-node-darwin-arm64": "5.7.0-alpha.2",
26
+ "@maaxyz/maa-node-darwin-x64": "5.7.0-alpha.2",
27
+ "@maaxyz/maa-node-linux-arm64": "5.7.0-alpha.2",
28
+ "@maaxyz/maa-node-linux-x64": "5.7.0-alpha.2",
29
+ "@maaxyz/maa-node-win32-arm64": "5.7.0-alpha.2",
30
+ "@maaxyz/maa-node-win32-x64": "5.7.0-alpha.2"
31
31
  }
32
32
  }