@btraut/browser-bridge 0.11.0 → 0.12.0
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 +29 -0
- package/README.md +41 -0
- package/dist/api.js +878 -128
- package/dist/api.js.map +4 -4
- package/dist/index.js +861 -378
- package/dist/index.js.map +4 -4
- package/extension/assets/ui.css +108 -1
- package/extension/dist/background.js +164 -23
- package/extension/dist/background.js.map +4 -4
- package/extension/dist/popup-ui.js +110 -3
- package/extension/dist/popup-ui.js.map +2 -2
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
- package/skills/browser-bridge/skill.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,35 @@ The format is based on "Keep a Changelog", and this project adheres to Semantic
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
_TBD_
|
|
10
|
+
|
|
11
|
+
## [0.12.0] - 2026-02-17
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Core runtime bootstrap: CLI and MCP adapter now share one Core readiness/runtime resolution path (default/env/metadata precedence + health/ensure-ready behavior), with new shared parity tests.
|
|
16
|
+
- MCP adapter now enables Core ensure-ready by default when constructing its client, so first tool calls auto-bootstrap Core after cold start.
|
|
17
|
+
- Diagnostics doctor payload/report now carries runtime endpoint/source/process context for caller, Core, and extension components so endpoint/version mismatches are explicit.
|
|
18
|
+
- Extension hello events now include the endpoint settings they are dialing (`core_host`, `core_port`, `core_port_source`) for mismatch diagnostics.
|
|
19
|
+
- Extension Drive socket now tracks explicit connection states (`connecting`, `connected`, `disconnected`, `backoff`) with a status surface (`drive.connection_status`) for UI diagnostics.
|
|
20
|
+
- Popup UI now includes a live connection health panel (state, endpoint/source, last success/failure, next retry) and a `Copy diagnostics` action for bug reports.
|
|
21
|
+
- README/manual docs now include post-reboot startup semantics and an end-to-end endpoint mismatch troubleshooting flow.
|
|
22
|
+
- MCP startup is now lazy; no startup filesystem writes unless initialized by first tool call.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- MCP adapter now returns bounded retryable `UNAVAILABLE` envelopes when Core ensure-ready cannot establish health, instead of opaque internal failures.
|
|
27
|
+
- Extension reconnect failures now use throttled warning logs to avoid disconnect spam while preserving exponential backoff behavior.
|
|
28
|
+
- Shared Core readiness now resets failed ensure-ready attempts for next-caller retry, adds bounded health probe timeouts/budget, and covers retry/dedupe behavior with regression tests.
|
|
29
|
+
- Diagnostics now ignores disconnected extension runtime identity for endpoint/version mismatch checks, and extension bridge disconnect clears cached runtime identity fields to prevent stale mismatch reporting.
|
|
30
|
+
- Popup diagnostics now clears cached status on refresh failure (blocking stale copy payloads), resets retry metadata outside backoff state, and announces async connection/copy feedback via live regions.
|
|
31
|
+
|
|
32
|
+
## [0.11.1] - 2026-02-16
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- Extension: dedicated agent windows now bootstrap with an extension-owned `agent-tab.html` page so the tab consistently shows the `Browser Bridge` title and robot favicon (instead of blank/new-tab styling).
|
|
37
|
+
|
|
9
38
|
## [0.11.0] - 2026-02-16
|
|
10
39
|
|
|
11
40
|
### Changed
|
package/README.md
CHANGED
|
@@ -267,6 +267,8 @@ For normal usage, Browser Bridge is zero-setup:
|
|
|
267
267
|
- Core and CLI default to `127.0.0.1:3210`.
|
|
268
268
|
- The extension also defaults to `3210`.
|
|
269
269
|
- You do not need `dev activate` unless you intentionally opt into isolated worktree routing.
|
|
270
|
+
- After reboot/cold start, the first CLI or MCP request auto-starts Core (no manual daemon wake-up required).
|
|
271
|
+
- If Core is idle/offline, the extension popup may show `disconnected` or `backoff`; this is expected until Core is reachable again.
|
|
270
272
|
|
|
271
273
|
Optional status check:
|
|
272
274
|
|
|
@@ -315,6 +317,45 @@ tail -n 80 .context/logs/browser-bridge/mcp-adapter.jsonl
|
|
|
315
317
|
|
|
316
318
|
- CLI: `browser-bridge diagnostics doctor --session-id <id>`
|
|
317
319
|
- Reports extension and debugger status alongside session state.
|
|
320
|
+
- Includes runtime context for caller, Core, and extension endpoints so mismatch causes are visible in one run.
|
|
321
|
+
- Popup health panel shows live connection state (`connecting`, `connected`, `disconnected`, `backoff`), endpoint/source, and latest failure summary.
|
|
322
|
+
|
|
323
|
+
### End-to-End Connection Troubleshooting Flow
|
|
324
|
+
|
|
325
|
+
Use this exact flow when commands fail after reboot, runtime changes, or worktree switching:
|
|
326
|
+
|
|
327
|
+
1. Check runtime resolution:
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
browser-bridge dev info --json
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
2. Run diagnostics from CLI (captures caller + Core + extension runtime context):
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
browser-bridge diagnostics doctor --json
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
3. Open extension popup and compare:
|
|
340
|
+
- `Connection` state
|
|
341
|
+
- `Endpoint`
|
|
342
|
+
- `Source`
|
|
343
|
+
- `Last failure`
|
|
344
|
+
|
|
345
|
+
4. If caller/core/extension endpoints differ:
|
|
346
|
+
- Default mode: remove custom host/port env overrides and retry (`BROWSER_BRIDGE_CORE_HOST`, `BROWSER_BRIDGE_CORE_PORT`).
|
|
347
|
+
- Isolated mode: re-run `browser-bridge dev activate --extension-id <id>` for the intended worktree.
|
|
348
|
+
|
|
349
|
+
5. If state is `backoff` and failures continue:
|
|
350
|
+
- Inspect logs:
|
|
351
|
+
|
|
352
|
+
```bash
|
|
353
|
+
tail -n 80 .context/logs/browser-bridge/cli.jsonl
|
|
354
|
+
tail -n 80 .context/logs/browser-bridge/core.jsonl
|
|
355
|
+
tail -n 80 .context/logs/browser-bridge/mcp-adapter.jsonl
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
6. Retry the command once endpoint mismatch is corrected.
|
|
318
359
|
|
|
319
360
|
## 🔧 Recovery
|
|
320
361
|
|