spana-test 0.8.0 → 0.10.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/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +7 -7
- package/dist/{allure-RAEK4SIH.js → allure-FGVR5LND.js} +5 -1
- package/dist/allure-FGVR5LND.js.map +1 -0
- package/dist/app-xIYd2jde.d.ts +1309 -0
- package/dist/{chunk-3FXDOTFI.js → chunk-66D3C7NB.js} +326 -61
- package/dist/chunk-66D3C7NB.js.map +1 -0
- package/dist/{chunk-WKVU24B6.js → chunk-6GBAPW6K.js} +12 -8
- package/dist/chunk-6GBAPW6K.js.map +1 -0
- package/dist/{chunk-2T4K7BJ3.js → chunk-7QFJ7MDH.js} +4 -2
- package/dist/chunk-7QFJ7MDH.js.map +1 -0
- package/dist/{chunk-AJCSETN6.js → chunk-B35G77DN.js} +1122 -387
- package/dist/chunk-B35G77DN.js.map +1 -0
- package/dist/{chunk-SNL4X67N.js → chunk-B473XZOM.js} +441 -123
- package/dist/chunk-B473XZOM.js.map +1 -0
- package/dist/{chunk-Y2RZNOKU.js → chunk-C2HBFEMQ.js} +2 -2
- package/dist/{chunk-PLE7RFQE.js → chunk-DP7MGXHN.js} +26 -1
- package/dist/chunk-DP7MGXHN.js.map +1 -0
- package/dist/{chunk-PMXSU5MS.js → chunk-IXON7DMB.js} +2 -2
- package/dist/{chunk-QP4MDUBY.js → chunk-VP6V4XEJ.js} +2 -2
- package/dist/{chunk-NS2HLJO4.js → chunk-Y6KMJJ2T.js} +3 -3
- package/dist/{chunk-RKYKRGHB.js → chunk-Z6K4QQAR.js} +128 -6
- package/dist/chunk-Z6K4QQAR.js.map +1 -0
- package/dist/cli.js +17 -12
- package/dist/cli.js.map +1 -1
- package/dist/config-loader-WLPQ5WVH.js +9 -0
- package/dist/{console-BGAK7Z2L.js → console-DIYEJSSP.js} +9 -2
- package/dist/console-DIYEJSSP.js.map +1 -0
- package/dist/{daemon-manager-DDYQITPD.js → daemon-manager-2EQDVUVM.js} +8 -2
- package/dist/{doctor-command-HEQQOYUR.js → doctor-command-QIYBI7ZF.js} +4 -4
- package/dist/{flow-Md5xLwbX.d.ts → flow-CI5parw2.d.ts} +24 -3
- package/dist/gherkin/steps.d.ts +2 -2
- package/dist/{html-JO2YNRWX.js → html-FLMWPFQD.js} +2 -1
- package/dist/html-FLMWPFQD.js.map +1 -0
- package/dist/index.d.ts +50 -8
- package/dist/index.js +43 -13
- package/dist/index.js.map +1 -1
- package/dist/{installer-IYGMG7LS.js → installer-5UHTYQTB.js} +3 -3
- package/dist/{junit-HLC62MK6.js → junit-CGB3LKHD.js} +3 -2
- package/dist/junit-CGB3LKHD.js.map +1 -0
- package/dist/{runner-TF4OKPYP.js → runner-JID2YWRE.js} +6 -2
- package/dist/{server-JPNH33MX.js → server-6KQSTQIG.js} +13 -13
- package/dist/{server-4PEREPHY.js → server-UIRGHUYM.js} +2 -2
- package/dist/{session-V4PYJXNB.js → session-BE6U34DA.js} +6 -6
- package/dist/{session-D9e30RVS.d.ts → session-Bt_mbUWg.d.ts} +3 -1
- package/dist/{studio-command-JOIFCOHC.js → studio-command-TXQTIWRS.js} +2 -2
- package/dist/{test-command-JCO2HPYI.js → test-command-CCSQPKWU.js} +110 -29
- package/dist/test-command-CCSQPKWU.js.map +1 -0
- package/dist/{validator-BLOLIHUY.js → validator-YWNHCU2S.js} +3 -3
- package/native/win32-x64/spana_native.dll +0 -0
- package/package.json +1 -1
- package/dist/allure-RAEK4SIH.js.map +0 -1
- package/dist/app-CgbLADmF.d.ts +0 -1191
- package/dist/chunk-2T4K7BJ3.js.map +0 -1
- package/dist/chunk-3FXDOTFI.js.map +0 -1
- package/dist/chunk-AJCSETN6.js.map +0 -1
- package/dist/chunk-PLE7RFQE.js.map +0 -1
- package/dist/chunk-RKYKRGHB.js.map +0 -1
- package/dist/chunk-SNL4X67N.js.map +0 -1
- package/dist/chunk-WKVU24B6.js.map +0 -1
- package/dist/config-loader-5FU45FXK.js +0 -9
- package/dist/console-BGAK7Z2L.js.map +0 -1
- package/dist/html-JO2YNRWX.js.map +0 -1
- package/dist/junit-HLC62MK6.js.map +0 -1
- package/dist/test-command-JCO2HPYI.js.map +0 -1
- /package/dist/{chunk-Y2RZNOKU.js.map → chunk-C2HBFEMQ.js.map} +0 -0
- /package/dist/{chunk-PMXSU5MS.js.map → chunk-IXON7DMB.js.map} +0 -0
- /package/dist/{chunk-QP4MDUBY.js.map → chunk-VP6V4XEJ.js.map} +0 -0
- /package/dist/{chunk-NS2HLJO4.js.map → chunk-Y6KMJJ2T.js.map} +0 -0
- /package/dist/{config-loader-5FU45FXK.js.map → config-loader-WLPQ5WVH.js.map} +0 -0
- /package/dist/{daemon-manager-DDYQITPD.js.map → daemon-manager-2EQDVUVM.js.map} +0 -0
- /package/dist/{doctor-command-HEQQOYUR.js.map → doctor-command-QIYBI7ZF.js.map} +0 -0
- /package/dist/{installer-IYGMG7LS.js.map → installer-5UHTYQTB.js.map} +0 -0
- /package/dist/{runner-TF4OKPYP.js.map → runner-JID2YWRE.js.map} +0 -0
- /package/dist/{server-JPNH33MX.js.map → server-6KQSTQIG.js.map} +0 -0
- /package/dist/{server-4PEREPHY.js.map → server-UIRGHUYM.js.map} +0 -0
- /package/dist/{session-V4PYJXNB.js.map → session-BE6U34DA.js.map} +0 -0
- /package/dist/{studio-command-JOIFCOHC.js.map → studio-command-TXQTIWRS.js.map} +0 -0
- /package/dist/{validator-BLOLIHUY.js.map → validator-YWNHCU2S.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as FlowDefinition, F as FlowContext, b as FlowConfig } from './flow-
|
|
2
|
-
export { c as FlowFn, S as SecondarySession,
|
|
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,
|
|
4
|
-
export { w as ArtifactConfig, x as BackUntilVisibleOptions, y as
|
|
5
|
-
import { E as Element, B as Bounds, C as ConnectOptions, S as Session } from './session-
|
|
1
|
+
import { a as FlowDefinition, F as FlowContext, b as FlowConfig } from './flow-CI5parw2.js';
|
|
2
|
+
export { c as FlowFn, d as FlowSkipCondition, S as SecondarySession, e as SecondarySessionOptions, f as Sessions, g as flow } from './flow-CI5parw2.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, B as BrowserRouteMatcher, j as BrowserMockResponse, k as DomIdleOptions, l as DomStorageEntries, m as DomClearStorageOptions, 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 VirtualCredential, u as VirtualCredentialInput, v as PromiseApp } from './app-xIYd2jde.js';
|
|
4
|
+
export { w as ArtifactConfig, x as BackUntilVisibleOptions, y as BiometricOptions, z as BridgeConfig, C as BrowserCookie, F as BrowserHAR, G as BrowserNetworkConditions, H as BrowserRequestClient, I as BrowserRequestOptions, J as BrowserRequestResponse, K as BrowserResponseInfo, L as CdpSessionHandle, M as DeviceInfo, N as DeviceStateConfig, O as DismissKeyboardOptions, Q as DomChannelKind, U as DomRect, W as ElectronAppConfig, X as FrameScope, Y as Geolocation, Z as InjectedRuntimeMethod, _ as IsolatedBrowserContext, $ as LaunchOptions, a0 as NegatedPromiseExpectation, a1 as ObjectSelector, a2 as Orientation, a3 as PermissionOptions, a4 as PollExpectation, a5 as PollMatchers, a6 as PromiseExpectFn, a7 as PromiseExpectation, a8 as PushPayload, a9 as RelativeSelector, aa as RetryAssertionOptions, ab as SPANA_INJECTED_RUNTIME_SCRIPT, ac as ScrollUntilVisibleOptions, ad as SelectorModifiers, ae as StorybookConfig, af as StorybookOpenOptions, ag as StorybookValue, ah as ToPassExpectation, ai as TouchAction, aj as TouchSequence, ak as VideoRecordingMode, al as WarmDaemonConfig, am as WebBrowserEngine, an as WebContextIsolation, ao as WebExecutionConfig, ap as WebResourceBlockType, aq as buildDomActionabilityDiagScript, ar as buildDomFillScript, as as buildDomWaitForHiddenScript, at as buildDomWaitForMatchScript, au as buildDomWaitForSelectorScript, av as buildInjectedCallScript, aw as byCss, ax as byRole, ay as defineConfig, az as filterSelector, aA as first, aB as inFrame, aC as isComposableDomSelector, aD as isSystemUISelector, aE as isTestIDSelector, aF as last, aG as nth, aH as or, aI as systemUI, aJ as within } from './app-xIYd2jde.js';
|
|
5
|
+
import { E as Element, B as Bounds, C as ConnectOptions, S as Session } from './session-Bt_mbUWg.js';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
7
|
import { Effect } from 'effect';
|
|
8
8
|
import { Browser, _electron, chromium } from 'playwright-core';
|
|
@@ -166,6 +166,9 @@ interface FlowResult {
|
|
|
166
166
|
platform: Platform;
|
|
167
167
|
/** Final status after all retry attempts. */
|
|
168
168
|
status: "passed" | "failed" | "skipped";
|
|
169
|
+
/** Declaration responsible for skipping the flow, if explicitly skipped. */
|
|
170
|
+
modifier?: "skip" | "fixme";
|
|
171
|
+
skipReason?: string;
|
|
169
172
|
/** True if the flow failed initially but passed on retry. */
|
|
170
173
|
flaky?: boolean;
|
|
171
174
|
/** Number of attempts made (present when retries > 0). */
|
|
@@ -343,7 +346,8 @@ declare class CdpDomChannel implements DomChannel {
|
|
|
343
346
|
setFrameOffsetResolver(resolver: CdpFrameOffsetResolver | undefined): void;
|
|
344
347
|
onEvent(method: string, listener: (params: any, sessionId?: string) => void): () => void;
|
|
345
348
|
waitForEvent<T = any>(method: string, timeoutMs?: number, predicate?: (params: T, sessionId?: string) => boolean): Promise<T>;
|
|
346
|
-
sendCommand<T = any>(method: string, params?: Record<string, unknown>, sessionId?: string | null): Promise<T>;
|
|
349
|
+
sendCommand<T = any>(method: string, params?: Record<string, unknown>, sessionId?: string | null, timeoutMs?: number): Promise<T>;
|
|
350
|
+
private evaluateOnSessionWithTimeout;
|
|
347
351
|
evaluateOnSession<T = unknown>(sessionId: string | null | undefined, script: string | ((...args: any[]) => T), ...args: any[]): Promise<T>;
|
|
348
352
|
evaluate<T = unknown>(script: string | ((...args: any[]) => T), ...args: any[]): Promise<T>;
|
|
349
353
|
private applyChildOffset;
|
|
@@ -397,6 +401,8 @@ declare class AndroidWebViewCdpChannel implements DomChannel {
|
|
|
397
401
|
private allocatedByUs;
|
|
398
402
|
private activeSocketName;
|
|
399
403
|
private cdp;
|
|
404
|
+
private readonly routes;
|
|
405
|
+
private enableInterception?;
|
|
400
406
|
constructor(options: AndroidWebViewCdpOptions);
|
|
401
407
|
private execAdb;
|
|
402
408
|
isConnected(): boolean;
|
|
@@ -409,6 +415,11 @@ declare class AndroidWebViewCdpChannel implements DomChannel {
|
|
|
409
415
|
scrollIntoView(selector: Selector): Promise<DomElementMatch | null>;
|
|
410
416
|
listTargets(): Promise<DomTargetInfo[]>;
|
|
411
417
|
selectTarget(targetId: string): Promise<void>;
|
|
418
|
+
private ensureInterception;
|
|
419
|
+
private addRoute;
|
|
420
|
+
mockNetwork(matcher: BrowserRouteMatcher, response: BrowserMockResponse): Promise<void>;
|
|
421
|
+
blockNetwork(matcher: BrowserRouteMatcher): Promise<void>;
|
|
422
|
+
clearNetworkMocks(): Promise<void>;
|
|
412
423
|
reload(): Promise<void>;
|
|
413
424
|
disconnect(): Promise<void>;
|
|
414
425
|
}
|
|
@@ -683,6 +694,8 @@ interface TestResult {
|
|
|
683
694
|
name: string;
|
|
684
695
|
platform: Platform;
|
|
685
696
|
status: "passed" | "failed" | "skipped";
|
|
697
|
+
modifier?: "skip" | "fixme";
|
|
698
|
+
skipReason?: string;
|
|
686
699
|
flaky?: boolean;
|
|
687
700
|
attempts?: number;
|
|
688
701
|
durationMs: number;
|
|
@@ -765,6 +778,7 @@ interface LightweightCdpDriverOptions {
|
|
|
765
778
|
fetchFn?: typeof fetch;
|
|
766
779
|
createWebSocket?: WebSocketFactory;
|
|
767
780
|
}
|
|
781
|
+
declare const UPLOAD_ATTACH_TIMEOUT_MS = 30000;
|
|
768
782
|
/**
|
|
769
783
|
* Direct CDP Chromium / Lightpanda driver speaking raw WebSocket CDP directly
|
|
770
784
|
* from Bun/Node to the browser — completely eliminating Playwright's Node
|
|
@@ -874,6 +888,7 @@ interface ElectrobunDriverOptions extends ElectrobunAppConfig {
|
|
|
874
888
|
declare function makeElectrobunDriver(options: ElectrobunDriverOptions): Effect.Effect<RawDriverService, DriverError>;
|
|
875
889
|
|
|
876
890
|
type WarmDaemonKind = "wda" | "uiautomator2" | "iproxy" | "chromium";
|
|
891
|
+
declare const DEFAULT_WARM_DAEMON_IDLE_TTL_MS: number;
|
|
877
892
|
interface WarmDaemonRecord {
|
|
878
893
|
kind: WarmDaemonKind;
|
|
879
894
|
deviceId: string;
|
|
@@ -888,6 +903,8 @@ interface WarmDaemonRecord {
|
|
|
888
903
|
sessionId?: string;
|
|
889
904
|
bundleId?: string;
|
|
890
905
|
startedAt: string;
|
|
906
|
+
/** Last timestamp this daemon was verified healthy / reused (used for idle TTL reaping). */
|
|
907
|
+
lastUsedAt?: string;
|
|
891
908
|
}
|
|
892
909
|
/** Per-scope atomic state directory so concurrent OS processes never overwrite each other's daemon records. */
|
|
893
910
|
declare function defaultDaemonStateDir(): string;
|
|
@@ -896,7 +913,7 @@ declare function updateWarmDaemonSession(kind: WarmDaemonKind, deviceId: string,
|
|
|
896
913
|
declare function listWarmDaemons(stateFile?: string): WarmDaemonRecord[];
|
|
897
914
|
/**
|
|
898
915
|
* Probe whether a recorded warm WDA / UiAutomator2 / Chromium daemon is still healthy.
|
|
899
|
-
* Removes stale records automatically.
|
|
916
|
+
* Removes stale or idle-expired records automatically.
|
|
900
917
|
*/
|
|
901
918
|
declare function getHealthyWarmDaemon(kind: WarmDaemonKind, deviceId: string, options?: {
|
|
902
919
|
stateFile?: string;
|
|
@@ -904,7 +921,27 @@ declare function getHealthyWarmDaemon(kind: WarmDaemonKind, deviceId: string, op
|
|
|
904
921
|
timeoutMs?: number;
|
|
905
922
|
/** HTTP health endpoint path (default: "/status", use "/json/version" for chromium). */
|
|
906
923
|
statusPath?: string;
|
|
924
|
+
/** Idle TTL in ms (default: 30 minutes or `SPANA_DAEMON_IDLE_TTL_MS`). Pass 0 to disable. */
|
|
925
|
+
idleTtlMs?: number;
|
|
926
|
+
/** Current wall-clock time in ms (for deterministic testing). */
|
|
927
|
+
nowMs?: number;
|
|
907
928
|
}): Promise<WarmDaemonRecord | null>;
|
|
929
|
+
/**
|
|
930
|
+
* Stop any warm daemons whose `lastUsedAt` (or `startedAt`) exceeds `idleTtlMs`.
|
|
931
|
+
*/
|
|
932
|
+
declare function reapIdleWarmDaemons(options?: {
|
|
933
|
+
stateFile?: string;
|
|
934
|
+
idleTtlMs?: number;
|
|
935
|
+
nowMs?: number;
|
|
936
|
+
}): number;
|
|
937
|
+
/**
|
|
938
|
+
* Sweep orphaned Chromium processes launched by Spana (identified by Spana's unique
|
|
939
|
+
* temporary `--user-data-dir=.../spana-*-profile-*` argument) whose PIDs are no longer
|
|
940
|
+
* tracked in the daemon registry, and remove their temporary profile directories.
|
|
941
|
+
*/
|
|
942
|
+
declare function sweepOrphanedSpanaBrowsers(options?: {
|
|
943
|
+
excludePids?: Set<number>;
|
|
944
|
+
}): number;
|
|
908
945
|
/**
|
|
909
946
|
* Stop the specific process PIDs (and process groups) started by Spana for this daemon record.
|
|
910
947
|
*/
|
|
@@ -1715,6 +1752,11 @@ interface MultiProcessPoolResult {
|
|
|
1715
1752
|
processCount: number;
|
|
1716
1753
|
processResults: ProcessShardOutcome[];
|
|
1717
1754
|
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Persist a worker child's `TestResult[]` to `SPANA_WORKER_REPORT_PATH` so the
|
|
1757
|
+
* parent multi-process pool can aggregate results across `--processes M` children.
|
|
1758
|
+
*/
|
|
1759
|
+
declare function writeWorkerProcessReport(results: TestResult[], env?: NodeJS.ProcessEnv): Promise<string | null>;
|
|
1718
1760
|
/**
|
|
1719
1761
|
* Execute a high-concurrency suite (16–32+ workers) across multiple OS worker processes,
|
|
1720
1762
|
* each running up to `maxWorkersPerProcess` in-process workers with its own JS heap & event loop.
|
|
@@ -1867,4 +1909,4 @@ declare class SpanaMcpServer {
|
|
|
1867
1909
|
runStdio(): Promise<void>;
|
|
1868
1910
|
}
|
|
1869
1911
|
|
|
1870
|
-
export { type AgentActExecutor, AndroidWebViewCdpChannel, type AndroidWebViewCdpOptions, type ApiClient, type ApiClientOptions, type ApiRequestOptions, type ApiResponse, AppConfig, AppleWebInspectorClient, type AppliedFilterReport, type ApplyFiltersResult, type AttachNetworkCacheOptions, type AttachNetworkCacheResult, type Attachment, BrowserConsoleLog, BrowserJSError, BrowserMockResponse, BrowserName, BrowserRouteMatcher, type CacheWriteStatus, type CachedNetworkEntry, type CachedPersonaState, type CdpChildSessionInfo, CdpDomChannel, type CdpDomChannelOptions, type CdpFrameOffsetResolver, type CdpScreencastLike, type CdpScreencastRecorderOptions, type ChangedFile, type CloudProvider, type CloudProviderHelper, type CodeLocation, 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 ExtractedCodeFrame, 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 NetworkCacheMode, NetworkReplayCache, type NetworkReplayCacheOptions, 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, type SharedFlowQueueServer, 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, VirtualCredential, VirtualCredentialInput, VirtualCredentialStore, type WarmDaemonRecord, type WebInspectorListingPage, WebKitInspectorChannel, type WebKitInspectorOptions, allocateFreePort, applyNamedSetup, applyTestFilters, assertPortAvailable, attachNetworkReplayCache, buildFilterCandidates, buildFlowFileFromLines, buildNetworkCacheKey, buildPlaybackTraceFromSteps, buildReplayCacheKey, cloneIOSSimulator, collectGitChanges, comparePngNative, connectPlaywrightOverCDP, connectPlaywrightOverWS, createAndroidWebViewCdpChannel, createApiClient, createApiFixture, createCdpDomChannel, createCompositeDomChannel, createFlowWithFixtures, createGitHubPrReporter, createLogprobDecisionJudge, createOllamaDecisionJudge, createRemoteFlowClaimer, createSpanaBridgeChannel, createWebKitInspectorChannel, decisionFilter, decodeWebInspectorFrames, defaultDaemonStateDir, definePersona, defineSetup, deleteIOSSimulator, deterministicImpactFilter, domRectToScreenBounds, encodeWebInspectorPacket, ensureWarmBrowserDaemon, exportFramesToMp4, extractCodeFrame, extractDestructuredParamNames, findSimulatorWebInspectorSocket, findWebViewFrame, formatCodeFrame, formatFilterSummary, formatGitHubPrMarkdown, formatSelectorCode, formatTargetMatrixTable, getHealthyWarmDaemon, getNativeAcceleratorPath, invalidateWebViewFrameCache, isNativeAcceleratorActive, isOffscreenInViewport, isPortAvailable, launchDirectCdpBrowser, launchPlaywrightBrowser, listWarmDaemons, makeElectrobunDriver, makeElectronDriver, makeLightweightCdpDriver, orderFlowsLongestFirst, parseAndroidWebViewSockets, parseWebInspectorXmlFrame, partitionFlowsAcrossProcesses, pathRuleFilter, planProcessPool, probabilityFromTopLogprobs, replayRecordedAction, resolveElectrobunEngine, resolveElectrobunLaunchPlan, resolveElementAcrossChannels, resolveTargetDescriptor, resolveWebEngine, runMultiProcessPool, speculativelyPrelaunchWebBrowser, startAndroidVideoRecorder, startCdpScreencastRecorder, startIosSimulatorVideoRecorder, startSharedFlowQueueServer, stopAllWarmDaemons, stopWarmDaemon, tokenizeXmlNative, updateWarmDaemonSession };
|
|
1912
|
+
export { type AgentActExecutor, AndroidWebViewCdpChannel, type AndroidWebViewCdpOptions, type ApiClient, type ApiClientOptions, type ApiRequestOptions, type ApiResponse, AppConfig, AppleWebInspectorClient, type AppliedFilterReport, type ApplyFiltersResult, type AttachNetworkCacheOptions, type AttachNetworkCacheResult, type Attachment, BrowserConsoleLog, BrowserJSError, BrowserMockResponse, BrowserName, BrowserRouteMatcher, type CacheWriteStatus, type CachedNetworkEntry, type CachedPersonaState, type CdpChildSessionInfo, CdpDomChannel, type CdpDomChannelOptions, type CdpFrameOffsetResolver, type CdpScreencastLike, type CdpScreencastRecorderOptions, type ChangedFile, type CloudProvider, type CloudProviderHelper, type CodeLocation, type CreateFixturesOptions, DEFAULT_MAX_WORKERS_PER_PROCESS, DEFAULT_WARM_DAEMON_IDLE_TTL_MS, 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 ExtractedCodeFrame, 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 NetworkCacheMode, NetworkReplayCache, type NetworkReplayCacheOptions, 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, type SharedFlowQueueServer, 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, UPLOAD_ATTACH_TIMEOUT_MS, type VideoRecorderHandle, VirtualAuthenticatorOptions, VirtualCredential, VirtualCredentialInput, VirtualCredentialStore, type WarmDaemonRecord, type WebInspectorListingPage, WebKitInspectorChannel, type WebKitInspectorOptions, allocateFreePort, applyNamedSetup, applyTestFilters, assertPortAvailable, attachNetworkReplayCache, buildFilterCandidates, buildFlowFileFromLines, buildNetworkCacheKey, buildPlaybackTraceFromSteps, buildReplayCacheKey, cloneIOSSimulator, collectGitChanges, comparePngNative, connectPlaywrightOverCDP, connectPlaywrightOverWS, createAndroidWebViewCdpChannel, createApiClient, createApiFixture, createCdpDomChannel, createCompositeDomChannel, createFlowWithFixtures, createGitHubPrReporter, createLogprobDecisionJudge, createOllamaDecisionJudge, createRemoteFlowClaimer, createSpanaBridgeChannel, createWebKitInspectorChannel, decisionFilter, decodeWebInspectorFrames, defaultDaemonStateDir, definePersona, defineSetup, deleteIOSSimulator, deterministicImpactFilter, domRectToScreenBounds, encodeWebInspectorPacket, ensureWarmBrowserDaemon, exportFramesToMp4, extractCodeFrame, extractDestructuredParamNames, findSimulatorWebInspectorSocket, findWebViewFrame, formatCodeFrame, formatFilterSummary, formatGitHubPrMarkdown, formatSelectorCode, formatTargetMatrixTable, getHealthyWarmDaemon, getNativeAcceleratorPath, invalidateWebViewFrameCache, isNativeAcceleratorActive, isOffscreenInViewport, isPortAvailable, launchDirectCdpBrowser, launchPlaywrightBrowser, listWarmDaemons, makeElectrobunDriver, makeElectronDriver, makeLightweightCdpDriver, orderFlowsLongestFirst, parseAndroidWebViewSockets, parseWebInspectorXmlFrame, partitionFlowsAcrossProcesses, pathRuleFilter, planProcessPool, probabilityFromTopLogprobs, reapIdleWarmDaemons, replayRecordedAction, resolveElectrobunEngine, resolveElectrobunLaunchPlan, resolveElementAcrossChannels, resolveTargetDescriptor, resolveWebEngine, runMultiProcessPool, speculativelyPrelaunchWebBrowser, startAndroidVideoRecorder, startCdpScreencastRecorder, startIosSimulatorVideoRecorder, startSharedFlowQueueServer, stopAllWarmDaemons, stopWarmDaemon, sweepOrphanedSpanaBrowsers, tokenizeXmlNative, updateWarmDaemonSession, writeWorkerProcessReport };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_MAX_WORKERS_PER_PROCESS,
|
|
3
|
+
UPLOAD_ATTACH_TIMEOUT_MS,
|
|
3
4
|
buildPlaybackTraceFromSteps,
|
|
4
5
|
createRemoteFlowClaimer,
|
|
5
6
|
exportFramesToMp4,
|
|
@@ -16,17 +17,18 @@ import {
|
|
|
16
17
|
startAndroidVideoRecorder,
|
|
17
18
|
startCdpScreencastRecorder,
|
|
18
19
|
startIosSimulatorVideoRecorder,
|
|
19
|
-
startSharedFlowQueueServer
|
|
20
|
-
|
|
20
|
+
startSharedFlowQueueServer,
|
|
21
|
+
writeWorkerProcessReport
|
|
22
|
+
} from "./chunk-66D3C7NB.js";
|
|
21
23
|
import {
|
|
22
24
|
SPANA_MCP_TOOLS,
|
|
23
25
|
SpanaMcpServer,
|
|
24
26
|
buildFlowFileFromLines,
|
|
25
27
|
formatSelectorCode
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Y6KMJJ2T.js";
|
|
27
29
|
import {
|
|
28
30
|
defineConfig
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7QFJ7MDH.js";
|
|
30
32
|
import "./chunk-X2TJP7LB.js";
|
|
31
33
|
import {
|
|
32
34
|
createGitHubPrReporter,
|
|
@@ -64,10 +66,11 @@ import {
|
|
|
64
66
|
launchPlaywrightBrowser,
|
|
65
67
|
makeElectronDriver,
|
|
66
68
|
nth,
|
|
69
|
+
or,
|
|
67
70
|
resolveElementAcrossChannels,
|
|
68
71
|
systemUI,
|
|
69
72
|
within
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-B35G77DN.js";
|
|
71
74
|
import {
|
|
72
75
|
AndroidWebViewCdpChannel,
|
|
73
76
|
AppleWebInspectorClient,
|
|
@@ -76,6 +79,7 @@ import {
|
|
|
76
79
|
SpanaBridgeChannel,
|
|
77
80
|
TARGET_CHANNEL_MATRIX,
|
|
78
81
|
WebKitInspectorChannel,
|
|
82
|
+
buildDomActionabilityDiagScript,
|
|
79
83
|
buildDomFillScript,
|
|
80
84
|
buildDomWaitForHiddenScript,
|
|
81
85
|
buildDomWaitForMatchScript,
|
|
@@ -96,25 +100,29 @@ import {
|
|
|
96
100
|
resolveElectrobunEngine,
|
|
97
101
|
resolveElectrobunLaunchPlan,
|
|
98
102
|
resolveTargetDescriptor
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import
|
|
103
|
+
} from "./chunk-B473XZOM.js";
|
|
104
|
+
import {
|
|
105
|
+
cloneIOSSimulator,
|
|
106
|
+
deleteIOSSimulator
|
|
107
|
+
} from "./chunk-WV3ALL3H.js";
|
|
108
|
+
import "./chunk-VP6V4XEJ.js";
|
|
101
109
|
import {
|
|
110
|
+
DEFAULT_WARM_DAEMON_IDLE_TTL_MS,
|
|
102
111
|
defaultDaemonStateDir,
|
|
103
112
|
getHealthyWarmDaemon,
|
|
104
113
|
listWarmDaemons,
|
|
114
|
+
reapIdleWarmDaemons,
|
|
105
115
|
stopAllWarmDaemons,
|
|
106
116
|
stopWarmDaemon,
|
|
117
|
+
sweepOrphanedSpanaBrowsers,
|
|
107
118
|
updateWarmDaemonSession
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import {
|
|
110
|
-
cloneIOSSimulator,
|
|
111
|
-
deleteIOSSimulator
|
|
112
|
-
} from "./chunk-WV3ALL3H.js";
|
|
119
|
+
} from "./chunk-Z6K4QQAR.js";
|
|
113
120
|
import {
|
|
114
121
|
allocateFreePort,
|
|
115
122
|
assertPortAvailable,
|
|
116
123
|
isPortAvailable
|
|
117
124
|
} from "./chunk-JPZCZHL4.js";
|
|
125
|
+
import "./chunk-DP7MGXHN.js";
|
|
118
126
|
import {
|
|
119
127
|
comparePngNative,
|
|
120
128
|
getNativeAcceleratorPath,
|
|
@@ -131,6 +139,19 @@ function flow(name, configOrFn, maybeFn) {
|
|
|
131
139
|
}
|
|
132
140
|
return { name, fn: maybeFn, config: configOrFn };
|
|
133
141
|
}
|
|
142
|
+
function modifyFlow(modifier) {
|
|
143
|
+
function modified(name, configOrFn, maybeFn) {
|
|
144
|
+
const config = typeof configOrFn === "function" ? {} : configOrFn;
|
|
145
|
+
const fn = typeof configOrFn === "function" ? configOrFn : maybeFn;
|
|
146
|
+
return flow(name, { ...config, [modifier]: config[modifier] ?? true }, fn);
|
|
147
|
+
}
|
|
148
|
+
return modified;
|
|
149
|
+
}
|
|
150
|
+
((flow2) => {
|
|
151
|
+
flow2.skip = modifyFlow("skip");
|
|
152
|
+
flow2.fixme = modifyFlow("fixme");
|
|
153
|
+
flow2.only = modifyFlow("only");
|
|
154
|
+
})(flow || (flow = {}));
|
|
134
155
|
|
|
135
156
|
// src/schemas/element.ts
|
|
136
157
|
import { Schema } from "effect";
|
|
@@ -143,8 +164,10 @@ var Bounds = Schema.Struct({
|
|
|
143
164
|
var Element = Schema.Struct({
|
|
144
165
|
id: Schema.optional(Schema.String),
|
|
145
166
|
text: Schema.optional(Schema.String),
|
|
167
|
+
textContent: Schema.optional(Schema.String),
|
|
146
168
|
value: Schema.optional(Schema.String),
|
|
147
169
|
accessibilityLabel: Schema.optional(Schema.String),
|
|
170
|
+
accessibleDescription: Schema.optional(Schema.String),
|
|
148
171
|
resourceId: Schema.optional(Schema.String),
|
|
149
172
|
elementType: Schema.optional(Schema.String),
|
|
150
173
|
bounds: Bounds,
|
|
@@ -919,6 +942,7 @@ export {
|
|
|
919
942
|
AppleWebInspectorClient,
|
|
920
943
|
CdpDomChannel,
|
|
921
944
|
DEFAULT_MAX_WORKERS_PER_PROCESS,
|
|
945
|
+
DEFAULT_WARM_DAEMON_IDLE_TTL_MS,
|
|
922
946
|
NetworkReplayCache,
|
|
923
947
|
PersonaAuthCache,
|
|
924
948
|
ReplayCacheStore,
|
|
@@ -928,6 +952,7 @@ export {
|
|
|
928
952
|
SpanaBridgeChannel,
|
|
929
953
|
SpanaMcpServer,
|
|
930
954
|
TARGET_CHANNEL_MATRIX,
|
|
955
|
+
UPLOAD_ATTACH_TIMEOUT_MS,
|
|
931
956
|
VirtualCredentialStore,
|
|
932
957
|
WebKitInspectorChannel,
|
|
933
958
|
allocateFreePort,
|
|
@@ -935,6 +960,7 @@ export {
|
|
|
935
960
|
applyTestFilters,
|
|
936
961
|
assertPortAvailable,
|
|
937
962
|
attachNetworkReplayCache,
|
|
963
|
+
buildDomActionabilityDiagScript,
|
|
938
964
|
buildDomFillScript,
|
|
939
965
|
buildDomWaitForHiddenScript,
|
|
940
966
|
buildDomWaitForMatchScript,
|
|
@@ -1006,6 +1032,7 @@ export {
|
|
|
1006
1032
|
makeElectronDriver,
|
|
1007
1033
|
makeLightweightCdpDriver,
|
|
1008
1034
|
nth,
|
|
1035
|
+
or,
|
|
1009
1036
|
orderFlowsLongestFirst,
|
|
1010
1037
|
parseAndroidWebViewSockets,
|
|
1011
1038
|
parseWebInspectorXmlFrame,
|
|
@@ -1013,6 +1040,7 @@ export {
|
|
|
1013
1040
|
pathRuleFilter,
|
|
1014
1041
|
planProcessPool,
|
|
1015
1042
|
probabilityFromTopLogprobs,
|
|
1043
|
+
reapIdleWarmDaemons,
|
|
1016
1044
|
replayRecordedAction,
|
|
1017
1045
|
resolveElectrobunEngine,
|
|
1018
1046
|
resolveElectrobunLaunchPlan,
|
|
@@ -1027,9 +1055,11 @@ export {
|
|
|
1027
1055
|
startSharedFlowQueueServer,
|
|
1028
1056
|
stopAllWarmDaemons,
|
|
1029
1057
|
stopWarmDaemon,
|
|
1058
|
+
sweepOrphanedSpanaBrowsers,
|
|
1030
1059
|
systemUI,
|
|
1031
1060
|
tokenizeXmlNative,
|
|
1032
1061
|
updateWarmDaemonSession,
|
|
1033
|
-
within
|
|
1062
|
+
within,
|
|
1063
|
+
writeWorkerProcessReport
|
|
1034
1064
|
};
|
|
1035
1065
|
//# sourceMappingURL=index.js.map
|