electron-dev-bridge 0.1.0 → 0.1.1
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/cli/index.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/server/cdp-bridge.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -28,3 +28,6 @@ export interface ElectronMcpConfig {
|
|
|
28
28
|
screenshots?: ScreenshotConfig;
|
|
29
29
|
}
|
|
30
30
|
export declare function defineConfig(config: ElectronMcpConfig): ElectronMcpConfig;
|
|
31
|
+
export { CdpBridge } from './server/cdp-bridge.js';
|
|
32
|
+
export { getCdpTools } from './cdp-tools/index.js';
|
|
33
|
+
export type { CdpTool, CdpToolDefinition } from './cdp-tools/types.js';
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export class CdpBridge {
|
|
|
16
16
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
17
17
|
try {
|
|
18
18
|
const targets = await CDP.List({ port: this.port });
|
|
19
|
-
const page = targets.find((t) => t.type === 'page');
|
|
19
|
+
const page = targets.find((t) => t.type === 'page' && !t.url.startsWith('devtools://'));
|
|
20
20
|
if (!page)
|
|
21
21
|
throw new Error('No page target found among CDP targets');
|
|
22
22
|
this.client = await CDP({ target: page, port: this.port });
|
package/package.json
CHANGED