feat: screen viewing, Jarvis sees the whole screen, a monitor or a window for registered people
- screenView tool (screen_view.spec.md): whole screen, monitor by number, window by part of its title or program, or the list of monitors and windows; fast, normal or detailed pictures. - The app captures with Windows Graphics Capture (app/src/screen.rs, admin.spec.md "Screen viewing"), decides for the asker (only people registered for PC control), never picks, lists or shows excluded programs (pcControl.screenExclude, password managers by default), refuses minimised windows and black pictures, and records screen.view in the activity log. - Pictures ride on the tool message (ToolExecutionResult.images); llm.py sends them to OpenAI-compatible servers as image parts after the tool messages. They stay in that reply only: not in the tool carryover, logs or prompt dumps. - The LLM reads pictures only when screen viewing is available (--vision gpu normally, cpu in a game), measured apart for the placement; otherwise screenView is a disabled tool. - Worker: screen_action / screen_action_result, 4 MiB messages. - Eval evals/test_screen_view_tool.py; Windows check tests/screen_windows.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""Backends the brain's schedule and personalNotes tools use during one reply (schedule.spec.md,
|
||||
personal_notes.spec.md).
|
||||
"""Backends the brain's schedule, personalNotes and screenView tools use during one reply
|
||||
(schedule.spec.md, personal_notes.spec.md, screen_view.spec.md).
|
||||
|
||||
The app keeps the schedules and the notes: every action goes to it as ``<kind>_action`` for the
|
||||
The app keeps the schedules and the notes and captures the screen: every action goes to it as ``<kind>_action`` for the
|
||||
person asking and waits for its ``<kind>_action_result``. Built per reply, on the event loop;
|
||||
``act`` is called from the brain's thread.
|
||||
"""
|
||||
@@ -17,7 +17,7 @@ class AppBridge:
|
||||
channel: Optional[str]):
|
||||
self._session = session
|
||||
self._loop = loop
|
||||
self._kind = kind # "schedule" or "note"
|
||||
self._kind = kind # "schedule", "note" or "screen"
|
||||
# Who asked and where: the app delivers schedules there (voice, or the chat channel asked in).
|
||||
self._origin = {"user": user, "via": via, **({"channel": channel} if channel else {})}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user