Commit 41095399 authored by Lisa (Hermes AI)'s avatar Lisa (Hermes AI)

fix: align remote desktop tool actions and registrations

parent a6b69efb
...@@ -920,7 +920,7 @@ class NodeGateway: ...@@ -920,7 +920,7 @@ class NodeGateway:
await self._handle_browser_control_response(msg) await self._handle_browser_control_response(msg)
elif msg_type == 'cc_result': elif msg_type in ('cc_result', 'computer_control_result'):
await self._handle_cc_result(msg) await self._handle_cc_result(msg)
...@@ -1412,16 +1412,16 @@ class NodeGateway: ...@@ -1412,16 +1412,16 @@ class NodeGateway:
msg = {"type": "computer_control", "id": cmd_id, **command} msg = {"type": "computer_control", "id": cmd_id, **command}
future = asyncio.Future()
self.command_waiters[cmd_id] = future
await node.socket.send(json.dumps(msg)) await node.socket.send(json.dumps(msg))
cmd.status = 'running' cmd.status = 'running'
logger.info(f"Sent computer_control command to node '{node_name}': {command.get('action')}") logger.info(f"Sent computer_control command to node '{node_name}': {command.get('action')}")
future = asyncio.Future()
self.command_waiters[cmd_id] = future
try: try:
result = await asyncio.wait_for(future, timeout=timeout) result = await asyncio.wait_for(future, timeout=timeout)
...@@ -2805,7 +2805,7 @@ COMPUTER_CONTROL_SCHEMA = { ...@@ -2805,7 +2805,7 @@ COMPUTER_CONTROL_SCHEMA = {
"screenshot", "mouse_move", "mouse_click", "mouse_position", "screenshot", "mouse_move", "mouse_click", "mouse_position",
"type", "key", "active_window" "type_text", "key_press", "get_active_window"
], ],
...@@ -2916,7 +2916,7 @@ CAMERA_CONTROL_SCHEMA = { ...@@ -2916,7 +2916,7 @@ CAMERA_CONTROL_SCHEMA = {
"name": "camera_control", "name": "camera_control",
"description": "Control cameras on a remote node via V4L2/ffmpeg. Supports device listing, status, frame capture, and short video capture.", "description": "Control cameras on a remote node via V4L2/ffmpeg. Supports device listing, status, frame capture, short video capture, and virtual-camera video injection when v4l2loopback devices exist.",
"parameters": { "parameters": {
...@@ -2936,7 +2936,7 @@ CAMERA_CONTROL_SCHEMA = { ...@@ -2936,7 +2936,7 @@ CAMERA_CONTROL_SCHEMA = {
"type": "string", "type": "string",
"enum": ["list_cameras", "get_camera_status", "capture_frame", "capture_video"], "enum": ["list_cameras", "get_camera_status", "capture_frame", "capture_video", "inject_video"],
"description": "Camera action to perform" "description": "Camera action to perform"
......
...@@ -16,4 +16,8 @@ provides_tools: ...@@ -16,4 +16,8 @@ provides_tools:
- node_status - node_status
- node_exec - node_exec
- browser_control - browser_control
- computer_control
- desktop_observe
- audio_control
- camera_control
hooks: [] hooks: []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment