@iwsdk/vite-plugin-dev 0.5.3 → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /** Query parameter used only while authorizing the managed workspace page. */
8
+ export declare const MANAGED_WORKSPACE_QUERY = "__iwsdkManagedWorkspace";
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { Frame, Page } from 'playwright';
8
+ import { type BrowserApplicationIdentity } from './page-probes.js';
9
+ export declare const DEFAULT_BROWSER_OPERATION_TIMEOUT_MS = 15000;
10
+ export declare const WORKSPACE_RESTORE_RESERVE_MS: number;
11
+ export interface WorkspaceRuntimeVisibility {
12
+ isWorkspace: boolean;
13
+ previousView: string | null;
14
+ }
15
+ export declare function showWorkspaceRuntime(page: Page): Promise<WorkspaceRuntimeVisibility>;
16
+ export declare function restoreWorkspaceView(page: Page, visibility: WorkspaceRuntimeVisibility): Promise<void>;
17
+ export declare function withRuntimeView<T>(page: Page, operation: () => Promise<T>, onRestoreError?: (error: unknown) => void): Promise<T>;
18
+ export declare function resolveApplicationFrame(page: Page): Promise<Frame>;
19
+ export interface BrowserApplicationMetadata {
20
+ id: string | null;
21
+ generation: number | null;
22
+ outerUrl: string;
23
+ url: string;
24
+ workspaceFramed: boolean;
25
+ }
26
+ export interface BrowserApplicationState {
27
+ application: BrowserApplicationMetadata;
28
+ documentTimeOrigin: number;
29
+ frame: Frame;
30
+ }
31
+ export declare function getApplicationState(page: Page, resolvedFrame?: Frame): Promise<BrowserApplicationState>;
32
+ export declare function getApplicationMetadata(page: Page): Promise<BrowserApplicationMetadata>;
33
+ export declare function reloadApplicationFrame(page: Page, timeoutMs: number): Promise<BrowserApplicationMetadata>;
34
+ export declare function applicationIdentityChanged(before: BrowserApplicationIdentity, after: BrowserApplicationIdentity): boolean;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export declare const EVIDENCE_COMMAND_TIMEOUT_MS = 120000;
8
+ export declare class ManagedBrowserCommandCoordinator {
9
+ private readonly abortActiveOperation;
10
+ private readonly onInvalidated?;
11
+ private active;
12
+ private closing;
13
+ private shutdownPromise;
14
+ private activeOwner;
15
+ private readonly ownerStorage;
16
+ private readonly queue;
17
+ constructor(abortActiveOperation: () => Promise<void>, onInvalidated?: (() => void) | undefined);
18
+ runExclusive<T>(operation: () => Promise<T>, timeoutMs?: number, queueTimeoutMs?: number): Promise<T>;
19
+ getRemainingActiveTimeMs(): number;
20
+ shutdown(): Promise<void>;
21
+ private acquire;
22
+ private release;
23
+ private rejectQueued;
24
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { Page } from 'playwright';
8
+ /**
9
+ * Log types for the server-side console capture.
10
+ */
11
+ export type LogLevel = 'log' | 'info' | 'warn' | 'error' | 'debug' | 'trace';
12
+ export type BrowserEventKind = 'console' | 'dialog' | 'download' | 'navigation' | 'pageerror' | 'popup' | 'requestfailed';
13
+ export interface CapturedLog {
14
+ timestamp: number;
15
+ level: LogLevel;
16
+ message: string;
17
+ args: string[];
18
+ kind: BrowserEventKind;
19
+ url?: string;
20
+ frameUrl?: string;
21
+ lineNumber?: number;
22
+ columnNumber?: number;
23
+ method?: string;
24
+ resourceType?: string;
25
+ failure?: string;
26
+ repeatCount?: number;
27
+ }
28
+ export interface LogQuery {
29
+ count?: number;
30
+ level?: LogLevel | LogLevel[];
31
+ pattern?: string;
32
+ since?: number;
33
+ until?: number;
34
+ }
35
+ export declare const MAX_LOG_MESSAGE_LENGTH = 16000;
36
+ export declare const MAX_CONSOLE_SERIALIZATION_JOBS = 100;
37
+ export declare function truncateText(value: string, maxLength: number): string;
38
+ /** Map Playwright console message types to our LogLevel. */
39
+ export declare const PLAYWRIGHT_TYPE_MAP: Record<string, LogLevel | undefined>;
40
+ interface BrowserEventProfiler {
41
+ note(interruption: {
42
+ at: number;
43
+ kind: string;
44
+ value?: string;
45
+ }): void;
46
+ }
47
+ /** Owns managed-page event listeners, redaction, storage, and log queries. */
48
+ export declare class ManagedBrowserConsole {
49
+ private readonly page;
50
+ private readonly verbose;
51
+ private readonly capture;
52
+ private readonly enqueueSerialization;
53
+ private readonly sensitiveValues;
54
+ constructor(page: Page, verbose: boolean, sensitiveValues: Array<string | null | undefined>);
55
+ sanitize(value: string): string;
56
+ attach(profiler: BrowserEventProfiler): void;
57
+ query(options?: LogQuery): CapturedLog[];
58
+ warnRestoreFailure(operation: string, error: unknown): void;
59
+ private addInternalWarning;
60
+ }
61
+ export {};
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { Frame, Page } from 'playwright';
8
+ import { type BrowserApplicationMetadata } from './application-surface.js';
9
+ export declare const MAX_BROWSER_INTERACTION_TIMEOUT_MS = 12000;
10
+ export interface BrowserScreenshotOptions {
11
+ format?: 'jpeg' | 'png';
12
+ fullPage?: boolean;
13
+ quality?: number;
14
+ ref?: string;
15
+ }
16
+ export interface BrowserSnapshotRequest {
17
+ maxNodes?: number;
18
+ maxTextLength?: number;
19
+ rootRef?: string;
20
+ }
21
+ export interface BrowserSnapshotElement {
22
+ bounds: {
23
+ height: number;
24
+ width: number;
25
+ x: number;
26
+ y: number;
27
+ } | null;
28
+ checked?: boolean;
29
+ disabled: boolean;
30
+ expanded?: boolean;
31
+ focused: boolean;
32
+ name: string;
33
+ ref: string;
34
+ role: string;
35
+ selected?: boolean;
36
+ tag: string;
37
+ text: string;
38
+ visible: boolean;
39
+ }
40
+ export interface BrowserSnapshotResult {
41
+ application: BrowserApplicationMetadata;
42
+ elements: BrowserSnapshotElement[];
43
+ snapshotId: string;
44
+ truncated: boolean;
45
+ }
46
+ export interface BrowserSemanticLocator {
47
+ name?: string;
48
+ role?: string;
49
+ testId?: string;
50
+ text?: string;
51
+ }
52
+ export interface BrowserInteractionPoint {
53
+ canvasRef?: string;
54
+ x: number;
55
+ y: number;
56
+ }
57
+ export interface BrowserInteractionStep {
58
+ action: string;
59
+ durationMs?: number;
60
+ button?: 'left' | 'middle' | 'right';
61
+ deltaX?: number;
62
+ deltaY?: number;
63
+ key?: string;
64
+ loadState?: 'domcontentloaded' | 'load' | 'networkidle';
65
+ locator?: BrowserSemanticLocator;
66
+ path?: string;
67
+ point?: BrowserInteractionPoint;
68
+ ref?: string;
69
+ state?: 'attached' | 'checked' | 'detached' | 'disabled' | 'editable' | 'enabled' | 'focused' | 'hidden' | 'unchecked' | 'visible';
70
+ targetLocator?: BrowserSemanticLocator;
71
+ targetPoint?: BrowserInteractionPoint;
72
+ targetRef?: string;
73
+ text?: string;
74
+ timeoutMs?: number;
75
+ value?: string;
76
+ values?: string[];
77
+ }
78
+ export interface BrowserInteractionRequest {
79
+ steps: BrowserInteractionStep[];
80
+ timeoutMs?: number;
81
+ }
82
+ export interface BrowserInteractionStepResult {
83
+ action: string;
84
+ durationMs: number;
85
+ index: number;
86
+ }
87
+ export interface BrowserInteractionResult {
88
+ application: BrowserApplicationMetadata;
89
+ completed: BrowserInteractionStepResult[];
90
+ failure?: {
91
+ action: string;
92
+ index: number;
93
+ message: string;
94
+ recovery: string;
95
+ retryable: boolean;
96
+ screenshot: {
97
+ imageData: string;
98
+ mimeType: 'image/png';
99
+ } | null;
100
+ snapshot: BrowserSnapshotResult | null;
101
+ };
102
+ success: boolean;
103
+ }
104
+ export interface BrowserScreenshotCapture {
105
+ bytes: Buffer;
106
+ metadata: BrowserApplicationMetadata & {
107
+ downscaled: boolean;
108
+ height: number;
109
+ mimeType: 'image/jpeg' | 'image/png';
110
+ width: number;
111
+ };
112
+ }
113
+ interface InteractionProfiler {
114
+ readonly activeDeadline: number | null;
115
+ markInteractionStep(frame: Frame, index: number, action: string): Promise<void>;
116
+ }
117
+ interface ManagedInteractionSurfaceOptions {
118
+ getRemainingOperationTimeMs(operation: string, maximumMs?: number, exhausted?: 'throw' | 'zero'): number;
119
+ onRestoreError(operation: string, error: unknown): void;
120
+ page: Page;
121
+ profiler: InteractionProfiler;
122
+ screenshotSize: {
123
+ width: number;
124
+ height: number;
125
+ };
126
+ }
127
+ /** Owns snapshot references and every operation that can consume them. */
128
+ export declare class ManagedInteractionSurface {
129
+ private readonly options;
130
+ private readonly snapshotRecipes;
131
+ constructor(options: ManagedInteractionSurfaceOptions);
132
+ captureRuntimeScreenshot(options?: BrowserScreenshotOptions): Promise<BrowserScreenshotCapture>;
133
+ snapshotApplication(request?: BrowserSnapshotRequest): Promise<BrowserSnapshotResult>;
134
+ interactApplication(request: BrowserInteractionRequest): Promise<BrowserInteractionResult>;
135
+ private captureApplicationImage;
136
+ private runInteractionBatch;
137
+ }
138
+ export declare function isRetryableInteractionError(error: unknown): boolean;
139
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /** Cross-boundary normalization only; domain behavior belongs with its owner. */
8
+ export declare function parseUrl(value: string): URL | null;
9
+ export declare function errorMessage(error: unknown): string;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { type Browser, type BrowserContext, type Page } from 'playwright';
8
+ export interface ManagedBrowserAccess {
9
+ headerName: string;
10
+ pathnames: readonly string[];
11
+ topLevelPathnames?: readonly string[];
12
+ token: string;
13
+ runtimeIdentity?: {
14
+ sessionId: string;
15
+ browserEpoch: number;
16
+ };
17
+ }
18
+ export declare function createManagedBrowserBootstrap(launchUrl: URL, managedAccess: ManagedBrowserAccess | null): {
19
+ token: string | null;
20
+ url: string;
21
+ };
22
+ export type ManagedBrowserReadiness = 'iwer' | 'workspace';
23
+ /**
24
+ * Verify the Chromium binary exists and install it automatically if missing.
25
+ * Uses a Promise guard so concurrent callers share one install attempt.
26
+ * On install failure the flag stays unset so the next retry can try again.
27
+ */
28
+ export declare function ensureChromiumInstalled(signal?: AbortSignal): Promise<void>;
29
+ /** Persistent, private profile identity shared by every runtime generation. */
30
+ export declare function managedBrowserProfilePath(workspaceRoot: string): string;
31
+ export declare function openManagedChromium({ browserAutomation, headless, launchUrl, managedAccess, signal, viewport, workspaceRoot, }: {
32
+ workspaceRoot?: string;
33
+ browserAutomation: boolean;
34
+ headless: boolean;
35
+ launchUrl: URL;
36
+ managedAccess: ManagedBrowserAccess | null;
37
+ signal?: AbortSignal;
38
+ viewport: {
39
+ height: number;
40
+ width: number;
41
+ } | null;
42
+ }): Promise<{
43
+ browser: Browser;
44
+ browserAutomationEndpoint: string | null;
45
+ context: BrowserContext;
46
+ dispose: () => Promise<void>;
47
+ page: Page;
48
+ }>;
49
+ export declare function navigateAndVerifyManagedPage({ browserAutomationEndpoint, context, managedWorkspaceToken, page, readiness, waitForRuntime, signal, traceMcp, url, }: {
50
+ browserAutomationEndpoint: string | null;
51
+ context: BrowserContext;
52
+ managedWorkspaceToken: string | null;
53
+ page: Page;
54
+ readiness: ManagedBrowserReadiness;
55
+ waitForRuntime?: boolean;
56
+ signal?: AbortSignal;
57
+ traceMcp: boolean;
58
+ url: string;
59
+ }): Promise<{
60
+ endpoint: string;
61
+ targetId: string;
62
+ } | null>;
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { RuntimeBrowserLifecycle, RuntimeIssueCause } from '@iwsdk/cli/contract';
8
+ type State = RuntimeBrowserLifecycle;
9
+ export type LifecycleEvent = {
10
+ type: 'launch';
11
+ attemptId: string;
12
+ timeoutMs: number;
13
+ phase?: 'installing' | 'starting';
14
+ } | {
15
+ type: 'prepared';
16
+ attemptId: string;
17
+ timeoutMs: number;
18
+ } | {
19
+ type: 'running';
20
+ attemptId: string;
21
+ } | {
22
+ type: 'closing';
23
+ reason: string;
24
+ timeoutMs: number;
25
+ } | {
26
+ type: 'cleanup_unconfirmed';
27
+ reason: string;
28
+ cause?: RuntimeIssueCause;
29
+ } | {
30
+ type: 'failed';
31
+ reason: string;
32
+ cause?: RuntimeIssueCause;
33
+ } | {
34
+ type: 'stable';
35
+ } | {
36
+ type: 'retry';
37
+ } | {
38
+ type: 'observe';
39
+ } | {
40
+ type: 'stop';
41
+ };
42
+ /** Pure transition function. All async completions are fenced by attempt ID. */
43
+ export declare function reduceBrowserLifecycle(state: State, event: LifecycleEvent, now: number): State;
44
+ export interface LifecycleBrowser {
45
+ isClosed(): boolean;
46
+ close(): Promise<void>;
47
+ onClose(callback: () => void): void;
48
+ }
49
+ /** One writer, one in-flight launch/cleanup, and bounded observers. */
50
+ export declare class ManagedBrowserLifecycle<B extends LifecycleBrowser> {
51
+ private readonly options;
52
+ private state;
53
+ private browser;
54
+ private flight;
55
+ private abort;
56
+ private stopping;
57
+ private cleanupUnconfirmed;
58
+ private cleanupTimer?;
59
+ private cleanupDeadline?;
60
+ private stopped?;
61
+ private stopRequest?;
62
+ private stableTimer?;
63
+ private waiters;
64
+ constructor(options: {
65
+ sessionId: string;
66
+ enabled: boolean;
67
+ launch: (signal: AbortSignal, browserEpoch: number) => Promise<B>;
68
+ prepare?: (signal: AbortSignal) => Promise<void>;
69
+ onChange: (state: State, browser: B | null) => void;
70
+ launchTimeoutMs?: number;
71
+ installTimeoutMs?: number;
72
+ cleanupTimeoutMs?: number;
73
+ stableMs?: number;
74
+ now?: () => number;
75
+ });
76
+ private now;
77
+ snapshot(): State;
78
+ current(): B | null;
79
+ private dispatch;
80
+ observe(): void;
81
+ wait(afterRevision: number, timeoutMs?: number, signal?: AbortSignal): Promise<State>;
82
+ ensure(explicit?: boolean): Promise<{
83
+ browser: B | null;
84
+ relaunched: boolean;
85
+ }>;
86
+ private start;
87
+ invalidate(reason: string): void;
88
+ invalidateIfCurrent(browser: B, browserEpoch: number, reason: string): boolean;
89
+ private retire;
90
+ private beginCleanup;
91
+ private finishCleanup;
92
+ whenStopped(): Promise<void>;
93
+ stop(): Promise<void>;
94
+ }
95
+ export {};
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { RuntimeCameraSnapshot, RuntimeFramingSnapshot } from '../runtime-proof-parity.js';
8
+ export interface BrowserEnvironmentDescriptor {
9
+ devicePixelRatio: number;
10
+ gpuRenderer: string | null;
11
+ gpuVendor: string | null;
12
+ userAgent: string;
13
+ }
14
+ export interface BrowserApplicationIdentity {
15
+ documentTimeOrigin: number;
16
+ generation: number | null;
17
+ id: string | null;
18
+ }
19
+ export declare function readApplicationIdentity(): BrowserApplicationIdentity;
20
+ export declare function describeElements(root: Element, { maxCandidates, maxNodes, maxTextLength, rootOnly, }: {
21
+ maxCandidates: number;
22
+ maxNodes: number;
23
+ maxTextLength: number;
24
+ rootOnly?: boolean;
25
+ }): {
26
+ elements: {
27
+ bounds: {
28
+ height: number;
29
+ width: number;
30
+ x: number;
31
+ y: number;
32
+ } | null;
33
+ checked?: boolean;
34
+ disabled: boolean;
35
+ expanded?: boolean;
36
+ focused: boolean;
37
+ name: string;
38
+ role: string;
39
+ selected?: boolean;
40
+ selector: string | null;
41
+ tag: string;
42
+ text: string;
43
+ visible: boolean;
44
+ }[];
45
+ truncated: boolean;
46
+ };
47
+ export declare function maxOrNull(values: number[]): number | null;
48
+ export declare function summarizeFrameTimes(frameTimes: number[]): {
49
+ droppedFrameCount: number;
50
+ droppedFrameThresholdMs: number;
51
+ max: number | null;
52
+ p50: number | null;
53
+ p95: number | null;
54
+ sampleCount: number;
55
+ };
56
+ export declare function readEnvironmentDescriptor(source: 'first' | 'largest' | 'renderer'): {
57
+ canvas: {
58
+ backingHeight: number;
59
+ backingWidth: number;
60
+ cssHeight: number;
61
+ cssWidth: number;
62
+ } | null;
63
+ canvasIndex: number | null;
64
+ environment: BrowserEnvironmentDescriptor;
65
+ };
66
+ export declare function assertBrowserEnvironmentDescriptor(value: unknown): asserts value is BrowserEnvironmentDescriptor;
67
+ export declare function flattenRuntimeHierarchy(hierarchy: any): {
68
+ entries: any[];
69
+ runtimeHashes: string[];
70
+ };
71
+ export declare function readRuntimeHierarchy(): Promise<any>;
72
+ export declare function readRuntimeRenderStats(): Promise<Record<string, unknown>>;
73
+ export declare function sampleRuntimeFrameTimes({ sampleFrames, warmupFrames, }: {
74
+ sampleFrames: number;
75
+ warmupFrames: number;
76
+ }): Promise<number[]>;
77
+ export declare function readRuntimeNodes(requests: Array<{
78
+ entry: any | null;
79
+ nodeId: string;
80
+ }>): Promise<Array<{
81
+ components: unknown;
82
+ hierarchy: any | null;
83
+ nodeId: string;
84
+ transform: unknown;
85
+ }>>;
86
+ export declare function readCameraFramingSnapshot(renderStats: any): {
87
+ camera: RuntimeCameraSnapshot | null;
88
+ framing: RuntimeFramingSnapshot | null;
89
+ };
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { BrowserContext, Frame, Page } from 'playwright';
8
+ import { type BrowserApplicationMetadata } from './application-surface.js';
9
+ import { ManagedBrowserCommandCoordinator } from './command-lock.js';
10
+ import { type BrowserEnvironmentDescriptor } from './page-probes.js';
11
+ export interface BrowserProfileRequest {
12
+ action: 'start' | 'status' | 'stop';
13
+ maxDurationMs?: number;
14
+ mode?: 'interaction' | 'rendering' | 'trace';
15
+ profileId?: string;
16
+ }
17
+ export interface BrowserProfileResult {
18
+ application: BrowserApplicationMetadata;
19
+ artifact?: {
20
+ bytes: number;
21
+ path: string;
22
+ sha256: string;
23
+ };
24
+ calibrated: false;
25
+ classification: 'host-browser-diagnostic';
26
+ durationMs: number;
27
+ droppedInterruptionCount: number;
28
+ environment?: BrowserEnvironmentDescriptor;
29
+ interruptions: Array<{
30
+ at: number;
31
+ kind: string;
32
+ value?: string;
33
+ }>;
34
+ mode: 'interaction' | 'rendering' | 'trace';
35
+ profileId: string;
36
+ status: 'active' | 'started' | 'stopped';
37
+ summary?: {
38
+ browserMetrics: Record<string, number>;
39
+ collection: {
40
+ eventTiming: boolean;
41
+ frameTiming: boolean;
42
+ trace: boolean;
43
+ };
44
+ eventTiming: {
45
+ count: number;
46
+ maxDurationMs: number | null;
47
+ };
48
+ frameTimeMs: {
49
+ droppedFrameCount: number;
50
+ max: number | null;
51
+ p50: number | null;
52
+ p95: number | null;
53
+ sampleCount: number;
54
+ source: 'requestAnimationFrame-interval';
55
+ };
56
+ longTasks: {
57
+ count: number;
58
+ totalDurationMs: number;
59
+ };
60
+ marks: Array<{
61
+ name: string;
62
+ startTime: number;
63
+ }>;
64
+ };
65
+ targetDevice: null;
66
+ }
67
+ export declare class BrowserProfiler {
68
+ private readonly page;
69
+ private readonly context;
70
+ private readonly workspaceRoot;
71
+ private readonly coordinator;
72
+ private readonly sanitize;
73
+ private activeProfile;
74
+ private closed;
75
+ private lastResult;
76
+ constructor(page: Page, context: BrowserContext, workspaceRoot: string, coordinator: ManagedBrowserCommandCoordinator, sanitize: (value: string) => string);
77
+ get activeDeadline(): number | null;
78
+ note(interruption: {
79
+ at: number;
80
+ kind: string;
81
+ value?: string;
82
+ }): void;
83
+ markInteractionStep(frame: Frame, index: number, action: string): Promise<void>;
84
+ start(request: BrowserProfileRequest): Promise<BrowserProfileResult>;
85
+ stop(requestedProfileId?: string, interruptionKind?: string): Promise<BrowserProfileResult>;
86
+ status(): BrowserProfileResult;
87
+ stopIfActive(interruptionKind: string): Promise<void>;
88
+ handleBrowserClose(): void;
89
+ private describe;
90
+ private record;
91
+ private recordError;
92
+ }