Connects to user's running Brave via Chrome DevTools Protocol to automate ChatGPT interaction. Uses puppeteer-core to open a tab, send the prompt, wait for response, and extract the result. No cookies, no separate profiles, no copy/paste. Just connects to the browser where the user is already logged in. One-time setup: relaunch Brave with --remote-debugging-port=9222 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
829 B
TypeScript
18 lines
829 B
TypeScript
/// <reference types="node" />
|
|
import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient';
|
|
/**
|
|
* Validates the provided SocksClientOptions
|
|
* @param options { SocksClientOptions }
|
|
* @param acceptedCommands { string[] } A list of accepted SocksProxy commands.
|
|
*/
|
|
declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void;
|
|
/**
|
|
* Validates the SocksClientChainOptions
|
|
* @param options { SocksClientChainOptions }
|
|
*/
|
|
declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void;
|
|
export { validateSocksClientOptions, validateSocksClientChainOptions };
|
|
export declare function ipv4ToInt32(ip: string): number;
|
|
export declare function int32ToIpv4(int32: number): string;
|
|
export declare function ipToBuffer(ip: string): Buffer;
|