diff options
Diffstat (limited to 'src/cdp/ownership.ts')
| -rw-r--r-- | src/cdp/ownership.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/cdp/ownership.ts b/src/cdp/ownership.ts index 727b3d8..0a1a810 100644 --- a/src/cdp/ownership.ts +++ b/src/cdp/ownership.ts @@ -1,28 +1,12 @@ -/** - * Tracks which tab targetIds belong to this harness session. - * - * The harness attaches to the user's running Chrome, which is also full of - * the user's own tabs. Without an ownership boundary the agent could attach - * to (or close) personal tabs by accident. The registry is the single source - * of truth for "did this session open that tab?". - * - * Mutations notify a single change listener so the orchestrator can persist - * to disk via the existing BrowserState flow without the registry needing to - * know about the pi storage API. - */ export type OwnershipRegistry = { add(targetId: string): void; remove(targetId: string): void; has(targetId: string): boolean; list(): ReadonlyArray<string>; - /** Replace the full set — used on restoreState to re-hydrate from disk. */ replaceAll(ids: ReadonlyArray<string>): void; setHarnessWindow(targetId: string | undefined): void; harnessWindow(): string | undefined; - /** The real Chrome windowId of the dedicated harness window — the durable - * identity of "the window this session initialized", surviving seed-tab - * closure. Undefined until the window is created (or after teardown). */ setHarnessWindowId(windowId: number | undefined): void; harnessWindowId(): number | undefined; onChange(cb: () => void): void; |
