cdp-tunnel 2.10.2 → 2.10.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.
package/README.md CHANGED
@@ -71,15 +71,16 @@ cdp-tunnel status
71
71
  cdp-tunnel extension
72
72
  ```
73
73
 
74
- ### Option 2: Download from GitHub Releases
75
-
76
- 1. Go to [GitHub Releases](https://github.com/dyyz1993/cdp-tunnel/releases)
77
- 2. Download `cdp-tunnel-extension.zip` from the latest release
78
- 3. Unzip the file
79
- 4. Open `chrome://extensions/` in Chrome
80
- 5. Enable "Developer mode"
81
- 6. Click "Load unpacked"
82
- 7. Select the unzipped extension directory
74
+ ### Option 2: Download Extension from GitHub Releases
75
+
76
+ **Download Extension:** [cdp-tunnel-extension.zip (v2.10.3)](https://github.com/dyyz1993/cdp-tunnel/releases/tag/v2.10.3)
77
+
78
+ 1. Download `cdp-tunnel-extension.zip` from the latest [GitHub Releases](https://github.com/dyyz1993/cdp-tunnel/releases)
79
+ 2. Unzip the file
80
+ 3. Open `chrome://extensions/` in Chrome
81
+ 4. Enable "Developer mode"
82
+ 5. Click "Load unpacked"
83
+ 6. Select the unzipped extension directory
83
84
 
84
85
  ### Option 3: Manual Installation
85
86
 
@@ -27,6 +27,7 @@ function ConnectionState(connectionId, mode) {
27
27
  this.browserContextIds = new Set(['default']);
28
28
  this.screencastPollingSessions = new Map();
29
29
  this.automatedTabs = new Set();
30
+ this._groupCreationPromises = new Map();
30
31
  }
31
32
 
32
33
  ConnectionState.prototype.mapSession = function(sessionId, tabId, targetId) {
@@ -260,6 +261,18 @@ ConnectionState.prototype.removeGroupForClient = function(clientId) {
260
261
  this.clientIdToGroupId.delete(clientId);
261
262
  };
262
263
 
264
+ ConnectionState.prototype.setGroupCreationPromise = function(clientId, promise) {
265
+ if (promise) {
266
+ this._groupCreationPromises.set(clientId, promise);
267
+ } else {
268
+ this._groupCreationPromises.delete(clientId);
269
+ }
270
+ };
271
+
272
+ ConnectionState.prototype.getGroupCreationPromise = function(clientId) {
273
+ return this._groupCreationPromises.get(clientId) || null;
274
+ };
275
+
263
276
  ConnectionState.prototype.addPreExistingTab = function(tabId) {
264
277
  this.preExistingTabIds.add(tabId);
265
278
  };
@@ -335,6 +348,7 @@ ConnectionState.prototype.clearAllState = function() {
335
348
  this.pendingCreatedTabUrls.clear();
336
349
  this.cdpCreatedTabIds.clear();
337
350
  this.cdpClients = [];
351
+ this._groupCreationPromises.clear();
338
352
  };
339
353
 
340
354
  ConnectionState.prototype.persist = function(tabId, attached) {
@@ -241,7 +241,6 @@ var WebSocketConnection = (function() {
241
241
  Logger.info('[WS:' + self.connectionId + '] Client connected, resuming event forwarding');
242
242
  self.state.setHasConnectedClient(true);
243
243
  self.state.addCDPClient(message.clientId, message.clientId);
244
- self._createGroupForClient(message.clientId, message.__mode);
245
244
  self._broadcastStateUpdate();
246
245
  break;
247
246
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.10.2",
4
+ "version": "2.10.4",
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:56906/plugin',
2
+ WS_URL: 'ws://localhost:14026/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.10.2",
3
+ "version": "2.10.4",
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",