💬 Commit message: Update 2026-02-11 04:16:38, 12 files, 588 lines

📁 Files changed: 12
📝 Lines changed: 588

  • TODO.md
  • browser.d.ts
  • browser.d.ts.map
  • browser.js
  • browser.js.map
  • mcp.js
  • mcp.js.map
  • types.d.ts
  • types.d.ts.map
  • browser.ts
  • mcp.ts
  • types.ts
This commit is contained in:
Adam Ladachowski
2026-02-11 04:16:38 +01:00
parent 5a7466b67d
commit f7df5d8f54
12 changed files with 577 additions and 11 deletions
+34 -1
View File
@@ -111,7 +111,38 @@ export interface ConsoleMessage {
timestamp: number;
location?: string;
}
export type BrowserCommand = GotoCommand | ClickCommand | TypeCommand | QueryCommand | ScreenshotCommand | UrlCommand | HtmlCommand | BackCommand | ForwardCommand | ReloadCommand | WaitCommand | NewPageCommand | CloseCommand | EvalCommand | FaviconCommand | ConvertCommand | ResizeCommand | CropCommand | CompressCommand | ThumbnailCommand | ConsoleCommand;
export interface NetworkEntry {
url: string;
method: string;
resourceType: string;
status?: number;
statusText?: string;
requestHeaders?: Record<string, string>;
responseHeaders?: Record<string, string>;
timing?: {
startTime: number;
endTime?: number;
duration?: number;
};
size?: number;
error?: string;
}
export interface NetworkCommand {
cmd: 'network';
clear?: boolean;
filter?: 'all' | 'failed' | 'xhr' | 'fetch' | 'document' | 'script' | 'stylesheet' | 'image';
}
export interface InterceptCommand {
cmd: 'intercept';
action: 'block' | 'mock' | 'list' | 'clear';
pattern?: string;
response?: {
status?: number;
body?: string;
contentType?: string;
};
}
export type BrowserCommand = GotoCommand | ClickCommand | TypeCommand | QueryCommand | ScreenshotCommand | UrlCommand | HtmlCommand | BackCommand | ForwardCommand | ReloadCommand | WaitCommand | NewPageCommand | CloseCommand | EvalCommand | FaviconCommand | ConvertCommand | ResizeCommand | CropCommand | CompressCommand | ThumbnailCommand | ConsoleCommand | NetworkCommand | InterceptCommand;
export interface SuccessResponse {
ok: true;
url?: string;
@@ -128,6 +159,8 @@ export interface SuccessResponse {
format?: string;
size?: number;
messages?: ConsoleMessage[];
requests?: NetworkEntry[];
patterns?: string[];
}
export interface ErrorResponse {
ok: false;