diff --git a/package-lock.json b/package-lock.json index fe709a40..76d2bc00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,11 +8,6 @@ "name": "chrome-devtools-mcp", "version": "0.8.1", "license": "Apache-2.0", - "dependencies": { - "core-js": "3.46.0", - "debug": "4.4.3", - "yargs": "18.0.0" - }, "bin": { "chrome-devtools-mcp": "build/src/index.js" }, @@ -31,6 +26,8 @@ "@typescript-eslint/eslint-plugin": "^8.43.0", "@typescript-eslint/parser": "^8.43.0", "chrome-devtools-frontend": "1.0.1524741", + "core-js": "3.46.0", + "debug": "4.4.3", "eslint": "^9.35.0", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", @@ -42,7 +39,8 @@ "rollup-plugin-license": "^3.6.0", "sinon": "^21.0.0", "typescript": "^5.9.2", - "typescript-eslint": "^8.43.0" + "typescript-eslint": "^8.43.0", + "yargs": "18.0.0" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=23" @@ -1752,6 +1750,7 @@ "version": "6.2.2", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -2249,6 +2248,7 @@ "version": "9.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "dev": true, "license": "ISC", "dependencies": { "string-width": "^7.2.0", @@ -2347,6 +2347,7 @@ "version": "3.46.0", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.46.0.tgz", "integrity": "sha512-vDMm9B0xnqqZ8uSBpZ8sNtRtOdmfShrvT6h2TuQGLs0Is+cR0DYbj/KWP6ALVNbWPpqA/qPLoOuppJN07humpA==", + "dev": true, "hasInstallScript": true, "license": "MIT", "funding": { @@ -2478,6 +2479,7 @@ "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2625,6 +2627,7 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, "license": "MIT" }, "node_modules/encodeurl": { @@ -2820,6 +2823,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -3671,6 +3675,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" @@ -3680,6 +3685,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz", "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -4847,6 +4853,7 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, "license": "MIT" }, "node_modules/napi-postinstall": { @@ -6233,6 +6240,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^10.3.0", @@ -6309,6 +6317,7 @@ "version": "7.1.2", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" @@ -6857,6 +6866,7 @@ "version": "9.0.2", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^6.2.1", @@ -6874,6 +6884,7 @@ "version": "6.2.3", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -6915,6 +6926,7 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, "license": "ISC", "engines": { "node": ">=10" @@ -6924,6 +6936,7 @@ "version": "18.0.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "dev": true, "license": "MIT", "dependencies": { "cliui": "^9.0.1", @@ -6941,6 +6954,7 @@ "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==", + "dev": true, "license": "ISC", "engines": { "node": "^20.19.0 || ^22.12.0 || >=23" diff --git a/package.json b/package.json index 19d3b241..a71b47ff 100644 --- a/package.json +++ b/package.json @@ -37,11 +37,6 @@ }, "homepage": "https://github.com/ChromeDevTools/chrome-devtools-mcp#readme", "mcpName": "io.github.ChromeDevTools/chrome-devtools-mcp", - "dependencies": { - "core-js": "3.46.0", - "debug": "4.4.3", - "yargs": "18.0.0" - }, "devDependencies": { "@eslint/js": "^9.35.0", "@modelcontextprotocol/sdk": "1.20.1", @@ -57,6 +52,8 @@ "@typescript-eslint/eslint-plugin": "^8.43.0", "@typescript-eslint/parser": "^8.43.0", "chrome-devtools-frontend": "1.0.1524741", + "core-js": "3.46.0", + "debug": "4.4.3", "eslint": "^9.35.0", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", @@ -68,7 +65,8 @@ "rollup-plugin-license": "^3.6.0", "sinon": "^21.0.0", "typescript": "^5.9.2", - "typescript-eslint": "^8.43.0" + "typescript-eslint": "^8.43.0", + "yargs": "18.0.0" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=23" diff --git a/rollup.config.mjs b/rollup.config.mjs index 9ca5ef30..0fdfc944 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -42,7 +42,7 @@ const allowedLicenses = [ /** * @param {string} wrapperIndexPath * @param {import('rollup').OutputOptions} [extraOutputOptions={}] - * @param {string[]} [external=[]] + * @param {import('rollup').ExternalOption} [external=[]] * @returns {import('rollup').RollupOptions} */ const bundleDependency = ( @@ -110,12 +110,26 @@ const bundleDependency = ( }); export default [ - bundleDependency('./build/src/third_party/modelcontextprotocol-sdk/index.js'), bundleDependency( - './build/src/third_party/puppeteer-core/index.js', + './build/src/third_party/index.js', { inlineDynamicImports: true, }, - ['./bidi.js', '../bidi/bidi.js'], + (source, importer, _isResolved) => { + if ( + source === 'yargs' && + importer && + importer.includes('puppeteer-core') + ) { + return true; + } + + const existingExternals = ['./bidi.js', '../bidi/bidi.js']; + if (existingExternals.includes(source)) { + return true; + } + + return false; + }, ), ]; diff --git a/src/DevToolsConnectionAdapter.ts b/src/DevToolsConnectionAdapter.ts index ec07d1a7..5a6491e3 100644 --- a/src/DevToolsConnectionAdapter.ts +++ b/src/DevToolsConnectionAdapter.ts @@ -6,7 +6,7 @@ import {Connection} from '../node_modules/chrome-devtools-frontend/front_end/core/protocol_client/InspectorBackend.js'; -import {type ConnectionTransport} from './third_party/puppeteer-core/index.js'; +import {type ConnectionTransport} from './third_party/index.js'; /** * Allows a puppeteer {@link ConnectionTransport} to act like a DevTools {@link Connection}. diff --git a/src/McpContext.ts b/src/McpContext.ts index dd9186a6..fd5e7536 100644 --- a/src/McpContext.ts +++ b/src/McpContext.ts @@ -7,21 +7,20 @@ import fs from 'node:fs/promises'; import os from 'node:os'; import path from 'node:path'; -import type {Debugger} from 'debug'; - import type {ListenerMap} from './PageCollector.js'; import {NetworkCollector, PageCollector} from './PageCollector.js'; -import {Locator} from './third_party/puppeteer-core/index.js'; +import {Locator} from './third_party/index.js'; import type { Browser, ConsoleMessage, + Debugger, Dialog, ElementHandle, HTTPRequest, Page, SerializedAXNode, PredefinedNetworkConditions, -} from './third_party/puppeteer-core/index.js'; +} from './third_party/index.js'; import {listPages} from './tools/pages.js'; import {takeSnapshot} from './tools/snapshot.js'; import {CLOSE_PAGE_ERROR} from './tools/ToolDefinition.js'; diff --git a/src/McpResponse.ts b/src/McpResponse.ts index 03a81465..f937519c 100644 --- a/src/McpResponse.ts +++ b/src/McpResponse.ts @@ -17,14 +17,12 @@ import { } from './formatters/networkFormatter.js'; import {formatA11ySnapshot} from './formatters/snapshotFormatter.js'; import type {McpContext} from './McpContext.js'; -import type { - ImageContent, - TextContent, -} from './third_party/modelcontextprotocol-sdk/index.js'; import type { ConsoleMessage, + ImageContent, ResourceType, -} from './third_party/puppeteer-core/index.js'; + TextContent, +} from './third_party/index.js'; import {handleDialog} from './tools/pages.js'; import type {ImageContentData, Response} from './tools/ToolDefinition.js'; import {paginate} from './utils/pagination.js'; diff --git a/src/PageCollector.ts b/src/PageCollector.ts index 16841149..89c7c315 100644 --- a/src/PageCollector.ts +++ b/src/PageCollector.ts @@ -11,7 +11,7 @@ import { type HTTPRequest, type Page, type PageEvents, -} from './third_party/puppeteer-core/index.js'; +} from './third_party/index.js'; export type ListenerMap = { [K in keyof EventMap]?: (event: EventMap[K]) => void; diff --git a/src/WaitForHelper.ts b/src/WaitForHelper.ts index a18f6448..7a5edaf4 100644 --- a/src/WaitForHelper.ts +++ b/src/WaitForHelper.ts @@ -3,10 +3,8 @@ * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ -import type {CdpPage} from 'puppeteer-core/internal/cdp/Page.js'; - import {logger} from './logger.js'; -import type {Page, Protocol} from './third_party/puppeteer-core/index.js'; +import type {Page, Protocol, CdpPage} from './third_party/index.js'; export class WaitForHelper { #abortController = new AbortController(); diff --git a/src/browser.ts b/src/browser.ts index 47afe5a9..1947651b 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -13,8 +13,8 @@ import type { ChromeReleaseChannel, LaunchOptions, Target, -} from './third_party/puppeteer-core/index.js'; -import {puppeteer} from './third_party/puppeteer-core/index.js'; +} from './third_party/index.js'; +import {puppeteer} from './third_party/index.js'; let browser: Browser | undefined; diff --git a/src/cli.ts b/src/cli.ts index 89c8097d..54c83282 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -4,9 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import type {Options as YargsOptions} from 'yargs'; -import yargs from 'yargs'; -import {hideBin} from 'yargs/helpers'; +import type {YargsOptions} from './third_party/index.js'; +import {yargs, hideBin} from './third_party/index.js'; export const cliOptions = { browserUrl: { diff --git a/src/formatters/networkFormatter.ts b/src/formatters/networkFormatter.ts index 0d8189ba..3c1abe58 100644 --- a/src/formatters/networkFormatter.ts +++ b/src/formatters/networkFormatter.ts @@ -6,10 +6,7 @@ import {isUtf8} from 'node:buffer'; -import type { - HTTPRequest, - HTTPResponse, -} from '../third_party/puppeteer-core/index.js'; +import type {HTTPRequest, HTTPResponse} from '../third_party/index.js'; const BODY_CONTEXT_SIZE_LIMIT = 10000; diff --git a/src/logger.ts b/src/logger.ts index f939e4cd..072ece38 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -5,7 +5,7 @@ */ import fs from 'node:fs'; -import debug from 'debug'; +import {debug} from './third_party/index.js'; const mcpDebugNamespace = 'mcp:log'; diff --git a/src/main.ts b/src/main.ts index df526946..c1fb8303 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,7 +18,7 @@ import { StdioServerTransport, type CallToolResult, SetLevelRequestSchema, -} from './third_party/modelcontextprotocol-sdk/index.js'; +} from './third_party/index.js'; import * as consoleTools from './tools/console.js'; import * as emulationTools from './tools/emulation.js'; import * as inputTools from './tools/input.js'; diff --git a/src/polyfill.ts b/src/polyfill.ts index 0484a02f..26ddfb71 100644 --- a/src/polyfill.ts +++ b/src/polyfill.ts @@ -4,5 +4,5 @@ * SPDX-License-Identifier: Apache-2.0 */ -import 'core-js/modules/es.promise.with-resolvers.js'; -import 'core-js/proposals/iterator-helpers.js'; +// polyfills are now bundled with all other dependencies +import './third_party/index.js'; diff --git a/src/third_party/index.ts b/src/third_party/index.ts new file mode 100644 index 00000000..c9995d15 --- /dev/null +++ b/src/third_party/index.ts @@ -0,0 +1,26 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ +import 'core-js/modules/es.promise.with-resolvers.js'; +import 'core-js/proposals/iterator-helpers.js'; + +export type {Options as YargsOptions} from 'yargs'; +export {default as yargs} from 'yargs'; +export {hideBin} from 'yargs/helpers'; +export {debug} from 'debug'; +export type {Debugger} from 'debug'; +export {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js'; +export {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js'; +export { + type CallToolResult, + SetLevelRequestSchema, + type ImageContent, + type TextContent, +} from '@modelcontextprotocol/sdk/types.js'; +export {z as zod} from 'zod'; +export {Locator, PredefinedNetworkConditions} from 'puppeteer-core'; +export {default as puppeteer} from 'puppeteer-core'; +export type * from 'puppeteer-core'; +export type {CdpPage} from 'puppeteer-core/internal/cdp/Page.js'; diff --git a/src/third_party/modelcontextprotocol-sdk/index.ts b/src/third_party/modelcontextprotocol-sdk/index.ts deleted file mode 100644 index 6366490f..00000000 --- a/src/third_party/modelcontextprotocol-sdk/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -export {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js'; -export {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js'; -export { - type CallToolResult, - SetLevelRequestSchema, - type ImageContent, - type TextContent, -} from '@modelcontextprotocol/sdk/types.js'; -export {z as zod} from 'zod'; diff --git a/src/third_party/puppeteer-core/index.ts b/src/third_party/puppeteer-core/index.ts deleted file mode 100644 index 92ae88ae..00000000 --- a/src/third_party/puppeteer-core/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -export {Locator, PredefinedNetworkConditions} from 'puppeteer-core'; -export {default as puppeteer} from 'puppeteer-core'; -export type * from 'puppeteer-core'; diff --git a/src/tools/ToolDefinition.ts b/src/tools/ToolDefinition.ts index 966cf77b..0e0691be 100644 --- a/src/tools/ToolDefinition.ts +++ b/src/tools/ToolDefinition.ts @@ -5,12 +5,8 @@ */ import type {TextSnapshotNode} from '../McpContext.js'; -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type { - Dialog, - ElementHandle, - Page, -} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {Dialog, ElementHandle, Page} from '../third_party/index.js'; import type {TraceResult} from '../trace-processing/parse.js'; import type {PaginationOptions} from '../utils/types.js'; diff --git a/src/tools/console.ts b/src/tools/console.ts index 8be953c8..2a56efb7 100644 --- a/src/tools/console.ts +++ b/src/tools/console.ts @@ -4,8 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type {ConsoleMessageType} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {ConsoleMessageType} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/emulation.ts b/src/tools/emulation.ts index 9287c00d..eceaa53b 100644 --- a/src/tools/emulation.ts +++ b/src/tools/emulation.ts @@ -4,8 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import {PredefinedNetworkConditions} from '../third_party/puppeteer-core/index.js'; +import {zod, PredefinedNetworkConditions} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/input.ts b/src/tools/input.ts index 973eb829..78a1372a 100644 --- a/src/tools/input.ts +++ b/src/tools/input.ts @@ -5,8 +5,8 @@ */ import type {McpContext, TextSnapshotNode} from '../McpContext.js'; -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type {ElementHandle} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {ElementHandle} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/network.ts b/src/tools/network.ts index d684d05b..f31bd27a 100644 --- a/src/tools/network.ts +++ b/src/tools/network.ts @@ -4,8 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type {ResourceType} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {ResourceType} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/pages.ts b/src/tools/pages.ts index ac6756d2..a1c39bee 100644 --- a/src/tools/pages.ts +++ b/src/tools/pages.ts @@ -5,7 +5,7 @@ */ import {logger} from '../logger.js'; -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; +import {zod} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {CLOSE_PAGE_ERROR, defineTool, timeoutSchema} from './ToolDefinition.js'; diff --git a/src/tools/performance.ts b/src/tools/performance.ts index a76f30d5..8b587499 100644 --- a/src/tools/performance.ts +++ b/src/tools/performance.ts @@ -5,8 +5,8 @@ */ import {logger} from '../logger.js'; -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type {Page} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {Page} from '../third_party/index.js'; import type {InsightName} from '../trace-processing/parse.js'; import { getInsightOutput, diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.ts index e053186f..91afa25d 100644 --- a/src/tools/screenshot.ts +++ b/src/tools/screenshot.ts @@ -4,8 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type {ElementHandle, Page} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {ElementHandle, Page} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/script.ts b/src/tools/script.ts index 6f08af08..70115fc3 100644 --- a/src/tools/script.ts +++ b/src/tools/script.ts @@ -4,12 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; -import type { - Frame, - JSHandle, - Page, -} from '../third_party/puppeteer-core/index.js'; +import {zod} from '../third_party/index.js'; +import type {Frame, JSHandle, Page} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool} from './ToolDefinition.js'; diff --git a/src/tools/snapshot.ts b/src/tools/snapshot.ts index 0cf548b4..05df1734 100644 --- a/src/tools/snapshot.ts +++ b/src/tools/snapshot.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import {zod} from '../third_party/modelcontextprotocol-sdk/index.js'; +import {zod} from '../third_party/index.js'; import {ToolCategories} from './categories.js'; import {defineTool, timeoutSchema} from './ToolDefinition.js';