chrome-devtools-mcp 1.5.0 → 1.6.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.
Files changed (51) hide show
  1. package/README.md +15 -0
  2. package/build/src/HeapSnapshotManager.js +23 -13
  3. package/build/src/McpContext.js +174 -365
  4. package/build/src/McpPage.js +242 -31
  5. package/build/src/McpResponse.js +113 -67
  6. package/build/src/PageCollector.js +48 -122
  7. package/build/src/TextSnapshot.js +20 -2
  8. package/build/src/ToolHandler.js +13 -3
  9. package/build/src/WaitForHelper.js +18 -8
  10. package/build/src/bin/chrome-devtools-cli-options.js +25 -1
  11. package/build/src/bin/chrome-devtools-mcp-cli-options.js +15 -6
  12. package/build/src/bin/chrome-devtools-mcp-main.js +2 -2
  13. package/build/src/browser.js +1 -1
  14. package/build/src/daemon/client.js +33 -3
  15. package/build/src/daemon/daemon.js +2 -1
  16. package/build/src/daemon/utils.js +1 -1
  17. package/build/src/devtools/DevtoolsUtils.js +2 -63
  18. package/build/src/{issue-descriptions.js → devtools/issueDescriptions.js} +2 -2
  19. package/build/src/formatters/IssueFormatter.js +2 -2
  20. package/build/src/index.js +12 -3
  21. package/build/src/telemetry/ClearcutLogger.js +1 -1
  22. package/build/src/telemetry/WatchdogClient.js +1 -1
  23. package/build/src/telemetry/metricsRegistry.js +2 -9
  24. package/build/src/telemetry/persistence.js +1 -1
  25. package/build/src/telemetry/transformation.js +20 -0
  26. package/build/src/telemetry/watchdog/ClearcutSender.js +1 -1
  27. package/build/src/telemetry/watchdog/main.js +1 -1
  28. package/build/src/third_party/THIRD_PARTY_NOTICES +13 -249
  29. package/build/src/third_party/bundled-packages.json +2 -3
  30. package/build/src/third_party/index.js +1527 -1514
  31. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +3082 -6343
  32. package/build/src/tools/emulation.js +2 -2
  33. package/build/src/tools/extensions.js +1 -1
  34. package/build/src/tools/input.js +17 -8
  35. package/build/src/tools/lighthouse.js +1 -1
  36. package/build/src/tools/memory.js +16 -2
  37. package/build/src/tools/network.js +4 -4
  38. package/build/src/tools/pages.js +21 -89
  39. package/build/src/tools/performance.js +2 -2
  40. package/build/src/tools/script.js +3 -0
  41. package/build/src/tools/snapshot.js +2 -2
  42. package/build/src/tools/thirdPartyDeveloper.js +1 -1
  43. package/build/src/tools/webmcp.js +1 -1
  44. package/build/src/trace-processing/parse.js +1 -1
  45. package/build/src/{logger.js → utils/logger.js} +1 -1
  46. package/build/src/{polyfill.js → utils/polyfill.js} +1 -1
  47. package/build/src/version.js +1 -1
  48. package/package.json +9 -5
  49. package/skills/memory-leak-debugging/SKILL.md +22 -14
  50. package/build/src/utils/types.js +0 -7
  51. /package/build/src/{Mutex.js → utils/Mutex.js} +0 -0
@@ -1,30 +1,3 @@
1
- Name: urlpattern-polyfill
2
- URL: https://github.com/kenchris/urlpattern-polyfill
3
- Version: 10.1.0
4
- License: MIT
5
-
6
- Copyright 2020 Intel Corporation
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
-
26
- -------------------- DEPENDENCY DIVIDER --------------------
27
-
28
1
  Name: core-js
29
2
  URL: https://core-js.io
30
3
  Version: 3.49.0
@@ -867,14 +840,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
867
840
 
868
841
  Name: puppeteer-core
869
842
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
870
- Version: 25.2.1
843
+ Version: 25.3.0
871
844
  License: Apache-2.0
872
845
 
873
846
  -------------------- DEPENDENCY DIVIDER --------------------
874
847
 
875
848
  Name: @puppeteer/browsers
876
849
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
877
- Version: 3.0.5
850
+ Version: 3.0.6
878
851
  License: Apache-2.0
879
852
 
880
853
  -------------------- DEPENDENCY DIVIDER --------------------
@@ -1769,7 +1742,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1769
1742
 
1770
1743
  Name: @paulirish/trace_engine
1771
1744
  URL: N/A
1772
- Version: 0.0.64
1745
+ Version: 0.0.65
1773
1746
  License: BSD-3-Clause
