feat(v2): screenView sees someone's Discord screen share in its popped-out window

The share target checks that the person asked about shares their screen in
Jarvis's voice channel, finds Discord's popped-out window (title not ending in
Discord, the voice channel's name first) and, when there is none, asks for it in
the channel and looks again every second for 30 s. Screen actions now wait as
long as PC actions in the worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-19 13:43:31 +09:00
parent 3af881935c
commit 844958d311
13 changed files with 287 additions and 28 deletions

View File

@@ -32,6 +32,7 @@ Lets Jarvis see this PC's screen: all monitors as one picture, one monitor, or o
| `screen` (default) | | every monitor as one picture |
| `monitor` | `monitor` (its number, as Windows numbers it) | that monitor |
| `window` | `window` (part of its title or program name) | that window, also when other windows cover it |
| `share` | `person` (optional: the name of the person sharing, as said) | the Discord screen share someone streams in Jarvis's voice channel, from the window Discord pops it out to |
| `list` | | the monitors (number, size, main) and the open windows (program, title), no picture |
`detail`: `fast` (long side about 768 px), `normal` (default, about 1280 px) or `detailed` (the
@@ -44,6 +45,9 @@ as their first known word; unknown values fall back to the defaults.
- `act("capture", target=..., monitor=..., window=..., detail=...)` gives `{"ok": true, "item":
{"what", "width", "height", "parts"}, "images": ["<base64 JPEG>", ...]}`.
- `act("capture", target="share", person=..., detail=...)` gives the same; `person` is sent only
when given (at most 200 characters). The app checks that the person shares their screen and may
wait up to 30 s while it asks for the share to be popped out (admin.spec.md, "Screen viewing").
- `act("list")` gives `{"ok": true, "item": {"monitors": [...], "windows": [...]}}`.
- Failures are `{"ok": false, "error": "..."}`.