docs(spec): PC control tool, next-message consent, agent-desktop in the app
pcControl (v2 M7): windows, read, click, type, keys, run, close through the app's agent-desktop. Ask-level actions wait for the asker's own next message and then cover that window's asked kinds for the reply; payments, passwords, deleting files and admin rights are filtered before asking and never done. The app refuses during an anti-cheat game and the emergency stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -410,6 +410,23 @@ captures and decides who may see (`app/src/admin.spec.md`, "Screen viewing"):
|
||||
dropped. The pictures stay in that one reply (screen_view.spec.md).
|
||||
- Messages may be up to 4 MiB (pictures), the WebSocket's limit.
|
||||
|
||||
### PC control (M7)
|
||||
|
||||
The brain's pcControl tool (`src/jarvis/tools/builtin/pc_control.spec.md`) asks the app, which acts
|
||||
through agent-desktop and decides who may (`app/src/admin.spec.md`, "PC control"):
|
||||
|
||||
```
|
||||
<- {"type": "pc_action", "id": "p1", "action": "windows|read|click|type|keys|run|close", "user": "<id>",
|
||||
"via": "voice|chat", "channel": "...", "window": "...", "ref": "@s1:e8", "text": "...", "keys": "ctrl+s",
|
||||
"program": "notepad", "consent": true}
|
||||
-> {"type": "pc_action_result", "id": "p1", "ok": true, "item": {...}} // or ok false with "error", or "ask": true
|
||||
```
|
||||
|
||||
- Every voice and chat reply gets a PC backend for its asker (not scheduled tasks); ids and waiting
|
||||
are those of chat and schedule actions. The worker keeps each asker's requests awaiting consent
|
||||
with the turn they were asked in, numbered like the chat delete confirmations ("History and
|
||||
brain"), so only a message sent after the question counts as the next turn.
|
||||
|
||||
### Background collection (M6)
|
||||
|
||||
With `JARVIS_COLLECT_PATH` set, the worker collects on its own thread, apart from the voice and the
|
||||
|
||||
Reference in New Issue
Block a user