mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 11:25:50 -06:00
8362f74c99
* feat(browser): add all-tabs extension access * fix(browser): preserve cancel revocation during startup * test(browser): align all-tabs Chromium fixtures
26 lines
726 B
TypeScript
26 lines
726 B
TypeScript
export type BrowserTabSnapshot = {
|
|
id?: number;
|
|
url?: string;
|
|
pendingUrl?: string;
|
|
title?: string;
|
|
active?: boolean;
|
|
incognito?: boolean;
|
|
groupId?: number;
|
|
windowId?: number;
|
|
};
|
|
|
|
export type AccessibleBrowserTabSnapshot = BrowserTabSnapshot & { id: number };
|
|
|
|
export type TabEligibilityReason = "missing" | "incognito" | "restricted";
|
|
|
|
export type TabEligibilityResult =
|
|
| { eligible: true; reason: null }
|
|
| { eligible: false; reason: TabEligibilityReason };
|
|
|
|
export function effectiveTabUrl(tab: BrowserTabSnapshot | null | undefined): string | undefined;
|
|
|
|
export function tabEligibility(
|
|
tab: BrowserTabSnapshot | null | undefined,
|
|
options?: { fileAccessAllowed?: boolean },
|
|
): TabEligibilityResult;
|