@mcpc-tech/unplugin-dev-inspector-mcp 0.0.35 → 0.0.36

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/index.cjs CHANGED
@@ -40,13 +40,10 @@ async function launchBrowserWithDevTools(options) {
40
40
  chrome_navigate_page: { url }
41
41
  }
42
42
  });
43
- await new Promise((resolve) => setTimeout(resolve, 500));
44
43
  return true;
45
44
  } catch (error) {
46
45
  console.error(`[dev-inspector] ⚠️ Failed to auto-open browser:`, error instanceof Error ? error.message : String(error));
47
46
  return false;
48
- } finally {
49
- if (client) await client.close().catch(() => {});
50
47
  }
51
48
  }
52
49
  var init_browser_launcher = require_chunk.__esmMin((() => {}));
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as unplugin1 from "unplugin";
1
+ import * as unplugin0 from "unplugin";
2
2
 
3
3
  //#region src/utils/config-updater.d.ts
4
4
  type EditorId = "cursor" | "vscode" | "windsurf" | "claude-code" | "antigravity";
@@ -134,10 +134,10 @@ interface DevInspectorOptions extends McpConfigOptions, AcpOptions {
134
134
  }
135
135
  //#endregion
136
136
  //#region src/core.d.ts
137
- declare const unplugin: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
137
+ declare const unplugin: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
138
138
  //#endregion
139
139
  //#region src/core-external.d.ts
140
- declare const unpluginExternal: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
140
+ declare const unpluginExternal: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
141
141
  //#endregion
142
142
  //#region src/turbopack.d.ts
143
143
  interface TurbopackDevInspectorOptions extends DevInspectorOptions {
@@ -162,7 +162,7 @@ interface TurbopackDevInspectorOptions extends DevInspectorOptions {
162
162
  declare function turbopackDevInspector(options?: TurbopackDevInspectorOptions): any;
163
163
  //#endregion
164
164
  //#region src/index.d.ts
165
- declare const external: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
165
+ declare const external: unplugin0.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
166
166
  declare module "virtual:dev-inspector-mcp" {}
167
167
  //#endregion
168
168
  export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, type TurbopackDevInspectorOptions, unplugin as default, unplugin, external, turbopackDevInspector, unpluginExternal };
package/dist/index.js CHANGED
@@ -36,13 +36,10 @@ async function launchBrowserWithDevTools(options) {
36
36
  chrome_navigate_page: { url }
37
37
  }
38
38
  });
39
- await new Promise((resolve) => setTimeout(resolve, 500));
40
39
  return true;
41
40
  } catch (error) {
42
41
  console.error(`[dev-inspector] ⚠️ Failed to auto-open browser:`, error instanceof Error ? error.message : String(error));
43
42
  return false;
44
- } finally {
45
- if (client) await client.close().catch(() => {});
46
43
  }
47
44
  }
48
45
  var init_browser_launcher = __esmMin((() => {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/unplugin-dev-inspector-mcp",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "Universal dev inspector plugin for React/Vue - inspect component sources and API calls in any bundler",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -145,7 +145,7 @@
145
145
  "@xyflow/react": "^12.9.3",
146
146
  "ai": "^5.0.95",
147
147
  "aria-hidden": "^1.2.6",
148
- "chrome-devtools-mcp": "^0.10.1",
148
+ "chrome-devtools-mcp": "^0.12.1",
149
149
  "class-variance-authority": "^0.7.1",
150
150
  "clsx": "^2.1.1",
151
151
  "cmdk": "^1.1.1",