# Bounce Browser Beta companion for macOS

This is the manual companion for Bounce Browser Beta 0.1.1. The Chrome Web Store does not install it. This beta is a standalone local browser tool, not an integration already present in the Bounce desktop app.

## Requirements

- macOS, Google Chrome 120 or later, and Node.js 22 from nodejs.org or your normal trusted package manager.
- The Bounce Browser Beta extension, installed from the unlisted store link supplied with this companion.
- One Chrome profile. Other Chromium browsers and simultaneous profiles are not supported in this beta.

The archive contains bundled Node programs. No npm install, repository access, AI account or provider key is required for the reviewer demo. No OS background service is installed. Keep this folder and your Node installation at a stable path.

## Setup

1. Extract the companion ZIP into a folder you control. Open Terminal in that folder. Run `node --version`; it must start with `v22.`.
2. Open `chrome://extensions`, find **Bounce Browser Beta**, and copy its 32-letter extension ID. The toolbar popup also shows this ID under **Companion setup and privacy**. Use the ID from the actual store-installed extension, not the development example ID.
3. Run the following, replacing `ggodajbhdpgpdjbhbojhecnadfcigfdi`:

   ```bash
   node setup.mjs --extension-id ggodajbhdpgpdjbhbojhecnadfcigfdi
   node main.mjs
   ```

4. Leave that terminal running. The broker reports `http://127.0.0.1:4317/mcp`. Click the extension toolbar icon, read the data disclosure, then click **Enable browser control**. The popup should say **Connected**.
5. In a second Terminal in the extracted folder, run:

   ```bash
   node reviewer-demo.mjs
   ```

The demo creates its own local synthetic page, reads it, fills a note, reloads it, verifies persistence, captures a screenshot, and ends its task. It prints PASS and closes its task tabs. It needs neither real website credentials nor an AI provider. Do not use private data for this test.

If port 4317 is in use, stop your own existing companion first or run `node main.mjs --port 4318` and `node reviewer-demo.mjs --port 4318`.

## Connect an AI harness

Use a harness supporting authenticated Streamable HTTP MCP. Point it to the broker's loopback `/mcp` URL. The local token is in `~/.awre-browser-poc/credentials.json` as `mcpToken`. Configure it using the harness's secure secret/environment mechanism; do not paste it into a conversation or publish it. Anyone holding that token can control enabled task sessions. The bridge token is separate and must not be used as the MCP token.

The harness chooses actions and may send page data or screenshots to its model provider. Configure that harness's approvals, provider and retention before real tasks. Ask it to start a session, open its own task tabs, observe before acting, verify writes, and end the session. Existing tabs and arbitrary JavaScript execution are unsupported.

## Stop and remove

**Stop and close task tabs** in the toolbar popup revokes control and attempts to close owned tabs. It stays stopped until you enable it again. Stop cannot undo website changes. Close any remaining task tabs manually if cleanup reports an error. Disabling the extension in `chrome://extensions` prevents further extension access.

End sessions before removing the extension. Stop the broker with Ctrl-C in its own terminal. Then remove only these companion files if you no longer need them:

- `~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.awre.browser_poc.json`
- `~/.awre-browser-poc/` (after the broker is stopped)
- The extracted companion folder

Do not remove other native-host registrations. Rerun setup if the companion's folder, Node path, or installed extension ID changes. Setup registers exactly one extension origin and refuses to replace a different program's registration.

## Troubleshooting

- **Stopped**: click Enable after reading the popup disclosure.
- **Enabled · waiting for companion**: check Node 22, the running broker, and that setup used the exact installed ID. Rerun setup after an update or Node move. No default or wildcard store ID is accepted.
- **Native host configuration**: confirm you use Google Chrome, the same macOS user, and one profile. Do not change Chrome security settings or enable file/incognito access.
- **Demo failed**: inspect the popup and companion terminal; do not share tokens or private page content when asking for support.

The native-host name and runtime folder retain the original POC names for compatibility. Their presence is expected. Extension privacy is bundled in `privacy.html` and linked from the popup. Contact: privacy@awre.ai.
