@browserbridge/bbx 1.7.8 → 1.9.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/PRIVACY.md +57 -12
- package/README.md +19 -8
- package/SECURITY.md +12 -0
- package/package.json +15 -6
- package/packages/agent-client/src/cli-args.js +59 -0
- package/packages/agent-client/src/cli-batch.js +121 -58
- package/packages/agent-client/src/cli-output.js +8 -1
- package/packages/agent-client/src/cli.js +272 -70
- package/packages/agent-client/src/client.js +296 -8
- package/packages/agent-client/src/command-registry.js +64 -55
- package/packages/agent-client/src/config.js +195 -0
- package/packages/agent-client/src/content-extract.js +198 -0
- package/packages/agent-client/src/npm-self-update.js +305 -0
- package/packages/agent-client/src/remotes.js +4 -2
- package/packages/agent-client/src/runtime.js +864 -39
- package/packages/agent-client/src/types.ts +169 -6
- package/packages/mcp-server/src/guidance.js +1 -1
- package/packages/mcp-server/src/handlers-capture.js +69 -6
- package/packages/mcp-server/src/handlers-dom.js +61 -4
- package/packages/mcp-server/src/handlers-navigation.js +2 -1
- package/packages/mcp-server/src/handlers-page.js +211 -54
- package/packages/mcp-server/src/handlers-utils.js +101 -10
- package/packages/mcp-server/src/handlers.js +14 -7
- package/packages/mcp-server/src/server.js +176 -11
- package/packages/native-host/src/artifact-store.js +353 -0
- package/packages/native-host/src/config.js +9 -1
- package/packages/native-host/src/daemon-logger.js +3 -1
- package/packages/native-host/src/daemon.js +701 -33
- package/packages/native-host/src/native-host.js +28 -3
- package/packages/protocol/src/capability-values.js +2 -0
- package/packages/protocol/src/defaults.js +31 -0
- package/packages/protocol/src/errors.js +102 -6
- package/packages/protocol/src/incidental-sanitizer.js +197 -0
- package/packages/protocol/src/index.js +2 -0
- package/packages/protocol/src/protocol.js +612 -6
- package/packages/protocol/src/recovery-telemetry.js +302 -0
- package/packages/protocol/src/registry.js +206 -38
- package/packages/protocol/src/summary.js +203 -30
- package/packages/protocol/src/types.ts +721 -2
- package/skills/browser-bridge/SKILL.md +54 -19
- package/skills/browser-bridge/references/interaction.md +55 -11
- package/skills/browser-bridge/references/patch-workflow.md +2 -0
- package/skills/browser-bridge/references/protocol.md +265 -86
- package/skills/browser-bridge/references/token-efficiency.md +29 -13
|
@@ -7,6 +7,7 @@ import { createTcpBridgeTransport, getBridgeDir } from '../../native-host/src/co
|
|
|
7
7
|
import { normalizeBridgeAuthToken } from '../../native-host/src/auth-token.js';
|
|
8
8
|
import { atomicWriteFile } from './atomic-write.js';
|
|
9
9
|
import { BridgeClient } from './client.js';
|
|
10
|
+
import { applyConfiguredAutoUpdate } from './config.js';
|
|
10
11
|
|
|
11
12
|
const REMOTES_FILENAME = 'remotes.json';
|
|
12
13
|
const LOCAL_DESTINATION_ID = 'local';
|
|
@@ -287,12 +288,12 @@ function validateAuthToken(token) {
|
|
|
287
288
|
|
|
288
289
|
/**
|
|
289
290
|
* @param {string | null | undefined} destinationId
|
|
290
|
-
* @param {
|
|
291
|
+
* @param {import('./types.js').BridgeClientOptions} [options={}]
|
|
291
292
|
* @returns {Promise<BridgeClient>}
|
|
292
293
|
*/
|
|
293
294
|
export async function createBridgeClientForDestination(destinationId, options = {}) {
|
|
294
295
|
if (!destinationId || destinationId === LOCAL_DESTINATION_ID) {
|
|
295
|
-
return new BridgeClient(options);
|
|
296
|
+
return new BridgeClient(await applyConfiguredAutoUpdate(options));
|
|
296
297
|
}
|
|
297
298
|
const config = await readRemoteConfig();
|
|
298
299
|
const remote = config.remotes.find((entry) => entry.id === destinationId);
|
|
@@ -304,5 +305,6 @@ export async function createBridgeClientForDestination(destinationId, options =
|
|
|
304
305
|
transport: createTcpBridgeTransport(remote.port, remote.host),
|
|
305
306
|
authToken: remote.token,
|
|
306
307
|
restartDaemonOnVersionMismatch: false,
|
|
308
|
+
updateNpmOnCompatibleVersion: false,
|
|
307
309
|
});
|
|
308
310
|
}
|