💬 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:
Vendored
+5
-1
@@ -1,12 +1,14 @@
|
||||
import { type BrowserContext, type Page } from 'playwright';
|
||||
import type { BrowserCommand, BrowserOptions, CommandResponse, ElementInfo } from './types.js';
|
||||
import type { BrowserCommand, BrowserOptions, CommandResponse, ConsoleMessage, ElementInfo } from './types.js';
|
||||
export declare class ClaudeBrowser {
|
||||
private browser;
|
||||
private context;
|
||||
private page;
|
||||
private options;
|
||||
private consoleMessages;
|
||||
constructor(options?: BrowserOptions);
|
||||
launch(): Promise<void>;
|
||||
private setupConsoleListener;
|
||||
close(): Promise<void>;
|
||||
private ensurePage;
|
||||
/** Get the current page instance (for advanced usage) */
|
||||
@@ -43,6 +45,8 @@ export declare class ClaudeBrowser {
|
||||
wait(ms?: number): Promise<void>;
|
||||
newPage(): Promise<void>;
|
||||
eval(script: string): Promise<unknown>;
|
||||
getConsole(level?: string, clear?: boolean): ConsoleMessage[];
|
||||
clearConsole(): void;
|
||||
executeCommand(cmd: BrowserCommand): Promise<CommandResponse>;
|
||||
}
|
||||
//# sourceMappingURL=browser.d.ts.map
|
||||
Reference in New Issue
Block a user