Add Claude Code plugin support with MCP prompts and resources

- Add .claude-plugin/plugin.json manifest (name: browse)
- Add 11 slash commands: start, end, goto, screenshot, scrape, analyze, extract, fill, compare, save, restore
- Add MCP resources: browser://state, browser://html, browser://screenshot
- Add MCP prompts: analyze_page, extract_data, navigate_to, fill_form, compare_screenshots
- Add session management tools: close, session_save, session_restore
- Include dist/ for plugin installation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Adam Ladachowski
2026-02-08 03:08:02 +01:00
parent ab03140803
commit bc1f3d9d73
50 changed files with 2218 additions and 5 deletions
+41
View File
@@ -0,0 +1,41 @@
export declare const icons: Record<string, string>;
export declare const cmdColor: Record<string, (s: string) => string>;
export declare function ts(): string;
export declare function truncate(str: string, max: number): string;
export interface CommandLike {
cmd: string;
url?: string;
selector?: string;
text?: string;
path?: string;
full?: boolean;
ms?: number;
script?: string;
}
export declare function getCommandDetail(cmd: CommandLike): string | undefined;
export declare function formatCommand(cmd: CommandLike): string;
export interface ResultLike {
ok: boolean;
error?: string;
title?: string;
url?: string;
count?: number;
path?: string;
html?: string;
result?: unknown;
}
export declare function formatResult(cmd: CommandLike, result: ResultLike): string;
export type LogFn = (msg: string) => void;
export declare function createLogger(logFn?: LogFn): {
command(cmd: CommandLike): void;
result(cmd: CommandLike, result: ResultLike): void;
};
export declare const logger: {
command(cmd: CommandLike): void;
result(cmd: CommandLike, result: ResultLike): void;
};
export declare const stderrLogger: {
command(cmd: CommandLike): void;
result(cmd: CommandLike, result: ResultLike): void;
};
//# sourceMappingURL=logger.d.ts.map