M4: Outside access (bridge, MCP server, CLI, Suites) — v0.5.0 #7
Loading…
Reference in a new issue
No description provided.
Delete branch "akib/m4-outside-access"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M4: Outside access (v0.5.0)
Programs on the same computer can drive BlockFlow while Settings → Allow outside control is on (off by default; optional
nativeMessagingpermission). Together with M3 this is v0.5.0.New
packages/bridge(blockflow-bridge): native-messaging host. Relays a per-user socket (token auth, NDJSON) to the extension (4-byte framing), rewrites JSON-RPC ids for concurrent clients, routes streamed notifications.blockflow-bridge install --extension-id <id>for Chrome, Chromium, Brave, Brave Origin, Edge, Firefox.src/browser/bridge.ts+bridgeHandlers.ts. validate, import (tagged "via bridge"), list, run (streamed steps, per-run secrets never stored), report, snapshot, stop, blobs/screenshots, suites. Settings page with status, install command and request log.packages/mcp(blockflow-mcp): stdio MCP server with 9 tools, guide/block/schema resources and a write-and-repair prompt. Failure screenshots come back as images.packages/cli(blockflow-cli):blockflow run|validate,npm run build:automation, throwaway profile,BLOCKFLOW_SECRET_*, JUnit/JSON/HTML, exit codes 0/1/2. New CI jobcli.bf:suites, combined JUnit/HTML/JSON (suite-report.schema.json).src/core/bridgeProtocol.ts(mirrored inpackages/bridge/protocol.mjs, kept in sync by a test).Verification (this machine)
npm run check: 956 unit/DOM testsnpm run e2e: 275 checks in 24 specs, Chromium 156, headless and headed (newm4-bridge,m4-integration: the MCP repair loop through the real server/host/extension,suite.run, Suites and Settings pages)npm run e2e:firefox: 44 checks, Firefox 159, now including bridge, MCP and suitesnode tests/cli/cli.e2e.mjson Chromium and Brave;npm run build,npm run build:firefoxFindings
<profile>/NativeMessagingHosts. Brave does not: it reads only its default folder under$HOME. On Linux, throwaway browsers (CLI, e2e) therefore also get a throwawayHOME(isolatedHostDirs), so nothing goes in the real home folder.--headedthere.Not done / not verified
notConnected) covers both "socket unreachable" and "extension not connected". The CLI filterssecret.unknownwarnings for run-time secrets by matching message text.🤖 Generated with Claude Code