ant0-browser 0.2.2 → 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.
- package/LICENSE +0 -6
- package/README.md +9 -7
- package/dist/chromium-version.d.ts +2 -11
- package/dist/chromium-version.d.ts.map +1 -1
- package/dist/chromium-version.js +2 -11
- package/dist/chromium-version.js.map +1 -1
- package/dist/claim-hints.d.ts +2 -2
- package/dist/claim-hints.js +2 -2
- package/dist/content.js +1 -1
- package/dist/content.js.map +1 -1
- package/dist/fingerprint.d.ts +12 -14
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/fingerprint.js +5 -5
- package/dist/fingerprint.js.map +1 -1
- package/dist/fonts.d.ts +2 -2
- package/dist/fonts.d.ts.map +1 -1
- package/dist/fonts.js +9 -5
- package/dist/fonts.js.map +1 -1
- package/dist/geoip.d.ts.map +1 -1
- package/dist/geoip.js +1 -2
- package/dist/geoip.js.map +1 -1
- package/dist/humanize.d.ts +33 -0
- package/dist/humanize.d.ts.map +1 -1
- package/dist/humanize.js +136 -106
- package/dist/humanize.js.map +1 -1
- package/dist/identity-persistence.d.ts +6 -0
- package/dist/identity-persistence.d.ts.map +1 -1
- package/dist/identity-persistence.js +19 -1
- package/dist/identity-persistence.js.map +1 -1
- package/dist/identity.d.ts +10 -2
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +58 -16
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +12 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -23
- package/dist/index.js.map +1 -1
- package/dist/launch-ticket.d.ts +2 -2
- package/dist/launch-ticket.d.ts.map +1 -1
- package/dist/launch-ticket.js +4 -4
- package/dist/launch-ticket.js.map +1 -1
- package/dist/launchopts.d.ts +12 -12
- package/dist/launchopts.js +12 -12
- package/dist/linux-population-table.d.ts +2 -0
- package/dist/linux-population-table.d.ts.map +1 -0
- package/dist/linux-population-table.js +4 -0
- package/dist/linux-population-table.js.map +1 -0
- package/dist/linux-population.d.ts +25 -0
- package/dist/linux-population.d.ts.map +1 -0
- package/dist/linux-population.js +203 -0
- package/dist/linux-population.js.map +1 -0
- package/dist/motion.d.ts +51 -7
- package/dist/motion.d.ts.map +1 -1
- package/dist/motion.js +192 -29
- package/dist/motion.js.map +1 -1
- package/dist/motionscore.js +1 -1
- package/dist/motionscore.js.map +1 -1
- package/dist/native/linux-x64/ant0_runtime.node +0 -0
- package/dist/native/windows-x64/ant0_runtime.node +0 -0
- package/dist/persona-migration.d.ts +2 -5
- package/dist/persona-migration.d.ts.map +1 -1
- package/dist/persona-migration.js +2 -5
- package/dist/persona-migration.js.map +1 -1
- package/dist/persona-profile-v4.d.ts +1 -1
- package/dist/persona-profile-v4.js +1 -1
- package/dist/persona-rejected.d.ts +1 -1
- package/dist/persona-rejected.js +1 -1
- package/dist/persona-rejected.js.map +1 -1
- package/dist/population-model.d.ts +13 -1
- package/dist/population-model.d.ts.map +1 -1
- package/dist/population-model.js +6 -6
- package/dist/population-model.js.map +1 -1
- package/dist/profile-file.d.ts +1 -2
- package/dist/profile-file.d.ts.map +1 -1
- package/dist/profile-file.js +3 -4
- package/dist/profile-file.js.map +1 -1
- package/dist/render.d.ts +1 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +4 -5
- package/dist/render.js.map +1 -1
- package/dist/scale.d.ts +1 -1
- package/dist/scale.js +2 -2
- package/dist/scale.js.map +1 -1
- package/dist/shaderdialect.d.ts +12 -12
- package/dist/shaderdialect.d.ts.map +1 -1
- package/dist/shaderdialect.js +16 -19
- package/dist/shaderdialect.js.map +1 -1
- package/dist/speech-coherence.d.ts +17 -5
- package/dist/speech-coherence.d.ts.map +1 -1
- package/dist/speech-coherence.js +43 -6
- package/dist/speech-coherence.js.map +1 -1
- package/dist/warnings.d.ts +29 -0
- package/dist/warnings.d.ts.map +1 -1
- package/dist/warnings.js +94 -5
- package/dist/warnings.js.map +1 -1
- package/dist/webgl-coherence.d.ts +1 -1
- package/dist/webgl-coherence.js +1 -1
- package/dist/webgpu-override.d.ts.map +1 -1
- package/dist/webgpu-override.js +4 -5
- package/dist/webgpu-override.js.map +1 -1
- package/dist/windows-coherence.d.ts +1 -1
- package/dist/windows-coherence.js +1 -1
- package/package.json +1 -2
package/dist/launchopts.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createRequire } from "node:module";
|
|
|
7
7
|
import { isIP } from "node:net";
|
|
8
8
|
import { dirname, join } from "node:path";
|
|
9
9
|
import { SdkInputError } from "./errors.js";
|
|
10
|
-
/** Privacy Sandbox + intrusive web APIs a de-Googled
|
|
10
|
+
/** Privacy Sandbox + intrusive web APIs a de-Googled build should not expose (a build that
|
|
11
11
|
* claims de-Googled while still answering document.browsingTopics()/navigator.runAdAuction is a
|
|
12
12
|
* self-contradictory, pivotable fingerprint). All are runtime base::Features, so disabling needs
|
|
13
13
|
* no rebuild.
|
|
@@ -71,8 +71,8 @@ export function quicArgs(proxy) {
|
|
|
71
71
|
}
|
|
72
72
|
/** Emit `--socks5-udp` for a `socks5://` proxy when the caller asks for it.
|
|
73
73
|
*
|
|
74
|
-
* WARNING: the engine does NOT implement this switch today. Neither the
|
|
75
|
-
* Chromium tree it builds contains a `--socks5-udp` handler (two independent source reads), so
|
|
74
|
+
* WARNING: the engine does NOT implement this switch today. Neither the engine's own code nor the
|
|
75
|
+
* Chromium tree it builds on contains a `--socks5-udp` handler (two independent source reads), so
|
|
76
76
|
* Chromium ignores it: no UDP is relayed through the proxy, and the deny policy
|
|
77
77
|
* (`disable_non_proxied_udp`, see {@link webrtcDefaultDenyArgs}) still blocks peer-to-peer UDP.
|
|
78
78
|
* The option is kept so existing callers do not break and so engine support can land later; do not
|
|
@@ -141,7 +141,7 @@ export const IGNORED_PLAYWRIGHT_DEFAULTS = ["--enable-automation", "--disable-ip
|
|
|
141
141
|
/** Playwright testing switches `launch()` / `launchPersistentContext()` do not pass, because a page can
|
|
142
142
|
* observe them: `--hide-scrollbars` (`innerWidth - clientWidth` is 0 instead of the scrollbar width) and
|
|
143
143
|
* `--disable-popup-blocking` (`window.open()` without a user gesture returns a Window instead of null).
|
|
144
|
-
* Removing them breaks no Playwright automation (measured
|
|
144
|
+
* Removing them breaks no Playwright automation (measured). They go into
|
|
145
145
|
* `ignoreDefaultArgs` unless the caller passes the switch itself in `args`: Playwright's
|
|
146
146
|
* `ignoreDefaultArgs` also filters the caller's own `args`, so ignoring it then would drop the caller's
|
|
147
147
|
* switch. `serve()` / `launchPlan()` never had them. */
|
|
@@ -150,7 +150,7 @@ export const DROPPED_PLAYWRIGHT_SWITCHES = ["--hide-scrollbars", "--disable-popu
|
|
|
150
150
|
* them: `HttpsUpgrades` (http: navigations upgrade to https: when TLS answers) and
|
|
151
151
|
* `BoundaryEventDispatchTracksNodeRemoval` (extra `mouseenter` events after the pointed-at node is
|
|
152
152
|
* removed), and `MediaRouter` (a launch() page whose Chromium has it disabled is flagged by Fingerprint's bot
|
|
153
|
-
*
|
|
153
|
+
* automation; serve()/launchPlan() never passed it). A caller's own `--disable-features`
|
|
154
154
|
* is merged after the defaults and keeps them. */
|
|
155
155
|
export const DROPPED_PLAYWRIGHT_DISABLED_FEATURES = ["HttpsUpgrades", "BoundaryEventDispatchTracksNodeRemoval", "MediaRouter"];
|
|
156
156
|
/** Kept disabled on every launch path. playwright-core 1.61 does not disable it (1.65 does), and with it
|
|
@@ -357,7 +357,7 @@ export function proxyBypassArgs(proxy) {
|
|
|
357
357
|
}
|
|
358
358
|
/** Playwright's chromium launcher adds `--enable-unsafe-swiftshader` to every launch (playwright-core
|
|
359
359
|
* 1.61). On a Windows host with no GPU or a blocklisted one that forces WebGL onto SwiftShader, where a
|
|
360
|
-
* real Windows Chrome falls back to D3D11 WARP: a
|
|
360
|
+
* real Windows Chrome falls back to D3D11 WARP: a visible difference. Dropped on a win32 host only. Linux is
|
|
361
361
|
* left alone on purpose: a headless Linux server often has no GPU or GL driver at all and needs
|
|
362
362
|
* SwiftShader for WebGL to work. */
|
|
363
363
|
export const WINDOWS_ONLY_IGNORED_PLAYWRIGHT_DEFAULTS = ["--enable-unsafe-swiftshader"];
|
|
@@ -502,7 +502,7 @@ export const WEBRTC_NO_LOCAL_DNS = "--webrtc-no-local-dns";
|
|
|
502
502
|
* daemon's credential relay included) when the engine is at {@link WEBRTC_IP_MIN_ENGINE} or later
|
|
503
503
|
* (the same version check as `--webrtc-ip`; unknown counts as old). Not added without a proxy, or
|
|
504
504
|
* when the caller's own WebRTC policy allows UDP, or when it is already in the args, or in UDP
|
|
505
|
-
* relay mode (`--webrtc-udp-relay`; the engine ignores it there
|
|
505
|
+
* relay mode (`--webrtc-udp-relay`; the engine ignores it there).
|
|
506
506
|
*/
|
|
507
507
|
export function gateWebrtcArgs(args, engineVersion, quiet, hasProxy) {
|
|
508
508
|
const out = gateWebrtcIpArgs(args, engineVersion, quiet);
|
|
@@ -550,8 +550,8 @@ export function extensionArgs(paths) {
|
|
|
550
550
|
/** First-run/UX hygiene switches for a DIRECT launch (`serve()` / `launchPlan()`).
|
|
551
551
|
*
|
|
552
552
|
* Playwright adds these itself on `launch()`, so a Playwright-driven browser never shows the
|
|
553
|
-
* first-run UI. A direct spawn gets none of that, and the
|
|
554
|
-
* `chrome://ungoogled-first-run` (
|
|
553
|
+
* first-run UI. A direct spawn gets none of that, and the engine then opens
|
|
554
|
+
* `chrome://ungoogled-first-run` (empty body) in the first
|
|
555
555
|
* tab whenever the caller passes no start URL, plus the default-browser prompt and the search
|
|
556
556
|
* engine choice screen in headed mode. These are plain UI switches, not `base::Feature` toggles:
|
|
557
557
|
* they change nothing a page can observe, so the identity layer (which owns
|
|
@@ -579,7 +579,7 @@ export function hasUrlPositional(args) {
|
|
|
579
579
|
return false;
|
|
580
580
|
}
|
|
581
581
|
/** The neutral start page for a direct launch with no caller URL: `about:blank` as the final
|
|
582
|
-
* positional, so the first tab is blank instead of the
|
|
582
|
+
* positional, so the first tab is blank instead of the engine's first-run page. Empty when the
|
|
583
583
|
* caller already supplied a URL positional (Chromium would open both otherwise). */
|
|
584
584
|
export function defaultStartUrlArgs(args) {
|
|
585
585
|
return hasUrlPositional(args) ? [] : ["about:blank"];
|
|
@@ -596,7 +596,7 @@ export const SOCKS_CREDENTIALS_UNSUPPORTED = "SOCKS proxy with username/password
|
|
|
596
596
|
*
|
|
597
597
|
* Every proxy shape is left to Playwright unchanged, except a SOCKS proxy WITH credentials, which
|
|
598
598
|
* throws: neither Playwright (it rejects credentials in a SOCKS descriptor) nor the engine (stock
|
|
599
|
-
* Chromium has no RFC 1929 client, and
|
|
599
|
+
* Chromium has no RFC 1929 client, and the engine adds none) can authenticate to it, so
|
|
600
600
|
* a launch would silently produce a proxy that refuses every connection. Callers needing a
|
|
601
601
|
* credentialed SOCKS5 upstream run a local relay and hand the SDK its unauthenticated loopback
|
|
602
602
|
* address instead. Userinfo inside the URL (`socks5://user:pass@host:port`) counts as credentials
|
|
@@ -618,7 +618,7 @@ export function resolveProxy(proxy) {
|
|
|
618
618
|
return { args: [], proxy };
|
|
619
619
|
}
|
|
620
620
|
/** Switches only the engine sets. `--ant0-persona-handle` carries the accepted persona to renderer
|
|
621
|
-
* processes
|
|
621
|
+
* processes; a browser-process value would be ignored at best, so the SDK neither emits it
|
|
622
622
|
* nor lets a caller's own args do so. */
|
|
623
623
|
export const RESERVED_ENGINE_SWITCHES = ["--ant0-persona-handle"];
|
|
624
624
|
/** Throw `sdk.launch_option_unsupported` when `args` contains an engine-reserved switch, in any spelling
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const LINUX_TABLE_JSON = "{\"borrowed_windows\":{\"device_memory\":{\"levels\":[{\"cells\":{\"12\":[[2,148],[3,65],[1,45]],\"14\":[[2,24]],\"16\":[[2,66],[3,54],[1,6]],\"2\":[[0,7]],\"20\":[[3,31],[2,20]],\"22\":[[3,5]],\"24\":[[3,19],[2,5]],\"28\":[[2,5]],\"32\":[[3,20]],\"4\":[[1,71],[2,23],[0,17]],\"6\":[[2,13],[1,8]],\"8\":[[1,74],[2,73],[3,23]]},\"key\":[\"hc\"]},{\"cells\":{\"windows\":[[2,383],[3,234],[1,210],[0,30]]},\"key\":[\"P\"]}],\"values\":[4,8,16,32]},\"js_heap_size_limit\":{\"levels\":[{\"cells\":{\"chrome\":[[0,83]],\"edge\":[[0,250]]},\"key\":[\"brand\"]},{\"cells\":{\"windows\":[[0,333]]},\"key\":[\"P\"]}],\"values\":[4395630592]}},\"engine\":{\"chrome_version\":\"158.0.8127.18\",\"major\":158},\"k_floor\":5,\"linux\":{\"audio\":{\"levels\":[{\"cells\":{\"desktop\":[[0,216],[1,71]],\"laptop\":[[0,62],[1,30]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,278],[1,101]]},\"key\":[\"P\"]}],\"values\":[{\"base_latency\":0.011609977324263039,\"max_channel_count\":2,\"output_latency\":0,\"sample_rate\":44100},{\"base_latency\":0.010666666666666666,\"max_channel_count\":2,\"output_latency\":0,\"sample_rate\":48000}]},\"bluetooth_available\":{\"levels\":[{\"cells\":{\"desktop\":[[0,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[false]},\"color_gamut\":{\"levels\":[{\"cells\":{\"1366x768@1\":[[0,9]],\"1440x900@1\":[[0,5]],\"1536x864@1.25\":[[0,5]],\"1600x900@1\":[[0,5]],\"1680x1050@1\":[[0,6]],\"1920x1080@1\":[[0,198],[1,8]],\"1920x1080@1.100000023841858\":[[0,6]],\"1920x1080@2\":[[0,6]],\"2560x1080@1\":[[0,5]],\"2560x1440@1\":[[0,26]],\"3840x2160@1.25\":[[0,9]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[0,365],[1,18]]},\"key\":[\"P\"]}],\"values\":[\"srgb\",\"p3\"]},\"color_scheme\":{\"levels\":[{\"cells\":{},\"key\":[\"P\"]},{\"cells\":{\"linux\":[[1,207],[0,176]]},\"key\":[\"P\"]}],\"values\":[\"dark\",\"light\"]},\"display\":{\"levels\":[{\"cells\":{\"desktop\":[[0,154],[3,22],[2,9],[4,6],[1,5],[5,5],[6,5]],\"laptop\":[[0,52],[3,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,206],[3,28],[2,9],[4,9],[1,6],[5,6],[7,6],[6,5],[8,5],[9,5],[10,5]]},\"key\":[\"P\"]}],\"values\":[{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1.100000023841858,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1.25,\"height\":2160,\"width\":3840},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1440,\"width\":2560},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":768,\"width\":1366},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1050,\"width\":1680},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":900,\"width\":1440},{\"color_depth\":24,\"device_pixel_ratio\":2,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":900,\"width\":1600},{\"color_depth\":24,\"device_pixel_ratio\":1.25,\"height\":864,\"width\":1536},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1080,\"width\":2560}]},\"do_not_track\":{\"levels\":[{\"cells\":{\"linux\":[[1,316],[0,67]]},\"key\":[\"P\"]}],\"values\":[\"1\",\"unset\"]},\"dynamic_range\":{\"levels\":[{\"cells\":{\"srgb\":[[0,6]]},\"key\":[\"gamut\"]},{\"cells\":{\"linux\":[[0,6]]},\"key\":[\"P\"]}],\"values\":[\"standard\"]},\"form_factor\":{\"levels\":[{\"cells\":{\"linux\":[[0,291],[1,92]]},\"key\":[\"P\"]}],\"values\":[\"desktop\",\"laptop\"]},\"hardware_concurrency\":{\"levels\":[{\"cells\":{\"ANGLE (Intel, Mesa Intel(R) Xe Graphics (TGL GT2), OpenGL 4.6)\":[[0,24]]},\"key\":[\"gpu\"]},{\"cells\":{\"Google Inc. (Intel)|opengl|unknown\":[[0,24]]},\"key\":[\"gpu_arch\"]},{\"cells\":{\"Google Inc. (Intel)|opengl\":[[0,24]]},\"key\":[\"gpu_family\"]},{\"cells\":{\"desktop\":[[0,62],[8,53],[2,50],[3,34],[5,20],[1,17],[7,13],[9,7],[10,7],[4,6],[6,6],[11,6]],\"laptop\":[[0,32],[3,25],[2,17],[8,14]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,94],[2,67],[8,67],[3,59],[5,21],[1,18],[7,14],[9,7],[10,7],[11,7],[4,6],[6,6]]},\"key\":[\"P\"]}],\"values\":[8,24,4,16,3,6,10,20,12,32,7,2]},\"input\":{\"levels\":[{\"cells\":{\"desktop\":[[0,284],[1,7]],\"laptop\":[[0,89]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,373],[1,10]]},\"key\":[\"P\"]}],\"values\":[{\"any_hover\":\"hover\",\"any_pointer\":\"fine\",\"hover\":\"hover\",\"max_touch_points\":0,\"pointer\":\"fine\"},{\"any_hover\":\"hover\",\"any_pointer\":\"coarse\",\"hover\":\"hover\",\"max_touch_points\":10,\"pointer\":\"fine\"}]},\"keyboard\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[{\"Backquote\":\"`\",\"Backslash\":\"\\\\\",\"BracketLeft\":\"[\",\"BracketRight\":\"]\",\"Comma\":\",\",\"Digit0\":\"0\",\"Digit1\":\"1\",\"Digit2\":\"2\",\"Digit3\":\"3\",\"Digit4\":\"4\",\"Digit5\":\"5\",\"Digit6\":\"6\",\"Digit7\":\"7\",\"Digit8\":\"8\",\"Digit9\":\"9\",\"Equal\":\"=\",\"IntlBackslash\":\"<\",\"KeyA\":\"a\",\"KeyB\":\"b\",\"KeyC\":\"c\",\"KeyD\":\"d\",\"KeyE\":\"e\",\"KeyF\":\"f\",\"KeyG\":\"g\",\"KeyH\":\"h\",\"KeyI\":\"i\",\"KeyJ\":\"j\",\"KeyK\":\"k\",\"KeyL\":\"l\",\"KeyM\":\"m\",\"KeyN\":\"n\",\"KeyO\":\"o\",\"KeyP\":\"p\",\"KeyQ\":\"q\",\"KeyR\":\"r\",\"KeyS\":\"s\",\"KeyT\":\"t\",\"KeyU\":\"u\",\"KeyV\":\"v\",\"KeyW\":\"w\",\"KeyX\":\"x\",\"KeyY\":\"y\",\"KeyZ\":\"z\",\"Minus\":\"-\",\"Period\":\".\",\"Quote\":\"'\",\"Semicolon\":\";\",\"Slash\":\"/\"}]},\"media_device_kinds\":{\"levels\":[{\"cells\":{\"desktop\":[[0,141],[2,84],[1,62]],\"laptop\":[[0,85],[2,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,226],[2,90],[1,63]]},\"key\":[\"P\"]}],\"values\":[[\"audioinput\",\"audiooutput\",\"videoinput\"],[\"audiooutput\"],[\"audioinput\",\"audiooutput\"]]},\"os_release\":{\"levels\":[{\"cells\":{},\"key\":[\"P\"]},{\"cells\":{\"linux\":[[0,383]]},\"key\":[\"P\"]}],\"values\":[\"linux\"]},\"pdf_viewer_enabled\":{\"levels\":[{\"cells\":{\"linux\":[[0,371],[1,5]]},\"key\":[\"P\"]}],\"values\":[true,false]},\"platform_version\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"os_release\"]}],\"values\":[\"\"]},\"system_fonts\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[{\"caption\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"icon\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"menu\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"message_box\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"small_caption\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"status_bar\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"system_ui\":\"Arial\"}]},\"ua_ch\":{\"levels\":[{\"cells\":{\"Google Inc. (Intel)\":[[0,25]]},\"key\":[\"gpu_vendor\"]},{\"cells\":{\"linux\":[[0,376]]},\"key\":[\"P\"]}],\"values\":[{\"architecture\":\"x86\",\"bitness\":\"64\",\"wow64\":false}]},\"work_rest\":{\"levels\":[{\"cells\":{\"linux|1920x1080@1\":[[4,36],[1,34],[2,20],[0,14],[3,14],[5,13],[6,7],[7,5]],\"linux|2560x1440@1\":[[4,10]],\"linux|3840x2160@1.25\":[[8,7]]},\"key\":[\"os_release\",\"display\"]},{\"cells\":{\"1920x1080@1\":[[4,36],[1,34],[2,20],[0,14],[3,14],[5,13],[6,7],[7,5]],\"2560x1440@1\":[[4,10]],\"3840x2160@1.25\":[[8,7]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[4,89],[1,45],[2,26],[0,21],[3,20],[5,16],[6,11],[8,7],[9,7],[7,5],[10,5]]},\"key\":[\"os_release\"]},{\"cells\":{\"desktop\":[[4,63],[1,35],[0,19],[2,18],[3,17],[5,10],[6,10],[8,7],[7,5]],\"laptop\":[[4,26],[1,10],[2,8],[5,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[4,89],[1,45],[2,26],[0,21],[3,20],[5,16],[6,11],[8,7],[9,7],[7,5],[10,5]]},\"key\":[\"P\"]}],\"values\":[{\"avail_left\":72,\"dh_extra\":0,\"dw\":72},{\"avail_left\":1920,\"dh_extra\":0,\"dw\":0},{\"avail_left\":70,\"dh_extra\":0,\"dw\":70},{\"avail_left\":0,\"dh_extra\":40,\"dw\":0},{\"avail_left\":0,\"dh_extra\":0,\"dw\":0},{\"avail_left\":0,\"dh_extra\":44,\"dw\":0},{\"avail_left\":68,\"dh_extra\":0,\"dw\":68},{\"avail_left\":0,\"dh_extra\":30,\"dw\":0},{\"avail_left\":80,\"dh_extra\":0,\"dw\":80},{\"avail_left\":74,\"dh_extra\":0,\"dw\":74},{\"avail_left\":0,\"dh_extra\":32,\"dw\":0}]},\"work_top\":{\"levels\":[{\"cells\":{\"linux|1366x768@1\":[[1,6]],\"linux|1680x1050@1\":[[1,5]],\"linux|1920x1080@1\":[[1,96],[0,74],[2,11]],\"linux|2560x1440@1\":[[1,15],[0,7]],\"linux|3840x2160@1.25\":[[0,9]]},\"key\":[\"os_release\",\"display\"]},{\"cells\":{\"1366x768@1\":[[1,6]],\"1680x1050@1\":[[1,5]],\"1920x1080@1\":[[1,96],[0,74],[2,11]],\"2560x1440@1\":[[1,15],[0,7]],\"3840x2160@1.25\":[[0,9]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[1,178],[0,125],[2,19],[3,5]]},\"key\":[\"os_release\"]},{\"cells\":{\"linux\":[[1,178],[0,125],[2,19],[3,5]]},\"key\":[\"P\"]}],\"values\":[27,0,32,30]}},\"model\":{\"created_at\":\"2026-11-14T00:00:00Z\",\"sha256\":\"ecc37a0287b33dfcdb2e580734c289786596f55bc99607cf2e2f2fb6672bc8db\",\"version\":\"population-model-v2.2\"}}";
|
|
2
|
+
//# sourceMappingURL=linux-population-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linux-population-table.d.ts","sourceRoot":"","sources":["../src/linux-population-table.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,imRAAimR,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/* Generated by tools/fingerprint-data/extract_linux_table.py from the V2.2 population model. Do not edit. */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export const LINUX_TABLE_JSON = "{\"borrowed_windows\":{\"device_memory\":{\"levels\":[{\"cells\":{\"12\":[[2,148],[3,65],[1,45]],\"14\":[[2,24]],\"16\":[[2,66],[3,54],[1,6]],\"2\":[[0,7]],\"20\":[[3,31],[2,20]],\"22\":[[3,5]],\"24\":[[3,19],[2,5]],\"28\":[[2,5]],\"32\":[[3,20]],\"4\":[[1,71],[2,23],[0,17]],\"6\":[[2,13],[1,8]],\"8\":[[1,74],[2,73],[3,23]]},\"key\":[\"hc\"]},{\"cells\":{\"windows\":[[2,383],[3,234],[1,210],[0,30]]},\"key\":[\"P\"]}],\"values\":[4,8,16,32]},\"js_heap_size_limit\":{\"levels\":[{\"cells\":{\"chrome\":[[0,83]],\"edge\":[[0,250]]},\"key\":[\"brand\"]},{\"cells\":{\"windows\":[[0,333]]},\"key\":[\"P\"]}],\"values\":[4395630592]}},\"engine\":{\"chrome_version\":\"158.0.8127.18\",\"major\":158},\"k_floor\":5,\"linux\":{\"audio\":{\"levels\":[{\"cells\":{\"desktop\":[[0,216],[1,71]],\"laptop\":[[0,62],[1,30]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,278],[1,101]]},\"key\":[\"P\"]}],\"values\":[{\"base_latency\":0.011609977324263039,\"max_channel_count\":2,\"output_latency\":0,\"sample_rate\":44100},{\"base_latency\":0.010666666666666666,\"max_channel_count\":2,\"output_latency\":0,\"sample_rate\":48000}]},\"bluetooth_available\":{\"levels\":[{\"cells\":{\"desktop\":[[0,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[false]},\"color_gamut\":{\"levels\":[{\"cells\":{\"1366x768@1\":[[0,9]],\"1440x900@1\":[[0,5]],\"1536x864@1.25\":[[0,5]],\"1600x900@1\":[[0,5]],\"1680x1050@1\":[[0,6]],\"1920x1080@1\":[[0,198],[1,8]],\"1920x1080@1.100000023841858\":[[0,6]],\"1920x1080@2\":[[0,6]],\"2560x1080@1\":[[0,5]],\"2560x1440@1\":[[0,26]],\"3840x2160@1.25\":[[0,9]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[0,365],[1,18]]},\"key\":[\"P\"]}],\"values\":[\"srgb\",\"p3\"]},\"color_scheme\":{\"levels\":[{\"cells\":{},\"key\":[\"P\"]},{\"cells\":{\"linux\":[[1,207],[0,176]]},\"key\":[\"P\"]}],\"values\":[\"dark\",\"light\"]},\"display\":{\"levels\":[{\"cells\":{\"desktop\":[[0,154],[3,22],[2,9],[4,6],[1,5],[5,5],[6,5]],\"laptop\":[[0,52],[3,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,206],[3,28],[2,9],[4,9],[1,6],[5,6],[7,6],[6,5],[8,5],[9,5],[10,5]]},\"key\":[\"P\"]}],\"values\":[{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1.100000023841858,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1.25,\"height\":2160,\"width\":3840},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1440,\"width\":2560},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":768,\"width\":1366},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1050,\"width\":1680},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":900,\"width\":1440},{\"color_depth\":24,\"device_pixel_ratio\":2,\"height\":1080,\"width\":1920},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":900,\"width\":1600},{\"color_depth\":24,\"device_pixel_ratio\":1.25,\"height\":864,\"width\":1536},{\"color_depth\":24,\"device_pixel_ratio\":1,\"height\":1080,\"width\":2560}]},\"do_not_track\":{\"levels\":[{\"cells\":{\"linux\":[[1,316],[0,67]]},\"key\":[\"P\"]}],\"values\":[\"1\",\"unset\"]},\"dynamic_range\":{\"levels\":[{\"cells\":{\"srgb\":[[0,6]]},\"key\":[\"gamut\"]},{\"cells\":{\"linux\":[[0,6]]},\"key\":[\"P\"]}],\"values\":[\"standard\"]},\"form_factor\":{\"levels\":[{\"cells\":{\"linux\":[[0,291],[1,92]]},\"key\":[\"P\"]}],\"values\":[\"desktop\",\"laptop\"]},\"hardware_concurrency\":{\"levels\":[{\"cells\":{\"ANGLE (Intel, Mesa Intel(R) Xe Graphics (TGL GT2), OpenGL 4.6)\":[[0,24]]},\"key\":[\"gpu\"]},{\"cells\":{\"Google Inc. (Intel)|opengl|unknown\":[[0,24]]},\"key\":[\"gpu_arch\"]},{\"cells\":{\"Google Inc. (Intel)|opengl\":[[0,24]]},\"key\":[\"gpu_family\"]},{\"cells\":{\"desktop\":[[0,62],[8,53],[2,50],[3,34],[5,20],[1,17],[7,13],[9,7],[10,7],[4,6],[6,6],[11,6]],\"laptop\":[[0,32],[3,25],[2,17],[8,14]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,94],[2,67],[8,67],[3,59],[5,21],[1,18],[7,14],[9,7],[10,7],[11,7],[4,6],[6,6]]},\"key\":[\"P\"]}],\"values\":[8,24,4,16,3,6,10,20,12,32,7,2]},\"input\":{\"levels\":[{\"cells\":{\"desktop\":[[0,284],[1,7]],\"laptop\":[[0,89]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,373],[1,10]]},\"key\":[\"P\"]}],\"values\":[{\"any_hover\":\"hover\",\"any_pointer\":\"fine\",\"hover\":\"hover\",\"max_touch_points\":0,\"pointer\":\"fine\"},{\"any_hover\":\"hover\",\"any_pointer\":\"coarse\",\"hover\":\"hover\",\"max_touch_points\":10,\"pointer\":\"fine\"}]},\"keyboard\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[{\"Backquote\":\"`\",\"Backslash\":\"\\\\\",\"BracketLeft\":\"[\",\"BracketRight\":\"]\",\"Comma\":\",\",\"Digit0\":\"0\",\"Digit1\":\"1\",\"Digit2\":\"2\",\"Digit3\":\"3\",\"Digit4\":\"4\",\"Digit5\":\"5\",\"Digit6\":\"6\",\"Digit7\":\"7\",\"Digit8\":\"8\",\"Digit9\":\"9\",\"Equal\":\"=\",\"IntlBackslash\":\"<\",\"KeyA\":\"a\",\"KeyB\":\"b\",\"KeyC\":\"c\",\"KeyD\":\"d\",\"KeyE\":\"e\",\"KeyF\":\"f\",\"KeyG\":\"g\",\"KeyH\":\"h\",\"KeyI\":\"i\",\"KeyJ\":\"j\",\"KeyK\":\"k\",\"KeyL\":\"l\",\"KeyM\":\"m\",\"KeyN\":\"n\",\"KeyO\":\"o\",\"KeyP\":\"p\",\"KeyQ\":\"q\",\"KeyR\":\"r\",\"KeyS\":\"s\",\"KeyT\":\"t\",\"KeyU\":\"u\",\"KeyV\":\"v\",\"KeyW\":\"w\",\"KeyX\":\"x\",\"KeyY\":\"y\",\"KeyZ\":\"z\",\"Minus\":\"-\",\"Period\":\".\",\"Quote\":\"'\",\"Semicolon\":\";\",\"Slash\":\"/\"}]},\"media_device_kinds\":{\"levels\":[{\"cells\":{\"desktop\":[[0,141],[2,84],[1,62]],\"laptop\":[[0,85],[2,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[0,226],[2,90],[1,63]]},\"key\":[\"P\"]}],\"values\":[[\"audioinput\",\"audiooutput\",\"videoinput\"],[\"audiooutput\"],[\"audioinput\",\"audiooutput\"]]},\"os_release\":{\"levels\":[{\"cells\":{},\"key\":[\"P\"]},{\"cells\":{\"linux\":[[0,383]]},\"key\":[\"P\"]}],\"values\":[\"linux\"]},\"pdf_viewer_enabled\":{\"levels\":[{\"cells\":{\"linux\":[[0,371],[1,5]]},\"key\":[\"P\"]}],\"values\":[true,false]},\"platform_version\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"os_release\"]}],\"values\":[\"\"]},\"system_fonts\":{\"levels\":[{\"cells\":{\"linux\":[[0,7]]},\"key\":[\"P\"]}],\"values\":[{\"caption\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"icon\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"menu\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"message_box\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"small_caption\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"status_bar\":{\"family\":\"Arial\",\"size_px\":16,\"weight\":400},\"system_ui\":\"Arial\"}]},\"ua_ch\":{\"levels\":[{\"cells\":{\"Google Inc. (Intel)\":[[0,25]]},\"key\":[\"gpu_vendor\"]},{\"cells\":{\"linux\":[[0,376]]},\"key\":[\"P\"]}],\"values\":[{\"architecture\":\"x86\",\"bitness\":\"64\",\"wow64\":false}]},\"work_rest\":{\"levels\":[{\"cells\":{\"linux|1920x1080@1\":[[4,36],[1,34],[2,20],[0,14],[3,14],[5,13],[6,7],[7,5]],\"linux|2560x1440@1\":[[4,10]],\"linux|3840x2160@1.25\":[[8,7]]},\"key\":[\"os_release\",\"display\"]},{\"cells\":{\"1920x1080@1\":[[4,36],[1,34],[2,20],[0,14],[3,14],[5,13],[6,7],[7,5]],\"2560x1440@1\":[[4,10]],\"3840x2160@1.25\":[[8,7]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[4,89],[1,45],[2,26],[0,21],[3,20],[5,16],[6,11],[8,7],[9,7],[7,5],[10,5]]},\"key\":[\"os_release\"]},{\"cells\":{\"desktop\":[[4,63],[1,35],[0,19],[2,18],[3,17],[5,10],[6,10],[8,7],[7,5]],\"laptop\":[[4,26],[1,10],[2,8],[5,6]]},\"key\":[\"ff\"]},{\"cells\":{\"linux\":[[4,89],[1,45],[2,26],[0,21],[3,20],[5,16],[6,11],[8,7],[9,7],[7,5],[10,5]]},\"key\":[\"P\"]}],\"values\":[{\"avail_left\":72,\"dh_extra\":0,\"dw\":72},{\"avail_left\":1920,\"dh_extra\":0,\"dw\":0},{\"avail_left\":70,\"dh_extra\":0,\"dw\":70},{\"avail_left\":0,\"dh_extra\":40,\"dw\":0},{\"avail_left\":0,\"dh_extra\":0,\"dw\":0},{\"avail_left\":0,\"dh_extra\":44,\"dw\":0},{\"avail_left\":68,\"dh_extra\":0,\"dw\":68},{\"avail_left\":0,\"dh_extra\":30,\"dw\":0},{\"avail_left\":80,\"dh_extra\":0,\"dw\":80},{\"avail_left\":74,\"dh_extra\":0,\"dw\":74},{\"avail_left\":0,\"dh_extra\":32,\"dw\":0}]},\"work_top\":{\"levels\":[{\"cells\":{\"linux|1366x768@1\":[[1,6]],\"linux|1680x1050@1\":[[1,5]],\"linux|1920x1080@1\":[[1,96],[0,74],[2,11]],\"linux|2560x1440@1\":[[1,15],[0,7]],\"linux|3840x2160@1.25\":[[0,9]]},\"key\":[\"os_release\",\"display\"]},{\"cells\":{\"1366x768@1\":[[1,6]],\"1680x1050@1\":[[1,5]],\"1920x1080@1\":[[1,96],[0,74],[2,11]],\"2560x1440@1\":[[1,15],[0,7]],\"3840x2160@1.25\":[[0,9]]},\"key\":[\"display\"]},{\"cells\":{\"linux\":[[1,178],[0,125],[2,19],[3,5]]},\"key\":[\"os_release\"]},{\"cells\":{\"linux\":[[1,178],[0,125],[2,19],[3,5]]},\"key\":[\"P\"]}],\"values\":[27,0,32,30]}},\"model\":{\"created_at\":\"2026-11-14T00:00:00Z\",\"sha256\":\"ecc37a0287b33dfcdb2e580734c289786596f55bc99607cf2e2f2fb6672bc8db\",\"version\":\"population-model-v2.2\"}}";
|
|
4
|
+
//# sourceMappingURL=linux-population-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linux-population-table.js","sourceRoot":"","sources":["../src/linux-population-table.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,kBAAkB;AAClB,MAAM,CAAC,MAAM,gBAAgB,GAAG,8lRAA8lR,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Offline Linux persona generation (ant0/persona-generate-linux/v1), schema 4.
|
|
2
|
+
*
|
|
3
|
+
* Deterministic and identical to the Python mirror. Data comes only from the generated table
|
|
4
|
+
* (./linux-population-table.ts), the measured LINUX_VOICES and the fixed shape constants below. The
|
|
5
|
+
* Windows generator (./population-model.ts) is not involved. Host-supplied surfaces (gpu.webgl,
|
|
6
|
+
* gpu.webgpu, media.webrtc, media.decoding, appearance.system_colors) are never emitted. */
|
|
7
|
+
import { type PersonaProfileV4 } from "./persona-profile-v4.js";
|
|
8
|
+
export declare const LINUX_GENERATE_ALGORITHM = "ant0/persona-generate-linux/v1";
|
|
9
|
+
export declare const LINUX_GENERATOR_VERSION = "1.2.0";
|
|
10
|
+
/** Linux core families of the V2.2 model that render through the bundled font pack (sorted by code point). */
|
|
11
|
+
export declare const LINUX_FONT_FAMILIES: readonly string[];
|
|
12
|
+
/** The GPU seam. Linux GPU strings are host-supplied until a generated Linux GPU exists; when this
|
|
13
|
+
* returns a surface, the generator adds `surfaces.gpu` and the matching `requires` entries. */
|
|
14
|
+
export declare function linuxGpuSurface(): {
|
|
15
|
+
surface: Record<string, unknown>;
|
|
16
|
+
requires: string[];
|
|
17
|
+
} | null;
|
|
18
|
+
/** Deterministically generate and validate one schema 4 Linux persona. */
|
|
19
|
+
export declare function generateLinuxPersona(identityKey: string, deviceKey: string): PersonaProfileV4;
|
|
20
|
+
/** Table identity of the Linux model (version and hash), for provenance checks. */
|
|
21
|
+
export declare function linuxModelInfo(): {
|
|
22
|
+
version: string;
|
|
23
|
+
sha256: string;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=linux-population.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linux-population.d.ts","sourceRoot":"","sources":["../src/linux-population.ts"],"names":[],"mappings":"AAAA;;;;;4FAK4F;AAM5F,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAExF,eAAO,MAAM,wBAAwB,mCAAmC,CAAC;AACzE,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAI/C,8GAA8G;AAC9G,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAEhD,CAAC;AAaF;+FAC+F;AAC/F,wBAAgB,eAAe,IAAI;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAEjG;AA+DD,0EAA0E;AAC1E,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,gBAAgB,CA8G7F;AAED,mFAAmF;AACnF,wBAAgB,cAAc,IAAI;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAEpE"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/** Offline Linux persona generation (ant0/persona-generate-linux/v1), schema 4.
|
|
2
|
+
*
|
|
3
|
+
* Deterministic and identical to the Python mirror. Data comes only from the generated table
|
|
4
|
+
* (./linux-population-table.ts), the measured LINUX_VOICES and the fixed shape constants below. The
|
|
5
|
+
* Windows generator (./population-model.ts) is not involved. Host-supplied surfaces (gpu.webgl,
|
|
6
|
+
* gpu.webgpu, media.webrtc, media.decoding, appearance.system_colors) are never emitted. */
|
|
7
|
+
import { createHash } from "node:crypto";
|
|
8
|
+
import { Drbg, PopulationModelError, frame, keyBytes } from "./population-model.js";
|
|
9
|
+
import { LINUX_TABLE_JSON } from "./linux-population-table.js";
|
|
10
|
+
import { LINUX_VOICES } from "./speech-coherence.js";
|
|
11
|
+
import { assertPersonaProfileV4 } from "./persona-profile-v4.js";
|
|
12
|
+
export const LINUX_GENERATE_ALGORITHM = "ant0/persona-generate-linux/v1";
|
|
13
|
+
export const LINUX_GENERATOR_VERSION = "1.2.0";
|
|
14
|
+
const DOMAIN = Buffer.from("ant0/persona-generate-linux/v1\0", "ascii");
|
|
15
|
+
const SEED_ID_DOMAIN = Buffer.from("ant0/persona-seed-id/v1", "utf8");
|
|
16
|
+
/** Linux core families of the V2.2 model that render through the bundled font pack (sorted by code point). */
|
|
17
|
+
export const LINUX_FONT_FAMILIES = [
|
|
18
|
+
"Arial", "Arimo", "Courier New", "Cousine", "DejaVu Sans", "Times New Roman", "Tinos",
|
|
19
|
+
];
|
|
20
|
+
/** The GPU seam. Linux GPU strings are host-supplied until a generated Linux GPU exists; when this
|
|
21
|
+
* returns a surface, the generator adds `surfaces.gpu` and the matching `requires` entries. */
|
|
22
|
+
export function linuxGpuSurface() {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
let cachedTable;
|
|
26
|
+
function table() {
|
|
27
|
+
return (cachedTable ??= JSON.parse(LINUX_TABLE_JSON));
|
|
28
|
+
}
|
|
29
|
+
function pick(cell, drbg) {
|
|
30
|
+
let total = 0n;
|
|
31
|
+
for (const [, weight] of cell)
|
|
32
|
+
total += BigInt(weight);
|
|
33
|
+
const target = drbg.drawU64() % total;
|
|
34
|
+
let cumulative = 0n;
|
|
35
|
+
for (const [idx, weight] of cell) {
|
|
36
|
+
cumulative += BigInt(weight);
|
|
37
|
+
if (target < cumulative)
|
|
38
|
+
return idx;
|
|
39
|
+
}
|
|
40
|
+
return cell[cell.length - 1][0];
|
|
41
|
+
}
|
|
42
|
+
function node(nodes, name, ctx, drbg) {
|
|
43
|
+
const n = nodes[name];
|
|
44
|
+
if (!n)
|
|
45
|
+
return null;
|
|
46
|
+
for (const level of n.levels) {
|
|
47
|
+
const vals = level.key.map((k) => ctx[k]);
|
|
48
|
+
if (vals.some((v) => v === null || v === undefined))
|
|
49
|
+
continue;
|
|
50
|
+
const cell = level.cells[vals.map((v) => String(v)).join("|")];
|
|
51
|
+
if (cell && cell.length > 0)
|
|
52
|
+
return n.values[pick(cell, drbg)];
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
/** Canonical JSON: keys sorted, no whitespace. */
|
|
57
|
+
function canonical(value) {
|
|
58
|
+
if (Array.isArray(value))
|
|
59
|
+
return `[${value.map(canonical).join(",")}]`;
|
|
60
|
+
if (value !== null && typeof value === "object") {
|
|
61
|
+
return `{${Object.keys(value).sort().map((k) => `${JSON.stringify(k)}:${canonical(value[k])}`).join(",")}}`;
|
|
62
|
+
}
|
|
63
|
+
return JSON.stringify(value);
|
|
64
|
+
}
|
|
65
|
+
function layoutId(n, kb) {
|
|
66
|
+
const want = canonical(kb);
|
|
67
|
+
if (n?.layout_ids) {
|
|
68
|
+
for (let i = 0; i < n.values.length; i += 1) {
|
|
69
|
+
if (canonical(n.values[i]) === want && n.layout_ids[i])
|
|
70
|
+
return n.layout_ids[i];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (kb.KeyQ === "q" && kb.KeyY === "y" && kb.KeyZ === "z" && kb.KeyA === "a")
|
|
74
|
+
return "linux-us";
|
|
75
|
+
return `linux-other-${createHash("sha256").update(want, "utf8").digest("hex").slice(0, 6)}`;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The work area's left edge. The model's work_rest rows include a captured secondary-screen offset
|
|
79
|
+
* (avail_left 1920 with no dock, dw 0), and its platform-level cell, the one any display without its
|
|
80
|
+
* own cell falls back to, draws it about 18 percent of the time (the cloud sampler reads the row the
|
|
81
|
+
* same way). A left edge at or beyond the screen's own width is not a work area of that screen, so
|
|
82
|
+
* it is clamped to the screen's origin; a left dock (avail_left == dw) is kept.
|
|
83
|
+
*/
|
|
84
|
+
function availLeft(rest, width) {
|
|
85
|
+
return rest.avail_left >= width ? 0 : rest.avail_left;
|
|
86
|
+
}
|
|
87
|
+
/** Deterministically generate and validate one schema 4 Linux persona. */
|
|
88
|
+
export function generateLinuxPersona(identityKey, deviceKey) {
|
|
89
|
+
const t = table();
|
|
90
|
+
const seed = createHash("sha256")
|
|
91
|
+
.update(DOMAIN)
|
|
92
|
+
.update(frame(keyBytes(identityKey, "identityKey")))
|
|
93
|
+
.update(frame(keyBytes(deviceKey, "deviceKey")))
|
|
94
|
+
.update(frame(Buffer.from(t.model.version, "utf8")))
|
|
95
|
+
.digest();
|
|
96
|
+
const drbg = new Drbg(seed);
|
|
97
|
+
const L = t.linux;
|
|
98
|
+
const W = t.borrowed_windows;
|
|
99
|
+
const ctx = { P: "linux", brand: "chrome" };
|
|
100
|
+
const osRelease = node(L, "os_release", ctx, drbg);
|
|
101
|
+
ctx.os_release = osRelease;
|
|
102
|
+
node(L, "platform_version", ctx, drbg); // drawn, unused: Linux platform_version is ""
|
|
103
|
+
const ff = node(L, "form_factor", ctx, drbg);
|
|
104
|
+
ctx.ff = ff;
|
|
105
|
+
const hc = node(L, "hardware_concurrency", ctx, drbg);
|
|
106
|
+
ctx.hc = hc;
|
|
107
|
+
const dm = node(W, "device_memory", { P: "windows", hc, ff, brand: "chrome" }, drbg);
|
|
108
|
+
const disp = node(L, "display", ctx, drbg);
|
|
109
|
+
if (!disp)
|
|
110
|
+
throw new PopulationModelError("linux table produced no display");
|
|
111
|
+
ctx.display = `${disp.width}x${disp.height}@${disp.device_pixel_ratio}`;
|
|
112
|
+
const top = node(L, "work_top", ctx, drbg) ?? 0;
|
|
113
|
+
const rest = node(L, "work_rest", ctx, drbg) ?? { dw: 0, dh_extra: 0, avail_left: 0 };
|
|
114
|
+
const gamut = node(L, "color_gamut", ctx, drbg);
|
|
115
|
+
ctx.gamut = gamut;
|
|
116
|
+
const dr = node(L, "dynamic_range", ctx, drbg) ?? "standard";
|
|
117
|
+
const inp = node(L, "input", ctx, drbg);
|
|
118
|
+
const audio = node(L, "audio", ctx, drbg);
|
|
119
|
+
const scheme = node(L, "color_scheme", ctx, drbg);
|
|
120
|
+
const uach = node(L, "ua_ch", ctx, drbg);
|
|
121
|
+
const heap = node(W, "js_heap_size_limit", { P: "windows", hc, ff, brand: "chrome" }, drbg);
|
|
122
|
+
const sysf = node(L, "system_fonts", ctx, drbg);
|
|
123
|
+
const kb = node(L, "keyboard", ctx, drbg);
|
|
124
|
+
const bt = node(L, "bluetooth_available", ctx, drbg);
|
|
125
|
+
const dnt = node(L, "do_not_track", ctx, drbg);
|
|
126
|
+
const pdf = node(L, "pdf_viewer_enabled", ctx, drbg);
|
|
127
|
+
const kinds = node(L, "media_device_kinds", ctx, drbg) ?? [];
|
|
128
|
+
const gpu = linuxGpuSurface();
|
|
129
|
+
const surfaces = {
|
|
130
|
+
navigator: {
|
|
131
|
+
platform: "Linux x86_64", vendor: "Google Inc.", product_sub: "20030107",
|
|
132
|
+
hardware_concurrency: hc, device_memory_gb: dm, js_heap_size_limit: heap,
|
|
133
|
+
pdf_viewer_enabled: pdf !== null ? Boolean(pdf) : true,
|
|
134
|
+
do_not_track: dnt === "1" ? "1" : null,
|
|
135
|
+
bluetooth_available: bt,
|
|
136
|
+
ua_ch: {
|
|
137
|
+
architecture: uach?.architecture ?? "x86", bitness: uach?.bitness ?? "64",
|
|
138
|
+
wow64: uach?.wow64 ?? false, form_factors: ["Desktop"],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
display: {
|
|
142
|
+
width: disp.width, height: disp.height,
|
|
143
|
+
avail_width: disp.width - rest.dw, avail_height: disp.height - (top + rest.dh_extra),
|
|
144
|
+
avail_left: availLeft(rest, disp.width), avail_top: top,
|
|
145
|
+
color_depth: disp.color_depth, pixel_depth: disp.color_depth,
|
|
146
|
+
device_pixel_ratio: disp.device_pixel_ratio, color_gamut: gamut, dynamic_range: dr,
|
|
147
|
+
orientation: { type: disp.width >= disp.height ? "landscape-primary" : "portrait-primary", angle: 0 },
|
|
148
|
+
},
|
|
149
|
+
input: inp ? { ...inp, touch_events: inp.max_touch_points > 0 } : null,
|
|
150
|
+
appearance: { color_scheme: scheme, ...(sysf ? { system_fonts: sysf } : {}) },
|
|
151
|
+
fonts: { families: [...LINUX_FONT_FAMILIES] },
|
|
152
|
+
speech: {
|
|
153
|
+
voices: LINUX_VOICES.map(([name, language, isDefault]) => ({
|
|
154
|
+
voice_uri: name, name, language, local_service: false, default: isDefault,
|
|
155
|
+
})),
|
|
156
|
+
},
|
|
157
|
+
audio,
|
|
158
|
+
media: {
|
|
159
|
+
can_play_type: { "application/vnd.apple.mpegurl": "" },
|
|
160
|
+
devices: kinds.map((k) => ({ kind: k, label: "", device_id: "", group_id: "" })),
|
|
161
|
+
},
|
|
162
|
+
battery: { present: ff === "laptop", charging: true, level: 1, charging_time_s: 0, discharging_time_s: null },
|
|
163
|
+
keyboard: kb ? { layout_id: layoutId(L.keyboard, kb), map: kb } : undefined,
|
|
164
|
+
...(gpu ? { gpu: gpu.surface } : {}),
|
|
165
|
+
};
|
|
166
|
+
for (const key of Object.keys(surfaces))
|
|
167
|
+
if (surfaces[key] === null || surfaces[key] === undefined)
|
|
168
|
+
delete surfaces[key];
|
|
169
|
+
const profile = {
|
|
170
|
+
schema_version: 4,
|
|
171
|
+
schema_revision: 1,
|
|
172
|
+
requires: [
|
|
173
|
+
"display", "input", "fonts", "speech", "media.devices",
|
|
174
|
+
...(sysf ? ["appearance.system_fonts"] : []),
|
|
175
|
+
...(kb ? ["keyboard.map"] : []),
|
|
176
|
+
...(gpu ? gpu.requires : []),
|
|
177
|
+
],
|
|
178
|
+
provenance: {
|
|
179
|
+
source: "synthetic",
|
|
180
|
+
model: { version: t.model.version, sha256: t.model.sha256, created_at: t.model.created_at },
|
|
181
|
+
generator: { name: "ant0-population-generator", version: LINUX_GENERATOR_VERSION, algorithm: LINUX_GENERATE_ALGORITHM },
|
|
182
|
+
seed_id: createHash("sha256").update(SEED_ID_DOMAIN).update(seed).digest("hex").slice(0, 32),
|
|
183
|
+
},
|
|
184
|
+
identity: {
|
|
185
|
+
os: {
|
|
186
|
+
family: "linux", release: osRelease, platform_version: "",
|
|
187
|
+
architecture: uach?.architecture === "arm" ? "arm64" : "x86_64",
|
|
188
|
+
},
|
|
189
|
+
engine: { family: "blink", major: t.engine.major },
|
|
190
|
+
brand: { id: "chrome", version: t.engine.chrome_version },
|
|
191
|
+
form_factor: ff,
|
|
192
|
+
device_model: "",
|
|
193
|
+
},
|
|
194
|
+
surfaces,
|
|
195
|
+
};
|
|
196
|
+
assertPersonaProfileV4(profile);
|
|
197
|
+
return profile;
|
|
198
|
+
}
|
|
199
|
+
/** Table identity of the Linux model (version and hash), for provenance checks. */
|
|
200
|
+
export function linuxModelInfo() {
|
|
201
|
+
return { version: table().model.version, sha256: table().model.sha256 };
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=linux-population.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linux-population.js","sourceRoot":"","sources":["../src/linux-population.ts"],"names":[],"mappings":"AAAA;;;;;4FAK4F;AAE5F,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC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AAE;gBACzD,YAAY,EAAE,IAAI,EAAE,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;aAChE;YACD,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE;YAClD,KAAK,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE;YACzD,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,EAAE;SACjB;QACD,QAAQ;KACT,CAAC;IACF,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,OAA2B,CAAC;AACrC,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,cAAc;IAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;AAC1E,CAAC"}
|
package/dist/motion.d.ts
CHANGED
|
@@ -44,15 +44,21 @@ export interface Persona {
|
|
|
44
44
|
/** Per-key dwell window — keydown→keyup (ms). Human ~45–120 (right-skewed); scripted typing ~2–3 ms. */
|
|
45
45
|
keyDwellMinMs: number;
|
|
46
46
|
keyDwellMaxMs: number;
|
|
47
|
+
/** Per-identity typing speed multiplier on the down-to-down gap (0.8 fast … 1.3 slow). */
|
|
48
|
+
typeSpeed?: number;
|
|
49
|
+
/** Per-identity chance (0.2–0.36) that a reach (D ≥ 40 px) overshoots the target and comes back. */
|
|
50
|
+
overshootProb?: number;
|
|
47
51
|
}
|
|
48
52
|
/** Derive a stable motor persona from a fingerprint seed (or random when unseeded). */
|
|
49
53
|
export declare function makePersona(seed?: string | number): Persona;
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
/** Log-normal sample: `median · exp(sigma · z)`. */
|
|
55
|
+
export declare function logNormal(median: number, sigma: number, rng?: Rng): number;
|
|
56
|
+
/** A human mousedown→mouseup click hold (ms): log-normal 108·exp(0.45·z) clamped to 45–400 — median
|
|
57
|
+
* ≈110, long right tail (human reference: median 110, SD ≈98). */
|
|
58
|
+
export declare function clickHold(_p: Persona, rng?: Rng): number;
|
|
59
|
+
/** A human per-key keydown→keyup dwell (ms): log-normal, median ≈91 (human p5–p95 55–167), clamped
|
|
60
|
+
* to 40–400. */
|
|
61
|
+
export declare function keyDwell(_p: Persona, rng?: Rng): number;
|
|
56
62
|
export interface Point {
|
|
57
63
|
x: number;
|
|
58
64
|
y: number;
|
|
@@ -79,7 +85,8 @@ export declare function minJerk(tau: number): number;
|
|
|
79
85
|
* with Fitts-scaled duration and colored noise. Returns the samples to dispatch.
|
|
80
86
|
*/
|
|
81
87
|
export declare function planMove(from: Point, to: Point, p: Persona, opts?: PlanOpts): Step[];
|
|
82
|
-
/** Grab/release dwell times (ms) for a held-button drag
|
|
88
|
+
/** Grab/release dwell times (ms) for a held-button drag: log-normal around the geometric middle of the
|
|
89
|
+
* persona window (σ 0.3), clamped to [min, 1.6·max] so the tail can run past the window. */
|
|
83
90
|
export declare function dragDwell(p: Persona, rng?: Rng): {
|
|
84
91
|
grabMs: number;
|
|
85
92
|
releaseMs: number;
|
|
@@ -103,4 +110,41 @@ export interface Viewport {
|
|
|
103
110
|
* biggest reason a challenge/slider is shown to headless automation). Returns ~`ms` of samples.
|
|
104
111
|
*/
|
|
105
112
|
export declare function planAmbient(from: Point, vp: Viewport, p: Persona, ms: number, rng?: Rng): Step[];
|
|
113
|
+
/** One native wheel event: deltas to send, then sleep `sleepMs` before the next (0 after the last). */
|
|
114
|
+
export interface WheelEvent {
|
|
115
|
+
dx: number;
|
|
116
|
+
dy: number;
|
|
117
|
+
sleepMs: number;
|
|
118
|
+
}
|
|
119
|
+
/** A wheel detent, in px (Chrome: 100 per notch on Windows and Linux at 100% scale). */
|
|
120
|
+
export declare const WHEEL_NOTCH = 100;
|
|
121
|
+
/** Plan a wheel gesture as a stream of notches: one event per 100 px (so deltaY is a notch multiple,
|
|
122
|
+
* 1–2 distinct values per gesture), log-normal gaps (median 47 ms, σ 0.5, clamp 16–300 ms), and the
|
|
123
|
+
* remainder on the LAST event. Vertical events first, then horizontal ones. */
|
|
124
|
+
export declare function planWheel(dx: number, dy: number, rng?: Rng): WheelEvent[];
|
|
125
|
+
/** A plausible fat-finger neighbour of `ch` (case preserved); `ch` itself when it has none. */
|
|
126
|
+
export declare function nearbyKey(ch: string, rng?: Rng): string;
|
|
127
|
+
/** One keyboard event on a typing timeline (`at` = ms from the first event). */
|
|
128
|
+
export interface TypeEvent {
|
|
129
|
+
at: number;
|
|
130
|
+
kind: "down" | "up";
|
|
131
|
+
key: string;
|
|
132
|
+
}
|
|
133
|
+
/** True for a character the US layout types with Shift held (uppercase letters and the shifted row). */
|
|
134
|
+
export declare function needsShift(key: string): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Plan typing `text` as key down/up events on ONE timeline (the caller plays it on the wall clock).
|
|
137
|
+
* - down-to-down gap: log-normal, median 155 ms × bigram factor (same hand 1.15, hand change 0.9,
|
|
138
|
+
* around a space 1.15) × the persona's `typeSpeed`, σ 0.55, clamp 45–2000 ms, plus a 6% chance of
|
|
139
|
+
* a 250–800 ms thinking pause;
|
|
140
|
+
* - dwell: `keyDwell` (log-normal, median ≈91 ms). A gap shorter than the previous key's dwell means
|
|
141
|
+
* the next key goes down BEFORE the previous one is up (rollover, ≈15–20% of pairs);
|
|
142
|
+
* - a 2% fat-finger typo (letter/digit) is typed, deleted with Backspace and retyped.
|
|
143
|
+
* Ordering invariants: keydowns are strictly in text order whatever the overlap; a repeated key never
|
|
144
|
+
* overlaps itself; a shifted character is bracketed by its own Shift down/up, and no other key is down
|
|
145
|
+
* while Shift is held (so a lowercase key can never be turned into an uppercase one by rollover).
|
|
146
|
+
*/
|
|
147
|
+
export declare function planTyping(text: string, p: Persona, rng?: Rng, opts?: {
|
|
148
|
+
typoRate?: number;
|
|
149
|
+
}): TypeEvent[];
|
|
106
150
|
//# sourceMappingURL=motion.d.ts.map
|
package/dist/motion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../src/motion.ts"],"names":[],"mappings":"AA6BA;iGACiG;AACjG,MAAM,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC;AAE/B,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAQ/C;AAED,+FAA+F;AAC/F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAUlE;AAED,4DAA4D;AAC5D,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAK1C;AAED,sGAAsG;AACtG,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,cAAc,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,YAAY,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,YAAY,EAAE,MAAM,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