@btraut/browser-bridge 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +41 -4
- package/dist/api.js +3922 -3239
- package/dist/api.js.map +4 -4
- package/dist/index.js +1027 -142
- package/dist/index.js.map +4 -4
- package/extension/dist/background.js +128 -15
- package/extension/dist/background.js.map +2 -2
- package/extension/dist/content.js +6 -2
- package/extension/dist/content.js.map +2 -2
- package/extension/dist/options-ui.js +59 -1
- package/extension/dist/options-ui.js.map +2 -2
- package/extension/manifest.json +17 -5
- package/package.json +1 -1
- package/skills/browser-bridge/skill.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ The format is based on "Keep a Changelog", and this project adheres to Semantic
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.8.1] - 2026-02-14
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- CLI: `browser-bridge dev info` now prints resolved runtime details (host/port + source, deterministic port, worktree id, metadata path, log dir, and metadata snapshot).
|
|
14
|
+
- CLI: `browser-bridge dev activate` now resolves runtime, persists metadata for the current worktree, and opens extension options with activation query params.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Runtime metadata now supports persisted `extension_id` so extension targeting can survive across sessions/worktrees.
|
|
19
|
+
- Extension options activation flow now applies `corePort` from activation query params via `chrome.storage.local` and then clears the query string to prevent repeated re-application on refresh.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- `drive.go_back` / `drive.go_forward` no longer hang when history navigation unloads the page before content-script messaging completes; history dispatch is deferred, background completion waits for deterministic top-level navigation signals, and tab messaging now has an explicit timeout guard.
|
|
24
|
+
|
|
9
25
|
## [0.8.0] - 2026-02-14
|
|
10
26
|
|
|
11
27
|
### Changed
|
package/README.md
CHANGED
|
@@ -234,12 +234,12 @@ Codex:
|
|
|
234
234
|
codex mcp add browser-bridge -- browser-bridge mcp
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
Optional custom host/port:
|
|
237
|
+
Optional custom host/port (use `browser-bridge dev info` to get the current worktree port):
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
240
|
codex mcp add browser-bridge \
|
|
241
241
|
--env BROWSER_BRIDGE_CORE_HOST=127.0.0.1 \
|
|
242
|
-
--env BROWSER_BRIDGE_CORE_PORT
|
|
242
|
+
--env BROWSER_BRIDGE_CORE_PORT=<port-from-dev-info> \
|
|
243
243
|
-- browser-bridge mcp
|
|
244
244
|
```
|
|
245
245
|
|
|
@@ -249,17 +249,54 @@ Claude Code:
|
|
|
249
249
|
claude mcp add --transport stdio browser-bridge -- browser-bridge mcp
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
Optional custom host/port:
|
|
252
|
+
Optional custom host/port (use `browser-bridge dev info` to get the current worktree port):
|
|
253
253
|
|
|
254
254
|
```bash
|
|
255
255
|
claude mcp add --transport stdio browser-bridge \
|
|
256
256
|
--env BROWSER_BRIDGE_CORE_HOST=127.0.0.1 \
|
|
257
|
-
--env BROWSER_BRIDGE_CORE_PORT
|
|
257
|
+
--env BROWSER_BRIDGE_CORE_PORT=<port-from-dev-info> \
|
|
258
258
|
-- browser-bridge mcp
|
|
259
259
|
```
|
|
260
260
|
|
|
261
261
|
</details>
|
|
262
262
|
|
|
263
|
+
## 🔁 Multi-Worktree Dev Loop
|
|
264
|
+
|
|
265
|
+
Use this loop any time you switch worktrees.
|
|
266
|
+
|
|
267
|
+
1. Resolve runtime for the current worktree:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
browser-bridge dev info --json
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Use the `port`, `worktreeId`, `metadataPath`, and `logDir` from output.
|
|
274
|
+
|
|
275
|
+
2. Activate extension routing for this worktree (required for extension-driving tasks):
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
browser-bridge dev activate --extension-id <id>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
After the first run, you can usually omit `--extension-id` because it is saved in `.context/browser-bridge/dev.json`.
|
|
282
|
+
|
|
283
|
+
3. Run your CLI/MCP workflow in this worktree.
|
|
284
|
+
|
|
285
|
+
## 🧯 Worktree Troubleshooting
|
|
286
|
+
|
|
287
|
+
- Missing extension id: Run `browser-bridge dev activate --extension-id <id>`. Or set `BROWSER_BRIDGE_EXTENSION_ID=<id>`. You can copy the id from `chrome://extensions` (enable Developer mode to see ids).
|
|
288
|
+
- Activation URL did not open in Chrome: Run `browser-bridge dev activate --json`, copy `result.activationUrl`, and open it directly in Chrome. `dev activate` uses the OS URL opener, so your default browser setting matters.
|
|
289
|
+
- Logs and per-stream JSONL inspection: Logs are under `.context/logs/browser-bridge/`. Common streams: `cli.jsonl`, `core.jsonl`, `mcp-adapter.jsonl` (plus rotated files like `core.1.jsonl`).
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
ls -1 .context/logs/browser-bridge
|
|
293
|
+
tail -n 80 .context/logs/browser-bridge/cli.jsonl
|
|
294
|
+
tail -n 80 .context/logs/browser-bridge/core.jsonl
|
|
295
|
+
tail -n 80 .context/logs/browser-bridge/mcp-adapter.jsonl
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
- Do not assume port `3210` across worktrees: Default port is deterministic per worktree and may differ. Always check `browser-bridge dev info` (or pass explicit `--port` / `BROWSER_BRIDGE_CORE_PORT`).
|
|
299
|
+
|
|
263
300
|
## 🩺 Diagnostics
|
|
264
301
|
|
|
265
302
|
- CLI: `browser-bridge diagnostics doctor --session-id <id>`
|