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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const VERSION = '0.1.0';
2
+ const VERSION = '0.1.1';
3
3
  const command = process.argv[2];
4
4
  switch (command) {
5
5
  case 'serve':
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
@@ -1,3 +1,5 @@
1
1
  export function defineConfig(config) {
2
2
  return config;
3
3
  }
4
+ export { CdpBridge } from './server/cdp-bridge.js';
5
+ export { getCdpTools } from './cdp-tools/index.js';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-dev-bridge",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Expose Electron IPC handlers as MCP tools for Claude Code, with 22 built-in CDP tools for DOM automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",