cdp-tunnel 3.0.7 → 3.0.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "3.0.7",
4
+ "version": "3.0.8",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "3.0.7",
3
+ "version": "3.0.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",
@@ -172,6 +172,13 @@ class PortPoolManager {
172
172
  return;
173
173
  }
174
174
 
175
+ // 通知扩展有 client 连接(扩展需要 hasConnectedClient=true 才转发 debugger 事件)
176
+ const poolClientId = `pool_${session.portIndex}_${Date.now()}`;
177
+ pluginWs.send(JSON.stringify({
178
+ type: 'client-connected',
179
+ clientId: poolClientId
180
+ }));
181
+
175
182
  // 合成输入命令需要 ensureVisible(和 forward.js 的逻辑一致)
176
183
  const SYNTHETIC_INPUT = ['Input.dispatchKeyEvent', 'Input.dispatchMouseEvent'];
177
184