Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions src/McpContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import path from 'node:path';
import type {TargetUniverse} from './DevtoolsUtils.js';
import {UniverseManager} from './DevtoolsUtils.js';
import {McpPage} from './McpPage.js';
import type {ListenerMap, UncaughtError} from './PageCollector.js';
import {NetworkCollector, ConsoleCollector} from './PageCollector.js';
import {
NetworkCollector,
ConsoleCollector,
type ListenerMap,
type UncaughtError,
} from './PageCollector.js';
import type {DevTools} from './third_party/index.js';
import type {
Browser,
Expand Down Expand Up @@ -45,13 +49,6 @@ import {
import {saveTemporaryFile} from './utils/files.js';
import {WaitForHelper} from './WaitForHelper.js';

export type {
EmulationSettings,
GeolocationOptions,
TextSnapshot,
TextSnapshotNode,
} from './types.js';

interface McpContextOptions {
// Whether the DevTools windows are exposed as pages for debugging of DevTools.
experimentalDevToolsDebugging: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/SnapshotFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import type {TextSnapshot, TextSnapshotNode} from '../McpContext.js';
import type {TextSnapshot, TextSnapshotNode} from '../types.js';

export class SnapshotFormatter {
#snapshot: TextSnapshot;
Expand Down
3 changes: 2 additions & 1 deletion src/tools/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
*/

import {logger} from '../logger.js';
import type {McpContext, TextSnapshotNode} from '../McpContext.js';
import type {McpContext} from '../McpContext.js';
import {zod} from '../third_party/index.js';
import type {ElementHandle, KeyInput} from '../third_party/index.js';
import type {TextSnapshotNode} from '../types.js';
import {parseKey} from '../utils/keyboard.js';

import {ToolCategory} from './categories.js';
Expand Down
2 changes: 1 addition & 1 deletion tests/formatters/snapshotFormatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {describe, it} from 'node:test';
import type {ElementHandle} from 'puppeteer-core';

import {SnapshotFormatter} from '../../src/formatters/SnapshotFormatter.js';
import type {TextSnapshot, TextSnapshotNode} from '../../src/McpContext.js';
import type {TextSnapshot, TextSnapshotNode} from '../../src/types.js';

describe('snapshotFormatter', () => {
it('formats a snapshot with value properties', () => {
Expand Down
Loading