aboutsummaryrefslogtreecommitdiff
path: root/src/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.ts')
-rw-r--r--src/state.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state.ts b/src/state.ts
index 9dcef69..0629f40 100644
--- a/src/state.ts
+++ b/src/state.ts
@@ -10,9 +10,14 @@ import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-age
export type BrowserState = {
readonly namespace: string;
readonly remoteBrowserId?: string;
+ readonly ownedTargetIds?: ReadonlyArray<string>;
+ readonly harnessWindowTargetId?: string;
};
-export const defaultState = (namespace = "default"): BrowserState => ({ namespace });
+export const defaultState = (namespace = "default"): BrowserState => ({
+ namespace,
+ ownedTargetIds: [],
+});
export const persistState = (pi: ExtensionAPI, state: BrowserState): void => {
pi.appendEntry<BrowserState>("browser-harness-state", state);