chrome-devtools-mcp 0.18.1 → 0.19.0
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 +4 -3
- package/build/src/McpContext.js +215 -266
- package/build/src/McpPage.js +95 -0
- package/build/src/McpResponse.js +73 -29
- package/build/src/bin/chrome-devtools.js +184 -0
- package/build/src/bin/cliDefinitions.js +651 -0
- package/build/src/browser.js +5 -3
- package/build/src/cli.js +11 -1
- package/build/src/daemon/client.js +151 -0
- package/build/src/daemon/daemon.js +49 -15
- package/build/src/daemon/types.js +6 -0
- package/build/src/daemon/utils.js +56 -15
- package/build/src/main.js +5 -173
- package/build/src/server.js +209 -0
- package/build/src/telemetry/watchdog/ClearcutSender.js +2 -0
- package/build/src/third_party/THIRD_PARTY_NOTICES +1480 -111
- package/build/src/third_party/bundled-packages.json +4 -3
- package/build/src/third_party/devtools-formatter-worker.js +5 -13
- package/build/src/third_party/index.js +1980 -396
- package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +54183 -0
- package/build/src/tools/ToolDefinition.js +52 -0
- package/build/src/tools/console.js +3 -3
- package/build/src/tools/emulation.js +13 -45
- package/build/src/tools/extensions.js +17 -0
- package/build/src/tools/input.js +33 -33
- package/build/src/tools/lighthouse.js +123 -0
- package/build/src/tools/memory.js +5 -5
- package/build/src/tools/network.js +7 -7
- package/build/src/tools/pages.js +32 -32
- package/build/src/tools/performance.js +16 -14
- package/build/src/tools/screencast.js +5 -5
- package/build/src/tools/screenshot.js +6 -6
- package/build/src/tools/script.js +99 -49
- package/build/src/tools/slim/tools.js +18 -18
- package/build/src/tools/snapshot.js +5 -4
- package/build/src/tools/tools.js +2 -0
- package/build/src/types.js +6 -0
- package/build/src/utils/files.js +19 -0
- package/build/src/version.js +1 -1
- package/package.json +11 -8
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@modelcontextprotocol/sdk": "1.
|
|
3
|
-
"chrome-devtools-frontend": "1.0.
|
|
2
|
+
"@modelcontextprotocol/sdk": "1.27.1",
|
|
3
|
+
"chrome-devtools-frontend": "1.0.1592362",
|
|
4
4
|
"core-js": "3.48.0",
|
|
5
5
|
"debug": "4.4.3",
|
|
6
|
+
"lighthouse": "13.0.3",
|
|
6
7
|
"yargs": "18.0.0",
|
|
7
|
-
"puppeteer-core": "24.
|
|
8
|
+
"puppeteer-core": "24.38.0"
|
|
8
9
|
}
|
|
@@ -3129,6 +3129,8 @@ var ExperimentName;
|
|
|
3129
3129
|
ExperimentName["USE_SOURCE_MAP_SCOPES"] = "use-source-map-scopes";
|
|
3130
3130
|
ExperimentName["TIMELINE_SHOW_POST_MESSAGE_EVENTS"] = "timeline-show-postmessage-events";
|
|
3131
3131
|
ExperimentName["TIMELINE_DEBUG_MODE"] = "timeline-debug-mode";
|
|
3132
|
+
ExperimentName["DURABLE_MESSAGES"] = "durable-messages";
|
|
3133
|
+
ExperimentName["JPEG_XL"] = "jpeg-xl";
|
|
3132
3134
|
})(ExperimentName || (ExperimentName = {}));
|
|
3133
3135
|
|
|
3134
3136
|
// Copyright 2016 The Chromium Authors
|
|
@@ -10321,7 +10323,7 @@ class Legacy {
|
|
|
10321
10323
|
}
|
|
10322
10324
|
toProtocolRGBA() {
|
|
10323
10325
|
const rgba = this.canonicalRGBA();
|
|
10324
|
-
const result = { r: rgba[0], g: rgba[1], b: rgba[2]
|
|
10326
|
+
const result = { r: rgba[0], g: rgba[1], b: rgba[2] };
|
|
10325
10327
|
if (rgba[3] !== 1) {
|
|
10326
10328
|
result.a = rgba[3];
|
|
10327
10329
|
}
|
|
@@ -15165,23 +15167,13 @@ class CSSFormatter {
|
|
|
15165
15167
|
constructor(builder) {
|
|
15166
15168
|
this.#builder = builder;
|
|
15167
15169
|
this.#lastLine = -1;
|
|
15168
|
-
this.#state = {
|
|
15169
|
-
eatWhitespace: undefined,
|
|
15170
|
-
seenProperty: undefined,
|
|
15171
|
-
inPropertyValue: undefined,
|
|
15172
|
-
afterClosingBrace: undefined,
|
|
15173
|
-
};
|
|
15170
|
+
this.#state = {};
|
|
15174
15171
|
}
|
|
15175
15172
|
format(text, lineEndings, fromOffset, toOffset) {
|
|
15176
15173
|
this.#lineEndings = lineEndings;
|
|
15177
15174
|
this.#fromOffset = fromOffset;
|
|
15178
15175
|
this.#toOffset = toOffset;
|
|
15179
|
-
this.#state = {
|
|
15180
|
-
eatWhitespace: undefined,
|
|
15181
|
-
seenProperty: undefined,
|
|
15182
|
-
inPropertyValue: undefined,
|
|
15183
|
-
afterClosingBrace: undefined,
|
|
15184
|
-
};
|
|
15176
|
+
this.#state = {};
|
|
15185
15177
|
this.#lastLine = -1;
|
|
15186
15178
|
const tokenize = createTokenizer('text/css');
|
|
15187
15179
|
const oldEnforce = this.#builder.setEnforceSpaceBetweenWords(false);
|