ant0-browser 0.2.1 → 0.2.3-beta.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.
Files changed (107) hide show
  1. package/LICENSE +0 -6
  2. package/README.md +9 -7
  3. package/dist/chromium-version.d.ts +2 -11
  4. package/dist/chromium-version.d.ts.map +1 -1
  5. package/dist/chromium-version.js +2 -11
  6. package/dist/chromium-version.js.map +1 -1
  7. package/dist/claim-hints.d.ts +2 -2
  8. package/dist/claim-hints.js +2 -2
  9. package/dist/content.js +1 -1
  10. package/dist/content.js.map +1 -1
  11. package/dist/fingerprint.d.ts +12 -14
  12. package/dist/fingerprint.d.ts.map +1 -1
  13. package/dist/fingerprint.js +5 -5
  14. package/dist/fingerprint.js.map +1 -1
  15. package/dist/fontpack.d.ts +7 -5
  16. package/dist/fontpack.d.ts.map +1 -1
  17. package/dist/fontpack.js +13 -110
  18. package/dist/fontpack.js.map +1 -1
  19. package/dist/fonts.d.ts +2 -2
  20. package/dist/fonts.d.ts.map +1 -1
  21. package/dist/fonts.js +9 -5
  22. package/dist/fonts.js.map +1 -1
  23. package/dist/geoip.d.ts.map +1 -1
  24. package/dist/geoip.js +1 -2
  25. package/dist/geoip.js.map +1 -1
  26. package/dist/humanize.d.ts +33 -0
  27. package/dist/humanize.d.ts.map +1 -1
  28. package/dist/humanize.js +136 -106
  29. package/dist/humanize.js.map +1 -1
  30. package/dist/identity-persistence.d.ts +6 -0
  31. package/dist/identity-persistence.d.ts.map +1 -1
  32. package/dist/identity-persistence.js +19 -1
  33. package/dist/identity-persistence.js.map +1 -1
  34. package/dist/identity.d.ts +10 -2
  35. package/dist/identity.d.ts.map +1 -1
  36. package/dist/identity.js +58 -16
  37. package/dist/identity.js.map +1 -1
  38. package/dist/index.d.ts +16 -23
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +30 -25
  41. package/dist/index.js.map +1 -1
  42. package/dist/launch-ticket.d.ts +2 -2
  43. package/dist/launch-ticket.d.ts.map +1 -1
  44. package/dist/launch-ticket.js +4 -4
  45. package/dist/launch-ticket.js.map +1 -1
  46. package/dist/launchopts.d.ts +12 -12
  47. package/dist/launchopts.js +12 -12
  48. package/dist/linux-population-table.d.ts +2 -0
  49. package/dist/linux-population-table.d.ts.map +1 -0
  50. package/dist/linux-population-table.js +4 -0
  51. package/dist/linux-population-table.js.map +1 -0
  52. package/dist/linux-population.d.ts +25 -0
  53. package/dist/linux-population.d.ts.map +1 -0
  54. package/dist/linux-population.js +203 -0
  55. package/dist/linux-population.js.map +1 -0
  56. package/dist/motion.d.ts +51 -7
  57. package/dist/motion.d.ts.map +1 -1
  58. package/dist/motion.js +192 -29
  59. package/dist/motion.js.map +1 -1
  60. package/dist/motionscore.js +1 -1
  61. package/dist/motionscore.js.map +1 -1
  62. package/dist/native/linux-x64/ant0_runtime.node +0 -0
  63. package/dist/native/windows-x64/ant0_runtime.node +0 -0
  64. package/dist/persona-migration.d.ts +2 -5
  65. package/dist/persona-migration.d.ts.map +1 -1
  66. package/dist/persona-migration.js +2 -5
  67. package/dist/persona-migration.js.map +1 -1
  68. package/dist/persona-profile-v4.d.ts +1 -1
  69. package/dist/persona-profile-v4.js +1 -1
  70. package/dist/persona-rejected.d.ts +1 -1
  71. package/dist/persona-rejected.js +1 -1
  72. package/dist/persona-rejected.js.map +1 -1
  73. package/dist/population-model.d.ts +13 -1
  74. package/dist/population-model.d.ts.map +1 -1
  75. package/dist/population-model.js +6 -6
  76. package/dist/population-model.js.map +1 -1
  77. package/dist/profile-file.d.ts +1 -2
  78. package/dist/profile-file.d.ts.map +1 -1
  79. package/dist/profile-file.js +3 -4
  80. package/dist/profile-file.js.map +1 -1
  81. package/dist/render.d.ts +1 -1
  82. package/dist/render.d.ts.map +1 -1
  83. package/dist/render.js +4 -5
  84. package/dist/render.js.map +1 -1
  85. package/dist/scale.d.ts +1 -1
  86. package/dist/scale.js +2 -2
  87. package/dist/scale.js.map +1 -1
  88. package/dist/shaderdialect.d.ts +12 -12
  89. package/dist/shaderdialect.d.ts.map +1 -1
  90. package/dist/shaderdialect.js +16 -19
  91. package/dist/shaderdialect.js.map +1 -1
  92. package/dist/speech-coherence.d.ts +17 -5
  93. package/dist/speech-coherence.d.ts.map +1 -1
  94. package/dist/speech-coherence.js +43 -6
  95. package/dist/speech-coherence.js.map +1 -1
  96. package/dist/warnings.d.ts +29 -0
  97. package/dist/warnings.d.ts.map +1 -1
  98. package/dist/warnings.js +94 -5
  99. package/dist/warnings.js.map +1 -1
  100. package/dist/webgl-coherence.d.ts +1 -1
  101. package/dist/webgl-coherence.js +1 -1
  102. package/dist/webgpu-override.d.ts.map +1 -1
  103. package/dist/webgpu-override.js +4 -5
  104. package/dist/webgpu-override.js.map +1 -1
  105. package/dist/windows-coherence.d.ts +1 -1
  106. package/dist/windows-coherence.js +1 -1
  107. package/package.json +1 -2
