@ricsam/browser-mcp 0.3.2 → 0.3.4
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.
|
@@ -849,8 +849,7 @@ function snapshotLine(line) {
|
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
// cli/src/browser/password-safe-snapshot.ts
|
|
852
|
-
var
|
|
853
|
-
var requirePlaywright = createRequire(typeof __filename === "string" ? __filename : import.meta.url);
|
|
852
|
+
var requirePlaywright = createRequire(import.meta.url);
|
|
854
853
|
var SUPPORTED_PLAYWRIGHT_VERSION = "1.63.0";
|
|
855
854
|
var DEFAULT_TIMEOUT_MS = 1e4;
|
|
856
855
|
var UNAVAILABLE = "Password-safe browser snapshots are unavailable with this Playwright runtime. Update r5d-browser before retrying.";
|
|
@@ -4210,7 +4209,7 @@ class Relay {
|
|
|
4210
4209
|
heartbeat.unref();
|
|
4211
4210
|
socket.once("open", () => {
|
|
4212
4211
|
this.state = "authenticating";
|
|
4213
|
-
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.
|
|
4212
|
+
socket.send(JSON.stringify({ type: "auth", token: this.token, client: { protocol: 3, version: "0.3.4", instanceId: this.runtime.instanceId, operations: [...BROWSER_OPERATIONS, ...this.runtime.plugins.flatMap((p) => p.operations), "session_end", "release_tab"], capabilities: ["browser-controls.v1", "screenshot-ids.v1", "webmcp.page-context.v1", "clipboard.native.v1", "native-transfers.v1", "secrets.v1", "forwarding.v1", "live-view.v1"], liveView: { enabled: this.liveEnabled } } }));
|
|
4214
4213
|
});
|
|
4215
4214
|
socket.on("message", (bytes, binary) => {
|
|
4216
4215
|
if (binary || Buffer.byteLength(bytes.toString()) > LIMIT) {
|
|
@@ -4981,7 +4980,7 @@ Dedicated Chrome only. Foreground pipe lifecycle: stopping the CLI closes Chrome
|
|
|
4981
4980
|
return;
|
|
4982
4981
|
} else if (cmd !== "status")
|
|
4983
4982
|
throw new Error("Invalid command");
|
|
4984
|
-
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.
|
|
4983
|
+
socket.end(JSON.stringify({ state: relay.state, paused: relay.paused, instanceId: session.instanceId, profile, version: "0.3.4", protocol: 3 }) + `
|
|
4985
4984
|
`);
|
|
4986
4985
|
})().catch(() => socket.destroy());
|
|
4987
4986
|
});
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ var args = process.argv.slice(2);
|
|
|
8
8
|
var command = args.shift();
|
|
9
9
|
async function main() {
|
|
10
10
|
if (!command || command === "--help" || command === "help") {
|
|
11
|
-
console.log(`@ricsam/browser-mcp 0.3.
|
|
11
|
+
console.log(`@ricsam/browser-mcp 0.3.4
|
|
12
12
|
Usage: browser-mcp browser start|status|pause|resume|stop [options]
|
|
13
13
|
browser-mcp files upload|download [options]
|
|
14
14
|
browser-mcp secrets export|exec [options]
|
|
@@ -17,11 +17,11 @@ Browser dependencies load only for browser commands. No automatic Chrome downloa
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
if (command === "--version") {
|
|
20
|
-
console.log("0.3.
|
|
20
|
+
console.log("0.3.4");
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
if (command === "browser")
|
|
24
|
-
return (await import("./chunk-
|
|
24
|
+
return (await import("./chunk-s1kjxpf5.js")).runBrowser(args);
|
|
25
25
|
if (command === "files")
|
|
26
26
|
return (await import("./chunk-xgk37h9a.js")).runFilesCommand(args);
|
|
27
27
|
if (command === "secrets")
|