spana-test 0.6.0 → 0.7.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.
- package/.agents/skills/spana-testing/SKILL.md +19 -15
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +3 -3
- package/dist/{app-DcLXtpv4.d.ts → app-D_UyZBsl.d.ts} +9 -2
- package/dist/{chunk-S4JVAHBR.js → chunk-2IXXEXTL.js} +2 -2
- package/dist/{chunk-4K3FZTSV.js → chunk-54ASKII6.js} +6 -2
- package/dist/chunk-54ASKII6.js.map +1 -0
- package/dist/{chunk-KEUZLBQS.js → chunk-6B5Y75V4.js} +544 -79
- package/dist/chunk-6B5Y75V4.js.map +1 -0
- package/dist/{chunk-KBRLIQRA.js → chunk-JYFPZRCN.js} +6 -3
- package/dist/chunk-JYFPZRCN.js.map +1 -0
- package/dist/{chunk-WBBMEAHU.js → chunk-KNSAHEXI.js} +3 -3
- package/dist/{chunk-C4E4XULT.js → chunk-RURZVMZ7.js} +3 -3
- package/dist/{chunk-LCV673G3.js → chunk-T3EBOYLS.js} +154 -26
- package/dist/chunk-T3EBOYLS.js.map +1 -0
- package/dist/{chunk-PWUJT5HE.js → chunk-T5CROOR7.js} +3 -3
- package/dist/cli.js +8 -8
- package/dist/config-loader-NIDQGP3K.js +9 -0
- package/dist/{doctor-command-WEHFANT7.js → doctor-command-WPEVZEZ4.js} +3 -3
- package/dist/{flow-C2JQ7gUu.d.ts → flow-g6AICPAl.d.ts} +1 -1
- package/dist/gherkin/steps.d.ts +2 -2
- package/dist/{html-F3X3XPSX.js → html-IKCTZH2U.js} +194 -3
- package/dist/html-IKCTZH2U.js.map +1 -0
- package/dist/index.d.ts +228 -7
- package/dist/index.js +161 -7
- package/dist/index.js.map +1 -1
- package/dist/{screenshot-compare-5NINZVOK.js → screenshot-compare-POTXVUTL.js} +2 -2
- package/dist/{server-OANRDAHN.js → server-EBPYK3VE.js} +4 -4
- package/dist/{server-3MGZNK67.js → server-IGLBFEU7.js} +2 -2
- package/dist/{session-Q3QYHT4Q.js → session-QRWH3SPW.js} +4 -4
- package/dist/{session-Daq0mE_a.d.ts → session-cJ_tZjCL.d.ts} +1 -1
- package/dist/{studio-command-RJYLJT4I.js → studio-command-FLA5HKRK.js} +2 -2
- package/dist/{test-command-ALH5ZQY5.js → test-command-P5W7UD52.js} +7 -7
- package/package.json +2 -1
- package/dist/chunk-4K3FZTSV.js.map +0 -1
- package/dist/chunk-KBRLIQRA.js.map +0 -1
- package/dist/chunk-KEUZLBQS.js.map +0 -1
- package/dist/chunk-LCV673G3.js.map +0 -1
- package/dist/config-loader-J4Z2PMUQ.js +0 -9
- package/dist/html-F3X3XPSX.js.map +0 -1
- /package/dist/{chunk-S4JVAHBR.js.map → chunk-2IXXEXTL.js.map} +0 -0
- /package/dist/{chunk-WBBMEAHU.js.map → chunk-KNSAHEXI.js.map} +0 -0
- /package/dist/{chunk-C4E4XULT.js.map → chunk-RURZVMZ7.js.map} +0 -0
- /package/dist/{chunk-PWUJT5HE.js.map → chunk-T5CROOR7.js.map} +0 -0
- /package/dist/{config-loader-J4Z2PMUQ.js.map → config-loader-NIDQGP3K.js.map} +0 -0
- /package/dist/{doctor-command-WEHFANT7.js.map → doctor-command-WPEVZEZ4.js.map} +0 -0
- /package/dist/{screenshot-compare-5NINZVOK.js.map → screenshot-compare-POTXVUTL.js.map} +0 -0
- /package/dist/{server-OANRDAHN.js.map → server-EBPYK3VE.js.map} +0 -0
- /package/dist/{server-3MGZNK67.js.map → server-IGLBFEU7.js.map} +0 -0
- /package/dist/{session-Q3QYHT4Q.js.map → session-QRWH3SPW.js.map} +0 -0
- /package/dist/{studio-command-RJYLJT4I.js.map → studio-command-FLA5HKRK.js.map} +0 -0
- /package/dist/{test-command-ALH5ZQY5.js.map → test-command-P5W7UD52.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FlowDefinition, a as FlowContext, b as FlowConfig } from './flow-
|
|
2
|
-
export { c as FlowFn, P as PromiseExpectation, S as SecondarySession, d as SecondarySessionOptions, e as Sessions, f as flow } from './flow-
|
|
3
|
-
import { R as RawDriverService, D as DriverError, a as DomElementMatch, P as Platform, E as ExtendedSelector, T as TapMode, b as ProvConfig, c as DomChannel, d as DomTargetInfo, S as Selector, e as DomWaitForSelectorOptions, f as DomWaitForHiddenOptions, g as DomWaitForMatchOptions, h as DomWaitForMatchResult, i as DomFillOptions, j as DomIdleOptions, k as DomStorageEntries, l as DomClearStorageOptions, B as BrowserRouteMatcher, m as BrowserMockResponse, n as BrowserConsoleLog, o as BrowserJSError, p as BrowserName, V as VirtualAuthenticatorOptions, q as ElectrobunAppConfig, r as ElectrobunRenderer, A as AppiumExecutionConfig, s as AppConfig, t as PromiseApp } from './app-
|
|
4
|
-
export { u as ArtifactConfig, v as BackUntilVisibleOptions, w as BridgeConfig, x as BrowserHAR, y as BrowserNetworkConditions, z as DeviceInfo, C as DeviceStateConfig, F as DismissKeyboardOptions, G as DomChannelKind, H as DomRect, I as ElectronAppConfig, L as LaunchOptions, J as RelativeSelector, K as ScrollUntilVisibleOptions, M as StorybookConfig, N as StorybookOpenOptions, O as StorybookValue, Q as TouchAction, U as TouchSequence, W as
|
|
5
|
-
import { E as Element, B as Bounds, C as ConnectOptions, S as Session } from './session-
|
|
1
|
+
import { F as FlowDefinition, a as FlowContext, b as FlowConfig } from './flow-g6AICPAl.js';
|
|
2
|
+
export { c as FlowFn, P as PromiseExpectation, S as SecondarySession, d as SecondarySessionOptions, e as Sessions, f as flow } from './flow-g6AICPAl.js';
|
|
3
|
+
import { R as RawDriverService, D as DriverError, a as DomElementMatch, P as Platform, E as ExtendedSelector, T as TapMode, b as ProvConfig, c as DomChannel, d as DomTargetInfo, S as Selector, e as DomWaitForSelectorOptions, f as DomWaitForHiddenOptions, g as DomWaitForMatchOptions, h as DomWaitForMatchResult, i as DomFillOptions, j as DomIdleOptions, k as DomStorageEntries, l as DomClearStorageOptions, B as BrowserRouteMatcher, m as BrowserMockResponse, n as BrowserConsoleLog, o as BrowserJSError, p as BrowserName, V as VirtualAuthenticatorOptions, q as ElectrobunAppConfig, r as ElectrobunRenderer, A as AppiumExecutionConfig, s as AppConfig, t as PromiseApp } from './app-D_UyZBsl.js';
|
|
4
|
+
export { u as ArtifactConfig, v as BackUntilVisibleOptions, w as BridgeConfig, x as BrowserHAR, y as BrowserNetworkConditions, z as DeviceInfo, C as DeviceStateConfig, F as DismissKeyboardOptions, G as DomChannelKind, H as DomRect, I as ElectronAppConfig, L as LaunchOptions, J as RelativeSelector, K as ScrollUntilVisibleOptions, M as StorybookConfig, N as StorybookOpenOptions, O as StorybookValue, Q as TouchAction, U as TouchSequence, W as VideoRecordingMode, X as VirtualCredential, Y as WarmDaemonConfig, Z as WebBrowserEngine, _ as WebExecutionConfig, $ as WebResourceBlockType, a0 as buildDomFillScript, a1 as buildDomWaitForHiddenScript, a2 as buildDomWaitForMatchScript, a3 as buildDomWaitForSelectorScript, a4 as defineConfig, a5 as isSystemUISelector, a6 as isTestIDSelector, a7 as systemUI } from './app-D_UyZBsl.js';
|
|
5
|
+
import { E as Element, B as Bounds, C as ConnectOptions, S as Session } from './session-cJ_tZjCL.js';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
7
|
import { Effect } from 'effect';
|
|
8
8
|
import { Browser, _electron, chromium } from 'playwright-core';
|
|
9
|
-
import { spawn } from 'node:child_process';
|
|
9
|
+
import { spawn, execFileSync } from 'node:child_process';
|
|
10
10
|
|
|
11
11
|
interface HierarchyCache {
|
|
12
12
|
/** Get the hierarchy, using cache if fresh enough. */
|
|
@@ -285,6 +285,15 @@ interface CdpDomChannelOptions {
|
|
|
285
285
|
/** Injectable WebSocket factory for testing */
|
|
286
286
|
createWebSocket?: WebSocketFactory;
|
|
287
287
|
}
|
|
288
|
+
interface CdpChildSessionInfo {
|
|
289
|
+
sessionId: string;
|
|
290
|
+
targetId?: string;
|
|
291
|
+
url?: string;
|
|
292
|
+
}
|
|
293
|
+
type CdpFrameOffsetResolver = (child: CdpChildSessionInfo) => Promise<{
|
|
294
|
+
x: number;
|
|
295
|
+
y: number;
|
|
296
|
+
}>;
|
|
288
297
|
declare class CdpDomChannel implements DomChannel {
|
|
289
298
|
readonly kind: "cdp";
|
|
290
299
|
private readonly endpointUrl;
|
|
@@ -300,6 +309,8 @@ declare class CdpDomChannel implements DomChannel {
|
|
|
300
309
|
private eventListeners;
|
|
301
310
|
private currentTargetId;
|
|
302
311
|
private activeSessionId;
|
|
312
|
+
private childSessions;
|
|
313
|
+
private frameOffsetResolver?;
|
|
303
314
|
constructor(options: CdpDomChannelOptions);
|
|
304
315
|
isConnected(): boolean;
|
|
305
316
|
listTargets(): Promise<DomTargetInfo[]>;
|
|
@@ -310,10 +321,21 @@ declare class CdpDomChannel implements DomChannel {
|
|
|
310
321
|
private rejectAllPending;
|
|
311
322
|
setSessionId(sessionId: string | null): void;
|
|
312
323
|
get sessionId(): string | null;
|
|
324
|
+
/** Register an attached cross-origin iframe (OOPIF) flattened CDP session. */
|
|
325
|
+
addChildSession(sessionId: string, meta?: {
|
|
326
|
+
targetId?: string;
|
|
327
|
+
url?: string;
|
|
328
|
+
}): void;
|
|
329
|
+
removeChildSession(sessionId: string): void;
|
|
330
|
+
clearChildSessions(): void;
|
|
331
|
+
getChildSessions(): CdpChildSessionInfo[];
|
|
332
|
+
setFrameOffsetResolver(resolver: CdpFrameOffsetResolver | undefined): void;
|
|
313
333
|
onEvent(method: string, listener: (params: any, sessionId?: string) => void): () => void;
|
|
314
334
|
waitForEvent<T = any>(method: string, timeoutMs?: number, predicate?: (params: T, sessionId?: string) => boolean): Promise<T>;
|
|
315
335
|
sendCommand<T = any>(method: string, params?: Record<string, unknown>, sessionId?: string | null): Promise<T>;
|
|
336
|
+
evaluateOnSession<T = unknown>(sessionId: string | null | undefined, script: string | ((...args: any[]) => T), ...args: any[]): Promise<T>;
|
|
316
337
|
evaluate<T = unknown>(script: string | ((...args: any[]) => T), ...args: any[]): Promise<T>;
|
|
338
|
+
private applyChildOffset;
|
|
317
339
|
query(selector: Selector): Promise<DomElementMatch[]>;
|
|
318
340
|
waitForSelector(selector: Selector, opts?: DomWaitForSelectorOptions): Promise<DomElementMatch[]>;
|
|
319
341
|
waitForHidden(selector: Selector, opts?: DomWaitForHiddenOptions): Promise<boolean>;
|
|
@@ -646,6 +668,19 @@ declare function connectPlaywrightOverCDP(cdpEndpoint: string): Promise<Browser>
|
|
|
646
668
|
declare function connectPlaywrightOverWS(wsEndpoint: string, browserName?: BrowserName): Promise<Browser>;
|
|
647
669
|
declare function launchPlaywrightBrowser(config?: Pick<PlaywrightConfig, "browser" | "headless" | "channel" | "executablePath">): Promise<Browser>;
|
|
648
670
|
|
|
671
|
+
interface TestResult {
|
|
672
|
+
name: string;
|
|
673
|
+
platform: Platform;
|
|
674
|
+
status: "passed" | "failed" | "skipped";
|
|
675
|
+
flaky?: boolean;
|
|
676
|
+
attempts?: number;
|
|
677
|
+
durationMs: number;
|
|
678
|
+
error?: FlowError;
|
|
679
|
+
attachments?: Attachment[];
|
|
680
|
+
steps?: StepResult[];
|
|
681
|
+
scenarioSteps?: ScenarioStepResult[];
|
|
682
|
+
}
|
|
683
|
+
|
|
649
684
|
interface DirectCdpBrowserLaunchOptions {
|
|
650
685
|
/** Explicit Chromium/Chrome binary path. Auto-detects system Chrome or Playwright Chromium if omitted. */
|
|
651
686
|
executablePath?: string;
|
|
@@ -724,6 +759,14 @@ interface LightweightCdpDriverOptions {
|
|
|
724
759
|
*/
|
|
725
760
|
declare function makeLightweightCdpDriver(options: LightweightCdpDriverOptions): Effect.Effect<RawDriverService, DriverError>;
|
|
726
761
|
|
|
762
|
+
/**
|
|
763
|
+
* Resolve the effective web browser engine.
|
|
764
|
+
* - `"auto"`: automatically selects direct CDP (`"cdp"`, zero Playwright pipe) for Chromium
|
|
765
|
+
* when no Playwright-only features (`wsEndpoint`, `channel`, `artifacts.har`) are requested,
|
|
766
|
+
* and falls back seamlessly to `"playwright"` otherwise.
|
|
767
|
+
* - Explicit `"cdp"`, `"playwright"`, or `"lightpanda"` is respected verbatim.
|
|
768
|
+
*/
|
|
769
|
+
declare function resolveWebEngine(config: ProvConfig): "playwright" | "cdp" | "lightpanda";
|
|
727
770
|
interface PrelaunchedWebBrowser {
|
|
728
771
|
browserPromise: Promise<Browser>;
|
|
729
772
|
ownsBrowser: boolean;
|
|
@@ -1411,6 +1454,184 @@ declare function comparePngNative(expected: Buffer | Uint8Array, actual: Buffer
|
|
|
1411
1454
|
/** Accelerated Rust XML hierarchy tokenizer (returns `null` if unavailable so caller falls back to JS). */
|
|
1412
1455
|
declare function tokenizeXmlNative(xml: string, wrapperTag: string): NativeXmlRawNode[] | null;
|
|
1413
1456
|
|
|
1457
|
+
interface PlaybackFrame {
|
|
1458
|
+
/** Milliseconds elapsed since flow start. */
|
|
1459
|
+
timestampMs: number;
|
|
1460
|
+
/** Base64-encoded image bytes (no `data:` prefix). */
|
|
1461
|
+
dataBase64: string;
|
|
1462
|
+
mimeType: "image/jpeg" | "image/png";
|
|
1463
|
+
}
|
|
1464
|
+
interface PlaybackStepMarker {
|
|
1465
|
+
index: number;
|
|
1466
|
+
command: string;
|
|
1467
|
+
selector?: unknown;
|
|
1468
|
+
/** Relative ms since flow start when this step started. */
|
|
1469
|
+
startedAtMs: number;
|
|
1470
|
+
durationMs: number;
|
|
1471
|
+
status: "passed" | "failed";
|
|
1472
|
+
error?: string;
|
|
1473
|
+
/** Optional viewport pixel coordinate tapped during this step (for click-ripple overlay). */
|
|
1474
|
+
tapPoint?: {
|
|
1475
|
+
x: number;
|
|
1476
|
+
y: number;
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
interface FlowPlaybackTrace {
|
|
1480
|
+
version: 1;
|
|
1481
|
+
flowName: string;
|
|
1482
|
+
platform: string;
|
|
1483
|
+
startedAtIso: string;
|
|
1484
|
+
durationMs: number;
|
|
1485
|
+
viewport?: {
|
|
1486
|
+
width: number;
|
|
1487
|
+
height: number;
|
|
1488
|
+
};
|
|
1489
|
+
frames: PlaybackFrame[];
|
|
1490
|
+
steps: PlaybackStepMarker[];
|
|
1491
|
+
videoPath?: string;
|
|
1492
|
+
}
|
|
1493
|
+
interface StopRecordingOptions {
|
|
1494
|
+
keep: boolean;
|
|
1495
|
+
outputDir: string;
|
|
1496
|
+
fileStem: string;
|
|
1497
|
+
steps?: PlaybackStepMarker[];
|
|
1498
|
+
viewport?: {
|
|
1499
|
+
width: number;
|
|
1500
|
+
height: number;
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
interface StopRecordingResult {
|
|
1504
|
+
playbackJsonPath?: string;
|
|
1505
|
+
videoPath?: string;
|
|
1506
|
+
frameCount: number;
|
|
1507
|
+
}
|
|
1508
|
+
interface VideoRecorderHandle {
|
|
1509
|
+
stop(opts: StopRecordingOptions): Promise<StopRecordingResult>;
|
|
1510
|
+
}
|
|
1511
|
+
interface CdpScreencastLike {
|
|
1512
|
+
sendCommand<T = any>(method: string, params?: Record<string, unknown>, sessionId?: string | null): Promise<T>;
|
|
1513
|
+
onEvent(method: string, listener: (params: any, sessionId?: string) => void): () => void;
|
|
1514
|
+
}
|
|
1515
|
+
interface CdpScreencastRecorderOptions {
|
|
1516
|
+
flowName: string;
|
|
1517
|
+
platform: string;
|
|
1518
|
+
/** Max captured JPEG frames per flow (ring-bounded). Default: 180. */
|
|
1519
|
+
maxFrames?: number;
|
|
1520
|
+
/** JPEG quality 1–100. Default: 65 (fast & compact). */
|
|
1521
|
+
quality?: number;
|
|
1522
|
+
maxWidth?: number;
|
|
1523
|
+
maxHeight?: number;
|
|
1524
|
+
everyNthFrame?: number;
|
|
1525
|
+
/** Attempt to mux captured JPEG frames into an `.mp4` via `ffmpeg` if available on PATH. Default: true. */
|
|
1526
|
+
exportMp4?: boolean;
|
|
1527
|
+
spawnFn?: typeof spawn;
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Best-effort mux of captured JPEG frames into an H.264 `.mp4` via `ffmpeg`.
|
|
1531
|
+
* Returns the written `outputPath` on success, or `undefined` if `ffmpeg` isn't available.
|
|
1532
|
+
*/
|
|
1533
|
+
declare function exportFramesToMp4(frames: PlaybackFrame[], outputPath: string, spawnFn?: typeof spawn): Promise<string | undefined>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Start asynchronous Chromium CDP screencast recording (`Page.startScreencast`).
|
|
1536
|
+
* Captures lightweight JPEG frames directly from Chromium's compositor with minimal
|
|
1537
|
+
* test overhead, writes a self-contained `*-playback.json` trace for `report.html`,
|
|
1538
|
+
* and optionally exports an `.mp4` video if `ffmpeg` is available.
|
|
1539
|
+
*/
|
|
1540
|
+
declare function startCdpScreencastRecorder(cdp: CdpScreencastLike, options: CdpScreencastRecorderOptions): Promise<VideoRecorderHandle>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Start native Android screen recording via `adb shell screenrecord`.
|
|
1543
|
+
* Automatically pulls the `.mp4` on stop when `keep: true` and cleans up the device file.
|
|
1544
|
+
*/
|
|
1545
|
+
declare function startAndroidVideoRecorder(serial: string, options: {
|
|
1546
|
+
outputPath: string;
|
|
1547
|
+
spawnFn?: typeof spawn;
|
|
1548
|
+
execFileSyncFn?: typeof execFileSync;
|
|
1549
|
+
}): VideoRecorderHandle;
|
|
1550
|
+
/**
|
|
1551
|
+
* Start native iOS Simulator H.264 video recording via `xcrun simctl io <udid> recordVideo`.
|
|
1552
|
+
*/
|
|
1553
|
+
declare function startIosSimulatorVideoRecorder(udid: string, options: {
|
|
1554
|
+
outputPath: string;
|
|
1555
|
+
spawnFn?: typeof spawn;
|
|
1556
|
+
}): VideoRecorderHandle;
|
|
1557
|
+
/**
|
|
1558
|
+
* Fallback playback trace builder from step screenshots (`artifacts.captureSteps: true`).
|
|
1559
|
+
* Guarantees interactive step-by-step playback works on EVERY target (Web, Playwright,
|
|
1560
|
+
* Android, iOS, Electron, Electrobun) even without CDP screencast or ffmpeg.
|
|
1561
|
+
*/
|
|
1562
|
+
declare function buildPlaybackTraceFromSteps(input: {
|
|
1563
|
+
flowName: string;
|
|
1564
|
+
platform: string;
|
|
1565
|
+
durationMs: number;
|
|
1566
|
+
steps: StepResult[];
|
|
1567
|
+
viewport?: {
|
|
1568
|
+
width: number;
|
|
1569
|
+
height: number;
|
|
1570
|
+
};
|
|
1571
|
+
videoPath?: string;
|
|
1572
|
+
}): FlowPlaybackTrace | null;
|
|
1573
|
+
|
|
1574
|
+
declare const DEFAULT_MAX_WORKERS_PER_PROCESS = 8;
|
|
1575
|
+
interface ProcessPartitionPlan {
|
|
1576
|
+
totalWorkers: number;
|
|
1577
|
+
maxWorkersPerProcess: number;
|
|
1578
|
+
processCount: number;
|
|
1579
|
+
workersPerProcess: number[];
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
* Plan how to split `totalWorkers` across OS processes.
|
|
1583
|
+
* - Up to `maxWorkersPerProcess` (default 8): 1 single in-process Bun event loop (zero IPC overhead).
|
|
1584
|
+
* - Above `maxWorkersPerProcess` (e.g. 16 or 32 workers on large CI boxes): evenly divides
|
|
1585
|
+
* workers across `Math.ceil(totalWorkers / maxWorkersPerProcess)` OS processes so each
|
|
1586
|
+
* process gets its own JS heap, GC, and event loop.
|
|
1587
|
+
*/
|
|
1588
|
+
declare function planProcessPool(totalWorkers: number, maxWorkersPerProcess?: number): ProcessPartitionPlan;
|
|
1589
|
+
/**
|
|
1590
|
+
* Partition flows across `processCount` buckets using Longest-Processing-Time-First (LPT)
|
|
1591
|
+
* bin packing when `durationHintsMs` are available so every child process finishes together.
|
|
1592
|
+
*/
|
|
1593
|
+
declare function partitionFlowsAcrossProcesses<T>(items: T[], processCount: number, options?: {
|
|
1594
|
+
durationHintsMs?: Record<string, number>;
|
|
1595
|
+
getName?: (item: T) => string;
|
|
1596
|
+
}): T[][];
|
|
1597
|
+
interface ProcessShardCommand {
|
|
1598
|
+
command: string;
|
|
1599
|
+
args: string[];
|
|
1600
|
+
env?: Record<string, string>;
|
|
1601
|
+
reportJsonPath: string;
|
|
1602
|
+
}
|
|
1603
|
+
interface ProcessShardOutcome {
|
|
1604
|
+
shardIndex: number;
|
|
1605
|
+
workerCount: number;
|
|
1606
|
+
exitCode: number | null;
|
|
1607
|
+
durationMs: number;
|
|
1608
|
+
results: TestResult[];
|
|
1609
|
+
error?: string;
|
|
1610
|
+
}
|
|
1611
|
+
interface MultiProcessPoolOptions {
|
|
1612
|
+
totalWorkers: number;
|
|
1613
|
+
maxWorkersPerProcess?: number;
|
|
1614
|
+
buildShardCommand: (shardIndex: number, shardTotal: number, workerCount: number) => ProcessShardCommand;
|
|
1615
|
+
spawnFn?: typeof spawn;
|
|
1616
|
+
readReportFn?: (reportJsonPath: string) => TestResult[];
|
|
1617
|
+
cleanupReportFiles?: boolean;
|
|
1618
|
+
}
|
|
1619
|
+
interface MultiProcessPoolResult {
|
|
1620
|
+
results: TestResult[];
|
|
1621
|
+
totalDurationMs: number;
|
|
1622
|
+
passed: number;
|
|
1623
|
+
failed: number;
|
|
1624
|
+
skipped: number;
|
|
1625
|
+
flaky: number;
|
|
1626
|
+
processCount: number;
|
|
1627
|
+
processResults: ProcessShardOutcome[];
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Execute a high-concurrency suite (16–32+ workers) across multiple OS worker processes,
|
|
1631
|
+
* each running up to `maxWorkersPerProcess` in-process workers with its own JS heap & event loop.
|
|
1632
|
+
*/
|
|
1633
|
+
declare function runMultiProcessPool(options: MultiProcessPoolOptions): Promise<MultiProcessPoolResult>;
|
|
1634
|
+
|
|
1414
1635
|
/** MCP Tool definition advertised by `tools/list`. */
|
|
1415
1636
|
interface McpToolDefinition {
|
|
1416
1637
|
name: string;
|
|
@@ -1482,4 +1703,4 @@ declare class SpanaMcpServer {
|
|
|
1482
1703
|
runStdio(): Promise<void>;
|
|
1483
1704
|
}
|
|
1484
1705
|
|
|
1485
|
-
export { type AgentActExecutor, AndroidWebViewCdpChannel, type AndroidWebViewCdpOptions, type ApiClient, type ApiClientOptions, type ApiRequestOptions, type ApiResponse, AppConfig, AppleWebInspectorClient, type AppliedFilterReport, type ApplyFiltersResult, type Attachment, BrowserConsoleLog, BrowserJSError, BrowserMockResponse, BrowserName, BrowserRouteMatcher, type CacheWriteStatus, type CachedPersonaState, CdpDomChannel, type CdpDomChannelOptions, type ChangedFile, type CloudProvider, type CloudProviderHelper, type CreateFixturesOptions, type DecisionBatchJudge, type DecisionBatchJudgeResult, type DecisionFilterOptions, type DecisionModelJudge, type DeterministicImpactFilterOptions, type DirectCdpBrowserHandle, type DirectCdpBrowserLaunchOptions, DomChannel, DomClearStorageOptions, DomElementMatch, DomFillOptions, DomIdleOptions, DomStorageEntries, DomTargetInfo, DomWaitForHiddenOptions, DomWaitForMatchOptions, DomWaitForMatchResult, DomWaitForSelectorOptions, ElectrobunAppConfig, type ElectrobunDriverOptions, type ElectrobunLaunchPlan, ElectrobunRenderer, type ElectronDriverOptions, Element, type ExtendedFlowConfig, ExtendedSelector, type FailureCategory, type FilterCandidate, type FilterContext, type FilterDecisionOutput, type FilterUsage, type FixtureDefinition, type FixtureFn, type FixtureMap, FlowConfig, FlowContext, FlowDefinition, type FlowError, type FlowResult, type GitChanges, type GitHubPrReporterOptions, type HostOS, type JsonRpcRequest, type JsonRpcResponse, type LightweightCdpDriverOptions, type LogprobDecisionJudgeOptions, type McpContentBlock, type McpToolDefinition, type McpToolResult, type NamedSetupDefinition, type NativePngCompareResult, type NativeXmlRawNode, type OllamaDecisionJudgeOptions, type PathRule, type PathRuleFilterOptions, PersonaAuthCache, type PersonaDefinition, Platform, type PrelaunchedWebBrowser, PromiseApp, ProvConfig, type RecordedAction, type ReplayCacheEntry, type ReplayCacheMode, ReplayCacheStore, type ReplayCacheSummary, ReplaySession, type ReplaySessionOptions, type ReplayStepOutcome, type Reporter, type ResolvedElementResult, type RunSummary, SPANA_MCP_TOOLS, type ScenarioStepResult, Selector, SpanaBridgeChannel, type SpanaBridgeServerOptions, SpanaMcpServer, type SpanaMcpServerOptions, type StepResult, TARGET_CHANNEL_MATRIX, TapMode, type TargetChannel, type TargetDescriptor, type TargetEngine, type TargetShell, type TestFilter, VirtualAuthenticatorOptions, type WarmDaemonRecord, type WebInspectorListingPage, WebKitInspectorChannel, type WebKitInspectorOptions, applyNamedSetup, applyTestFilters, buildFilterCandidates, buildFlowFileFromLines, buildReplayCacheKey, collectGitChanges, comparePngNative, connectPlaywrightOverCDP, connectPlaywrightOverWS, createAndroidWebViewCdpChannel, createApiClient, createApiFixture, createCdpDomChannel, createCompositeDomChannel, createFlowWithFixtures, createGitHubPrReporter, createLogprobDecisionJudge, createOllamaDecisionJudge, createSpanaBridgeChannel, createWebKitInspectorChannel, decisionFilter, decodeWebInspectorFrames, definePersona, defineSetup, deterministicImpactFilter, domRectToScreenBounds, encodeWebInspectorPacket, ensureWarmBrowserDaemon, extractDestructuredParamNames, findSimulatorWebInspectorSocket, findWebViewFrame, formatFilterSummary, formatGitHubPrMarkdown, formatSelectorCode, formatTargetMatrixTable, getHealthyWarmDaemon, getNativeAcceleratorPath, invalidateWebViewFrameCache, isNativeAcceleratorActive, isOffscreenInViewport, launchDirectCdpBrowser, launchPlaywrightBrowser, listWarmDaemons, makeElectrobunDriver, makeElectronDriver, makeLightweightCdpDriver, orderFlowsLongestFirst, parseAndroidWebViewSockets, parseWebInspectorXmlFrame, pathRuleFilter, probabilityFromTopLogprobs, replayRecordedAction, resolveElectrobunEngine, resolveElectrobunLaunchPlan, resolveElementAcrossChannels, resolveTargetDescriptor, speculativelyPrelaunchWebBrowser, stopAllWarmDaemons, stopWarmDaemon, tokenizeXmlNative, updateWarmDaemonSession };
|
|
1706
|
+
export { type AgentActExecutor, AndroidWebViewCdpChannel, type AndroidWebViewCdpOptions, type ApiClient, type ApiClientOptions, type ApiRequestOptions, type ApiResponse, AppConfig, AppleWebInspectorClient, type AppliedFilterReport, type ApplyFiltersResult, type Attachment, BrowserConsoleLog, BrowserJSError, BrowserMockResponse, BrowserName, BrowserRouteMatcher, type CacheWriteStatus, type CachedPersonaState, type CdpChildSessionInfo, CdpDomChannel, type CdpDomChannelOptions, type CdpFrameOffsetResolver, type CdpScreencastLike, type CdpScreencastRecorderOptions, type ChangedFile, type CloudProvider, type CloudProviderHelper, type CreateFixturesOptions, DEFAULT_MAX_WORKERS_PER_PROCESS, type DecisionBatchJudge, type DecisionBatchJudgeResult, type DecisionFilterOptions, type DecisionModelJudge, type DeterministicImpactFilterOptions, type DirectCdpBrowserHandle, type DirectCdpBrowserLaunchOptions, DomChannel, DomClearStorageOptions, DomElementMatch, DomFillOptions, DomIdleOptions, DomStorageEntries, DomTargetInfo, DomWaitForHiddenOptions, DomWaitForMatchOptions, DomWaitForMatchResult, DomWaitForSelectorOptions, ElectrobunAppConfig, type ElectrobunDriverOptions, type ElectrobunLaunchPlan, ElectrobunRenderer, type ElectronDriverOptions, Element, type ExtendedFlowConfig, ExtendedSelector, type FailureCategory, type FilterCandidate, type FilterContext, type FilterDecisionOutput, type FilterUsage, type FixtureDefinition, type FixtureFn, type FixtureMap, FlowConfig, FlowContext, FlowDefinition, type FlowError, type FlowPlaybackTrace, type FlowResult, type GitChanges, type GitHubPrReporterOptions, type HostOS, type JsonRpcRequest, type JsonRpcResponse, type LightweightCdpDriverOptions, type LogprobDecisionJudgeOptions, type McpContentBlock, type McpToolDefinition, type McpToolResult, type MultiProcessPoolOptions, type MultiProcessPoolResult, type NamedSetupDefinition, type NativePngCompareResult, type NativeXmlRawNode, type OllamaDecisionJudgeOptions, type PathRule, type PathRuleFilterOptions, PersonaAuthCache, type PersonaDefinition, Platform, type PlaybackFrame, type PlaybackStepMarker, type PrelaunchedWebBrowser, type ProcessPartitionPlan, type ProcessShardCommand, type ProcessShardOutcome, PromiseApp, ProvConfig, type RecordedAction, type ReplayCacheEntry, type ReplayCacheMode, ReplayCacheStore, type ReplayCacheSummary, ReplaySession, type ReplaySessionOptions, type ReplayStepOutcome, type Reporter, type ResolvedElementResult, type RunSummary, SPANA_MCP_TOOLS, type ScenarioStepResult, Selector, SpanaBridgeChannel, type SpanaBridgeServerOptions, SpanaMcpServer, type SpanaMcpServerOptions, type StepResult, type StopRecordingOptions, type StopRecordingResult, TARGET_CHANNEL_MATRIX, TapMode, type TargetChannel, type TargetDescriptor, type TargetEngine, type TargetShell, type TestFilter, type VideoRecorderHandle, VirtualAuthenticatorOptions, type WarmDaemonRecord, type WebInspectorListingPage, WebKitInspectorChannel, type WebKitInspectorOptions, applyNamedSetup, applyTestFilters, buildFilterCandidates, buildFlowFileFromLines, buildPlaybackTraceFromSteps, buildReplayCacheKey, collectGitChanges, comparePngNative, connectPlaywrightOverCDP, connectPlaywrightOverWS, createAndroidWebViewCdpChannel, createApiClient, createApiFixture, createCdpDomChannel, createCompositeDomChannel, createFlowWithFixtures, createGitHubPrReporter, createLogprobDecisionJudge, createOllamaDecisionJudge, createSpanaBridgeChannel, createWebKitInspectorChannel, decisionFilter, decodeWebInspectorFrames, definePersona, defineSetup, deterministicImpactFilter, domRectToScreenBounds, encodeWebInspectorPacket, ensureWarmBrowserDaemon, exportFramesToMp4, extractDestructuredParamNames, findSimulatorWebInspectorSocket, findWebViewFrame, formatFilterSummary, formatGitHubPrMarkdown, formatSelectorCode, formatTargetMatrixTable, getHealthyWarmDaemon, getNativeAcceleratorPath, invalidateWebViewFrameCache, isNativeAcceleratorActive, isOffscreenInViewport, launchDirectCdpBrowser, launchPlaywrightBrowser, listWarmDaemons, makeElectrobunDriver, makeElectronDriver, makeLightweightCdpDriver, orderFlowsLongestFirst, parseAndroidWebViewSockets, parseWebInspectorXmlFrame, partitionFlowsAcrossProcesses, pathRuleFilter, planProcessPool, probabilityFromTopLogprobs, replayRecordedAction, resolveElectrobunEngine, resolveElectrobunLaunchPlan, resolveElementAcrossChannels, resolveTargetDescriptor, resolveWebEngine, runMultiProcessPool, speculativelyPrelaunchWebBrowser, startAndroidVideoRecorder, startCdpScreencastRecorder, startIosSimulatorVideoRecorder, stopAllWarmDaemons, stopWarmDaemon, tokenizeXmlNative, updateWarmDaemonSession };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
+
buildPlaybackTraceFromSteps,
|
|
3
|
+
exportFramesToMp4,
|
|
2
4
|
launchDirectCdpBrowser,
|
|
3
5
|
makeLightweightCdpDriver,
|
|
4
6
|
orderFlowsLongestFirst,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
resolveWebEngine,
|
|
8
|
+
speculativelyPrelaunchWebBrowser,
|
|
9
|
+
startAndroidVideoRecorder,
|
|
10
|
+
startCdpScreencastRecorder,
|
|
11
|
+
startIosSimulatorVideoRecorder
|
|
12
|
+
} from "./chunk-6B5Y75V4.js";
|
|
7
13
|
import {
|
|
8
14
|
SPANA_MCP_TOOLS,
|
|
9
15
|
SpanaMcpServer,
|
|
10
16
|
buildFlowFileFromLines,
|
|
11
17
|
formatSelectorCode
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RURZVMZ7.js";
|
|
13
19
|
import {
|
|
14
20
|
defineConfig
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JYFPZRCN.js";
|
|
16
22
|
import "./chunk-X2TJP7LB.js";
|
|
17
23
|
import {
|
|
18
24
|
createGitHubPrReporter,
|
|
@@ -44,7 +50,7 @@ import {
|
|
|
44
50
|
makeElectronDriver,
|
|
45
51
|
resolveElementAcrossChannels,
|
|
46
52
|
systemUI
|
|
47
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-T5CROOR7.js";
|
|
48
54
|
import {
|
|
49
55
|
AndroidWebViewCdpChannel,
|
|
50
56
|
AppleWebInspectorClient,
|
|
@@ -71,7 +77,7 @@ import {
|
|
|
71
77
|
resolveElectrobunEngine,
|
|
72
78
|
resolveElectrobunLaunchPlan,
|
|
73
79
|
resolveTargetDescriptor
|
|
74
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-T3EBOYLS.js";
|
|
75
81
|
import "./chunk-HYSTRWYN.js";
|
|
76
82
|
import {
|
|
77
83
|
getHealthyWarmDaemon,
|
|
@@ -87,7 +93,7 @@ import {
|
|
|
87
93
|
getNativeAcceleratorPath,
|
|
88
94
|
isNativeAcceleratorActive,
|
|
89
95
|
tokenizeXmlNative
|
|
90
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-54ASKII6.js";
|
|
91
97
|
import "./chunk-H27IBIGA.js";
|
|
92
98
|
import "./chunk-DGUM43GV.js";
|
|
93
99
|
|
|
@@ -712,10 +718,149 @@ var ReplaySession = class {
|
|
|
712
718
|
return summary;
|
|
713
719
|
}
|
|
714
720
|
};
|
|
721
|
+
|
|
722
|
+
// src/core/worker-pool.ts
|
|
723
|
+
import { spawn } from "child_process";
|
|
724
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2, unlinkSync } from "fs";
|
|
725
|
+
var DEFAULT_MAX_WORKERS_PER_PROCESS = 8;
|
|
726
|
+
function planProcessPool(totalWorkers, maxWorkersPerProcess = DEFAULT_MAX_WORKERS_PER_PROCESS) {
|
|
727
|
+
const safeTotal = Math.max(1, Math.floor(totalWorkers));
|
|
728
|
+
const safeMax = Math.max(1, Math.floor(maxWorkersPerProcess));
|
|
729
|
+
if (safeTotal <= safeMax) {
|
|
730
|
+
return {
|
|
731
|
+
totalWorkers: safeTotal,
|
|
732
|
+
maxWorkersPerProcess: safeMax,
|
|
733
|
+
processCount: 1,
|
|
734
|
+
workersPerProcess: [safeTotal]
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
const processCount = Math.ceil(safeTotal / safeMax);
|
|
738
|
+
const base = Math.floor(safeTotal / processCount);
|
|
739
|
+
const remainder = safeTotal % processCount;
|
|
740
|
+
const workersPerProcess = Array.from(
|
|
741
|
+
{ length: processCount },
|
|
742
|
+
(_v, i) => base + (i < remainder ? 1 : 0)
|
|
743
|
+
);
|
|
744
|
+
return {
|
|
745
|
+
totalWorkers: safeTotal,
|
|
746
|
+
maxWorkersPerProcess: safeMax,
|
|
747
|
+
processCount,
|
|
748
|
+
workersPerProcess
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
function partitionFlowsAcrossProcesses(items, processCount, options) {
|
|
752
|
+
const count = Math.max(1, Math.min(Math.floor(processCount), Math.max(1, items.length)));
|
|
753
|
+
if (count === 1 || items.length === 0) {
|
|
754
|
+
return items.length === 0 ? [] : [items];
|
|
755
|
+
}
|
|
756
|
+
const hints = options?.durationHintsMs;
|
|
757
|
+
const getName = options?.getName;
|
|
758
|
+
const known = hints ? Object.values(hints).filter((v) => typeof v === "number" && v > 0) : [];
|
|
759
|
+
const defaultWeight = known.length > 0 ? known.reduce((a, b) => a + b, 0) / known.length : 1e3;
|
|
760
|
+
const indexed = items.map((item, idx) => ({
|
|
761
|
+
item,
|
|
762
|
+
idx,
|
|
763
|
+
weight: hints && getName ? hints[getName(item)] ?? defaultWeight : 1e3
|
|
764
|
+
}));
|
|
765
|
+
const ordered = hints && getName && Object.keys(hints).length > 0 ? indexed.toSorted((a, b) => b.weight - a.weight || a.idx - b.idx) : indexed;
|
|
766
|
+
const loads = Array.from({ length: count }, () => 0);
|
|
767
|
+
const buckets = Array.from({ length: count }, () => []);
|
|
768
|
+
for (const entry of ordered) {
|
|
769
|
+
let best = 0;
|
|
770
|
+
for (let i = 1; i < count; i++) {
|
|
771
|
+
if (loads[i] < loads[best]) best = i;
|
|
772
|
+
}
|
|
773
|
+
loads[best] = loads[best] + entry.weight;
|
|
774
|
+
buckets[best].push({ item: entry.item, idx: entry.idx });
|
|
775
|
+
}
|
|
776
|
+
return buckets.map((bucket) => bucket.toSorted((a, b) => a.idx - b.idx).map((e) => e.item)).filter((b) => b.length > 0);
|
|
777
|
+
}
|
|
778
|
+
function defaultReadJsonReport(reportJsonPath) {
|
|
779
|
+
if (!existsSync2(reportJsonPath)) return [];
|
|
780
|
+
const raw = JSON.parse(readFileSync2(reportJsonPath, "utf8"));
|
|
781
|
+
return Array.isArray(raw.results) ? raw.results : [];
|
|
782
|
+
}
|
|
783
|
+
async function runMultiProcessPool(options) {
|
|
784
|
+
const plan = planProcessPool(options.totalWorkers, options.maxWorkersPerProcess);
|
|
785
|
+
const spawnFn = options.spawnFn ?? spawn;
|
|
786
|
+
const readReport = options.readReportFn ?? defaultReadJsonReport;
|
|
787
|
+
const shouldCleanup = options.cleanupReportFiles !== false;
|
|
788
|
+
const startedAt = Date.now();
|
|
789
|
+
const processResults = await Promise.all(
|
|
790
|
+
plan.workersPerProcess.map(async (workerCount, shardIdx) => {
|
|
791
|
+
const shardStart = Date.now();
|
|
792
|
+
const spec = options.buildShardCommand(shardIdx + 1, plan.processCount, workerCount);
|
|
793
|
+
let exitCode = null;
|
|
794
|
+
let spawnError;
|
|
795
|
+
try {
|
|
796
|
+
exitCode = await new Promise((resolve, reject) => {
|
|
797
|
+
const child = spawnFn(spec.command, spec.args, {
|
|
798
|
+
env: { ...process.env, ...spec.env },
|
|
799
|
+
stdio: "inherit"
|
|
800
|
+
});
|
|
801
|
+
child.on("error", reject);
|
|
802
|
+
child.on("close", (code) => resolve(code));
|
|
803
|
+
});
|
|
804
|
+
} catch (err) {
|
|
805
|
+
spawnError = err instanceof Error ? err.message : String(err);
|
|
806
|
+
}
|
|
807
|
+
let shardResults = [];
|
|
808
|
+
try {
|
|
809
|
+
shardResults = readReport(spec.reportJsonPath);
|
|
810
|
+
} catch (err) {
|
|
811
|
+
if (!spawnError) {
|
|
812
|
+
spawnError = `Failed to parse shard ${shardIdx + 1} report: ${err instanceof Error ? err.message : String(err)}`;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
if (shouldCleanup) {
|
|
816
|
+
try {
|
|
817
|
+
if (existsSync2(spec.reportJsonPath)) unlinkSync(spec.reportJsonPath);
|
|
818
|
+
} catch {
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (exitCode !== 0 && shardResults.length === 0) {
|
|
822
|
+
shardResults.push({
|
|
823
|
+
name: `worker-process-${shardIdx + 1}`,
|
|
824
|
+
platform: "web",
|
|
825
|
+
status: "failed",
|
|
826
|
+
durationMs: Date.now() - shardStart,
|
|
827
|
+
error: {
|
|
828
|
+
category: "driver-error",
|
|
829
|
+
message: spawnError ?? `Worker process ${shardIdx + 1} exited with code ${exitCode ?? "unknown"}`
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
return {
|
|
834
|
+
shardIndex: shardIdx + 1,
|
|
835
|
+
workerCount,
|
|
836
|
+
exitCode,
|
|
837
|
+
durationMs: Date.now() - shardStart,
|
|
838
|
+
results: shardResults,
|
|
839
|
+
...spawnError ? { error: spawnError } : {}
|
|
840
|
+
};
|
|
841
|
+
})
|
|
842
|
+
);
|
|
843
|
+
const results = processResults.flatMap((p) => p.results);
|
|
844
|
+
const passed = results.filter((r) => r.status === "passed").length;
|
|
845
|
+
const failed = results.filter((r) => r.status === "failed").length;
|
|
846
|
+
const skipped = results.filter((r) => r.status === "skipped").length;
|
|
847
|
+
const flaky = results.filter((r) => r.flaky).length;
|
|
848
|
+
return {
|
|
849
|
+
results,
|
|
850
|
+
totalDurationMs: Date.now() - startedAt,
|
|
851
|
+
passed,
|
|
852
|
+
failed,
|
|
853
|
+
skipped,
|
|
854
|
+
flaky,
|
|
855
|
+
processCount: plan.processCount,
|
|
856
|
+
processResults
|
|
857
|
+
};
|
|
858
|
+
}
|
|
715
859
|
export {
|
|
716
860
|
AndroidWebViewCdpChannel,
|
|
717
861
|
AppleWebInspectorClient,
|
|
718
862
|
CdpDomChannel,
|
|
863
|
+
DEFAULT_MAX_WORKERS_PER_PROCESS,
|
|
719
864
|
PersonaAuthCache,
|
|
720
865
|
ReplayCacheStore,
|
|
721
866
|
ReplaySession,
|
|
@@ -732,6 +877,7 @@ export {
|
|
|
732
877
|
buildDomWaitForSelectorScript,
|
|
733
878
|
buildFilterCandidates,
|
|
734
879
|
buildFlowFileFromLines,
|
|
880
|
+
buildPlaybackTraceFromSteps,
|
|
735
881
|
buildReplayCacheKey,
|
|
736
882
|
collectGitChanges,
|
|
737
883
|
comparePngNative,
|
|
@@ -757,6 +903,7 @@ export {
|
|
|
757
903
|
domRectToScreenBounds,
|
|
758
904
|
encodeWebInspectorPacket,
|
|
759
905
|
ensureWarmBrowserDaemon,
|
|
906
|
+
exportFramesToMp4,
|
|
760
907
|
extractDestructuredParamNames,
|
|
761
908
|
findSimulatorWebInspectorSocket,
|
|
762
909
|
findWebViewFrame,
|
|
@@ -781,14 +928,21 @@ export {
|
|
|
781
928
|
orderFlowsLongestFirst,
|
|
782
929
|
parseAndroidWebViewSockets,
|
|
783
930
|
parseWebInspectorXmlFrame,
|
|
931
|
+
partitionFlowsAcrossProcesses,
|
|
784
932
|
pathRuleFilter,
|
|
933
|
+
planProcessPool,
|
|
785
934
|
probabilityFromTopLogprobs,
|
|
786
935
|
replayRecordedAction,
|
|
787
936
|
resolveElectrobunEngine,
|
|
788
937
|
resolveElectrobunLaunchPlan,
|
|
789
938
|
resolveElementAcrossChannels,
|
|
790
939
|
resolveTargetDescriptor,
|
|
940
|
+
resolveWebEngine,
|
|
941
|
+
runMultiProcessPool,
|
|
791
942
|
speculativelyPrelaunchWebBrowser,
|
|
943
|
+
startAndroidVideoRecorder,
|
|
944
|
+
startCdpScreencastRecorder,
|
|
945
|
+
startIosSimulatorVideoRecorder,
|
|
792
946
|
stopAllWarmDaemons,
|
|
793
947
|
stopWarmDaemon,
|
|
794
948
|
systemUI,
|