mcp-page-bridge 0.1.3 → 0.1.5
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/dist/bridge.d.ts +7 -0
- package/dist/bridge.js +1 -1
- package/dist/{chunk-7A7AECYZ.js → chunk-EQUJLLID.js} +603 -135
- package/dist/cli.d.ts +17 -1
- package/dist/cli.js +279 -15
- package/package.json +2 -2
package/dist/bridge.d.ts
CHANGED
|
@@ -40,6 +40,13 @@ interface BridgeOptions {
|
|
|
40
40
|
host?: string;
|
|
41
41
|
/** If set, browsers must connect with `?token=<token>` or they're rejected. */
|
|
42
42
|
token?: string;
|
|
43
|
+
/**
|
|
44
|
+
* If set (> 0), the bridge shuts itself down after this many ms with no
|
|
45
|
+
* connected browser providers AND no attached `/agent` connections.
|
|
46
|
+
*/
|
|
47
|
+
idleTimeoutMs?: number;
|
|
48
|
+
/** Invoked after an idle-triggered shutdown completes (e.g. to exit a daemon). */
|
|
49
|
+
onIdleShutdown?: () => void;
|
|
43
50
|
}
|
|
44
51
|
declare function createBridge(opts?: BridgeOptions): Promise<Bridge>;
|
|
45
52
|
|