@@ -7,6 +7,28 @@ export declare function linuxHostHasGpu(driDir?: string): boolean;
7
7
  * _gpuHostMissing. Silent under honest GPU (disableGpuFingerprint) or a pinned software renderer.
8
8
  * Does I/O. */
9
9
  export declare function gpuHostMissingFor(fp: Record<string, unknown>, identityMode: string | undefined, hostPlatform?: string, driDir?: string): string | undefined;
10
+ /** Names of the video adapters on this Windows host (PowerShell Win32_VideoController), probed once
11
+ * per process with a 5 s limit, off the event loop. The PROMISE is cached so concurrent launches share
12
+ * one probe. An empty list means "could not tell". Never rejects. */
13
+ export declare function windowsVideoAdapterNames(): Promise<string[]>;
14
+ /** Test hook: forget the cached Windows adapter list. */
15
+ export declare function resetWindowsAdapterCache(): void;
16
+ /** True when this host renders on a software adapter. Linux: no DRM device under /dev/dri (the same
17
+ * signal as {@link linuxHostHasGpu}). Windows: every adapter reported by Win32_VideoController is a
18
+ * Microsoft Basic adapter. Other hosts and any unknown answer are false. Does I/O; `probe` injects it. */
19
+ export declare function hostGpuIsSoftware(hostPlatform?: string, probe?: {
20
+ driDir?: string;
21
+ windowsAdapters?: () => string[] | Promise<string[]>;
22
+ }): Promise<boolean>;
23
+ export declare const GPU_SOFTWARE_HOST_CODE = "gpu-software-host";
24
+ export declare const GPU_SOFTWARE_HOST_MESSAGE: string;
25
+ /** On a software-adapter host, default `gpuStringSpoof` to false for a captured or synthetic identity
26
+ * (a native identity spoofs no GPU) unless the caller set it or asked for the whole GPU real. With `engine`,
27
+ * engines older than ant0.8 are skipped. Mutates
28
+ * `fingerprint`; prints one warning. Call before the launch args are built. Returns true if it applied. */
29
+ export declare function applySoftwareGpuDefault(fingerprint: Record<string, unknown>, identityMode: string | undefined, quiet?: boolean, hostPlatform?: string, probe?: Parameters<typeof hostGpuIsSoftware>[1], engine?: {
30
+ version: unknown;
31
+ }): Promise<boolean>;
10
32
  /** First engine release that closes the narrow-switch gaps: WebGPU, limits and shader precision follow
11
33
  * the real GPU under --disable-gpu-string-spoof, and toBlob/convertToBlob follow --disable-canvas-noise. */
