💬 Commit message: Update 2026-02-11 04:13:54, 13 files, 595 lines
📁 Files changed: 13 📝 Lines changed: 595 • PLAN.md • 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:
+17
-1
@@ -124,6 +124,19 @@ export interface ThumbnailCommand {
|
||||
size?: 'small' | 'medium' | 'large';
|
||||
}
|
||||
|
||||
export interface ConsoleCommand {
|
||||
cmd: 'console';
|
||||
clear?: boolean;
|
||||
level?: 'log' | 'info' | 'warn' | 'error' | 'debug' | 'all';
|
||||
}
|
||||
|
||||
export interface ConsoleMessage {
|
||||
level: string;
|
||||
text: string;
|
||||
timestamp: number;
|
||||
location?: string;
|
||||
}
|
||||
|
||||
export type BrowserCommand =
|
||||
| GotoCommand
|
||||
| ClickCommand
|
||||
@@ -144,7 +157,8 @@ export type BrowserCommand =
|
||||
| ResizeCommand
|
||||
| CropCommand
|
||||
| CompressCommand
|
||||
| ThumbnailCommand;
|
||||
| ThumbnailCommand
|
||||
| ConsoleCommand;
|
||||
|
||||
// Response types
|
||||
export interface SuccessResponse {
|
||||
@@ -163,6 +177,8 @@ export interface SuccessResponse {
|
||||
height?: number;
|
||||
format?: string;
|
||||
size?: number;
|
||||
// Console fields
|
||||
messages?: ConsoleMessage[];
|
||||
}
|
||||
|
||||
export interface ErrorResponse {
|
||||
|
||||
Reference in New Issue
Block a user