mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-16 07:33:46 -06:00
8362f74c99
* feat(browser): add all-tabs extension access * fix(browser): preserve cancel revocation during startup * test(browser): align all-tabs Chromium fixtures
17 lines
744 B
TypeScript
17 lines
744 B
TypeScript
import type { TabAccessEpoch } from "./tab-access.js";
|
|
import type { AccessibleBrowserTabSnapshot, BrowserTabSnapshot } from "./tab-eligibility.js";
|
|
|
|
export function createRelayCommandHandler(params: {
|
|
send: (message: Record<string, unknown>) => void;
|
|
attachDebugger: (tabId: number) => Promise<unknown>;
|
|
detachDebugger: (tabId: number) => Promise<void>;
|
|
addTabToOpenClawGroup: (tabId: number) => Promise<void>;
|
|
focusWindowForTab: (tab: BrowserTabSnapshot) => Promise<void>;
|
|
scheduleTabsSync: () => void;
|
|
captureAccess: (tabId: number) => TabAccessEpoch;
|
|
requireAccessibleTab: (
|
|
tabId: number,
|
|
epoch: TabAccessEpoch,
|
|
) => Promise<AccessibleBrowserTabSnapshot>;
|
|
}): (message: Record<string, unknown>) => Promise<void>;
|