camoucore 0.2.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -3
- package/dist/camoufox/__main__.d.ts +10 -0
- package/dist/camoufox/__main__.js +1175 -0
- package/dist/camoufox/__version__.d.ts +31 -0
- package/dist/camoufox/__version__.js +32 -0
- package/dist/camoufox/_humanize_playwright.d.ts +54 -0
- package/dist/camoufox/_humanize_playwright.js +429 -0
- package/dist/camoufox/addons.d.ts +21 -0
- package/dist/camoufox/addons.js +56 -0
- package/dist/camoufox/async_api.d.ts +9 -0
- package/dist/camoufox/async_api.js +9 -0
- package/dist/camoufox/browser-pin.d.ts +46 -0
- package/dist/camoufox/browser-pin.js +96 -0
- package/dist/camoufox/cli.d.ts +7 -0
- package/dist/camoufox/cli.js +20 -0
- package/dist/camoufox/coherence.d.ts +141 -0
- package/dist/camoufox/coherence.js +708 -0
- package/dist/camoufox/data-files/audio-output-latency.json +15 -0
- package/dist/camoufox/data-files/browser-pin.json +7 -0
- package/dist/camoufox/data-files/display-profiles.json +6 -0
- package/dist/camoufox/data-files/essential-fonts.json +5 -0
- package/dist/camoufox/data-files/fingerprint-presets-v150.json +14544 -0
- package/dist/camoufox/data-files/fingerprint-presets.json +5192 -0
- package/dist/camoufox/data-files/font-bases.json +1888 -0
- package/dist/camoufox/data-files/font-groups.json +716 -0
- package/dist/camoufox/data-files/font-prefs.json +1046 -0
- package/dist/camoufox/data-files/fonts.json +240 -0
- package/dist/camoufox/data-files/fpgen.yml +44 -0
- package/dist/camoufox/data-files/launcher-constants.json +136 -0
- package/dist/camoufox/data-files/media-devices.json +180 -0
- package/dist/camoufox/data-files/repos.yml +40 -0
- package/dist/camoufox/data-files/voice-manifests.json +1864 -0
- package/dist/camoufox/data-files/voice-uris.json +188 -0
- package/dist/camoufox/data-files/warnings.yml +146 -0
- package/dist/camoufox/display_profile.d.ts +21 -0
- package/dist/camoufox/display_profile.js +129 -0
- package/dist/camoufox/driver_defaults.d.ts +27 -0
- package/dist/camoufox/driver_defaults.js +119 -0
- package/dist/camoufox/exceptions.d.ts +68 -0
- package/dist/camoufox/exceptions.js +122 -0
- package/dist/camoufox/fingerprints.d.ts +434 -0
- package/dist/camoufox/fingerprints.js +1936 -0
- package/dist/camoufox/gpudisplay.d.ts +158 -0
- package/dist/camoufox/gpudisplay.js +695 -0
- package/dist/camoufox/host_rendering.d.ts +38 -0
- package/dist/camoufox/host_rendering.js +180 -0
- package/dist/camoufox/humanize.d.ts +89 -0
- package/dist/camoufox/humanize.js +143 -0
- package/dist/camoufox/index.d.ts +21 -0
- package/dist/camoufox/index.js +21 -0
- package/dist/camoufox/ip.d.ts +45 -0
- package/dist/camoufox/ip.js +114 -0
- package/dist/camoufox/multiversion.d.ts +131 -0
- package/dist/camoufox/multiversion.js +490 -0
- package/dist/camoufox/node-floor.d.ts +5 -0
- package/dist/camoufox/node-floor.js +17 -0
- package/dist/camoufox/paths.d.ts +45 -0
- package/dist/camoufox/paths.js +62 -0
- package/dist/camoufox/pkgman.d.ts +361 -0
- package/dist/camoufox/pkgman.js +1066 -0
- package/dist/camoufox/product.d.ts +8 -0
- package/dist/camoufox/product.js +8 -0
- package/dist/camoufox/pycompat.d.ts +97 -0
- package/dist/camoufox/pycompat.js +458 -0
- package/dist/camoufox/server.d.ts +36 -0
- package/dist/camoufox/server.js +82 -0
- package/dist/camoufox/sync_api.d.ts +77 -0
- package/dist/camoufox/sync_api.js +207 -0
- package/dist/camoufox/utils.d.ts +638 -0
- package/dist/camoufox/utils.js +2507 -0
- package/dist/camoufox/warnings.d.ts +16 -0
- package/dist/camoufox/warnings.js +65 -0
- package/dist/camoufox/webgl.d.ts +52 -0
- package/dist/camoufox/webgl.js +264 -0
- package/dist/camouwolf/__main__.d.ts +10 -0
- package/dist/camouwolf/__main__.js +1180 -0
- package/dist/camouwolf/__version__.d.ts +31 -0
- package/dist/camouwolf/__version__.js +32 -0
- package/dist/camouwolf/_humanize_playwright.d.ts +53 -0
- package/dist/camouwolf/_humanize_playwright.js +427 -0
- package/dist/camouwolf/addons.d.ts +42 -0
- package/dist/camouwolf/addons.js +113 -0
- package/dist/camouwolf/async_api.d.ts +9 -0
- package/dist/camouwolf/async_api.js +9 -0
- package/dist/camouwolf/browser-pin.d.ts +46 -0
- package/dist/camouwolf/browser-pin.js +96 -0
- package/dist/camouwolf/cli.d.ts +7 -0
- package/dist/camouwolf/cli.js +20 -0
- package/dist/camouwolf/clienthints.d.ts +61 -0
- package/dist/camouwolf/clienthints.js +176 -0
- package/dist/camouwolf/coherence.d.ts +152 -0
- package/dist/camouwolf/coherence.js +554 -0
- package/dist/camouwolf/data-files/browser-pin.json +7 -0
- package/dist/camouwolf/data-files/camouwolf.defaults.json +118 -0
- package/dist/camouwolf/data-files/data/bundle-fonts.json +1983 -0
- package/dist/camouwolf/data-files/data/chrome-languages.json +517 -0
- package/dist/camouwolf/data-files/data/properties.json +321 -0
- package/dist/camouwolf/data-files/data/system-colors.json +35 -0
- package/dist/camouwolf/data-files/data/ubo.json +6 -0
- package/dist/camouwolf/data-files/fpgen.yml +41 -0
- package/dist/camouwolf/data-files/launcher-constants.json +26 -0
- package/dist/camouwolf/data-files/repos.yml +23 -0
- package/dist/camouwolf/data-files/warnings.yml +96 -0
- package/dist/camouwolf/driver_defaults.d.ts +25 -0
- package/dist/camouwolf/driver_defaults.js +114 -0
- package/dist/camouwolf/exceptions.d.ts +95 -0
- package/dist/camouwolf/exceptions.js +150 -0
- package/dist/camouwolf/fingerprints.d.ts +227 -0
- package/dist/camouwolf/fingerprints.js +753 -0
- package/dist/camouwolf/gpudisplay.d.ts +171 -0
- package/dist/camouwolf/gpudisplay.js +711 -0
- package/dist/camouwolf/host_rendering.d.ts +18 -0
- package/dist/camouwolf/host_rendering.js +114 -0
- package/dist/camouwolf/humanize.d.ts +84 -0
- package/dist/camouwolf/humanize.js +128 -0
- package/dist/camouwolf/index.d.ts +22 -0
- package/dist/camouwolf/index.js +21 -0
- package/dist/camouwolf/multiversion.d.ts +131 -0
- package/dist/camouwolf/multiversion.js +491 -0
- package/dist/camouwolf/node-floor.d.ts +5 -0
- package/dist/camouwolf/node-floor.js +17 -0
- package/dist/camouwolf/paths.d.ts +34 -0
- package/dist/camouwolf/paths.js +58 -0
- package/dist/camouwolf/pkgman.d.ts +331 -0
- package/dist/camouwolf/pkgman.js +972 -0
- package/dist/camouwolf/product.d.ts +3 -0
- package/dist/camouwolf/product.js +3 -0
- package/dist/camouwolf/pycompat.d.ts +92 -0
- package/dist/camouwolf/pycompat.js +461 -0
- package/dist/camouwolf/server.d.ts +36 -0
- package/dist/camouwolf/server.js +81 -0
- package/dist/camouwolf/switches.d.ts +77 -0
- package/dist/camouwolf/switches.js +222 -0
- package/dist/camouwolf/sync_api.d.ts +84 -0
- package/dist/camouwolf/sync_api.js +173 -0
- package/dist/camouwolf/utils.d.ts +644 -0
- package/dist/camouwolf/utils.js +2057 -0
- package/dist/camouwolf/warnings.d.ts +14 -0
- package/dist/camouwolf/warnings.js +59 -0
- package/dist/camouwolf/webgl.d.ts +41 -0
- package/dist/camouwolf/webgl.js +198 -0
- package/dist/data-files/antibot-rules.json +146 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.js +4 -3
- package/dist/download.js +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/geolocation.js +1 -1
- package/dist/host.d.ts +2 -0
- package/dist/host.js +17 -1
- package/dist/ip.js +1 -1
- package/dist/locales.js +1 -1
- package/dist/mcp/cli.d.ts +15 -0
- package/dist/mcp/cli.js +108 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/main.d.ts +2 -0
- package/dist/mcp/main.js +8 -0
- package/dist/mcp/secrets.d.ts +50 -0
- package/dist/mcp/secrets.js +193 -0
- package/dist/mcp/server.d.ts +48 -0
- package/dist/mcp/server.js +653 -0
- package/dist/mcp/tree.d.ts +10 -0
- package/dist/mcp/tree.js +36 -0
- package/dist/passthrough.d.ts +16 -0
- package/dist/passthrough.js +50 -0
- package/dist/product.js +1 -1
- package/dist/settings.d.ts +12 -0
- package/dist/settings.js +95 -0
- package/dist/telemetry.d.ts +127 -0
- package/dist/telemetry.js +426 -0
- package/dist/virtdisplay.d.ts +1 -1
- package/dist/virtdisplay.js +1 -1
- package/dist/warnings.js +1 -1
- package/package.json +57 -13
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { type AvailableVersion, type CamoufoxFetcher, Version } from "./pkgman.js";
|
|
2
|
+
export declare const BROWSERS_DIR: string;
|
|
3
|
+
export declare const CONFIG_FILE: string;
|
|
4
|
+
export declare const REPO_CACHE_FILE: string;
|
|
5
|
+
export declare const COMPAT_FLAG: string;
|
|
6
|
+
export interface CamoufoxConfig {
|
|
7
|
+
active_version?: string | null;
|
|
8
|
+
channel?: string;
|
|
9
|
+
pinned?: string;
|
|
10
|
+
pinned_sha?: string;
|
|
11
|
+
geoip?: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Load user config from disk, or return an empty object.
|
|
16
|
+
*/
|
|
17
|
+
export declare function loadConfig(): CamoufoxConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Get the default repo's stable channel string (like official/stable).
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDefaultChannel(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Save user config to disk.
|
|
24
|
+
*/
|
|
25
|
+
export declare function saveConfig(config: CamoufoxConfig): void;
|
|
26
|
+
export interface CachedVersion {
|
|
27
|
+
version: string;
|
|
28
|
+
build: string;
|
|
29
|
+
url: string;
|
|
30
|
+
is_prerelease?: boolean;
|
|
31
|
+
asset_id?: number;
|
|
32
|
+
asset_size?: number;
|
|
33
|
+
asset_updated_at?: string;
|
|
34
|
+
sha256?: string;
|
|
35
|
+
created_at?: string;
|
|
36
|
+
interface?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface RepoCache {
|
|
39
|
+
repos?: Array<{
|
|
40
|
+
name: string;
|
|
41
|
+
versions?: CachedVersion[];
|
|
42
|
+
}>;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Load cached repo data from disk.
|
|
47
|
+
*/
|
|
48
|
+
export declare function loadRepoCache(): RepoCache;
|
|
49
|
+
/**
|
|
50
|
+
* Save repo cache to disk.
|
|
51
|
+
*/
|
|
52
|
+
export declare function saveRepoCache(cache: RepoCache): void;
|
|
53
|
+
/**
|
|
54
|
+
* Keep one cache entry per version-build, the newest by created_at.
|
|
55
|
+
*/
|
|
56
|
+
export declare function latestPerBuild(versions: CachedVersion[]): CachedVersion[];
|
|
57
|
+
/**
|
|
58
|
+
* Information about an installed Camoufox version.
|
|
59
|
+
*/
|
|
60
|
+
export declare class InstalledVersion {
|
|
61
|
+
repoName: string;
|
|
62
|
+
version: Version;
|
|
63
|
+
path: string;
|
|
64
|
+
isActive: boolean;
|
|
65
|
+
isPrerelease: boolean;
|
|
66
|
+
assetId?: number;
|
|
67
|
+
assetSize?: number;
|
|
68
|
+
assetUpdatedAt?: string;
|
|
69
|
+
sha256?: string;
|
|
70
|
+
createdAt?: string;
|
|
71
|
+
constructor(init: {
|
|
72
|
+
repoName: string;
|
|
73
|
+
version: Version;
|
|
74
|
+
path: string;
|
|
75
|
+
isActive?: boolean;
|
|
76
|
+
isPrerelease?: boolean;
|
|
77
|
+
assetId?: number;
|
|
78
|
+
assetSize?: number;
|
|
79
|
+
assetUpdatedAt?: string;
|
|
80
|
+
sha256?: string;
|
|
81
|
+
createdAt?: string;
|
|
82
|
+
});
|
|
83
|
+
/** Folder name, e.g. 150.0.2-beta.25-8020db3b. */
|
|
84
|
+
get folderName(): string;
|
|
85
|
+
/** Path relative to INSTALL_DIR, e.g. browsers/official/150.0.2-beta.25. */
|
|
86
|
+
get relativePath(): string;
|
|
87
|
+
/** Channel display string (like official/stable/134.0.2-beta.20). */
|
|
88
|
+
get channelPath(): string;
|
|
89
|
+
/**
|
|
90
|
+
* Compare with an available version and return change indicators.
|
|
91
|
+
*/
|
|
92
|
+
getChanges(available: AvailableVersion): string[];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The install folder for a catalog item: version-build-sha8/, else a legacy
|
|
96
|
+
* version-build/ when its sha matches or `count` says the item is unambiguous.
|
|
97
|
+
*/
|
|
98
|
+
export declare function findInstall(versionBuild: string, sha256: string | undefined, installed: InstalledVersion[], count?: number): InstalledVersion | null;
|
|
99
|
+
/**
|
|
100
|
+
* Scan browsers/ for installed versions, sorted by repo then version descending.
|
|
101
|
+
*/
|
|
102
|
+
export declare function listInstalled(): InstalledVersion[];
|
|
103
|
+
/**
|
|
104
|
+
* Get the path to the active version, or null if no version is active.
|
|
105
|
+
*/
|
|
106
|
+
export declare function getActivePath(): string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Set the active version by its relative path.
|
|
109
|
+
*/
|
|
110
|
+
export declare function setActive(relativePath: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* Find an installed version by path, build, full version, or repo/build.
|
|
113
|
+
*/
|
|
114
|
+
export declare function findInstalledVersion(specifier: string): string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Install to browsers/{repoName}/{version}-{build}-{sha8}; the suffix is
|
|
117
|
+
* omitted when the release carries no sha.
|
|
118
|
+
*/
|
|
119
|
+
export declare function installVersioned(fetcher: CamoufoxFetcher, replace?: boolean): Promise<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Remove a specific version installation.
|
|
122
|
+
*/
|
|
123
|
+
export declare function removeVersion(versionPath: string): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Short tag to tell coexisting installs apart: date, else sha8.
|
|
126
|
+
*/
|
|
127
|
+
export declare function installedLabel(iv: InstalledVersion): string;
|
|
128
|
+
/**
|
|
129
|
+
* Print installed versions as a tree.
|
|
130
|
+
*/
|
|
131
|
+
export declare function printTree(showHeader?: boolean, showPaths?: boolean): void;
|
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manager for handling multiple Camoufox versions side by side.
|
|
3
|
+
*
|
|
4
|
+
* TypeScript twin of python/camoucore/src/camoucore/camoufox/multiversion.py.
|
|
5
|
+
*/
|
|
6
|
+
import * as fs from "node:fs";
|
|
7
|
+
import * as os from "node:os";
|
|
8
|
+
import * as path from "node:path";
|
|
9
|
+
import { finished } from "node:stream/promises";
|
|
10
|
+
import { effectivePin, pinMatches } from "./browser-pin.js";
|
|
11
|
+
import { INSTALL_DIR, OS_NAME, rprint } from "./paths.js";
|
|
12
|
+
// pkgman and multiversion are mutually dependent, exactly as the Python twin's
|
|
13
|
+
// function-local imports are. Every use of these sits inside a function body,
|
|
14
|
+
// so the ESM cycle resolves before any binding is read.
|
|
15
|
+
import { formatAssetDate, makeExecutable, RepoConfig, unzip, Version, verifySha256, } from "./pkgman.js";
|
|
16
|
+
import { comparePyStr } from "./pycompat.js";
|
|
17
|
+
export const BROWSERS_DIR = path.join(INSTALL_DIR, "browsers");
|
|
18
|
+
export const CONFIG_FILE = path.join(INSTALL_DIR, "config.json");
|
|
19
|
+
export const REPO_CACHE_FILE = path.join(INSTALL_DIR, "repo_cache.json");
|
|
20
|
+
export const COMPAT_FLAG = path.join(INSTALL_DIR, ".0.5_FLAG");
|
|
21
|
+
/**
|
|
22
|
+
* Load user config from disk, or return an empty object.
|
|
23
|
+
*/
|
|
24
|
+
export function loadConfig() {
|
|
25
|
+
if (fs.existsSync(CONFIG_FILE)) {
|
|
26
|
+
try {
|
|
27
|
+
return JSON.parse(fs.readFileSync(CONFIG_FILE, "utf-8"));
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
// Corrupt config: treat as absent, exactly as the Python twin does.
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get the default repo's stable channel string (like official/stable).
|
|
37
|
+
*/
|
|
38
|
+
export function getDefaultChannel() {
|
|
39
|
+
return `${RepoConfig.getDefaultName().toLowerCase()}/stable`;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Save user config to disk.
|
|
43
|
+
*/
|
|
44
|
+
export function saveConfig(config) {
|
|
45
|
+
fs.mkdirSync(INSTALL_DIR, { recursive: true });
|
|
46
|
+
fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Load cached repo data from disk.
|
|
50
|
+
*/
|
|
51
|
+
export function loadRepoCache() {
|
|
52
|
+
if (fs.existsSync(REPO_CACHE_FILE)) {
|
|
53
|
+
try {
|
|
54
|
+
return JSON.parse(fs.readFileSync(REPO_CACHE_FILE, "utf-8"));
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
// Corrupt cache: treat as absent.
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Save repo cache to disk.
|
|
64
|
+
*/
|
|
65
|
+
export function saveRepoCache(cache) {
|
|
66
|
+
fs.mkdirSync(INSTALL_DIR, { recursive: true });
|
|
67
|
+
fs.writeFileSync(REPO_CACHE_FILE, JSON.stringify(cache, null, 2));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Keep one cache entry per version-build, the newest by created_at.
|
|
71
|
+
*/
|
|
72
|
+
export function latestPerBuild(versions) {
|
|
73
|
+
const best = new Map();
|
|
74
|
+
for (const v of versions) {
|
|
75
|
+
const key = `${v.version}-${v.build}`;
|
|
76
|
+
const cur = best.get(key);
|
|
77
|
+
if (!cur || (v.created_at ?? "") > (cur.created_at ?? "")) {
|
|
78
|
+
best.set(key, v);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return [...best.values()].sort((a, b) => {
|
|
82
|
+
const byVersion = comparePyStr(b.version, a.version);
|
|
83
|
+
if (byVersion !== 0)
|
|
84
|
+
return byVersion;
|
|
85
|
+
return comparePyStr(b.created_at ?? "", a.created_at ?? "");
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get the display name for a repo from the repo config, lowercased.
|
|
90
|
+
*/
|
|
91
|
+
function getRepoName(githubRepo) {
|
|
92
|
+
for (const repo of RepoConfig.loadRepos()) {
|
|
93
|
+
if (repo.repos.includes(githubRepo)) {
|
|
94
|
+
return repo.name.toLowerCase();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return githubRepo.split("/")[0].toLowerCase();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Information about an installed Camoufox version.
|
|
101
|
+
*/
|
|
102
|
+
export class InstalledVersion {
|
|
103
|
+
repoName;
|
|
104
|
+
version;
|
|
105
|
+
path;
|
|
106
|
+
isActive;
|
|
107
|
+
isPrerelease;
|
|
108
|
+
assetId;
|
|
109
|
+
assetSize;
|
|
110
|
+
assetUpdatedAt;
|
|
111
|
+
sha256;
|
|
112
|
+
createdAt;
|
|
113
|
+
constructor(init) {
|
|
114
|
+
this.repoName = init.repoName;
|
|
115
|
+
this.version = init.version;
|
|
116
|
+
this.path = init.path;
|
|
117
|
+
this.isActive = init.isActive ?? false;
|
|
118
|
+
this.isPrerelease = init.isPrerelease ?? false;
|
|
119
|
+
this.assetId = init.assetId;
|
|
120
|
+
this.assetSize = init.assetSize;
|
|
121
|
+
this.assetUpdatedAt = init.assetUpdatedAt;
|
|
122
|
+
this.sha256 = init.sha256;
|
|
123
|
+
this.createdAt = init.createdAt;
|
|
124
|
+
}
|
|
125
|
+
/** Folder name, e.g. 150.0.2-beta.25-8020db3b. */
|
|
126
|
+
get folderName() {
|
|
127
|
+
return path.basename(this.path);
|
|
128
|
+
}
|
|
129
|
+
/** Path relative to INSTALL_DIR, e.g. browsers/official/150.0.2-beta.25. */
|
|
130
|
+
get relativePath() {
|
|
131
|
+
return `browsers/${this.repoName}/${this.folderName}`;
|
|
132
|
+
}
|
|
133
|
+
/** Channel display string (like official/stable/134.0.2-beta.20). */
|
|
134
|
+
get channelPath() {
|
|
135
|
+
const ctype = this.isPrerelease ? "prerelease" : "stable";
|
|
136
|
+
return `${this.repoName}/${ctype}/${this.version.fullString}`;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Compare with an available version and return change indicators.
|
|
140
|
+
*/
|
|
141
|
+
getChanges(available) {
|
|
142
|
+
const changes = [];
|
|
143
|
+
if (this.isPrerelease && !available.isPrerelease) {
|
|
144
|
+
changes.push("prerelease -> stable");
|
|
145
|
+
}
|
|
146
|
+
else if (!this.isPrerelease && available.isPrerelease) {
|
|
147
|
+
changes.push("stable -> prerelease");
|
|
148
|
+
}
|
|
149
|
+
if (this.assetUpdatedAt && available.assetUpdatedAt) {
|
|
150
|
+
if (this.assetUpdatedAt !== available.assetUpdatedAt) {
|
|
151
|
+
changes.push("asset updated");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
else if (this.assetSize && available.assetSize) {
|
|
155
|
+
if (this.assetSize !== available.assetSize) {
|
|
156
|
+
changes.push("asset updated");
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return changes;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Install folder name with an optional sha8 suffix.
|
|
164
|
+
*/
|
|
165
|
+
function versionFolderName(version, build, sha8 = "") {
|
|
166
|
+
const base = `${version}-${build}`;
|
|
167
|
+
return sha8 ? `${base}-${sha8}` : base;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The install folder for a catalog item: version-build-sha8/, else a legacy
|
|
171
|
+
* version-build/ when its sha matches or `count` says the item is unambiguous.
|
|
172
|
+
*/
|
|
173
|
+
export function findInstall(versionBuild, sha256, installed, count = 1) {
|
|
174
|
+
const byFolder = new Map(installed.map((iv) => [iv.folderName, iv]));
|
|
175
|
+
const sha8 = (sha256 ?? "").slice(0, 8);
|
|
176
|
+
if (sha8) {
|
|
177
|
+
const exact = byFolder.get(`${versionBuild}-${sha8}`);
|
|
178
|
+
if (exact)
|
|
179
|
+
return exact;
|
|
180
|
+
}
|
|
181
|
+
const legacy = byFolder.get(versionBuild);
|
|
182
|
+
if (!legacy)
|
|
183
|
+
return null;
|
|
184
|
+
if (legacy.sha256) {
|
|
185
|
+
return legacy.sha256 === sha256 ? legacy : null;
|
|
186
|
+
}
|
|
187
|
+
return count <= 1 ? legacy : null;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Find an installed version by its build string.
|
|
191
|
+
*/
|
|
192
|
+
function findInstalledByBuild(build, repoName) {
|
|
193
|
+
for (const v of listInstalled()) {
|
|
194
|
+
if (v.version.build === build && (!repoName || v.repoName === repoName)) {
|
|
195
|
+
return v;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Scan browsers/ for installed versions, sorted by repo then version descending.
|
|
202
|
+
*/
|
|
203
|
+
export function listInstalled() {
|
|
204
|
+
const installed = [];
|
|
205
|
+
const active = loadConfig().active_version;
|
|
206
|
+
if (!fs.existsSync(BROWSERS_DIR))
|
|
207
|
+
return installed;
|
|
208
|
+
for (const repoEntry of fs.readdirSync(BROWSERS_DIR, {
|
|
209
|
+
withFileTypes: true,
|
|
210
|
+
})) {
|
|
211
|
+
if (!repoEntry.isDirectory() || repoEntry.name.startsWith("."))
|
|
212
|
+
continue;
|
|
213
|
+
const repoDir = path.join(BROWSERS_DIR, repoEntry.name);
|
|
214
|
+
for (const versionEntry of fs.readdirSync(repoDir, {
|
|
215
|
+
withFileTypes: true,
|
|
216
|
+
})) {
|
|
217
|
+
if (!versionEntry.isDirectory())
|
|
218
|
+
continue;
|
|
219
|
+
const versionDir = path.join(repoDir, versionEntry.name);
|
|
220
|
+
const versionJson = path.join(versionDir, "version.json");
|
|
221
|
+
if (!fs.existsSync(versionJson))
|
|
222
|
+
continue;
|
|
223
|
+
try {
|
|
224
|
+
const ver = Version.fromPath(versionDir);
|
|
225
|
+
const versionData = JSON.parse(fs.readFileSync(versionJson, "utf-8"));
|
|
226
|
+
const relPath = `browsers/${repoEntry.name}/${versionEntry.name}`;
|
|
227
|
+
installed.push(new InstalledVersion({
|
|
228
|
+
repoName: repoEntry.name,
|
|
229
|
+
version: ver,
|
|
230
|
+
path: versionDir,
|
|
231
|
+
isActive: relPath === active,
|
|
232
|
+
isPrerelease: versionData.prerelease ?? false,
|
|
233
|
+
assetId: versionData.asset_id,
|
|
234
|
+
assetSize: versionData.asset_size,
|
|
235
|
+
assetUpdatedAt: versionData.asset_updated_at,
|
|
236
|
+
sha256: versionData.sha256,
|
|
237
|
+
createdAt: versionData.created_at,
|
|
238
|
+
}));
|
|
239
|
+
}
|
|
240
|
+
catch {
|
|
241
|
+
// Missing/corrupt version.json: not an install we can use.
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
installed.sort((a, b) => {
|
|
246
|
+
const byRepo = comparePyStr(b.repoName, a.repoName);
|
|
247
|
+
if (byRepo !== 0)
|
|
248
|
+
return byRepo;
|
|
249
|
+
return b.version.compare(a.version);
|
|
250
|
+
});
|
|
251
|
+
return installed;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Get the path to the active version, or null if no version is active.
|
|
255
|
+
*/
|
|
256
|
+
export function getActivePath() {
|
|
257
|
+
const config = loadConfig();
|
|
258
|
+
const active = config.active_version;
|
|
259
|
+
// A released library launches the build it was released with, whatever
|
|
260
|
+
// happens to be marked active, unless the user explicitly chose otherwise.
|
|
261
|
+
const pin = effectivePin(config);
|
|
262
|
+
if (pin) {
|
|
263
|
+
for (const inst of listInstalled()) {
|
|
264
|
+
if (pinMatches(pin, inst.repoName, inst.version.version ?? "", inst.version.build)) {
|
|
265
|
+
if (active !== inst.relativePath) {
|
|
266
|
+
config.active_version = inst.relativePath;
|
|
267
|
+
saveConfig(config);
|
|
268
|
+
}
|
|
269
|
+
return inst.path;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
if (active) {
|
|
275
|
+
const activePath = path.join(INSTALL_DIR, active);
|
|
276
|
+
if (fs.existsSync(activePath) &&
|
|
277
|
+
fs.existsSync(path.join(activePath, "version.json"))) {
|
|
278
|
+
return activePath;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
// Only auto-select if the user didn't set a channel or pin
|
|
282
|
+
if (!config.channel && !config.pinned) {
|
|
283
|
+
const installed = listInstalled();
|
|
284
|
+
if (installed.length) {
|
|
285
|
+
config.active_version = installed[0].relativePath;
|
|
286
|
+
saveConfig(config);
|
|
287
|
+
return installed[0].path;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Set the active version by its relative path.
|
|
294
|
+
*/
|
|
295
|
+
export function setActive(relativePath) {
|
|
296
|
+
const config = loadConfig();
|
|
297
|
+
config.active_version = relativePath;
|
|
298
|
+
saveConfig(config);
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Find an installed version by path, build, full version, or repo/build.
|
|
302
|
+
*/
|
|
303
|
+
export function findInstalledVersion(specifier) {
|
|
304
|
+
const installed = listInstalled();
|
|
305
|
+
if (!installed.length)
|
|
306
|
+
return null;
|
|
307
|
+
const lower = specifier.toLowerCase();
|
|
308
|
+
for (const v of installed) {
|
|
309
|
+
if (v.relativePath === specifier ||
|
|
310
|
+
v.relativePath === `browsers/${specifier}`) {
|
|
311
|
+
return v.path;
|
|
312
|
+
}
|
|
313
|
+
if (`browsers/${v.repoName}/${v.version.fullString}`.endsWith(specifier) ||
|
|
314
|
+
`${v.repoName}/${v.version.build}`.toLowerCase() === lower ||
|
|
315
|
+
v.version.build.toLowerCase() === lower ||
|
|
316
|
+
v.version.fullString.toLowerCase() === lower ||
|
|
317
|
+
v.version.version?.toLowerCase() === lower) {
|
|
318
|
+
return v.path;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Install to browsers/{repoName}/{version}-{build}-{sha8}; the suffix is
|
|
325
|
+
* omitted when the release carries no sha.
|
|
326
|
+
*/
|
|
327
|
+
export async function installVersioned(fetcher, replace = false) {
|
|
328
|
+
const repoName = getRepoName(fetcher.githubRepo);
|
|
329
|
+
const sha8 = fetcher._selectedVersion?.sha256
|
|
330
|
+
? fetcher._selectedVersion.sha8
|
|
331
|
+
: fetcher.installedSha8;
|
|
332
|
+
const versionFolder = versionFolderName(fetcher.version, fetcher.build, sha8);
|
|
333
|
+
const installPath = path.join(BROWSERS_DIR, repoName, versionFolder);
|
|
334
|
+
if (fs.existsSync(installPath) &&
|
|
335
|
+
fs.existsSync(path.join(installPath, "version.json"))) {
|
|
336
|
+
if (!replace) {
|
|
337
|
+
const installedV = findInstalledByBuild(fetcher.build, repoName);
|
|
338
|
+
let changeMsg = "";
|
|
339
|
+
if (installedV && fetcher._selectedVersion) {
|
|
340
|
+
const changes = installedV.getChanges(fetcher._selectedVersion);
|
|
341
|
+
if (changes.length)
|
|
342
|
+
changeMsg = ` (${changes.join(", ")})`;
|
|
343
|
+
}
|
|
344
|
+
rprint(`Version v${fetcher.verstr} already installed${changeMsg}.`, "yellow");
|
|
345
|
+
rprint(changeMsg
|
|
346
|
+
? "Use --replace to update with the new release."
|
|
347
|
+
: "Use --replace to reinstall.", "yellow");
|
|
348
|
+
if (!loadConfig().active_version) {
|
|
349
|
+
setActive(`browsers/${repoName}/${versionFolder}`);
|
|
350
|
+
}
|
|
351
|
+
return false;
|
|
352
|
+
}
|
|
353
|
+
rprint(`Replacing: ${installPath}`, "yellow");
|
|
354
|
+
fs.rmSync(installPath, { recursive: true, force: true });
|
|
355
|
+
}
|
|
356
|
+
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "camoufox-"));
|
|
357
|
+
const tempFilePath = fetcher.partial ?? path.join(tempDir, "camoufox.zip");
|
|
358
|
+
try {
|
|
359
|
+
fs.mkdirSync(installPath, { recursive: true });
|
|
360
|
+
// Mark the install dir as compatible with this version. Before the
|
|
361
|
+
// download, so that one kept to be resumed is not cleaned as old data.
|
|
362
|
+
fs.writeFileSync(COMPAT_FLAG, "");
|
|
363
|
+
const tempFileStream = fs.createWriteStream(tempFilePath, {
|
|
364
|
+
flags: fetcher.partial ? "a" : "w",
|
|
365
|
+
});
|
|
366
|
+
// finished() listens for the stream's 'error' from the start. Without a
|
|
367
|
+
// listener, a failed write (disk full) is an uncaught 'error' event that
|
|
368
|
+
// kills the process before the catch below can remove the partial
|
|
369
|
+
// install.
|
|
370
|
+
const written = finished(tempFileStream);
|
|
371
|
+
written.catch(() => { }); // awaited below; a download error wins
|
|
372
|
+
try {
|
|
373
|
+
await fetcher.download(tempFileStream);
|
|
374
|
+
}
|
|
375
|
+
finally {
|
|
376
|
+
tempFileStream.end();
|
|
377
|
+
}
|
|
378
|
+
await written;
|
|
379
|
+
const expectedSha = fetcher._selectedVersion
|
|
380
|
+
? fetcher._selectedVersion.sha256
|
|
381
|
+
: fetcher.installedSha256;
|
|
382
|
+
verifySha256(tempFilePath, expectedSha, `Camoufox v${fetcher.verstr}`);
|
|
383
|
+
rprint(`Extracting Camoufox: ${installPath}`);
|
|
384
|
+
unzip(tempFilePath, installPath);
|
|
385
|
+
const metadata = fetcher._selectedVersion
|
|
386
|
+
? fetcher._selectedVersion.toMetadata()
|
|
387
|
+
: {
|
|
388
|
+
version: fetcher.version,
|
|
389
|
+
build: fetcher.build,
|
|
390
|
+
prerelease: fetcher.isPrerelease,
|
|
391
|
+
sha256: fetcher.installedSha256 ?? null,
|
|
392
|
+
created_at: fetcher.installedCreatedAt ?? null,
|
|
393
|
+
interface: fetcher.installedInterface,
|
|
394
|
+
};
|
|
395
|
+
fs.writeFileSync(path.join(installPath, "version.json"), JSON.stringify(metadata));
|
|
396
|
+
if (OS_NAME !== "win") {
|
|
397
|
+
makeExecutable(installPath);
|
|
398
|
+
}
|
|
399
|
+
setActive(`browsers/${repoName}/${versionFolder}`);
|
|
400
|
+
rprint(`\nCamoufox v${fetcher.verstr} installed.`, "green");
|
|
401
|
+
rprint(`Path: ${installPath}`, "green");
|
|
402
|
+
return true;
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
rprint(`Error: ${error}`, "red");
|
|
406
|
+
if (fs.existsSync(installPath)) {
|
|
407
|
+
fs.rmSync(installPath, { recursive: true, force: true });
|
|
408
|
+
}
|
|
409
|
+
throw error;
|
|
410
|
+
}
|
|
411
|
+
finally {
|
|
412
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Remove a specific version installation.
|
|
417
|
+
*/
|
|
418
|
+
export function removeVersion(versionPath) {
|
|
419
|
+
if (!fs.existsSync(versionPath))
|
|
420
|
+
return false;
|
|
421
|
+
rprint(`Removing: ${versionPath}`);
|
|
422
|
+
fs.rmSync(versionPath, { recursive: true, force: true });
|
|
423
|
+
const parent = path.dirname(versionPath);
|
|
424
|
+
if (fs.existsSync(parent) &&
|
|
425
|
+
parent !== BROWSERS_DIR &&
|
|
426
|
+
fs.readdirSync(parent).length === 0) {
|
|
427
|
+
fs.rmdirSync(parent);
|
|
428
|
+
}
|
|
429
|
+
if (fs.existsSync(BROWSERS_DIR) &&
|
|
430
|
+
fs.readdirSync(BROWSERS_DIR).length === 0) {
|
|
431
|
+
fs.rmdirSync(BROWSERS_DIR);
|
|
432
|
+
}
|
|
433
|
+
const config = loadConfig();
|
|
434
|
+
const relPath = path.relative(INSTALL_DIR, versionPath);
|
|
435
|
+
if (!relPath.startsWith("..") && config.active_version === relPath) {
|
|
436
|
+
const remaining = listInstalled();
|
|
437
|
+
config.active_version = remaining.length ? remaining[0].relativePath : null;
|
|
438
|
+
saveConfig(config);
|
|
439
|
+
}
|
|
440
|
+
return true;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Short tag to tell coexisting installs apart: date, else sha8.
|
|
444
|
+
*/
|
|
445
|
+
export function installedLabel(iv) {
|
|
446
|
+
if (iv.createdAt) {
|
|
447
|
+
const date = formatAssetDate(iv.createdAt);
|
|
448
|
+
if (date)
|
|
449
|
+
return date;
|
|
450
|
+
}
|
|
451
|
+
return (iv.sha256 ?? "").slice(0, 8);
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Print installed versions as a tree.
|
|
455
|
+
*/
|
|
456
|
+
export function printTree(showHeader = true, showPaths = false) {
|
|
457
|
+
const installed = listInstalled();
|
|
458
|
+
if (!installed.length) {
|
|
459
|
+
rprint("No versions installed.", "yellow");
|
|
460
|
+
rprint("Run `camoufox fetch` to install.", "yellow");
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
if (showHeader) {
|
|
464
|
+
rprint("Installed versions:\n", "yellow");
|
|
465
|
+
}
|
|
466
|
+
let currentRepo = null;
|
|
467
|
+
for (let i = 0; i < installed.length; i++) {
|
|
468
|
+
const v = installed[i];
|
|
469
|
+
const isLast = i === installed.length - 1 || installed[i + 1].repoName !== v.repoName;
|
|
470
|
+
if (v.repoName !== currentRepo) {
|
|
471
|
+
currentRepo = v.repoName;
|
|
472
|
+
rprint(`${currentRepo}/`, "cyan", false);
|
|
473
|
+
if (showPaths) {
|
|
474
|
+
rprint(` -> ${path.join(BROWSERS_DIR, currentRepo)}`, "bright_black");
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
rprint("");
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
rprint(` ${isLast ? "└── " : "├── "}`, undefined, false);
|
|
481
|
+
rprint(`v${v.version.fullString}`, v.isActive ? "green" : undefined, false);
|
|
482
|
+
rprint(v.isPrerelease ? " (prerelease)" : " (stable)", v.isPrerelease ? "yellow" : "blue", false);
|
|
483
|
+
const tag = installedLabel(v);
|
|
484
|
+
if (tag)
|
|
485
|
+
rprint(` (${tag})`, "bright_black", false);
|
|
486
|
+
if (v.isActive)
|
|
487
|
+
rprint(" (active)", "green", false);
|
|
488
|
+
rprint("");
|
|
489
|
+
}
|
|
490
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Node.js floor (package.json `engines.node`), checked when the package
|
|
3
|
+
* loads. fpgen-js reads its model archive with node:zlib's zstd; Node.js
|
|
4
|
+
* added zstd in 22.15. Below that the first
|
|
5
|
+
* fingerprint draw died with "zlib.zstdDecompressSync is not a function" from
|
|
6
|
+
* inside fpgen-js; npm only warns on `engines`, so the package says it here.
|
|
7
|
+
*/
|
|
8
|
+
import * as zlib from "node:zlib";
|
|
9
|
+
export const NODE_FLOOR = "22.15";
|
|
10
|
+
/** Throws, naming the floor and this runtime, when node:zlib has no zstd. */
|
|
11
|
+
export function assertNodeFloor(z = zlib, version = process.versions.node) {
|
|
12
|
+
if (typeof z.zstdDecompressSync !== "function") {
|
|
13
|
+
throw new Error(`camoufox needs Node.js >= ${NODE_FLOOR} (node:zlib zstd, which the ` +
|
|
14
|
+
`fpgen model archive needs); this is Node.js ${version}.`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
assertNodeFloor();
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { rprint, style } from "../download.js";
|
|
2
|
+
export { ARCH_MAP, OS_MAP, OS_NAME, userCacheDir, userConfigDir, } from "../host.js";
|
|
3
|
+
export declare const INSTALL_DIR: string;
|
|
4
|
+
/**
|
|
5
|
+
* The data files both launchers read. They live in python/camoucore/src/camoucore/camoufox/, the one
|
|
6
|
+
* copy in the repo; `pnpm build` copies them into dist/data-files/ for the npm
|
|
7
|
+
* tarball, so one seed draws one identity in either launcher.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DATA_FILES: readonly string[];
|
|
10
|
+
/**
|
|
11
|
+
* Where DATA_FILES are read from: dist/data-files/ in a built package, else
|
|
12
|
+
* python/camoucore/src/camoucore/camoufox/ itself when running from src/ in the repo.
|
|
13
|
+
*/
|
|
14
|
+
export declare const LOCAL_DATA: string;
|
|
15
|
+
/** A data file (relative to LOCAL_DATA), parsed as YAML or JSON by its extension. */
|
|
16
|
+
export declare function loadDataFile<T = any>(file: string): T;
|
|
17
|
+
/** Values both launchers use, kept in one file (python/camoucore/src/camoucore/camoufox/launcher-constants.json). */
|
|
18
|
+
export interface LauncherConstants {
|
|
19
|
+
markerFonts: Record<"win" | "mac" | "lin", string[]>;
|
|
20
|
+
windowsLegacyFontFamilies: Record<string, string[]>;
|
|
21
|
+
windowsOfficeLegacyFontFamilies: Record<string, string[]>;
|
|
22
|
+
windows11MarkerFonts: string[];
|
|
23
|
+
plausibleCoreCounts: number[];
|
|
24
|
+
appleSiliconCores: number[];
|
|
25
|
+
x86IntelShare: number;
|
|
26
|
+
cpuIdentityPref: Record<"x86/intel" | "x86/amd" | "arm", number>;
|
|
27
|
+
cpuManufacturers: Record<"mac" | "windows" | "linux", Record<"x86" | "arm", string[]>>;
|
|
28
|
+
intelOnlyCoreCounts: number[];
|
|
29
|
+
appleSiliconPanels: Record<string, [number, number][]>;
|
|
30
|
+
intelMacIgpCores: number[];
|
|
31
|
+
intelMacDgpuExtraCores: number[];
|
|
32
|
+
plausibleDpr: Record<string, number[]>;
|
|
33
|
+
macNoveltyVoices: string[];
|
|
34
|
+
macEloquenceVoices: string[];
|
|
35
|
+
baselineTaskbarHeight: Record<"win" | "mac" | "lin", number>;
|
|
36
|
+
baselineMultiTouchPoints: number;
|
|
37
|
+
recordedWindowChrome: Record<"win" | "mac" | "lin", [number, number]>;
|
|
38
|
+
windowsUiColors: Record<string, string>;
|
|
39
|
+
cachePrefs: Record<string, any>;
|
|
40
|
+
proxyDohPrefs: Record<string, any>;
|
|
41
|
+
windowsBehaviourPrefs: Record<string, any>;
|
|
42
|
+
}
|
|
43
|
+
export declare const LAUNCHER_CONSTANTS: Readonly<LauncherConstants>;
|
|
44
|
+
export declare const OS_ARCH_MATRIX: Record<string, string[]>;
|
|
45
|
+
export declare const LAUNCH_FILE: Record<string, string>;
|