clearcote 0.57.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,295 @@
1
+ // Playwright's request API (context.request, page.request) does not go through the browser. The
2
+ // driver sends it with Node's own HTTP client, through the proxy in Playwright's launch/context
3
+ // options (playwright-core: `proxy: this._context._options.proxy || this._context._browser.options.proxy`)
4
+ // and never through the browser's --proxy-server. A proxy WITH credentials goes to the engine's own
5
+ // switches (resolveProxy) and is removed from Playwright's options, so before this module those
6
+ // requests left from this machine's own IP: measured 2026-10-21 on SDK 0.55.1 + r46, an authenticated
7
+ // proxy logged the page's CONNECT and never saw context.request or page.request, both of which
8
+ // returned 200.
9
+ //
10
+ // The fix keeps the credentials away from Playwright (credentials there make its driver turn on Fetch
11
+ // interception and Network.setCacheDisabled for the whole context, the transport tell resolveProxy
12
+ // exists to avoid). Playwright gets a credential-less proxy on 127.0.0.1 instead; this forwarder adds
13
+ // the credentials and tunnels to the real proxy (HTTP/HTTPS CONNECT, or SOCKS5 with RFC 1929 auth and
14
+ // remote name resolution). The browser itself never uses it: Playwright puts its --proxy-server before
15
+ // the caller's args, ours comes later in the same argv and Chromium keeps the last value of a switch;
16
+ // the same holds for the --proxy-bypass-list it adds (`<-loopback>`), which requestProxyArgs overrides.
17
+ // Playwright's fetch always tunnels with CONNECT (HttpsProxyAgent), even for http:// URLs, so that is
18
+ // the one method served. Mirrors sdk/python/clearcote/_reqproxy.py and sdk/dotnet/src/Clearcote/RequestProxy.cs.
19
+ import * as net from "node:net";
20
+ import * as tls from "node:tls";
21
+ import { proxyCredentials } from "./launchopts.js";
22
+ const HEAD_LIMIT = 16 * 1024;
23
+ const HANDSHAKE_MS = 30_000;
24
+ /**
25
+ * The upstream the forwarder needs, or null when nothing has to be forwarded: no proxy, a proxy with
26
+ * no credentials, or one resolveProxy left with Playwright (it reaches context.request already).
27
+ * `proxyArgs` is what resolveProxy returned; credentials moved to the engine exactly when it holds
28
+ * a --proxy-server.
29
+ */
30
+ export function requestProxyUpstream(proxy, proxyArgs) {
31
+ if (!proxy || !proxyArgs.some((a) => a.startsWith("--proxy-server=")))
32
+ return null;
33
+ const { server, username, password } = proxyCredentials(proxy);
34
+ if (!username && !password)
35
+ return null;
36
+ let url;
37
+ try {
38
+ url = new URL(server);
39
+ }
40
+ catch {
41
+ return null;
42
+ }
43
+ const scheme = url.protocol.replace(/:$/, "").toLowerCase();
44
+ const protocol = scheme === "http" || scheme === "https" ? scheme : scheme === "socks5" || scheme === "socks5h" ? "socks5" : null;
45
+ if (!protocol || !url.hostname)
46
+ return null; // socks4 has no password auth: nothing a forwarder can add
47
+ const port = url.port ? Number(url.port) : protocol === "https" ? 443 : protocol === "socks5" ? 1080 : 80;
48
+ const host = url.hostname.replace(/^\[(.*)\]$/, "$1");
49
+ return { protocol, host, port, username, password };
50
+ }
51
+ /**
52
+ * Engine args that keep the browser's bypass list the caller's own: Playwright adds `<-loopback>`
53
+ * (proxy even loopback) whenever it is given a proxy, and an empty --proxy-bypass-list is the same as
54
+ * none to Chromium. Nothing to add when resolveProxy already wrote one.
55
+ */
56
+ export function requestProxyArgs(proxyArgs) {
57
+ return proxyArgs.some((a) => a.startsWith("--proxy-bypass-list=")) ? [] : ["--proxy-bypass-list="];
58
+ }
59
+ /** Start a forwarder on 127.0.0.1 (a free port) for `upstream`. */
60
+ export async function startRequestProxy(upstream, bypass) {
61
+ const sockets = new Set();
62
+ const server = net.createServer((client) => {
63
+ sockets.add(client);
64
+ client.on("close", () => sockets.delete(client));
65
+ handleClient(client, upstream, sockets);
66
+ });
67
+ server.unref(); // never keeps a script alive on its own
68
+ await new Promise((resolve, reject) => {
69
+ server.once("error", reject);
70
+ server.listen(0, "127.0.0.1", () => { server.off("error", reject); resolve(); });
71
+ });
72
+ const { port } = server.address();
73
+ const b = (bypass ?? "").trim();
74
+ return {
75
+ playwrightProxy: { server: `http://127.0.0.1:${port}`, ...(b ? { bypass: b } : {}) },
76
+ close: () => new Promise((resolve) => {
77
+ for (const s of sockets)
78
+ s.destroy();
79
+ server.close(() => resolve());
80
+ }),
81
+ };
82
+ }
83
+ function handleClient(client, upstream, sockets) {
84
+ client.setTimeout(HANDSHAKE_MS, () => client.destroy());
85
+ client.on("error", () => client.destroy());
86
+ readHead(client).then(async ({ head, rest }) => {
87
+ const [method, target] = head.split("\r\n", 1)[0].split(" ");
88
+ const dest = method === "CONNECT" ? parseHostPort(target) : null;
89
+ if (!dest) {
90
+ client.end("HTTP/1.1 405 Method Not Allowed\r\nConnection: close\r\nContent-Length: 0\r\n\r\n");
91
+ return;
92
+ }
93
+ let remote;
94
+ try {
95
+ remote = isLoopback(dest.host) ? await direct(dest.host, dest.port) : await openTunnel(upstream, dest.host, dest.port);
96
+ }
97
+ catch (e) {
98
+ const msg = String(e?.message ?? e).replace(/[\r\n]/g, " ").slice(0, 200);
99
+ client.end(`HTTP/1.1 502 Bad Gateway\r\nConnection: close\r\nX-Clearcote-Proxy-Error: ${msg}\r\nContent-Length: 0\r\n\r\n`);
100
+ return;
101
+ }
102
+ sockets.add(remote);
103
+ remote.on("close", () => sockets.delete(remote));
104
+ client.setTimeout(0);
105
+ remote.setTimeout(0);
106
+ client.write("HTTP/1.1 200 Connection Established\r\n\r\n");
107
+ if (rest.length)
108
+ remote.write(rest);
109
+ remote.on("error", () => client.destroy());
110
+ client.on("error", () => remote.destroy());
111
+ client.pipe(remote);
112
+ remote.pipe(client);
113
+ }).catch(() => client.destroy());
114
+ }
115
+ /** Read up to the end of an HTTP head; `rest` is whatever arrived after it. */
116
+ function readHead(sock) {
117
+ return new Promise((resolve, reject) => {
118
+ let buf = Buffer.alloc(0);
119
+ const onData = (chunk) => {
120
+ buf = Buffer.concat([buf, chunk]);
121
+ const end = buf.indexOf("\r\n\r\n");
122
+ if (end >= 0) {
123
+ sock.off("data", onData);
124
+ sock.off("end", onEnd);
125
+ sock.pause();
126
+ resolve({ head: buf.subarray(0, end).toString("latin1"), rest: buf.subarray(end + 4) });
127
+ }
128
+ else if (buf.length > HEAD_LIMIT) {
129
+ sock.off("data", onData);
130
+ reject(new Error("proxy response head too large"));
131
+ }
132
+ };
133
+ const onEnd = () => reject(new Error("connection closed before the end of the head"));
134
+ sock.on("data", onData);
135
+ sock.once("end", onEnd);
136
+ });
137
+ }
138
+ /**
139
+ * Loopback never goes through the proxy, as in Chromium (its implicit bypass rules): the request API
140
+ * reached localhost directly before the forwarder existed, and a remote proxy cannot reach it anyway.
141
+ */
142
+ export function isLoopback(host) {
143
+ const h = host.toLowerCase().replace(/\.$/, "");
144
+ return h === "localhost" || h.endsWith(".localhost") || /^127\.\d+\.\d+\.\d+$/.test(h) || h === "::1" || h === "0:0:0:0:0:0:0:1";
145
+ }
146
+ function direct(host, port) {
147
+ return new Promise((resolve, reject) => {
148
+ const sock = net.connect({ host, port });
149
+ sock.once("error", reject);
150
+ sock.once("connect", () => { sock.off("error", reject); resolve(sock); });
151
+ });
152
+ }
153
+ /** `host:port` or `[v6]:port`. */
154
+ export function parseHostPort(target) {
155
+ if (!target)
156
+ return null;
157
+ const m = /^\[([^\]]+)\]:(\d{1,5})$/.exec(target) ?? /^([^:\s]+):(\d{1,5})$/.exec(target);
158
+ if (!m)
159
+ return null;
160
+ const port = Number(m[2]);
161
+ return port > 0 && port < 65536 ? { host: m[1], port } : null;
162
+ }
163
+ function connect(upstream) {
164
+ return new Promise((resolve, reject) => {
165
+ const sock = upstream.protocol === "https"
166
+ ? tls.connect({ host: upstream.host, port: upstream.port, servername: net.isIP(upstream.host) ? undefined : upstream.host, ALPNProtocols: ["http/1.1"] })
167
+ : net.connect({ host: upstream.host, port: upstream.port });
168
+ const ready = upstream.protocol === "https" ? "secureConnect" : "connect";
169
+ sock.setTimeout(HANDSHAKE_MS, () => sock.destroy(new Error(`timed out connecting to the proxy ${upstream.host}:${upstream.port}`)));
170
+ sock.once("error", reject);
171
+ sock.once(ready, () => { sock.off("error", reject); resolve(sock); });
172
+ });
173
+ }
174
+ /** A socket already tunnelled through `upstream` to host:port. */
175
+ export async function openTunnel(upstream, host, port) {
176
+ const sock = await connect(upstream);
177
+ try {
178
+ if (upstream.protocol === "socks5")
179
+ await socks5Connect(sock, upstream, host, port);
180
+ else
181
+ await httpConnect(sock, upstream, host, port);
182
+ sock.setTimeout(0);
183
+ return sock;
184
+ }
185
+ catch (e) {
186
+ sock.destroy();
187
+ throw e;
188
+ }
189
+ }
190
+ async function httpConnect(sock, upstream, host, port) {
191
+ const authority = host.includes(":") ? `[${host}]:${port}` : `${host}:${port}`;
192
+ const token = Buffer.from(`${upstream.username}:${upstream.password}`, "utf8").toString("base64");
193
+ sock.write(`CONNECT ${authority} HTTP/1.1\r\nHost: ${authority}\r\nProxy-Authorization: Basic ${token}\r\n\r\n`);
194
+ const { head, rest } = await readHead(sock);
195
+ const status = head.split("\r\n", 1)[0];
196
+ if (!/^HTTP\/1\.[01] 2\d\d/.test(status))
197
+ throw new Error(`the proxy refused the tunnel: ${status}`);
198
+ if (rest.length)
199
+ sock.unshift(rest); // left paused: the pipe in handleClient starts the flow
200
+ }
201
+ /** Read exactly n bytes. */
202
+ function readN(sock, n) {
203
+ return new Promise((resolve, reject) => {
204
+ const tryRead = () => {
205
+ const b = sock.read(n);
206
+ if (b) {
207
+ cleanup();
208
+ resolve(b);
209
+ }
210
+ };
211
+ const onEnd = () => { cleanup(); reject(new Error("the SOCKS5 proxy closed the connection")); };
212
+ const onErr = (e) => { cleanup(); reject(e); };
213
+ const cleanup = () => { sock.off("readable", tryRead); sock.off("end", onEnd); sock.off("error", onErr); };
214
+ sock.on("readable", tryRead);
215
+ sock.once("end", onEnd);
216
+ sock.once("error", onErr);
217
+ tryRead();
218
+ });
219
+ }
220
+ const SOCKS_REPLY = {
221
+ 1: "general failure", 2: "connection not allowed by ruleset", 3: "network unreachable", 4: "host unreachable",
222
+ 5: "connection refused", 6: "TTL expired", 7: "command not supported", 8: "address type not supported",
223
+ };
224
+ async function socks5Connect(sock, upstream, host, port) {
225
+ const user = Buffer.from(upstream.username, "utf8");
226
+ const pass = Buffer.from(upstream.password, "utf8");
227
+ if (user.length > 255 || pass.length > 255)
228
+ throw new Error("SOCKS5 username and password are limited to 255 bytes each");
229
+ sock.write(Buffer.from([5, 1, 2])); // version 5, one method: username/password
230
+ const choice = await readN(sock, 2);
231
+ if (choice[0] !== 5 || choice[1] !== 2)
232
+ throw new Error("the SOCKS5 proxy does not accept username/password authentication");
233
+ sock.write(Buffer.concat([Buffer.from([1, user.length]), user, Buffer.from([pass.length]), pass]));
234
+ const auth = await readN(sock, 2);
235
+ if (auth[1] !== 0)
236
+ throw new Error("the SOCKS5 proxy rejected the username or password");
237
+ let addr;
238
+ const family = net.isIP(host);
239
+ const v6 = family === 6 ? ipv6Bytes(host) : null;
240
+ if (family === 4)
241
+ addr = Buffer.from([1, ...host.split(".").map(Number)]);
242
+ else if (v6)
243
+ addr = Buffer.concat([Buffer.from([4]), v6]);
244
+ else {
245
+ const name = Buffer.from(host, "utf8"); // the proxy resolves the name, as the browser's SOCKS5 does
246
+ if (name.length > 255)
247
+ throw new Error("host name too long for SOCKS5");
248
+ addr = Buffer.concat([Buffer.from([3, name.length]), name]);
249
+ }
250
+ sock.write(Buffer.concat([Buffer.from([5, 1, 0]), addr, Buffer.from([port >> 8, port & 0xff])]));
251
+ const head = await readN(sock, 4);
252
+ if (head[1] !== 0)
253
+ throw new Error(`the SOCKS5 proxy could not connect: ${SOCKS_REPLY[head[1]] ?? `reply ${head[1]}`}`);
254
+ const len = head[3] === 1 ? 4 : head[3] === 4 ? 16 : (await readN(sock, 1))[0];
255
+ await readN(sock, len + 2); // bound address + port, unused
256
+ }
257
+ /** The 16 bytes of an IPv6 literal; null for a form with an embedded IPv4 tail (sent as a name instead). */
258
+ export function ipv6Bytes(ip) {
259
+ if (ip.includes(".") || ip.includes("%"))
260
+ return null;
261
+ const halves = ip.split("::");
262
+ if (halves.length > 2)
263
+ return null;
264
+ const left = halves[0] ? halves[0].split(":") : [];
265
+ const right = halves.length === 2 && halves[1] ? halves[1].split(":") : [];
266
+ const fill = halves.length === 2 ? 8 - left.length - right.length : 0;
267
+ const groups = [...left, ...Array(Math.max(fill, 0)).fill("0"), ...right];
268
+ if (groups.length !== 8 || groups.some((g) => !/^[0-9a-fA-F]{1,4}$/.test(g)))
269
+ return null;
270
+ const out = Buffer.alloc(16);
271
+ groups.forEach((g, i) => out.writeUInt16BE(parseInt(g, 16), i * 2));
272
+ return out;
273
+ }
274
+ /**
275
+ * Start the forwarder when resolveProxy moved the credentials to the engine, else null. A failure to
276
+ * start never fails the launch: it warns that the request API will not use the proxy.
277
+ */
278
+ export async function routeRequestApi(proxy, proxyArgs, quiet) {
279
+ const upstream = requestProxyUpstream(proxy, proxyArgs);
280
+ if (!upstream)
281
+ return null;
282
+ try {
283
+ return { proxy: await startRequestProxy(upstream, proxy?.bypass), args: requestProxyArgs(proxyArgs) };
284
+ }
285
+ catch (e) {
286
+ if (!quiet)
287
+ console.warn(`clearcote: could not start the local proxy for context.request (${String(e?.message ?? e)}); context.request and page.request will connect from this machine's IP, not through your proxy.`);
288
+ return null;
289
+ }
290
+ }
291
+ /** A launch's `.catch`: stop the forwarder when the browser never came up, then rethrow. */
292
+ export function closeOnFailure(route) {
293
+ return async (e) => { await route?.proxy.close().catch(() => { }); throw e; };
294
+ }
295
+ //# sourceMappingURL=reqproxy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reqproxy.js","sourceRoot":"","sources":["../src/reqproxy.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,gGAAgG;AAChG,2GAA2G;AAC3G,oGAAoG;AACpG,gGAAgG;AAChG,sGAAsG;AACtG,+FAA+F;AAC/F,gBAAgB;AAChB,EAAE;AACF,sGAAsG;AACtG,mGAAmG;AACnG,sGAAsG;AACtG,sGAAsG;AACtG,uGAAuG;AACvG,sGAAsG;AACtG,wGAAwG;AACxG,sGAAsG;AACtG,iHAAiH;AACjH,OAAO,KAAK,GAAG,MAAM,UAAU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AO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACpE,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAA0B,EAAE,SAA4B,EAAE,KAAe;IAEzE,MAAM,QAAQ,GAAG,oBAAoB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACxD,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,CAAC;QACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC;IACxG,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,KAAK;YAAE,OAAO,CAAC,IAAI,CAAC,mEAAmE,MAAM,CAAE,CAAW,EAAE,OAAO,IAAI,CAAC,CAAC,kGAAkG,CAAC,CAAC;QAClO,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,cAAc,CAAC,KAAqC;IAClE,OAAO,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clearcote",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "description": "Playwright drop-in for the Clearcote anti-fingerprint Chromium build. launch() returns a standard Playwright Browser backed by the verified Clearcote binary, which is auto-downloaded and SHA-256 checked.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",