12
34
  export declare const GPU_CANVAS_FIX_ENGINE = "158.0.8127.18-ant0.8";
@@ -14,6 +36,8 @@ export declare const GPU_CANVAS_FIX_ENGINE = "158.0.8127.18-ant0.8";
14
36
  * from main) counts as NEW, so it is not nagged about gaps main has closed; a missing or unparseable
15
37
  * version counts as OLD, so the operator is warned. Compared numerically, field by field. */
16
38
  export declare function engineHasGpuCanvasFixes(engineVersion: unknown): boolean;
39
+ /** Code of the warning for an identity whose OS differs from the host's (same in the Python SDK). */
40
+ export declare const CROSS_OS_IDENTITY_CODE = "cross-os-identity";
17
41
  export interface CoherenceWarning {
18
42
  severity: "warn" | "note";
19
43
  code: string;
@@ -37,6 +61,11 @@ export declare const CANVAS_NOISE_NO_KEY_MESSAGE: string;
37
61
  export declare function warnCanvasNoiseNoKey(quiet?: boolean): void;
38
62
  /** A debug-level line: printed only when ANT0_BROWSER_DEBUG is set. */
39
63
  export declare function debugLog(message: string): void;
64
+ /** Codes of the generated-identity OS warnings (same in the Python SDK). */
65
+ export declare const GENERATED_OS_WINDOWS_CODE = "generated-os-windows";
66
+ export declare const IDENTITY_OS_IGNORED_CODE = "identity-os-ignored";
67
+ /** Print an identity OS warning to stderr unless quiet or ANT0_BROWSER_NO_WARN. */
68
+ export declare function warnIdentityOs(code: string, message: string, quiet?: boolean): void;
40
69
  /** Code and text of the warning for a platform or brand override on a schema 4 persona (same in the Python SDK). */
41
70
  export declare const PERSONA_IDENTITY_OVERRIDE_CODE = "persona-identity-override";
42
71
  export declare const PERSONA_IDENTITY_OVERRIDE_MESSAGE: string;
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAkBA;;8BAE8B;AAC9B,wBAAgB,eAAe,CAAC,MAAM,SAAa,GAAG,OAAO,CAM5D;AAED;;;eAGe;AACf,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,EAC7D,YAAY,CAAC,EAAE,MAAM,EAAE,MAAM,SAAa,GACzC,MAAM,GAAG,SAAS,CAQpB;AAED;4GAC4G;AAC5G,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAI5D;;6FAE6F;AAC7F,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,OAAO,GAAG,OAAO,CAYvE;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA8BD,wFAAwF;AACxF,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,YAAY,CAAC,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,GACrB,gBAAgB,EAAE,CAqHpB;AAED,6GAA6G;AAC7G,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,E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kE,CAAC;AACjH,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAGjE;AAED;2BAC2B;AAC3B,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAGnH"}
package/dist/warnings.js CHANGED
@@ -6,6 +6,9 @@
6
6
  // launch() and emitCoherenceWarnings() prints an actionable line to stderr. Never blocks the
7
7
  // launch; suppressible with quiet:true or ANT0_BROWSER_NO_WARN=1. coherenceWarnings() is pure (no I/O).
8
8
  import { readdirSync } from "node:fs";
9
+ import { execFile } from "node:child_process";
10
+ import { promisify } from "node:util";
11
+ const execFileAsync = promisify(execFile);
9
12
  import { webgpuOverridePlan } from "./webgpu-override.js";
10
13
  import { CHROMIUM_MAJOR } from "./chromium-version.js";
11
14
  import { canvasMode } from "./canvas.js";
@@ -32,7 +35,7 @@ export function gpuHostMissingFor(fp, identityMode, hostPlatform, driDir = "/dev
32
35
  const host = hostPlatform ?? process.platform;
33
36
  if ((identityMode !== "captured" && identityMode !== "synthetic") || !host.startsWith("linux"))
34
37
  return undefined;
35
- if (fp.disableGpuFingerprint)
38
+ if (fp.disableGpuFingerprint || fp.gpuStringSpoof === false)
36
39
  return undefined;
37
40
  const gr = String(fp.gpuRenderer ?? "").toLowerCase();
38
41
  if (SOFTWARE_GPU.some((s) => gr.includes(s)))
@@ -41,6 +44,68 @@ export function gpuHostMissingFor(fp, identityMode, hostPlatform, driDir = "/dev
41
44
  return undefined;
42
45
  return identityMode;
43
46
  }
47
+ /** Names a Windows adapter query reports for a software adapter: "Microsoft Basic Render Driver" (the
48
+ * ANGLE string seen on the W1 VM) and "Microsoft Basic Display Adapter" (the OS's fallback display
49
+ * driver). Anything else, including a hypervisor's own virtual adapter, is not judged software. */
50
+ const WINDOWS_SOFTWARE_ADAPTERS = ["microsoft basic", "swiftshader", "software adapter"];
51
+ let windowsAdaptersCache;
52
+ /** Names of the video adapters on this Windows host (PowerShell Win32_VideoController), probed once
53
+ * per process with a 5 s limit, off the event loop. The PROMISE is cached so concurrent launches share
54
+ * one probe. An empty list means "could not tell". Never rejects. */
55
+ export function windowsVideoAdapterNames() {
56
+ if (windowsAdaptersCache)
57
+ return windowsAdaptersCache;
58
+ windowsAdaptersCache = (async () => {
59
+ try {
60
+ const { stdout } = await execFileAsync("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command", "Get-CimInstance Win32_VideoController | ForEach-Object { $_.Name }"], { encoding: "utf8", timeout: 5000, windowsHide: true });
61
+ return String(stdout).split(/\r?\n/).map((l) => l.trim()).filter(Boolean);
62
+ }
63
+ catch {
64
+ return []; /* unknown stays "not software" */
65
+ }
66
+ })();
67
+ return windowsAdaptersCache;
68
+ }
69
+ /** Test hook: forget the cached Windows adapter list. */
70
+ export function resetWindowsAdapterCache() { windowsAdaptersCache = undefined; }
71
+ /** True when this host renders on a software adapter. Linux: no DRM device under /dev/dri (the same
72
+ * signal as {@link linuxHostHasGpu}). Windows: every adapter reported by Win32_VideoController is a
73
+ * Microsoft Basic adapter. Other hosts and any unknown answer are false. Does I/O; `probe` injects it. */
74
+ export async function hostGpuIsSoftware(hostPlatform, probe = {}) {
75
+ const host = hostPlatform ?? process.platform;
76
+ if (host.startsWith("linux"))
77
+ return !linuxHostHasGpu(probe.driDir);
78
+ if (host.startsWith("win")) {
79
+ const names = (await (probe.windowsAdapters ?? windowsVideoAdapterNames)()).map((n) => n.toLowerCase());
80
+ return names.length > 0 && names.every((n) => WINDOWS_SOFTWARE_ADAPTERS.some((m) => n.includes(m)));
81
+ }
82
+ return false;
83
+ }
84
+ export const GPU_SOFTWARE_HOST_CODE = "gpu-software-host";
85
+ export const GPU_SOFTWARE_HOST_MESSAGE = "this host has no hardware GPU (a software adapter renders WebGL), so gpuStringSpoof is switched off " +
86
+ "for this launch: the persona's GPU strings would sit next to software-tier capabilities, which " +
87
+ "check pages read as a contradiction. The browser reports this host's real WebGL vendor/renderer. " +
88
+ "Pass overrides.gpuStringSpoof (true or false) to choose yourself.";
89
+ /** On a software-adapter host, default `gpuStringSpoof` to false for a captured or synthetic identity
90
+ * (a native identity spoofs no GPU) unless the caller set it or asked for the whole GPU real. With `engine`,
91
+ * engines older than ant0.8 are skipped. Mutates
92
+ * `fingerprint`; prints one warning. Call before the launch args are built. Returns true if it applied. */
93
+ export async function applySoftwareGpuDefault(fingerprint, identityMode, quiet, hostPlatform, probe, engine) {
94
+ if (identityMode !== "captured" && identityMode !== "synthetic")
95
+ return false;
96
+ if (fingerprint.gpuStringSpoof !== undefined || fingerprint.disableGpuFingerprint)
97
+ return false;
98
+ // Before ant0.8 the engine cannot honour a GPU-string-only switch-off, so the automatic default would
99
+ // only trigger a follow-on warning about a setting the user never set. An explicit value is untouched.
100
+ if (engine && !engineHasGpuCanvasFixes(engine.version))
101
+ return false;
102
+ if (!(await hostGpuIsSoftware(hostPlatform, probe)))
103
+ return false;
104
+ fingerprint.gpuStringSpoof = false;
105
+ if (!quiet && !process.env.ANT0_BROWSER_NO_WARN)
106
+ process.stderr.write(`ant0-browser: warning: [${GPU_SOFTWARE_HOST_CODE}] ${GPU_SOFTWARE_HOST_MESSAGE}\n`);
107
+ return true;
108
+ }
44
109
  /** First engine release that closes the narrow-switch gaps: WebGPU, limits and shader precision follow
45
110
  * the real GPU under --disable-gpu-string-spoof, and toBlob/convertToBlob follow --disable-canvas-noise. */
46
111
  export const GPU_CANVAS_FIX_ENGINE = "158.0.8127.18-ant0.8";
@@ -66,6 +131,8 @@ export function engineHasGpuCanvasFixes(engineVersion) {
66
131
  }
67
132
  return true;
68
133
  }
