aboutsummaryrefslogtreecommitdiff
path: root/src/profile/paths.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile/paths.ts')
-rw-r--r--src/profile/paths.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/profile/paths.ts b/src/profile/paths.ts
index 0a7c74e..4ff3f7d 100644
--- a/src/profile/paths.ts
+++ b/src/profile/paths.ts
@@ -26,6 +26,13 @@ export const agentDir = (): string => {
export const pinFilePath = (): string => join(agentDir(), "browser-harness.json");
+/**
+ * FORK: where the chosen CDP target is persisted (see src/cdp/target-store.ts).
+ * A separate file from the profile pin: the two have different lifetimes, and a
+ * corrupt target must not cost you your profile selection or vice versa.
+ */
+export const targetFilePath = (): string => join(agentDir(), "browser-target.json");
+
const localAppData = (): string => process.env["LOCALAPPDATA"] ?? join(homedir(), "AppData", "Local");
export const userDataDirCandidates = (): ReadonlyArray<string> => {