@syngy/chrome-service-endpoint
v0.1.0
Published
Chrome dedicated-tab Service endpoint for Botworks
Downloads
91
Readme
Chrome Service Endpoint
Chrome Service Endpoint exposes a user-owned Chrome browser instance to BotWorks through the extension side panel.
Install Locally
cd addons/chrome-service-endpoint
npm install
npm run buildOpen chrome://extensions, enable developer mode, and load addons/chrome-service-endpoint/dist.
Binding Flow
- Open the extension side panel.
- Start device verification from the side panel.
- Enter the 8 digits shown by the side panel in Portal.
- Approve the device verification in Portal.
- After approval, the extension stores the binding in Chrome local storage.
- Click
Connect; the extension connects towss://api.autostaff.cn/api/v1/chrome-browser-connections/ws.
The extension does not expose a configurable WebSocket URL. The production side panel path is the only connection path.
Supported Browser Operations
The Host websocket sends browser.command frames. The side panel maps them to background page actions:
create_sessiondelete_sessionnavigatesnapshotactscreenshot
snapshot builds refs with the shared browser-snapshot package. act requires a ref from the latest snapshot.
Verification
npm run test:quick
npm run build