134
+ /** Code of the warning for an identity whose OS differs from the host's (same in the Python SDK). */
135
+ export const CROSS_OS_IDENTITY_CODE = "cross-os-identity";
69
136
  function proxyServer(proxy) {
70
137
  if (!proxy)
71
138
  return "";
@@ -86,6 +153,14 @@ function hostFamily(host) {
86
153
  return "linux";
87
154
  return null;
88
155
  }
156
+ /** The OS family a persona names: identity.os.family (schema 4) or compatibility.os_family (schema 2). */
157
+ function personaOsFamily(profile) {
158
+ const p = profile;
159
+ if (typeof p !== "object" || p === null)
160
+ return undefined;
161
+ const os = p.schema_version === 4 ? p.identity?.os?.family : p.compatibility?.os_family;
162
+ return typeof os === "string" && os.trim() ? os.trim().toLowerCase() : undefined;
163
+ }
89
164
  function gpuIncoherent(renderer, platform) {
90
165
  const r = renderer.toLowerCase();
91
166
  if (platform === "macos" && (r.includes("direct3d") || r.includes("d3d")))
@@ -138,6 +213,11 @@ export function coherenceWarnings(opts, hostPlatform, buildMajor, engineVersion)
138
213
  warn("platform-host-fonts", `platform='${platform}' but this host is ${fam} and no fingerprintProfile supplies that OS's ` +
139
214
  `fonts/metrics - font, canvas and font-list hashes will be host-native and won't match a real ` +
140
215
  `${platform} Chrome. Use a fingerprintProfile captured on ${platform}, or set platform='${fam}'.`);
216
+ const personaOs = personaOsFamily(profile);
217
+ if (personaOs && fam && personaOs !== fam)
218
+ warn(CROSS_OS_IDENTITY_CODE, `this identity claims ${personaOs}, but this host is ${fam}. This host's text rendering (fonts and glyph ` +
219
+ `metrics) can't follow the claimed OS, and some check pages report that mismatch as tampering. The ` +
220
+ `launch is not refused; use an identity of the host's OS (${fam}) for the cleanest result.`);
141
221
  if (gpuR && platform) {
142
222
  const why = gpuIncoherent(gpuR, platform);
143
223
  if (why)
@@ -152,7 +232,7 @@ export function coherenceWarnings(opts, hostPlatform, buildMajor, engineVersion)
152
232
  // A schema 4 persona names its own brand (chrome or edge), and the engine is built for it.
153
233
  if (brand && !personaV4 && !["chrome", "google chrome"].includes(String(brand).toLowerCase()))
154
234
  warn("brand-mismatch", `brand='${brand}' is advertised in UA-CH, but the binary's TLS/JA4 and engine are Chrome ${bmajor} ` +
155
- "- a UA-vs-transport mismatch strict detectors cross-check. Keep brand='Chrome'.");
235
+ "- a UA-vs-transport mismatch sites can cross-check. Keep brand='Chrome'.");
156
236
  if (bver && String(bver).split(".")[0] !== bmajor)
157
237
  warn("version-mismatch", `brandVersion major ${String(bver).split(".")[0]} differs from the build's Chrome ${bmajor} - ` +
158
238
  `JA4/UA-CH version desync. Align brandVersion to ${bmajor} (or omit it).`);
@@ -183,14 +263,14 @@ export function coherenceWarnings(opts, hostPlatform, buildMajor, engineVersion)
183
263
  warn(CANVAS_NOISE_CONFLICT_CODE, CANVAS_NOISE_CONFLICT_MESSAGE);
184
264
  // A persona presenting a hardware GPU on a Linux host with NO GPU device renders on a software
185
265
  // rasterizer: the renderer STRING claims a real GPU while MAX_TEXTURE_SIZE, the WebGL extension
186
- // list and navigator.gpu (WebGPU adapter) report software-tier caps -- exactly what an enterprise
187
- // bot-manager (e.g. Cloudflare on g2) scores. Computed via a host device check and threaded in as
266
+ // list and navigator.gpu (WebGPU adapter) report software-tier caps -- exactly what an automated-traffic
267
+ // scorer would flag. Computed via a host device check and threaded in as
188
268
  // _gpuHostMissing; supersedes the vaguer headless-render note.
189
269
  const gpuUnreachable = opts._gpuHostMissing;
190
270
  if (gpuUnreachable)
191
271
  warn("persona-gpu-unreachable", `the ${gpuUnreachable} persona presents a hardware GPU (an ANGLE/Direct3D11 discrete-GPU ` +
192
272
  "renderer string), but this Linux host exposes no GPU device (/dev/dri absent), so WebGL and " +
193
- "WebGPU fall back to a software rasterizer. A strict/enterprise detector reads the contradiction " +
273
+ "WebGPU fall back to a software rasterizer. A site can read the contradiction " +
194
274
  "directly: the renderer STRING claims a real GPU while MAX_TEXTURE_SIZE, the WebGL extension " +
195
275
  "list and navigator.gpu (the WebGPU adapter) report software-tier capabilities. Run on a host " +
196
276
  "with a real GPU (and drop --disable-gpu).");
@@ -252,6 +332,15 @@ export function debugLog(message) {
252
332
  if (process.env.ANT0_BROWSER_DEBUG)
253
333
  process.stderr.write(`ant0-browser: debug: ${message}\n`);
254
334
  }
335
+ /** Codes of the generated-identity OS warnings (same in the Python SDK). */
336
+ export const GENERATED_OS_WINDOWS_CODE = "generated-os-windows";
337
+ export const IDENTITY_OS_IGNORED_CODE = "identity-os-ignored";
338
+ /** Print an identity OS warning to stderr unless quiet or ANT0_BROWSER_NO_WARN. */
339
+ export function warnIdentityOs(code, message, quiet) {
340
+ if (quiet || process.env.ANT0_BROWSER_NO_WARN)
341
+ return;
342
+ process.stderr.write(`ant0-browser: warning: [${code}] ${message}\n`);
343
+ }
255
344
  /** Code and text of the warning for a platform or brand override on a schema 4 persona (same in the Python SDK). */
256
345
  export const PERSONA_IDENTITY_OVERRIDE_CODE = "persona-identity-override";
257
346
  export const PERSONA_IDENTITY_OVERRIDE_MESSAGE = "a platform or brand override is mixed with a schema 4 persona. The override wins over the persona's " +
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.js","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,EAAE;AACF,4FAA4F;AAC5F,gGAAgG;AAChG,+FAA+F;AAC/F,6FAA6F;AAC7F,wGAAwG;AAExG,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAsB,MAAM,aAAa,CAAC;AAE7D,MAAM,YAAY,GAAG,CAAC,aAAa,EAAE,UAAU,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;AAC3G,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC,CAAC,2DAA2D;AAChG,wGAAwG;AACxG,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAErD;;8BAE8B;AAC9B,MAAM,UAAU,eAAe,CAAC,MAAM,GAAG,UAAU;IACjD,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC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AC,2BAA2B,8BAA8B,KAAK,iCAAiC,IAAI,CAAC,CAAC;AAC5H,CAAC;AAED;2BAC2B;AAC3B,MAAM,UAAU,kBAAkB,CAAC,OAAyD,EAAE,KAAe;IAC3G,IAAI,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB;QAAE,OAAO;IACtD,KAAK,MAAM,CAAC,IAAI,OAAO;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC;AACrG,CAAC"}
@@ -7,7 +7,7 @@
7
7
  * key by key. A relation is evaluated, with absent limits filled from the row's defaults, when at
8
8
  * least one of its limits is present; a relation with none present is skipped. A present limit
9
9
  * that is not a non-negative integer is a violation. A pair without a row has no rule; a new
10
- * platform or browser family is a new row. Keep in step with the engine (patch 926) and the
10
+ * platform or browser family is a new row. Keep in step with the engine and the
11
11
  * cloud's webgl-coherence-rules.ts.
12
12
  */
13
13
  export interface WebGLRelation {
@@ -7,7 +7,7 @@
7
7
  * key by key. A relation is evaluated, with absent limits filled from the row's defaults, when at
8
8
  * least one of its limits is present; a relation with none present is skipped. A present limit
9
9
  * that is not a non-negative integer is a violation. A pair without a row has no rule; a new
10
- * platform or browser family is a new row. Keep in step with the engine (patch 926) and the
10
+ * platform or browser family is a new row. Keep in step with the engine and the
11
11
  * cloud's webgl-coherence-rules.ts.
12
12
  */
13
13
  const CHROMIUM_DESKTOP = {
@@ -1 +1 @@
1
- {"version":3,"file":"webgpu-override.d.ts","sourceRoot":"","sources":["../src/webgpu-override.ts"],"names":[],"mappings":"AAiCA,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D;AAgBD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACzE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC3D,GAAG,kBAAkB,CA8BrB"}
1
+ {"version":3,"file":"webgpu-override.d.ts","sourceRoot":"","sources":["../src/webgpu-override.ts"],"names":[],"mappings":"AAgCA,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D;AAgBD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACzE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC3D,GAAG,kBAAkB,CA8BrB"}
@@ -1,19 +1,18 @@
1
1
  // A GPU override (gpuVendor / gpuRenderer) replaces only the WebGL strings in the engine. The WebGPU
2
- // adapter (patch 075, gpu_adapter.cc) reads --fingerprint-webgpu-{vendor,architecture,device,
2
+ // adapter reads --fingerprint-webgpu-{vendor,architecture,device,
3
3
  // description} when present, else the persona's own values, so without these flags WebGL can say
4
4
  // Intel while navigator.gpu still says the persona's old AMD/NVIDIA GPU.
5
5
  //
6
6
  // Empty values: the adapter tests HasSwitch() first, so `--fingerprint-webgpu-architecture=` really
7
7
  // yields an empty architecture (it does NOT fall back to the persona). Device and description are
8
- // emptied the same way so the old GPU's strings cannot leak. (The persona derivation in patch 002
8
+ // emptied the same way so the old GPU's strings cannot leak. (The persona derivation in the engine
9
9
  // does refill an empty persona.webgpu_architecture from the WebGL vendor, but the adapter never
10
10
  // reads that value once the switch is present.)
11
11
  import { existsSync, readFileSync } from "node:fs";
12
12
  import { gpuFamilies } from "./persona-profile-v2.js";
13
13
  /** Renderer text -> WebGPU architecture. Spellings: `gen-9`, `gen-12-lp`, `turing`, `ampere` appear
14
- * in this repo's persona data (schemas/fixtures, patches/075 + 002). `pascal`/`lovelace` (NVIDIA)
15
- * and `gcn-4`/`rdna-1`/`rdna-2`/`rdna-3` (AMD) follow Dawn's gpu_info architecture naming; they are
16
- * not in repo fixtures. Anything not matched is left empty rather than guessed. */
14
+ * in the persona data. `pascal`/`lovelace` (NVIDIA)
15
+ * and `gcn-4`/`rdna-1`/`rdna-2`/`rdna-3` (AMD) follow Dawn's gpu_info architecture naming. Anything not matched is left empty rather than guessed. */
17
16
  const ARCHITECTURES = [
18
17
  [/\b(?:uhd|hd) graphics\s*[56]\d\d\b/i, "gen-9"],
19
18
  [/\biris\W*(?:\(r\)\W*)?xe\b|\buhd graphics\s*7\d\d\b/i, "gen-12-lp"],
@@ -1 +1 @@
1
- {"version":3,"file":"webgpu-override.js","sourceRoot":"","sources":["../src/webgpu-override.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,8FAA8F;AAC9F,iGAAiG;AACjG,yEAAyE;AACzE,EAAE;AACF,oGAAoG;AACpG,kGAAkG;AAClG,kGAAkG;AAClG,gGAAgG;AAChG,gDAAgD;AAEhD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;mFAGmF;AACnF,MAAM,aAAa,GAAuB;IACxC,CAAC,qCAAqC,EAAE,OAAO,CAAC;IAChD,CAAC,sDAAsD,EAAE,WAAW,CAAC;IACrE,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/B,CAAC,oCAAoC,EAAE,QAAQ,CAAC;IAChD,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAC/B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J,CAAC;IACD,IAAI,CAAC,CAAC,kBAAkB,KAAK,SAAS,IAAI,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,MAAM;QAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IACpH,MAAM,IAAI,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO;QACL,4EAA4E;QAC5E,IAAI,EAAE;YACJ,+BAA+B,MAAM,EAAE;YACvC,qCAAqC,IAAI,EAAE;YAC3C,8BAA8B;YAC9B,mCAAmC;SACpC;QACD,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YACzB,gBAAgB,QAAQ,uEAAuE,MAAM,IAAI;gBACzG,6FAA6F;KAChG,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /** Windows persona coherence rules for the local population-model generator (parity with
2
- * sdk/python/ant0browser/_windows_coherence.py and with the cloud generators).
2
+ * python/ant0browser/_windows_coherence.py and with the cloud generators).
3
3
  *
4
4
  * Both rules come from tells a page can read without any permission:
5
5
  * - ANGLE writes the PCI device id into the WebGL renderer string as `0x` plus exactly 8 hex digits
@@ -1,5 +1,5 @@
1
1
  /** Windows persona coherence rules for the local population-model generator (parity with
2
- * sdk/python/ant0browser/_windows_coherence.py and with the cloud generators).
2
+ * python/ant0browser/_windows_coherence.py and with the cloud generators).
3
3
  *
4
4
  * Both rules come from tells a page can read without any permission:
5
5
  * - ANGLE writes the PCI device id into the WebGL renderer string as `0x` plus exactly 8 hex digits
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant0-browser",
3
- "version": "0.2.1",
3
+ "version": "0.2.3-beta.1",
4
4
  "description": "Playwright SDK for launching a separately installed Ant0 Browser engine.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -45,7 +45,6 @@
45
45
  "fingerprint",
46
46
  "farbling",
47
47
  "automation",
48
- "ungoogled",
49
48
  "browser-automation",
50
49
  "ai-agents",
51
50
  "browser-personas"