You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: api/interface.py
+33-17
Original file line number
Diff line number
Diff line change
@@ -273,27 +273,40 @@ class FeaturesConfig(BaseModel):
273
273
remember_messages: Optional[int] =None
274
274
275
275
276
-
classKeyPressConfig(BaseModel):
277
-
key: str
278
-
"""The key the wingman will press when executing the command. Use 'primary', 'secondary' or 'middle' for mouse buttons. Use 'scroll' to scroll."""
276
+
classCommandKeyboardConfig(BaseModel):
277
+
hotkey: str
278
+
"""The hotkey. Can be a single key like 'a' or a combination like 'ctrl+shift+a'."""
279
279
280
-
modifier: Optional[str] =None
281
-
"""This will press "modifier + key" instead of just "modifier". Optional."""
280
+
hold: Optional[float] =None
281
+
"""The duration the key will be pressed in seconds. Optional."""
282
282
283
-
wait: Optional[float] =None
284
-
"""Wait time in seconds before pressing the next key. Optional."""
283
+
284
+
classCommandMouseConfig(BaseModel):
285
+
button: Optional[str] =None
286
+
"""The mouse button to press. Optional."""
285
287
286
288
hold: Optional[float] =None
287
-
"""The duration the key will be pressed in seconds. Optional."""
289
+
"""The duration the button will be pressed in seconds. Optional."""
290
+
291
+
scroll: Optional[int] =None
292
+
"""The amount to scroll up (positive integer) or down (negative integer), example 10 or -10. Must have 'scroll' as key above to work."""
288
293
289
-
scroll_amount: Optional[int] =None
290
-
"""The amount of clicks to scroll up (positive integer) or down (negative integer), example 10 or -10. Must have 'scroll' as key above to work."""
294
+
move: Optional[list[int]] =None
295
+
"""The x, y coordinates to move to relative to the current mouse position, expected [x,y] format in yaml. Must have associated button press to work."""
291
296
292
-
moveto: Optional[list[int]] =None
297
+
move_to: Optional[list[int]] =None
293
298
"""The x, y coordinates to move the mouse to on the screen, expected [x,y] format in yaml. Must have associated button press to work."""
294
299
295
-
moveto_relative: Optional[list[int]] =None
296
-
"""The x, y coordinates to move to relative to the current mouse position, expected [x,y] format in yaml. Must have associated button press to work."""
300
+
301
+
classCommandActionConfig(BaseModel):
302
+
keyboard: Optional[CommandKeyboardConfig] =None
303
+
"""The keyboard configuration for this action. Optional."""
304
+
305
+
wait: Optional[float] =None
306
+
"""Wait time in seconds before pressing the next key. Optional."""
307
+
308
+
mouse: Optional[CommandMouseConfig] =None
309
+
"""The mouse configuration for this action. Optional."""
297
310
298
311
write: Optional[str] =None
299
312
"""The word or phrase to type, for example, to type text in a login screen. Must have associated button press to work. May need special formatting for special characters."""
@@ -311,8 +324,8 @@ class CommandConfig(BaseModel):
311
324
"""Optional: Faster - like Voice Attack! Provide phrases that will instantly activate the command (without AI roundtripping). You need to say the exact phrase to execute the command"""
312
325
responses: Optional[list[str]] =None
313
326
"""Optional: Provide responses that will be used when the command is executed. A random one will be chosen (if multiple)."""
314
-
keys: Optional[list[KeyPressConfig]] =None
315
-
"""The key or keys to press when the command is executed."""
0 commit comments