ant0-browser 0.0.0-stage → 0.1.1
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/LICENSE +35 -0
- package/README.md +100 -2
- package/dist/chromium-version.d.ts +22 -0
- package/dist/chromium-version.d.ts.map +1 -0
- package/dist/chromium-version.js +22 -0
- package/dist/chromium-version.js.map +1 -0
- package/dist/download.d.ts +22 -0
- package/dist/download.d.ts.map +1 -0
- package/dist/download.js +219 -0
- package/dist/download.js.map +1 -0
- package/dist/fingerprint.d.ts +213 -0
- package/dist/fingerprint.d.ts.map +1 -0
- package/dist/fingerprint.js +375 -0
- package/dist/fingerprint.js.map +1 -0
- package/dist/fontpack.d.ts +13 -0
- package/dist/fontpack.d.ts.map +1 -0
- package/dist/fontpack.js +149 -0
- package/dist/fontpack.js.map +1 -0
- package/dist/fonts.d.ts +15 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +86 -0
- package/dist/fonts.js.map +1 -0
- package/dist/geoip.d.ts +45 -0
- package/dist/geoip.d.ts.map +1 -0
- package/dist/geoip.js +289 -0
- package/dist/geoip.js.map +1 -0
- package/dist/geometry.d.ts +28 -0
- package/dist/geometry.d.ts.map +1 -0
- package/dist/geometry.js +79 -0
- package/dist/geometry.js.map +1 -0
- package/dist/humanize.d.ts +20 -0
- package/dist/humanize.d.ts.map +1 -0
- package/dist/humanize.js +921 -0
- package/dist/humanize.js.map +1 -0
- package/dist/identity-persistence.d.ts +51 -0
- package/dist/identity-persistence.d.ts.map +1 -0
- package/dist/identity-persistence.js +301 -0
- package/dist/identity-persistence.js.map +1 -0
- package/dist/identity.d.ts +43 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +197 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +234 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +593 -0
- package/dist/index.js.map +1 -0
- package/dist/launch-ticket.d.ts +87 -0
- package/dist/launch-ticket.d.ts.map +1 -0
- package/dist/launch-ticket.js +233 -0
- package/dist/launch-ticket.js.map +1 -0
- package/dist/launchopts.d.ts +133 -0
- package/dist/launchopts.d.ts.map +1 -0
- package/dist/launchopts.js +204 -0
- package/dist/launchopts.js.map +1 -0
- package/dist/motion.d.ts +106 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +311 -0
- package/dist/motion.js.map +1 -0
- package/dist/motionscore.d.ts +57 -0
- package/dist/motionscore.d.ts.map +1 -0
- package/dist/motionscore.js +215 -0
- package/dist/motionscore.js.map +1 -0
- package/dist/persona-migration.d.ts +51 -0
- package/dist/persona-migration.d.ts.map +1 -0
- package/dist/persona-migration.js +95 -0
- package/dist/persona-migration.js.map +1 -0
- package/dist/persona-profile-v2.d.ts +155 -0
- package/dist/persona-profile-v2.d.ts.map +1 -0
- package/dist/persona-profile-v2.js +421 -0
- package/dist/persona-profile-v2.js.map +1 -0
- package/dist/population-model.d.ts +42 -0
- package/dist/population-model.d.ts.map +1 -0
- package/dist/population-model.js +224 -0
- package/dist/population-model.js.map +1 -0
- package/dist/release-fetch.d.ts +70 -0
- package/dist/release-fetch.d.ts.map +1 -0
- package/dist/release-fetch.js +392 -0
- package/dist/release-fetch.js.map +1 -0
- package/dist/release.d.ts +16 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +26 -0
- package/dist/release.js.map +1 -0
- package/dist/render.d.ts +38 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +104 -0
- package/dist/render.js.map +1 -0
- package/dist/shaderdialect.d.ts +33 -0
- package/dist/shaderdialect.d.ts.map +1 -0
- package/dist/shaderdialect.js +46 -0
- package/dist/shaderdialect.js.map +1 -0
- package/dist/template-selection.d.ts +14 -0
- package/dist/template-selection.d.ts.map +1 -0
- package/dist/template-selection.js +65 -0
- package/dist/template-selection.js.map +1 -0
- package/dist/warnings.d.ts +19 -0
- package/dist/warnings.d.ts.map +1 -0
- package/dist/warnings.js +159 -0
- package/dist/warnings.js.map +1 -0
- package/dist/widevine.d.ts +44 -0
- package/dist/widevine.d.ts.map +1 -0
- package/dist/widevine.js +202 -0
- package/dist/widevine.js.map +1 -0
- package/package.json +56 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
// Ant0 Browser — Playwright drop-in.
|
|
2
|
+
//
|
|
3
|
+
// import { launch } from "ant0-browser";
|
|
4
|
+
// const browser = await launch({ identity: { mode: "native" } });
|
|
5
|
+
// const page = await browser.newPage();
|
|
6
|
+
// await page.goto("https://abrahamjuliot.github.io/creepjs/");
|
|
7
|
+
//
|
|
8
|
+
// launch() returns a standard Playwright `Browser`, backed by a caller-provided local binary.
|
|
9
|
+
// Every Playwright launch option (headless, proxy, args, timeout, ...) passes through. Identity is
|
|
10
|
+
// selected with the strict native, captured, or synthetic API.
|
|
11
|
+
import { chromium } from "playwright-core";
|
|
12
|
+
import { mkdtempSync, rmSync } from "node:fs";
|
|
13
|
+
import { spawn } from "node:child_process";
|
|
14
|
+
import { createServer } from "node:net";
|
|
15
|
+
import { tmpdir } from "node:os";
|
|
16
|
+
import { join } from "node:path";
|
|
17
|
+
import { checkInstall, ensureBinary } from "./download.js";
|
|
18
|
+
import { fingerprintArgs, splitFingerprintOptions } from "./fingerprint.js";
|
|
19
|
+
import { prepareIdentityOptions } from "./identity.js";
|
|
20
|
+
import { installHumanize, installHumanizeOnContext } from "./humanize.js";
|
|
21
|
+
import { FIRST_RUN_HYGIENE_ARGS, defaultStartUrlArgs, extensionArgs, resolveProxy, mergeFeatureFlags, privacySandboxArgs, quicArgs, socks5UdpArgs, webBluetoothArgs, webrtcDefaultDenyArgs, } from "./launchopts.js";
|
|
22
|
+
import { RELEASE, platformRelease } from "./release.js";
|
|
23
|
+
import { fetchWidevine, seedWidevine, widevineArgs } from "./widevine.js";
|
|
24
|
+
import { emitCoherenceWarnings, gpuHostMissingFor } from "./warnings.js";
|
|
25
|
+
import { fontLaunchEnv } from "./fonts.js";
|
|
26
|
+
import { resolveFontPack } from "./fontpack.js";
|
|
27
|
+
export { resolveFontPack, packFamilies, PACK_VERSION as FONT_PACK_VERSION } from "./fontpack.js";
|
|
28
|
+
import { withShaderDialect } from "./shaderdialect.js";
|
|
29
|
+
import { LaunchTicketRejectedError, resolveLaunchTicketArgs, rethrowIfTicketRejected, launchTicketRejection, LAUNCH_TICKET_EXIT_CODE, } from "./launch-ticket.js";
|
|
30
|
+
import { applyHeadlessGeometry, initialWindowArgs, } from "./geometry.js";
|
|
31
|
+
export { checkInstall, verifyInstall } from "./download.js";
|
|
32
|
+
export { resolveGeo } from "./geoip.js";
|
|
33
|
+
export { RELEASE, RELEASE_PUBLIC_KEY } from "./release.js";
|
|
34
|
+
export { installRelease, installedRelease, verifyMinisign, ReleaseError, SignatureError } from "./release-fetch.js";
|
|
35
|
+
export { fetchWidevine, seedWidevine } from "./widevine.js";
|
|
36
|
+
export { checkRenderCoherence } from "./render.js";
|
|
37
|
+
export { LaunchTicketRejectedError, LaunchTicketUnavailableError, launchTicketRejection, fetchLaunchTicket, discoverDaemon, resolveDaemonHome, inferEngineVersion, resolveLaunchTicketArgs, hasLaunchTicketArg, LAUNCH_TICKET_SWITCH, LAUNCH_TICKET_EXIT_CODE, LAUNCH_TICKET_REJECTED_CODE, ENGINE_VERSION_ENV, } from "./launch-ticket.js";
|
|
38
|
+
export { assertPersonaProfileV2, parsePersonaProfileV2, validatePersonaProfileV2, InvalidPersonaProfileV2Error, WEBGL_PARAMETER_NAMES, WEBGPU_LIMIT_NAMES, } from "./persona-profile-v2.js";
|
|
39
|
+
export { CHROMIUM_VERSION, CHROMIUM_MAJOR, CHROMIUM_UA_VERSION } from "./chromium-version.js";
|
|
40
|
+
export { migratePersonaBrowserMajor, needsMigration, personaBrowserMajor, PersonaMigrationError, MIGRATED_FIELDS, } from "./persona-migration.js";
|
|
41
|
+
export { selectPersonaTemplate, } from "./template-selection.js";
|
|
42
|
+
export { GENERATE_ALGORITHM, GENERATION_ORDER, PopulationModelError, loadPopulationModel, generatePersonaProfile, } from "./population-model.js";
|
|
43
|
+
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, } from "./identity-persistence.js";
|
|
44
|
+
export { loadTemplateDirectory, loadCapturedProfile, resolveIdentity, prepareIdentityOptions, } from "./identity.js";
|
|
45
|
+
/** Resolve the real Windows font pack for a launch (Linux + persona only), else undefined. */
|
|
46
|
+
async function fontPackForLaunch(identityMode, resolveFonts, quiet) {
|
|
47
|
+
if (resolveFonts === false || process.platform !== "linux")
|
|
48
|
+
return undefined;
|
|
49
|
+
if (identityMode !== "captured" && identityMode !== "synthetic")
|
|
50
|
+
return undefined;
|
|
51
|
+
return resolveFontPack({ quiet });
|
|
52
|
+
}
|
|
53
|
+
function ensureRunnableHere(exe) {
|
|
54
|
+
if (platformRelease() === undefined) {
|
|
55
|
+
throw new Error(`Ant0 Browser ${RELEASE.version} ships Windows x64 and Linux x64 binaries — there is no build for '${process.platform}'.\n` +
|
|
56
|
+
`Run on Windows or Linux, or pass executablePath to a compatible binary.\n` +
|
|
57
|
+
`(The resolved local binary is: ${exe})`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the Ant0 Browser executable from an explicit path, `ANT0_BROWSER_BINARY`, or an existing
|
|
62
|
+
* legacy local cache. This function never performs a network request.
|
|
63
|
+
*/
|
|
64
|
+
export async function executablePath(options = {}) {
|
|
65
|
+
if (options.executablePath) {
|
|
66
|
+
// Caller-supplied tree (often a browser bundled into a packaged app): we did not install it, so
|
|
67
|
+
// validate it here — a half-copied tree otherwise CHECK-crashes during browser startup.
|
|
68
|
+
checkInstall(options.executablePath);
|
|
69
|
+
return options.executablePath;
|
|
70
|
+
}
|
|
71
|
+
if (process.env.ANT0_BROWSER_BINARY) {
|
|
72
|
+
checkInstall(process.env.ANT0_BROWSER_BINARY);
|
|
73
|
+
return process.env.ANT0_BROWSER_BINARY;
|
|
74
|
+
}
|
|
75
|
+
return ensureBinary({ cacheDir: options.cacheDir, quiet: options.quiet });
|
|
76
|
+
}
|
|
77
|
+
/** Headless context defaults ride on newPage/newContext because `chromium.launch()` takes none. */
|
|
78
|
+
function installHeadlessGeometry(browser, geom) {
|
|
79
|
+
const defaults = geom.mode === "native"
|
|
80
|
+
? { viewport: null }
|
|
81
|
+
: { screen: geom.screen, viewport: geom.viewport };
|
|
82
|
+
const merge = (o = {}) => "viewport" in o || "screen" in o ? o : { ...o, ...defaults };
|
|
83
|
+
const origNewPage = browser.newPage.bind(browser);
|
|
84
|
+
const origNewContext = browser.newContext.bind(browser);
|
|
85
|
+
browser.newPage =
|
|
86
|
+
async (o = {}) => origNewPage(merge(o));
|
|
87
|
+
browser.newContext =
|
|
88
|
+
async (o = {}) => origNewContext(merge(o));
|
|
89
|
+
}
|
|
90
|
+
/** A headed launch with Playwright's default emulated viewport (1280x720) on the real OS window
|
|
91
|
+
* makes window.innerWidth/Height disagree with the actual window — an impossible-window tell. For a
|
|
92
|
+
* headed browser, default new pages/contexts to `viewport: null` (innerWidth tracks the real window)
|
|
93
|
+
* unless the caller asked for a viewport. */
|
|
94
|
+
function installHeadedViewport(browser) {
|
|
95
|
+
const origNewPage = browser.newPage.bind(browser);
|
|
96
|
+
browser.newPage = (o = {}) => origNewPage("viewport" in o || "screen" in o ? o : { ...o, viewport: null });
|
|
97
|
+
const origNewContext = browser.newContext.bind(browser);
|
|
98
|
+
browser.newContext = (o = {}) => origNewContext("viewport" in o || "screen" in o ? o : { ...o, viewport: null });
|
|
99
|
+
}
|
|
100
|
+
/** Assemble the final engine args from all layers: identity + extensions + proxy, the
|
|
101
|
+
* Privacy-Sandbox-disable default, the WebRTC leak-proof default, and the user's own args — then
|
|
102
|
+
* collapse all --enable-features/--disable-features into one each (Chromium keeps only the last). */
|
|
103
|
+
function assembleArgs(fpArgs, extArgs, proxyArgs, disablePrivacySandbox, webrtcIp, userArgs, proxyForQuic, socks5Udp) {
|
|
104
|
+
// webBluetoothArgs: Linux hosts hide navigator.bluetooth while exposing usb/serial/hid, an
|
|
105
|
+
// OS-origin tell on a Windows persona. No-op off Linux.
|
|
106
|
+
const base = [...fpArgs, ...extArgs, ...proxyArgs, ...quicArgs(proxyForQuic), ...socks5UdpArgs(socks5Udp, proxyForQuic), ...webBluetoothArgs()];
|
|
107
|
+
// DEFAULT FLIPPED IN 0.23.0 — opt IN to disabling, rather than opt out.
|
|
108
|
+
//
|
|
109
|
+
// Keep these APIs enabled unless the caller explicitly requests the de-Googled policy.
|
|
110
|
+
if (disablePrivacySandbox === true)
|
|
111
|
+
base.push(...privacySandboxArgs());
|
|
112
|
+
base.push(...webrtcDefaultDenyArgs([...base, ...userArgs], webrtcIp));
|
|
113
|
+
return mergeFeatureFlags([...base, ...userArgs]);
|
|
114
|
+
}
|
|
115
|
+
function applyIdentityOption(options) {
|
|
116
|
+
const prepared = prepareIdentityOptions(options);
|
|
117
|
+
return { options: prepared.options, identityMode: prepared.identityMode };
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Delete a throwaway profile directory once its context closes.
|
|
121
|
+
*
|
|
122
|
+
* THE RETRY IS NOT DEFENSIVE PADDING — a single attempt measurably does not work. On Windows the
|
|
123
|
+
* browser still holds handles under the profile directory for a short window after `close()`
|
|
124
|
+
* resolves, so the first removal throws EBUSY/EPERM. Measured on the first build of this change
|
|
125
|
+
* (Python port): the directory survived a close plus a 1.5s wait and leaked silently.
|
|
126
|
+
*
|
|
127
|
+
* Two triggers, because neither alone is enough: `close` covers an orderly shutdown, and the
|
|
128
|
+
* process-exit hook covers a script that throws or is interrupted with the browser still open.
|
|
129
|
+
* Both funnel through one idempotent remove.
|
|
130
|
+
*/
|
|
131
|
+
function installEphemeralProfileCleanup(context, userDataDir) {
|
|
132
|
+
let done = false;
|
|
133
|
+
const remove = async () => {
|
|
134
|
+
if (done)
|
|
135
|
+
return;
|
|
136
|
+
for (let attempt = 0; attempt < 6; attempt++) {
|
|
137
|
+
try {
|
|
138
|
+
rmSync(userDataDir, { recursive: true, force: true });
|
|
139
|
+
done = true;
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
await new Promise((r) => setTimeout(r, 250 * (attempt + 1))); // 0.25→1.5s, ~5s total
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
// Synchronous: an exit handler cannot await, and an unresolved promise at exit removes nothing.
|
|
148
|
+
const onExit = () => {
|
|
149
|
+
if (done)
|
|
150
|
+
return;
|
|
151
|
+
try {
|
|
152
|
+
rmSync(userDataDir, { recursive: true, force: true });
|
|
153
|
+
}
|
|
154
|
+
catch { /* temp sweeper gets it */ }
|
|
155
|
+
};
|
|
156
|
+
process.once("exit", onExit);
|
|
157
|
+
context.on("close", () => {
|
|
158
|
+
void remove().finally(() => {
|
|
159
|
+
if (done)
|
|
160
|
+
process.removeListener("exit", onExit);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Make a persistent BrowserContext satisfy code written against launch()'s Browser.
|
|
166
|
+
*
|
|
167
|
+
* `newContext()` returns THE PERSISTENT CONTEXT ITSELF rather than a fresh incognito one. That is
|
|
168
|
+
* deliberate: a real incognito context would silently leave the profile behind — taking the
|
|
169
|
+
* Widevine CDM and the component-updated state with it — handing back exactly the browser this
|
|
170
|
+
* change exists to stop producing. Two calls returning the same context is a visible, documented
|
|
171
|
+
* compromise; quietly returning a profile-less browser is not.
|
|
172
|
+
*/
|
|
173
|
+
function asBrowserLike(context) {
|
|
174
|
+
const c = context;
|
|
175
|
+
if (c.newContext === undefined)
|
|
176
|
+
c.newContext = async () => context;
|
|
177
|
+
if (c.contexts === undefined)
|
|
178
|
+
c.contexts = () => [context];
|
|
179
|
+
return context;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Launch Ant0 Browser and return a Playwright browser handle backed by a REAL Chrome profile.
|
|
183
|
+
*
|
|
184
|
+
* PROFILE-BACKED BY DEFAULT (changed in 0.23.0). This used to be `chromium.launch()` — incognito,
|
|
185
|
+
* no profile directory. Incognito cannot load a component-updated CDM, so
|
|
186
|
+
* `requestMediaKeySystemAccess('com.widevine.alpha')` rejected and the EME surface was a
|
|
187
|
+
* no-Widevine tell on a build branded Google Chrome (measured against the live audit on 150-r10).
|
|
188
|
+
* It now launches a persistent context on a throwaway directory, so `widevine: true` works here.
|
|
189
|
+
*
|
|
190
|
+
* The directory is deleted when the context closes AND on process exit, so nothing is left behind
|
|
191
|
+
* and no state survives to the next launch — the incognito-like isolation callers relied on is
|
|
192
|
+
* preserved. Pass `userDataDir` to keep a profile, or `ephemeralProfile: false` to opt back out.
|
|
193
|
+
*/
|
|
194
|
+
export async function launch(options = {}) {
|
|
195
|
+
// ephemeralProfile: false restores the pre-0.23 incognito launch. Kept because the persistent
|
|
196
|
+
// path costs a directory create+delete per launch, which a caller spawning hundreds of
|
|
197
|
+
// short-lived browsers may reasonably not want to pay for a CDM they never touch.
|
|
198
|
+
const { ephemeralProfile, userDataDir, ...restOpts } = options;
|
|
199
|
+
if (userDataDir !== undefined) {
|
|
200
|
+
return asBrowserLike(await launchPersistentContext(userDataDir, restOpts));
|
|
201
|
+
}
|
|
202
|
+
if (ephemeralProfile !== false) {
|
|
203
|
+
const dir = mkdtempSync(join(tmpdir(), "ant0-browser-run-"));
|
|
204
|
+
let context;
|
|
205
|
+
try {
|
|
206
|
+
context = await launchPersistentContext(dir, restOpts);
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
try {
|
|
210
|
+
rmSync(dir, { recursive: true, force: true });
|
|
211
|
+
}
|
|
212
|
+
catch { /* preserve launch error */ }
|
|
213
|
+
throw error;
|
|
214
|
+
}
|
|
215
|
+
installEphemeralProfileCleanup(context, dir);
|
|
216
|
+
return asBrowserLike(context);
|
|
217
|
+
}
|
|
218
|
+
return launchIncognito(restOpts);
|
|
219
|
+
}
|
|
220
|
+
/** The pre-0.23 incognito launch, reached via `ephemeralProfile: false`. */
|
|
221
|
+
async function launchIncognito(options = {}) {
|
|
222
|
+
const identity = applyIdentityOption(options);
|
|
223
|
+
options = identity.options;
|
|
224
|
+
const { extensions, shaderDialect, socks5Udp, disablePrivacySandbox, executablePath: exeOption, args, humanize, showCursor, cacheDir, quiet, resolveFonts, launchTicket, engineVersion, ...rest } = options;
|
|
225
|
+
const { fingerprint, rest: pwOptions } = splitFingerprintOptions(rest);
|
|
226
|
+
const proxyOpt = pwOptions.proxy; // captured before resolveProxy runs
|
|
227
|
+
// resolveProxy throws for a credentialed SOCKS proxy (nothing in the stack can authenticate to
|
|
228
|
+
// one; use a relay). Every other shape is left to Playwright unchanged.
|
|
229
|
+
const { args: proxyArgs, proxy } = resolveProxy(pwOptions.proxy);
|
|
230
|
+
if (proxy === undefined)
|
|
231
|
+
delete pwOptions.proxy;
|
|
232
|
+
emitCoherenceWarnings({ ...fingerprint, proxy: proxyOpt, geoip: false, headless: pwOptions.headless, _userArgs: args ?? [],
|
|
233
|
+
_gpuHostMissing: gpuHostMissingFor(fingerprint, identity.identityMode) }, quiet, process.platform, String(RELEASE.version).split(".")[0]);
|
|
234
|
+
const exe = await executablePath({ executablePath: exeOption, cacheDir, quiet });
|
|
235
|
+
ensureRunnableHere(exe);
|
|
236
|
+
const headed = pwOptions.headless === false;
|
|
237
|
+
// On Linux, point FONTCONFIG_FILE at the bundled metric-compatible clones (Segoe UI, Arial, …).
|
|
238
|
+
const packDir = await fontPackForLaunch(identity.identityMode, resolveFonts, Boolean(quiet));
|
|
239
|
+
const launchEnv = withShaderDialect(shaderDialect, fontLaunchEnv(exe, pwOptions.env, packDir));
|
|
240
|
+
let engineArgs = assembleArgs(fingerprintArgs(fingerprint, true), extensionArgs(extensions), proxyArgs, disablePrivacySandbox, fingerprint.webrtcIp, args ?? [], proxyOpt, socks5Udp);
|
|
241
|
+
// Headless: screen.* has to be handled alongside the viewport or the window reports a geometry no
|
|
242
|
+
// real browser can (see ./geometry.ts). Probe a copy — viewport/screen are context options, which
|
|
243
|
+
// chromium.launch() does not take — and carry the result to newPage/newContext.
|
|
244
|
+
const geom = headed
|
|
245
|
+
? null
|
|
246
|
+
: identity.identityMode === "native"
|
|
247
|
+
? { mode: "native" }
|
|
248
|
+
: applyHeadlessGeometry({ ...pwOptions }, fingerprint.fingerprint, engineArgs);
|
|
249
|
+
engineArgs = initialWindowArgs(engineArgs, geom);
|
|
250
|
+
// Engine patch 0037: the caller's ticket, or one from the local daemon (see ./launch-ticket.ts).
|
|
251
|
+
engineArgs = [...engineArgs, ...(await resolveLaunchTicketArgs({ launchTicket, engineVersion, executable: exe, args: engineArgs, quiet }))];
|
|
252
|
+
let browser;
|
|
253
|
+
try {
|
|
254
|
+
browser = await chromium.launch({
|
|
255
|
+
// Drop Playwright's default --enable-automation so the engine's AutomationControlled feature
|
|
256
|
+
// stays off (it flips webdriver-adjacent tells). Caller can override via ignoreDefaultArgs.
|
|
257
|
+
ignoreDefaultArgs: ["--enable-automation"],
|
|
258
|
+
...pwOptions,
|
|
259
|
+
executablePath: exe,
|
|
260
|
+
...(launchEnv ? { env: launchEnv } : {}),
|
|
261
|
+
args: engineArgs,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
catch (error) {
|
|
265
|
+
rethrowIfTicketRejected(error); // exit 90 + stderr line -> LaunchTicketRejectedError
|
|
266
|
+
}
|
|
267
|
+
if (headed) {
|
|
268
|
+
installHeadedViewport(browser); // launch() takes no viewport option -> wrap newPage/newContext
|
|
269
|
+
}
|
|
270
|
+
else if (geom)
|
|
271
|
+
installHeadlessGeometry(browser, geom);
|
|
272
|
+
installHumanize(browser, { humanize, showCursor, seed: fingerprint.fingerprint }); // seed => stable motor persona
|
|
273
|
+
return browser;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Launch Ant0 Browser with a persistent profile directory and return a Playwright
|
|
277
|
+
* {@link BrowserContext} (cookies, storage, etc. persist in `userDataDir`).
|
|
278
|
+
*/
|
|
279
|
+
export async function launchPersistentContext(userDataDir, options = {}) {
|
|
280
|
+
const identity = applyIdentityOption(options);
|
|
281
|
+
options = identity.options;
|
|
282
|
+
const { extensions, shaderDialect, socks5Udp, disablePrivacySandbox, executablePath: exeOption, args, humanize, showCursor, cacheDir, quiet, widevine, resolveFonts, launchTicket, engineVersion, ...rest } = options;
|
|
283
|
+
const { fingerprint, rest: pwOptions } = splitFingerprintOptions(rest);
|
|
284
|
+
const proxyOpt = pwOptions.proxy; // captured before resolveProxy runs
|
|
285
|
+
// Throws for a credentialed SOCKS proxy (see resolveProxy); other shapes pass through unchanged.
|
|
286
|
+
const { args: proxyArgs, proxy } = resolveProxy(pwOptions.proxy);
|
|
287
|
+
if (proxy === undefined)
|
|
288
|
+
delete pwOptions.proxy;
|
|
289
|
+
emitCoherenceWarnings({ ...fingerprint, proxy: proxyOpt, geoip: false, headless: pwOptions.headless, _userArgs: args ?? [],
|
|
290
|
+
_gpuHostMissing: gpuHostMissingFor(fingerprint, identity.identityMode) }, quiet, process.platform, String(RELEASE.version).split(".")[0]);
|
|
291
|
+
const opts = pwOptions;
|
|
292
|
+
// headed + no explicit viewport -> disable the emulated viewport (impossible-window tell)
|
|
293
|
+
const headedNoViewport = opts.headless === false
|
|
294
|
+
&& opts.viewport === undefined && opts.screen === undefined;
|
|
295
|
+
if (headedNoViewport)
|
|
296
|
+
opts.viewport = null;
|
|
297
|
+
// widevine=true: seed the CDM into the profile + un-suppress the component updater (Playwright
|
|
298
|
+
// disables it by default) so the engine registers it. Failure -> DRM gracefully off, launch proceeds.
|
|
299
|
+
// Default the automation strip BEFORE the Widevine helper so it appends --disable-component-update
|
|
300
|
+
// to ['--enable-automation'] rather than clobbering it (losing the strip). Caller's own wins.
|
|
301
|
+
let ignoreDefaultArgs = opts.ignoreDefaultArgs ?? ["--enable-automation"];
|
|
302
|
+
let userArgs = args ?? [];
|
|
303
|
+
if (widevine) {
|
|
304
|
+
try {
|
|
305
|
+
await seedWidevine(userDataDir, { quiet });
|
|
306
|
+
// The --component-updater=fast-update scan is Windows-only (on Linux the hint file registers
|
|
307
|
+
// the CDM). Only warn about a user-supplied non-fast-update mode where fast-update matters.
|
|
308
|
+
const cu = userArgs.filter((a) => a.includes("component-updater"));
|
|
309
|
+
if (process.platform !== "linux" && cu.length && !cu.some((a) => a.includes("fast-update")) && !quiet) {
|
|
310
|
+
process.stderr.write("[ant0-browser] [widevine] note: your --component-updater mode may not register the CDM; --component-updater=fast-update is needed to scan the pre-installed component\n");
|
|
311
|
+
}
|
|
312
|
+
const tweak = widevineArgs(ignoreDefaultArgs, userArgs);
|
|
313
|
+
ignoreDefaultArgs = tweak.ignoreDefaultArgs;
|
|
314
|
+
userArgs = tweak.args;
|
|
315
|
+
}
|
|
316
|
+
catch (e) {
|
|
317
|
+
if (!quiet)
|
|
318
|
+
process.stderr.write(`[ant0-browser] [widevine] setup failed (continuing without DRM): ${String(e)}\n`);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
delete opts.ignoreDefaultArgs; // passed explicitly below
|
|
322
|
+
const exe = await executablePath({ executablePath: exeOption, cacheDir, quiet });
|
|
323
|
+
ensureRunnableHere(exe);
|
|
324
|
+
const packDir = await fontPackForLaunch(identity.identityMode, resolveFonts, Boolean(quiet));
|
|
325
|
+
const ctxEnv = withShaderDialect(shaderDialect, fontLaunchEnv(exe, opts.env, packDir));
|
|
326
|
+
let engineArgs = assembleArgs(fingerprintArgs(fingerprint, true), extensionArgs(extensions), proxyArgs, disablePrivacySandbox, fingerprint.webrtcIp, userArgs, proxyOpt, socks5Udp);
|
|
327
|
+
// Native persona/profile geometry only needs viewport:null. A seedless headless launch receives
|
|
328
|
+
// corpus context geometry. Headed mode already set viewport:null above.
|
|
329
|
+
const geom = opts.headless === false
|
|
330
|
+
? null
|
|
331
|
+
: identity.identityMode === "native"
|
|
332
|
+
? { mode: "native" }
|
|
333
|
+
: applyHeadlessGeometry(opts, fingerprint.fingerprint, engineArgs);
|
|
334
|
+
if (identity.identityMode === "native" && opts.headless !== false && opts.viewport === undefined) {
|
|
335
|
+
opts.viewport = null;
|
|
336
|
+
}
|
|
337
|
+
engineArgs = initialWindowArgs(engineArgs, geom);
|
|
338
|
+
// Engine patch 0037: the caller's ticket, or one from the local daemon (see ./launch-ticket.ts).
|
|
339
|
+
engineArgs = [...engineArgs, ...(await resolveLaunchTicketArgs({ launchTicket, engineVersion, executable: exe, args: engineArgs, quiet }))];
|
|
340
|
+
let context;
|
|
341
|
+
try {
|
|
342
|
+
context = await chromium.launchPersistentContext(userDataDir, {
|
|
343
|
+
...opts,
|
|
344
|
+
ignoreDefaultArgs, // keep AutomationControlled off (+ component updater on when widevine)
|
|
345
|
+
executablePath: exe,
|
|
346
|
+
...(ctxEnv ? { env: ctxEnv } : {}),
|
|
347
|
+
args: engineArgs,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
catch (error) {
|
|
351
|
+
rethrowIfTicketRejected(error); // exit 90 + stderr line -> LaunchTicketRejectedError
|
|
352
|
+
}
|
|
353
|
+
installHumanizeOnContext(context, { humanize, showCursor, seed: fingerprint.fingerprint }); // seed => stable motor persona
|
|
354
|
+
return context;
|
|
355
|
+
}
|
|
356
|
+
/** A free ephemeral TCP port on loopback. */
|
|
357
|
+
function freePort() {
|
|
358
|
+
return new Promise((resolve, reject) => {
|
|
359
|
+
const s = createServer();
|
|
360
|
+
s.once("error", reject);
|
|
361
|
+
s.listen(0, "127.0.0.1", () => {
|
|
362
|
+
const addr = s.address();
|
|
363
|
+
const port = typeof addr === "object" && addr ? addr.port : 0;
|
|
364
|
+
s.close(() => resolve(port));
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Resolve a {@link LaunchPlan} from {@link ServeOptions} without launching anything. This is the
|
|
370
|
+
* first half of {@link serve}; a supervisor spawns `plan.executable` with `plan.args` and
|
|
371
|
+
* `plan.env`, polls `plan.cdpUrl + "/json/version"` for readiness, and removes `plan.userDataDir`
|
|
372
|
+
* on exit when `plan.ownUserDataDir` is true. Side effects: may create the temp profile dir and,
|
|
373
|
+
* on Linux with a persona, resolve (and on first run download) the font pack.
|
|
374
|
+
*/
|
|
375
|
+
export async function launchPlan(options = {}) {
|
|
376
|
+
const identity = applyIdentityOption(options);
|
|
377
|
+
options = identity.options;
|
|
378
|
+
const { port, host = "127.0.0.1", allowOrigins, userDataDir: uddOption, headless = true, readyTimeoutMs: _readyTimeoutMs, // consumed by serve()'s readiness loop, not a launch input
|
|
379
|
+
humanize: _humanize, // Playwright-only; not applicable to a direct launch
|
|
380
|
+
showCursor: _showCursor, ...launchOpts } = options;
|
|
381
|
+
// Build the same stealth arg set as launch(); the caller launches the binary directly.
|
|
382
|
+
const { extensions, shaderDialect, socks5Udp, disablePrivacySandbox, executablePath: exeOption, args: userArgs, cacheDir, quiet, resolveFonts, launchTicket, engineVersion, ...rest } = launchOpts;
|
|
383
|
+
const { fingerprint, rest: pwOptions } = splitFingerprintOptions(rest);
|
|
384
|
+
const proxyOpt = pwOptions.proxy;
|
|
385
|
+
const { args: proxyArgs } = resolveProxy(proxyOpt);
|
|
386
|
+
emitCoherenceWarnings({ ...fingerprint, proxy: proxyOpt, geoip: false, headless, _userArgs: userArgs ?? [],
|
|
387
|
+
_gpuHostMissing: gpuHostMissingFor(fingerprint, identity.identityMode) }, quiet, process.platform, String(RELEASE.version).split(".")[0]);
|
|
388
|
+
const exe = await executablePath({ executablePath: exeOption, cacheDir, quiet });
|
|
389
|
+
ensureRunnableHere(exe);
|
|
390
|
+
const engineArgs = assembleArgs(fingerprintArgs(fingerprint, true), extensionArgs(extensions), proxyArgs, disablePrivacySandbox, fingerprint.webrtcIp, userArgs ?? [], proxyOpt, socks5Udp);
|
|
391
|
+
// Env before the temp dir: withShaderDialect throws on a bad dialect, and nothing must leak then.
|
|
392
|
+
const packDir = await fontPackForLaunch(identity.identityMode, resolveFonts, Boolean(quiet));
|
|
393
|
+
const rawEnv = { ...process.env, ...(withShaderDialect(shaderDialect, fontLaunchEnv(exe, undefined, packDir)) ?? {}) };
|
|
394
|
+
const env = {};
|
|
395
|
+
for (const [k, v] of Object.entries(rawEnv))
|
|
396
|
+
if (v !== undefined)
|
|
397
|
+
env[k] = String(v);
|
|
398
|
+
const resolvedPort = port ?? (await freePort());
|
|
399
|
+
const ownUserDataDir = !uddOption;
|
|
400
|
+
const userDataDir = uddOption ?? mkdtempSync(join(tmpdir(), "ant0-browser-serve-"));
|
|
401
|
+
const origins = allowOrigins ?? `http://${host}:${resolvedPort},http://localhost:${resolvedPort}`;
|
|
402
|
+
// Playwright's launch() adds the first-run hygiene switches itself; a direct spawn must add
|
|
403
|
+
// them, or the first tab is chrome://ungoogled-first-run (see FIRST_RUN_HYGIENE_ARGS).
|
|
404
|
+
const cdpArgs = [
|
|
405
|
+
`--remote-debugging-port=${resolvedPort}`,
|
|
406
|
+
`--remote-debugging-address=${host}`,
|
|
407
|
+
`--remote-allow-origins=${origins}`,
|
|
408
|
+
`--user-data-dir=${userDataDir}`,
|
|
409
|
+
...FIRST_RUN_HYGIENE_ARGS,
|
|
410
|
+
];
|
|
411
|
+
if (headless)
|
|
412
|
+
cdpArgs.push("--headless=new");
|
|
413
|
+
if (proxyOpt?.server)
|
|
414
|
+
cdpArgs.push(`--proxy-server=${proxyOpt.server}`);
|
|
415
|
+
// Chromium opens every positional as a URL; with none from the caller, open about:blank so the
|
|
416
|
+
// first tab is neutral. Appended last so a caller's URL positionals (inside engineArgs) win.
|
|
417
|
+
const startUrlArgs = defaultStartUrlArgs(engineArgs);
|
|
418
|
+
// Engine patch 0037: the caller's ticket (ant0d passes its own in `args`, which wins), or one
|
|
419
|
+
// from the local daemon; the last switch before the start URLs, as the daemon does it.
|
|
420
|
+
const ticketArgs = await resolveLaunchTicketArgs({ launchTicket, engineVersion, executable: exe, args: engineArgs, quiet });
|
|
421
|
+
return {
|
|
422
|
+
executable: exe,
|
|
423
|
+
args: [...engineArgs, ...cdpArgs, ...ticketArgs, ...startUrlArgs],
|
|
424
|
+
env,
|
|
425
|
+
userDataDir,
|
|
426
|
+
ownUserDataDir,
|
|
427
|
+
host,
|
|
428
|
+
port: resolvedPort,
|
|
429
|
+
cdpUrl: `http://${host}:${resolvedPort}`,
|
|
430
|
+
identityMode: identity.identityMode,
|
|
431
|
+
headless,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
/** Handle for a standing ant0-browser CDP endpoint. Use `.cdpUrl` with any CDP client. */
|
|
435
|
+
export class Server {
|
|
436
|
+
proc;
|
|
437
|
+
host;
|
|
438
|
+
port;
|
|
439
|
+
userDataDir;
|
|
440
|
+
ownUdd;
|
|
441
|
+
/** OS process id of the browser (undefined only if the spawn never produced one). */
|
|
442
|
+
pid;
|
|
443
|
+
constructor(proc, host, port, userDataDir, ownUdd) {
|
|
444
|
+
this.proc = proc;
|
|
445
|
+
this.host = host;
|
|
446
|
+
this.port = port;
|
|
447
|
+
this.userDataDir = userDataDir;
|
|
448
|
+
this.ownUdd = ownUdd;
|
|
449
|
+
this.pid = proc.pid;
|
|
450
|
+
}
|
|
451
|
+
/** HTTP CDP base — pass to `connectOverCDP` / `puppeteer.connect({ browserURL })`. */
|
|
452
|
+
get cdpUrl() {
|
|
453
|
+
return `http://${this.host}:${this.port}`;
|
|
454
|
+
}
|
|
455
|
+
/** The browser-level WebSocket URL (for clients that want `connect({ browserWSEndpoint })`). */
|
|
456
|
+
async wsUrl() {
|
|
457
|
+
try {
|
|
458
|
+
const r = await fetch(`${this.cdpUrl}/json/version`);
|
|
459
|
+
return (await r.json()).webSocketDebuggerUrl;
|
|
460
|
+
}
|
|
461
|
+
catch {
|
|
462
|
+
return undefined;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
isAlive() {
|
|
466
|
+
return this.proc.exitCode === null && !this.proc.killed;
|
|
467
|
+
}
|
|
468
|
+
async close() {
|
|
469
|
+
try {
|
|
470
|
+
this.proc.kill("SIGTERM");
|
|
471
|
+
}
|
|
472
|
+
catch {
|
|
473
|
+
/* ignore */
|
|
474
|
+
}
|
|
475
|
+
if (this.ownUdd) {
|
|
476
|
+
try {
|
|
477
|
+
rmSync(this.userDataDir, { recursive: true, force: true });
|
|
478
|
+
}
|
|
479
|
+
catch {
|
|
480
|
+
/* ignore */
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Launch Ant0 Browser with a RAW CDP endpoint and return a {@link Server}. Unlike {@link launch}, `serve`
|
|
487
|
+
* leaves a standing browser any client attaches to with no code change:
|
|
488
|
+
* ```ts
|
|
489
|
+
* const srv = await serve({ identity: { mode: "native" } });
|
|
490
|
+
* const browser = await chromium.connectOverCDP(srv.cdpUrl); // Playwright
|
|
491
|
+
* // or: await puppeteer.connect({ browserURL: srv.cdpUrl }); // Puppeteer
|
|
492
|
+
* // or: point browser-use / Crawl4AI / Stagehand at srv.cdpUrl
|
|
493
|
+
* await srv.close();
|
|
494
|
+
* ```
|
|
495
|
+
* Stays stealthy: the binary is launched **directly** (not through Playwright/Puppeteer), so the
|
|
496
|
+
* `--enable-automation` flag those frameworks add is never present and `navigator.webdriver` stays
|
|
497
|
+
* `false`; the engine's `Runtime.enable` neutralization keeps the attached CDP client undetectable
|
|
498
|
+
* to the page; the port binds to loopback with an origin allowlist; attaching over CDP adds no
|
|
499
|
+
* launch flags, so the served persona is preserved end to end.
|
|
500
|
+
*
|
|
501
|
+
* First-run hygiene: Playwright's `launch()` passes `--no-first-run`, `--no-default-browser-check`
|
|
502
|
+
* and `--disable-search-engine-choice-screen` on its own; `serve()`/`launchPlan()` add the same
|
|
503
|
+
* three switches (plain UI switches, no `base::Feature` toggles, nothing a page can observe) and,
|
|
504
|
+
* when the caller passes no URL positional in `args`, open `about:blank`. Without them the
|
|
505
|
+
* ungoogled-chromium base opens `chrome://ungoogled-first-run` in the first tab.
|
|
506
|
+
*
|
|
507
|
+
* To own the child process yourself (a daemon supervising exit codes, stderr, kill escalation),
|
|
508
|
+
* call {@link launchPlan} with the same options and spawn from the returned plan instead.
|
|
509
|
+
*/
|
|
510
|
+
export async function serve(options = {}) {
|
|
511
|
+
const { readyTimeoutMs = 30000, quiet } = options;
|
|
512
|
+
const plan = await launchPlan(options);
|
|
513
|
+
const { host, port: resolvedPort, userDataDir, ownUserDataDir: ownUdd } = plan;
|
|
514
|
+
const dropOwnUdd = () => {
|
|
515
|
+
if (ownUdd) {
|
|
516
|
+
try {
|
|
517
|
+
rmSync(userDataDir, { recursive: true, force: true });
|
|
518
|
+
}
|
|
519
|
+
catch { /* ignore */ }
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
// Launched directly, without Playwright or --enable-automation. stderr is piped and drained
|
|
523
|
+
// into a bounded tail so an exit-90 launch-ticket rejection (engine patch 0037) can be named.
|
|
524
|
+
let proc;
|
|
525
|
+
let stderrTail = "";
|
|
526
|
+
try {
|
|
527
|
+
proc = await new Promise((resolve, reject) => {
|
|
528
|
+
let settled = false;
|
|
529
|
+
const child = spawn(plan.executable, plan.args, { env: plan.env, stdio: ["ignore", "ignore", "pipe"] });
|
|
530
|
+
child.stderr?.on("data", (chunk) => { stderrTail = (stderrTail + chunk.toString("utf8")).slice(-8192); });
|
|
531
|
+
child.once("error", (err) => { if (!settled) {
|
|
532
|
+
settled = true;
|
|
533
|
+
reject(err);
|
|
534
|
+
} });
|
|
535
|
+
child.once("spawn", () => { if (!settled) {
|
|
536
|
+
settled = true;
|
|
537
|
+
resolve(child);
|
|
538
|
+
} });
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
catch (error) {
|
|
542
|
+
dropOwnUdd();
|
|
543
|
+
throw error;
|
|
544
|
+
}
|
|
545
|
+
const deadline = Date.now() + readyTimeoutMs;
|
|
546
|
+
let ready = false;
|
|
547
|
+
while (Date.now() < deadline) {
|
|
548
|
+
if (proc.exitCode !== null)
|
|
549
|
+
break;
|
|
550
|
+
try {
|
|
551
|
+
await fetch(`${plan.cdpUrl}/json/version`);
|
|
552
|
+
ready = true;
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
catch {
|
|
556
|
+
/* not up yet */
|
|
557
|
+
}
|
|
558
|
+
await new Promise((r) => setTimeout(r, 250));
|
|
559
|
+
}
|
|
560
|
+
if (!ready) {
|
|
561
|
+
try {
|
|
562
|
+
proc.kill();
|
|
563
|
+
}
|
|
564
|
+
catch { /* ignore */ }
|
|
565
|
+
dropOwnUdd();
|
|
566
|
+
const reason = launchTicketRejection(stderrTail);
|
|
567
|
+
if (reason || proc.exitCode === LAUNCH_TICKET_EXIT_CODE) {
|
|
568
|
+
throw new LaunchTicketRejectedError(reason ?? "missing", stderrTail.trim());
|
|
569
|
+
}
|
|
570
|
+
throw new Error(`ant0-browser serve: CDP endpoint at ${plan.cdpUrl} did not come up within ${readyTimeoutMs}ms` +
|
|
571
|
+
(proc.exitCode !== null ? ` (engine exited with code ${proc.exitCode})` : "") +
|
|
572
|
+
(stderrTail.trim() ? `\n${stderrTail.trim()}` : ""));
|
|
573
|
+
}
|
|
574
|
+
const srv = new Server(proc, host, resolvedPort, userDataDir, ownUdd);
|
|
575
|
+
process.once("exit", () => { void srv.close(); });
|
|
576
|
+
if (!quiet) {
|
|
577
|
+
process.stderr.write(`[ant0-browser] CDP endpoint ready: ${srv.cdpUrl}\n` +
|
|
578
|
+
` attach any client: connectOverCDP(${JSON.stringify(srv.cdpUrl)}) / puppeteer.connect({ browserURL })\n`);
|
|
579
|
+
}
|
|
580
|
+
return srv;
|
|
581
|
+
}
|
|
582
|
+
export default {
|
|
583
|
+
launch,
|
|
584
|
+
launchPersistentContext,
|
|
585
|
+
serve,
|
|
586
|
+
launchPlan,
|
|
587
|
+
Server,
|
|
588
|
+
executablePath,
|
|
589
|
+
fetchWidevine,
|
|
590
|
+
seedWidevine,
|
|
591
|
+
RELEASE,
|
|
592
|
+
};
|
|
593
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,EAAE;AACF,2CAA2C;AAC3C,oEAAoE;AACpE,0CAA0C;AAC1C,iEAAiE;AACjE,EAAE;AACF,8FAA8F;AAC9F,mGAAmG;AACnG,+DAA+D;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAQjC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAwB,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAA2B,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAiB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAwB,MAAM,eAAe,CAAC;AAChG,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,GAEtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,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