1774
1747
 
1775
1748
  // Copyright 2014 The Chromium Authors
@@ -1835,7 +1808,7 @@ SOFTWARE.
1835
1808
 
1836
1809
  Name: axe-core
1837
1810
  URL: https://www.deque.com/axe/
1838
- Version: 4.11.4
1811
+ Version: 4.12.0
1839
1812
  License: MPL-2.0
1840
1813
 
1841
1814
  Mozilla Public License, version 2.0
@@ -2206,7 +2179,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
2206
2179
 
2207
2180
  Name: csp_evaluator
2208
2181
  URL: https://csp-evaluator.withgoogle.com/
2209
- Version: 1.1.5
2182
+ Version: 1.1.8
2210
2183
  License: Apache-2.0
2211
2184
 
2212
2185
 
@@ -2416,7 +2389,7 @@ License: Apache-2.0
2416
2389
 
2417
2390
  Name: debug
2418
2391
  URL: git://github.com/debug-js/debug.git
2419
- Version: 4.3.4
2392
+ Version: 4.4.3
2420
2393
  License: MIT
2421
2394
 
2422
2395
  (The MIT License)
@@ -3240,13 +3213,13 @@ APPENDIX: How to apply the Apache License to your work
3240
3213
  -------------------- DEPENDENCY DIVIDER --------------------
3241
3214
 
3242
3215
  Name: ms
3243
- URL: zeit/ms
3244
- Version: 2.1.2
3216
+ URL: vercel/ms
3217
+ Version: 2.1.3
3245
3218
  License: MIT
3246
3219
 
3247
3220
  The MIT License (MIT)
3248
3221
 
3249
- Copyright (c) 2016 Zeit, Inc.
3222
+ Copyright (c) 2020 Vercel, Inc.
3250
3223
 
3251
3224
  Permission is hereby granted, free of charge, to any person obtaining a copy
3252
3225
  of this software and associated documentation files (the "Software"), to deal
@@ -3271,7 +3244,7 @@ SOFTWARE.
3271
3244
 
3272
3245
  Name: puppeteer-core
3273
3246
  URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
3274
- Version: 24.43.0
3247
+ Version: 25.0.2
3275
3248
  License: Apache-2.0
3276
3249
 
3277
3250
  -------------------- DEPENDENCY DIVIDER --------------------
@@ -3337,7 +3310,7 @@ SOFTWARE.
3337
3310
 
3338
3311
  Name: tldts-core
3339
3312
  URL: https://github.com/remusao/tldts#readme
3340
- Version: 7.0.30
3313
+ Version: 7.4.2
3341
3314
  License: MIT
3342
3315
 
3343
3316
  Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
@@ -3359,7 +3332,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH
3359
3332
 
3360
3333
  Name: tldts-icann
3361
3334
  URL: https://github.com/remusao/tldts#readme
3362
- Version: 7.0.30
3335
+ Version: 7.4.2
3363
3336
  License: MIT
3364
3337
 
3365
3338
  Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
