Skip to content

Chrome DevTools for coding agents

feat: initial version

Alex Rudenko31a0bdce266a
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..96e9aee3
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,31 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: bug
+assignees: ''
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Chrome version:**
+**Coding agent version:**
+**Model version:**
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Chat log**
+The full log of the chat with your coding agent.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..22b00af0
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,19 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: feature request
+assignees: ''
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml
new file mode 100644
index 00000000..268783db
--- /dev/null
+++ b/.github/workflows/check-format.yml
@@ -0,0 +1,29 @@
+name: Check Code Format
+
+permissions: read-all
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ check-format:
+ runs-on: ubuntu-latest # You can also use 'macos-latest' or 'windows-latest'
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4 # Use the latest stable version
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4 # Use the latest stable version
+ with:
+ node-version: '22' # Specify the Node.js version your project uses (e.g., '18', '20', '22')
+ cache: 'npm' # Caches npm dependencies to speed up builds
+
+ - name: Install dependencies
+ run: npm ci # Use 'npm ci' for clean installs in CI environments, or 'npm install' if you prefer
+
+ - name: Run format check
+ run: npm run check-format
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
new file mode 100644
index 00000000..b2287ff4
--- /dev/null
+++ b/.github/workflows/run-tests.yml
@@ -0,0 +1,33 @@
+name: Compile and run unit tests
+
+permissions: read-all
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '22'
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+
+ # Ensure the project compiles properly.
+ - name: Build the project
+ run: npm run build
+
+ - name: Run tests
+ run: npm run test
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..6043309f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,148 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+lerna-debug.log*
+.pnpm-debug.log*
+
+# Diagnostic reports (https://nodejs.org/api/report.html)
+report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+*.lcov
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# Snowpack dependency directory (https://snowpack.dev/)
+web_modules/
+
+# TypeScript cache
+*.tsbuildinfo
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional stylelint cache
+.stylelintcache
+
+# Microbundle cache
+.rpt2_cache/
+.rts2_cache_cjs/
+.rts2_cache_es/
+.rts2_cache_umd/
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variable files
+.env
+.env.development.local
+.env.test.local
+.env.production.local
+.env.local
+
+# parcel-bundler cache (https://parceljs.org/)
+.cache
+.parcel-cache
+
+# Next.js build output
+.next
+out
+
+# Nuxt.js build / generate output
+.nuxt
+dist
+
+# Gatsby files
+.cache/
+# Comment in the public line in if your project uses Gatsby and not Next.js
+# https://nextjs.org/blog/next-9-1#public-directory-support
+# public
+
+# vuepress build output
+.vuepress/dist
+
+# vuepress v2.x temp and cache directory
+.temp
+.cache
+
+# vitepress build output
+**/.vitepress/dist
+
+# vitepress cache directory
+**/.vitepress/cache
+
+# Docusaurus cache and generated files
+.docusaurus
+
+# Serverless directories
+.serverless/
+
+# FuseBox cache
+.fusebox/
+
+# DynamoDB Local files
+.dynamodb/
+
+# TernJS port file
+.tern-port
+
+# Stores VSCode versions used for testing VSCode extensions
+.vscode-test
+
+# Stores VSCode specific settings
+.vscode
+!.vscode/*.template.json
+!.vscode/extensions.json
+
+# yarn v2
+.yarn/cache
+.yarn/unplugged
+.yarn/build-state.yml
+.yarn/install-state.gz
+.pnp.*
+
+# Build output directory
+build/
+
+log.txt
+
+.DS_Store
\ No newline at end of file
diff --git a/.prettierrc.cjs b/.prettierrc.cjs
new file mode 100644
index 00000000..75ed08ef
--- /dev/null
+++ b/.prettierrc.cjs
@@ -0,0 +1,15 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+/**
+ * @type {import('prettier').Config}
+ */
+module.exports = {
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
+ ...require('gts/.prettierrc.json'),
+ singleAttributePerLine: true,
+ htmlWhitespaceSensitivity: 'strict',
+};
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..dc26f9ee
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,78 @@
+# How to contribute
+
+We'd love to accept your patches and contributions to this project.
+
+## Before you begin
+
+### Sign our Contributor License Agreement
+
+Contributions to this project must be accompanied by a
+[Contributor License Agreement](https://cla.developers.google.com/about) (CLA).
+You (or your employer) retain the copyright to your contribution; this simply
+gives us permission to use and redistribute your contributions as part of the
+project.
+
+If you or your current employer have already signed the Google CLA (even if it
+was for a different project), you probably don't need to do it again.
+
+Visit <https://cla.developers.google.com/> to see your current agreements or to
+sign a new one.
+
+### Review our community guidelines
+
+This project follows
+[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
+
+## Contribution process
+
+### Code reviews
+
+All submissions, including submissions by project members, require review. We
+use GitHub pull requests for this purpose. Consult
+[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
+information on using pull requests.
+
+## Installation
+
+```sh
+git clone https://github.com/ChromeDevTools/chrome-devtools-mcp.git
+cd chrome-devtools-mcp
+npm ci
+npm run build
+```
+
+### Testing with @modelcontextprotocol/inspector
+
+```sh
+npx @modelcontextprotocol/inspector node build/src/index.js
+```
+
+### Testing with an MCP client
+
+Add the MCP server to your client's config.
+
+```
+{
+ "mcpServers": {
+ "chrome-devtools": {
+ "command": "node",
+ "args": ["/path-to/build/src/index.js"],
+ }
+ }
+}
+```
+
+#### Using with VS Code SSH
+
+When running the `@modelcontextprotocol/inspector` it spawns 2 services - one on port `6274` and one on `6277`.
+Usually VS Code automatically detects and forwards `6274` but fails to detect `6277` so you need to manually forward it.
+
+### Debugging
+
+To write debug logs to `log.txt` in the working directory, run with the following commands:
+
+```sh
+npx @modelcontextprotocol/inspector node build/src/index.js --log-file=/your/desired/path/log.txt
+```
+
+You can use the `DEBUG` environment variable as usual to control categories that are logged.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..7a4a3ea2
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..7d1da29a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,176 @@
+# Chrome DevTools MCP
+
+`chrome-devtools-mcp` is a server that enables Model-Context-Protocol (MCP)
+clients to automate Chrome for debugging purposes. This is an early experimental
+prototype!
+
+## Disclaimers
+
+`chrome-devtools-mcp` exposes content of the browser instance to the MCP clients
+allowing them to inspect, debug, and modify any data in the browser or DevTools.
+Avoid sharing sensitive or personal information that you do want to share with
+MCP clients.
+
+## Requirements
+
+- [Node.js 22](https://nodejs.org/) or newer.
+- [Chrome](https://www.google.com/chrome/) current stable version or newer.
+- [npm](https://www.npmjs.com/).
+
+## Getting started
+
+Add the following config to your MCP client:
+
+```json
+{
+ "mcpServers": {
+ "chrome-devtools-mcp": {
+ "command": "npx",
+ "args": ["chrome-devtools-mcp@latest"]
+ }
+ }
+}
+```
+
+> [!NOTE]
+> `Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
+
+### MCP Client specific configuration
+
+<details>
+ <summary>Cursor</summary>
+ Follow https://docs.cursor.com/en/context/mcp#using-mcp-json and use the config provided above.
+</details>
+
+<details>
+ <summary>Claude Code</summary>
+ Use the Claude Code CLI to add the Chrome DevTools MCP server ([guide](https://docs.anthropic.com/en/docs/claude-code/mcp)):
+
+```bash
+claude mcp add chrome-devtools-mcp npx chrome-devtools-mcp@latest
+```
+
+</details>
+
+<details>
+ <summary>Cline</summary>
+ Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above.
+</details>
+
+<details>
+ <summary>Copilot / VS Code</summary>
+ Follow the MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server),
+ with the standard config from above. You can also install the Chrome DevTools MCP server using the VS Code CLI:
+
+ ```bash
+ code --add-mcp '{"name":"chrome-devtools-mcp","command":"npx","args":["chrome-devtools-mcp@latest"]}'
+ ```
+</details>
+
+<details>
+ <summary>Gemini CLI</summary>
+ Follow the [MCP guide](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server)
+ using the standard config from above.
+</details>
+
+<details>
+ <summary>Gemini Code Assist</summary>
+ Follow the [configure MCP guide](https://cloud.google.com/gemini/docs/codeassist/use-agentic-chat-pair-programmer#configure-mcp-servers)
+ using the standard config from above.
+</details>
+
+## Tools
+
+<!-- BEGIN AUTO GENERATED TOOLS -->
+
+- **Input automation** (7 tools)
+ - [`click`](docs/tool-reference.md#click)
+ - [`drag`](docs/tool-reference.md#drag)
+ - [`fill`](docs/tool-reference.md#fill)
+ - [`fill_form`](docs/tool-reference.md#fill_form)
+ - [`handle_dialog`](docs/tool-reference.md#handle_dialog)
+ - [`hover`](docs/tool-reference.md#hover)
+ - [`upload_file`](docs/tool-reference.md#upload_file)
+- **Navigation automation** (7 tools)
+ - [`close_page`](docs/tool-reference.md#close_page)
+ - [`list_pages`](docs/tool-reference.md#list_pages)
+ - [`navigate_page`](docs/tool-reference.md#navigate_page)
+ - [`navigate_page_history`](docs/tool-reference.md#navigate_page_history)
+ - [`new_page`](docs/tool-reference.md#new_page)
+ - [`select_page`](docs/tool-reference.md#select_page)
+ - [`wait_for`](docs/tool-reference.md#wait_for)
+- **Emulation** (3 tools)
+ - [`emulate_cpu`](docs/tool-reference.md#emulate_cpu)
+ - [`emulate_network`](docs/tool-reference.md#emulate_network)
+ - [`resize_page`](docs/tool-reference.md#resize_page)
+- **Performance** (2 tools)
+ - [`performance_start_trace`](docs/tool-reference.md#performance_start_trace)
+ - [`performance_stop_trace`](docs/tool-reference.md#performance_stop_trace)
+- **Network** (2 tools)
+ - [`get_network_request`](docs/tool-reference.md#get_network_request)
+ - [`list_network_requests`](docs/tool-reference.md#list_network_requests)
+- **Debugging** (4 tools)
+ - [`evaluate_script`](docs/tool-reference.md#evaluate_script)
+ - [`list_console_messages`](docs/tool-reference.md#list_console_messages)
+ - [`take_screenshot`](docs/tool-reference.md#take_screenshot)
+ - [`take_snapshot`](docs/tool-reference.md#take_snapshot)
+
+<!-- END AUTO GENERATED TOOLS -->
+
+## Configuration
+
+For example, to launch the system-installed Chrome Canary pass `--channel=canary` as an argument:
+
+```json
+{
+ "mcpServers": {
+ "chrome-devtools": {
+ "command": "npx",
+ "args": [
+ "chrome-devtools-mcp@latest"
+ "--channel=canary",
+ ]
+ }
+ }
+}
+```
+
+### User data directory
+
+`chrome-devtools-mcp` starts a Chrome's stable channel instance using the user
+data directory at `$HOME/.cache/chrome-devtools-mcp/mcp-profile-$CHANNEL` on
+Linux/MacOS and `%HOMEPATH%/.cache/chrome-devtools-mcp/mcp-profile-$CHANNEL` in
+Windows. The user data directory is not cleared between runs and shared across
+all instances of `chrome-devtools-mcp`.
+
+## CLI
+
+Run `npx chrome-devtools-mcp@latest --help` to see all available configuration options:
+
+<!-- BEGIN AUTO GENERATED CLI -->
+
+```sh
+Options:
+ --version Show version number [boolean]
+ -u, --browserUrl The browser URL to connect to [string]
+ --headless Whether to run in headless (no UI) mode [boolean] [default: false]
+ -e, --executablePath Path to custom Chrome executable [string]
+ --isolated If specified, creates a temporary user-data-dir that is automatically
+ cleaned up after the browser is closed. [boolean] [default: false]
+ --channel System installed browser channel to use.
+ [string] [choices: "stable", "canary", "beta", "dev"]
+ --help Show help [boolean]
+
+Examples:
+ npx chrome-devtools-mcp@latest --browserUrl Connect to an existing browser instance
+ http://127.0.0.1:9222
+ npx chrome-devtools-mcp@latest --channel beta Use Chrome Beta installed on this system
+ npx chrome-devtools-mcp@latest --channel canary Use Chrome Canary installed on this system
+ npx chrome-devtools-mcp@latest --channel dev Use Chrome Dev installed on this system
+ npx chrome-devtools-mcp@latest --channel stable Use stable Chrome installed on this system
+ npx chrome-devtools-mcp@latest --logFile Save logs to a file
+ /tmp/log.txt
+ npx chrome-devtools-mcp@latest --help Print CLI options
+```
+
+<!-- END AUTO GENERATED CLI -->
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 00000000..c5bfca28
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,3 @@
+## Security policy
+
+The Chrome DevTools MCP project takes security very seriously. Please use [Chromium’s process to report security issues](https://www.chromium.org/Home/chromium-security/reporting-security-bugs/).
diff --git a/docs/tool-reference.md b/docs/tool-reference.md
new file mode 100644
index 00000000..4dc46392
--- /dev/null
+++ b/docs/tool-reference.md
@@ -0,0 +1,297 @@
+<!-- AUTO GENERATED DO NOT EDIT - run 'npm run generate-docs' to update-->
+
+# Chrome DevTools MCP Tool Reference
+
+- **[Input automation](#input-automation)** (7 tools)
+ - [`click`](#click)
+ - [`drag`](#drag)
+ - [`fill`](#fill)
+ - [`fill_form`](#fill_form)
+ - [`handle_dialog`](#handle_dialog)
+ - [`hover`](#hover)
+ - [`upload_file`](#upload_file)
+- **[Navigation automation](#navigation-automation)** (7 tools)
+ - [`close_page`](#close_page)
+ - [`list_pages`](#list_pages)
+ - [`navigate_page`](#navigate_page)
+ - [`navigate_page_history`](#navigate_page_history)
+ - [`new_page`](#new_page)
+ - [`select_page`](#select_page)
+ - [`wait_for`](#wait_for)
+- **[Emulation](#emulation)** (3 tools)
+ - [`emulate_cpu`](#emulate_cpu)
+ - [`emulate_network`](#emulate_network)
+ - [`resize_page`](#resize_page)
+- **[Performance](#performance)** (2 tools)
+ - [`performance_start_trace`](#performance_start_trace)
+ - [`performance_stop_trace`](#performance_stop_trace)
+- **[Network](#network)** (2 tools)
+ - [`get_network_request`](#get_network_request)
+ - [`list_network_requests`](#list_network_requests)
+- **[Debugging](#debugging)** (4 tools)
+ - [`evaluate_script`](#evaluate_script)
+ - [`list_console_messages`](#list_console_messages)
+ - [`take_screenshot`](#take_screenshot)
+ - [`take_snapshot`](#take_snapshot)
+
+## Input automation
+
+### `click`
+
+**Description:** Clicks on the provided element
+
+**Parameters:**
+
+- **dblClick** (boolean) _(optional)_: Set to true for double clicks. Default is false.
+- **uid** (number) **(required)**: The uid of an element on the page from the page content snapshot
+
+---
+
+### `drag`
+
+**Description:** [`Drag`](#drag) an element onto another element
+
+**Parameters:**
+
+- **from_uid** (number) **(required)**: The uid of the element to [`drag`](#drag)
+- **to_uid** (number) **(required)**: The uid of the element to drop into
+
+---
+
+### `fill`
+
+**Description:** Type text into a input, text area or select an option from a &lt;select&gt; element.
+
+**Parameters:**
+
+- **uid** (number) **(required)**: The uid of an element on the page from the page content snapshot
+- **value** (string) **(required)**: The value to [`fill`](#fill) in
+
+---
+
+### `fill_form`
+
+**Description:** [`Fill`](#fill) out multiple form elements at once
+
+**Parameters:**
+
+- **elements** (array) **(required)**: Elements from snapshot to [`fill`](#fill) out.
+
+---
+
+### `handle_dialog`
+
+**Description:** If a browser dialog was opened, use this command to handle it
+
+**Parameters:**
+
+- **action** (enum: "accept", "dismiss") **(required)**: Whether to dismiss or accept the dialog
+- **promptText** (string) _(optional)_: Optional prompt text to enter into the dialog.
+
+---
+
+### `hover`
+
+**Description:** [`Hover`](#hover) over the provided element
+
+**Parameters:**
+
+- **uid** (number) **(required)**: The uid of an element on the page from the page content snapshot
+
+---
+
+### `upload_file`
+
+**Description:** Upload a file through a provided element.
+
+**Parameters:**
+
+- **filePath** (string) **(required)**: The local path of the file to upload
+- **uid** (number) **(required)**: The uid of the file input element or an element that will open file chooser on the page from the page content snapshot
+
+---
+
+## Navigation automation
+
+### `close_page`
+
+**Description:** Closes the page by its index.
+
+**Parameters:**
+
+- **pageIdx** (number) **(required)**: The index of the page to close. Call [`list_pages`](#list_pages) to list pages.
+
+---
+
+### `list_pages`
+
+**Description:** Get a list of pages open in the browser.
+
+**Parameters:** None
+
+---
+
+### `navigate_page`
+
+**Description:** Navigates the currently selected page to a URL.
+
+**Parameters:**
+
+- **url** (string) **(required)**: URL to navigate the page to
+
+---
+
+### `navigate_page_history`
+
+**Description:** Navigates the currently selected page.
+
+**Parameters:**
+
+- **navigate** (enum: "back", "forward") **(required)**: Whether to navigate back or navigate forward in the selected pages history
+
+---
+
+### `new_page`
+
+**Description:** Creates a new page
+
+**Parameters:**
+
+- **url** (string) **(required)**: URL to load in a new page.
+
+---
+
+### `select_page`
+
+**Description:** Select a page as a context for future tool calls.
+
+**Parameters:**
+
+- **pageIdx** (number) **(required)**: The index of the page to select. Call [`list_pages`](#list_pages) to list pages.
+
+---
+
+### `wait_for`
+
+**Description:** Wait for the specified text to appear on the selected page.
+
+**Parameters:**
+
+- **text** (string) **(required)**: Text to appear on the page
+
+---
+
+## Emulation
+
+### `emulate_cpu`
+
+**Description:** Emulates CPU throttling by slowing down the selected page's execution.
+
+**Parameters:**
+
+- **throttlingRate** (number) **(required)**: The CPU throttling rate representing the slowdown factor 1-20x. Set the rate to 1 to disable throttling
+
+---
+
+### `emulate_network`
+
+**Description:** Emulates network conditions such as throttling on the selected page.
+
+**Parameters:**
+
+- **throttlingOption** (enum: "No emulation", "Slow 3G", "Fast 3G", "Slow 4G", "Fast 4G") **(required)**: The network throttling option to emulate. Available throttling options are: No emulation, Slow 3G, Fast 3G, Slow 4G, Fast 4G. Set to "No emulation" to disable.
+
+---
+
+### `resize_page`
+
+**Description:** Resizes the selected page's window so that the page has specified dimension
+
+**Parameters:**
+
+- **height** (number) **(required)**: Page height
+- **width** (number) **(required)**: Page width
+
+---
+
+## Performance
+
+### `performance_start_trace`
+
+**Description:** Starts a performance trace recording
+
+**Parameters:**
+
+- **autoStop** (boolean) **(required)**: Determines if the trace recording should be automatically stopped.
+- **reload** (boolean) **(required)**: Determines if, once tracing has started, the page should be automatically reloaded
+
+---
+
+### `performance_stop_trace`
+
+**Description:** Stops the active performance trace recording
+
+**Parameters:** None
+
+---
+
+## Network
+
+### `get_network_request`
+
+**Description:** Gets a network request by URL. You can get all requests by calling [`list_network_requests`](#list_network_requests).
+
+**Parameters:**
+
+- **url** (string) **(required)**: The URL of the request.
+
+---
+
+### `list_network_requests`
+
+**Description:** List all requests for the currently selected page
+
+**Parameters:** None
+
+---
+
+## Debugging
+
+### `evaluate_script`
+
+**Description:** Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON.
+
+**Parameters:**
+
+- **function** (string) **(required)**: A JavaScript function to run in the currently selected page. Example: `() => {return document.title}` or `async () => {return await fetch("example.com")}`
+
+---
+
+### `list_console_messages`
+
+**Description:** List all console messages for the currently selected page
+
+**Parameters:** None
+
+---
+
+### `take_screenshot`
+
+**Description:** Take a screenshot of the page or element.
+
+**Parameters:**
+
+- **format** (enum: "png", "jpeg") _(optional)_: Type of format to save the screenshot as. Default is "png"
+- **fullPage** (boolean) _(optional)_: If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.
+- **uid** (number) _(optional)_: The uid of an element on the page from the page content snapshot. If omitted takes a pages screenshot.
+
+---
+
+### `take_snapshot`
+
+**Description:** Take a text snapshot of the currently selected page. The snapshot lists page elements along with a unique
+identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot.
+
+**Parameters:** None
+
+---
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 00000000..6eedd6f2
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,44 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import js from '@eslint/js';
+import globals from 'globals';
+import tseslint from 'typescript-eslint';
+import {defineConfig, globalIgnores} from 'eslint/config';
+import checkLicensePlugin from './scripts/eslint_rules/check-license-plugin.js';
+
+export default defineConfig([
+ globalIgnores(['**/node_modules', '**/build/']),
+ {
+ files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
+ plugins: {js},
+ extends: ['js/recommended'],
+ },
+ {
+ files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
+ languageOptions: {globals: globals.node},
+ },
+ {plugins: {checkLicensePlugin}},
+ {
+ rules: {
+ 'checkLicensePlugin/check-license': 'error',
+ '@typescript-eslint/no-unused-vars': [
+ 'error',
+ {
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ },
+ ],
+ '@typescript-eslint/no-explicit-any': [
+ 'error',
+ {
+ ignoreRestArgs: true,
+ },
+ ],
+ },
+ },
+ tseslint.configs.recommended,
+]);
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 00000000..e0ad2712
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,5936 @@
+{
+ "name": "chrome-devtools-mcp",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "chrome-devtools-mcp",
+ "version": "0.1.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@modelcontextprotocol/sdk": "^1.17.5",
+ "debug": "^4.4.1",
+ "puppeteer-core": "^24.20.0",
+ "yargs": "18.0.0"
+ },
+ "bin": {
+ "chrome-devtools-mcp": "build/src/index.js"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.31.0",
+ "@types/debug": "^4.1.12",
+ "@types/filesystem": "^0.0.36",
+ "@types/node": "^22.18.1",
+ "@types/sinon": "^17.0.4",
+ "@types/yargs": "^17.0.33",
+ "@typescript-eslint/eslint-plugin": "^8.36.0",
+ "@typescript-eslint/parser": "^8.36.0",
+ "chrome-devtools-frontend": "1.0.1513662",
+ "eslint": "^9.31.0",
+ "globals": "^16.3.0",
+ "gts": "^6.0.2",
+ "prettier": "^3.5.3",
+ "puppeteer": "^24.20.0",
+ "sinon": "^21.0.0",
+ "typescript": "^5.8.3",
+ "typescript-eslint": "^8.36.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.27.1",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
+ "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",
+ "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",
+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz",
+ "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.6",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-array/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/@eslint/config-array/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz",
+ "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.15.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz",
+ "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
+ "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.31.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz",
+ "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",
+ "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.3.4",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz",
+ "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.15.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.6",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array": {
+ "version": "0.13.0",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
+ "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
+ "deprecated": "Use @eslint/config-array instead",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanwhocodes/object-schema": "^2.0.3",
+ "debug": "^4.3.1",
+ "minimatch": "^3.0.5"
+ },
+ "engines": {
+ "node": ">=10.10.0"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/object-schema": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",
+ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",
+ "deprecated": "Use @eslint/object-schema instead",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk": {
+ "version": "1.17.5",
+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.17.5.tgz",
+ "integrity": "sha512-QakrKIGniGuRVfWBdMsDea/dx1PNE739QJ7gCM41s9q+qaCYTHCdsIBXQVVXry3mfWAiaM9kT22Hyz53Uw8mfg==",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.6",
+ "content-type": "^1.0.5",
+ "cors": "^2.8.5",
+ "cross-spawn": "^7.0.5",
+ "eventsource": "^3.0.2",
+ "eventsource-parser": "^3.0.0",
+ "express": "^5.0.1",
+ "express-rate-limit": "^7.5.0",
+ "pkce-challenge": "^5.0.0",
+ "raw-body": "^3.0.0",
+ "zod": "^3.23.8",
+ "zod-to-json-schema": "^3.24.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@pkgr/core": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.2.tgz",
+ "integrity": "sha512-fdDH1LSGfZdTH2sxdpVMw31BanV28K/Gry0cVFxaNP77neJSkd82mM8ErPNYs9e+0O7SdHBLTDzDgwUuy18RnQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/unts"
+ }
+ },
+ "node_modules/@puppeteer/browsers": {
+ "version": "2.10.9",
+ "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.9.tgz",
+ "integrity": "sha512-kUGHwABarVhvMP+zhW5zvDA7LmGcd4TwrTEBwcTQic5EebUqaK5NjC0UXLJepIFVGsr2N/Z8NJQz2JYGo1ZwxA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "debug": "^4.4.1",
+ "extract-zip": "^2.0.1",
+ "progress": "^2.0.3",
+ "proxy-agent": "^6.5.0",
+ "semver": "^7.7.2",
+ "tar-fs": "^3.1.0",
+ "yargs": "^17.7.2"
+ },
+ "bin": {
+ "browsers": "lib/cjs/main-cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@puppeteer/browsers/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@puppeteer/browsers/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/@puppeteer/browsers/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@puppeteer/browsers/node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@sinonjs/commons": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",
+ "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "type-detect": "4.0.8"
+ }
+ },
+ "node_modules/@sinonjs/fake-timers": {
+ "version": "13.0.5",
+ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz",
+ "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@sinonjs/commons": "^3.0.1"
+ }
+ },
+ "node_modules/@sinonjs/samsam": {
+ "version": "8.0.3",
+ "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-8.0.3.tgz",
+ "integrity": "sha512-hw6HbX+GyVZzmaYNh82Ecj1vdGZrqVIn/keDTg63IgAwiQPO+xCz99uG6Woqgb4tM0mUiFENKZ4cqd7IX94AXQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@sinonjs/commons": "^3.0.1",
+ "type-detect": "^4.1.0"
+ }
+ },
+ "node_modules/@sinonjs/samsam/node_modules/type-detect": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz",
+ "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@tootallnate/quickjs-emscripten": {
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",
+ "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/debug": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/filesystem": {
+ "version": "0.0.36",
+ "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.36.tgz",
+ "integrity": "sha512-vPDXOZuannb9FZdxgHnqSwAG/jvdGM8Wq+6N4D/d80z+D4HWH+bItqsZaVRQykAn6WEVeEkLm2oQigyHtgb0RA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/filewriter": "*"
+ }
+ },
+ "node_modules/@types/filewriter": {
+ "version": "0.0.33",
+ "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.33.tgz",
+ "integrity": "sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "22.18.1",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.1.tgz",
+ "integrity": "sha512-rzSDyhn4cYznVG+PCzGe1lwuMYJrcBS1fc3JqSa2PvtABwWo+dZ1ij5OVok3tqfpEBCBoaR4d7upFJk73HRJDw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
+ "node_modules/@types/normalize-package-data": {
+ "version": "2.4.4",
+ "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
+ "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/semver": {
+ "version": "7.7.0",
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.0.tgz",
+ "integrity": "sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/sinon": {
+ "version": "17.0.4",
+ "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-17.0.4.tgz",
+ "integrity": "sha512-RHnIrhfPO3+tJT0s7cFaXGZvsL4bbR3/k7z3P312qMS4JaS2Tk+KiwiLx1S0rQ56ERj00u1/BtdyVd0FY+Pdew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/sinonjs__fake-timers": "*"
+ }
+ },
+ "node_modules/@types/sinonjs__fake-timers": {
+ "version": "8.1.5",
+ "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.5.tgz",
+ "integrity": "sha512-mQkU2jY8jJEF7YHjHvsQO8+3ughTL1mcnn96igfhONmR+fUPSKIkefQYpSe8bsly2Ep7oQbn/6VG5/9/0qcArQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/yargs": {
+ "version": "17.0.33",
+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz",
+ "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "node_modules/@types/yargs-parser": {
+ "version": "21.0.3",
+ "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
+ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/yauzl": {
+ "version": "2.10.3",
+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
+ "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.36.0.tgz",
+ "integrity": "sha512-lZNihHUVB6ZZiPBNgOQGSxUASI7UJWhT8nHyUGCnaQ28XFCw98IfrMCG3rUl1uwUWoAvodJQby2KTs79UTcrAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.10.0",
+ "@typescript-eslint/scope-manager": "8.36.0",
+ "@typescript-eslint/type-utils": "8.36.0",
+ "@typescript-eslint/utils": "8.36.0",
+ "@typescript-eslint/visitor-keys": "8.36.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^7.0.0",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.36.0",
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.36.0.tgz",
+ "integrity": "sha512-FuYgkHwZLuPbZjQHzJXrtXreJdFMKl16BFYyRrLxDhWr6Qr7Kbcu2s1Yhu8tsiMXw1S0W1pjfFfYEt+R604s+Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.36.0",
+ "@typescript-eslint/types": "8.36.0",
+ "@typescript-eslint/typescript-estree": "8.36.0",
+ "@typescript-eslint/visitor-keys": "8.36.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.36.0.tgz",
+ "integrity": "sha512-JAhQFIABkWccQYeLMrHadu/fhpzmSQ1F1KXkpzqiVxA/iYI6UnRt2trqXHt1sYEcw1mxLnB9rKMsOxXPxowN/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.36.0",
+ "@typescript-eslint/types": "^8.36.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.36.0.tgz",
+ "integrity": "sha512-wCnapIKnDkN62fYtTGv2+RY8FlnBYA3tNm0fm91kc2BjPhV2vIjwwozJ7LToaLAyb1ca8BxrS7vT+Pvvf7RvqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.36.0",
+ "@typescript-eslint/visitor-keys": "8.36.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.36.0.tgz",
+ "integrity": "sha512-Nhh3TIEgN18mNbdXpd5Q8mSCBnrZQeY9V7Ca3dqYvNDStNIGRmJA6dmrIPMJ0kow3C7gcQbpsG2rPzy1Ks/AnA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.36.0.tgz",
+ "integrity": "sha512-5aaGYG8cVDd6cxfk/ynpYzxBRZJk7w/ymto6uiyUFtdCozQIsQWh7M28/6r57Fwkbweng8qAzoMCPwSJfWlmsg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/typescript-estree": "8.36.0",
+ "@typescript-eslint/utils": "8.36.0",
+ "debug": "^4.3.4",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.36.0.tgz",
+ "integrity": "sha512-xGms6l5cTJKQPZOKM75Dl9yBfNdGeLRsIyufewnxT4vZTrjC0ImQT4fj8QmtJK84F58uSh5HVBSANwcfiXxABQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.36.0.tgz",
+ "integrity": "sha512-JaS8bDVrfVJX4av0jLpe4ye0BpAaUW7+tnS4Y4ETa3q7NoZgzYbN9zDQTJ8kPb5fQ4n0hliAt9tA4Pfs2zA2Hg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.36.0",
+ "@typescript-eslint/tsconfig-utils": "8.36.0",
+ "@typescript-eslint/types": "8.36.0",
+ "@typescript-eslint/visitor-keys": "8.36.0",
+ "debug": "^4.3.4",
+ "fast-glob": "^3.3.2",
+ "is-glob": "^4.0.3",
+ "minimatch": "^9.0.4",
+ "semver": "^7.6.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.36.0.tgz",
+ "integrity": "sha512-VOqmHu42aEMT+P2qYjylw6zP/3E/HvptRwdn/PZxyV27KhZg2IOszXod4NcXisWzPAGSS4trE/g4moNj6XmH2g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.7.0",
+ "@typescript-eslint/scope-manager": "8.36.0",
+ "@typescript-eslint/types": "8.36.0",
+ "@typescript-eslint/typescript-estree": "8.36.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.36.0.tgz",
+ "integrity": "sha512-vZrhV2lRPWDuGoxcmrzRZyxAggPL+qp3WzUrlZD+slFueDiYHxeBa34dUXPuC0RmGKzl4lS5kFJYvKCq9cnNDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.36.0",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@ungap/structured-clone": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
+ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/accepts": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.15.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-escapes": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
+ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.21.3"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/array-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/arrify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
+ "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ast-types": {
+ "version": "0.13.4",
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz",
+ "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/b4a": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.7.0.tgz",
+ "integrity": "sha512-KtsH1alSKomfNi/yDAFaD8PPFfi0LxJCEbPuzogcXrMF+yH40Z1ykTDo2vyxuQfN1FLjv0LFM7CadLHEPrVifw==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "react-native-b4a": "^0.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react-native-b4a": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/bare-events": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.6.1.tgz",
+ "integrity": "sha512-AuTJkq9XmE6Vk0FJVNq5QxETrSA/vKHarWVBG5l/JbdCL1prJemiyJqUS0jrlXO0MftuPq4m3YVYhoNc5+aE/g==",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ "node_modules/bare-fs": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.3.3.tgz",
+ "integrity": "sha512-W+ZpiQx1i0dm073So22v3jColDtvyqSTyUYEnooYwKcl+SHuqnQGKyuHdwigQffWJV5ghKtskVH7ydAkBVKQZQ==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "bare-events": "^2.5.4",
+ "bare-path": "^3.0.0",
+ "bare-stream": "^2.6.4",
+ "bare-url": "^2.2.2",
+ "fast-fifo": "^1.3.2"
+ },
+ "engines": {
+ "bare": ">=1.16.0"
+ },
+ "peerDependencies": {
+ "bare-buffer": "*"
+ },
+ "peerDependenciesMeta": {
+ "bare-buffer": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/bare-os": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz",
+ "integrity": "sha512-T+V1+1srU2qYNBmJCXZkUY5vQ0B4FSlL3QDROnKQYOqeiQR8UbjNHlPa+TIbM4cuidiN9GaTaOZgSEgsvPbh5A==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "engines": {
+ "bare": ">=1.14.0"
+ }
+ },
+ "node_modules/bare-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz",
+ "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "bare-os": "^3.0.1"
+ }
+ },
+ "node_modules/bare-stream": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.7.0.tgz",
+ "integrity": "sha512-oyXQNicV1y8nc2aKffH+BUHFRXmx6VrPzlnaEvMhram0nPBrKcEdcyBg5r08D0i8VxngHFAiVyn1QKXpSG0B8A==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "streamx": "^2.21.0"
+ },
+ "peerDependencies": {
+ "bare-buffer": "*",
+ "bare-events": "*"
+ },
+ "peerDependenciesMeta": {
+ "bare-buffer": {
+ "optional": true
+ },
+ "bare-events": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/bare-url": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.2.2.tgz",
+ "integrity": "sha512-g+ueNGKkrjMazDG3elZO1pNs3HY5+mMmOet1jtKyhOaCnkLzitxf26z7hoAEkDNgdNmnc1KIlt/dw6Po6xZMpA==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "bare-path": "^3.0.0"
+ }
+ },
+ "node_modules/basic-ftp": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz",
+ "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
+ "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^1.0.5",
+ "debug": "^4.4.0",
+ "http-errors": "^2.0.0",
+ "iconv-lite": "^0.6.3",
+ "on-finished": "^2.4.1",
+ "qs": "^6.14.0",
+ "raw-body": "^3.0.0",
+ "type-is": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/builtins": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz",
+ "integrity": "sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.0.0"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase-keys": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz",
+ "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase": "^5.3.1",
+ "map-obj": "^4.0.0",
+ "quick-lru": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chardet": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
+ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/chrome-devtools-frontend": {
+ "version": "1.0.1513662",
+ "resolved": "https://registry.npmjs.org/chrome-devtools-frontend/-/chrome-devtools-frontend-1.0.1513662.tgz",
+ "integrity": "sha512-/ChT1txz1ZYNnhgFDifG3S6QvF+cBBWZiMoz1Q0Kg4OY/c+/LjLSe4RLL7QRw350KnrAlwY10hd+aG4p51hqwQ==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/chromium-bidi": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-8.0.0.tgz",
+ "integrity": "sha512-d1VmE0FD7lxZQHzcDUCKZSNRtRwISXDsdg4HjdTR5+Ll5nQ/vzU12JeNmupD6VWffrPSlrnGhEWlLESKH3VO+g==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "mitt": "^3.0.1",
+ "zod": "^3.24.1"
+ },
+ "peerDependencies": {
+ "devtools-protocol": "*"
+ }
+ },
+ "node_modules/cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cli-width": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",
+ "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",
+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^7.2.0",
+ "strip-ansi": "^7.1.0",
+ "wrap-ansi": "^9.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/cliui/node_modules/ansi-regex": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/cliui/node_modules/emoji-regex": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
+ "license": "MIT"
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cliui/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "license": "MIT"
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/content-disposition": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz",
+ "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.6.0"
+ }
+ },
+ "node_modules/cors": {
+ "version": "2.8.5",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
+ "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
+ "license": "MIT",
+ "dependencies": {
+ "object-assign": "^4",
+ "vary": "^1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/cosmiconfig": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.0.tgz",
+ "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.1",
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/data-uri-to-buffer": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz",
+ "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/decamelize-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz",
+ "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "decamelize": "^1.1.0",
+ "map-obj": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/decamelize-keys/node_modules/map-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
+ "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/degenerator": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz",
+ "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ast-types": "^0.13.4",
+ "escodegen": "^2.1.0",
+ "esprima": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/devtools-protocol": {
+ "version": "0.0.1495869",
+ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1495869.tgz",
+ "integrity": "sha512-i+bkd9UYFis40RcnkW7XrOprCujXRAHg62IVh/Ah3G8MmNXpCGt1m0dTFhSdx/AVs8XEMbdOGRwdkR1Bcta8AA==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/diff": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz",
+ "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/dir-glob": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/doctrine": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "license": "MIT"
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/escodegen": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esprima": "^4.0.1",
+ "estraverse": "^5.2.0",
+ "esutils": "^2.0.2"
+ },
+ "bin": {
+ "escodegen": "bin/escodegen.js",
+ "esgenerate": "bin/esgenerate.js"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "optionalDependencies": {
+ "source-map": "~0.6.1"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.31.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.31.0.tgz",
+ "integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.0",
+ "@eslint/config-helpers": "^0.3.0",
+ "@eslint/core": "^0.15.0",
+ "@eslint/eslintrc": "^3.3.1",
+ "@eslint/js": "9.31.0",
+ "@eslint/plugin-kit": "^0.3.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "@types/json-schema": "^7.0.15",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-config-prettier": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
+ "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "eslint-config-prettier": "bin/cli.js"
+ },
+ "peerDependencies": {
+ "eslint": ">=7.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-es": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz",
+ "integrity": "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-utils": "^2.0.0",
+ "regexpp": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ },
+ "peerDependencies": {
+ "eslint": ">=4.19.1"
+ }
+ },
+ "node_modules/eslint-plugin-es/node_modules/eslint-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
+ "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ }
+ },
+ "node_modules/eslint-plugin-es/node_modules/eslint-visitor-keys": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
+ "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/eslint-plugin-n": {
+ "version": "15.7.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-15.7.0.tgz",
+ "integrity": "sha512-jDex9s7D/Qial8AGVIHq4W7NswpUD5DPDL2RH8Lzd9EloWUuvUkHfv4FRLMipH5q2UtyurorBkPeNi1wVWNh3Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "builtins": "^5.0.1",
+ "eslint-plugin-es": "^4.1.0",
+ "eslint-utils": "^3.0.0",
+ "ignore": "^5.1.1",
+ "is-core-module": "^2.11.0",
+ "minimatch": "^3.1.2",
+ "resolve": "^1.22.1",
+ "semver": "^7.3.8"
+ },
+ "engines": {
+ "node": ">=12.22.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ },
+ "peerDependencies": {
+ "eslint": ">=7.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-n/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/eslint-plugin-n/node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/eslint-plugin-n/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/eslint-plugin-prettier": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz",
+ "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prettier-linter-helpers": "^1.0.0",
+ "synckit": "^0.9.1"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint-plugin-prettier"
+ },
+ "peerDependencies": {
+ "@types/eslint": ">=8.0.0",
+ "eslint": ">=8.0.0",
+ "eslint-config-prettier": "*",
+ "prettier": ">=3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/eslint": {
+ "optional": true
+ },
+ "eslint-config-prettier": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-utils": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",
+ "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^2.0.0"
+ },
+ "engines": {
+ "node": "^10.0.0 || ^12.0.0 || >= 14.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ },
+ "peerDependencies": {
+ "eslint": ">=5"
+ }
+ },
+ "node_modules/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
+ "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/eslint/node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint/node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/eslint/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree/node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",
+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/eventsource": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.6.tgz",
+ "integrity": "sha512-l19WpE2m9hSuyP06+FbuUUf1G+R0SFLrtQfbRb9PRr+oimOfxQhgGCbVaXg5IvZyyTThJsxh6L/srkMiCeBPDA==",
+ "license": "MIT",
+ "dependencies": {
+ "eventsource-parser": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/eventsource-parser": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.1.tgz",
+ "integrity": "sha512-VARTJ9CYeuQYb0pZEPbzi740OWFgpHe7AYJ2WFZVnUDUQp5Dk2yJUgF36YsZ81cOyxT0QxmXD2EQpapAouzWVA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/execa": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.0",
+ "human-signals": "^2.1.0",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.1",
+ "onetime": "^5.1.2",
+ "signal-exit": "^3.0.3",
+ "strip-final-newline": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/execa/node_modules/get-stream": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/express": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
+ "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.0",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/express-rate-limit": {
+ "version": "7.5.0",
+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz",
+ "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/express-rate-limit"
+ },
+ "peerDependencies": {
+ "express": "^4.11 || 5 || ^5.0.0-beta.1"
+ }
+ },
+ "node_modules/external-editor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
+ "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chardet": "^0.7.0",
+ "iconv-lite": "^0.4.24",
+ "tmp": "^0.0.33"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/external-editor/node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extract-zip": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "get-stream": "^5.1.0",
+ "yauzl": "^2.10.0"
+ },
+ "bin": {
+ "extract-zip": "cli.js"
+ },
+ "engines": {
+ "node": ">= 10.17.0"
+ },
+ "optionalDependencies": {
+ "@types/yauzl": "^2.9.1"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "license": "MIT"
+ },
+ "node_modules/fast-diff": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz",
+ "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/fast-fifo": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
+ "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==",
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.19.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+ "license": "MIT",
+ "dependencies": {
+ "pend": "~1.2.0"
+ }
+ },
+ "node_modules/figures": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",
+ "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "escape-string-regexp": "^1.0.5"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/figures/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz",
+ "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",
+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-east-asian-width": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",
+ "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-uri": {
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz",
+ "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==",
+ "license": "MIT",
+ "dependencies": {
+ "basic-ftp": "^5.0.2",
+ "data-uri-to-buffer": "^6.0.2",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/glob/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/glob/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/globals": {
+ "version": "16.3.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.3.0.tgz",
+ "integrity": "sha512-bqWEnJ1Nt3neqx2q5SFfGS8r/ahumIakg3HcwtNlrVlwXIeNumWn/c7Pn/wKzGhf6SaW6H6uWXLqC30STCMchQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/globby": {
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-union": "^2.1.0",
+ "dir-glob": "^3.0.1",
+ "fast-glob": "^3.2.9",
+ "ignore": "^5.2.0",
+ "merge2": "^1.4.1",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/globby/node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gts": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/gts/-/gts-6.0.2.tgz",
+ "integrity": "sha512-lp9+eDzzm6TYqiBpgGY00EInxBHFTJiU5brsVp11qXCJEw7Q6WNNngja0spZeqSFWSquaRuHQUuWxdZLaxnKmw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "5.62.0",
+ "@typescript-eslint/parser": "5.62.0",
+ "chalk": "^4.1.2",
+ "eslint": "8.57.1",
+ "eslint-config-prettier": "9.1.0",
+ "eslint-plugin-n": "15.7.0",
+ "eslint-plugin-prettier": "5.2.1",
+ "execa": "^5.0.0",
+ "inquirer": "^7.3.3",
+ "json5": "^2.1.3",
+ "meow": "^9.0.0",
+ "ncp": "^2.0.0",
+ "prettier": "3.3.3",
+ "rimraf": "3.0.2",
+ "write-file-atomic": "^4.0.0"
+ },
+ "bin": {
+ "gts": "build/src/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "typescript": ">=5"
+ }
+ },
+ "node_modules/gts/node_modules/@eslint/eslintrc": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^9.6.0",
+ "globals": "^13.19.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/gts/node_modules/@eslint/js": {
+ "version": "8.57.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",
+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz",
+ "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.4.0",
+ "@typescript-eslint/scope-manager": "5.62.0",
+ "@typescript-eslint/type-utils": "5.62.0",
+ "@typescript-eslint/utils": "5.62.0",
+ "debug": "^4.3.4",
+ "graphemer": "^1.4.0",
+ "ignore": "^5.2.0",
+ "natural-compare-lite": "^1.4.0",
+ "semver": "^7.3.7",
+ "tsutils": "^3.21.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^5.0.0",
+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/parser": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",
+ "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "5.62.0",
+ "@typescript-eslint/types": "5.62.0",
+ "@typescript-eslint/typescript-estree": "5.62.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/scope-manager": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",
+ "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "5.62.0",
+ "@typescript-eslint/visitor-keys": "5.62.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/type-utils": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz",
+ "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/typescript-estree": "5.62.0",
+ "@typescript-eslint/utils": "5.62.0",
+ "debug": "^4.3.4",
+ "tsutils": "^3.21.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "*"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/types": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz",
+ "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/typescript-estree": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz",
+ "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@typescript-eslint/types": "5.62.0",
+ "@typescript-eslint/visitor-keys": "5.62.0",
+ "debug": "^4.3.4",
+ "globby": "^11.1.0",
+ "is-glob": "^4.0.3",
+ "semver": "^7.3.7",
+ "tsutils": "^3.21.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/utils": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz",
+ "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@types/json-schema": "^7.0.9",
+ "@types/semver": "^7.3.12",
+ "@typescript-eslint/scope-manager": "5.62.0",
+ "@typescript-eslint/types": "5.62.0",
+ "@typescript-eslint/typescript-estree": "5.62.0",
+ "eslint-scope": "^5.1.1",
+ "semver": "^7.3.7"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/gts/node_modules/@typescript-eslint/visitor-keys": {
+ "version": "5.62.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz",
+ "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "5.62.0",
+ "eslint-visitor-keys": "^3.3.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/gts/node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/gts/node_modules/eslint": {
+ "version": "8.57.1",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
+ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.6.1",
+ "@eslint/eslintrc": "^2.1.4",
+ "@eslint/js": "8.57.1",
+ "@humanwhocodes/config-array": "^0.13.0",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@nodelib/fs.walk": "^1.2.8",
+ "@ungap/structured-clone": "^1.2.0",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.3.2",
+ "doctrine": "^3.0.0",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^7.2.2",
+ "eslint-visitor-keys": "^3.4.3",
+ "espree": "^9.6.1",
+ "esquery": "^1.4.2",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^6.0.1",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "globals": "^13.19.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "is-path-inside": "^3.0.3",
+ "js-yaml": "^4.1.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3",
+ "strip-ansi": "^6.0.1",
+ "text-table": "^0.2.0"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/gts/node_modules/eslint-scope": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/gts/node_modules/eslint-scope/node_modules/estraverse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/gts/node_modules/eslint/node_modules/eslint-scope": {
+ "version": "7.2.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/gts/node_modules/espree": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.9.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^3.4.1"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/gts/node_modules/file-entry-cache": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^3.0.4"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/gts/node_modules/flat-cache": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.3",
+ "rimraf": "^3.0.2"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/gts/node_modules/globals": {
+ "version": "13.24.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.20.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/gts/node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/gts/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/gts/node_modules/prettier": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
+ "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/gts/node_modules/type-fest": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/hard-rejection": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz",
+ "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hosted-git-info": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
+ "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/hosted-git-info/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "2.0.0",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": "2.0.1",
+ "toidentifier": "1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/http-proxy-agent": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/human-signals": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10.17.0"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",
+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/inquirer": {
+ "version": "7.3.3",
+ "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz",
+ "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.1.0",
+ "cli-cursor": "^3.1.0",
+ "cli-width": "^3.0.0",
+ "external-editor": "^3.0.3",
+ "figures": "^3.0.0",
+ "lodash": "^4.17.19",
+ "mute-stream": "0.0.8",
+ "run-async": "^2.4.0",
+ "rxjs": "^6.6.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "through": "^2.3.6"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/ip-address": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz",
+ "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-core-module": {
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-path-inside": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-plain-obj": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
+ "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
+ "license": "MIT"
+ },
+ "node_modules/is-stream": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "license": "ISC"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lru-cache": {
+ "version": "7.18.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/map-obj": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz",
+ "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/meow": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz",
+ "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/minimist": "^1.2.0",
+ "camelcase-keys": "^6.2.2",
+ "decamelize": "^1.2.0",
+ "decamelize-keys": "^1.1.0",
+ "hard-rejection": "^2.1.0",
+ "minimist-options": "4.1.0",
+ "normalize-package-data": "^3.0.0",
+ "read-pkg-up": "^7.0.1",
+ "redent": "^3.0.0",
+ "trim-newlines": "^3.0.0",
+ "type-fest": "^0.18.0",
+ "yargs-parser": "^20.2.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/meow/node_modules/type-fest": {
+ "version": "0.18.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz",
+ "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/meow/node_modules/yargs-parser": {
+ "version": "20.2.9",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",
+ "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/min-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minimist-options": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz",
+ "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arrify": "^1.0.1",
+ "is-plain-obj": "^1.1.0",
+ "kind-of": "^6.0.3"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/mitt": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
+ "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
+ "license": "MIT"
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/mute-stream": {
+ "version": "0.0.8",
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
+ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/natural-compare-lite": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
+ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ncp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
+ "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "ncp": "bin/ncp"
+ }
+ },
+ "node_modules/negotiator": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/netmask": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz",
+ "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/normalize-package-data": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz",
+ "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "hosted-git-info": "^4.0.1",
+ "is-core-module": "^2.5.0",
+ "semver": "^7.3.4",
+ "validate-npm-package-license": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/os-tmpdir": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
+ "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pac-proxy-agent": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz",
+ "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==",
+ "license": "MIT",
+ "dependencies": {
+ "@tootallnate/quickjs-emscripten": "^0.23.0",
+ "agent-base": "^7.1.2",
+ "debug": "^4.3.4",
+ "get-uri": "^6.0.1",
+ "http-proxy-agent": "^7.0.0",
+ "https-proxy-agent": "^7.0.6",
+ "pac-resolver": "^7.0.1",
+ "socks-proxy-agent": "^8.0.5"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/pac-resolver": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz",
+ "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==",
+ "license": "MIT",
+ "dependencies": {
+ "degenerator": "^5.0.0",
+ "netmask": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-to-regexp": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz",
+ "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pkce-challenge": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.0.tgz",
+ "integrity": "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.5.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
+ "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/prettier-linter-helpers": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
+ "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-diff": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/progress": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/proxy-agent": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz",
+ "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "^4.3.4",
+ "http-proxy-agent": "^7.0.1",
+ "https-proxy-agent": "^7.0.6",
+ "lru-cache": "^7.14.1",
+ "pac-proxy-agent": "^7.1.0",
+ "proxy-from-env": "^1.1.0",
+ "socks-proxy-agent": "^8.0.5"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
+ "license": "MIT"
+ },
+ "node_modules/pump": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",
+ "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/puppeteer": {
+ "version": "24.20.0",
+ "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.20.0.tgz",
+ "integrity": "sha512-iLnLV9oHKKAujmxiSxRWKfcT1q2COu0g1N9iU2TCp1MlmsyjgNAkcBOR3cAOqKb5UTiVPIGG4z5PO5yfpYZ6jA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@puppeteer/browsers": "2.10.9",
+ "chromium-bidi": "8.0.0",
+ "cosmiconfig": "^9.0.0",
+ "devtools-protocol": "0.0.1495869",
+ "puppeteer-core": "24.20.0",
+ "typed-query-selector": "^2.12.0"
+ },
+ "bin": {
+ "puppeteer": "lib/cjs/puppeteer/node/cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/puppeteer-core": {
+ "version": "24.20.0",
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.20.0.tgz",
+ "integrity": "sha512-n0y/f8EYyZt4yEJkjP3Vrqf9A4qa3uYpKYdsiedIY4bxIfTw1aAJSpSVPmWBPlr1LO4cNq2hGNIBWKPhvBF68w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@puppeteer/browsers": "2.10.9",
+ "chromium-bidi": "8.0.0",
+ "debug": "^4.4.1",
+ "devtools-protocol": "0.0.1495869",
+ "typed-query-selector": "^2.12.0",
+ "webdriver-bidi-protocol": "0.2.8",
+ "ws": "^8.18.3"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
+ "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/quick-lru": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz",
+ "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz",
+ "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.6.3",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/read-pkg": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz",
+ "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/normalize-package-data": "^2.4.0",
+ "normalize-package-data": "^2.5.0",
+ "parse-json": "^5.0.0",
+ "type-fest": "^0.6.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/read-pkg-up": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz",
+ "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^4.1.0",
+ "read-pkg": "^5.2.0",
+ "type-fest": "^0.8.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/type-fest": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
+ "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/read-pkg/node_modules/hosted-git-info": {
+ "version": "2.8.9",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
+ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/read-pkg/node_modules/normalize-package-data": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
+ "node_modules/read-pkg/node_modules/semver": {
+ "version": "5.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/read-pkg/node_modules/type-fest": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
+ "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/redent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",
+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "indent-string": "^4.0.0",
+ "strip-indent": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/regexpp": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",
+ "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.10",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.16.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "deprecated": "Rimraf versions prior to v4 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/router": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/run-async": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
+ "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/rxjs": {
+ "version": "6.6.7",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
+ "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^1.9.0"
+ },
+ "engines": {
+ "npm": ">=2.0.0"
+ }
+ },
+ "node_modules/rxjs/node_modules/tslib": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+ "dev": true,
+ "license": "0BSD"
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "7.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/send": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",
+ "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.5",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "mime-types": "^3.0.1",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",
+ "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/sinon": {
+ "version": "21.0.0",
+ "resolved": "https://registry.npmjs.org/sinon/-/sinon-21.0.0.tgz",
+ "integrity": "sha512-TOgRcwFPbfGtpqvZw+hyqJDvqfapr1qUlOizROIk4bBLjlsjlB00Pg6wMFXNtJRpu+eCZuVOaLatG7M8105kAw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@sinonjs/commons": "^3.0.1",
+ "@sinonjs/fake-timers": "^13.0.5",
+ "@sinonjs/samsam": "^8.0.1",
+ "diff": "^7.0.0",
+ "supports-color": "^7.2.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/sinon"
+ }
+ },
+ "node_modules/slash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/smart-buffer": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/socks": {
+ "version": "2.8.7",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
+ "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==",
+ "license": "MIT",
+ "dependencies": {
+ "ip-address": "^10.0.1",
+ "smart-buffer": "^4.2.0"
+ },
+ "engines": {
+ "node": ">= 10.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/socks-proxy-agent": {
+ "version": "8.0.5",
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz",
+ "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "^4.3.4",
+ "socks": "^2.8.3"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "license": "BSD-3-Clause",
+ "optional": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/spdx-correct": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz",
+ "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-exceptions": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
+ "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
+ "dev": true,
+ "license": "CC-BY-3.0"
+ },
+ "node_modules/spdx-expression-parse": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
+ "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-license-ids": {
+ "version": "3.0.21",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz",
+ "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/statuses": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/streamx": {
+ "version": "2.22.1",
+ "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.1.tgz",
+ "integrity": "sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-fifo": "^1.3.2",
+ "text-decoder": "^1.1.0"
+ },
+ "optionalDependencies": {
+ "bare-events": "^2.2.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-final-newline": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strip-indent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",
+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "min-indent": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/synckit": {
+ "version": "0.9.3",
+ "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.3.tgz",
+ "integrity": "sha512-JJoOEKTfL1urb1mDoEblhD9NhEbWmq9jHEMEnxoC4ujUaZ4itA8vKgwkFAyNClgxplLi9tsUKX+EduK0p/l7sg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@pkgr/core": "^0.1.0",
+ "tslib": "^2.6.2"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/unts"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz",
+ "integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==",
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0",
+ "tar-stream": "^3.1.5"
+ },
+ "optionalDependencies": {
+ "bare-fs": "^4.0.1",
+ "bare-path": "^3.0.0"
+ }
+ },
+ "node_modules/tar-stream": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz",
+ "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==",
+ "license": "MIT",
+ "dependencies": {
+ "b4a": "^1.6.4",
+ "fast-fifo": "^1.2.0",
+ "streamx": "^2.15.0"
+ }
+ },
+ "node_modules/text-decoder": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz",
+ "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "b4a": "^1.6.4"
+ }
+ },
+ "node_modules/text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tmp": {
+ "version": "0.0.33",
+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
+ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "os-tmpdir": "~1.0.2"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/trim-newlines": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz",
+ "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/tsutils": {
+ "version": "3.21.0",
+ "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
+ "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^1.8.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ },
+ "peerDependencies": {
+ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
+ }
+ },
+ "node_modules/tsutils/node_modules/tslib": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+ "dev": true,
+ "license": "0BSD"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-detect": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
+ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "0.21.3",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^1.0.5",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/typed-query-selector": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.0.tgz",
+ "integrity": "sha512-SbklCd1F0EiZOyPiW192rrHZzZ5sBijB6xM+cpmrwDqObvdtunOHHIk9fCGsoK5JVIYXoyEp4iEdE3upFH3PAg==",
+ "license": "MIT"
+ },
+ "node_modules/typescript": {
+ "version": "5.8.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
+ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.36.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.36.0.tgz",
+ "integrity": "sha512-fTCqxthY+h9QbEgSIBfL9iV6CvKDFuoxg6bHPNpJ9HIUzS+jy2lCEyCmGyZRWEBSaykqcDPf1SJ+BfCI8DRopA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.36.0",
+ "@typescript-eslint/parser": "8.36.0",
+ "@typescript-eslint/utils": "8.36.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/validate-npm-package-license": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/webdriver-bidi-protocol": {
+ "version": "0.2.8",
+ "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.2.8.tgz",
+ "integrity": "sha512-KPvtVAIX8VHjLZH1KHT5GXoOaPeb0Ju+JlAcdshw6Z/gsmRtLoxt0Hw99PgJwZta7zUQaAUIHHWDRkzrPHsQTQ==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",
+ "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-regex": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",
+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/emoji-regex": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
+ "license": "MIT"
+ },
+ "node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
+ "node_modules/write-file-atomic": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz",
+ "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4",
+ "signal-exit": "^3.0.7"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.18.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
+ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yargs": {
+ "version": "18.0.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz",
+ "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==",
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^9.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "string-width": "^7.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^22.0.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=23"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "22.0.0",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",
+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",
+ "license": "ISC",
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=23"
+ }
+ },
+ "node_modules/yargs/node_modules/ansi-regex": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.0.tgz",
+ "integrity": "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/yargs/node_modules/emoji-regex": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",
+ "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",
+ "license": "MIT"
+ },
+ "node_modules/yargs/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yargs/node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "3.24.3",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz",
+ "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-to-json-schema": {
+ "version": "3.24.5",
+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz",
+ "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==",
+ "license": "ISC",
+ "peerDependencies": {
+ "zod": "^3.24.1"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..60dc6818
--- /dev/null
+++ b/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "chrome-devtools-mcp",
+ "version": "0.1.0",
+ "description": "MCP server for Chrome DevTools",
+ "type": "module",
+ "bin": {
+ "chrome-devtools-mcp": "./build/src/index.js"
+ },
+ "main": "index.js",
+ "scripts": {
+ "build": "tsc && node --experimental-strip-types scripts/post-build.ts",
+ "format": "eslint --cache --fix . ;prettier --write --cache .",
+ "check-format": "eslint --cache .; prettier --check --cache .;",
+ "generate-docs": "node --experimental-strip-types scripts/generate-docs.ts",
+ "start": "npm run build && node build/src/index.js",
+ "start-debug": "DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/index.js",
+ "test": "npm run build && npx puppeteer browsers install chrome@latest && PUPPETEER_CHROME_VERSION=latest node --test-force-exit --test 'build/tests/**/*.test.js'",
+ "test:only": "npm run build && npx puppeteer browsers install chrome@latest && PUPPETEER_CHROME_VERSION=latest node --test-force-exit --test --test-only 'build/tests/**/*.test.js'",
+ "test:only:no-build": "npx puppeteer browsers install chrome@latest && PUPPETEER_CHROME_VERSION=latest node --test-force-exit --test --test-only 'build/tests/**/*.test.js'",
+ "prepare": "node --experimental-strip-types scripts/prepare.ts"
+ },
+ "files": [
+ "build/src"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/ChromeDevTools/chrome-devtools-mcp.git"
+ },
+ "author": "Google LLC",
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/ChromeDevTools/chrome-devtools-mcp/issues"
+ },
+ "homepage": "https://github.com/ChromeDevTools/chrome-devtools-mcp#readme",
+ "dependencies": {
+ "@modelcontextprotocol/sdk": "^1.17.5",
+ "debug": "^4.4.1",
+ "puppeteer-core": "^24.20.0",
+ "yargs": "18.0.0"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.31.0",
+ "@types/debug": "^4.1.12",
+ "@types/filesystem": "^0.0.36",
+ "@types/node": "^22.18.1",
+ "@types/sinon": "^17.0.4",
+ "@types/yargs": "^17.0.33",
+ "@typescript-eslint/eslint-plugin": "^8.36.0",
+ "@typescript-eslint/parser": "^8.36.0",
+ "chrome-devtools-frontend": "1.0.1513662",
+ "eslint": "^9.31.0",
+ "globals": "^16.3.0",
+ "gts": "^6.0.2",
+ "prettier": "^3.5.3",
+ "puppeteer": "^24.20.0",
+ "sinon": "^21.0.0",
+ "typescript": "^5.8.3",
+ "typescript-eslint": "^8.36.0"
+ }
+}
diff --git a/scripts/eslint_rules/check-license-plugin.js b/scripts/eslint_rules/check-license-plugin.js
new file mode 100644
index 00000000..27a20d37
--- /dev/null
+++ b/scripts/eslint_rules/check-license-plugin.js
@@ -0,0 +1,9 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import checkLicenseRule from './check-license-rule.js';
+
+export default {rules: {'check-license': checkLicenseRule}};
diff --git a/scripts/eslint_rules/check-license-rule.js b/scripts/eslint_rules/check-license-rule.js
new file mode 100644
index 00000000..9c304126
--- /dev/null
+++ b/scripts/eslint_rules/check-license-rule.js
@@ -0,0 +1,83 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+const currentYear = new Date().getFullYear();
+const licenseHeader = `
+/**
+ * @license
+ * Copyright ${currentYear} Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+`;
+
+export default {
+ name: 'check-license',
+ meta: {
+ type: 'layout',
+ docs: {
+ description: 'Validate existence of license header',
+ },
+ fixable: 'code',
+ schema: [],
+ messages: {
+ licenseRule: 'Add license header.',
+ },
+ },
+ defaultOptions: [],
+ create(context) {
+ const sourceCode = context.getSourceCode();
+ const comments = sourceCode.getAllComments();
+ let insertAfter = [0, 0];
+ let header = null;
+ // Check only the first 2 comments
+ for (let index = 0; index < 2; index++) {
+ const comment = comments[index];
+ if (!comment) {
+ break;
+ }
+ // Shebang comments should be at the top
+ if (
+ comment.type === 'Shebang' ||
+ (comment.type === 'Line' && comment.value.startsWith('#!'))
+ ) {
+ insertAfter = comment.range;
+ continue;
+ }
+ if (comment.type === 'Block') {
+ header = comment;
+ break;
+ }
+ }
+
+ return {
+ Program(node) {
+ if (context.getFilename().endsWith('.json')) {
+ return;
+ }
+
+ if (
+ header &&
+ (header.value.includes('@license') ||
+ header.value.includes('License') ||
+ header.value.includes('Copyright'))
+ ) {
+ return;
+ }
+
+ // Add header license
+ if (!header || !header.value.includes('@license')) {
+ context.report({
+ node: node,
+ messageId: 'licenseRule',
+ fix(fixer) {
+ return fixer.insertTextAfterRange(insertAfter, licenseHeader);
+ },
+ });
+ }
+ },
+ };
+ },
+};
diff --git a/scripts/generate-docs.ts b/scripts/generate-docs.ts
new file mode 100644
index 00000000..8ab9082b
--- /dev/null
+++ b/scripts/generate-docs.ts
@@ -0,0 +1,299 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {Client} from '@modelcontextprotocol/sdk/client/index.js';
+import {StdioClientTransport} from '@modelcontextprotocol/sdk/client/stdio.js';
+import type {Tool} from '@modelcontextprotocol/sdk/types.js';
+import {ToolCategories} from '../build/src/tools/categories.js';
+import fs from 'fs';
+import {spawnSync} from 'child_process';
+
+const MCP_SERVER_PATH = 'build/src/index.js';
+const OUTPUT_PATH = './docs/tool-reference.md';
+const README_PATH = './README.md';
+
+// Extend the MCP Tool type to include our annotations
+interface ToolWithAnnotations extends Tool {
+ annotations?: {
+ title?: string;
+ category?: ToolCategories;
+ };
+}
+
+function escapeHtmlTags(text: string): string {
+ return text
+ .replace(/&(?![a-zA-Z]+;)/g, '&amp;')
+ .replace(/<([a-zA-Z][^>]*)>/g, '&lt;$1&gt;');
+}
+
+function addCrossLinks(text: string, tools: ToolWithAnnotations[]): string {
+ let result = text;
+
+ // Create a set of all tool names for efficient lookup
+ const toolNames = new Set(tools.map(tool => tool.name));
+
+ // Sort tool names by length (descending) to match longer names first
+ const sortedToolNames = Array.from(toolNames).sort(
+ (a, b) => b.length - a.length,
+ );
+
+ for (const toolName of sortedToolNames) {
+ // Create regex to match tool name (case insensitive, word boundaries)
+ const regex = new RegExp(`\\b${toolName.replace(/_/g, '_')}\\b`, 'gi');
+
+ result = result.replace(regex, match => {
+ // Only create link if the match isn't already inside a link
+ if (result.indexOf(`[${match}]`) !== -1) {
+ return match; // Already linked
+ }
+ const anchorLink = toolName.toLowerCase();
+ return `[\`${match}\`](#${anchorLink})`;
+ });
+ }
+
+ return result;
+}
+
+function generateToolsTOC(
+ categories: Record<string, ToolWithAnnotations[]>,
+ sortedCategories: string[],
+): string {
+ let toc = '';
+
+ for (const category of sortedCategories) {
+ const categoryTools = categories[category];
+ const categoryName = category;
+ toc += `- **${categoryName}** (${categoryTools.length} tools)\n`;
+
+ // Sort tools within category for TOC
+ categoryTools.sort((a: Tool, b: Tool) => a.name.localeCompare(b.name));
+ for (const tool of categoryTools) {
+ const anchorLink = tool.name.toLowerCase();
+ toc += ` - [\`${tool.name}\`](docs/tool-reference.md#${anchorLink})\n`;
+ }
+ }
+
+ return toc;
+}
+
+function updateReadmeWithToolsTOC(toolsTOC: string): void {
+ const readmeContent = fs.readFileSync(README_PATH, 'utf8');
+
+ const beginMarker = '<!-- BEGIN AUTO GENERATED TOOLS -->';
+ const endMarker = '<!-- END AUTO GENERATED TOOLS -->';
+
+ const beginIndex = readmeContent.indexOf(beginMarker);
+ const endIndex = readmeContent.indexOf(endMarker);
+
+ if (beginIndex === -1 || endIndex === -1) {
+ console.warn('Could not find auto-generated tools markers in README.md');
+ return;
+ }
+
+ const before = readmeContent.substring(0, beginIndex + beginMarker.length);
+ const after = readmeContent.substring(endIndex);
+
+ const updatedContent = before + '\n\n' + toolsTOC + '\n' + after;
+
+ fs.writeFileSync(README_PATH, updatedContent);
+ console.log('Updated README.md with tools table of contents');
+}
+
+function updateReadmeWithConfigOptions(help: string): void {
+ const readmeContent = fs.readFileSync(README_PATH, 'utf8');
+
+ const beginMarker = '<!-- BEGIN AUTO GENERATED CLI -->';
+ const endMarker = '<!-- END AUTO GENERATED CLI -->';
+
+ const beginIndex = readmeContent.indexOf(beginMarker);
+ const endIndex = readmeContent.indexOf(endMarker);
+
+ if (beginIndex === -1 || endIndex === -1) {
+ console.warn('Could not find auto-generated config markers in README.md');
+ return;
+ }
+
+ const before = readmeContent.substring(0, beginIndex + beginMarker.length);
+ const after = readmeContent.substring(endIndex);
+
+ const updatedContent = before + '\n\n```sh\n' + help + '```\n' + after;
+
+ fs.writeFileSync(README_PATH, updatedContent);
+ console.log('Updated README.md with config options');
+}
+
+async function generateToolDocumentation(): Promise<void> {
+ console.log('Starting MCP server to query tool definitions...');
+
+ // Create MCP client with stdio transport pointing to the built server
+ const transport = new StdioClientTransport({
+ command: 'node',
+ args: [MCP_SERVER_PATH, '--channel', 'canary'],
+ });
+
+ const client = new Client(
+ {
+ name: 'docs-generator',
+ version: '1.0.0',
+ },
+ {
+ capabilities: {},
+ },
+ );
+
+ try {
+ // Connect to the server
+ await client.connect(transport);
+ console.log('Connected to MCP server');
+
+ // List all available tools
+ const {tools} = await client.listTools();
+ const toolsWithAnnotations = tools as ToolWithAnnotations[];
+ console.log(`Found ${tools.length} tools`);
+
+ // Generate markdown documentation
+ let markdown = `<!-- AUTO GENERATED DO NOT EDIT - run 'npm run generate-docs' to update-->
+
+# Chrome DevTools MCP Tool Reference
+
+`;
+
+ // Group tools by category (based on annotations)
+ const categories: Record<string, ToolWithAnnotations[]> = {};
+ toolsWithAnnotations.forEach((tool: ToolWithAnnotations) => {
+ const category = tool.annotations?.category || 'Uncategorized';
+ if (!categories[category]) {
+ categories[category] = [];
+ }
+ categories[category].push(tool);
+ });
+
+ // Sort categories using the enum order
+ const categoryOrder = Object.values(ToolCategories);
+ const sortedCategories = Object.keys(categories).sort((a, b) => {
+ const aIndex = categoryOrder.indexOf(a);
+ const bIndex = categoryOrder.indexOf(b);
+ // Put known categories first, unknown categories last
+ if (aIndex === -1 && bIndex === -1) return a.localeCompare(b);
+ if (aIndex === -1) return 1;
+ if (bIndex === -1) return -1;
+ return aIndex - bIndex;
+ });
+
+ // Generate table of contents
+ for (const category of sortedCategories) {
+ const categoryTools = categories[category];
+ const categoryName = category;
+ const anchorName = category.toLowerCase().replace(/\s+/g, '-');
+ markdown += `- **[${categoryName}](#${anchorName})** (${categoryTools.length} tools)\n`;
+
+ // Sort tools within category for TOC
+ categoryTools.sort((a: Tool, b: Tool) => a.name.localeCompare(b.name));
+ for (const tool of categoryTools) {
+ // Generate proper markdown anchor link: backticks are removed, keep underscores, lowercase
+ const anchorLink = tool.name.toLowerCase();
+ markdown += ` - [\`${tool.name}\`](#${anchorLink})\n`;
+ }
+ }
+ markdown += '\n';
+
+ for (const category of sortedCategories) {
+ const categoryTools = categories[category];
+
+ markdown += `## ${category}\n\n`;
+
+ // Sort tools within category
+ categoryTools.sort((a: Tool, b: Tool) => a.name.localeCompare(b.name));
+
+ for (const tool of categoryTools) {
+ markdown += `### \`${tool.name}\`\n\n`;
+
+ if (tool.description) {
+ // Escape HTML tags but preserve JS function syntax
+ let escapedDescription = escapeHtmlTags(tool.description);
+
+ // Add cross-links to mentioned tools
+ escapedDescription = addCrossLinks(
+ escapedDescription,
+ toolsWithAnnotations,
+ );
+ markdown += `**Description:** ${escapedDescription}\n\n`;
+ }
+
+ // Handle input schema
+ if (
+ tool.inputSchema &&
+ tool.inputSchema.properties &&
+ Object.keys(tool.inputSchema.properties).length > 0
+ ) {
+ const properties = tool.inputSchema.properties;
+ const required = tool.inputSchema.required || [];
+
+ markdown += '**Parameters:**\n\n';
+
+ const propertyNames = Object.keys(properties).sort();
+ for (const propName of propertyNames) {
+ const prop = properties[propName] as string;
+ const isRequired = required.includes(propName);
+ const requiredText = isRequired
+ ? ' **(required)**'
+ : ' _(optional)_';
+
+ let typeInfo = prop.type || 'unknown';
+ if (prop.enum) {
+ typeInfo = `enum: ${prop.enum.map(v => `"${v}"`).join(', ')}`;
+ }
+
+ markdown += `- **${propName}** (${typeInfo})${requiredText}`;
+ if (prop.description) {
+ let escapedParamDesc = escapeHtmlTags(prop.description);
+
+ // Add cross-links to mentioned tools
+ escapedParamDesc = addCrossLinks(
+ escapedParamDesc,
+ toolsWithAnnotations,
+ );
+ markdown += `: ${escapedParamDesc}`;
+ }
+ markdown += '\n';
+ }
+ markdown += '\n';
+ } else {
+ markdown += '**Parameters:** None\n\n';
+ }
+
+ markdown += '---\n\n';
+ }
+ }
+
+ // Write the documentation to file
+ fs.writeFileSync(OUTPUT_PATH, markdown.trim() + '\n');
+
+ console.log(
+ `Generated documentation for ${toolsWithAnnotations.length} tools in ${OUTPUT_PATH}`,
+ );
+
+ // Generate tools TOC and update README
+ const toolsTOC = generateToolsTOC(categories, sortedCategories);
+ updateReadmeWithToolsTOC(toolsTOC);
+
+ const helpResult = spawnSync('npx chrome-devtools-mcp --help', {
+ shell: true,
+ cwd: process.cwd(),
+ env: process.env,
+ });
+ updateReadmeWithConfigOptions(helpResult.stdout.toString('utf-8'));
+
+ // Clean up
+ await client.close();
+ } catch (error) {
+ console.error('Error generating documentation:', error);
+ process.exit(1);
+ }
+}
+
+// Run the documentation generator
+generateToolDocumentation().catch(console.error);
diff --git a/scripts/post-build.ts b/scripts/post-build.ts
new file mode 100644
index 00000000..041cbce7
--- /dev/null
+++ b/scripts/post-build.ts
@@ -0,0 +1,133 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import * as fs from 'fs';
+import * as path from 'path';
+import tsConfig from '../tsconfig.json' with {type: 'json'};
+
+const BUILD_DIR = path.join(process.cwd(), 'build');
+
+/**
+ * Writes content to a file.
+ * @param filePath The path to the file.
+ * @param content The content to write.
+ */
+function writeFile(filePath: string, content: string): void {
+ fs.writeFileSync(filePath, content, 'utf-8');
+}
+
+/**
+ * Replaces content in a file.
+ * @param filePath The path to the file.
+ * @param find The regex to find.
+ * @param replace The string to replace with.
+ */
+function sed(filePath: string, find: RegExp, replace: string): void {
+ if (!fs.existsSync(filePath)) {
+ console.warn(`File not found for sed operation: ${filePath}`);
+ return;
+ }
+ const content = fs.readFileSync(filePath, 'utf-8');
+ const newContent = content.replace(find, replace);
+ fs.writeFileSync(filePath, newContent, 'utf-8');
+}
+
+/**
+ * Ensures that licenses for third party files we use gets copied into the build/ dir.
+ */
+function copyThirdPartyLicenseFiles() {
+ const thirdPartyDirectories = tsConfig.include.filter(location => {
+ return location.includes(
+ 'node_modules/chrome-devtools-frontend/front_end/third_party',
+ );
+ });
+
+ for (const thirdPartyDir of thirdPartyDirectories) {
+ const fullPath = path.join(process.cwd(), thirdPartyDir);
+ const licenseFile = path.join(fullPath, 'LICENSE');
+ if (!fs.existsSync(licenseFile)) {
+ console.error('No LICENSE for', path.basename(thirdPartyDir));
+ }
+
+ const destinationDir = path.join(BUILD_DIR, thirdPartyDir);
+ const destinationFile = path.join(destinationDir, 'LICENSE');
+ fs.copyFileSync(licenseFile, destinationFile);
+ }
+}
+
+function main(): void {
+ const devtoolsThirdPartyPath =
+ 'node_modules/chrome-devtools-frontend/front_end/third_party';
+ const devtoolsFrontEndCorePath =
+ 'node_modules/chrome-devtools-frontend/front_end/core';
+
+ // Create i18n mock
+ const i18nDir = path.join(BUILD_DIR, devtoolsFrontEndCorePath, 'i18n');
+ fs.mkdirSync(i18nDir, {recursive: true});
+ const i18nFile = path.join(i18nDir, 'i18n.js');
+ const i18nContent = `export const i18n = {
+ registerUIStrings: () => {},
+ getLocalizedString: (_, str) => {
+ // So that the string passed in gets output verbatim.
+ return str;
+ },
+ lockedLazyString: () => {},
+ getLazilyComputedLocalizedString: () => {}
+ };`;
+ writeFile(i18nFile, i18nContent);
+
+ // Create codemirror.next mock.
+ const codeMirrorDir = path.join(
+ BUILD_DIR,
+ devtoolsThirdPartyPath,
+ 'codemirror.next',
+ );
+ fs.mkdirSync(codeMirrorDir, {recursive: true});
+ const codeMirrorFile = path.join(codeMirrorDir, 'codemirror.next.js');
+ const codeMirrorContent = `export default {}`;
+ writeFile(codeMirrorFile, codeMirrorContent);
+
+ // Create root mock
+ const rootDir = path.join(BUILD_DIR, devtoolsFrontEndCorePath, 'root');
+ fs.mkdirSync(rootDir, {recursive: true});
+ const runtimeFile = path.join(rootDir, 'Runtime.js');
+ const runtimeContent = 'export default {};';
+ writeFile(runtimeFile, runtimeContent);
+
+ // Update protocol_client to remove:
+ // 1. self.Protocol assignment
+ // 2. Call to register backend commands.
+ const protocolClientDir = path.join(
+ BUILD_DIR,
+ devtoolsFrontEndCorePath,
+ 'protocol_client',
+ );
+ const clientFile = path.join(protocolClientDir, 'protocol_client.js');
+ const globalAssignment = /self\.Protocol = self\.Protocol \|\| \{\};/;
+ const registerCommands =
+ /InspectorBackendCommands\.registerCommands\(InspectorBackend\.inspectorBackend\);/;
+ sed(clientFile, globalAssignment, '');
+ sed(clientFile, registerCommands, '');
+
+ const devtoolsLicensePath = path.join(
+ 'node_modules',
+ 'chrome-devtools-frontend',
+ 'LICENSE',
+ );
+ const devtoolsLicenseFileSource = path.join(
+ process.cwd(),
+ devtoolsLicensePath,
+ );
+ const devtoolsLicenseFileDestination = path.join(
+ BUILD_DIR,
+ devtoolsLicensePath,
+ );
+ fs.copyFileSync(devtoolsLicenseFileSource, devtoolsLicenseFileDestination);
+
+ copyThirdPartyLicenseFiles();
+}
+
+main();
diff --git a/scripts/prepare.ts b/scripts/prepare.ts
new file mode 100644
index 00000000..f5d706f9
--- /dev/null
+++ b/scripts/prepare.ts
@@ -0,0 +1,34 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {rm} from 'node:fs/promises';
+import {resolve} from 'node:path';
+
+const projectRoot = process.cwd();
+
+const filesToRemove = [
+ 'node_modules/chrome-devtools-frontend/package.json',
+ 'node_modules/chrome-devtools-frontend/front_end/models/trace/lantern/testing',
+ 'node_modules/chrome-devtools-frontend/front_end/third_party/intl-messageformat/package/package.json',
+ 'node_modules/chrome-devtools-frontend/front_end/third_party/codemirror.next/codemirror.next.js',
+];
+
+async function main() {
+ console.log('Running prepare script to clean up chrome-devtools-frontend...');
+ for (const file of filesToRemove) {
+ const fullPath = resolve(projectRoot, file);
+ console.log(`Removing: ${file}`);
+ try {
+ await rm(fullPath, {recursive: true, force: true});
+ } catch (error) {
+ console.error(`Failed to remove ${file}:`, error);
+ process.exit(1);
+ }
+ }
+ console.log('Clean up of chrome-devtools-frontend complete.');
+}
+
+main();
diff --git a/src/McpContext.ts b/src/McpContext.ts
new file mode 100644
index 00000000..7fb68929
--- /dev/null
+++ b/src/McpContext.ts
@@ -0,0 +1,276 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {
+ Browser,
+ ConsoleMessage,
+ Dialog,
+ ElementHandle,
+ HTTPRequest,
+ Page,
+ SerializedAXNode,
+} from 'puppeteer-core';
+import {Context} from './tools/ToolDefinition.js';
+import {Debugger} from 'debug';
+import {NetworkCollector, PageCollector} from './PageCollector.js';
+import fs from 'node:fs/promises';
+import os from 'node:os';
+import path from 'node:path';
+import {listPages} from './tools/pages.js';
+
+export interface TextSnapshotNode extends SerializedAXNode {
+ id: number;
+ children: TextSnapshotNode[];
+}
+
+export class McpContext implements Context {
+ browser: Browser;
+ logger: Debugger;
+
+ // The most recent page state.
+ #pages: Page[] = [];
+ #selectedPageIdx = 0;
+ // The most recent snapshot.
+ #textSnapshot: TextSnapshotNode | null = null;
+ #idToNodeMap = new Map<number, TextSnapshotNode>();
+ #networkCollector: NetworkCollector;
+ #consoleCollector: PageCollector<ConsoleMessage | Error>;
+
+ #isRunningTrace = false;
+ #networkConditions: string | null = null;
+ #cpuThrottlingRate = 1;
+ #dialog?: Dialog;
+
+ private constructor(browser: Browser, logger: Debugger) {
+ this.browser = browser;
+ this.logger = logger;
+
+ this.#networkCollector = new NetworkCollector(
+ this.browser,
+ (page, collect) => {
+ page.on('request', request => {
+ collect(request);
+ });
+ },
+ );
+
+ this.#consoleCollector = new PageCollector(
+ this.browser,
+ (page, collect) => {
+ page.on('console', (event: ConsoleMessage) => {
+ collect(event);
+ });
+ page.on('pageerror', (event: Error) => {
+ collect(event);
+ });
+ },
+ );
+ }
+
+ async #init() {
+ await this.createPagesSnapshot();
+ this.setSelectedPageIdx(0);
+ await this.#networkCollector.init();
+ await this.#consoleCollector.init();
+ }
+
+ static async from(browser: Browser, logger: Debugger) {
+ const context = new McpContext(browser, logger);
+ await context.#init();
+ return context;
+ }
+
+ getNetworkRequests(): HTTPRequest[] {
+ const page = this.getSelectedPage();
+ return this.#networkCollector.getData(page);
+ }
+
+ getConsoleData(): (ConsoleMessage | Error)[] {
+ const page = this.getSelectedPage();
+ return this.#consoleCollector.getData(page);
+ }
+
+ async newPage(): Promise<Page> {
+ const page = await this.browser.newPage();
+ const pages = await this.createPagesSnapshot();
+ this.setSelectedPageIdx(pages.indexOf(page));
+ this.#networkCollector.addPage(page);
+ this.#consoleCollector.addPage(page);
+ return page;
+ }
+
+ getNetworkRequestByUrl(url: string): HTTPRequest {
+ const requests = this.getNetworkRequests();
+ if (!requests.length) {
+ throw new Error('No requests found for selected page');
+ }
+
+ for (const request of requests) {
+ if (request.url() === url) {
+ return request;
+ }
+ }
+
+ throw new Error('Request not found for selected page');
+ }
+
+ setNetworkConditions(conditions: string | null): void {
+ this.#networkConditions = conditions;
+ }
+
+ getNetworkConditions(): string | null {
+ return this.#networkConditions;
+ }
+
+ setCpuThrottlingRate(rate: number): void {
+ this.#cpuThrottlingRate = rate;
+ }
+
+ getCpuThrottlingRate(): number {
+ return this.#cpuThrottlingRate;
+ }
+
+ setIsRunningPerformanceTrace(x: boolean): void {
+ this.#isRunningTrace = x;
+ }
+
+ isRunningPerformanceTrace(): boolean {
+ return this.#isRunningTrace;
+ }
+
+ getDialog(): Dialog | undefined {
+ return this.#dialog;
+ }
+
+ clearDialog(): void {
+ this.#dialog = undefined;
+ }
+
+ getSelectedPage(): Page {
+ const page = this.#pages[this.#selectedPageIdx];
+ if (!page) {
+ throw new Error('No page selected');
+ }
+ if (page.isClosed()) {
+ throw new Error(
+ `The selected page has been closed. Call ${listPages.name} to see open pages.`,
+ );
+ }
+ return page;
+ }
+
+ getPageByIdx(idx: number): Page {
+ const pages = this.#pages;
+ const page = pages[idx];
+ if (!page) {
+ throw new Error('No page found');
+ }
+ return page;
+ }
+
+ getSelectedPageIdx(): number {
+ return this.#selectedPageIdx;
+ }
+
+ #dialogHandler = (dialog: Dialog): void => {
+ this.#dialog = dialog;
+ };
+
+ setSelectedPageIdx(idx: number): void {
+ const oldPage = this.getSelectedPage();
+ oldPage.off('dialog', this.#dialogHandler);
+ this.#selectedPageIdx = idx;
+ const newPage = this.getSelectedPage();
+ newPage.on('dialog', this.#dialogHandler);
+
+ // For waiters 5sec timeout should be sufficient.
+ newPage.setDefaultTimeout(5_000);
+ // 10sec should be enough for the load event to be emitted during
+ // navigations.
+ newPage.setDefaultNavigationTimeout(10_000);
+ }
+
+ async getElementByUid(uid: number): Promise<ElementHandle<Element>> {
+ if (!this.#idToNodeMap.size) {
+ throw new Error('No snapshot found. Use browser_snapshot to capture one');
+ }
+ const node = this.#idToNodeMap.get(uid);
+ if (!node) {
+ throw new Error('No such element found in the snapshot');
+ }
+ const handle = await node.elementHandle();
+ if (!handle) {
+ throw new Error('No such element found in the snapshot');
+ }
+ return handle;
+ }
+
+ /**
+ * Creates a snapshot of the pages.
+ */
+ async createPagesSnapshot(): Promise<Page[]> {
+ this.#pages = await this.browser.pages();
+ return this.#pages;
+ }
+
+ getPages(): Page[] {
+ return this.#pages;
+ }
+
+ /**
+ * Creates a text snapshot of a page.
+ */
+ async createTextSnapshot(): Promise<TextSnapshotNode | null> {
+ const page = this.getSelectedPage();
+ const rootNode = await page.accessibility.snapshot();
+ if (!rootNode) {
+ return null;
+ }
+
+ // Iterate through the whole accessibility node tree and assign node ids that
+ // will be used for the tree serialization and mapping ids back to nodes.
+ let idCounter = 0;
+ this.#idToNodeMap.clear();
+ const assignIds = (node: SerializedAXNode): TextSnapshotNode => {
+ const nodeWithId: TextSnapshotNode = {
+ ...node,
+ id: idCounter++,
+ children: node.children
+ ? node.children.map(child => assignIds(child))
+ : [],
+ };
+ this.#idToNodeMap.set(nodeWithId.id, nodeWithId);
+ return nodeWithId;
+ };
+
+ const rootNodeWithId = assignIds(rootNode);
+ this.#textSnapshot = rootNodeWithId;
+ return rootNodeWithId;
+ }
+
+ getTextSnapshot(): TextSnapshotNode | null {
+ return this.#textSnapshot;
+ }
+
+ async saveTemporaryFile(
+ data: Uint8Array<ArrayBufferLike>,
+ mimeType: 'image/png' | 'image/jpeg',
+ ): Promise<{filename: string}> {
+ try {
+ const dir = await fs.mkdtemp(
+ path.join(os.tmpdir(), 'chrome-devtools-mcp-'),
+ );
+ const filename = path.join(
+ dir,
+ mimeType == 'image/png' ? `screenshot.png` : 'screenshot.jpg',
+ );
+ await fs.writeFile(path.join(dir, `screenshot.png`), data);
+ return {filename};
+ } catch (err) {
+ this.logger(err);
+ throw new Error('Could not save a screenshot to a file');
+ }
+ }
+}
diff --git a/src/McpResponse.ts b/src/McpResponse.ts
new file mode 100644
index 00000000..49242fab
--- /dev/null
+++ b/src/McpResponse.ts
@@ -0,0 +1,234 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import type {ImageContentData, Response} from './tools/ToolDefinition.js';
+import type {McpContext} from './McpContext.js';
+import {ImageContent, TextContent} from '@modelcontextprotocol/sdk/types.js';
+import {
+ getFormattedHeaderValue,
+ getShortDescriptionForRequest,
+ getStatusFromRequest,
+} from './formatters/networkFormatter.js';
+import {formatA11ySnapshot} from './formatters/snapshotFormatter.js';
+import {formatConsoleEvent} from './formatters/consoleFormatter.js';
+
+export class McpResponse implements Response {
+ #includePages: boolean = false;
+ #includeSnapshot: boolean = false;
+ #includeNetworkRequests: boolean = false;
+ #attachedNetworkRequestUrl?: string;
+ #includeConsoleData: boolean = false;
+ #textResponseLines: string[] = [];
+ #formatedConsoleData?: string[];
+ #images: ImageContentData[] = [];
+
+ setIncludePages(value: boolean): void {
+ this.#includePages = value;
+ }
+
+ setIncludeSnapshot(value: boolean): void {
+ this.#includeSnapshot = value;
+ }
+
+ setIncludeNetworkRequests(value: boolean): void {
+ this.#includeNetworkRequests = value;
+ }
+
+ setIncludeConsoleData(value: boolean): void {
+ this.#includeConsoleData = value;
+ }
+
+ attachNetworkRequest(url: string): void {
+ this.#attachedNetworkRequestUrl = url;
+ }
+
+ get includePages(): boolean {
+ return this.#includePages;
+ }
+
+ get includeNetworkRequests(): boolean {
+ return this.#includeNetworkRequests;
+ }
+
+ get includeConsoleData(): boolean {
+ return this.#includeConsoleData;
+ }
+ get attachedNetworkRequestUrl(): string | undefined {
+ return this.#attachedNetworkRequestUrl;
+ }
+
+ appendResponseLine(value: string): void {
+ this.#textResponseLines.push(value);
+ }
+
+ attachImage(value: ImageContentData): void {
+ this.#images.push(value);
+ }
+
+ get responseLines(): readonly string[] {
+ return this.#textResponseLines;
+ }
+
+ get images(): ImageContentData[] {
+ return this.#images;
+ }
+
+ get includeSnapshot(): boolean {
+ return this.#includeSnapshot;
+ }
+
+ async handle(
+ toolName: string,
+ context: McpContext,
+ ): Promise<Array<TextContent | ImageContent>> {
+ if (this.#includePages) {
+ await context.createPagesSnapshot();
+ }
+ if (this.#includeSnapshot) {
+ await context.createTextSnapshot();
+ }
+
+ let formattedConsoleMessages: string[];
+ if (this.#includeConsoleData) {
+ const consoleMessages = context.getConsoleData();
+ if (consoleMessages) {
+ formattedConsoleMessages = await Promise.all(
+ consoleMessages.map(message => formatConsoleEvent(message)),
+ );
+ this.#formatedConsoleData = formattedConsoleMessages;
+ }
+ }
+
+ return this.format(toolName, context);
+ }
+
+ format(
+ toolName: string,
+ context: McpContext,
+ ): Array<TextContent | ImageContent> {
+ const response = [`# ${toolName} response`];
+ for (const line of this.#textResponseLines) {
+ response.push(line);
+ }
+
+ const networkConditions = context.getNetworkConditions();
+ if (networkConditions) {
+ response.push(`## Network emulation`);
+ response.push(`Emulating: ${networkConditions}`);
+ }
+
+ const cpuThrottlingRate = context.getCpuThrottlingRate();
+ if (cpuThrottlingRate > 1) {
+ response.push(`## CPU emulation`);
+ response.push(`Emulating: ${cpuThrottlingRate}x slowdown`);
+ }
+
+ const dialog = context.getDialog();
+ if (dialog) {
+ response.push(`# Open dialog
+${dialog.type()}: ${dialog.message()} (default value: ${dialog.message()}).
+Call browser_handle_dialog to handle it before continuing.`);
+ }
+
+ if (this.#includePages) {
+ const parts = [`## Pages`];
+ let idx = 0;
+ for (const page of context.getPages()) {
+ parts.push(
+ `${idx}: ${page.url()}${idx === context.getSelectedPageIdx() ? ' [selected]' : ''}`,
+ );
+ idx++;
+ }
+ response.push(...parts);
+ }
+
+ if (this.#includeSnapshot) {
+ const rootNode = context.getTextSnapshot();
+ if (rootNode) {
+ const formattedSnapshot = formatA11ySnapshot(rootNode);
+ response.push('## Page content');
+ response.push(formattedSnapshot);
+ }
+ }
+
+ response.push(...this.#getIncludeNetworkRequestsData(context));
+
+ if (this.#includeNetworkRequests) {
+ const requests = context.getNetworkRequests();
+ response.push('## Network requests');
+ if (requests.length) {
+ for (const request of requests) {
+ response.push(getShortDescriptionForRequest(request));
+ }
+ } else {
+ response.push('No requests found.');
+ }
+ }
+
+ if (this.#includeConsoleData && this.#formatedConsoleData) {
+ response.push('## Console messages');
+ response.push(...this.#formatedConsoleData);
+ }
+
+ const text: TextContent = {
+ type: 'text',
+ text: response.join('\n'),
+ };
+ const images: ImageContent[] = this.#images.map(imageData => {
+ return {
+ type: 'image',
+ ...imageData,
+ } as const;
+ });
+
+ return [text, ...images];
+ }
+
+ #getIncludeNetworkRequestsData(context: McpContext): string[] {
+ const response: string[] = [];
+ const url = this.#attachedNetworkRequestUrl;
+ if (!url) {
+ return response;
+ }
+ const httpRequest = context.getNetworkRequestByUrl(url);
+ response.push(`## Request ${httpRequest.url()}`);
+ response.push(`Status: ${getStatusFromRequest(httpRequest)}`);
+ response.push(`### Request Headers`);
+ for (const line of getFormattedHeaderValue(httpRequest.headers())) {
+ response.push(line);
+ }
+
+ const httpResponse = httpRequest.response();
+ if (httpResponse) {
+ response.push(`### Response Headers`);
+ for (const line of getFormattedHeaderValue(httpResponse.headers())) {
+ response.push(line);
+ }
+ }
+
+ const httpFailure = httpRequest.failure();
+ if (httpFailure) {
+ response.push(`### Request failed with`);
+ response.push(httpFailure.errorText);
+ }
+
+ const redirectChain = httpRequest.redirectChain();
+ if (redirectChain.length) {
+ response.push(`### Redirect chain`);
+ let indent = 0;
+ for (const request of redirectChain.reverse()) {
+ response.push(
+ `${' '.repeat(indent)}${getShortDescriptionForRequest(request)}`,
+ );
+ indent++;
+ }
+ }
+ return response;
+ }
+
+ resetResponseLineForTesting() {
+ this.#textResponseLines = [];
+ }
+}
diff --git a/src/PageCollector.ts b/src/PageCollector.ts
new file mode 100644
index 00000000..cb7618bd
--- /dev/null
+++ b/src/PageCollector.ts
@@ -0,0 +1,84 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import type {Browser, HTTPRequest, Page} from 'puppeteer-core';
+
+export class PageCollector<T> {
+ #browser: Browser;
+ #initializer: (page: Page, collector: (item: T) => void) => void;
+ protected storage = new WeakMap<Page, T[]>();
+
+ constructor(
+ browser: Browser,
+ initializer: (page: Page, collector: (item: T) => void) => void,
+ ) {
+ this.#browser = browser;
+ this.#initializer = initializer;
+ }
+
+ async init() {
+ const pages = await this.#browser.pages();
+ for (const page of pages) {
+ this.#initializePage(page);
+ }
+
+ this.#browser.on('targetcreated', async target => {
+ const page = await target.page();
+ if (!page) {
+ return;
+ }
+
+ this.#initializePage(page);
+ });
+ }
+
+ public addPage(page: Page) {
+ this.#initializePage(page);
+ }
+
+ #initializePage(page: Page) {
+ if (this.storage.has(page)) {
+ return;
+ }
+
+ page.on('framenavigated', frame => {
+ // Only reset the storage on main frame navigation
+ if (frame !== page.mainFrame()) {
+ return;
+ }
+ this.cleanup(page);
+ });
+ this.#initializer(page, value => {
+ const stored = this.storage.get(page) ?? [];
+ stored.push(value);
+ this.storage.set(page, stored);
+ });
+ }
+
+ protected cleanup(page: Page) {
+ const collection = this.storage.get(page) ?? [];
+ // Keep the reference alive
+ collection.length = 0;
+ }
+
+ getData(page: Page): T[] {
+ return this.storage.get(page) ?? [];
+ }
+}
+
+export class NetworkCollector extends PageCollector<HTTPRequest> {
+ override cleanup(page: Page) {
+ const requests = this.storage.get(page) ?? [];
+ const lastRequestIdx = requests.findLastIndex(request => {
+ return request.frame() === page.mainFrame()
+ ? request.isNavigationRequest()
+ : false;
+ });
+ // Keep all requests since the last navigation request including that
+ // navigation request itself.
+ this.storage.set(page, requests.slice(Math.max(lastRequestIdx, 0)));
+ }
+}
diff --git a/src/browser.ts b/src/browser.ts
new file mode 100644
index 00000000..c5a671e0
--- /dev/null
+++ b/src/browser.ts
@@ -0,0 +1,132 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import puppeteer, {
+ Browser,
+ ChromeReleaseChannel,
+ ConnectOptions,
+ LaunchOptions,
+ Target,
+} from 'puppeteer-core';
+import os from 'node:os';
+import path from 'node:path';
+import fs from 'fs';
+
+let browser: Browser | undefined;
+
+const ignoredPrefixes = new Set([
+ 'chrome://',
+ 'chrome-extension://',
+ 'chrome-untrusted://',
+ 'devtools://',
+]);
+
+function targetFilter(target: Target): boolean {
+ if (target.url() === 'chrome://newtab/') {
+ return true;
+ }
+ for (const prefix of ignoredPrefixes) {
+ if (target.url().startsWith(prefix)) {
+ return false;
+ }
+ }
+ return true;
+}
+
+const connectOptions: ConnectOptions = {
+ targetFilter,
+ // We do not expect any single CDP command to take more than 10sec.
+ protocolTimeout: 10_000,
+};
+
+async function ensureBrowserConnected(browserURL: string) {
+ if (browser?.connected) {
+ return browser;
+ }
+ browser = await puppeteer.connect({
+ ...connectOptions,
+ browserURL,
+ defaultViewport: null,
+ });
+ return browser;
+}
+
+async function ensureBrowserLaunched(
+ headless: boolean,
+ isolated: boolean,
+ customDevToolsPath?: string,
+ executablePath?: string,
+ channel?: Channel,
+): Promise<Browser> {
+ if (browser?.connected) {
+ return browser;
+ }
+ const profileDirName =
+ channel && channel !== 'stable' ? `mcp-profile-${channel}` : 'mcp-profile';
+
+ let userDataDir: string | undefined;
+ if (!isolated) {
+ userDataDir = path.join(
+ os.homedir(),
+ '.cache',
+ 'chrome-devtools-mcp',
+ profileDirName,
+ );
+ await fs.promises.mkdir(userDataDir, {
+ recursive: true,
+ });
+ }
+
+ const args: LaunchOptions['args'] = [
+ '--remote-debugging-pipe',
+ '--no-first-run',
+ '--hide-crash-restore-bubble',
+ ];
+ if (customDevToolsPath) {
+ args.push(`--custom-devtools-frontend=file://${customDevToolsPath}`);
+ }
+ let puppeterChannel: ChromeReleaseChannel | undefined;
+ if (!executablePath) {
+ puppeterChannel =
+ channel && channel !== 'stable'
+ ? (`chrome-${channel}` as ChromeReleaseChannel)
+ : 'chrome';
+ }
+ browser = await puppeteer.launch({
+ ...connectOptions,
+ channel: puppeterChannel,
+ executablePath,
+ defaultViewport: null,
+ userDataDir,
+ pipe: true,
+ headless,
+ args,
+ });
+ return browser;
+}
+
+export async function resolveBrowser(options: {
+ browserUrl?: string;
+ executablePath?: string;
+ customDevTools?: string;
+ channel?: Channel;
+ headless: boolean;
+ isolated: boolean;
+}) {
+ const browser = options.browserUrl
+ ? await ensureBrowserConnected(options.browserUrl)
+ : await ensureBrowserLaunched(
+ options.headless,
+ options.isolated,
+ options.customDevTools,
+ options.executablePath,
+ options.channel,
+ );
+
+ return browser;
+}
+
+export type Channel = 'stable' | 'canary' | 'beta' | 'dev';
diff --git a/src/devtools.d.ts b/src/devtools.d.ts
new file mode 100644
index 00000000..6e0345e4
--- /dev/null
+++ b/src/devtools.d.ts
@@ -0,0 +1,7 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+type CSSInJS = string & {_tag: 'CSS-in-JS'};
diff --git a/src/formatters/consoleFormatter.ts b/src/formatters/consoleFormatter.ts
new file mode 100644
index 00000000..819ce4c1
--- /dev/null
+++ b/src/formatters/consoleFormatter.ts
@@ -0,0 +1,88 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {ConsoleMessage, JSHandle, ConsoleMessageLocation} from 'puppeteer-core';
+
+const logLevels: Record<string, string> = {
+ log: 'Log',
+ info: 'Info',
+ warning: 'Warning',
+ error: 'Error',
+ exception: 'Exception',
+ assert: 'Assert',
+};
+
+export async function formatConsoleEvent(
+ event: ConsoleMessage | Error,
+): Promise<string> {
+ // Check if the event object has the .type() method, which is unique to ConsoleMessage
+ if ('type' in event) {
+ return await formatConsoleMessage(event);
+ }
+ return `Error: ${event.message}`;
+}
+
+async function formatConsoleMessage(msg: ConsoleMessage): Promise<string> {
+ const logLevel = logLevels[msg.type()];
+ const args = msg.args();
+
+ if (logLevel === 'Error') {
+ let message = `${logLevel}> `;
+ if (msg.text() === 'JSHandle@error') {
+ const errorHandle = args[0] as JSHandle<Error>;
+ message += await errorHandle
+ .evaluate(error => {
+ return error.toString();
+ })
+ .catch(() => {
+ return 'Error occured';
+ });
+ void errorHandle.dispose().catch();
+
+ const formattedArgs = await formatArgs(args.slice(1));
+ if (formattedArgs) {
+ message += ` ${formattedArgs}`;
+ }
+ } else {
+ message += msg.text();
+ const formattedArgs = await formatArgs(args);
+ if (formattedArgs) {
+ message += ` ${formattedArgs}`;
+ }
+ for (const frame of msg.stackTrace()) {
+ message += '\n' + formatStackFrame(frame);
+ }
+ }
+ return message;
+ }
+
+ const formattedArgs = await formatArgs(args);
+ const text = msg.text();
+
+ return `${logLevel}> ${formatStackFrame(
+ msg.location(),
+ )}: ${text} ${formattedArgs}`.trim();
+}
+
+async function formatArgs(args: readonly JSHandle[]): Promise<string> {
+ const argValues = await Promise.all(
+ args.map(arg => arg.jsonValue().catch(() => {})),
+ );
+
+ return argValues
+ .map(value => {
+ return typeof value === 'object' ? JSON.stringify(value) : String(value);
+ })
+ .join(' ');
+}
+
+function formatStackFrame(stackFrame: ConsoleMessageLocation): string {
+ if (!stackFrame?.url) {
+ return '<unknown>';
+ }
+ const filename = stackFrame.url.replace(/^.*\//, '');
+ return `${filename}:${stackFrame.lineNumber}:${stackFrame.columnNumber}`;
+}
diff --git a/src/formatters/networkFormatter.ts b/src/formatters/networkFormatter.ts
new file mode 100644
index 00000000..f74e954f
--- /dev/null
+++ b/src/formatters/networkFormatter.ts
@@ -0,0 +1,39 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import type {HTTPRequest} from 'puppeteer-core';
+
+export function getShortDescriptionForRequest(request: HTTPRequest): string {
+ return `${request.url()} ${request.method()} ${getStatusFromRequest(request)}`;
+}
+
+export function getStatusFromRequest(request: HTTPRequest): string {
+ const httpResponse = request.response();
+ const failure = request.failure();
+ let status: string;
+ if (httpResponse) {
+ const responseStatus = httpResponse.status();
+ status =
+ responseStatus >= 200 && responseStatus <= 299
+ ? `[success - ${responseStatus}]`
+ : `[failed - ${responseStatus}]`;
+ } else if (failure) {
+ status = `[failed - ${failure.errorText}]`;
+ } else {
+ status = '[pending]';
+ }
+ return status;
+}
+
+export function getFormattedHeaderValue(
+ headers: Record<string, string>,
+): string[] {
+ const response: string[] = [];
+ for (const [name, value] of Object.entries(headers)) {
+ response.push(`- ${name}:${value}`);
+ }
+ return response;
+}
diff --git a/src/formatters/snapshotFormatter.ts b/src/formatters/snapshotFormatter.ts
new file mode 100644
index 00000000..4ab601d9
--- /dev/null
+++ b/src/formatters/snapshotFormatter.ts
@@ -0,0 +1,96 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import type {TextSnapshotNode} from '../McpContext.js';
+
+export function formatA11ySnapshot(
+ serializedAXNodeRoot: TextSnapshotNode,
+ depth: number = 0,
+): string {
+ let result = '';
+ const attributes = getAttributes(serializedAXNodeRoot);
+ const line = ' '.repeat(depth * 2) + attributes.join(' ') + '\n';
+ result += line;
+
+ for (const child of serializedAXNodeRoot.children) {
+ result += formatA11ySnapshot(child, depth + 1);
+ }
+
+ return result;
+}
+
+function getAttributes(serializedAXNodeRoot: TextSnapshotNode): string[] {
+ const attributes = [
+ `uid=${serializedAXNodeRoot.id}`,
+ serializedAXNodeRoot.role,
+ `"${serializedAXNodeRoot.name || ''}"`, // Corrected: Added quotes around name
+ ];
+
+ // Value properties
+ const valueProperties = [
+ 'value',
+ 'valuetext',
+ 'valuemin',
+ 'valuemax',
+ 'level',
+ 'autocomplete',
+ 'haspopup',
+ 'invalid',
+ 'orientation',
+ 'description',
+ 'keyshortcuts',
+ 'roledescription',
+ ] as const;
+ for (const property of valueProperties) {
+ if (
+ property in serializedAXNodeRoot &&
+ serializedAXNodeRoot[property] !== undefined
+ ) {
+ attributes.push(`${property}="${serializedAXNodeRoot[property]}"`);
+ }
+ }
+
+ // Boolean properties that also have an 'able' attribute
+ const booleanPropertyMap = {
+ disabled: 'disableable',
+ expanded: 'expandable',
+ focused: 'focusable',
+ selected: 'selectable',
+ };
+ for (const [property, ableAttribute] of Object.entries(booleanPropertyMap)) {
+ if (property in serializedAXNodeRoot) {
+ attributes.push(ableAttribute);
+ if (serializedAXNodeRoot[property as keyof typeof booleanPropertyMap]) {
+ attributes.push(property);
+ }
+ }
+ }
+
+ const booleanProperties = [
+ 'modal',
+ 'multiline',
+ 'readonly',
+ 'required',
+ 'multiselectable',
+ ] as const;
+
+ for (const property of booleanProperties) {
+ if (property in serializedAXNodeRoot && serializedAXNodeRoot[property]) {
+ attributes.push(property);
+ }
+ }
+
+ // Mixed boolean/string attributes
+ for (const property of ['pressed', 'checked'] as const) {
+ if (property in serializedAXNodeRoot) {
+ attributes.push(property);
+ if (serializedAXNodeRoot[property]) {
+ attributes.push(`${property}="${serializedAXNodeRoot[property]}"`);
+ }
+ }
+ }
+
+ return attributes;
+}
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 00000000..9a5a242b
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,226 @@
+#!/usr/bin/env node
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';
+import {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';
+import {
+ CallToolResult,
+ SetLevelRequestSchema,
+} from '@modelcontextprotocol/sdk/types.js';
+import yargs from 'yargs';
+import {hideBin} from 'yargs/helpers';
+
+import {McpResponse} from './McpResponse.js';
+import {McpContext} from './McpContext.js';
+
+import {ToolDefinition} from './tools/ToolDefinition.js';
+import {logger, saveLogsToFile} from './logger.js';
+import {Channel, resolveBrowser} from './browser.js';
+import * as emulationTools from './tools/emulation.js';
+import * as consoleTools from './tools/console.js';
+import * as inputTools from './tools/input.js';
+import * as networkTools from './tools/network.js';
+import * as pagesTools from './tools/pages.js';
+import * as performanceTools from './tools/performance.js';
+import * as screenshotTools from './tools/screenshot.js';
+import * as scriptTools from './tools/script.js';
+import * as snapshotTools from './tools/snapshot.js';
+
+import path from 'node:path';
+import fs from 'node:fs';
+import assert from 'node:assert';
+
+export const args = yargs(hideBin(process.argv))
+ .scriptName('npx chrome-devtools-mcp@latest')
+ .wrap(100)
+ .option('browserUrl', {
+ type: 'string',
+ description: 'The browser URL to connect to',
+ alias: 'u',
+ coerce: url => {
+ new URL(url);
+ return url;
+ },
+ })
+ .option('headless', {
+ type: 'boolean',
+ description: 'Whether to run in headless (no UI) mode',
+ default: false,
+ })
+ .option('executablePath', {
+ type: 'string',
+ description: 'Path to custom Chrome executable',
+ conflicts: 'browserUrl',
+ alias: 'e',
+ })
+ .option('isolated', {
+ type: 'boolean',
+ description:
+ 'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed.',
+ default: false,
+ })
+ .option('customDevtools', {
+ type: 'string',
+ description: 'Path to custom DevTools',
+ hidden: true,
+ conflicts: 'browserUrl',
+ alias: 'd',
+ })
+ .option('channel', {
+ type: 'string',
+ description: 'System installed browser channel to use.',
+ choices: ['stable', 'canary', 'beta', 'dev'],
+ conflicts: ['browserUrl', 'executablePath'],
+ })
+ .option('logFile', {
+ type: 'string',
+ describe: 'Save the logs to file',
+ hidden: true,
+ })
+ .check(args => {
+ // We can't set default in the options else
+ // Yargs will complain
+ if (!args.channel && !args.browserUrl) {
+ args.channel = 'stable';
+ }
+ return true;
+ })
+ .example([
+ [
+ '$0 --browserUrl http://127.0.0.1:9222',
+ 'Connect to an existing browser instance',
+ ],
+ ['$0 --channel beta', 'Use Chrome Beta installed on this system'],
+ ['$0 --channel canary', 'Use Chrome Canary installed on this system'],
+ ['$0 --channel dev', 'Use Chrome Dev installed on this system'],
+ ['$0 --channel stable', 'Use stable Chrome installed on this system'],
+ ['$0 --logFile /tmp/log.txt', 'Save logs to a file'],
+ ['$0 --help', 'Print CLI options'],
+ ])
+
+ .help()
+ .parseSync();
+
+if (args.logFile) {
+ saveLogsToFile(args.logFile);
+}
+
+function readPackageJson(): {version?: string} {
+ const currentDir = import.meta.dirname;
+ const packageJsonPath = path.join(currentDir, '..', '..', 'package.json');
+ if (!fs.existsSync(packageJsonPath)) {
+ return {};
+ }
+ try {
+ const json = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
+ assert.strict(json['name'], 'chrome-devtools-mcp');
+ return json;
+ } catch {
+ return {};
+ }
+}
+
+const version = readPackageJson().version ?? 'unknown';
+logger(`Starting Chrome DevTools MCP Server v${version}`);
+const server = new McpServer(
+ {
+ name: 'chrome_devtools',
+ title: 'Chrome DevTools MCP server',
+ version,
+ },
+ {capabilities: {logging: {}}},
+);
+server.server.setRequestHandler(SetLevelRequestSchema, () => {
+ return {};
+});
+
+let context: McpContext;
+async function getContext(): Promise<McpContext> {
+ const browser = await resolveBrowser({
+ browserUrl: args.browserUrl,
+ headless: args.headless,
+ executablePath: args.executablePath,
+ customDevTools: args.customDevtools,
+ channel: args.channel as Channel,
+ isolated: args.isolated,
+ });
+ if (!context) {
+ context = await McpContext.from(browser, logger);
+ }
+ return context;
+}
+
+const logDisclaimers = () => {
+ console.error(
+ `chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
+debug, and modify any data in the browser or DevTools.
+Avoid sharing sensitive or personal information that you do want to share with MCP clients.`,
+ );
+};
+
+function registerTool(tool: ToolDefinition): void {
+ server.registerTool(
+ tool.name,
+ {
+ description: tool.description,
+ inputSchema: tool.schema,
+ annotations: tool.annotations,
+ },
+ async (params): Promise<CallToolResult> => {
+ logger(`${tool.name} request: ${JSON.stringify(params, null, ' ')}`);
+ const context = await getContext();
+ const response = new McpResponse();
+ await tool.handler(
+ {
+ params,
+ },
+ response,
+ context,
+ );
+ try {
+ const content = await response.handle(tool.name, context);
+
+ return {
+ content,
+ };
+ } catch (error) {
+ const errorText =
+ error instanceof Error ? error.message : String(error);
+
+ return {
+ content: [
+ {
+ type: 'text',
+ text: errorText,
+ },
+ ],
+ isError: true,
+ };
+ }
+ },
+ );
+}
+
+const tools = [
+ ...Object.values(consoleTools),
+ ...Object.values(emulationTools),
+ ...Object.values(inputTools),
+ ...Object.values(networkTools),
+ ...Object.values(pagesTools),
+ ...Object.values(performanceTools),
+ ...Object.values(screenshotTools),
+ ...Object.values(scriptTools),
+ ...Object.values(snapshotTools),
+];
+for (const tool of tools) {
+ registerTool(tool as unknown as ToolDefinition);
+}
+
+const transport = new StdioServerTransport();
+await server.connect(transport);
+logger('Chrome DevTools MCP Server connected');
+logDisclaimers();
diff --git a/src/logger.ts b/src/logger.ts
new file mode 100644
index 00000000..66ab046a
--- /dev/null
+++ b/src/logger.ts
@@ -0,0 +1,32 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import fs from 'node:fs';
+
+import debug from 'debug';
+
+const mcpDebugNamespace = 'mcp:log';
+
+const namespacesToEnable = [
+ mcpDebugNamespace,
+ ...(process.env['DEBUG'] ? [process.env['DEBUG']] : []),
+];
+
+export function saveLogsToFile(fileName: string) {
+ // Enable overrides everything so we need to add them
+ debug.enable(namespacesToEnable.join(','));
+
+ const logFile = fs.createWriteStream(fileName, {flags: 'a'});
+ debug.log = function (...chunks: any[]) {
+ logFile.write(`${chunks.join(' ')}\n`);
+ };
+ logFile.on('error', function (error) {
+ console.log(`Error when opening/writing to log file: ${error.message}`);
+ logFile.end();
+ process.exit(1);
+ });
+}
+
+export const logger = debug(mcpDebugNamespace);
diff --git a/src/performAction.ts b/src/performAction.ts
new file mode 100644
index 00000000..c653c2bc
--- /dev/null
+++ b/src/performAction.ts
@@ -0,0 +1,136 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import type {CdpPage} from 'puppeteer-core/internal/cdp/Page.js';
+import {Page, Protocol} from 'puppeteer-core';
+import {logger} from './logger.js';
+
+async function waitForStableDom(
+ page: Page,
+ signal: AbortSignal,
+): Promise<void> {
+ const stableDomObserver = await page.evaluateHandle(() => {
+ let timeoutId: ReturnType<typeof setTimeout>;
+ function callback() {
+ clearTimeout(timeoutId);
+ timeoutId = setTimeout(() => {
+ domObserver.resolver.resolve();
+ domObserver.observer.disconnect();
+ }, 100);
+ }
+ const domObserver = {
+ resolver: Promise.withResolvers<void>(),
+ observer: new MutationObserver(callback),
+ };
+ // It's possible that the DOM is not gonna change so we
+ // need to start the timeout initially.
+ callback();
+
+ domObserver.observer.observe(document.body, {
+ childList: true,
+ subtree: true,
+ attributes: true,
+ });
+
+ return domObserver;
+ });
+
+ signal.addEventListener('abort', async () => {
+ try {
+ await stableDomObserver.evaluate(observer => {
+ observer.observer.disconnect();
+ observer.resolver.resolve();
+ });
+ await stableDomObserver.dispose();
+ } catch {
+ // Ignored cleanup errors
+ }
+ });
+
+ return stableDomObserver.evaluate(async observer => {
+ return await observer.resolver.promise;
+ });
+}
+
+async function waitForNavigationStarted(page: CdpPage, signal: AbortSignal) {
+ // Currently Puppeteer does not have API
+ // For when a navigation is about to start
+ const navigationStartedPromise = new Promise<boolean>(resolve => {
+ const listener = (event: Protocol.Page.FrameStartedNavigatingEvent) => {
+ if (
+ [
+ 'historySameDocument',
+ 'historyDifferentDocument',
+ 'sameDocument',
+ ].includes(event.navigationType)
+ ) {
+ resolve(false);
+ return;
+ }
+
+ resolve(true);
+ };
+
+ page._client().on('Page.frameStartedNavigating', listener);
+ signal.addEventListener('abort', () => {
+ resolve(false);
+ page._client().off('Page.frameStartedNavigating', listener);
+ });
+ });
+
+ return await Promise.race([
+ navigationStartedPromise,
+ timeout(100).then(() => false),
+ ]);
+}
+
+function timeout(time: number, signal?: AbortSignal): Promise<void> {
+ return new Promise<void>(res => {
+ const id = setTimeout(res, time);
+ signal?.addEventListener('abort', () => {
+ res();
+ clearTimeout(id);
+ });
+ });
+}
+
+/**
+ * A wrapper that executes a action and waits for
+ * a potential navigation, after which it waits
+ * for the DOM to be stable before returning.
+ */
+export async function performAction(page: Page, callback: () => Promise<void>) {
+ const controller = new AbortController();
+
+ const navigationStartedPromise = waitForNavigationStarted(
+ page as unknown as CdpPage,
+ controller.signal,
+ );
+
+ await callback();
+
+ try {
+ const navigationStated = await navigationStartedPromise;
+ if (navigationStated) {
+ await page.waitForNavigation({
+ timeout: 3000,
+ signal: controller.signal,
+ });
+ }
+
+ // Wait for stable dom after navigation so we execute in
+ // the correct context
+ await Promise.race([
+ waitForStableDom(page, controller.signal),
+ timeout(3000, controller.signal).then(() => {
+ throw new Error('Timeout');
+ }),
+ ]);
+ } catch (error) {
+ logger(error);
+ } finally {
+ controller.abort();
+ }
+}
diff --git a/src/tools/ToolDefinition.ts b/src/tools/ToolDefinition.ts
new file mode 100644
index 00000000..2da2abdd
--- /dev/null
+++ b/src/tools/ToolDefinition.ts
@@ -0,0 +1,76 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {Dialog, ElementHandle, Page} from 'puppeteer-core';
+import {ToolCategories} from './categories.js';
+
+export interface ToolDefinition<
+ Schema extends Zod.ZodRawShape = Zod.ZodRawShape,
+> {
+ name: string;
+ description: string;
+ annotations: {
+ title?: string;
+ category: ToolCategories;
+ /**
+ * If true, the tool does not modify its environment.
+ */
+ readOnlyHint: boolean;
+ };
+ schema: Schema;
+ handler: (
+ request: Request<Schema>,
+ response: Response,
+ context: Context,
+ ) => Promise<void>;
+}
+
+export interface Request<Schema extends Zod.ZodRawShape> {
+ params: z.objectOutputType<Schema, z.ZodTypeAny>;
+}
+
+export type ImageContentData = {
+ data: string;
+ mimeType: string;
+};
+
+export interface Response {
+ appendResponseLine(value: string): void;
+ setIncludePages(value: boolean): void;
+ setIncludeNetworkRequests(value: boolean): void;
+ setIncludeConsoleData(value: boolean): void;
+ setIncludeSnapshot(value: boolean): void;
+ attachImage(value: ImageContentData): void;
+ attachNetworkRequest(url: string): void;
+}
+
+/**
+ * Only add methods required by tools/*.
+ */
+export type Context = Readonly<{
+ isRunningPerformanceTrace(): boolean;
+ setIsRunningPerformanceTrace(x: boolean): void;
+ getSelectedPage(): Page;
+ getDialog(): Dialog | undefined;
+ clearDialog(): void;
+ getPageByIdx(idx: number): Page;
+ newPage(): Promise<Page>;
+ setSelectedPageIdx(idx: number): void;
+ getElementByUid(uid: number): Promise<ElementHandle<Element>>;
+ setNetworkConditions(conditions: string | null): void;
+ setCpuThrottlingRate(rate: number): void;
+ saveTemporaryFile(
+ data: Uint8Array<ArrayBufferLike>,
+ mimeType: 'image/png' | 'image/jpeg',
+ ): Promise<{filename: string}>;
+}>;
+
+export function defineTool<Schema extends Zod.ZodRawShape>(
+ definition: ToolDefinition<Schema>,
+) {
+ return definition;
+}
diff --git a/src/tools/categories.ts b/src/tools/categories.ts
new file mode 100644
index 00000000..084be6fe
--- /dev/null
+++ b/src/tools/categories.ts
@@ -0,0 +1,14 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+export enum ToolCategories {
+ INPUT_AUTOMATION = 'Input automation',
+ NAVIGATION_AUTOMATION = 'Navigation automation',
+ EMULATION = 'Emulation',
+ PERFORMANCE = 'Performance',
+ NETWORK = 'Network',
+ DEBUGGING = 'Debugging',
+}
diff --git a/src/tools/console.ts b/src/tools/console.ts
new file mode 100644
index 00000000..9a3ff114
--- /dev/null
+++ b/src/tools/console.ts
@@ -0,0 +1,21 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {ToolCategories} from './categories.js';
+import {defineTool} from './ToolDefinition.js';
+
+export const consoleTool = defineTool({
+ name: 'list_console_messages',
+ description: 'List all console messages for the currently selected page',
+ annotations: {
+ category: ToolCategories.DEBUGGING,
+ readOnlyHint: true,
+ },
+ schema: {},
+ handler: async (_request, response) => {
+ response.setIncludeConsoleData(true);
+ },
+});
diff --git a/src/tools/emulation.ts b/src/tools/emulation.ts
new file mode 100644
index 00000000..f2bfa376
--- /dev/null
+++ b/src/tools/emulation.ts
@@ -0,0 +1,75 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {PredefinedNetworkConditions} from 'puppeteer-core';
+import {ToolCategories} from './categories.js';
+
+const throttlingOptions: [string, ...string[]] = [
+ 'No emulation',
+ ...Object.keys(PredefinedNetworkConditions),
+];
+
+export const emulateNetwork = defineTool({
+ name: 'emulate_network',
+ description: `Emulates network conditions such as throttling on the selected page.`,
+ annotations: {
+ category: ToolCategories.EMULATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ throttlingOption: z
+ .enum(throttlingOptions)
+ .describe(
+ `The network throttling option to emulate. Available throttling options are: ${throttlingOptions.join(', ')}. Set to "No emulation" to disable.`,
+ ),
+ },
+ handler: async (request, _response, context) => {
+ const page = context.getSelectedPage();
+ const conditions = request.params.throttlingOption;
+
+ if (conditions === 'No emulation') {
+ await page.emulateNetworkConditions(null);
+ context.setNetworkConditions(null);
+ return;
+ }
+
+ if (conditions in PredefinedNetworkConditions) {
+ const networkCondition =
+ PredefinedNetworkConditions[
+ conditions as keyof typeof PredefinedNetworkConditions
+ ];
+ await page.emulateNetworkConditions(networkCondition);
+ context.setNetworkConditions(conditions);
+ }
+ },
+});
+
+export const emulateCpu = defineTool({
+ name: 'emulate_cpu',
+ description: `Emulates CPU throttling by slowing down the selected page's execution.`,
+ annotations: {
+ category: ToolCategories.EMULATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ throttlingRate: z
+ .number()
+ .min(1)
+ .max(20)
+ .describe(
+ 'The CPU throttling rate representing the slowdown factor 1-20x. Set the rate to 1 to disable throttling',
+ ),
+ },
+ handler: async (request, _response, context) => {
+ const page = context.getSelectedPage();
+ const {throttlingRate} = request.params;
+
+ await page.emulateCPUThrottling(throttlingRate);
+ context.setCpuThrottlingRate(throttlingRate);
+ },
+});
diff --git a/src/tools/input.ts b/src/tools/input.ts
new file mode 100644
index 00000000..3379c25d
--- /dev/null
+++ b/src/tools/input.ts
@@ -0,0 +1,211 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {ElementHandle} from 'puppeteer-core';
+import {ToolCategories} from './categories.js';
+import {performAction} from '../performAction.js';
+
+export const click = defineTool({
+ name: 'click',
+ description: `Clicks on the provided element`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ uid: z
+ .number()
+ .describe(
+ 'The uid of an element on the page from the page content snapshot',
+ ),
+ dblClick: z
+ .boolean()
+ .optional()
+ .describe('Set to true for double clicks. Default is false.'),
+ },
+ handler: async (request, response, context) => {
+ const uid = request.params.uid;
+ const handle = await context.getElementByUid(uid);
+ try {
+ await performAction(handle.frame.page(), async () => {
+ await handle.asLocator().click({
+ count: request.params.dblClick ? 2 : 1,
+ });
+ });
+ response.appendResponseLine(
+ request.params.dblClick
+ ? `Successfully double clicked on the element`
+ : `Successfully clicked on the element`,
+ );
+ response.setIncludeSnapshot(true);
+ } finally {
+ handle.dispose();
+ }
+ },
+});
+
+export const hover = defineTool({
+ name: 'hover',
+ description: `Hover over the provided element`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ uid: z
+ .number()
+ .describe(
+ 'The uid of an element on the page from the page content snapshot',
+ ),
+ },
+ handler: async (request, response, context) => {
+ const uid = request.params.uid;
+ const handle = await context.getElementByUid(uid);
+ try {
+ await handle.asLocator().hover();
+ response.appendResponseLine(`Successfully hovered over the element`);
+ response.setIncludeSnapshot(true);
+ } finally {
+ handle.dispose();
+ }
+ },
+});
+
+export const fill = defineTool({
+ name: 'fill',
+ description: `Type text into a input, text area or select an option from a <select> element.`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ uid: z
+ .number()
+ .describe(
+ 'The uid of an element on the page from the page content snapshot',
+ ),
+ value: z.string().describe('The value to fill in'),
+ },
+ handler: async (request, response, context) => {
+ const uid = request.params.uid;
+ const handle = await context.getElementByUid(uid);
+ try {
+ await handle.asLocator().fill(request.params.value);
+ response.appendResponseLine(`Successfully filled out the element`);
+ response.setIncludeSnapshot(true);
+ } finally {
+ handle.dispose();
+ }
+ },
+});
+
+export const drag = defineTool({
+ name: 'drag',
+ description: `Drag an element onto another element`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ from_uid: z.number().describe('The uid of the element to drag'),
+ to_uid: z.number().describe('The uid of the element to drop into'),
+ },
+ handler: async (request, response, context) => {
+ const fromHandle = await context.getElementByUid(request.params.from_uid);
+ const toHandle = await context.getElementByUid(request.params.to_uid);
+ try {
+ await fromHandle.drag(toHandle);
+ await new Promise(resolve => setTimeout(resolve, 50));
+ await toHandle.drop(fromHandle);
+ response.appendResponseLine(`Successfully dragged an element`);
+ response.setIncludeSnapshot(true);
+ } finally {
+ fromHandle.dispose();
+ toHandle.dispose();
+ }
+ },
+});
+
+export const fillForm = defineTool({
+ name: 'fill_form',
+ description: `Fill out multiple form elements at once`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ elements: z
+ .array(
+ z.object({
+ uid: z.number().describe('The uid of the element to fill out'),
+ value: z.string().describe('Value for the element'),
+ }),
+ )
+ .describe('Elements from snapshot to fill out.'),
+ },
+ handler: async (request, response, context) => {
+ for (const element of request.params.elements) {
+ const handle = await context.getElementByUid(element.uid);
+ try {
+ await handle.asLocator().fill(element.value);
+ } finally {
+ handle.dispose();
+ }
+ }
+ response.appendResponseLine(`Successfully filled out the form`);
+ response.setIncludeSnapshot(true);
+ },
+});
+
+export const uploadFile = defineTool({
+ name: 'upload_file',
+ description: 'Upload a file through a provided element.',
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ uid: z
+ .number()
+ .describe(
+ 'The uid of the file input element or an element that will open file chooser on the page from the page content snapshot',
+ ),
+ filePath: z.string().describe('The local path of the file to upload'),
+ },
+ handler: async (request, response, context) => {
+ const {uid, filePath} = request.params;
+ const handle = (await context.getElementByUid(
+ uid,
+ )) as ElementHandle<HTMLInputElement>;
+ try {
+ try {
+ await handle.uploadFile(filePath);
+ } catch {
+ // Some sites use a proxy element to trigger file upload instead of
+ // a type=file element. In this case, we want to default to
+ // Page.waitForFileChooser() and upload the file this way.
+ try {
+ const page = await context.getSelectedPage();
+ const [fileChooser] = await Promise.all([
+ page.waitForFileChooser({timeout: 3000}),
+ handle.asLocator().click(),
+ ]);
+ await fileChooser.accept([filePath]);
+ } catch {
+ throw new Error(
+ `Failed to upload file. The element could not accept the file directly, and clicking it did not trigger a file chooser.`,
+ );
+ }
+ }
+ response.setIncludeSnapshot(true);
+ response.appendResponseLine(`File uploaded from ${filePath}.`);
+ } finally {
+ handle.dispose();
+ }
+ },
+});
diff --git a/src/tools/network.ts b/src/tools/network.ts
new file mode 100644
index 00000000..c14fe9ff
--- /dev/null
+++ b/src/tools/network.ts
@@ -0,0 +1,38 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {ToolCategories} from './categories.js';
+
+export const listNetworkRequests = defineTool({
+ name: 'list_network_requests',
+ description: `List all requests for the currently selected page`,
+ annotations: {
+ category: ToolCategories.NETWORK,
+ readOnlyHint: true,
+ },
+ schema: {},
+ handler: async (_request, response) => {
+ response.setIncludeNetworkRequests(true);
+ },
+});
+
+export const getNetworkRequest = defineTool({
+ name: 'get_network_request',
+ description: `Gets a network request by URL. You can get all requests by calling ${listNetworkRequests.name}.`,
+ annotations: {
+ category: ToolCategories.NETWORK,
+ readOnlyHint: true,
+ },
+ schema: {
+ url: z.string().describe('The URL of the request.'),
+ },
+ handler: async (request, response, _context) => {
+ response.attachNetworkRequest(request.params.url);
+ response.setIncludeNetworkRequests(true);
+ },
+});
diff --git a/src/tools/pages.ts b/src/tools/pages.ts
new file mode 100644
index 00000000..7668078e
--- /dev/null
+++ b/src/tools/pages.ts
@@ -0,0 +1,199 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {ToolCategories} from './categories.js';
+
+export const listPages = defineTool({
+ name: 'list_pages',
+ description: `Get a list of pages open in the browser.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: true,
+ },
+ schema: {},
+ handler: async (_request, response) => {
+ response.setIncludePages(true);
+ },
+});
+
+export const selectPage = defineTool({
+ name: 'select_page',
+ description: `Select a page as a context for future tool calls.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: true,
+ },
+ schema: {
+ pageIdx: z
+ .number()
+ .describe(
+ 'The index of the page to select. Call list_pages to list pages.',
+ ),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getPageByIdx(request.params.pageIdx);
+ await page.bringToFront();
+ context.setSelectedPageIdx(request.params.pageIdx);
+ response.setIncludePages(true);
+ },
+});
+
+export const closePage = defineTool({
+ name: 'close_page',
+ description: `Closes the page by its index.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ pageIdx: z
+ .number()
+ .describe(
+ 'The index of the page to close. Call list_pages to list pages.',
+ ),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getPageByIdx(request.params.pageIdx);
+ context.setSelectedPageIdx(0);
+ await page.close({runBeforeUnload: false});
+ response.setIncludePages(true);
+ },
+});
+
+export const newPage = defineTool({
+ name: 'new_page',
+ description: `Creates a new page`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ url: z.string().describe('URL to load in a new page.'),
+ },
+ handler: async (request, response, context) => {
+ const page = await context.newPage();
+ await page.goto(request.params.url);
+ response.setIncludePages(true);
+ },
+});
+
+export const navigatePage = defineTool({
+ name: 'navigate_page',
+ description: `Navigates the currently selected page to a URL.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ url: z.string().describe('URL to navigate the page to'),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getSelectedPage();
+
+ await page.goto(request.params.url);
+
+ response.setIncludePages(true);
+ },
+});
+
+export const navigatePageHistory = defineTool({
+ name: 'navigate_page_history',
+ description: `Navigates the currently selected page.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ navigate: z
+ .enum(['back', 'forward'])
+ .describe(
+ 'Whether to navigate back or navigate forward in the selected pages history',
+ ),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getSelectedPage();
+
+ try {
+ if (request.params.navigate === 'back') {
+ await page.goBack();
+ } else {
+ await page.goForward();
+ }
+ } catch {
+ response.appendResponseLine(
+ `Unable to navigate ${request.params.navigate} in currently selected page.`,
+ );
+ }
+
+ response.setIncludePages(true);
+ },
+});
+
+export const resizePage = defineTool({
+ name: 'resize_page',
+ description: `Resizes the selected page's window so that the page has specified dimension`,
+ annotations: {
+ category: ToolCategories.EMULATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ width: z.number().describe('Page width'),
+ height: z.number().describe('Page height'),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getSelectedPage();
+
+ // @ts-expect-error internal API for now.
+ await page.resize({
+ contentWidth: request.params.width,
+ contentHeight: request.params.height,
+ });
+
+ response.setIncludePages(true);
+ },
+});
+
+export const handleDialog = defineTool({
+ name: 'handle_dialog',
+ description: `If a browser dialog was opened, use this command to handle it`,
+ annotations: {
+ category: ToolCategories.INPUT_AUTOMATION,
+ readOnlyHint: false,
+ },
+ schema: {
+ action: z
+ .enum(['accept', 'dismiss'])
+ .describe('Whether to dismiss or accept the dialog'),
+ promptText: z
+ .string()
+ .optional()
+ .describe('Optional prompt text to enter into the dialog.'),
+ },
+ handler: async (request, response, context) => {
+ const dialog = context.getDialog();
+ if (!dialog) {
+ throw new Error('No open dialog found');
+ }
+
+ switch (request.params.action) {
+ case 'accept': {
+ await dialog.accept(request.params.promptText);
+ response.appendResponseLine('Successfully accepted the dialog');
+ break;
+ }
+ case 'dismiss': {
+ await dialog.dismiss();
+ response.appendResponseLine('Successfully dismissed the dialog');
+ break;
+ }
+ }
+
+ context.clearDialog();
+ response.setIncludePages(true);
+ },
+});
diff --git a/src/tools/performance.ts b/src/tools/performance.ts
new file mode 100644
index 00000000..b56a74b9
--- /dev/null
+++ b/src/tools/performance.ts
@@ -0,0 +1,111 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {Context, defineTool, Response} from './ToolDefinition.js';
+import {insightOutput, parseRawTraceBuffer} from '../trace-processing/parse.js';
+import {logger} from '../logger.js';
+import {Page} from 'puppeteer-core';
+import {ToolCategories} from './categories.js';
+
+export const startTrace = defineTool({
+ name: 'performance_start_trace',
+ description: 'Starts a performance trace recording',
+ annotations: {
+ category: ToolCategories.PERFORMANCE,
+ readOnlyHint: true,
+ },
+ schema: {
+ reload: z
+ .boolean()
+ .describe(
+ 'Determines if, once tracing has started, the page should be automatically reloaded',
+ ),
+ autoStop: z
+ .boolean()
+ .describe(
+ 'Determines if the trace recording should be automatically stopped.',
+ ),
+ },
+ handler: async (request, response, context) => {
+ if (context.isRunningPerformanceTrace()) {
+ response.appendResponseLine(
+ 'Error: a performance trace is already running. Use performance_stop_trace to stop it. Only one trace can be running at any given time.',
+ );
+ return;
+ }
+ context.setIsRunningPerformanceTrace(true);
+
+ const page = context.getSelectedPage();
+ const pageUrlForTracing = page.url();
+
+ if (request.params.reload) {
+ // Before starting the recording, navigate to about:blank to clear out any state.
+ await page.goto('about:blank', {
+ waitUntil: ['networkidle0'],
+ });
+ }
+
+ // TODO(jacktfranklin): determine the exact list of categories and
+ // align with DevTools
+ await page.tracing.start();
+
+ if (request.params.reload) {
+ await page.goto(pageUrlForTracing, {
+ waitUntil: ['load'],
+ });
+ }
+
+ if (request.params.autoStop) {
+ await new Promise(resolve => setTimeout(resolve, 5_000));
+ await stopTracingAndAppendOutput(page, response, context);
+ } else {
+ response.appendResponseLine(
+ `The performance trace is being recorded. Use performance_stop_trace to stop it.`,
+ );
+ }
+ },
+});
+
+export const stopTrace = defineTool({
+ name: 'performance_stop_trace',
+ description: 'Stops the active performance trace recording',
+ annotations: {
+ category: ToolCategories.PERFORMANCE,
+ readOnlyHint: true,
+ },
+ schema: {},
+ handler: async (_request, response, context) => {
+ if (!context.isRunningPerformanceTrace) {
+ return;
+ }
+ const page = context.getSelectedPage();
+ await stopTracingAndAppendOutput(page, response, context);
+ },
+});
+
+async function stopTracingAndAppendOutput(
+ page: Page,
+ response: Response,
+ context: Context,
+): Promise<void> {
+ try {
+ const traceEventsBuffer = await page.tracing.stop();
+ const result = await parseRawTraceBuffer(traceEventsBuffer);
+ response.appendResponseLine('The performance trace has been stopped.');
+ if (result) {
+ const insightText = insightOutput(result);
+ response.appendResponseLine('Insights with performance opportunities:');
+ response.appendResponseLine(insightText);
+ }
+ } catch (e) {
+ logger(
+ `Error stopping performance trace: ${e instanceof Error ? e.message : JSON.stringify(e)}`,
+ );
+ } finally {
+ context.setIsRunningPerformanceTrace(false);
+ }
+}
diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.ts
new file mode 100644
index 00000000..fb704dbd
--- /dev/null
+++ b/src/tools/screenshot.ts
@@ -0,0 +1,81 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {ElementHandle, Page} from 'puppeteer-core';
+import {defineTool} from './ToolDefinition.js';
+import {ToolCategories} from './categories.js';
+
+export const screenshot = defineTool({
+ name: 'take_screenshot',
+ description: `Take a screenshot of the page or element.`,
+ annotations: {
+ category: ToolCategories.DEBUGGING,
+ readOnlyHint: true,
+ },
+ schema: {
+ format: z
+ .enum(['png', 'jpeg'])
+ .default('png')
+ .describe('Type of format to save the screenshot as. Default is "png"'),
+ uid: z
+ .number()
+ .optional()
+ .describe(
+ 'The uid of an element on the page from the page content snapshot. If omitted takes a pages screenshot.',
+ ),
+ fullPage: z
+ .boolean()
+ .optional()
+ .describe(
+ 'If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.',
+ ),
+ },
+ handler: async (request, response, context) => {
+ if (request.params.uid && request.params.fullPage) {
+ throw new Error('Providing both "uid" and "fullPage" is not allowed.');
+ }
+
+ let pageOrHandle: Page | ElementHandle;
+ if (request.params.uid) {
+ pageOrHandle = await context.getElementByUid(request.params.uid);
+ } else {
+ pageOrHandle = context.getSelectedPage();
+ }
+
+ const screenshot = await pageOrHandle.screenshot({
+ type: request.params.format,
+ fullPage: request.params.fullPage,
+ });
+
+ if (request.params.uid) {
+ response.appendResponseLine(
+ `Took a screenshot of node with uid "${request.params.uid}".`,
+ );
+ } else if (request.params.fullPage) {
+ response.appendResponseLine(
+ 'Took a screenshot of the full current page.',
+ );
+ } else {
+ response.appendResponseLine(
+ "Took a screenshot of the current page's viewport.",
+ );
+ }
+
+ if (screenshot.length >= 2_000_000) {
+ const {filename} = await context.saveTemporaryFile(
+ screenshot,
+ `image/${request.params.format}`,
+ );
+ response.appendResponseLine(`Saved screenshot to ${filename}.`);
+ } else {
+ response.attachImage({
+ mimeType: `image/${request.params.format}`,
+ data: Buffer.from(screenshot).toString('base64'),
+ });
+ }
+ },
+});
diff --git a/src/tools/script.ts b/src/tools/script.ts
new file mode 100644
index 00000000..90d726f3
--- /dev/null
+++ b/src/tools/script.ts
@@ -0,0 +1,38 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {ToolCategories} from './categories.js';
+
+export const evaluateScript = defineTool({
+ name: 'evaluate_script',
+ description: `Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON.`,
+ annotations: {
+ category: ToolCategories.DEBUGGING,
+ readOnlyHint: false,
+ },
+ schema: {
+ function: z
+ .string()
+ .describe(
+ 'A JavaScript function to run in the currently selected page. Example: `() => {return document.title}` or `async () => {return await fetch("example.com")}`',
+ ),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getSelectedPage();
+
+ const script = `(async () => {
+ return JSON.stringify(await (${request.params.function})());
+ })()`;
+
+ const result = await page.evaluate(script);
+
+ response.appendResponseLine('Script ran on page and returned:');
+ response.appendResponseLine('```json');
+ response.appendResponseLine(`${result}`);
+ response.appendResponseLine('```');
+ },
+});
diff --git a/src/tools/snapshot.ts b/src/tools/snapshot.ts
new file mode 100644
index 00000000..b5f595ed
--- /dev/null
+++ b/src/tools/snapshot.ts
@@ -0,0 +1,50 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import z from 'zod';
+import {defineTool} from './ToolDefinition.js';
+import {Locator} from 'puppeteer-core';
+import {ToolCategories} from './categories.js';
+
+export const takeSnapshot = defineTool({
+ name: 'take_snapshot',
+ description: `Take a text snapshot of the currently selected page. The snapshot lists page elements along with a unique
+identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot.`,
+ annotations: {
+ category: ToolCategories.DEBUGGING,
+ readOnlyHint: true,
+ },
+ schema: {},
+ handler: async (_request, response) => {
+ response.setIncludeSnapshot(true);
+ },
+});
+
+export const waitFor = defineTool({
+ name: 'wait_for',
+ description: `Wait for the specified text to appear on the selected page.`,
+ annotations: {
+ category: ToolCategories.NAVIGATION_AUTOMATION,
+ readOnlyHint: true,
+ },
+ schema: {
+ text: z.string().describe('Text to appear on the page'),
+ },
+ handler: async (request, response, context) => {
+ const page = context.getSelectedPage();
+
+ await Locator.race([
+ page.locator(`aria/${request.params.text}`),
+ page.locator(`text/${request.params.text}`),
+ ]).wait();
+
+ response.appendResponseLine(
+ `Element with text "${request.params.text}" found.`,
+ );
+
+ response.setIncludeSnapshot(true);
+ },
+});
diff --git a/src/trace-processing/parse.ts b/src/trace-processing/parse.ts
new file mode 100644
index 00000000..e34f51e7
--- /dev/null
+++ b/src/trace-processing/parse.ts
@@ -0,0 +1,99 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {PerformanceInsightFormatter} from '../../node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.js';
+import * as TraceEngine from '../../node_modules/chrome-devtools-frontend/front_end/models/trace/trace.js';
+import {logger} from '../logger.js';
+
+const engine = TraceEngine.TraceModel.Model.createWithAllHandlers();
+
+export interface TraceResult {
+ parsedTrace: TraceEngine.TraceModel.ParsedTrace;
+ insights: TraceEngine.Insights.Types.TraceInsightSets;
+}
+
+export async function parseRawTraceBuffer(
+ buffer: Uint8Array<ArrayBufferLike> | undefined,
+): Promise<TraceResult | null> {
+ engine.resetProcessor();
+ if (!buffer) {
+ return null;
+ }
+ const asString = new TextDecoder().decode(buffer);
+ if (!asString) {
+ return null;
+ }
+ try {
+ const data = JSON.parse(asString) as
+ | {
+ traceEvents: TraceEngine.Types.Events.Event[];
+ }
+ | TraceEngine.Types.Events.Event[];
+
+ const events = Array.isArray(data) ? data : data.traceEvents;
+ await engine.parse(events);
+ const parsedTrace = engine.parsedTrace();
+ if (!parsedTrace) {
+ return null;
+ }
+
+ const insights = parsedTrace?.insights;
+ if (!insights) {
+ return null;
+ }
+
+ return {
+ parsedTrace,
+ insights,
+ };
+ } catch (e) {
+ if (e instanceof Error) {
+ logger(`Error parsing trace: ${e.message}`);
+ } else {
+ logger(`Error parsing trace: ${JSON.stringify(e)}`);
+ }
+ return null;
+ }
+}
+
+// TODO(jactkfranklin): move the formatters from DevTools to use here.
+// This is a very temporary helper to output some text from the tool call to aid development.
+export function insightOutput(result: TraceResult): string {
+ const mainNavigationId =
+ result.parsedTrace.data.Meta.mainFrameNavigations.at(0)?.args.data
+ ?.navigationId;
+ if (!mainNavigationId) {
+ return '';
+ }
+
+ let text = '';
+ const insightsForNav = result.insights.get(mainNavigationId);
+ if (!insightsForNav) {
+ text += 'No Performance insights were found for this trace.';
+ return text;
+ }
+
+ const failingInsightKeys = Object.keys(insightsForNav.model).filter(
+ insightKey => {
+ const key = insightKey as keyof TraceEngine.Insights.Types.InsightModels;
+ const data = insightsForNav.model[key] ?? null;
+ return data?.state === 'fail';
+ },
+ ) as Array<keyof TraceEngine.Insights.Types.InsightModels>;
+ logger(`Found failing Insight keys: ${failingInsightKeys.join(', ')}`);
+
+ for (const failingKey of failingInsightKeys) {
+ const modelData = insightsForNav.model[failingKey];
+ const formatter = new PerformanceInsightFormatter(
+ result.parsedTrace,
+ modelData,
+ );
+
+ const output = formatter.formatInsight();
+ text += `${output}\n`;
+ }
+ return text;
+}
diff --git a/tests/McpResponse.test.ts b/tests/McpResponse.test.ts
new file mode 100644
index 00000000..b3705a40
--- /dev/null
+++ b/tests/McpResponse.test.ts
@@ -0,0 +1,248 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {getMockRequest, html, withBrowser} from './utils.js';
+
+describe('McpResponse', () => {
+ it('list pages', async () => {
+ await withBrowser(async (response, context) => {
+ response.setIncludePages(true);
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.deepStrictEqual(
+ result[0].text,
+ `# test response
+## Pages
+0: about:blank [selected]`,
+ );
+ });
+ });
+
+ it('allows response text lines to be added', async () => {
+ await withBrowser(async (response, context) => {
+ response.appendResponseLine('Testing 1');
+ response.appendResponseLine('Testing 2');
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.deepStrictEqual(
+ result[0].text,
+ `# test response
+Testing 1
+Testing 2`,
+ );
+ });
+ });
+
+ it('does not include anything in response if snapshot is null', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ page.accessibility.snapshot = async () => null;
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.deepStrictEqual(result[0].text, `# test response`);
+ });
+ });
+
+ it('returns correctly formatted snapshot for a simple tree', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html>
+<button>Click me</button><input type="text" value="Input">`);
+ await page.focus('button');
+ response.setIncludeSnapshot(true);
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## Page content
+uid=0 RootWebArea ""
+ uid=1 button "Click me" focusable focused
+ uid=2 textbox "" value="Input"
+`,
+ );
+ });
+ });
+
+ it('returns values for textboxes', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(
+ html`<label
+ >username<input
+ name="username"
+ value="mcp"
+ /></label>`,
+ );
+ await page.focus('input');
+ response.setIncludeSnapshot(true);
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## Page content
+uid=0 RootWebArea "My test page"
+ uid=1 StaticText "username"
+ uid=2 textbox "username" value="mcp" focusable focused
+`,
+ );
+ });
+ });
+
+ it('adds throttling setting when it is not null', async () => {
+ await withBrowser(async (response, context) => {
+ context.setNetworkConditions('Slow 3G');
+ const result = await response.handle('test', context);
+ assert.equal(result[0].type, 'text');
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## Network emulation
+Emulating: Slow 3G`,
+ );
+ });
+ });
+
+ it('does not include throttling setting when it is null', async () => {
+ await withBrowser(async (response, context) => {
+ const result = await response.handle('test', context);
+ context.setNetworkConditions(null);
+ assert.equal(result[0].type, 'text');
+ assert.strictEqual(result[0].text, `# test response`);
+ });
+ });
+ it('adds image when image is attached', async () => {
+ await withBrowser(async (response, context) => {
+ response.attachImage({data: 'imageBase64', mimeType: 'image/png'});
+ const result = await response.handle('test', context);
+ assert.strictEqual(result[0].text, `# test response`);
+ assert.equal(result[1].type, 'image');
+ assert.strictEqual(result[1].data, 'imageBase64');
+ assert.strictEqual(result[1].mimeType, 'image/png');
+ });
+ });
+
+ it('adds cpu throttling setting when it is over 1', async () => {
+ await withBrowser(async (response, context) => {
+ context.setCpuThrottlingRate(4);
+ const result = await response.handle('test', context);
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## CPU emulation
+Emulating: 4x slowdown`,
+ );
+ });
+ });
+
+ it('does not include cpu throttling setting when it is 1', async () => {
+ await withBrowser(async (response, context) => {
+ context.setCpuThrottlingRate(1);
+ const result = await response.handle('test', context);
+ assert.strictEqual(result[0].text, `# test response`);
+ });
+ });
+
+ it('adds a dialog', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ const dialogPromise = new Promise<void>(resolve => {
+ page.on('dialog', () => {
+ resolve();
+ });
+ });
+ page.evaluate(() => {
+ alert('test');
+ });
+ await dialogPromise;
+ const result = await response.handle('test', context);
+ context.getDialog()?.dismiss();
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+# Open dialog
+alert: test (default value: test).
+Call browser_handle_dialog to handle it before continuing.`,
+ );
+ });
+ });
+
+ it('add network requests when setting is true', async () => {
+ await withBrowser(async (response, context) => {
+ response.setIncludeNetworkRequests(true);
+ context.getNetworkRequests = () => {
+ return [getMockRequest()];
+ };
+ const result = await response.handle('test', context);
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## Network requests
+http://example.com GET [pending]`,
+ );
+ });
+ });
+ it('does not include network requests when setting is false', async () => {
+ await withBrowser(async (response, context) => {
+ response.setIncludeNetworkRequests(false);
+ context.getNetworkRequests = () => {
+ return [getMockRequest()];
+ };
+ const result = await response.handle('test', context);
+ assert.strictEqual(result[0].text, `# test response`);
+ });
+ });
+
+ it('add network request when attached', async () => {
+ await withBrowser(async (response, context) => {
+ response.setIncludeNetworkRequests(true);
+ const request = getMockRequest();
+ context.getNetworkRequests = () => {
+ return [request];
+ };
+ response.attachNetworkRequest(request.url());
+ const result = await response.handle('test', context);
+ assert.strictEqual(
+ result[0].text,
+ `# test response
+## Request http://example.com
+Status: [pending]
+### Request Headers
+- content-size:10
+## Network requests
+http://example.com GET [pending]`,
+ );
+ });
+ });
+
+ it('adds console messages when the setting is true', async () => {
+ await withBrowser(async (response, context) => {
+ response.setIncludeConsoleData(true);
+ const page = context.getSelectedPage();
+ const consoleMessagePromise = new Promise<void>(resolve => {
+ page.on('console', () => {
+ resolve();
+ });
+ });
+ page.evaluate(() => {
+ console.log('Hello from the test');
+ });
+ await consoleMessagePromise;
+ const result = await response.handle('test', context);
+ assert.ok(result[0].text);
+ // Cannot check the full text because it contains local file path
+ assert.ok(
+ result[0].text.toString().startsWith(`# test response
+## Console messages
+Log>`),
+ );
+ assert.ok(result[0].text.toString().includes('Hello from the test'));
+ });
+ });
+});
diff --git a/tests/PageCollector.test.ts b/tests/PageCollector.test.ts
new file mode 100644
index 00000000..e2687fb4
--- /dev/null
+++ b/tests/PageCollector.test.ts
@@ -0,0 +1,111 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+import {Browser, Frame, Page, PageEvents} from 'puppeteer-core';
+import {PageCollector} from '../src/PageCollector.js';
+import {getMockRequest} from './utils.js';
+
+function getMockPage(): Page {
+ const listeners: Record<keyof PageEvents, (data: unknown) => void> = {};
+ const mainFrame = {} as Frame;
+ return {
+ on(eventName, listener) {
+ listeners[eventName] = listener;
+ },
+ emit(eventName, data) {
+ listeners[eventName]?.(data);
+ },
+ mainFrame() {
+ return mainFrame;
+ },
+ } as Page;
+}
+
+function getMockBrowser(): Browser {
+ const pages = [getMockPage()];
+ return {
+ pages() {
+ return Promise.resolve(pages);
+ },
+ on(_type, _handler) {},
+ } as Browser;
+}
+
+describe('PageCollector', () => {
+ it('works', async () => {
+ const browser = getMockBrowser();
+ const page = (await browser.pages())[0];
+ const request = getMockRequest();
+ const collector = new PageCollector(browser, (page, collect) => {
+ page.on('request', req => {
+ collect(req);
+ });
+ });
+ await collector.init();
+ page.emit('request', request);
+
+ assert.equal(collector.getData(page)[0], request);
+ });
+
+ it('clean up after navigation', async () => {
+ const browser = getMockBrowser();
+ const page = (await browser.pages())[0];
+ const mainFrame = page.mainFrame();
+ const request = getMockRequest();
+ const collector = new PageCollector(browser, (page, collect) => {
+ page.on('request', req => {
+ collect(req);
+ });
+ });
+ await collector.init();
+ page.emit('request', request);
+
+ assert.equal(collector.getData(page)[0], request);
+ page.emit('framenavigated', mainFrame);
+
+ assert.equal(collector.getData(page).length, 0);
+ });
+
+ it('does not clean up after sub frame navigation', async () => {
+ const browser = getMockBrowser();
+ const page = (await browser.pages())[0];
+ const request = getMockRequest();
+ const collector = new PageCollector(browser, (page, collect) => {
+ page.on('request', req => {
+ collect(req);
+ });
+ });
+ await collector.init();
+ page.emit('request', request);
+ page.emit('framenavigated', {} as Frame);
+
+ assert.equal(collector.getData(page).length, 1);
+ });
+
+ it('clean up after navigation and be able to add data after', async () => {
+ const browser = getMockBrowser();
+ const page = (await browser.pages())[0];
+ const mainFrame = page.mainFrame();
+ const request = getMockRequest();
+ const collector = new PageCollector(browser, (page, collect) => {
+ page.on('request', req => {
+ collect(req);
+ });
+ });
+ await collector.init();
+ page.emit('request', request);
+
+ assert.equal(collector.getData(page)[0], request);
+ page.emit('framenavigated', mainFrame);
+
+ assert.equal(collector.getData(page).length, 0);
+
+ page.emit('request', request);
+
+ assert.equal(collector.getData(page).length, 1);
+ });
+});
diff --git a/tests/formatters/consoleFormatter.test.ts b/tests/formatters/consoleFormatter.test.ts
new file mode 100644
index 00000000..681772ca
--- /dev/null
+++ b/tests/formatters/consoleFormatter.test.ts
@@ -0,0 +1,212 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {describe, it} from 'node:test';
+import assert from 'assert';
+import {formatConsoleEvent} from '../../src/formatters/consoleFormatter.js';
+import {ConsoleMessage} from 'puppeteer-core';
+
+function getMockConsoleMessage(options: {
+ type: string;
+ text: string;
+ location?: {
+ url?: string;
+ lineNumber?: number;
+ columnNumber?: number;
+ };
+ stackTrace?: Array<{
+ url: string;
+ lineNumber: number;
+ columnNumber: number;
+ }>;
+ args?: unknown[];
+}): ConsoleMessage {
+ return {
+ type() {
+ return options.type;
+ },
+ text() {
+ return options.text;
+ },
+ location() {
+ return options.location ?? {};
+ },
+ stackTrace() {
+ return options.stackTrace ?? [];
+ },
+ args() {
+ return (
+ options.args?.map(arg => {
+ return {
+ evaluate(fn: (arg: unknown) => unknown) {
+ return Promise.resolve(fn(arg));
+ },
+ jsonValue() {
+ return Promise.resolve(arg);
+ },
+ dispose() {
+ return Promise.resolve();
+ },
+ };
+ }) ?? []
+ );
+ },
+ } as ConsoleMessage;
+}
+
+describe('consoleFormatter', () => {
+ describe('formatConsoleEvent', () => {
+ it('formats a console.log message', async () => {
+ const message = getMockConsoleMessage({
+ type: 'log',
+ text: 'Hello, world!',
+ location: {
+ url: 'http://example.com/script.js',
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ });
+ const result = await formatConsoleEvent(message as ConsoleMessage);
+ assert.equal(result, 'Log> script.js:10:5: Hello, world!');
+ });
+
+ it('formats a console.log message with arguments', async () => {
+ const message = getMockConsoleMessage({
+ type: 'log',
+ text: 'Processing file:',
+ args: ['file.txt', {id: 1, status: 'done'}],
+ location: {
+ url: 'http://example.com/script.js',
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ });
+ const result = await formatConsoleEvent(message as ConsoleMessage);
+ assert.equal(
+ result,
+ 'Log> script.js:10:5: Processing file: file.txt {"id":1,"status":"done"}',
+ );
+ });
+
+ it('formats a console.error message', async () => {
+ const message = getMockConsoleMessage({
+ type: 'error',
+ text: 'Something went wrong',
+ });
+ const result = await formatConsoleEvent(message);
+ assert.equal(result, 'Error> Something went wrong');
+ });
+
+ it('formats a console.error message with arguments', async () => {
+ const message = getMockConsoleMessage({
+ type: 'error',
+ text: 'Something went wrong:',
+ args: ['details', {code: 500}],
+ });
+ const result = await formatConsoleEvent(message);
+ assert.equal(result, 'Error> Something went wrong: details {"code":500}');
+ });
+
+ it('formats a console.error message with a stack trace', async () => {
+ const message = getMockConsoleMessage({
+ type: 'error',
+ text: 'Something went wrong',
+ stackTrace: [
+ {
+ url: 'http://example.com/script.js',
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ {
+ url: 'http://example.com/script2.js',
+ lineNumber: 20,
+ columnNumber: 10,
+ },
+ ],
+ });
+ const result = await formatConsoleEvent(message);
+ assert.equal(
+ result,
+ 'Error> Something went wrong\nscript.js:10:5\nscript2.js:20:10',
+ );
+ });
+
+ it('formats a console.error message with a JSHandle@error', async () => {
+ const message = getMockConsoleMessage({
+ type: 'error',
+ text: 'JSHandle@error',
+ args: [new Error('mock stack')],
+ });
+ const result = await formatConsoleEvent(message);
+ assert.ok(result.startsWith('Error> Error: mock stack'));
+ });
+
+ it('formats a console.warn message', async () => {
+ const message = getMockConsoleMessage({
+ type: 'warning',
+ text: 'This is a warning',
+ location: {
+ url: 'http://example.com/script.js',
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ });
+ const result = await formatConsoleEvent(message);
+ assert.equal(result, 'Warning> script.js:10:5: This is a warning');
+ });
+
+ it('formats a console.info message', async () => {
+ const message = getMockConsoleMessage({
+ type: 'info',
+ text: 'This is an info message',
+ location: {
+ url: 'http://example.com/script.js',
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ });
+ const result = await formatConsoleEvent(message);
+ assert.equal(result, 'Info> script.js:10:5: This is an info message');
+ });
+
+ it('formats a page error', async () => {
+ const error = new Error('Page crashed');
+ error.stack = 'Error: Page crashed\n at <anonymous>:1:1';
+ const result = await formatConsoleEvent(error);
+ assert.equal(result, 'Error: Page crashed');
+ });
+
+ it('formats a page error without a stack', async () => {
+ const error = new Error('Page crashed');
+ error.stack = undefined;
+ const result = await formatConsoleEvent(error);
+ assert.equal(result, 'Error: Page crashed');
+ });
+
+ it('formats a console.log message from a removed iframe - no location', async () => {
+ const message = getMockConsoleMessage({
+ type: 'log',
+ text: 'Hello from iframe',
+ location: {},
+ });
+ const result = await formatConsoleEvent(message as ConsoleMessage);
+ assert.equal(result, 'Log> <unknown>: Hello from iframe');
+ });
+
+ it('formats a console.log message from a removed iframe with partial location', async () => {
+ const message = getMockConsoleMessage({
+ type: 'log',
+ text: 'Hello from iframe',
+ location: {
+ lineNumber: 10,
+ columnNumber: 5,
+ },
+ });
+ const result = await formatConsoleEvent(message as ConsoleMessage);
+ assert.equal(result, 'Log> <unknown>: Hello from iframe');
+ });
+ });
+});
diff --git a/tests/formatters/networkFormatter.test.ts b/tests/formatters/networkFormatter.test.ts
new file mode 100644
index 00000000..39c87012
--- /dev/null
+++ b/tests/formatters/networkFormatter.test.ts
@@ -0,0 +1,102 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {describe, it} from 'node:test';
+import assert from 'assert';
+import {getMockRequest, getMockResponse} from '../utils.js';
+import {
+ getFormattedHeaderValue,
+ getShortDescriptionForRequest,
+} from '../../src/formatters/networkFormatter.js';
+
+describe('networkFormatter', () => {
+ describe('getShortDescriptionForRequest', () => {
+ it('works', async () => {
+ const request = getMockRequest();
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(result, 'http://example.com GET [pending]');
+ });
+ it('shows correct method', async () => {
+ const request = getMockRequest({method: 'POST'});
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(result, 'http://example.com POST [pending]');
+ });
+ it('shows correct status for request with response code in 200', async () => {
+ const response = getMockResponse();
+ const request = getMockRequest({response});
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(result, 'http://example.com GET [success - 200]');
+ });
+
+ it('shows correct status for request with response code in 100', async () => {
+ const response = getMockResponse({
+ status: 199,
+ });
+ const request = getMockRequest({response});
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(result, 'http://example.com GET [failed - 199]');
+ });
+ it('shows correct status for request with response code above 200', async () => {
+ const response = getMockResponse({
+ status: 300,
+ });
+ const request = getMockRequest({response});
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(result, 'http://example.com GET [failed - 300]');
+ });
+
+ it('shows correct status for request that failed', async () => {
+ const request = getMockRequest({
+ failure() {
+ return {
+ errorText: 'Error in Network',
+ };
+ },
+ });
+ const result = getShortDescriptionForRequest(request);
+
+ assert.equal(
+ result,
+ 'http://example.com GET [failed - Error in Network]',
+ );
+ });
+ });
+
+ describe('getFormattedHeaderValue', () => {
+ it('works', () => {
+ const result = getFormattedHeaderValue({
+ key: 'value',
+ });
+
+ assert.deepEqual(result, ['- key:value']);
+ });
+ it('with multiple', () => {
+ const result = getFormattedHeaderValue({
+ key: 'value',
+ key2: 'value2',
+ key3: 'value3',
+ key4: 'value4',
+ });
+
+ assert.deepEqual(result, [
+ '- key:value',
+ '- key2:value2',
+ '- key3:value3',
+ '- key4:value4',
+ ]);
+ });
+ it('with non', () => {
+ const result = getFormattedHeaderValue({});
+
+ assert.deepEqual(result, []);
+ });
+ });
+});
diff --git a/tests/formatters/snapshotFormatter.test.ts b/tests/formatters/snapshotFormatter.test.ts
new file mode 100644
index 00000000..57c07cb8
--- /dev/null
+++ b/tests/formatters/snapshotFormatter.test.ts
@@ -0,0 +1,149 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import {formatA11ySnapshot} from '../../src/formatters/snapshotFormatter.js';
+import assert from 'node:assert';
+import {describe, it} from 'node:test';
+import type {TextSnapshotNode} from '../../src/McpContext.js';
+import type {ElementHandle} from 'puppeteer-core';
+
+describe('snapshotFormatter', () => {
+ it('formats a snapshot with value properties', () => {
+ const snapshot: TextSnapshotNode = {
+ id: 1,
+ role: 'textbox',
+ name: 'textbox',
+ value: 'value',
+ children: [
+ {
+ id: 2,
+ role: 'statictext',
+ name: 'text',
+ children: [],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ },
+ ],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ };
+
+ const formatted = formatA11ySnapshot(snapshot);
+ assert.strictEqual(
+ formatted,
+ `uid=1 textbox "textbox" value="value"
+ uid=2 statictext "text"
+`,
+ );
+ });
+
+ it('formats a snapshot with boolean properties', () => {
+ const snapshot: TextSnapshotNode = {
+ id: 1,
+ role: 'button',
+ name: 'button',
+ disabled: true,
+ children: [
+ {
+ id: 2,
+ role: 'statictext',
+ name: 'text',
+ children: [],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ },
+ ],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ };
+
+ const formatted = formatA11ySnapshot(snapshot);
+ assert.strictEqual(
+ formatted,
+ `uid=1 button "button" disableable disabled
+ uid=2 statictext "text"
+`,
+ );
+ });
+
+ it('formats a snapshot with checked properties', () => {
+ const snapshot: TextSnapshotNode = {
+ id: 1,
+ role: 'checkbox',
+ name: 'checkbox',
+ checked: true,
+ children: [
+ {
+ id: 2,
+ role: 'statictext',
+ name: 'text',
+ children: [],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ },
+ ],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ };
+
+ const formatted = formatA11ySnapshot(snapshot);
+ assert.strictEqual(
+ formatted,
+ `uid=1 checkbox "checkbox" checked checked="true"
+ uid=2 statictext "text"
+`,
+ );
+ });
+
+ it('formats a snapshot with multiple different type attributes', () => {
+ const snapshot: TextSnapshotNode = {
+ id: 1,
+ role: 'root',
+ name: 'root',
+ children: [
+ {
+ id: 2,
+ role: 'button',
+ name: 'button',
+ focused: true,
+ disabled: true,
+ children: [],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ },
+ {
+ id: 3,
+ role: 'textbox',
+ name: 'textbox',
+ value: 'value',
+ children: [],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ },
+ ],
+ elementHandle: async (): Promise<ElementHandle<Element> | null> => {
+ return null;
+ },
+ };
+
+ const formatted = formatA11ySnapshot(snapshot);
+ assert.strictEqual(
+ formatted,
+ `uid=1 root "root"
+ uid=2 button "button" disableable disabled focusable focused
+ uid=3 textbox "textbox" value="value"
+`,
+ );
+ });
+});
diff --git a/tests/index.test.ts b/tests/index.test.ts
new file mode 100644
index 00000000..6aec3a2f
--- /dev/null
+++ b/tests/index.test.ts
@@ -0,0 +1,95 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {Client} from '@modelcontextprotocol/sdk/client/index.js';
+import {StdioClientTransport} from '@modelcontextprotocol/sdk/client/stdio.js';
+import {describe, it} from 'node:test';
+import assert from 'node:assert';
+import fs from 'node:fs';
+import {ToolDefinition} from '../src/tools/ToolDefinition.js';
+
+describe('e2e', () => {
+ async function withClient(cb: (client: Client) => Promise<void>) {
+ const transport = new StdioClientTransport({
+ command: 'node',
+ args: ['build/src/index.js', '--headless', '--isolated'],
+ });
+ const client = new Client(
+ {
+ name: 'e2e-test',
+ version: '1.0.0',
+ },
+ {
+ capabilities: {},
+ },
+ );
+
+ try {
+ await client.connect(transport);
+ await cb(client);
+ } finally {
+ await client.close();
+ }
+ }
+ it('calls a tool', async () => {
+ await withClient(async client => {
+ const result = await client.callTool({
+ name: 'list_pages',
+ arguments: {},
+ });
+ assert.deepStrictEqual(result, {
+ content: [
+ {
+ type: 'text',
+ text: '# list_pages response\n## Pages\n0: about:blank [selected]',
+ },
+ ],
+ });
+ });
+ });
+
+ it('calls a tool multiple times', async () => {
+ await withClient(async client => {
+ let result = await client.callTool({
+ name: 'list_pages',
+ arguments: {},
+ });
+ result = await client.callTool({
+ name: 'list_pages',
+ arguments: {},
+ });
+ assert.deepStrictEqual(result, {
+ content: [
+ {
+ type: 'text',
+ text: '# list_pages response\n## Pages\n0: about:blank [selected]',
+ },
+ ],
+ });
+ });
+ });
+
+ it('has all tools', async () => {
+ await withClient(async client => {
+ const {tools} = await client.listTools();
+ const exposedNames = tools.map(t => t.name).sort();
+ const files = fs.readdirSync('build/src/tools');
+ const definedNames = [];
+ for (const file of files) {
+ if (file === 'ToolDefinition.js') {
+ continue;
+ }
+ const fileTools = await import(`../src/tools/${file}`);
+ for (const maybeTool of Object.values(fileTools) as ToolDefinition[]) {
+ if ('name' in maybeTool) {
+ definedNames.push(maybeTool.name);
+ }
+ }
+ }
+ definedNames.sort();
+ assert.deepStrictEqual(exposedNames, definedNames);
+ });
+ });
+});
diff --git a/tests/server.ts b/tests/server.ts
new file mode 100644
index 00000000..2ad80a60
--- /dev/null
+++ b/tests/server.ts
@@ -0,0 +1,120 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {before, after, afterEach} from 'node:test';
+import http, {
+ type IncomingMessage,
+ type Server,
+ type ServerResponse,
+} from 'http';
+import {html} from './utils.js';
+
+class TestServer {
+ #port: number;
+ #server: Server;
+
+ static randomPort() {
+ /**
+ * Some ports are restricted by Chromium and will fail to connect
+ * to prevent we start after the
+ *
+ * https://source.chromium.org/chromium/chromium/src/+/main:net/base/port_util.cc;l=107?q=kRestrictedPorts&ss=chromium
+ */
+ const min = 10101;
+ const max = 20202;
+ return Math.floor(Math.random() * (max - min + 1) + min);
+ }
+
+ #routes: Record<string, (req: IncomingMessage, res: ServerResponse) => void> =
+ {};
+
+ constructor(port: number) {
+ this.#port = port;
+ this.#server = http.createServer((req, res) => this.#handle(req, res));
+ }
+
+ get baseUrl(): string {
+ return `http://localhost:${this.#port}`;
+ }
+
+ getRoute(path: string) {
+ if (!this.#routes[path]) {
+ throw new Error(`Route ${path} was not setup.`);
+ }
+ return `${this.baseUrl}${path}`;
+ }
+
+ addHtmlRoute(path: string, htmlContent: string) {
+ if (this.#routes[path]) {
+ throw new Error(`Route ${path} was already setup.`);
+ }
+ this.#routes[path] = (_req: IncomingMessage, res: ServerResponse) => {
+ res.setHeader('Content-Type', 'text/html; charset=utf-8');
+ res.statusCode = 200;
+ res.end(htmlContent);
+ };
+ }
+
+ addRoute(
+ path: string,
+ handler: (req: IncomingMessage, res: ServerResponse) => void,
+ ) {
+ if (this.#routes[path]) {
+ throw new Error(`Route ${path} was already setup.`);
+ }
+ this.#routes[path] = handler;
+ }
+
+ #handle(req: IncomingMessage, res: ServerResponse) {
+ const url = req.url ?? '';
+ const routeHandler = this.#routes[url];
+
+ if (routeHandler) {
+ routeHandler(req, res);
+ } else {
+ res.writeHead(404, {'Content-Type': 'text/html'});
+ res.end(
+ html`<h1>404 - Not Found</h1><p>The requested page does not exist.</p>`,
+ );
+ }
+ }
+
+ restore() {
+ this.#routes = {};
+ }
+
+ start(): Promise<void> {
+ return new Promise(res => {
+ this.#server.listen(this.#port, res);
+ });
+ }
+
+ stop(): Promise<void> {
+ return new Promise((res, rej) => {
+ this.#server.close(err => {
+ if (err) {
+ rej(err);
+ } else {
+ res();
+ }
+ });
+ });
+ }
+}
+
+export function serverHooks() {
+ const server = new TestServer(TestServer.randomPort());
+ before(async () => {
+ await server.start();
+ });
+ after(async () => {
+ await server.stop();
+ });
+ afterEach(() => {
+ server.restore();
+ });
+
+ return server;
+}
diff --git a/tests/snapshot.ts b/tests/snapshot.ts
new file mode 100644
index 00000000..c10cc2f9
--- /dev/null
+++ b/tests/snapshot.ts
@@ -0,0 +1,21 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+interface ScreenshotData {
+ html: string;
+}
+
+export const screenshots: Record<string, ScreenshotData> = {
+ basic: {
+ html: '<div>Hello MCP</div>',
+ },
+ viewportOverflow: {
+ html: '<div style="height: 120vh; background-color: rebeccapurple;">View Port overflow</div>',
+ },
+ button: {
+ html: '<button>I am button click me</button>',
+ },
+};
diff --git a/tests/tools/console.test.ts b/tests/tools/console.test.ts
new file mode 100644
index 00000000..757b4d72
--- /dev/null
+++ b/tests/tools/console.test.ts
@@ -0,0 +1,21 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {withBrowser} from '../utils.js';
+import {consoleTool} from '../../src/tools/console.js';
+
+describe('console', () => {
+ describe('list_console_messages', () => {
+ it('list messages', async () => {
+ await withBrowser(async (response, context) => {
+ await consoleTool.handler({params: {}}, response, context);
+ assert.ok(response.includeConsoleData);
+ });
+ });
+ });
+});
diff --git a/tests/tools/emulation.test.ts b/tests/tools/emulation.test.ts
new file mode 100644
index 00000000..411c2ce1
--- /dev/null
+++ b/tests/tools/emulation.test.ts
@@ -0,0 +1,96 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'node:assert';
+import {emulateCpu, emulateNetwork} from '../../src/tools/emulation.js';
+import {withBrowser} from '../utils.js';
+
+describe('emulation', () => {
+ describe('network', () => {
+ it('emulates network throttling when the throttling option is valid ', async () => {
+ await withBrowser(async (response, context) => {
+ await emulateNetwork.handler(
+ {
+ params: {
+ throttlingOption: 'Slow 3G',
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.strictEqual(context.getNetworkConditions(), 'Slow 3G');
+ });
+ });
+
+ it('disables network emulation', async () => {
+ await withBrowser(async (response, context) => {
+ await emulateNetwork.handler(
+ {
+ params: {
+ throttlingOption: 'No emulation',
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.strictEqual(context.getNetworkConditions(), null);
+ });
+ });
+
+ it('does not set throttling when the network throttling is not one of the predefined options', async () => {
+ await withBrowser(async (response, context) => {
+ await emulateNetwork.handler(
+ {
+ params: {
+ throttlingOption: 'Slow 11G',
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.strictEqual(context.getNetworkConditions(), null);
+ });
+ });
+ });
+
+ describe('cpu', () => {
+ it('emulates cpu throttling when the rate is valid (1-20x)', async () => {
+ await withBrowser(async (response, context) => {
+ await emulateCpu.handler(
+ {
+ params: {
+ throttlingRate: 4,
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.strictEqual(context.getCpuThrottlingRate(), 4);
+ });
+ });
+
+ it('disables cpu throttling', async () => {
+ await withBrowser(async (response, context) => {
+ context.setCpuThrottlingRate(4); // Set it to something first.
+ await emulateCpu.handler(
+ {
+ params: {
+ throttlingRate: 1,
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.strictEqual(context.getCpuThrottlingRate(), 1);
+ });
+ });
+ });
+});
diff --git a/tests/tools/input.test.ts b/tests/tools/input.test.ts
new file mode 100644
index 00000000..99322cff
--- /dev/null
+++ b/tests/tools/input.test.ts
@@ -0,0 +1,408 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+import fs from 'fs/promises';
+import path from 'path';
+
+import {
+ click,
+ hover,
+ fill,
+ drag,
+ fillForm,
+ uploadFile,
+} from '../../src/tools/input.js';
+
+import {html, withBrowser} from '../utils.js';
+import {serverHooks} from '../server.js';
+
+describe('input', () => {
+ const server = serverHooks();
+
+ describe('click', () => {
+ it('clicks', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(
+ `<!DOCTYPE html><button onclick="this.innerText = 'clicked';">test`,
+ );
+ await context.createTextSnapshot();
+ await click.handler(
+ {
+ params: {
+ uid: 1,
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully clicked on the element',
+ );
+ assert.ok(response.includeSnapshot);
+ assert.ok(await page.$('text/clicked'));
+ });
+ });
+ it('double clicks', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(
+ `<!DOCTYPE html><button ondblclick="this.innerText = 'dblclicked';">test`,
+ );
+ await context.createTextSnapshot();
+ await click.handler(
+ {
+ params: {
+ uid: 1,
+ dblClick: true,
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully double clicked on the element',
+ );
+ assert.ok(response.includeSnapshot);
+ assert.ok(await page.$('text/dblclicked'));
+ });
+ });
+ it('waits for navigation', async () => {
+ const resolveNavigation = Promise.withResolvers<void>();
+ server.addHtmlRoute(
+ '/link',
+ html`<a href="/navigated">Navigate page</a>`,
+ );
+ server.addRoute('/navigated', async (_req, res) => {
+ await resolveNavigation.promise;
+ res.write(html`<main>I was navigated</main>`);
+ res.end();
+ });
+
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.goto(server.getRoute('/link'));
+ await context.createTextSnapshot();
+ const clickPromise = click.handler(
+ {
+ params: {
+ uid: 1,
+ },
+ },
+ response,
+ context,
+ );
+ const [t1, t2] = await Promise.all([
+ clickPromise.then(() => Date.now()),
+ new Promise<number>(res => {
+ setTimeout(() => {
+ resolveNavigation.resolve();
+ res(Date.now());
+ }, 300);
+ }),
+ ]);
+
+ assert(t1 > t2, 'Waited for navigation');
+ });
+ });
+
+ it.only('waits for stable DOM', async () => {
+ server.addHtmlRoute(
+ '/unstable',
+ html`
+ <button>Click to change to see time</button>
+ <script>
+ const button = document.querySelector('button');
+ button.addEventListener('click', () => {
+ setTimeout(() => {
+ button.textContent = Date.now();
+ }, 50);
+ });
+ </script>
+ `,
+ );
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.goto(server.getRoute('/unstable'));
+ await context.createTextSnapshot();
+ const handlerResolveTime = await click
+ .handler(
+ {
+ params: {
+ uid: 1,
+ },
+ },
+ response,
+ context,
+ )
+ .then(() => Date.now());
+ const buttonChangeTime = await page.evaluate(() => {
+ const button = document.querySelector('button');
+ return Number(button?.textContent);
+ });
+
+ console.log(handlerResolveTime, buttonChangeTime);
+
+ assert(handlerResolveTime > buttonChangeTime, 'Waited for navigation');
+ });
+ });
+ });
+
+ describe('hover', () => {
+ it('hovers', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(
+ `<!DOCTYPE html><button onmouseover="this.innerText = 'hovered';">test`,
+ );
+ await context.createTextSnapshot();
+ await hover.handler(
+ {
+ params: {
+ uid: 1,
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully hovered over the element',
+ );
+ assert.ok(response.includeSnapshot);
+ assert.ok(await page.$('text/hovered'));
+ });
+ });
+ });
+
+ describe('fill', () => {
+ it('fills out an input', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html><input>`);
+ await context.createTextSnapshot();
+ await fill.handler(
+ {
+ params: {
+ uid: 1,
+ value: 'test',
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully filled out the element',
+ );
+ assert.ok(response.includeSnapshot);
+ assert.ok(await page.$('text/test'));
+ });
+ });
+ });
+
+ describe('drags', () => {
+ it('drags one element onto another', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html>
+<div role="button" id="drag" draggable="true">drag me</div>
+<div id="drop" aria-label="drop"
+ style="width: 100px; height: 100px; border: 1px solid black;" ondrop="this.innerText = 'dropped';">
+</div>
+<script>
+ drag.addEventListener("dragstart", (event) => {
+ event.dataTransfer.setData("text/plain", event.target.id);
+ });
+ drop.addEventListener("dragover", (event) => {
+ event.preventDefault();
+ event.dataTransfer.dropEffect = "move";
+ });
+ drop.addEventListener("drop", (event) => {
+ event.preventDefault();
+ const data = event.dataTransfer.getData("text/plain");
+ event.target.appendChild(document.getElementById(data));
+ });
+</script>`);
+ await context.createTextSnapshot();
+ await drag.handler(
+ {
+ params: {
+ from_uid: 1,
+ to_uid: 2,
+ },
+ },
+ response,
+ context,
+ );
+ assert.ok(response.includeSnapshot);
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully dragged an element',
+ );
+ assert.ok(await page.$('text/dropped'));
+ });
+ });
+ });
+
+ describe('fill form', () => {
+ it('successfully fills out the form', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html>
+<form>
+ <label>username<input name=username type="text"/></label>
+ <label>email<input name=email type="text"/></label>
+ <input type=submit value="Submit">
+</form>`);
+ await context.createTextSnapshot();
+ await fillForm.handler(
+ {
+ params: {
+ elements: [
+ {
+ uid: 2,
+ value: 'test',
+ },
+ {
+ uid: 4,
+ value: 'test2',
+ },
+ ],
+ },
+ },
+ response,
+ context,
+ );
+ assert.ok(response.includeSnapshot);
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully filled out the form',
+ );
+ assert.deepStrictEqual(
+ await page.evaluate(() => {
+ return [
+ // @ts-expect-error missing types
+ document.querySelector('input[name=username]').value,
+ // @ts-expect-error missing types
+ document.querySelector('input[name=email]').value,
+ ];
+ }),
+ ['test', 'test2'],
+ );
+ });
+ });
+ });
+
+ describe('uploadFile', () => {
+ it('uploads a file to a file input', async () => {
+ const testFilePath = path.join(process.cwd(), 'test.txt');
+ await fs.writeFile(testFilePath, 'test file content');
+
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html>
+<form>
+ <input type="file" id="file-input">
+</form>`);
+ await context.createTextSnapshot();
+ await uploadFile.handler(
+ {
+ params: {
+ uid: 1,
+ filePath: testFilePath,
+ },
+ },
+ response,
+ context,
+ );
+ assert.ok(response.includeSnapshot);
+ assert.strictEqual(
+ response.responseLines[0],
+ `File uploaded from ${testFilePath}.`,
+ );
+ });
+
+ await fs.unlink(testFilePath);
+ });
+
+ it('uploads a file when clicking an element opens a file uploader', async () => {
+ const testFilePath = path.join(process.cwd(), 'test.txt');
+ await fs.writeFile(testFilePath, 'test file content');
+
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html>
+<button id="file-chooser-button">Upload file</button>
+<input type="file" id="file-input" style="display: none;">
+<script>
+ document.getElementById('file-chooser-button').addEventListener('click', () => {
+ document.getElementById('file-input').click();
+ });
+</script>`);
+ await context.createTextSnapshot();
+ await uploadFile.handler(
+ {
+ params: {
+ uid: 1,
+ filePath: testFilePath,
+ },
+ },
+ response,
+ context,
+ );
+ assert.ok(response.includeSnapshot);
+ assert.strictEqual(
+ response.responseLines[0],
+ `File uploaded from ${testFilePath}.`,
+ );
+ const uploadedFileName = await page.$eval('#file-input', el => {
+ const input = el as HTMLInputElement;
+ return input.files?.[0]?.name;
+ });
+ assert.strictEqual(uploadedFileName, 'test.txt');
+
+ await fs.unlink(testFilePath);
+ });
+ });
+
+ it('throws an error if the element is not a file input and does not open a file chooser', async () => {
+ const testFilePath = path.join(process.cwd(), 'test.txt');
+ await fs.writeFile(testFilePath, 'test file content');
+
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(`<!DOCTYPE html><div>Not a file input</div>`);
+ await context.createTextSnapshot();
+
+ await assert.rejects(
+ uploadFile.handler(
+ {
+ params: {
+ uid: 1,
+ filePath: testFilePath,
+ },
+ },
+ response,
+ context,
+ ),
+ {
+ message:
+ 'Failed to upload file. The element could not accept the file directly, and clicking it did not trigger a file chooser.',
+ },
+ );
+
+ assert.strictEqual(response.responseLines.length, 0);
+ assert.strictEqual(response.includeSnapshot, false);
+
+ await fs.unlink(testFilePath);
+ });
+ });
+ });
+});
diff --git a/tests/tools/network.test.ts b/tests/tools/network.test.ts
new file mode 100644
index 00000000..a563d051
--- /dev/null
+++ b/tests/tools/network.test.ts
@@ -0,0 +1,41 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {withBrowser} from '../utils.js';
+import {
+ getNetworkRequest,
+ listNetworkRequests,
+} from '../../src/tools/network.js';
+
+describe('network', () => {
+ describe('network_list_requests', () => {
+ it('list requests', async () => {
+ await withBrowser(async (response, context) => {
+ await listNetworkRequests.handler({params: {}}, response, context);
+ assert.ok(response.includeNetworkRequests);
+ });
+ });
+ });
+ describe('network_get_request', () => {
+ it('attaches request', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.getSelectedPage();
+ await page.goto('data:text/html,<div>Hello MCP</div>');
+ await getNetworkRequest.handler(
+ {params: {url: 'data:text/html,<div>Hello MCP</div>'}},
+ response,
+ context,
+ );
+ assert.equal(
+ response.attachedNetworkRequestUrl,
+ 'data:text/html,<div>Hello MCP</div>',
+ );
+ });
+ });
+ });
+});
diff --git a/tests/tools/pages.test.ts b/tests/tools/pages.test.ts
new file mode 100644
index 00000000..66985a50
--- /dev/null
+++ b/tests/tools/pages.test.ts
@@ -0,0 +1,258 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {
+ listPages,
+ newPage,
+ closePage,
+ selectPage,
+ navigatePage,
+ navigatePageHistory,
+ resizePage,
+ handleDialog,
+} from '../../src/tools/pages.js';
+
+import {withBrowser} from '../utils.js';
+
+describe('pages', () => {
+ describe('list_pages', () => {
+ it('list pages', async () => {
+ await withBrowser(async (response, context) => {
+ await listPages.handler({params: {}}, response, context);
+ assert.ok(response.includePages);
+ });
+ });
+ });
+ describe('browser_new_page', () => {
+ it('create a page', async () => {
+ await withBrowser(async (response, context) => {
+ assert.strictEqual(context.getSelectedPageIdx(), 0);
+ await newPage.handler(
+ {params: {url: 'about:blank'}},
+ response,
+ context,
+ );
+ assert.strictEqual(context.getSelectedPageIdx(), 1);
+ assert.ok(response.includePages);
+ });
+ });
+ });
+ describe('browser_close_page', () => {
+ it('closes a page', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.newPage();
+ assert.strictEqual(context.getSelectedPageIdx(), 1);
+ assert.strictEqual(context.getPageByIdx(1), page);
+ await closePage.handler({params: {pageIdx: 1}}, response, context);
+ assert.ok(page.isClosed());
+ assert.ok(response.includePages);
+ });
+ });
+ });
+ describe('browser_select_page', () => {
+ it('selects a page', async () => {
+ await withBrowser(async (response, context) => {
+ await context.newPage();
+ assert.strictEqual(context.getSelectedPageIdx(), 1);
+ await selectPage.handler({params: {pageIdx: 0}}, response, context);
+ assert.strictEqual(context.getSelectedPageIdx(), 0);
+ assert.ok(response.includePages);
+ });
+ });
+ });
+ describe('browser_navigate_page', () => {
+ it('navigates to correct page', async () => {
+ await withBrowser(async (response, context) => {
+ await navigatePage.handler(
+ {params: {url: 'data:text/html,<div>Hello MCP</div>'}},
+ response,
+ context,
+ );
+ const page = context.getSelectedPage();
+ assert.equal(
+ await page.evaluate(() => document.querySelector('div')?.textContent),
+ 'Hello MCP',
+ );
+ assert.ok(response.includePages);
+ });
+ });
+
+ it('throws an error if the page was closed not by the MCP server', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.newPage();
+ assert.strictEqual(context.getSelectedPageIdx(), 1);
+ assert.strictEqual(context.getPageByIdx(1), page);
+
+ await page.close();
+
+ try {
+ await navigatePage.handler(
+ {params: {url: 'data:text/html,<div>Hello MCP</div>'}},
+ response,
+ context,
+ );
+ assert.fail('should not reach here');
+ } catch (err) {
+ assert.strictEqual(
+ err.message,
+ 'The selected page has been closed. Call list_pages to see open pages.',
+ );
+ }
+ });
+ });
+ });
+ describe('browser_navigate_page_history', () => {
+ it('go back', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.goto('data:text/html,<div>Hello MCP</div>');
+ await navigatePageHistory.handler(
+ {params: {navigate: 'back'}},
+ response,
+ context,
+ );
+
+ assert.equal(
+ await page.evaluate(() => document.location.href),
+ 'about:blank',
+ );
+ assert.ok(response.includePages);
+ });
+ });
+ it('go forward', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.goto('data:text/html,<div>Hello MCP</div>');
+ await page.goBack();
+ await navigatePageHistory.handler(
+ {params: {navigate: 'forward'}},
+ response,
+ context,
+ );
+
+ assert.equal(
+ await page.evaluate(() => document.querySelector('div')?.textContent),
+ 'Hello MCP',
+ );
+ assert.ok(response.includePages);
+ });
+ });
+ it('go forward with error', async () => {
+ await withBrowser(async (response, context) => {
+ await navigatePageHistory.handler(
+ {params: {navigate: 'forward'}},
+ response,
+ context,
+ );
+
+ assert.equal(
+ response.responseLines.at(0),
+ 'Unable to navigate forward in currently selected page.',
+ );
+ assert.ok(response.includePages);
+ });
+ });
+ it('go back with error', async () => {
+ await withBrowser(async (response, context) => {
+ await navigatePageHistory.handler(
+ {params: {navigate: 'back'}},
+ response,
+ context,
+ );
+
+ assert.equal(
+ response.responseLines.at(0),
+ 'Unable to navigate back in currently selected page.',
+ );
+ assert.ok(response.includePages);
+ });
+ });
+ });
+ describe('browser_resize', () => {
+ it('create a page', async () => {
+ await withBrowser(async (response, context) => {
+ assert.strictEqual(context.getSelectedPageIdx(), 0);
+ const page = context.getSelectedPage();
+ const resizePromise = page.evaluate(() => {
+ return new Promise(resolve => {
+ window.addEventListener('resize', resolve, {once: true});
+ });
+ });
+ await resizePage.handler(
+ {params: {width: 700, height: 500}},
+ response,
+ context,
+ );
+ await resizePromise;
+ const dimensions = await page.evaluate(() => {
+ return [window.innerWidth, window.innerHeight];
+ });
+ assert.deepStrictEqual(dimensions, [700, 500]);
+ });
+ });
+ });
+
+ describe('dialogs', () => {
+ it('can accept dialogs', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ const dialogPromise = new Promise<void>(resolve => {
+ page.on('dialog', () => {
+ resolve();
+ });
+ });
+ page.evaluate(() => {
+ alert('test');
+ });
+ await dialogPromise;
+ await handleDialog.handler(
+ {
+ params: {
+ action: 'accept',
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(context.getDialog(), undefined);
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully accepted the dialog',
+ );
+ });
+ });
+ it('can dismiss dialogs', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ const dialogPromise = new Promise<void>(resolve => {
+ page.on('dialog', () => {
+ resolve();
+ });
+ });
+ page.evaluate(() => {
+ alert('test');
+ });
+ await dialogPromise;
+ await handleDialog.handler(
+ {
+ params: {
+ action: 'dismiss',
+ },
+ },
+ response,
+ context,
+ );
+ assert.strictEqual(context.getDialog(), undefined);
+ assert.strictEqual(
+ response.responseLines[0],
+ 'Successfully dismissed the dialog',
+ );
+ });
+ });
+ });
+});
diff --git a/tests/tools/performance.test.ts b/tests/tools/performance.test.ts
new file mode 100644
index 00000000..1b293fda
--- /dev/null
+++ b/tests/tools/performance.test.ts
@@ -0,0 +1,159 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it, afterEach} from 'node:test';
+import assert from 'assert';
+import sinon from 'sinon';
+
+import {startTrace, stopTrace} from '../../src/tools/performance.js';
+import {withBrowser} from '../utils.js';
+import {loadTraceAsBuffer} from '../trace-processing/fixtures/load.js';
+
+describe('performance', () => {
+ afterEach(() => {
+ sinon.restore();
+ });
+
+ describe('performance_start_trace', () => {
+ it('starts a trace recording', async () => {
+ await withBrowser(async (response, context) => {
+ context.setIsRunningPerformanceTrace(false);
+ const selectedPage = await context.getSelectedPage();
+ const startTracingStub = sinon.stub(selectedPage.tracing, 'start');
+ await startTrace.handler(
+ {params: {reload: true, autoStop: false}},
+ response,
+ context,
+ );
+ sinon.assert.calledOnce(startTracingStub);
+ assert.ok(context.isRunningPerformanceTrace());
+ assert.ok(
+ response.responseLines
+ .join('\n')
+ .match(/The performance trace is being recorded/),
+ );
+ });
+ });
+
+ it('can navigate to about:blank and record a page reload', async () => {
+ await withBrowser(async (response, context) => {
+ const selectedPage = await context.getSelectedPage();
+ sinon.stub(selectedPage, 'url').callsFake(() => 'https://www.test.com');
+ const gotoStub = sinon.stub(selectedPage, 'goto');
+ const startTracingStub = sinon.stub(selectedPage.tracing, 'start');
+ await startTrace.handler(
+ {params: {reload: true, autoStop: false}},
+ response,
+ context,
+ );
+ sinon.assert.calledOnce(startTracingStub);
+ sinon.assert.calledWithExactly(gotoStub, 'about:blank', {
+ waitUntil: ['networkidle0'],
+ });
+ sinon.assert.calledWithExactly(gotoStub, 'https://www.test.com', {
+ waitUntil: ['load'],
+ });
+ assert.ok(context.isRunningPerformanceTrace());
+ assert.ok(
+ response.responseLines
+ .join('\n')
+ .match(/The performance trace is being recorded/),
+ );
+ });
+ });
+
+ it('can autostop a recording', async () => {
+ const rawData = loadTraceAsBuffer('basic-trace.json.gz');
+
+ await withBrowser(async (response, context) => {
+ const selectedPage = await context.getSelectedPage();
+ sinon.stub(selectedPage, 'url').callsFake(() => 'https://www.test.com');
+ sinon.stub(selectedPage, 'goto').callsFake(() => Promise.resolve(null));
+ const startTracingStub = sinon.stub(selectedPage.tracing, 'start');
+ const stopTracingStub = sinon
+ .stub(selectedPage.tracing, 'stop')
+ .callsFake(async () => {
+ return rawData;
+ });
+
+ const clock = sinon.useFakeTimers();
+ const handlerPromise = startTrace.handler(
+ {params: {reload: true, autoStop: true}},
+ response,
+ context,
+ );
+ // In the handler we wait 5 seconds after the page load event (which is
+ // what DevTools does), hence we now fake-progress time to allow
+ // the handler to complete. We allow extra time because the Trace
+ // Engine also uses some timers to yield updates and we need those to
+ // execute.
+ await clock.tickAsync(6_000);
+ await handlerPromise;
+ clock.restore();
+
+ sinon.assert.calledOnce(startTracingStub);
+ sinon.assert.calledOnce(stopTracingStub);
+ assert.strictEqual(
+ context.isRunningPerformanceTrace(),
+ false,
+ 'Tracing was stopped',
+ );
+ assert.ok(
+ response.responseLines
+ .join('\n')
+ .match(/The performance trace has been stopped/),
+ );
+ });
+ });
+
+ it('errors if a recording is already active', async () => {
+ await withBrowser(async (response, context) => {
+ context.setIsRunningPerformanceTrace(true);
+ const selectedPage = await context.getSelectedPage();
+ const startTracingStub = sinon.stub(selectedPage.tracing, 'start');
+ await startTrace.handler(
+ {params: {reload: true, autoStop: false}},
+ response,
+ context,
+ );
+ sinon.assert.notCalled(startTracingStub);
+ assert.ok(
+ response.responseLines
+ .join('\n')
+ .match(/a performance trace is already running/),
+ );
+ });
+ });
+ });
+
+ describe('performance_stop_trace', () => {
+ it('does nothing if the trace is not running and does not error', async () => {
+ await withBrowser(async (response, context) => {
+ context.setIsRunningPerformanceTrace(false);
+ await stopTrace.handler({params: {}}, response, context);
+ });
+ });
+
+ it('will stop the trace and return trace info when a trace is running', async () => {
+ const rawData = loadTraceAsBuffer('basic-trace.json.gz');
+ await withBrowser(async (response, context) => {
+ context.setIsRunningPerformanceTrace(true);
+ const selectedPage = await context.getSelectedPage();
+ const stopTracingStub = sinon
+ .stub(selectedPage.tracing, 'stop')
+ .callsFake(async () => {
+ return rawData;
+ });
+ await stopTrace.handler({params: {}}, response, context);
+ assert.ok(
+ response.responseLines.includes(
+ 'The performance trace has been stopped.',
+ ),
+ );
+ sinon.assert.calledOnce(stopTracingStub);
+ });
+ });
+ });
+});
diff --git a/tests/tools/screenshot.test.ts b/tests/tools/screenshot.test.ts
new file mode 100644
index 00000000..d70fb07b
--- /dev/null
+++ b/tests/tools/screenshot.test.ts
@@ -0,0 +1,113 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {screenshot} from '../../src/tools/screenshot.js';
+
+import {withBrowser} from '../utils.js';
+import {screenshots} from '../snapshot.js';
+
+describe('screenshot', () => {
+ describe('browser_take_screenshot', () => {
+ it('with default options', async () => {
+ await withBrowser(async (response, context) => {
+ const fixture = screenshots.basic;
+ const page = context.getSelectedPage();
+ await page.setContent(fixture.html);
+ await screenshot.handler({params: {format: 'png'}}, response, context);
+
+ assert.equal(response.images.length, 1);
+ assert.equal(response.images[0].mimeType, 'image/png');
+ assert.equal(
+ response.responseLines.at(0),
+ "Took a screenshot of the current page's viewport.",
+ );
+ });
+ });
+ it('with jpeg', async () => {
+ await withBrowser(async (response, context) => {
+ await screenshot.handler({params: {format: 'jpeg'}}, response, context);
+
+ assert.equal(response.images.length, 1);
+ assert.equal(response.images[0].mimeType, 'image/jpeg');
+ assert.equal(
+ response.responseLines.at(0),
+ "Took a screenshot of the current page's viewport.",
+ );
+ });
+ });
+ it('with full page', async () => {
+ await withBrowser(async (response, context) => {
+ const fixture = screenshots.viewportOverflow;
+ const page = context.getSelectedPage();
+ await page.setContent(fixture.html);
+ await screenshot.handler(
+ {params: {format: 'png', fullPage: true}},
+ response,
+ context,
+ );
+
+ assert.equal(response.images.length, 1);
+ assert.equal(response.images[0].mimeType, 'image/png');
+ assert.equal(
+ response.responseLines.at(0),
+ 'Took a screenshot of the full current page.',
+ );
+ });
+ });
+
+ it('with full page resulting in a large screenshot', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+ await page.setContent(
+ `<div style="color:blue;">test</div>`.repeat(5_000),
+ );
+ await screenshot.handler(
+ {params: {format: 'png', fullPage: true}},
+ response,
+ context,
+ );
+
+ assert.equal(response.images.length, 0);
+ assert.equal(
+ response.responseLines.at(0),
+ 'Took a screenshot of the full current page.',
+ );
+ assert.ok(
+ response.responseLines.at(1)?.match(/Saved screenshot to.*\.png/),
+ );
+ });
+ });
+
+ it('with element uid', async () => {
+ await withBrowser(async (response, context) => {
+ const fixture = screenshots.button;
+
+ const page = context.getSelectedPage();
+ await page.setContent(fixture.html);
+ await context.createTextSnapshot();
+ await screenshot.handler(
+ {
+ params: {
+ format: 'png',
+ uid: 1,
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.equal(response.images.length, 1);
+ assert.equal(response.images[0].mimeType, 'image/png');
+ assert.equal(
+ response.responseLines.at(0),
+ 'Took a screenshot of node with uid "1".',
+ );
+ });
+ });
+ });
+});
diff --git a/tests/tools/script.test.ts b/tests/tools/script.test.ts
new file mode 100644
index 00000000..54f09ef0
--- /dev/null
+++ b/tests/tools/script.test.ts
@@ -0,0 +1,107 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {evaluateScript} from '../../src/tools/script.js';
+
+import {html, withBrowser} from '../utils.js';
+
+describe('script', () => {
+ describe('browser_evaluate_script', () => {
+ it('evaluates', async () => {
+ await withBrowser(async (response, context) => {
+ await evaluateScript.handler(
+ {params: {function: String(() => 2 * 5)}},
+ response,
+ context,
+ );
+ const lineEvaluation = response.responseLines.at(2)!;
+ assert.strictEqual(JSON.parse(lineEvaluation), 10);
+ });
+ });
+ it('runs in selected page', async () => {
+ await withBrowser(async (response, context) => {
+ await evaluateScript.handler(
+ {params: {function: String(() => document.title)}},
+ response,
+ context,
+ );
+
+ let lineEvaluation = response.responseLines.at(2)!;
+ assert.strictEqual(JSON.parse(lineEvaluation), '');
+
+ const page = await context.newPage();
+ await page.setContent(`
+ <head>
+ <title>New Page</title>
+ </head>
+ `);
+
+ response.resetResponseLineForTesting();
+ await evaluateScript.handler(
+ {params: {function: String(() => document.title)}},
+ response,
+ context,
+ );
+
+ lineEvaluation = response.responseLines.at(2)!;
+ assert.strictEqual(JSON.parse(lineEvaluation), 'New Page');
+ });
+ });
+
+ it('work for complex objects', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+
+ await page.setContent(html`<script src="./scripts.js"></script> `);
+
+ await evaluateScript.handler(
+ {
+ params: {
+ function: String(() => {
+ const scripts = Array.from(
+ document.head.querySelectorAll('script'),
+ ).map(s => ({src: s.src, async: s.async, defer: s.defer}));
+
+ return {scripts};
+ }),
+ },
+ },
+ response,
+ context,
+ );
+ const lineEvaluation = response.responseLines.at(2)!;
+ assert.deepEqual(JSON.parse(lineEvaluation), {
+ scripts: [],
+ });
+ });
+ });
+
+ it('work for async functions', async () => {
+ await withBrowser(async (response, context) => {
+ const page = context.getSelectedPage();
+
+ await page.setContent(html`<script src="./scripts.js"></script> `);
+
+ await evaluateScript.handler(
+ {
+ params: {
+ function: String(async () => {
+ await new Promise(res => setTimeout(res, 0));
+ return 'Works';
+ }),
+ },
+ },
+ response,
+ context,
+ );
+ const lineEvaluation = response.responseLines.at(2)!;
+ assert.strictEqual(JSON.parse(lineEvaluation), 'Works');
+ });
+ });
+ });
+});
diff --git a/tests/tools/snapshot.test.ts b/tests/tools/snapshot.test.ts
new file mode 100644
index 00000000..589643f5
--- /dev/null
+++ b/tests/tools/snapshot.test.ts
@@ -0,0 +1,99 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+
+import {html, withBrowser} from '../utils.js';
+import {takeSnapshot, waitFor} from '../../src/tools/snapshot.js';
+
+describe('snapshot', () => {
+ describe('browser_snapshot', () => {
+ it('includes a snapshot', async () => {
+ await withBrowser(async (response, context) => {
+ await takeSnapshot.handler({params: {}}, response, context);
+ assert.ok(response.includeSnapshot);
+ });
+ });
+ });
+ describe('browser_wait_for', () => {
+ it('should work', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.getSelectedPage();
+
+ await page.setContent(
+ html`<main><span>Hello</span><span> </span><div>World</div></main>`,
+ );
+ await waitFor.handler(
+ {
+ params: {
+ text: 'Hello',
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.equal(
+ response.responseLines[0],
+ 'Element with text "Hello" found.',
+ );
+ assert.ok(response.includeSnapshot);
+ });
+ });
+ it('should work with element that show up later', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.getSelectedPage();
+
+ const handlePromise = waitFor.handler(
+ {
+ params: {
+ text: 'Hello World',
+ },
+ },
+ response,
+ context,
+ );
+
+ await page.setContent(
+ html`<main><span>Hello</span><span> </span><div>World</div></main>`,
+ );
+
+ await handlePromise;
+
+ assert.equal(
+ response.responseLines[0],
+ 'Element with text "Hello World" found.',
+ );
+ assert.ok(response.includeSnapshot);
+ });
+ });
+ it('should work with aria elements', async () => {
+ await withBrowser(async (response, context) => {
+ const page = await context.getSelectedPage();
+
+ await page.setContent(
+ html`<main><h1>Header</h1><div>Text</div></main>`,
+ );
+
+ await waitFor.handler(
+ {
+ params: {
+ text: 'Header',
+ },
+ },
+ response,
+ context,
+ );
+
+ assert.equal(
+ response.responseLines[0],
+ 'Element with text "Header" found.',
+ );
+ assert.ok(response.includeSnapshot);
+ });
+ });
+ });
+});
diff --git a/tests/trace-processing/fixtures/basic-trace.json.gz b/tests/trace-processing/fixtures/basic-trace.json.gz
new file mode 100644
index 00000000..f27571e8
Binary files /dev/null and b/tests/trace-processing/fixtures/basic-trace.json.gz differ
diff --git a/tests/trace-processing/fixtures/load.ts b/tests/trace-processing/fixtures/load.ts
new file mode 100644
index 00000000..89cdd47a
--- /dev/null
+++ b/tests/trace-processing/fixtures/load.ts
@@ -0,0 +1,43 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import fs from 'node:fs';
+import path from 'node:path';
+import zlib from 'node:zlib';
+
+/**
+ * Reads a gzipped JSON file, decompresses it, parses the JSON,
+ * and returns a Uint8Array buffer of the parsed data.
+ * @param filePath The path to the .json.gz file.
+ * @returns A Uint8Array containing the stringified JSON data.
+ */
+export function loadTraceAsBuffer(filePath: string): Uint8Array {
+ try {
+ const compressedData = fs.readFileSync(
+ path.join(
+ import.meta.dirname,
+ // Get back up to the root directory as fixtures aren't moved ito the build/ dir.
+ '..',
+ '..',
+ '..',
+ '..',
+ 'tests',
+ 'trace-processing',
+ 'fixtures',
+ filePath,
+ ),
+ );
+ const decompressedData = zlib.gunzipSync(compressedData);
+ const jsonString = decompressedData.toString('utf-8');
+ const jsonObject = JSON.parse(jsonString);
+ const finalBuffer = Buffer.from(JSON.stringify(jsonObject));
+ const uint8Array = new Uint8Array(finalBuffer);
+ return uint8Array;
+ } catch (error) {
+ console.error('Error parsing the file:', error);
+ throw error;
+ }
+}
diff --git a/tests/trace-processing/fixtures/web-dev-with-commit.json.gz b/tests/trace-processing/fixtures/web-dev-with-commit.json.gz
new file mode 100644
index 00000000..97f7054b
Binary files /dev/null and b/tests/trace-processing/fixtures/web-dev-with-commit.json.gz differ
diff --git a/tests/trace-processing/parse.test.ts b/tests/trace-processing/parse.test.ts
new file mode 100644
index 00000000..057e67d7
--- /dev/null
+++ b/tests/trace-processing/parse.test.ts
@@ -0,0 +1,40 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+import {describe, it} from 'node:test';
+import assert from 'assert';
+import {
+ insightOutput,
+ parseRawTraceBuffer,
+} from '../../src/trace-processing/parse.js';
+import {loadTraceAsBuffer} from './fixtures/load.js';
+
+describe('Trace parsing', async () => {
+ it('can parse a Uint8Array from Tracing.stop())', async () => {
+ const rawData = loadTraceAsBuffer('basic-trace.json.gz');
+ const result = await parseRawTraceBuffer(rawData);
+ assert.ok(result?.parsedTrace);
+ assert.ok(result?.insights);
+ });
+
+ it('can format results of a trace', async () => {
+ const rawData = loadTraceAsBuffer('web-dev-with-commit.json.gz');
+ const result = await parseRawTraceBuffer(rawData);
+ assert.ok(result?.parsedTrace);
+ assert.ok(result?.insights);
+
+ const output = insightOutput(result);
+ assert.strictEqual(
+ output.includes(
+ 'The Largest Contentful Paint (LCP) time for this navigation was 129.2 ms.',
+ ),
+ true,
+ );
+ assert.strictEqual(
+ output.includes('- fetchpriority=high should be applied: FAILED'),
+ true,
+ );
+ });
+});
diff --git a/tests/utils.ts b/tests/utils.ts
new file mode 100644
index 00000000..0ee9da59
--- /dev/null
+++ b/tests/utils.ts
@@ -0,0 +1,104 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import puppeteer, {Browser} from 'puppeteer';
+import {HTTPRequest, HTTPResponse} from 'puppeteer-core';
+import {McpResponse} from '../src/McpResponse.js';
+import {McpContext} from '../src/McpContext.js';
+import logger from 'debug';
+
+let browser: Browser | undefined;
+
+export async function withBrowser(
+ cb: (response: McpResponse, context: McpContext) => Promise<void>,
+ options: {debug?: boolean} = {},
+) {
+ const {debug = false} = options;
+ if (!browser) {
+ browser = await puppeteer.launch({
+ executablePath: process.env.PUPPETEER_EXECUTABLE_PATH,
+ headless: !debug,
+ defaultViewport: null,
+ });
+ }
+ const newPage = await browser.newPage();
+ // Close other pages.
+ await Promise.all(
+ (await browser.pages()).map(async page => {
+ if (page !== newPage) {
+ await page.close();
+ }
+ }),
+ );
+ const response = new McpResponse();
+ const context = await McpContext.from(browser, logger('test'));
+
+ await cb(response, context);
+}
+
+export function getMockRequest(
+ options: {
+ method?: string;
+ response?: HTTPResponse;
+ failure?: HTTPRequest['failure'];
+ } = {},
+): HTTPRequest {
+ return {
+ url() {
+ return 'http://example.com';
+ },
+ method() {
+ return options.method ?? 'GET';
+ },
+ response() {
+ return options.response ?? null;
+ },
+ failure() {
+ return options.failure?.() ?? null;
+ },
+ headers(): Record<string, string> {
+ return {
+ 'content-size': '10',
+ };
+ },
+ redirectChain(): HTTPRequest[] {
+ return [];
+ },
+ } as HTTPRequest;
+}
+
+export function getMockResponse(
+ options: {
+ status?: number;
+ } = {},
+): HTTPResponse {
+ return {
+ status() {
+ return options.status ?? 200;
+ },
+ } as HTTPResponse;
+}
+
+export function html(
+ strings: TemplateStringsArray,
+ ...values: unknown[]
+): string {
+ const bodyContent = strings.reduce((acc, str, i) => {
+ return acc + str + (values[i] || '');
+ }, '');
+
+ return `<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>My test page</title>
+ </head>
+ <body>
+ ${bodyContent}
+ </body>
+</html>`;
+}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 00000000..de537118
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,43 @@
+{
+ "compilerOptions": {
+ "target": "esnext",
+ "module": "nodenext",
+ "moduleResolution": "nodenext",
+ "outDir": "./build",
+ "rootDir": ".",
+ "strict": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "noImplicitReturns": true,
+ "noImplicitOverride": true,
+ "noFallthroughCasesInSwitch": true,
+ "incremental": true,
+ "allowJs": true,
+ "useUnknownInCatchVariables": false
+ },
+ "include": [
+ "src/**/*.ts",
+ "tests/**/*.ts",
+ "node_modules/chrome-devtools-frontend/front_end/legacy/legacy-defs.d.ts",
+ "node_modules/chrome-devtools-frontend/front_end/models/trace",
+ "node_modules/chrome-devtools-frontend/front_end/models/logs",
+ "node_modules/chrome-devtools-frontend/front_end/models/text_utils",
+ "node_modules/chrome-devtools-frontend/front_end/models/network_time_calculator",
+ "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts",
+ "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts",
+ "node_modules/chrome-devtools-frontend/front_end/models/ai_assistance/data_formatters/UnitFormatters.ts",
+ "node_modules/chrome-devtools-frontend/front_end/core/common",
+ "node_modules/chrome-devtools-frontend/front_end/core/sdk",
+ "node_modules/chrome-devtools-frontend/front_end/core/protocol_client",
+ "node_modules/chrome-devtools-frontend/front_end/core/host",
+ "node_modules/chrome-devtools-frontend/front_end/core/platform",
+ "node_modules/chrome-devtools-frontend/front_end/models/cpu_profile",
+ "node_modules/chrome-devtools-frontend/front_end/generated",
+ "node_modules/chrome-devtools-frontend/front_end/third_party/legacy-javascript",
+ "node_modules/chrome-devtools-frontend/front_end/third_party/source-map-scopes-codec",
+ "node_modules/chrome-devtools-frontend/front_end/core/root",
+ "node_modules/chrome-devtools-frontend/front_end/third_party/third-party-web"
+ ],
+ "exclude": ["node_modules/chrome-devtools-frontend/**/*.test.ts"]
+}