cdp-tunnel 2.5.6 → 2.5.8

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.
@@ -138,8 +138,14 @@ var SpecialHandler = (function() {
138
138
 
139
139
  var groupClientId = clientId;
140
140
  if (!groupClientId) {
141
- Logger.warn('[TabGroup] No clientId for tab:', tabId, '— skipping group operation');
142
- return;
141
+ var cdpClients = State.getCDPClients() || [];
142
+ if (cdpClients.length > 0 && cdpClients[0] && cdpClients[0].id) {
143
+ groupClientId = cdpClients[0].id;
144
+ Logger.warn('[TabGroup] No clientId for tab:', tabId, 'fallback to first client:', groupClientId);
145
+ } else {
146
+ Logger.warn('[TabGroup] No clientId for tab:', tabId, '— skipping group operation');
147
+ return;
148
+ }
143
149
  }
144
150
  var baseName = CDPUtils.getGroupBaseName(groupClientId);
145
151
 
@@ -437,10 +437,6 @@ var WebSocketManager = (function() {
437
437
  });
438
438
  }, 5000);
439
439
  }
440
- });
441
- });
442
- }, 5000);
443
- }
444
440
 
445
441
  function stopGroupMonitor() {
446
442
  if (_groupMonitorTimer) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.5.6",
4
+ "version": "2.5.8",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
@@ -1,5 +1,5 @@
1
1
  var Config = {
2
- WS_URL: 'ws://localhost:25429/plugin',
2
+ WS_URL: 'ws://localhost:9221/plugin',
3
3
  RECONNECT_DELAY: 3000,
4
4
  DEBUGGER_VERSION: '1.3',
5
5
  HEARTBEAT_INTERVAL: 25000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.5.6",
3
+ "version": "2.5.8",
4
4
  "description": "Bridge Chrome's debugger API to WebSocket — control your existing browser with Playwright/Puppeteer via CDP",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",