@maaxyz/maa-node 5.0.0-alpha.4 → 5.0.0-alpha.6

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 CHANGED
@@ -22,6 +22,7 @@ declare global {
22
22
  pipeline_override: Record<string, unknown> | Record<string, unknown>[],
23
23
  ): void
24
24
  override_next(node_name: string, next: string[]): void
25
+ override_image(image_name: string, image: ImageData | Buffer): void
25
26
  get_node_data(node_name: string): string | null
26
27
  get_node_data_parsed(node_name: string): DumpTask | null
27
28
  get task_id(): TaskId
@@ -169,7 +169,8 @@ declare global {
169
169
  constructor(
170
170
  hwnd: DesktopHandle,
171
171
  screencap_methods: ScreencapOrInputMethods,
172
- input_methods: ScreencapOrInputMethods,
172
+ mouse_method: ScreencapOrInputMethods,
173
+ keyboard_methods: ScreencapOrInputMethods,
173
174
  )
174
175
 
175
176
  static find(): Promise<DesktopDevice[] | null>
@@ -187,6 +188,7 @@ declare global {
187
188
  interface CustomControllerActor {
188
189
  connect?(): maa.MaybePromise<boolean>
189
190
  request_uuid?(): maa.MaybePromise<string | null>
191
+ get_features?(): maa.MaybePromise<null | ('mouse' | 'keyboard')[]>
190
192
  start_app?(intent: string): maa.MaybePromise<boolean>
191
193
  stop_app?(intent: string): maa.MaybePromise<boolean>
192
194
  screencap?(): maa.MaybePromise<maa.ImageData | null>
@@ -33,6 +33,7 @@ declare global {
33
33
  pipeline_override: Record<string, unknown> | Record<string, unknown>[],
34
34
  ): void
35
35
  override_next(node_name: string, next_list: string[]): void
36
+ override_image(image_name: string, image: ImageData | Buffer): void
36
37
  get_node_data(node_name: string): string | null
37
38
  get_node_data_parsed(node_name: string): DumpTask | null
38
39
  clear(): void
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-alpha.4",
31
+ "version": "5.0.0-alpha.6",
32
32
  "optionalDependencies": {
33
- "@maaxyz/maa-node-darwin-arm64": "5.0.0-alpha.4",
34
- "@maaxyz/maa-node-darwin-x64": "5.0.0-alpha.4",
35
- "@maaxyz/maa-node-linux-arm64": "5.0.0-alpha.4",
36
- "@maaxyz/maa-node-linux-x64": "5.0.0-alpha.4",
37
- "@maaxyz/maa-node-win32-arm64": "5.0.0-alpha.4",
38
- "@maaxyz/maa-node-win32-x64": "5.0.0-alpha.4"
33
+ "@maaxyz/maa-node-darwin-arm64": "5.0.0-alpha.6",
34
+ "@maaxyz/maa-node-darwin-x64": "5.0.0-alpha.6",
35
+ "@maaxyz/maa-node-linux-arm64": "5.0.0-alpha.6",
36
+ "@maaxyz/maa-node-linux-x64": "5.0.0-alpha.6",
37
+ "@maaxyz/maa-node-win32-arm64": "5.0.0-alpha.6",
38
+ "@maaxyz/maa-node-win32-x64": "5.0.0-alpha.6"
39
39
  }
40
40
  }