e562099344
Fixes the core "viewer can't control the sharer even on desktop" gap. Three root
causes addressed:
- share.html DISCARDED every input-channel message (onmessage=()=>{}). It now
parses the viewer's mouse/keyboard events and forwards them to the desktop shell.
- The main desktop app had NO OS injector (it lived only in the separate agent).
Ported the nut-js injector (agent/input/inject.js) into desktop/input, wired an
inject IPC + injectInput bridge, HARD-gated behind a consent flag (rcArmed).
- /share runs in an iframe (no direct bridge access) → it postMessages input to
the top frame (home.html), which relays to the native bridge.
Consent + safety: the sharer sees an Allow/Deny prompt the first time the agent
interacts; while active a persistent "your screen is being controlled — Stop"
banner; instant revoke; auto-release on session end/teardown. Browser sharers stay
view-only (no OS injection possible). nut-js is an optionalDependency (N-API, ABI-
stable across Electron) — degrades to no-op if the native module is unavailable.
Windows-first; maps to the primary display.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"name": "biz-connect-desktop",
|
|
"version": "0.1.13",
|
|
"description": "Biz Connect technician desktop client — loads the Connect web UI with native screen capture",
|
|
"author": {
|
|
"name": "BizGaze",
|
|
"email": "support@bizgaze.com"
|
|
},
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dist": "electron-builder"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.9"
|
|
},
|
|
"optionalDependencies": {
|
|
"@nut-tree-fork/nut-js": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^31.0.0",
|
|
"electron-builder": "^24.13.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.bizgaze.connect.desktop",
|
|
"productName": "Biz Connect",
|
|
"directories": {
|
|
"buildResources": "build",
|
|
"output": "dist"
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "generic",
|
|
"url": "https://remote.bizgaze.com/downloads/"
|
|
}
|
|
],
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": false,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "Biz Connect",
|
|
"runAfterFinish": true
|
|
},
|
|
"mac": {
|
|
"target": "dmg",
|
|
"category": "public.app-category.business",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"category": "Network"
|
|
}
|
|
}
|
|
}
|