@@ -3395,213 +3368,4 @@ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3395
3368
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3396
3369
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3397
3370
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3398
- PERFORMANCE OF THIS SOFTWARE.
3399
-
3400
- -------------------- DEPENDENCY DIVIDER --------------------
3401
-
3402
- Name: web-features
3403
- URL: git+https://github.com/web-platform-dx/web-features.git
3404
- Version: 3.26.0
3405
- License: Apache-2.0
3406
-
3407
- Apache License
3408
- Version 2.0, January 2004
3409
- http://www.apache.org/licenses/
3410
-
3411
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
3412
-
3413
- 1. Definitions.
3414
-
3415
- "License" shall mean the terms and conditions for use, reproduction,
3416
- and distribution as defined by Sections 1 through 9 of this document.
3417
-
3418
- "Licensor" shall mean the copyright owner or entity authorized by
3419
- the copyright owner that is granting the License.
3420
-
3421
- "Legal Entity" shall mean the union of the acting entity and all
3422
- other entities that control, are controlled by, or are under common
3423
- control with that entity. For the purposes of this definition,
3424
- "control" means (i) the power, direct or indirect, to cause the
3425
- direction or management of such entity, whether by contract or
3426
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
3427
- outstanding shares, or (iii) beneficial ownership of such entity.
3428
-
3429
- "You" (or "Your") shall mean an individual or Legal Entity
3430
- exercising permissions granted by this License.
3431
-
3432
- "Source" form shall mean the preferred form for making modifications,
3433
- including but not limited to software source code, documentation
3434
- source, and configuration files.
3435
-
3436
- "Object" form shall mean any form resulting from mechanical
3437
- transformation or translation of a Source form, including but
3438
- not limited to compiled object code, generated documentation,
3439
- and conversions to other media types.
3440
-
3441
- "Work" shall mean the work of authorship, whether in Source or
3442
- Object form, made available under the License, as indicated by a
3443
- copyright notice that is included in or attached to the work
3444
- (an example is provided in the Appendix below).
3445
-
3446
- "Derivative Works" shall mean any work, whether in Source or Object
3447
- form, that is based on (or derived from) the Work and for which the
3448
- editorial revisions, annotations, elaborations, or other modifications
3449
- represent, as a whole, an original work of authorship. For the purposes
3450
- of this License, Derivative Works shall not include works that remain
3451
- separable from, or merely link (or bind by name) to the interfaces of,
3452
- the Work and Derivative Works thereof.
3453
-
3454
- "Contribution" shall mean any work of authorship, including
3455
- the original version of the Work and any modifications or additions
3456
- to that Work or Derivative Works thereof, that is intentionally
3457
- submitted to Licensor for inclusion in the Work by the copyright owner
3458
- or by an individual or Legal Entity authorized to submit on behalf of
3459
- the copyright owner. For the purposes of this definition, "submitted"
3460
- means any form of electronic, verbal, or written communication sent
3461
- to the Licensor or its representatives, including but not limited to
3462
- communication on electronic mailing lists, source code control systems,
3463
- and issue tracking systems that are managed by, or on behalf of, the
3464
- Licensor for the purpose of discussing and improving the Work, but
3465
- excluding communication that is conspicuously marked or otherwise
3466
- designated in writing by the copyright owner as "Not a Contribution."
3467
-
3468
- "Contributor" shall mean Licensor and any individual or Legal Entity
3469
- on behalf of whom a Contribution has been received by Licensor and
3470
- subsequently incorporated within the Work.
3471
-
3472
- 2. Grant of Copyright License. Subject to the terms and conditions of
3473
- this License, each Contributor hereby grants to You a perpetual,
3474
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3475
- copyright license to reproduce, prepare Derivative Works of,
3476
- publicly display, publicly perform, sublicense, and distribute the
3477
- Work and such Derivative Works in Source or Object form.
3478
-
3479
- 3. Grant of Patent License. Subject to the terms and conditions of
3480
- this License, each Contributor hereby grants to You a perpetual,
3481
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3482
- (except as stated in this section) patent license to make, have made,
3483
- use, offer to sell, sell, import, and otherwise transfer the Work,
3484
- where such license applies only to those patent claims licensable
3485
- by such Contributor that are necessarily infringed by their
3486
- Contribution(s) alone or by combination of their Contribution(s)
3487
- with the Work to which such Contribution(s) was submitted. If You
3488
- institute patent litigation against any entity (including a
3489
- cross-claim or counterclaim in a lawsuit) alleging that the Work
3490
- or a Contribution incorporated within the Work constitutes direct
3491
- or contributory patent infringement, then any patent licenses
3492
- granted to You under this License for that Work shall terminate
3493
- as of the date such litigation is filed.
3494
-
3495
- 4. Redistribution. You may reproduce and distribute copies of the
3496
- Work or Derivative Works thereof in any medium, with or without
3497
- modifications, and in Source or Object form, provided that You
3498
- meet the following conditions:
3499
-
3500
- (a) You must give any other recipients of the Work or
3501
- Derivative Works a copy of this License; and
3502
-
3503
- (b) You must cause any modified files to carry prominent notices
3504
- stating that You changed the files; and
3505
-
3506
- (c) You must retain, in the Source form of any Derivative Works
3507
- that You distribute, all copyright, patent, trademark, and
3508
- attribution notices from the Source form of the Work,
3509
- excluding those notices that do not pertain to any part of
3510
- the Derivative Works; and
3511
-
3512
- (d) If the Work includes a "NOTICE" text file as part of its
3513
- distribution, then any Derivative Works that You distribute must
3514
- include a readable copy of the attribution notices contained
3515
- within such NOTICE file, excluding those notices that do not
3516
- pertain to any part of the Derivative Works, in at least one
3517
- of the following places: within a NOTICE text file distributed
3518
- as part of the Derivative Works; within the Source form or
3519
- documentation, if provided along with the Derivative Works; or,
3520
- within a display generated by the Derivative Works, if and
3521
- wherever such third-party notices normally appear. The contents
3522
- of the NOTICE file are for informational purposes only and
3523
- do not modify the License. You may add Your own attribution
3524
- notices within Derivative Works that You distribute, alongside
3525
- or as an addendum to the NOTICE text from the Work, provided
3526
- that such additional attribution notices cannot be construed
3527
- as modifying the License.
3528
-
3529
- You may add Your own copyright statement to Your modifications and
3530
- may provide additional or different license terms and conditions
3531
- for use, reproduction, or distribution of Your modifications, or
3532
- for any such Derivative Works as a whole, provided Your use,
3533
- reproduction, and distribution of the Work otherwise complies with
3534
- the conditions stated in this License.
3535
-
3536
- 5. Submission of Contributions. Unless You explicitly state otherwise,
3537
- any Contribution intentionally submitted for inclusion in the Work
3538
- by You to the Licensor shall be under the terms and conditions of
3539
- this License, without any additional terms or conditions.
3540
- Notwithstanding the above, nothing herein shall supersede or modify
3541
- the terms of any separate license agreement you may have executed
3542
- with Licensor regarding such Contributions.
3543
-
3544
- 6. Trademarks. This License does not grant permission to use the trade
3545
- names, trademarks, service marks, or product names of the Licensor,
3546
- except as required for reasonable and customary use in describing the
3547
- origin of the Work and reproducing the content of the NOTICE file.
3548
-
3549
- 7. Disclaimer of Warranty. Unless required by applicable law or
3550
- agreed to in writing, Licensor provides the Work (and each
3551
- Contributor provides its Contributions) on an "AS IS" BASIS,
3552
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
3553
- implied, including, without limitation, any warranties or conditions
3554
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
3555
- PARTICULAR PURPOSE. You are solely responsible for determining the
3556
- appropriateness of using or redistributing the Work and assume any
3557
- risks associated with Your exercise of permissions under this License.
3558
-
3559
- 8. Limitation of Liability. In no event and under no legal theory,
3560
- whether in tort (including negligence), contract, or otherwise,
3561
- unless required by applicable law (such as deliberate and grossly
3562
- negligent acts) or agreed to in writing, shall any Contributor be
3563
- liable to You for damages, including any direct, indirect, special,
3564
- incidental, or consequential damages of any character arising as a
3565
- result of this License or out of the use or inability to use the
3566
- Work (including but not limited to damages for loss of goodwill,
3567
- work stoppage, computer failure or malfunction, or any and all
3568
- other commercial damages or losses), even if such Contributor
3569
- has been advised of the possibility of such damages.
3570
-
3571
- 9. Accepting Warranty or Additional Liability. While redistributing
3572
- the Work or Derivative Works thereof, You may choose to offer,
3573
- and charge a fee for, acceptance of support, warranty, indemnity,
3574
- or other liability obligations and/or rights consistent with this
3575
- License. However, in accepting such obligations, You may act only
3576
- on Your own behalf and on Your sole responsibility, not on behalf
3577
- of any other Contributor, and only if You agree to indemnify,
3578
- defend, and hold each Contributor harmless for any liability
3579
- incurred by, or claims asserted against, such Contributor by reason
3580
- of your accepting any such warranty or additional liability.
3581
-
3582
- END OF TERMS AND CONDITIONS
3583
-
3584
- APPENDIX: How to apply the Apache License to your work.
3585
-
3586
- To apply the Apache License to your work, attach the following
3587
- boilerplate notice, with the fields enclosed by brackets "[]"
3588
- replaced with your own identifying information. (Don't include
3589
- the brackets!) The text should be enclosed in the appropriate
3590
- comment syntax for the file format. We also recommend that a
3591
- file or class name and description of purpose be included on the
3592
- same "printed page" as the copyright notice for easier
3593
- identification within third-party archives.
3594
-
3595
- Copyright [yyyy] [name of copyright owner]
3596
-
3597
- Licensed under the Apache License, Version 2.0 (the "License");
3598
- you may not use this file except in compliance with the License.
3599
- You may obtain a copy of the License at
3600
-
3601
- http://www.apache.org/licenses/LICENSE-2.0
3602
-
3603
- Unless required by applicable law or agreed to in writing, software
3604
- distributed under the License is distributed on an "AS IS" BASIS,
3605
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3606
- See the License for the specific language governing permissions and
3607
- limitations under the License.
3371
+ PERFORMANCE OF THIS SOFTWARE.
@@ -4,8 +4,7 @@
4
4
  "core-js": "3.49.0",
5
5
  "debug": "4.4.3",
6
6
  "lighthouse": "13.4.0",
7
- "semver": "^7.7.4",
8
- "urlpattern-polyfill": "^10.1.0",
7
+ "semver": "7.8.5",
9
8
  "yargs": "18.0.0",
10
- "puppeteer-core": "25.2.1"
9
+ "puppeteer-core": "25.3.0"
11
10
  }