Files
javis_bot/app/src/lib.rs
javis-bot 39ac20682e feat(app): PC control through agent-desktop, with the emergency stop and the anti-cheat block
app/src/pc.rs runs every pc_action from the worker (admin.spec.md, "PC
control"): one agent-desktop 1.2.0 run per command with a 15 s limit and
its state in the data folder, never --force or raw input, typed text
only through stdin. Each action is decided by permissions::decide for
its asker (not registered, never, ask without consent), then refused
during the emergency stop, while an anti-cheat game runs (Vanguard,
EAC, BattlEye, FACEIT, GameGuard, XIGNCODE3 and the person's list), on
an administrator window and in a password field. Results carry the
window and its elements read again (200 at most, cut to 120 chars),
agent-desktop's error codes become Korean reasons, and each action is
recorded as pc.<action> with the program's file name only.

The emergency stop is a global hotkey (pcControl.stopHotkey, default
Ctrl+Shift+F12) on its own message loop; it kills the running command
and blocks everything but reading until pressed again or lifted on the
PC control screen. features.pcControl (on by default, nothing happens
until someone is registered) and the pinned exe hash decide whether
the brain gets the tool. The installer ships agent-desktop.exe from the
pinned release archive, both hashes checked.

Tested with a fake agent-desktop (342 lib tests pass) and cargo check
for x86_64-pc-windows-gnu; not yet run against real agent-desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:42:48 +09:00

49 lines
884 B
Rust

//! Jarvis v2 app core (see `app/src/discord_core.spec.md`).
pub mod log;
pub mod activity;
pub mod admin_api;
pub mod browser;
pub mod calls;
pub mod channel_sync;
pub mod chat;
pub mod collect;
pub mod collect_notify;
pub mod control;
pub mod conversation;
pub mod dashboard;
pub mod datadir;
pub mod discord;
pub mod discord_setup;
pub mod download;
pub mod earcon;
pub mod features;
pub mod history_view;
pub mod game;
pub mod frames;
pub mod install;
pub mod logs;
pub mod notes;
pub mod playback;
pub mod pc;
pub mod perf;
pub mod permissions;
pub mod placement;
pub mod policy;
pub mod receive;
pub mod recordings;
pub mod schedule;
pub mod screen;
pub mod secrets;
pub mod services;
pub mod settings;
pub mod settings_edit;
pub mod setup_lock;
pub mod speakers;
pub mod strata;
pub mod system;
pub mod update;
pub mod vdisplay;
pub mod worker_client;
pub mod worker_process;