ant0-browser 0.1.1 → 0.2.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.
- package/README.md +112 -4
- package/dist/canvas.d.ts +55 -0
- package/dist/canvas.d.ts.map +1 -0
- package/dist/canvas.js +82 -0
- package/dist/canvas.js.map +1 -0
- package/dist/chromium-version.d.ts +3 -3
- package/dist/chromium-version.js +3 -3
- package/dist/claim-hints.d.ts +36 -0
- package/dist/claim-hints.d.ts.map +1 -0
- package/dist/claim-hints.js +9 -0
- package/dist/claim-hints.js.map +1 -0
- package/dist/cleanup.d.ts +35 -0
- package/dist/cleanup.d.ts.map +1 -0
- package/dist/cleanup.js +106 -0
- package/dist/cleanup.js.map +1 -0
- package/dist/content.d.ts +11 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/content.js +52 -0
- package/dist/content.js.map +1 -0
- package/dist/download.d.ts +2 -0
- package/dist/download.d.ts.map +1 -1
- package/dist/download.js +14 -6
- package/dist/download.js.map +1 -1
- package/dist/errors.d.ts +49 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +53 -0
- package/dist/errors.js.map +1 -0
- package/dist/fingerprint.d.ts +42 -37
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/fingerprint.js +124 -24
- package/dist/fingerprint.js.map +1 -1
- package/dist/fontpack.d.ts.map +1 -1
- package/dist/fontpack.js +2 -1
- package/dist/fontpack.js.map +1 -1
- package/dist/fonts.js +1 -1
- package/dist/fonts.js.map +1 -1
- package/dist/geoip.d.ts.map +1 -1
- package/dist/geoip.js +3 -2
- package/dist/geoip.js.map +1 -1
- package/dist/geometry.d.ts +4 -0
- package/dist/geometry.d.ts.map +1 -1
- package/dist/geometry.js +9 -3
- package/dist/geometry.js.map +1 -1
- package/dist/identity-persistence.d.ts +38 -1
- package/dist/identity-persistence.d.ts.map +1 -1
- package/dist/identity-persistence.js +90 -10
- package/dist/identity-persistence.js.map +1 -1
- package/dist/identity.d.ts +41 -3
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +199 -26
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +69 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +415 -218
- package/dist/index.js.map +1 -1
- package/dist/launch-ticket.d.ts +109 -5
- package/dist/launch-ticket.d.ts.map +1 -1
- package/dist/launch-ticket.js +327 -11
- package/dist/launch-ticket.js.map +1 -1
- package/dist/launchopts.d.ts +181 -48
- package/dist/launchopts.d.ts.map +1 -1
- package/dist/launchopts.js +470 -51
- package/dist/launchopts.js.map +1 -1
- package/dist/native/linux-x64/PRODUCT-LICENSE.txt +28 -0
- package/dist/native/linux-x64/ant0_runtime.node +0 -0
- package/dist/native/windows-x64/PRODUCT-LICENSE.txt +28 -0
- package/dist/native/windows-x64/ant0_runtime.node +0 -0
- package/dist/persona-migration.d.ts +3 -0
- package/dist/persona-migration.d.ts.map +1 -1
- package/dist/persona-migration.js +2 -0
- package/dist/persona-migration.js.map +1 -1
- package/dist/persona-profile-v2.d.ts +15 -1
- package/dist/persona-profile-v2.d.ts.map +1 -1
- package/dist/persona-profile-v2.js +35 -2
- package/dist/persona-profile-v2.js.map +1 -1
- package/dist/persona-profile-v4.d.ts +61 -0
- package/dist/persona-profile-v4.d.ts.map +1 -0
- package/dist/persona-profile-v4.js +79 -0
- package/dist/persona-profile-v4.js.map +1 -0
- package/dist/persona-rejected.d.ts +36 -0
- package/dist/persona-rejected.d.ts.map +1 -0
- package/dist/persona-rejected.js +40 -0
- package/dist/persona-rejected.js.map +1 -0
- package/dist/population-model.d.ts +3 -0
- package/dist/population-model.d.ts.map +1 -1
- package/dist/population-model.js +24 -3
- package/dist/population-model.js.map +1 -1
- package/dist/profile-file.d.ts +201 -0
- package/dist/profile-file.d.ts.map +1 -0
- package/dist/profile-file.js +736 -0
- package/dist/profile-file.js.map +1 -0
- package/dist/release-fetch.d.ts +4 -0
- package/dist/release-fetch.d.ts.map +1 -1
- package/dist/release-fetch.js +3 -0
- package/dist/release-fetch.js.map +1 -1
- package/dist/render.js +2 -2
- package/dist/render.js.map +1 -1
- package/dist/runtime-client.d.ts +47 -0
- package/dist/runtime-client.d.ts.map +1 -0
- package/dist/runtime-client.js +327 -0
- package/dist/runtime-client.js.map +1 -0
- package/dist/runtime-launch.d.ts +22 -0
- package/dist/runtime-launch.d.ts.map +1 -0
- package/dist/runtime-launch.js +92 -0
- package/dist/runtime-launch.js.map +1 -0
- package/dist/scale.d.ts +29 -0
- package/dist/scale.d.ts.map +1 -0
- package/dist/scale.js +105 -0
- package/dist/scale.js.map +1 -0
- package/dist/shaderdialect.d.ts.map +1 -1
- package/dist/shaderdialect.js +2 -1
- package/dist/shaderdialect.js.map +1 -1
- package/dist/speech-coherence.d.ts +52 -0
- package/dist/speech-coherence.d.ts.map +1 -0
- package/dist/speech-coherence.js +254 -0
- package/dist/speech-coherence.js.map +1 -0
- package/dist/template-selection.d.ts.map +1 -1
- package/dist/template-selection.js +8 -7
- package/dist/template-selection.js.map +1 -1
- package/dist/warnings.d.ts +35 -4
- package/dist/warnings.d.ts.map +1 -1
- package/dist/warnings.js +139 -25
- package/dist/warnings.js.map +1 -1
- package/dist/webgl-coherence.d.ts +30 -0
- package/dist/webgl-coherence.d.ts.map +1 -0
- package/dist/webgl-coherence.js +98 -0
- package/dist/webgl-coherence.js.map +1 -0
- package/dist/webgpu-override.d.ts +14 -0
- package/dist/webgpu-override.d.ts.map +1 -0
- package/dist/webgpu-override.js +82 -0
- package/dist/webgpu-override.js.map +1 -0
- package/dist/widevine.d.ts.map +1 -1
- package/dist/widevine.js +11 -10
- package/dist/widevine.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChildProcess } from "node:child_process";
|
|
1
|
+
import { type ChildProcess, type SpawnOptions } from "node:child_process";
|
|
2
2
|
import type { Browser, BrowserContext, BrowserContextOptions, LaunchOptions as PlaywrightLaunchOptions } from "playwright-core";
|
|
3
3
|
import { type DownloadOptions } from "./download.js";
|
|
4
4
|
import { type Identity } from "./identity.js";
|
|
@@ -7,22 +7,34 @@ import { fetchWidevine, seedWidevine } from "./widevine.js";
|
|
|
7
7
|
export { resolveFontPack, packFamilies, PACK_VERSION as FONT_PACK_VERSION } from "./fontpack.js";
|
|
8
8
|
import { type ShaderDialect } from "./shaderdialect.js";
|
|
9
9
|
import { type LaunchTicketOption } from "./launch-ticket.js";
|
|
10
|
+
import type { RuntimeOptions } from "./runtime-client.js";
|
|
11
|
+
export { RuntimeError, type RuntimeOptions } from "./runtime-client.js";
|
|
12
|
+
export { SdkError, SdkInputError, SdkTypeError, SdkRangeError, reportFields, type CodedError, type ErrorClass } from "./errors.js";
|
|
10
13
|
export type { DownloadOptions } from "./download.js";
|
|
11
14
|
export { checkInstall, verifyInstall } from "./download.js";
|
|
12
15
|
export { resolveGeo, type Geo } from "./geoip.js";
|
|
13
16
|
export type { HumanizeOptions } from "./humanize.js";
|
|
17
|
+
export { installHumanizeOnContext } from "./humanize.js";
|
|
18
|
+
export { mulberry32, hashSeed, gaussFrom, makePersona, clickHold, keyDwell, minJerk, planMove, dragDwell, clickPoint, planAmbient, type Rng, type Persona, type Point, type Step, type PlanOpts, type Box, type Viewport, } from "./motion.js";
|
|
14
19
|
export { RELEASE, RELEASE_PUBLIC_KEY } from "./release.js";
|
|
15
20
|
export { installRelease, installedRelease, verifyMinisign, ReleaseError, SignatureError, type InstallReleaseOptions, type InstallProgress, type InstallProgressCallback } from "./release-fetch.js";
|
|
16
21
|
export { fetchWidevine, seedWidevine } from "./widevine.js";
|
|
17
22
|
export { checkRenderCoherence, type RenderVerdict } from "./render.js";
|
|
18
|
-
export {
|
|
23
|
+
export { setContent, type SetContentOptions } from "./content.js";
|
|
24
|
+
export { PersonaFileRejectedError, personaFileRejection, PERSONA_FILE_EXIT_CODE, PERSONA_FILE_REJECTED_CODE } from "./persona-rejected.js";
|
|
25
|
+
export { LaunchTicketRejectedError, LaunchTicketUnavailableError, launchTicketRejection, fetchLaunchTicket, discoverDaemon, resolveDaemonHome, inferEngineVersion, installedEngineVersion, resolveLaunchTicketArgs, hasLaunchTicketArg, LAUNCH_TICKET_SWITCH, LAUNCH_TICKET_ENV, LAUNCH_TICKET_EXIT_CODE, LAUNCH_TICKET_REJECTED_CODE, ENGINE_VERSION_ENV, type LaunchTicketOption, type DaemonLocation, } from "./launch-ticket.js";
|
|
19
26
|
export { assertPersonaProfileV2, parsePersonaProfileV2, validatePersonaProfileV2, InvalidPersonaProfileV2Error, WEBGL_PARAMETER_NAMES, WEBGPU_LIMIT_NAMES, type PersonaProfileV2, type PersonaProfileValidationError, type PersonaProfileValidationErrorCode, type PersonaProfileValidationResult, type PersonaMetadata, type PersonaCompatibility, type PersonaHardware, type PersonaDisplay, type PersonaLocale, type PersonaGraphics, type PersonaWebGL, type PersonaWebGLVersion, type PersonaWebGPU, type PersonaAudio, type PersonaFonts, type PersonaSpeech, type PersonaVoice, type PersonaMedia, type PersonaCodec, type PersonaMediaDevice, type WebGLParameterName, type WebGLValue, type WebGPULimitName, } from "./persona-profile-v2.js";
|
|
20
27
|
export { CHROMIUM_VERSION, CHROMIUM_MAJOR, CHROMIUM_UA_VERSION } from "./chromium-version.js";
|
|
21
28
|
export { migratePersonaBrowserMajor, needsMigration, personaBrowserMajor, PersonaMigrationError, MIGRATED_FIELDS, } from "./persona-migration.js";
|
|
22
29
|
export { selectPersonaTemplate, type PersonaTemplate, } from "./template-selection.js";
|
|
23
30
|
export { GENERATE_ALGORITHM, GENERATION_ORDER, PopulationModelError, loadPopulationModel, generatePersonaProfile, type PopulationModel, type PopulationModelValue, } from "./population-model.js";
|
|
24
|
-
export { IDENTITY_WRAPPER_VERSION, GENERATED_IDENTITY_WRAPPER_VERSION, TEMPLATE_SELECTION_ALGORITHM, GENERATE_ALGORITHM as GENERATE_IDENTITY_ALGORITHM, IdentityPersistenceError, resolveIdentityDirectory, identityFilename, loadOrCreateDeviceKey, validatePersistedIdentity, loadPersistedIdentity, createOrLoadIdentity, createOrLoadGeneratedIdentity, type PersistedIdentity, type GeneratedPersistedIdentity, type AnyPersistedIdentity, type IdentityPersistenceOptions, } from "./identity-persistence.js";
|
|
25
|
-
export {
|
|
31
|
+
export { IDENTITY_WRAPPER_VERSION, GENERATED_IDENTITY_WRAPPER_VERSION, TEMPLATE_SELECTION_ALGORITHM, GENERATE_ALGORITHM as GENERATE_IDENTITY_ALGORITHM, IdentityPersistenceError, resolveIdentityDirectory, identityFilename, loadOrCreateDeviceKey, validatePersistedIdentity, loadPersistedIdentity, createOrLoadIdentity, createOrLoadGeneratedIdentity, createOrLoadIssuedIdentity, ISSUED_IDENTITY_WRAPPER_VERSION, type IssuedIdentityRecord, type IssuedPersistedIdentity, type PersistedIdentity, type GeneratedPersistedIdentity, type AnyPersistedIdentity, type IdentityPersistenceOptions, } from "./identity-persistence.js";
|
|
32
|
+
export { CANVAS_NOISE_KEY_SWITCH, CANVAS_NOISE_KEY_LENGTH, CANVAS_NOISE_KEY_DOMAIN, canvasMode, isCanvasNoiseKey, newCanvasNoiseKey, deriveCanvasNoiseKey, canvasNoiseKeyFor, type CanvasMode, } from "./canvas.js";
|
|
33
|
+
export { canvasNoiseKeyOfIdentity } from "./identity.js";
|
|
34
|
+
export { assertPersonaProfileV4, isPersonaV4, PersonaV4SchemaError, type PersonaProfileV4 } from "./persona-profile-v4.js";
|
|
35
|
+
export { PROFILE_FILE_SWITCH, SDK_INFO_SWITCH, PROFILE_FILE_NAME, enginePersonaInfo, enginePersonaSchemas, parseSdkInfoSchemas, writePersonaProfileFile, type EnginePersonaInfo, } from "./profile-file.js";
|
|
36
|
+
export type { ClaimHints, ClaimLocale, ClaimBrand, ClaimHostGpuVendor } from "./claim-hints.js";
|
|
37
|
+
export { loadTemplateDirectory, loadCapturedProfile, resolveIdentity, prepareIdentityOptions, type Identity, type NativeIdentity, type CapturedIdentity, type SyntheticIdentity, type IdentityOverrides, type NetworkOverride, type ResolvedIdentity, type PreparedIdentityOptions, } from "./identity.js";
|
|
26
38
|
/** When true (and a proxy is set), resolve the proxy's exit-IP geo and auto-fill any unset
|
|
27
39
|
* `timezone` + `acceptLanguage` (+ `location`) so they match the proxy region. */
|
|
28
40
|
interface IdentityOption {
|
|
@@ -68,15 +80,13 @@ interface ShaderDialectOption {
|
|
|
68
80
|
}
|
|
69
81
|
/** Opt-in SOCKS5 UDP relaying (see {@link socks5UdpArgs}). */
|
|
70
82
|
interface Socks5UdpOption {
|
|
71
|
-
/**
|
|
72
|
-
* on the host's own path.
|
|
83
|
+
/** Ask for WebRTC UDP to be relayed through the SOCKS5 proxy (UDP ASSOCIATE).
|
|
73
84
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
85
|
+
* NOT IMPLEMENTED BY THE ENGINE: the `--socks5-udp` switch this sends is ignored by every engine
|
|
86
|
+
* release so far, so setting it changes nothing. Non-proxied UDP stays denied and peer
|
|
87
|
+
* connections that need UDP still fail. Kept for compatibility until the engine supports it.
|
|
77
88
|
*
|
|
78
|
-
* Applies only to a `socks5://` proxy; ignored otherwise.
|
|
79
|
-
* proxy that actually permits the ASSOCIATE command. */
|
|
89
|
+
* Applies only to a `socks5://` proxy; ignored otherwise. */
|
|
80
90
|
socks5Udp?: boolean;
|
|
81
91
|
}
|
|
82
92
|
/** Options for {@link launch}: Playwright launch options plus local Ant0 Browser controls. */
|
|
@@ -100,12 +110,12 @@ export interface PersistentContextOptions extends PlaywrightLaunchOptions, Brows
|
|
|
100
110
|
*/
|
|
101
111
|
widevine?: boolean;
|
|
102
112
|
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* legacy local cache. This function never performs a network request.
|
|
106
|
-
*/
|
|
113
|
+
/** Resolve the installed default without fetching a ticket. The returned path is informational;
|
|
114
|
+
* launch/serve resolve again and retain native proof through their immediate spawn. */
|
|
107
115
|
export declare function executablePath(options?: {
|
|
108
116
|
executablePath?: string;
|
|
117
|
+
runtime?: RuntimeOptions;
|
|
118
|
+
engineVersion?: string;
|
|
109
119
|
} & DownloadOptions): Promise<string>;
|
|
110
120
|
/**
|
|
111
121
|
* Launch Ant0 Browser and return a Playwright browser handle backed by a REAL Chrome profile.
|
|
@@ -139,6 +149,9 @@ export interface ServeOptions extends LaunchOptions {
|
|
|
139
149
|
headless?: boolean;
|
|
140
150
|
/** How long to wait for the CDP endpoint to come up (ms; default 30000). */
|
|
141
151
|
readyTimeoutMs?: number;
|
|
152
|
+
/** Seed the Widevine CDM into the served profile (as `launchPersistentContext` does) and add the
|
|
153
|
+
* switches the engine needs to register it. Best-effort: a failure leaves DRM off. */
|
|
154
|
+
widevine?: boolean;
|
|
142
155
|
}
|
|
143
156
|
/**
|
|
144
157
|
* Everything {@link serve} resolves BEFORE it spawns the binary, for a supervisor that must own the
|
|
@@ -152,8 +165,11 @@ export interface LaunchPlan {
|
|
|
152
165
|
/** Engine args, then the CDP + first-run hygiene switches, then `about:blank` when the caller
|
|
153
166
|
* passed no URL positional — exactly what `serve()` passes to `spawn`. */
|
|
154
167
|
args: string[];
|
|
155
|
-
/** The environment `serve()` spawns with: `process.env
|
|
156
|
-
*
|
|
168
|
+
/** The environment `serve()` spawns with: `process.env`, then the font wiring, then the caller's
|
|
169
|
+
* `env` (a variable the caller sets to `undefined` is removed), then the shader dialect, then the launch ticket in
|
|
170
|
+
* `ANT0_LAUNCH` (the same value as the `--ant0-launch=` in `args`; a caller's own `ANT0_LAUNCH` or `--ant0-launch=` is
|
|
171
|
+
* never overwritten, and the one that is missing is filled from the other). Entries
|
|
172
|
+
* whose value is `undefined` or `null` are dropped; the rest are stringified. */
|
|
157
173
|
env: Record<string, string>;
|
|
158
174
|
/** Resolved profile directory. A fresh temp dir is created when the caller passed none. */
|
|
159
175
|
userDataDir: string;
|
|
@@ -167,30 +183,58 @@ export interface LaunchPlan {
|
|
|
167
183
|
cdpUrl: string;
|
|
168
184
|
identityMode: "native" | "captured" | "synthetic";
|
|
169
185
|
headless: boolean;
|
|
186
|
+
/** Absolute path of the persona file written for a schema 4 persona (inside `userDataDir`), else
|
|
187
|
+
* undefined. The engine reads it once at startup: call {@link removePersonaFile} when the browser is
|
|
188
|
+
* up (or when the launch failed or the process exited). The next launch also removes a stale one. */
|
|
189
|
+
personaFile?: string;
|
|
190
|
+
/** Delete {@link personaFile}. Idempotent; a no-op without a schema 4 persona. */
|
|
191
|
+
removePersonaFile(): void;
|
|
192
|
+
/** Fresh verification for this spawn; use for automatic discovery. Raw fields are a snapshot. */
|
|
193
|
+
spawn?(options?: Pick<SpawnOptions, "stdio" | "detached" | "cwd">): Promise<ChildProcess>;
|
|
170
194
|
}
|
|
171
195
|
/**
|
|
196
|
+
* Stale tickets: unlike {@link serve}, a plan cannot retry for you. If your child exits 90 with `claim_expired` or
|
|
197
|
+
* `claim_stale` and the ticket was the SDK-fetched one (you passed no ticket of your own), build a fresh plan (or call
|
|
198
|
+
* `plan.spawn()` again, which fetches a new ticket) and respawn ONCE; do not retry any other reason.
|
|
199
|
+
*
|
|
172
200
|
* Resolve a {@link LaunchPlan} from {@link ServeOptions} without launching anything. This is the
|
|
173
201
|
* first half of {@link serve}; a supervisor spawns `plan.executable` with `plan.args` and
|
|
174
202
|
* `plan.env`, polls `plan.cdpUrl + "/json/version"` for readiness, and removes `plan.userDataDir`
|
|
175
203
|
* on exit when `plan.ownUserDataDir` is true. Side effects: may create the temp profile dir and,
|
|
176
204
|
* on Linux with a persona, resolve (and on first run download) the font pack.
|
|
205
|
+
*
|
|
206
|
+
* Spawn window: the plan carries a launch ticket that engines from ant0.11 accept only for about 5 minutes after it
|
|
207
|
+
* was issued. Spawn the plan promptly, and call `launchPlan` again for every (re)spawn; never respawn from an old plan.
|
|
177
208
|
*/
|
|
178
209
|
export declare function launchPlan(options?: ServeOptions): Promise<LaunchPlan>;
|
|
179
|
-
/** Handle for a standing ant0-browser CDP endpoint. Use `.cdpUrl` with any CDP client.
|
|
210
|
+
/** Handle for a standing ant0-browser CDP endpoint. Use `.cdpUrl` with any CDP client.
|
|
211
|
+
*
|
|
212
|
+
* Cleanup: call `close()`. Ctrl+C / SIGTERM cleanup is the application's job (the SDK installs no
|
|
213
|
+
* signal handlers). If the process exits without it, an exit hook stops the browser (SIGTERM) and
|
|
214
|
+
* removes the temp profile dir `serve()` created; a `userDataDir` you passed is never deleted. */
|
|
180
215
|
export declare class Server {
|
|
181
216
|
private readonly proc;
|
|
182
217
|
readonly host: string;
|
|
183
218
|
readonly port: number;
|
|
184
219
|
private readonly userDataDir;
|
|
185
220
|
private readonly ownUdd;
|
|
221
|
+
/** @internal How long close() waits after SIGTERM before it falls back to SIGKILL. */
|
|
222
|
+
private readonly graceMs;
|
|
186
223
|
/** OS process id of the browser (undefined only if the spawn never produced one). */
|
|
187
224
|
readonly pid: number | undefined;
|
|
188
|
-
|
|
225
|
+
private closing;
|
|
226
|
+
private readonly entry;
|
|
227
|
+
constructor(proc: ChildProcess, host: string, port: number, userDataDir: string, ownUdd: boolean,
|
|
228
|
+
/** @internal How long close() waits after SIGTERM before it falls back to SIGKILL. */
|
|
229
|
+
graceMs?: number);
|
|
189
230
|
/** HTTP CDP base — pass to `connectOverCDP` / `puppeteer.connect({ browserURL })`. */
|
|
190
231
|
get cdpUrl(): string;
|
|
191
232
|
/** The browser-level WebSocket URL (for clients that want `connect({ browserWSEndpoint })`). */
|
|
192
233
|
wsUrl(): Promise<string | undefined>;
|
|
193
234
|
isAlive(): boolean;
|
|
235
|
+
/** Stop the browser (SIGTERM, SIGKILL only after a timeout), wait for it to exit, then remove the
|
|
236
|
+
* temp profile dir if serve() created it. The server stays registered for the exit hook until all
|
|
237
|
+
* of that has finished, so `srv.close(); process.exit(0)` without await still cleans up. */
|
|
194
238
|
close(): Promise<void>;
|
|
195
239
|
}
|
|
196
240
|
/**
|
|
@@ -205,9 +249,12 @@ export declare class Server {
|
|
|
205
249
|
* ```
|
|
206
250
|
* Stays stealthy: the binary is launched **directly** (not through Playwright/Puppeteer), so the
|
|
207
251
|
* `--enable-automation` flag those frameworks add is never present and `navigator.webdriver` stays
|
|
208
|
-
* `false`; the engine's `Runtime.enable`
|
|
209
|
-
*
|
|
210
|
-
*
|
|
252
|
+
* `false`; the engine's `Runtime.enable` patch (110) stops `Runtime.enable` from running page code
|
|
253
|
+
* (no console-argument serialization, live or replayed, so no getter, Proxy trap or `toString`
|
|
254
|
+
* fires), which removes the best-known CDP tell. It does not make an attached client
|
|
255
|
+
* undetectable: whatever the client itself adds (init scripts, exposed bindings, emulation
|
|
256
|
+
* overrides, other CDP domains) is still its own to hide; the port binds to loopback with an origin
|
|
257
|
+
* allowlist; attaching over CDP adds no launch flags, so the served persona is preserved end to end.
|
|
211
258
|
*
|
|
212
259
|
* First-run hygiene: Playwright's `launch()` passes `--no-first-run`, `--no-default-browser-check`
|
|
213
260
|
* and `--disable-search-engine-choice-screen` on its own; `serve()`/`launchPlan()` add the same
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAS,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIjF,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,qBAAqB,EACrB,aAAa,IAAI,uBAAuB,EAEzC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,OAAO,EAA0B,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAA6C,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAuBhG,OAAO,EAAE,aAAa,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAM1E,OAAO,EAAE,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