Files
openclaw/extensions/browser/chrome-extension/modules/tab-eligibility.d.ts
Peter Steinberger 8362f74c99 feat(browser): add all-tabs extension access (#120995)
* feat(browser): add all-tabs extension access

* fix(browser): preserve cancel revocation during startup

* test(browser): align all-tabs Chromium fixtures
2026-08-09 03:15:54 -07:00

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;