@mcpc-tech/unplugin-dev-inspector-mcp 0.0.46 → 0.0.48
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 +17 -9
- package/client/dist/inspector.iife.js +713 -436
- package/dist/chunk.cjs +3 -3
- package/dist/config-updater.cjs +373 -188
- package/dist/config-updater.js +307 -122
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.js +4 -3
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ let _code_inspector_core = require("@code-inspector/core");
|
|
|
16
16
|
let node_url = require("node:url");
|
|
17
17
|
|
|
18
18
|
//#region src/utils/browser-launcher.ts
|
|
19
|
-
var browser_launcher_exports = /* @__PURE__ */ require_chunk.
|
|
19
|
+
var browser_launcher_exports = /* @__PURE__ */ require_chunk.__exportAll({ launchBrowserWithDevTools: () => launchBrowserWithDevTools });
|
|
20
20
|
async function closeSharedClient(reason) {
|
|
21
21
|
const clientToClose = sharedClient;
|
|
22
22
|
sharedClient = null;
|
|
@@ -236,7 +236,8 @@ if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
236
236
|
port: '${port}',
|
|
237
237
|
base: '${base}',
|
|
238
238
|
baseUrl: ${publicBaseUrl ? `'${publicBaseUrl.replace(/'/g, "\\'")}'` : "undefined"},
|
|
239
|
-
showInspectorBar: ${showInspectorBar}
|
|
239
|
+
showInspectorBar: ${showInspectorBar},
|
|
240
|
+
disableChrome: ${chromeDisabled}
|
|
240
241
|
};
|
|
241
242
|
var script = document.createElement('script');
|
|
242
243
|
var config = window.__DEV_INSPECTOR_CONFIG__;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as unplugin1 from "unplugin";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/config-updater.d.ts
|
|
4
4
|
type EditorId = "cursor" | "vscode" | "windsurf" | "claude-code" | "antigravity";
|
|
@@ -183,10 +183,10 @@ interface DevInspectorOptions extends McpConfigOptions, AcpOptions {
|
|
|
183
183
|
}
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/core.d.ts
|
|
186
|
-
declare const unplugin:
|
|
186
|
+
declare const unplugin: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region src/core-external.d.ts
|
|
189
|
-
declare const unpluginExternal:
|
|
189
|
+
declare const unpluginExternal: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region src/turbopack.d.ts
|
|
192
192
|
interface TurbopackDevInspectorOptions extends DevInspectorOptions {
|
|
@@ -211,7 +211,7 @@ interface TurbopackDevInspectorOptions extends DevInspectorOptions {
|
|
|
211
211
|
declare function turbopackDevInspector(options?: TurbopackDevInspectorOptions): any;
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region src/index.d.ts
|
|
214
|
-
declare const external:
|
|
214
|
+
declare const external: unplugin1.UnpluginInstance<DevInspectorOptions | undefined, boolean>;
|
|
215
215
|
declare module "virtual:dev-inspector-mcp" {}
|
|
216
216
|
//#endregion
|
|
217
217
|
export { type CustomEditorConfig, type DevInspectorOptions, type EditorId, type McpConfigOptions, type TurbopackDevInspectorOptions, unplugin as default, unplugin, external, turbopackDevInspector, unpluginExternal };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getPublicBaseUrl, d as
|
|
1
|
+
import { a as getPublicBaseUrl, d as __exportAll, f as __toCommonJS, i as setupMcpMiddleware, l as stripTrailingSlash, n as setupAcpMiddleware, o as init_helpers, r as setupInspectorMiddleware, s as isChromeDisabled, t as updateMcpConfigs, u as __esmMin } from "./config-updater.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
@@ -12,7 +12,7 @@ import { transformCode } from "@code-inspector/core";
|
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
13
|
|
|
14
14
|
//#region src/utils/browser-launcher.ts
|
|
15
|
-
var browser_launcher_exports = /* @__PURE__ */
|
|
15
|
+
var browser_launcher_exports = /* @__PURE__ */ __exportAll({ launchBrowserWithDevTools: () => launchBrowserWithDevTools });
|
|
16
16
|
async function closeSharedClient(reason) {
|
|
17
17
|
const clientToClose = sharedClient;
|
|
18
18
|
sharedClient = null;
|
|
@@ -232,7 +232,8 @@ if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
232
232
|
port: '${port}',
|
|
233
233
|
base: '${base}',
|
|
234
234
|
baseUrl: ${publicBaseUrl ? `'${publicBaseUrl.replace(/'/g, "\\'")}'` : "undefined"},
|
|
235
|
-
showInspectorBar: ${showInspectorBar}
|
|
235
|
+
showInspectorBar: ${showInspectorBar},
|
|
236
|
+
disableChrome: ${chromeDisabled}
|
|
236
237
|
};
|
|
237
238
|
var script = document.createElement('script');
|
|
238
239
|
var config = window.__DEV_INSPECTOR_CONFIG__;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpc-tech/unplugin-dev-inspector-mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
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",
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"@mcpc-tech/cmcp": "^0.0.15",
|
|
118
118
|
"@mcpc-tech/core": "^0.3.8",
|
|
119
119
|
"@modelcontextprotocol/sdk": "^1.20.1",
|
|
120
|
+
"@mswjs/interceptors": "^0.40.0",
|
|
120
121
|
"@radix-ui/primitive": "^1.1.3",
|
|
121
122
|
"@radix-ui/react-avatar": "^1.0.4",
|
|
122
123
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
@@ -150,6 +151,7 @@
|
|
|
150
151
|
"clsx": "^2.1.1",
|
|
151
152
|
"cmdk": "^1.1.1",
|
|
152
153
|
"embla-carousel-react": "^8.6.0",
|
|
154
|
+
"html-to-image": "^1.11.13",
|
|
153
155
|
"lucide-react": "^0.546.0",
|
|
154
156
|
"magic-string": "^0.30.21",
|
|
155
157
|
"mcp-remote": "^0.1.31",
|