@vostride/agent-qa-core 0.1.13 → 0.1.15
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/index.cjs +1217 -674
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -1
- package/dist/index.d.ts +164 -1
- package/dist/index.js +1097 -582
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -446,6 +446,14 @@ interface ActionResult {
|
|
|
446
446
|
};
|
|
447
447
|
data?: unknown;
|
|
448
448
|
}
|
|
449
|
+
interface RuntimeAuthStateConfig {
|
|
450
|
+
version: number;
|
|
451
|
+
kind: 'web';
|
|
452
|
+
targetName: string;
|
|
453
|
+
stateName: string;
|
|
454
|
+
capturedAt: string;
|
|
455
|
+
storageStatePath: string;
|
|
456
|
+
}
|
|
449
457
|
interface PlatformConfig {
|
|
450
458
|
platform: 'web' | 'android' | 'ios';
|
|
451
459
|
browser?: BrowserConfig;
|
|
@@ -478,6 +486,7 @@ interface PlatformConfig {
|
|
|
478
486
|
console?: boolean;
|
|
479
487
|
network?: boolean;
|
|
480
488
|
};
|
|
489
|
+
authState?: RuntimeAuthStateConfig;
|
|
481
490
|
}
|
|
482
491
|
interface BrowserConfig {
|
|
483
492
|
name: 'chromium' | 'firefox' | 'webkit';
|
|
@@ -568,6 +577,11 @@ declare const TestDefinitionSchema: z.ZodObject<{
|
|
|
568
577
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
569
578
|
}, z.core.$strict>>;
|
|
570
579
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
581
|
+
name: z.ZodString;
|
|
582
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
583
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
}, z.core.$strict>]>>;
|
|
571
585
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
572
586
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
573
587
|
preserve: "preserve";
|
|
@@ -621,6 +635,19 @@ declare const MobileUseOverrideSchema: z.ZodObject<{
|
|
|
621
635
|
reset: "reset";
|
|
622
636
|
}>>;
|
|
623
637
|
}, z.core.$strict>;
|
|
638
|
+
declare const AuthStateUseSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
639
|
+
name: z.ZodString;
|
|
640
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
641
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
}, z.core.$strict>]>;
|
|
643
|
+
interface NormalizedAuthStateUse {
|
|
644
|
+
name: string;
|
|
645
|
+
load: boolean;
|
|
646
|
+
capture: boolean;
|
|
647
|
+
}
|
|
648
|
+
declare function normalizeAuthStateUse(use: {
|
|
649
|
+
authState?: unknown;
|
|
650
|
+
} | undefined): NormalizedAuthStateUse | undefined;
|
|
624
651
|
declare const UseSchema: z.ZodObject<{
|
|
625
652
|
browser: z.ZodOptional<z.ZodObject<{
|
|
626
653
|
name: z.ZodEnum<{
|
|
@@ -690,6 +717,11 @@ declare const UseOverrideSchema: z.ZodObject<{
|
|
|
690
717
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
691
718
|
}, z.core.$strict>>;
|
|
692
719
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
720
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
721
|
+
name: z.ZodString;
|
|
722
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
724
|
+
}, z.core.$strict>]>>;
|
|
693
725
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
694
726
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
695
727
|
preserve: "preserve";
|
|
@@ -736,6 +768,9 @@ declare const CacheConfigSchema: z.ZodObject<{
|
|
|
736
768
|
dir: z.ZodString;
|
|
737
769
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
738
770
|
}, z.core.$strict>;
|
|
771
|
+
declare const AuthStateConfigSchema: z.ZodObject<{
|
|
772
|
+
dir: z.ZodString;
|
|
773
|
+
}, z.core.$strict>;
|
|
739
774
|
declare const LoggingConfigSchema: z.ZodObject<{
|
|
740
775
|
level: z.ZodEnum<{
|
|
741
776
|
info: "info";
|
|
@@ -784,6 +819,9 @@ declare const ServicesSchema: z.ZodObject<{
|
|
|
784
819
|
dir: z.ZodString;
|
|
785
820
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
786
821
|
}, z.core.$strict>>;
|
|
822
|
+
authState: z.ZodOptional<z.ZodObject<{
|
|
823
|
+
dir: z.ZodString;
|
|
824
|
+
}, z.core.$strict>>;
|
|
787
825
|
logging: z.ZodOptional<z.ZodObject<{
|
|
788
826
|
level: z.ZodEnum<{
|
|
789
827
|
info: "info";
|
|
@@ -1005,6 +1043,9 @@ declare const AgentQaConfigSchema: z.ZodObject<{
|
|
|
1005
1043
|
dir: z.ZodString;
|
|
1006
1044
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
1007
1045
|
}, z.core.$strict>>;
|
|
1046
|
+
authState: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
dir: z.ZodString;
|
|
1048
|
+
}, z.core.$strict>>;
|
|
1008
1049
|
logging: z.ZodOptional<z.ZodObject<{
|
|
1009
1050
|
level: z.ZodEnum<{
|
|
1010
1051
|
info: "info";
|
|
@@ -1210,6 +1251,11 @@ declare const SuiteDefinitionSchema: z.ZodObject<{
|
|
|
1210
1251
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
1211
1252
|
}, z.core.$strict>>;
|
|
1212
1253
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
1254
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1255
|
+
name: z.ZodString;
|
|
1256
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
1257
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
}, z.core.$strict>]>>;
|
|
1213
1259
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
1214
1260
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
1215
1261
|
preserve: "preserve";
|
|
@@ -2188,6 +2234,7 @@ interface SandboxRunnerOptions {
|
|
|
2188
2234
|
envVars?: Record<string, string>;
|
|
2189
2235
|
secretStore?: SecretStore;
|
|
2190
2236
|
secretRedactor?: SecretRedactor;
|
|
2237
|
+
authState?: RuntimeAuthStateConfig;
|
|
2191
2238
|
}
|
|
2192
2239
|
declare function checkDockerAvailable(dockerBin?: string): Promise<boolean>;
|
|
2193
2240
|
declare function runHookInSandbox(hook: HookDefinition, options?: SandboxRunnerOptions): Promise<HookResult>;
|
|
@@ -2258,6 +2305,7 @@ interface RunTestConfig {
|
|
|
2258
2305
|
memoryInitParams?: MemoryIndexParams;
|
|
2259
2306
|
circuitBreaker?: CircuitBreaker;
|
|
2260
2307
|
skipReporterOnTestStart?: boolean;
|
|
2308
|
+
skipReporterOnTestEnd?: boolean;
|
|
2261
2309
|
secretStore?: SecretStore;
|
|
2262
2310
|
secretRedactor?: SecretRedactor;
|
|
2263
2311
|
secretsFileMetadata?: {
|
|
@@ -2649,6 +2697,116 @@ declare function localAppiumBinaryNames(platform?: NodeJS.Platform): string[];
|
|
|
2649
2697
|
declare function resolveAppiumExecutable(opts?: ResolveAppiumExecutableOptions): ResolvedAppiumExecutable;
|
|
2650
2698
|
declare function formatAppiumInstallGuidance(): string;
|
|
2651
2699
|
|
|
2700
|
+
declare const AUTH_STATE_SCHEMA_VERSION = 1;
|
|
2701
|
+
declare const AUTH_STATE_SLUG_PATTERN: RegExp;
|
|
2702
|
+
declare const AuthStateNameSchema: z.ZodString;
|
|
2703
|
+
declare const TargetNameSchema: z.ZodString;
|
|
2704
|
+
declare const AuthStateMetadataSchema: z.ZodObject<{
|
|
2705
|
+
version: z.ZodLiteral<1>;
|
|
2706
|
+
kind: z.ZodLiteral<"web">;
|
|
2707
|
+
target: z.ZodString;
|
|
2708
|
+
name: z.ZodString;
|
|
2709
|
+
capturedAt: z.ZodString;
|
|
2710
|
+
}, z.core.$strict>;
|
|
2711
|
+
type AuthStateMetadata = z.infer<typeof AuthStateMetadataSchema>;
|
|
2712
|
+
|
|
2713
|
+
type AuthStateTargetPlatform = 'web' | 'android' | 'ios';
|
|
2714
|
+
interface ResolveAuthStatePathsInput {
|
|
2715
|
+
configDir: string;
|
|
2716
|
+
authStateDir?: string;
|
|
2717
|
+
targetName: string;
|
|
2718
|
+
stateName: string;
|
|
2719
|
+
target?: {
|
|
2720
|
+
platform: AuthStateTargetPlatform;
|
|
2721
|
+
};
|
|
2722
|
+
platform?: AuthStateTargetPlatform;
|
|
2723
|
+
}
|
|
2724
|
+
interface ResolvedAuthStatePaths {
|
|
2725
|
+
targetName: string;
|
|
2726
|
+
stateName: string;
|
|
2727
|
+
rootDir: string;
|
|
2728
|
+
targetDir: string;
|
|
2729
|
+
payloadPath: string;
|
|
2730
|
+
metadataPath: string;
|
|
2731
|
+
}
|
|
2732
|
+
interface ResolveAuthStateRootInput {
|
|
2733
|
+
configDir: string;
|
|
2734
|
+
authStateDir?: string;
|
|
2735
|
+
}
|
|
2736
|
+
declare function resolveAuthStateRoot(input: ResolveAuthStateRootInput): string;
|
|
2737
|
+
declare function resolveAuthStatePaths(input: ResolveAuthStatePathsInput): ResolvedAuthStatePaths;
|
|
2738
|
+
|
|
2739
|
+
interface WriteAuthStateFilesInput {
|
|
2740
|
+
payload: unknown;
|
|
2741
|
+
metadata: AuthStateMetadata;
|
|
2742
|
+
}
|
|
2743
|
+
interface ListAuthStateMetadataInput {
|
|
2744
|
+
configDir: string;
|
|
2745
|
+
authStateDir?: string;
|
|
2746
|
+
targetName?: string;
|
|
2747
|
+
}
|
|
2748
|
+
interface RemoveAuthStateFilesInput {
|
|
2749
|
+
configDir: string;
|
|
2750
|
+
authStateDir?: string;
|
|
2751
|
+
targetName: string;
|
|
2752
|
+
stateName: string;
|
|
2753
|
+
target?: Parameters<typeof resolveAuthStatePaths>[0]['target'];
|
|
2754
|
+
platform?: Parameters<typeof resolveAuthStatePaths>[0]['platform'];
|
|
2755
|
+
}
|
|
2756
|
+
interface RemoveAuthStateTargetInput {
|
|
2757
|
+
configDir: string;
|
|
2758
|
+
authStateDir?: string;
|
|
2759
|
+
targetName: string;
|
|
2760
|
+
target?: Parameters<typeof resolveAuthStatePaths>[0]['target'];
|
|
2761
|
+
platform?: Parameters<typeof resolveAuthStatePaths>[0]['platform'];
|
|
2762
|
+
}
|
|
2763
|
+
declare function readAuthStateMetadata(paths: ResolvedAuthStatePaths): Promise<AuthStateMetadata>;
|
|
2764
|
+
declare function writeAuthStateFiles(paths: ResolvedAuthStatePaths, input: WriteAuthStateFilesInput): Promise<void>;
|
|
2765
|
+
declare function listAuthStateMetadata(input: ListAuthStateMetadataInput): Promise<AuthStateMetadata[]>;
|
|
2766
|
+
declare function removeAuthStateFiles(input: RemoveAuthStateFilesInput): Promise<void>;
|
|
2767
|
+
declare function removeAuthStateTarget(input: RemoveAuthStateTargetInput): Promise<void>;
|
|
2768
|
+
|
|
2769
|
+
interface ResolveAuthStateForRunInput {
|
|
2770
|
+
configDir: string;
|
|
2771
|
+
authStateDir?: string;
|
|
2772
|
+
targetName: string;
|
|
2773
|
+
stateName: string;
|
|
2774
|
+
target?: {
|
|
2775
|
+
platform: AuthStateTargetPlatform;
|
|
2776
|
+
};
|
|
2777
|
+
platform?: AuthStateTargetPlatform;
|
|
2778
|
+
}
|
|
2779
|
+
interface ResolvedAuthStateForRun {
|
|
2780
|
+
version: number;
|
|
2781
|
+
kind: 'web';
|
|
2782
|
+
targetName: string;
|
|
2783
|
+
stateName: string;
|
|
2784
|
+
capturedAt: string;
|
|
2785
|
+
storageStatePath: string;
|
|
2786
|
+
}
|
|
2787
|
+
declare function resolveAuthStateForRun(input: ResolveAuthStateForRunInput): Promise<ResolvedAuthStateForRun>;
|
|
2788
|
+
|
|
2789
|
+
declare const AUTH_STATE_HOOK_JSON_ENV = "AGENT_QA_AUTH_STATE_JSON";
|
|
2790
|
+
declare const AUTH_STATE_HOOK_STORAGE_STATE_PATH_ENV = "AGENT_QA_AUTH_STATE_STORAGE_STATE_PATH";
|
|
2791
|
+
declare const AUTH_STATE_HOOK_WORKSPACE_DIR = ".agent-qa-auth-state";
|
|
2792
|
+
declare const AUTH_STATE_HOOK_STORAGE_STATE_FILENAME = "storage-state.json";
|
|
2793
|
+
declare const AUTH_STATE_HOOK_CONTAINER_STORAGE_STATE_PATH = "/workspace/.agent-qa-auth-state/storage-state.json";
|
|
2794
|
+
declare function isReservedAuthStateHookEnvKey(key: string): boolean;
|
|
2795
|
+
declare function stripReservedAuthStateHookEnv(variables: Record<string, string>): Record<string, string>;
|
|
2796
|
+
declare function buildAuthStateHookEnv(authState: RuntimeAuthStateConfig | undefined, storageStatePath?: string): Record<string, string>;
|
|
2797
|
+
|
|
2798
|
+
declare const AUTH_STATE_REDACTION_MARKER = "[auth state redacted]";
|
|
2799
|
+
interface AuthStateRedactionContext {
|
|
2800
|
+
secretRedactor?: SecretRedactor;
|
|
2801
|
+
authState?: RuntimeAuthStateConfig;
|
|
2802
|
+
storageStatePath?: string;
|
|
2803
|
+
hookStorageStatePath?: string;
|
|
2804
|
+
hookJsonEnv?: string;
|
|
2805
|
+
redactAuthLikeKeys?: boolean;
|
|
2806
|
+
}
|
|
2807
|
+
declare function redactAuthStateString(value: string, context?: AuthStateRedactionContext): string;
|
|
2808
|
+
declare function redactAuthStateValue<T>(value: T, context?: AuthStateRedactionContext): T;
|
|
2809
|
+
|
|
2652
2810
|
type AuthProvider = string;
|
|
2653
2811
|
type LLMModelAdapter = 'openai-responses' | 'anthropic-messages';
|
|
2654
2812
|
type BuiltInLLMProviderMode = 'openai-compatible' | 'anthropic-compatible' | 'openai-subscription' | 'anthropic-subscription' | 'gemini';
|
|
@@ -3009,6 +3167,10 @@ interface RunSuiteConfig {
|
|
|
3009
3167
|
resolveUrl?: (targetName: string) => string | undefined;
|
|
3010
3168
|
onCuratorComplete?: (testName: string, memoryLog: MemoryLog) => void;
|
|
3011
3169
|
artifactContext?: Record<string, unknown>;
|
|
3170
|
+
authStateCapture?: {
|
|
3171
|
+
capture: () => Promise<RuntimeAuthStateConfig>;
|
|
3172
|
+
failureSummary: string;
|
|
3173
|
+
};
|
|
3012
3174
|
secretStore?: SecretStore;
|
|
3013
3175
|
secretRedactor?: SecretRedactor;
|
|
3014
3176
|
}
|
|
@@ -3471,6 +3633,7 @@ declare function getAgentQaVersion(): string;
|
|
|
3471
3633
|
declare const DEFAULT_AGENT_QA_RUNTIME_DIR = ".agent-qa";
|
|
3472
3634
|
declare const DEFAULT_AGENT_QA_ARTIFACTS_DIR = ".agent-qa/artifacts";
|
|
3473
3635
|
declare const DEFAULT_AGENT_QA_CACHE_DIR = ".agent-qa/cache";
|
|
3636
|
+
declare const DEFAULT_AGENT_QA_AUTH_STATES_DIR = ".agent-qa/auth-states";
|
|
3474
3637
|
declare const DEFAULT_AGENT_QA_SCREENSHOTS_DIR = ".agent-qa/artifacts/screenshots";
|
|
3475
3638
|
declare const DEFAULT_AGENT_QA_VIDEOS_DIR = ".agent-qa/artifacts/videos";
|
|
3476
3639
|
declare const DEFAULT_AGENT_QA_RUNS_DB_PATH = ".agent-qa/runs.db";
|
|
@@ -3528,4 +3691,4 @@ declare function isMacPlatform(): boolean;
|
|
|
3528
3691
|
|
|
3529
3692
|
declare function isPathInsideDir(childPath: string, parentDir: string): boolean;
|
|
3530
3693
|
|
|
3531
|
-
export { AGENT_QA_POSTHOG_HOST, AGENT_QA_POSTHOG_KEY, AGENT_QA_VERSION, ANALYTICS_AGENT_PRODUCTS, ANALYTICS_DASHBOARD_ENTITY_TYPES, ANALYTICS_DASHBOARD_OUTCOMES, ANALYTICS_EVENT_NAMES, ANALYTICS_FAILURE_CATEGORIES, ANALYTICS_MCP_ERROR_CATEGORIES, ANALYTICS_MCP_HOST_KINDS, ANALYTICS_MCP_PATH_KINDS, ANALYTICS_MCP_PORT_KINDS, ANALYTICS_MCP_SERVER_STATES, ANALYTICS_MCP_TOOL_CATEGORIES, ANALYTICS_MCP_TOOL_STATUSES, ANALYTICS_MCP_TRANSPORTS, ANALYTICS_PLATFORMS, ANALYTICS_RUNNERS, ANALYTICS_RUNTIME_CONTEXTS, ANALYTICS_RUN_STATUSES, ANALYTICS_SUITE_EXECUTION_MODES, ANALYTICS_SURFACES, ANALYTICS_TRANSPORT_KINDS, ANALYTICS_TRIGGER_SOURCES, ANDROID_ROLE_MAP, ATTR_RUNNER, ATTR_TRIGGER, type AccessibilityCheck, type AccessibilityCheckOptions, AccessibilityConfigSchema, type AccessibilityViolation, type Action, type ActionCache, type ActionPlan, ActionPlanSchema, type ActionResult, AdapterLogDataSchema, AgentLogDataSchema, type AgentLoopConfig, type AgentPhase, type AgentQaConfig, AgentQaConfigSchema, type AlignOptions, type AnalyticsAgentProduct, type AnalyticsCapturePayload, type AnalyticsEventInput, type AnalyticsEventName, type AnalyticsEventProperties, type AnalyticsIdentity, type AnalyticsIdentityStore, type AnalyticsPostHogTransportFactoryOptions, AnalyticsRunReporter, type AnalyticsRunReporterOptions, type AnalyticsRuntimeContext, AnalyticsSchema, type AnalyticsService, type AnalyticsServiceConfig, type AnalyticsServiceOptions, type AnalyticsStandardPropertiesOptions, type AnalyticsSurface, type AnalyticsTransport, type AnalyticsTransportKind, type AppiumExecutableSource, type ArtifactRecord, type Asserter, AssertionEvaluator, type AssertionInput, type AssertionResult, AssertionResultSchema, type AssertionType, type AuthCredential, type AuthPluginBundle, type AuthPluginDeclaration, AuthPluginDeclarationSchema, type AuthProvider, type AuthStore, type BaseObservation, BaseObservationSchema, type BetterSqlite3Database, type BrowserConfig, BrowserConfigSchema, type BuiltAnalyticsEvent, type BuiltAnalyticsEventProperties, CACHE_SCHEMA_VERSION, CacheConfigSchema, type CacheEntry, CacheLogDataSchema, type CaptureConfig, CaptureConfigSchema, type CaptureResult, CircuitBreaker, type CircuitBreakerConfig, type CompressOptions, type CompressResult, type ConsoleLogEntry, ConsoleReporter, type ConsoleReporterOptions, type CreateAuthFetchContext, type CreateAuthFetchOptions, type CuratorContext, CuratorResponseSchema, DEFAULT_AGENT_QA_ARTIFACTS_DIR, DEFAULT_AGENT_QA_CACHE_DIR, DEFAULT_AGENT_QA_RUNS_DB_PATH, DEFAULT_AGENT_QA_RUNTIME_DIR, DEFAULT_AGENT_QA_SCREENSHOTS_DIR, DEFAULT_AGENT_QA_VIDEOS_DIR, DEFAULT_MEMORY_DIR, type DashboardAuthMetadata, type DashboardAuthMode, DashboardConfigSchema, type DeviceConfig, DeviceProfileSchema, DurationString, EMPTY_POSTHOG_KEY_WARNING, type ElementInfo, type ExchangeCodeContext, ExplicitExtractor, type ExtractionMethod, ExtractionResultSchema, type ExtractorInput, type FarmMobileConfig, type FarmProvider, type FarmProviderConfig, type FarmWebConfig, FatalReporterError, FileActionCache, type FileAttachment, HealerLogDataSchema, type HealingAttempt, type HealingConfig, HealingConfigSchema, type HookDefinition, HookDefinitionSchema, type HookEvent, HookLogDataSchema, type HookOrchestrationResult, HookReferenceMigrationError, type HookResult, type HookResultEvent, type HookRuntime, type HooksFileConfig, HooksFileSchema, INTERNAL_ATTRIBUTE_PREFIX, IOS_ROLE_MAP, type ImageDimensions, JUnitReporter, type JUnitReporterOptions, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, KEY_MAP, LEGACY_AGENT_QA_DASHBOARD_DB_PATH, LLMAssertionEvaluator, type LLMAuthProviderPlugin, type LLMModelAdapter, LLMPlanner, type LLMProviderMode, LLMVariableExtractor, LLMVerifier, LOG_LEVEL_PRIORITY, type LoadLLMAuthPluginsOptions, LocalMemoryProvider, LockManager, LogCaptureConfigSchema, type LogEntry, type LogLevel, LogManager, type LogSource, LogSourceDataSchemas, type LogStorage, LoggingConfigSchema, MOBILE_ONLY_ACTIONS, McpConfigSchema, type MemoryDelta, type MemoryDeltaAction, type MemoryIndexParams, type MemoryLog, type MemoryObservationSnapshot, type MemoryProvider, type MemoryQueryResult, MissingSecretError, type MobileAppState, MobileAppStateSchema, MobileElementResolver, type MobileNode, type MobilePlatform, type MobileRefMap, MobileSetupError, type MobileSetupErrorCategory, type MobileSetupErrorOptions, type MobileTransport, MobileUseOverrideSchema, MobileUseSchema, MockAnalyticsTransport, type ModelConfig, ModelConfigSchema, MultiReporter, NamedLLMConfigSchema, type NetworkLogEntry, NoopAnalyticsTransport, NullActionCache, type OAuthTokens, type ObservationFrontmatter, type ObserveOptions, type ParseError, type ParseResult, type ParsedMobileTree, type ParsedRunAttrFlags, type PlanResult, type Planner, type PlannerConfig, PlannerConfigSchema, PlannerLogDataSchema, type PlatformAdapter, type PlatformConfig, PluginsSchema, ProviderConfigSchema, type ProviderOptions, RUNTIME_IMAGE_MAP, RUN_ARTIFACT_SCHEMA_VERSION, RUN_ATTRIBUTE_KEY_MAX_LENGTH, RUN_ATTRIBUTE_VALUE_MAX_LENGTH, RecordingConfigSchema, type RegistryConfig, RegistrySchema, type Reporter, type ReporterEvent, type ResolveAnalyticsIdentityOptions, type ResolveAppiumExecutableOptions, type ResolveMobileRunConfigInput, type ResolvedAppiumExecutable, type ResolvedLLMAuth, type ResolvedMobileApp, type ResolvedMobileAppInstall, type ResolvedMobileDevice, type ResolvedMobileRunConfig, type ResolvedWorkspaceFile, type ResolvedWorkspacePaths, type RunArtifactConfigSnapshot, type RunArtifactFinalizeInput, type RunArtifactKind, type RunArtifactMemoryDelta, type RunArtifactMemoryDeltaAction, type RunArtifactMemoryObservationSnapshot, type RunArtifactMemorySnapshot, type RunArtifactMetadata, type RunArtifactPayload, type RunArtifactReporterContext, type RunArtifactRuntimeSnapshot, type RunArtifactStageInput, type RunArtifactSuiteMemberSnapshot, type RunArtifactSuiteSourceSnapshot, type RunArtifactTerminalError, type RunArtifactTestSourceSnapshot, type RunAttributeRunner, type RunAttributeTrigger, type RunAttributes, type RunSuiteConfig, type RunSummary, type RunTestConfig, RunnerLogDataSchema, type SandboxRunnerOptions, type ScopedLogger, type ScreenState, type ScreenStateMetadata, SecretConfigError, type SecretFileMetadata, SecretRedactor, SecretStore, type SecretTemplate, type ServicesConfig, ServicesSchema, SizeString, type StartAuthContext, type StartAuthResult, StdoutLiveReporter, type StepAnnotation, type StepContext, type StepHashInputs, type StepPhaseEvent, type StepResult, type StepStatus, type StepTrace, type SuiteDefinition, SuiteDefinitionSchema, type SuiteObservation, type SuiteObservationFrontmatter, SuiteObservationSchema, type SuiteResult, type SuiteSummary, SuiteTestEntrySchema, TargetSchema, type TestConfig, type TestDefinition, TestDefinitionSchema, type TestMeta, TestMetaSchema, type TestResult, type TestStatus, type TestStep, TestStepSchema, type TimeoutConfig, TimeoutConfigSchema, type TokenRefreshFn, type TokenUsage, type ToolCategory, type ToolDefinition, ToolRegistry, TransportSchema, type UseConfig, UseSchema, VALID_FILENAME_RE, type ValidationDiagnostic, type ValidationResult, type VariableExtractor, type VariableSource, VariableStore, type VerificationResult, VerificationResultSchema, type Verifier, type VerifyResult, WEB_ONLY_ACTIONS, type WorkspaceConfig, type WorkspaceFileKind, type WorkspaceFileRecord, WorkspaceSchema, alignToWindow, applyWorkspaceHookReferenceMigration, auditWorkspaceHookReferenceMigration, browserstackProvider, buildAnalyticsEvent, buildAssertionPrompt, buildExtractionPrompt, buildInternalRunAttributes, buildMemoryIndex, buildStepPrompt, buildSystemPrompt, buildTools, buildVerificationPrompt, captureAnalytics, captureFailureScreenshot, checkDockerAvailable, clearLLMAuthProviderPlugins, clearLoadedLLMAuthPluginModules, collectAllInjectedIds, compressScreenshot, computeFingerPositions, computePinch, computeSwipe, convertKeysForPlatform, createAnalyticsRunReporter, createAnalyticsService, createAsserter, createAuthFetch, createBetterSqlite3Database, createExtractor, createMemoryProvider, createModel, createWrappedModel, defaultRegistry, deprecateOnFailure, detectGlobOverlap, detectPlaywrightVersion, discoverWorkspaceFiles, ensureMemoryDirs, escapeXml, estimateTokens, executeStep, findBareVariables, findSecretTemplates, findUnresolvedTemplates, flushAnalytics, formatAppiumInstallGuidance, formatDiagnostics, formatDiagnosticsPlain, formatLogEntry, formatParseError, formatRunAttributesBlock, generateAnalyticsUserId, generateFailureSummary, generatePKCE, generateRunId, generateState, getAgentQaVersion, getAnalyticsIdentityPath, getAnalyticsService, getAuthPath, getCredential, getImageDimensions, getLLMAuthProviderPlugin, getProvider, getProviderOptions, hashScreenState, hashStepInstruction, interpolateSecretTemplates, interpolateVariables, isBetterSqlite3AbiMismatch, isBetterSqlite3NativeModuleError, isBetterSqlite3NodeGypSymlinkConflict, isMacPlatform, isPathInsideDir, isWorkspacePathMatch, listLLMAuthProviderPlugins, listObservations, listProviders, loadLLMAuthPlugins, localAppiumBinaryNames, mapMobileCapabilities, mapWebCapabilities, mergeRunAttributes, normalizeRole, parseAllTests, parseEnvFile, parseHookInline, parseHooksFile, parseMobileSource, parseObservation, parseRunAttrFlags, parseSuiteFile, parseTTL, parseTestFile, readAnalyticsIdentity, readAuth, redactSecretValue, registerAllProviders, registerLLMAuthProviderPlugin, registerLLMAuthProviderPlugins, registerProvider, removeAuth, resetAnalyticsServiceForTests, resolveAnalyticsAgentProduct, resolveAnalyticsIdentity, resolveAnalyticsStandardProperties, resolveAppiumExecutable, resolveBetterSqliteRebuildCommand, resolveFarmCredentials, resolveFileReferences, resolveLLMAuth, resolveMemoryRoot, resolveMobileRunConfig, resolveSecretTemplatesInValue, resolveWorkspaceFileTarget, resolveWorkspacePaths, runCurator, runHookInSandbox, runHooks, runSuite, runTest, runTestWithRetry, scanContent, serializeEnvFile, shouldAblate, sortRunAttributesForDisplay, stripHookInline, toolCallToActionPlan, toolSchemaMiddleware, truncateScreenState, validateConfig, validateFilename, validateFiles, validateProject, validateSuiteFile, validateTestFile, validateTrustedRunAttributes, validateUserRunAttributes, warnIfOutOfBounds, writeAnalyticsIdentity, writeAuth, writeObservation };
|
|
3694
|
+
export { AGENT_QA_POSTHOG_HOST, AGENT_QA_POSTHOG_KEY, AGENT_QA_VERSION, ANALYTICS_AGENT_PRODUCTS, ANALYTICS_DASHBOARD_ENTITY_TYPES, ANALYTICS_DASHBOARD_OUTCOMES, ANALYTICS_EVENT_NAMES, ANALYTICS_FAILURE_CATEGORIES, ANALYTICS_MCP_ERROR_CATEGORIES, ANALYTICS_MCP_HOST_KINDS, ANALYTICS_MCP_PATH_KINDS, ANALYTICS_MCP_PORT_KINDS, ANALYTICS_MCP_SERVER_STATES, ANALYTICS_MCP_TOOL_CATEGORIES, ANALYTICS_MCP_TOOL_STATUSES, ANALYTICS_MCP_TRANSPORTS, ANALYTICS_PLATFORMS, ANALYTICS_RUNNERS, ANALYTICS_RUNTIME_CONTEXTS, ANALYTICS_RUN_STATUSES, ANALYTICS_SUITE_EXECUTION_MODES, ANALYTICS_SURFACES, ANALYTICS_TRANSPORT_KINDS, ANALYTICS_TRIGGER_SOURCES, ANDROID_ROLE_MAP, ATTR_RUNNER, ATTR_TRIGGER, AUTH_STATE_HOOK_CONTAINER_STORAGE_STATE_PATH, AUTH_STATE_HOOK_JSON_ENV, AUTH_STATE_HOOK_STORAGE_STATE_FILENAME, AUTH_STATE_HOOK_STORAGE_STATE_PATH_ENV, AUTH_STATE_HOOK_WORKSPACE_DIR, AUTH_STATE_REDACTION_MARKER, AUTH_STATE_SCHEMA_VERSION, AUTH_STATE_SLUG_PATTERN, type AccessibilityCheck, type AccessibilityCheckOptions, AccessibilityConfigSchema, type AccessibilityViolation, type Action, type ActionCache, type ActionPlan, ActionPlanSchema, type ActionResult, AdapterLogDataSchema, AgentLogDataSchema, type AgentLoopConfig, type AgentPhase, type AgentQaConfig, AgentQaConfigSchema, type AlignOptions, type AnalyticsAgentProduct, type AnalyticsCapturePayload, type AnalyticsEventInput, type AnalyticsEventName, type AnalyticsEventProperties, type AnalyticsIdentity, type AnalyticsIdentityStore, type AnalyticsPostHogTransportFactoryOptions, AnalyticsRunReporter, type AnalyticsRunReporterOptions, type AnalyticsRuntimeContext, AnalyticsSchema, type AnalyticsService, type AnalyticsServiceConfig, type AnalyticsServiceOptions, type AnalyticsStandardPropertiesOptions, type AnalyticsSurface, type AnalyticsTransport, type AnalyticsTransportKind, type AppiumExecutableSource, type ArtifactRecord, type Asserter, AssertionEvaluator, type AssertionInput, type AssertionResult, AssertionResultSchema, type AssertionType, type AuthCredential, type AuthPluginBundle, type AuthPluginDeclaration, AuthPluginDeclarationSchema, type AuthProvider, AuthStateConfigSchema, type AuthStateMetadata, AuthStateMetadataSchema, AuthStateNameSchema, type AuthStateRedactionContext, type AuthStateTargetPlatform, AuthStateUseSchema, type AuthStore, type BaseObservation, BaseObservationSchema, type BetterSqlite3Database, type BrowserConfig, BrowserConfigSchema, type BuiltAnalyticsEvent, type BuiltAnalyticsEventProperties, CACHE_SCHEMA_VERSION, CacheConfigSchema, type CacheEntry, CacheLogDataSchema, type CaptureConfig, CaptureConfigSchema, type CaptureResult, CircuitBreaker, type CircuitBreakerConfig, type CompressOptions, type CompressResult, type ConsoleLogEntry, ConsoleReporter, type ConsoleReporterOptions, type CreateAuthFetchContext, type CreateAuthFetchOptions, type CuratorContext, CuratorResponseSchema, DEFAULT_AGENT_QA_ARTIFACTS_DIR, DEFAULT_AGENT_QA_AUTH_STATES_DIR, DEFAULT_AGENT_QA_CACHE_DIR, DEFAULT_AGENT_QA_RUNS_DB_PATH, DEFAULT_AGENT_QA_RUNTIME_DIR, DEFAULT_AGENT_QA_SCREENSHOTS_DIR, DEFAULT_AGENT_QA_VIDEOS_DIR, DEFAULT_MEMORY_DIR, type DashboardAuthMetadata, type DashboardAuthMode, DashboardConfigSchema, type DeviceConfig, DeviceProfileSchema, DurationString, EMPTY_POSTHOG_KEY_WARNING, type ElementInfo, type ExchangeCodeContext, ExplicitExtractor, type ExtractionMethod, ExtractionResultSchema, type ExtractorInput, type FarmMobileConfig, type FarmProvider, type FarmProviderConfig, type FarmWebConfig, FatalReporterError, FileActionCache, type FileAttachment, HealerLogDataSchema, type HealingAttempt, type HealingConfig, HealingConfigSchema, type HookDefinition, HookDefinitionSchema, type HookEvent, HookLogDataSchema, type HookOrchestrationResult, HookReferenceMigrationError, type HookResult, type HookResultEvent, type HookRuntime, type HooksFileConfig, HooksFileSchema, INTERNAL_ATTRIBUTE_PREFIX, IOS_ROLE_MAP, type ImageDimensions, JUnitReporter, type JUnitReporterOptions, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, KEY_MAP, LEGACY_AGENT_QA_DASHBOARD_DB_PATH, LLMAssertionEvaluator, type LLMAuthProviderPlugin, type LLMModelAdapter, LLMPlanner, type LLMProviderMode, LLMVariableExtractor, LLMVerifier, LOG_LEVEL_PRIORITY, type ListAuthStateMetadataInput, type LoadLLMAuthPluginsOptions, LocalMemoryProvider, LockManager, LogCaptureConfigSchema, type LogEntry, type LogLevel, LogManager, type LogSource, LogSourceDataSchemas, type LogStorage, LoggingConfigSchema, MOBILE_ONLY_ACTIONS, McpConfigSchema, type MemoryDelta, type MemoryDeltaAction, type MemoryIndexParams, type MemoryLog, type MemoryObservationSnapshot, type MemoryProvider, type MemoryQueryResult, MissingSecretError, type MobileAppState, MobileAppStateSchema, MobileElementResolver, type MobileNode, type MobilePlatform, type MobileRefMap, MobileSetupError, type MobileSetupErrorCategory, type MobileSetupErrorOptions, type MobileTransport, MobileUseOverrideSchema, MobileUseSchema, MockAnalyticsTransport, type ModelConfig, ModelConfigSchema, MultiReporter, NamedLLMConfigSchema, type NetworkLogEntry, NoopAnalyticsTransport, type NormalizedAuthStateUse, NullActionCache, type OAuthTokens, type ObservationFrontmatter, type ObserveOptions, type ParseError, type ParseResult, type ParsedMobileTree, type ParsedRunAttrFlags, type PlanResult, type Planner, type PlannerConfig, PlannerConfigSchema, PlannerLogDataSchema, type PlatformAdapter, type PlatformConfig, PluginsSchema, ProviderConfigSchema, type ProviderOptions, RUNTIME_IMAGE_MAP, RUN_ARTIFACT_SCHEMA_VERSION, RUN_ATTRIBUTE_KEY_MAX_LENGTH, RUN_ATTRIBUTE_VALUE_MAX_LENGTH, RecordingConfigSchema, type RegistryConfig, RegistrySchema, type RemoveAuthStateFilesInput, type RemoveAuthStateTargetInput, type Reporter, type ReporterEvent, type ResolveAnalyticsIdentityOptions, type ResolveAppiumExecutableOptions, type ResolveAuthStateForRunInput, type ResolveAuthStatePathsInput, type ResolveAuthStateRootInput, type ResolveMobileRunConfigInput, type ResolvedAppiumExecutable, type ResolvedAuthStateForRun, type ResolvedAuthStatePaths, type ResolvedLLMAuth, type ResolvedMobileApp, type ResolvedMobileAppInstall, type ResolvedMobileDevice, type ResolvedMobileRunConfig, type ResolvedWorkspaceFile, type ResolvedWorkspacePaths, type RunArtifactConfigSnapshot, type RunArtifactFinalizeInput, type RunArtifactKind, type RunArtifactMemoryDelta, type RunArtifactMemoryDeltaAction, type RunArtifactMemoryObservationSnapshot, type RunArtifactMemorySnapshot, type RunArtifactMetadata, type RunArtifactPayload, type RunArtifactReporterContext, type RunArtifactRuntimeSnapshot, type RunArtifactStageInput, type RunArtifactSuiteMemberSnapshot, type RunArtifactSuiteSourceSnapshot, type RunArtifactTerminalError, type RunArtifactTestSourceSnapshot, type RunAttributeRunner, type RunAttributeTrigger, type RunAttributes, type RunSuiteConfig, type RunSummary, type RunTestConfig, RunnerLogDataSchema, type SandboxRunnerOptions, type ScopedLogger, type ScreenState, type ScreenStateMetadata, SecretConfigError, type SecretFileMetadata, SecretRedactor, SecretStore, type SecretTemplate, type ServicesConfig, ServicesSchema, SizeString, type StartAuthContext, type StartAuthResult, StdoutLiveReporter, type StepAnnotation, type StepContext, type StepHashInputs, type StepPhaseEvent, type StepResult, type StepStatus, type StepTrace, type SuiteDefinition, SuiteDefinitionSchema, type SuiteObservation, type SuiteObservationFrontmatter, SuiteObservationSchema, type SuiteResult, type SuiteSummary, SuiteTestEntrySchema, TargetNameSchema, TargetSchema, type TestConfig, type TestDefinition, TestDefinitionSchema, type TestMeta, TestMetaSchema, type TestResult, type TestStatus, type TestStep, TestStepSchema, type TimeoutConfig, TimeoutConfigSchema, type TokenRefreshFn, type TokenUsage, type ToolCategory, type ToolDefinition, ToolRegistry, TransportSchema, type UseConfig, UseSchema, VALID_FILENAME_RE, type ValidationDiagnostic, type ValidationResult, type VariableExtractor, type VariableSource, VariableStore, type VerificationResult, VerificationResultSchema, type Verifier, type VerifyResult, WEB_ONLY_ACTIONS, type WorkspaceConfig, type WorkspaceFileKind, type WorkspaceFileRecord, WorkspaceSchema, type WriteAuthStateFilesInput, alignToWindow, applyWorkspaceHookReferenceMigration, auditWorkspaceHookReferenceMigration, browserstackProvider, buildAnalyticsEvent, buildAssertionPrompt, buildAuthStateHookEnv, buildExtractionPrompt, buildInternalRunAttributes, buildMemoryIndex, buildStepPrompt, buildSystemPrompt, buildTools, buildVerificationPrompt, captureAnalytics, captureFailureScreenshot, checkDockerAvailable, clearLLMAuthProviderPlugins, clearLoadedLLMAuthPluginModules, collectAllInjectedIds, compressScreenshot, computeFingerPositions, computePinch, computeSwipe, convertKeysForPlatform, createAnalyticsRunReporter, createAnalyticsService, createAsserter, createAuthFetch, createBetterSqlite3Database, createExtractor, createMemoryProvider, createModel, createWrappedModel, defaultRegistry, deprecateOnFailure, detectGlobOverlap, detectPlaywrightVersion, discoverWorkspaceFiles, ensureMemoryDirs, escapeXml, estimateTokens, executeStep, findBareVariables, findSecretTemplates, findUnresolvedTemplates, flushAnalytics, formatAppiumInstallGuidance, formatDiagnostics, formatDiagnosticsPlain, formatLogEntry, formatParseError, formatRunAttributesBlock, generateAnalyticsUserId, generateFailureSummary, generatePKCE, generateRunId, generateState, getAgentQaVersion, getAnalyticsIdentityPath, getAnalyticsService, getAuthPath, getCredential, getImageDimensions, getLLMAuthProviderPlugin, getProvider, getProviderOptions, hashScreenState, hashStepInstruction, interpolateSecretTemplates, interpolateVariables, isBetterSqlite3AbiMismatch, isBetterSqlite3NativeModuleError, isBetterSqlite3NodeGypSymlinkConflict, isMacPlatform, isPathInsideDir, isReservedAuthStateHookEnvKey, isWorkspacePathMatch, listAuthStateMetadata, listLLMAuthProviderPlugins, listObservations, listProviders, loadLLMAuthPlugins, localAppiumBinaryNames, mapMobileCapabilities, mapWebCapabilities, mergeRunAttributes, normalizeAuthStateUse, normalizeRole, parseAllTests, parseEnvFile, parseHookInline, parseHooksFile, parseMobileSource, parseObservation, parseRunAttrFlags, parseSuiteFile, parseTTL, parseTestFile, readAnalyticsIdentity, readAuth, readAuthStateMetadata, redactAuthStateString, redactAuthStateValue, redactSecretValue, registerAllProviders, registerLLMAuthProviderPlugin, registerLLMAuthProviderPlugins, registerProvider, removeAuth, removeAuthStateFiles, removeAuthStateTarget, resetAnalyticsServiceForTests, resolveAnalyticsAgentProduct, resolveAnalyticsIdentity, resolveAnalyticsStandardProperties, resolveAppiumExecutable, resolveAuthStateForRun, resolveAuthStatePaths, resolveAuthStateRoot, resolveBetterSqliteRebuildCommand, resolveFarmCredentials, resolveFileReferences, resolveLLMAuth, resolveMemoryRoot, resolveMobileRunConfig, resolveSecretTemplatesInValue, resolveWorkspaceFileTarget, resolveWorkspacePaths, runCurator, runHookInSandbox, runHooks, runSuite, runTest, runTestWithRetry, scanContent, serializeEnvFile, shouldAblate, sortRunAttributesForDisplay, stripHookInline, stripReservedAuthStateHookEnv, toolCallToActionPlan, toolSchemaMiddleware, truncateScreenState, validateConfig, validateFilename, validateFiles, validateProject, validateSuiteFile, validateTestFile, validateTrustedRunAttributes, validateUserRunAttributes, warnIfOutOfBounds, writeAnalyticsIdentity, writeAuth, writeAuthStateFiles, writeObservation };
|
package/dist/index.d.ts
CHANGED
|
@@ -446,6 +446,14 @@ interface ActionResult {
|
|
|
446
446
|
};
|
|
447
447
|
data?: unknown;
|
|
448
448
|
}
|
|
449
|
+
interface RuntimeAuthStateConfig {
|
|
450
|
+
version: number;
|
|
451
|
+
kind: 'web';
|
|
452
|
+
targetName: string;
|
|
453
|
+
stateName: string;
|
|
454
|
+
capturedAt: string;
|
|
455
|
+
storageStatePath: string;
|
|
456
|
+
}
|
|
449
457
|
interface PlatformConfig {
|
|
450
458
|
platform: 'web' | 'android' | 'ios';
|
|
451
459
|
browser?: BrowserConfig;
|
|
@@ -478,6 +486,7 @@ interface PlatformConfig {
|
|
|
478
486
|
console?: boolean;
|
|
479
487
|
network?: boolean;
|
|
480
488
|
};
|
|
489
|
+
authState?: RuntimeAuthStateConfig;
|
|
481
490
|
}
|
|
482
491
|
interface BrowserConfig {
|
|
483
492
|
name: 'chromium' | 'firefox' | 'webkit';
|
|
@@ -568,6 +577,11 @@ declare const TestDefinitionSchema: z.ZodObject<{
|
|
|
568
577
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
569
578
|
}, z.core.$strict>>;
|
|
570
579
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
581
|
+
name: z.ZodString;
|
|
582
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
583
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
+
}, z.core.$strict>]>>;
|
|
571
585
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
572
586
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
573
587
|
preserve: "preserve";
|
|
@@ -621,6 +635,19 @@ declare const MobileUseOverrideSchema: z.ZodObject<{
|
|
|
621
635
|
reset: "reset";
|
|
622
636
|
}>>;
|
|
623
637
|
}, z.core.$strict>;
|
|
638
|
+
declare const AuthStateUseSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
639
|
+
name: z.ZodString;
|
|
640
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
641
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
642
|
+
}, z.core.$strict>]>;
|
|
643
|
+
interface NormalizedAuthStateUse {
|
|
644
|
+
name: string;
|
|
645
|
+
load: boolean;
|
|
646
|
+
capture: boolean;
|
|
647
|
+
}
|
|
648
|
+
declare function normalizeAuthStateUse(use: {
|
|
649
|
+
authState?: unknown;
|
|
650
|
+
} | undefined): NormalizedAuthStateUse | undefined;
|
|
624
651
|
declare const UseSchema: z.ZodObject<{
|
|
625
652
|
browser: z.ZodOptional<z.ZodObject<{
|
|
626
653
|
name: z.ZodEnum<{
|
|
@@ -690,6 +717,11 @@ declare const UseOverrideSchema: z.ZodObject<{
|
|
|
690
717
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
691
718
|
}, z.core.$strict>>;
|
|
692
719
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
720
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
721
|
+
name: z.ZodString;
|
|
722
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
724
|
+
}, z.core.$strict>]>>;
|
|
693
725
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
694
726
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
695
727
|
preserve: "preserve";
|
|
@@ -736,6 +768,9 @@ declare const CacheConfigSchema: z.ZodObject<{
|
|
|
736
768
|
dir: z.ZodString;
|
|
737
769
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
738
770
|
}, z.core.$strict>;
|
|
771
|
+
declare const AuthStateConfigSchema: z.ZodObject<{
|
|
772
|
+
dir: z.ZodString;
|
|
773
|
+
}, z.core.$strict>;
|
|
739
774
|
declare const LoggingConfigSchema: z.ZodObject<{
|
|
740
775
|
level: z.ZodEnum<{
|
|
741
776
|
info: "info";
|
|
@@ -784,6 +819,9 @@ declare const ServicesSchema: z.ZodObject<{
|
|
|
784
819
|
dir: z.ZodString;
|
|
785
820
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
786
821
|
}, z.core.$strict>>;
|
|
822
|
+
authState: z.ZodOptional<z.ZodObject<{
|
|
823
|
+
dir: z.ZodString;
|
|
824
|
+
}, z.core.$strict>>;
|
|
787
825
|
logging: z.ZodOptional<z.ZodObject<{
|
|
788
826
|
level: z.ZodEnum<{
|
|
789
827
|
info: "info";
|
|
@@ -1005,6 +1043,9 @@ declare const AgentQaConfigSchema: z.ZodObject<{
|
|
|
1005
1043
|
dir: z.ZodString;
|
|
1006
1044
|
ttl: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
1007
1045
|
}, z.core.$strict>>;
|
|
1046
|
+
authState: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
dir: z.ZodString;
|
|
1048
|
+
}, z.core.$strict>>;
|
|
1008
1049
|
logging: z.ZodOptional<z.ZodObject<{
|
|
1009
1050
|
level: z.ZodEnum<{
|
|
1010
1051
|
info: "info";
|
|
@@ -1210,6 +1251,11 @@ declare const SuiteDefinitionSchema: z.ZodObject<{
|
|
|
1210
1251
|
network: z.ZodOptional<z.ZodBoolean>;
|
|
1211
1252
|
}, z.core.$strict>>;
|
|
1212
1253
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
1254
|
+
authState: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1255
|
+
name: z.ZodString;
|
|
1256
|
+
load: z.ZodOptional<z.ZodBoolean>;
|
|
1257
|
+
capture: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
}, z.core.$strict>]>>;
|
|
1213
1259
|
mobile: z.ZodOptional<z.ZodObject<{
|
|
1214
1260
|
appState: z.ZodOptional<z.ZodEnum<{
|
|
1215
1261
|
preserve: "preserve";
|
|
@@ -2188,6 +2234,7 @@ interface SandboxRunnerOptions {
|
|
|
2188
2234
|
envVars?: Record<string, string>;
|
|
2189
2235
|
secretStore?: SecretStore;
|
|
2190
2236
|
secretRedactor?: SecretRedactor;
|
|
2237
|
+
authState?: RuntimeAuthStateConfig;
|
|
2191
2238
|
}
|
|
2192
2239
|
declare function checkDockerAvailable(dockerBin?: string): Promise<boolean>;
|
|
2193
2240
|
declare function runHookInSandbox(hook: HookDefinition, options?: SandboxRunnerOptions): Promise<HookResult>;
|
|
@@ -2258,6 +2305,7 @@ interface RunTestConfig {
|
|
|
2258
2305
|
memoryInitParams?: MemoryIndexParams;
|
|
2259
2306
|
circuitBreaker?: CircuitBreaker;
|
|
2260
2307
|
skipReporterOnTestStart?: boolean;
|
|
2308
|
+
skipReporterOnTestEnd?: boolean;
|
|
2261
2309
|
secretStore?: SecretStore;
|
|
2262
2310
|
secretRedactor?: SecretRedactor;
|
|
2263
2311
|
secretsFileMetadata?: {
|
|
@@ -2649,6 +2697,116 @@ declare function localAppiumBinaryNames(platform?: NodeJS.Platform): string[];
|
|
|
2649
2697
|
declare function resolveAppiumExecutable(opts?: ResolveAppiumExecutableOptions): ResolvedAppiumExecutable;
|
|
2650
2698
|
declare function formatAppiumInstallGuidance(): string;
|
|
2651
2699
|
|
|
2700
|
+
declare const AUTH_STATE_SCHEMA_VERSION = 1;
|
|
2701
|
+
declare const AUTH_STATE_SLUG_PATTERN: RegExp;
|
|
2702
|
+
declare const AuthStateNameSchema: z.ZodString;
|
|
2703
|
+
declare const TargetNameSchema: z.ZodString;
|
|
2704
|
+
declare const AuthStateMetadataSchema: z.ZodObject<{
|
|
2705
|
+
version: z.ZodLiteral<1>;
|
|
2706
|
+
kind: z.ZodLiteral<"web">;
|
|
2707
|
+
target: z.ZodString;
|
|
2708
|
+
name: z.ZodString;
|
|
2709
|
+
capturedAt: z.ZodString;
|
|
2710
|
+
}, z.core.$strict>;
|
|
2711
|
+
type AuthStateMetadata = z.infer<typeof AuthStateMetadataSchema>;
|
|
2712
|
+
|
|
2713
|
+
type AuthStateTargetPlatform = 'web' | 'android' | 'ios';
|
|
2714
|
+
interface ResolveAuthStatePathsInput {
|
|
2715
|
+
configDir: string;
|
|
2716
|
+
authStateDir?: string;
|
|
2717
|
+
targetName: string;
|
|
2718
|
+
stateName: string;
|
|
2719
|
+
target?: {
|
|
2720
|
+
platform: AuthStateTargetPlatform;
|
|
2721
|
+
};
|
|
2722
|
+
platform?: AuthStateTargetPlatform;
|
|
2723
|
+
}
|
|
2724
|
+
interface ResolvedAuthStatePaths {
|
|
2725
|
+
targetName: string;
|
|
2726
|
+
stateName: string;
|
|
2727
|
+
rootDir: string;
|
|
2728
|
+
targetDir: string;
|
|
2729
|
+
payloadPath: string;
|
|
2730
|
+
metadataPath: string;
|
|
2731
|
+
}
|
|
2732
|
+
interface ResolveAuthStateRootInput {
|
|
2733
|
+
configDir: string;
|
|
2734
|
+
authStateDir?: string;
|
|
2735
|
+
}
|
|
2736
|
+
declare function resolveAuthStateRoot(input: ResolveAuthStateRootInput): string;
|
|
2737
|
+
declare function resolveAuthStatePaths(input: ResolveAuthStatePathsInput): ResolvedAuthStatePaths;
|
|
2738
|
+
|
|
2739
|
+
interface WriteAuthStateFilesInput {
|
|
2740
|
+
payload: unknown;
|
|
2741
|
+
metadata: AuthStateMetadata;
|
|
2742
|
+
}
|
|
2743
|
+
interface ListAuthStateMetadataInput {
|
|
2744
|
+
configDir: string;
|
|
2745
|
+
authStateDir?: string;
|
|
2746
|
+
targetName?: string;
|
|
2747
|
+
}
|
|
2748
|
+
interface RemoveAuthStateFilesInput {
|
|
2749
|
+
configDir: string;
|
|
2750
|
+
authStateDir?: string;
|
|
2751
|
+
targetName: string;
|
|
2752
|
+
stateName: string;
|
|
2753
|
+
target?: Parameters<typeof resolveAuthStatePaths>[0]['target'];
|
|
2754
|
+
platform?: Parameters<typeof resolveAuthStatePaths>[0]['platform'];
|
|
2755
|
+
}
|
|
2756
|
+
interface RemoveAuthStateTargetInput {
|
|
2757
|
+
configDir: string;
|
|
2758
|
+
authStateDir?: string;
|
|
2759
|
+
targetName: string;
|
|
2760
|
+
target?: Parameters<typeof resolveAuthStatePaths>[0]['target'];
|
|
2761
|
+
platform?: Parameters<typeof resolveAuthStatePaths>[0]['platform'];
|
|
2762
|
+
}
|
|
2763
|
+
declare function readAuthStateMetadata(paths: ResolvedAuthStatePaths): Promise<AuthStateMetadata>;
|
|
2764
|
+
declare function writeAuthStateFiles(paths: ResolvedAuthStatePaths, input: WriteAuthStateFilesInput): Promise<void>;
|
|
2765
|
+
declare function listAuthStateMetadata(input: ListAuthStateMetadataInput): Promise<AuthStateMetadata[]>;
|
|
2766
|
+
declare function removeAuthStateFiles(input: RemoveAuthStateFilesInput): Promise<void>;
|
|
2767
|
+
declare function removeAuthStateTarget(input: RemoveAuthStateTargetInput): Promise<void>;
|
|
2768
|
+
|
|
2769
|
+
interface ResolveAuthStateForRunInput {
|
|
2770
|
+
configDir: string;
|
|
2771
|
+
authStateDir?: string;
|
|
2772
|
+
targetName: string;
|
|
2773
|
+
stateName: string;
|
|
2774
|
+
target?: {
|
|
2775
|
+
platform: AuthStateTargetPlatform;
|
|
2776
|
+
};
|
|
2777
|
+
platform?: AuthStateTargetPlatform;
|
|
2778
|
+
}
|
|
2779
|
+
interface ResolvedAuthStateForRun {
|
|
2780
|
+
version: number;
|
|
2781
|
+
kind: 'web';
|
|
2782
|
+
targetName: string;
|
|
2783
|
+
stateName: string;
|
|
2784
|
+
capturedAt: string;
|
|
2785
|
+
storageStatePath: string;
|
|
2786
|
+
}
|
|
2787
|
+
declare function resolveAuthStateForRun(input: ResolveAuthStateForRunInput): Promise<ResolvedAuthStateForRun>;
|
|
2788
|
+
|
|
2789
|
+
declare const AUTH_STATE_HOOK_JSON_ENV = "AGENT_QA_AUTH_STATE_JSON";
|
|
2790
|
+
declare const AUTH_STATE_HOOK_STORAGE_STATE_PATH_ENV = "AGENT_QA_AUTH_STATE_STORAGE_STATE_PATH";
|
|
2791
|
+
declare const AUTH_STATE_HOOK_WORKSPACE_DIR = ".agent-qa-auth-state";
|
|
2792
|
+
declare const AUTH_STATE_HOOK_STORAGE_STATE_FILENAME = "storage-state.json";
|
|
2793
|
+
declare const AUTH_STATE_HOOK_CONTAINER_STORAGE_STATE_PATH = "/workspace/.agent-qa-auth-state/storage-state.json";
|
|
2794
|
+
declare function isReservedAuthStateHookEnvKey(key: string): boolean;
|
|
2795
|
+
declare function stripReservedAuthStateHookEnv(variables: Record<string, string>): Record<string, string>;
|
|
2796
|
+
declare function buildAuthStateHookEnv(authState: RuntimeAuthStateConfig | undefined, storageStatePath?: string): Record<string, string>;
|
|
2797
|
+
|
|
2798
|
+
declare const AUTH_STATE_REDACTION_MARKER = "[auth state redacted]";
|
|
2799
|
+
interface AuthStateRedactionContext {
|
|
2800
|
+
secretRedactor?: SecretRedactor;
|
|
2801
|
+
authState?: RuntimeAuthStateConfig;
|
|
2802
|
+
storageStatePath?: string;
|
|
2803
|
+
hookStorageStatePath?: string;
|
|
2804
|
+
hookJsonEnv?: string;
|
|
2805
|
+
redactAuthLikeKeys?: boolean;
|
|
2806
|
+
}
|
|
2807
|
+
declare function redactAuthStateString(value: string, context?: AuthStateRedactionContext): string;
|
|
2808
|
+
declare function redactAuthStateValue<T>(value: T, context?: AuthStateRedactionContext): T;
|
|
2809
|
+
|
|
2652
2810
|
type AuthProvider = string;
|
|
2653
2811
|
type LLMModelAdapter = 'openai-responses' | 'anthropic-messages';
|
|
2654
2812
|
type BuiltInLLMProviderMode = 'openai-compatible' | 'anthropic-compatible' | 'openai-subscription' | 'anthropic-subscription' | 'gemini';
|
|
@@ -3009,6 +3167,10 @@ interface RunSuiteConfig {
|
|
|
3009
3167
|
resolveUrl?: (targetName: string) => string | undefined;
|
|
3010
3168
|
onCuratorComplete?: (testName: string, memoryLog: MemoryLog) => void;
|
|
3011
3169
|
artifactContext?: Record<string, unknown>;
|
|
3170
|
+
authStateCapture?: {
|
|
3171
|
+
capture: () => Promise<RuntimeAuthStateConfig>;
|
|
3172
|
+
failureSummary: string;
|
|
3173
|
+
};
|
|
3012
3174
|
secretStore?: SecretStore;
|
|
3013
3175
|
secretRedactor?: SecretRedactor;
|
|
3014
3176
|
}
|
|
@@ -3471,6 +3633,7 @@ declare function getAgentQaVersion(): string;
|
|
|
3471
3633
|
declare const DEFAULT_AGENT_QA_RUNTIME_DIR = ".agent-qa";
|
|
3472
3634
|
declare const DEFAULT_AGENT_QA_ARTIFACTS_DIR = ".agent-qa/artifacts";
|
|
3473
3635
|
declare const DEFAULT_AGENT_QA_CACHE_DIR = ".agent-qa/cache";
|
|
3636
|
+
declare const DEFAULT_AGENT_QA_AUTH_STATES_DIR = ".agent-qa/auth-states";
|
|
3474
3637
|
declare const DEFAULT_AGENT_QA_SCREENSHOTS_DIR = ".agent-qa/artifacts/screenshots";
|
|
3475
3638
|
declare const DEFAULT_AGENT_QA_VIDEOS_DIR = ".agent-qa/artifacts/videos";
|
|
3476
3639
|
declare const DEFAULT_AGENT_QA_RUNS_DB_PATH = ".agent-qa/runs.db";
|
|
@@ -3528,4 +3691,4 @@ declare function isMacPlatform(): boolean;
|
|
|
3528
3691
|
|
|
3529
3692
|
declare function isPathInsideDir(childPath: string, parentDir: string): boolean;
|
|
3530
3693
|
|
|
3531
|
-
export { AGENT_QA_POSTHOG_HOST, AGENT_QA_POSTHOG_KEY, AGENT_QA_VERSION, ANALYTICS_AGENT_PRODUCTS, ANALYTICS_DASHBOARD_ENTITY_TYPES, ANALYTICS_DASHBOARD_OUTCOMES, ANALYTICS_EVENT_NAMES, ANALYTICS_FAILURE_CATEGORIES, ANALYTICS_MCP_ERROR_CATEGORIES, ANALYTICS_MCP_HOST_KINDS, ANALYTICS_MCP_PATH_KINDS, ANALYTICS_MCP_PORT_KINDS, ANALYTICS_MCP_SERVER_STATES, ANALYTICS_MCP_TOOL_CATEGORIES, ANALYTICS_MCP_TOOL_STATUSES, ANALYTICS_MCP_TRANSPORTS, ANALYTICS_PLATFORMS, ANALYTICS_RUNNERS, ANALYTICS_RUNTIME_CONTEXTS, ANALYTICS_RUN_STATUSES, ANALYTICS_SUITE_EXECUTION_MODES, ANALYTICS_SURFACES, ANALYTICS_TRANSPORT_KINDS, ANALYTICS_TRIGGER_SOURCES, ANDROID_ROLE_MAP, ATTR_RUNNER, ATTR_TRIGGER, type AccessibilityCheck, type AccessibilityCheckOptions, AccessibilityConfigSchema, type AccessibilityViolation, type Action, type ActionCache, type ActionPlan, ActionPlanSchema, type ActionResult, AdapterLogDataSchema, AgentLogDataSchema, type AgentLoopConfig, type AgentPhase, type AgentQaConfig, AgentQaConfigSchema, type AlignOptions, type AnalyticsAgentProduct, type AnalyticsCapturePayload, type AnalyticsEventInput, type AnalyticsEventName, type AnalyticsEventProperties, type AnalyticsIdentity, type AnalyticsIdentityStore, type AnalyticsPostHogTransportFactoryOptions, AnalyticsRunReporter, type AnalyticsRunReporterOptions, type AnalyticsRuntimeContext, AnalyticsSchema, type AnalyticsService, type AnalyticsServiceConfig, type AnalyticsServiceOptions, type AnalyticsStandardPropertiesOptions, type AnalyticsSurface, type AnalyticsTransport, type AnalyticsTransportKind, type AppiumExecutableSource, type ArtifactRecord, type Asserter, AssertionEvaluator, type AssertionInput, type AssertionResult, AssertionResultSchema, type AssertionType, type AuthCredential, type AuthPluginBundle, type AuthPluginDeclaration, AuthPluginDeclarationSchema, type AuthProvider, type AuthStore, type BaseObservation, BaseObservationSchema, type BetterSqlite3Database, type BrowserConfig, BrowserConfigSchema, type BuiltAnalyticsEvent, type BuiltAnalyticsEventProperties, CACHE_SCHEMA_VERSION, CacheConfigSchema, type CacheEntry, CacheLogDataSchema, type CaptureConfig, CaptureConfigSchema, type CaptureResult, CircuitBreaker, type CircuitBreakerConfig, type CompressOptions, type CompressResult, type ConsoleLogEntry, ConsoleReporter, type ConsoleReporterOptions, type CreateAuthFetchContext, type CreateAuthFetchOptions, type CuratorContext, CuratorResponseSchema, DEFAULT_AGENT_QA_ARTIFACTS_DIR, DEFAULT_AGENT_QA_CACHE_DIR, DEFAULT_AGENT_QA_RUNS_DB_PATH, DEFAULT_AGENT_QA_RUNTIME_DIR, DEFAULT_AGENT_QA_SCREENSHOTS_DIR, DEFAULT_AGENT_QA_VIDEOS_DIR, DEFAULT_MEMORY_DIR, type DashboardAuthMetadata, type DashboardAuthMode, DashboardConfigSchema, type DeviceConfig, DeviceProfileSchema, DurationString, EMPTY_POSTHOG_KEY_WARNING, type ElementInfo, type ExchangeCodeContext, ExplicitExtractor, type ExtractionMethod, ExtractionResultSchema, type ExtractorInput, type FarmMobileConfig, type FarmProvider, type FarmProviderConfig, type FarmWebConfig, FatalReporterError, FileActionCache, type FileAttachment, HealerLogDataSchema, type HealingAttempt, type HealingConfig, HealingConfigSchema, type HookDefinition, HookDefinitionSchema, type HookEvent, HookLogDataSchema, type HookOrchestrationResult, HookReferenceMigrationError, type HookResult, type HookResultEvent, type HookRuntime, type HooksFileConfig, HooksFileSchema, INTERNAL_ATTRIBUTE_PREFIX, IOS_ROLE_MAP, type ImageDimensions, JUnitReporter, type JUnitReporterOptions, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, KEY_MAP, LEGACY_AGENT_QA_DASHBOARD_DB_PATH, LLMAssertionEvaluator, type LLMAuthProviderPlugin, type LLMModelAdapter, LLMPlanner, type LLMProviderMode, LLMVariableExtractor, LLMVerifier, LOG_LEVEL_PRIORITY, type LoadLLMAuthPluginsOptions, LocalMemoryProvider, LockManager, LogCaptureConfigSchema, type LogEntry, type LogLevel, LogManager, type LogSource, LogSourceDataSchemas, type LogStorage, LoggingConfigSchema, MOBILE_ONLY_ACTIONS, McpConfigSchema, type MemoryDelta, type MemoryDeltaAction, type MemoryIndexParams, type MemoryLog, type MemoryObservationSnapshot, type MemoryProvider, type MemoryQueryResult, MissingSecretError, type MobileAppState, MobileAppStateSchema, MobileElementResolver, type MobileNode, type MobilePlatform, type MobileRefMap, MobileSetupError, type MobileSetupErrorCategory, type MobileSetupErrorOptions, type MobileTransport, MobileUseOverrideSchema, MobileUseSchema, MockAnalyticsTransport, type ModelConfig, ModelConfigSchema, MultiReporter, NamedLLMConfigSchema, type NetworkLogEntry, NoopAnalyticsTransport, NullActionCache, type OAuthTokens, type ObservationFrontmatter, type ObserveOptions, type ParseError, type ParseResult, type ParsedMobileTree, type ParsedRunAttrFlags, type PlanResult, type Planner, type PlannerConfig, PlannerConfigSchema, PlannerLogDataSchema, type PlatformAdapter, type PlatformConfig, PluginsSchema, ProviderConfigSchema, type ProviderOptions, RUNTIME_IMAGE_MAP, RUN_ARTIFACT_SCHEMA_VERSION, RUN_ATTRIBUTE_KEY_MAX_LENGTH, RUN_ATTRIBUTE_VALUE_MAX_LENGTH, RecordingConfigSchema, type RegistryConfig, RegistrySchema, type Reporter, type ReporterEvent, type ResolveAnalyticsIdentityOptions, type ResolveAppiumExecutableOptions, type ResolveMobileRunConfigInput, type ResolvedAppiumExecutable, type ResolvedLLMAuth, type ResolvedMobileApp, type ResolvedMobileAppInstall, type ResolvedMobileDevice, type ResolvedMobileRunConfig, type ResolvedWorkspaceFile, type ResolvedWorkspacePaths, type RunArtifactConfigSnapshot, type RunArtifactFinalizeInput, type RunArtifactKind, type RunArtifactMemoryDelta, type RunArtifactMemoryDeltaAction, type RunArtifactMemoryObservationSnapshot, type RunArtifactMemorySnapshot, type RunArtifactMetadata, type RunArtifactPayload, type RunArtifactReporterContext, type RunArtifactRuntimeSnapshot, type RunArtifactStageInput, type RunArtifactSuiteMemberSnapshot, type RunArtifactSuiteSourceSnapshot, type RunArtifactTerminalError, type RunArtifactTestSourceSnapshot, type RunAttributeRunner, type RunAttributeTrigger, type RunAttributes, type RunSuiteConfig, type RunSummary, type RunTestConfig, RunnerLogDataSchema, type SandboxRunnerOptions, type ScopedLogger, type ScreenState, type ScreenStateMetadata, SecretConfigError, type SecretFileMetadata, SecretRedactor, SecretStore, type SecretTemplate, type ServicesConfig, ServicesSchema, SizeString, type StartAuthContext, type StartAuthResult, StdoutLiveReporter, type StepAnnotation, type StepContext, type StepHashInputs, type StepPhaseEvent, type StepResult, type StepStatus, type StepTrace, type SuiteDefinition, SuiteDefinitionSchema, type SuiteObservation, type SuiteObservationFrontmatter, SuiteObservationSchema, type SuiteResult, type SuiteSummary, SuiteTestEntrySchema, TargetSchema, type TestConfig, type TestDefinition, TestDefinitionSchema, type TestMeta, TestMetaSchema, type TestResult, type TestStatus, type TestStep, TestStepSchema, type TimeoutConfig, TimeoutConfigSchema, type TokenRefreshFn, type TokenUsage, type ToolCategory, type ToolDefinition, ToolRegistry, TransportSchema, type UseConfig, UseSchema, VALID_FILENAME_RE, type ValidationDiagnostic, type ValidationResult, type VariableExtractor, type VariableSource, VariableStore, type VerificationResult, VerificationResultSchema, type Verifier, type VerifyResult, WEB_ONLY_ACTIONS, type WorkspaceConfig, type WorkspaceFileKind, type WorkspaceFileRecord, WorkspaceSchema, alignToWindow, applyWorkspaceHookReferenceMigration, auditWorkspaceHookReferenceMigration, browserstackProvider, buildAnalyticsEvent, buildAssertionPrompt, buildExtractionPrompt, buildInternalRunAttributes, buildMemoryIndex, buildStepPrompt, buildSystemPrompt, buildTools, buildVerificationPrompt, captureAnalytics, captureFailureScreenshot, checkDockerAvailable, clearLLMAuthProviderPlugins, clearLoadedLLMAuthPluginModules, collectAllInjectedIds, compressScreenshot, computeFingerPositions, computePinch, computeSwipe, convertKeysForPlatform, createAnalyticsRunReporter, createAnalyticsService, createAsserter, createAuthFetch, createBetterSqlite3Database, createExtractor, createMemoryProvider, createModel, createWrappedModel, defaultRegistry, deprecateOnFailure, detectGlobOverlap, detectPlaywrightVersion, discoverWorkspaceFiles, ensureMemoryDirs, escapeXml, estimateTokens, executeStep, findBareVariables, findSecretTemplates, findUnresolvedTemplates, flushAnalytics, formatAppiumInstallGuidance, formatDiagnostics, formatDiagnosticsPlain, formatLogEntry, formatParseError, formatRunAttributesBlock, generateAnalyticsUserId, generateFailureSummary, generatePKCE, generateRunId, generateState, getAgentQaVersion, getAnalyticsIdentityPath, getAnalyticsService, getAuthPath, getCredential, getImageDimensions, getLLMAuthProviderPlugin, getProvider, getProviderOptions, hashScreenState, hashStepInstruction, interpolateSecretTemplates, interpolateVariables, isBetterSqlite3AbiMismatch, isBetterSqlite3NativeModuleError, isBetterSqlite3NodeGypSymlinkConflict, isMacPlatform, isPathInsideDir, isWorkspacePathMatch, listLLMAuthProviderPlugins, listObservations, listProviders, loadLLMAuthPlugins, localAppiumBinaryNames, mapMobileCapabilities, mapWebCapabilities, mergeRunAttributes, normalizeRole, parseAllTests, parseEnvFile, parseHookInline, parseHooksFile, parseMobileSource, parseObservation, parseRunAttrFlags, parseSuiteFile, parseTTL, parseTestFile, readAnalyticsIdentity, readAuth, redactSecretValue, registerAllProviders, registerLLMAuthProviderPlugin, registerLLMAuthProviderPlugins, registerProvider, removeAuth, resetAnalyticsServiceForTests, resolveAnalyticsAgentProduct, resolveAnalyticsIdentity, resolveAnalyticsStandardProperties, resolveAppiumExecutable, resolveBetterSqliteRebuildCommand, resolveFarmCredentials, resolveFileReferences, resolveLLMAuth, resolveMemoryRoot, resolveMobileRunConfig, resolveSecretTemplatesInValue, resolveWorkspaceFileTarget, resolveWorkspacePaths, runCurator, runHookInSandbox, runHooks, runSuite, runTest, runTestWithRetry, scanContent, serializeEnvFile, shouldAblate, sortRunAttributesForDisplay, stripHookInline, toolCallToActionPlan, toolSchemaMiddleware, truncateScreenState, validateConfig, validateFilename, validateFiles, validateProject, validateSuiteFile, validateTestFile, validateTrustedRunAttributes, validateUserRunAttributes, warnIfOutOfBounds, writeAnalyticsIdentity, writeAuth, writeObservation };
|
|
3694
|
+
export { AGENT_QA_POSTHOG_HOST, AGENT_QA_POSTHOG_KEY, AGENT_QA_VERSION, ANALYTICS_AGENT_PRODUCTS, ANALYTICS_DASHBOARD_ENTITY_TYPES, ANALYTICS_DASHBOARD_OUTCOMES, ANALYTICS_EVENT_NAMES, ANALYTICS_FAILURE_CATEGORIES, ANALYTICS_MCP_ERROR_CATEGORIES, ANALYTICS_MCP_HOST_KINDS, ANALYTICS_MCP_PATH_KINDS, ANALYTICS_MCP_PORT_KINDS, ANALYTICS_MCP_SERVER_STATES, ANALYTICS_MCP_TOOL_CATEGORIES, ANALYTICS_MCP_TOOL_STATUSES, ANALYTICS_MCP_TRANSPORTS, ANALYTICS_PLATFORMS, ANALYTICS_RUNNERS, ANALYTICS_RUNTIME_CONTEXTS, ANALYTICS_RUN_STATUSES, ANALYTICS_SUITE_EXECUTION_MODES, ANALYTICS_SURFACES, ANALYTICS_TRANSPORT_KINDS, ANALYTICS_TRIGGER_SOURCES, ANDROID_ROLE_MAP, ATTR_RUNNER, ATTR_TRIGGER, AUTH_STATE_HOOK_CONTAINER_STORAGE_STATE_PATH, AUTH_STATE_HOOK_JSON_ENV, AUTH_STATE_HOOK_STORAGE_STATE_FILENAME, AUTH_STATE_HOOK_STORAGE_STATE_PATH_ENV, AUTH_STATE_HOOK_WORKSPACE_DIR, AUTH_STATE_REDACTION_MARKER, AUTH_STATE_SCHEMA_VERSION, AUTH_STATE_SLUG_PATTERN, type AccessibilityCheck, type AccessibilityCheckOptions, AccessibilityConfigSchema, type AccessibilityViolation, type Action, type ActionCache, type ActionPlan, ActionPlanSchema, type ActionResult, AdapterLogDataSchema, AgentLogDataSchema, type AgentLoopConfig, type AgentPhase, type AgentQaConfig, AgentQaConfigSchema, type AlignOptions, type AnalyticsAgentProduct, type AnalyticsCapturePayload, type AnalyticsEventInput, type AnalyticsEventName, type AnalyticsEventProperties, type AnalyticsIdentity, type AnalyticsIdentityStore, type AnalyticsPostHogTransportFactoryOptions, AnalyticsRunReporter, type AnalyticsRunReporterOptions, type AnalyticsRuntimeContext, AnalyticsSchema, type AnalyticsService, type AnalyticsServiceConfig, type AnalyticsServiceOptions, type AnalyticsStandardPropertiesOptions, type AnalyticsSurface, type AnalyticsTransport, type AnalyticsTransportKind, type AppiumExecutableSource, type ArtifactRecord, type Asserter, AssertionEvaluator, type AssertionInput, type AssertionResult, AssertionResultSchema, type AssertionType, type AuthCredential, type AuthPluginBundle, type AuthPluginDeclaration, AuthPluginDeclarationSchema, type AuthProvider, AuthStateConfigSchema, type AuthStateMetadata, AuthStateMetadataSchema, AuthStateNameSchema, type AuthStateRedactionContext, type AuthStateTargetPlatform, AuthStateUseSchema, type AuthStore, type BaseObservation, BaseObservationSchema, type BetterSqlite3Database, type BrowserConfig, BrowserConfigSchema, type BuiltAnalyticsEvent, type BuiltAnalyticsEventProperties, CACHE_SCHEMA_VERSION, CacheConfigSchema, type CacheEntry, CacheLogDataSchema, type CaptureConfig, CaptureConfigSchema, type CaptureResult, CircuitBreaker, type CircuitBreakerConfig, type CompressOptions, type CompressResult, type ConsoleLogEntry, ConsoleReporter, type ConsoleReporterOptions, type CreateAuthFetchContext, type CreateAuthFetchOptions, type CuratorContext, CuratorResponseSchema, DEFAULT_AGENT_QA_ARTIFACTS_DIR, DEFAULT_AGENT_QA_AUTH_STATES_DIR, DEFAULT_AGENT_QA_CACHE_DIR, DEFAULT_AGENT_QA_RUNS_DB_PATH, DEFAULT_AGENT_QA_RUNTIME_DIR, DEFAULT_AGENT_QA_SCREENSHOTS_DIR, DEFAULT_AGENT_QA_VIDEOS_DIR, DEFAULT_MEMORY_DIR, type DashboardAuthMetadata, type DashboardAuthMode, DashboardConfigSchema, type DeviceConfig, DeviceProfileSchema, DurationString, EMPTY_POSTHOG_KEY_WARNING, type ElementInfo, type ExchangeCodeContext, ExplicitExtractor, type ExtractionMethod, ExtractionResultSchema, type ExtractorInput, type FarmMobileConfig, type FarmProvider, type FarmProviderConfig, type FarmWebConfig, FatalReporterError, FileActionCache, type FileAttachment, HealerLogDataSchema, type HealingAttempt, type HealingConfig, HealingConfigSchema, type HookDefinition, HookDefinitionSchema, type HookEvent, HookLogDataSchema, type HookOrchestrationResult, HookReferenceMigrationError, type HookResult, type HookResultEvent, type HookRuntime, type HooksFileConfig, HooksFileSchema, INTERNAL_ATTRIBUTE_PREFIX, IOS_ROLE_MAP, type ImageDimensions, JUnitReporter, type JUnitReporterOptions, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, KEY_MAP, LEGACY_AGENT_QA_DASHBOARD_DB_PATH, LLMAssertionEvaluator, type LLMAuthProviderPlugin, type LLMModelAdapter, LLMPlanner, type LLMProviderMode, LLMVariableExtractor, LLMVerifier, LOG_LEVEL_PRIORITY, type ListAuthStateMetadataInput, type LoadLLMAuthPluginsOptions, LocalMemoryProvider, LockManager, LogCaptureConfigSchema, type LogEntry, type LogLevel, LogManager, type LogSource, LogSourceDataSchemas, type LogStorage, LoggingConfigSchema, MOBILE_ONLY_ACTIONS, McpConfigSchema, type MemoryDelta, type MemoryDeltaAction, type MemoryIndexParams, type MemoryLog, type MemoryObservationSnapshot, type MemoryProvider, type MemoryQueryResult, MissingSecretError, type MobileAppState, MobileAppStateSchema, MobileElementResolver, type MobileNode, type MobilePlatform, type MobileRefMap, MobileSetupError, type MobileSetupErrorCategory, type MobileSetupErrorOptions, type MobileTransport, MobileUseOverrideSchema, MobileUseSchema, MockAnalyticsTransport, type ModelConfig, ModelConfigSchema, MultiReporter, NamedLLMConfigSchema, type NetworkLogEntry, NoopAnalyticsTransport, type NormalizedAuthStateUse, NullActionCache, type OAuthTokens, type ObservationFrontmatter, type ObserveOptions, type ParseError, type ParseResult, type ParsedMobileTree, type ParsedRunAttrFlags, type PlanResult, type Planner, type PlannerConfig, PlannerConfigSchema, PlannerLogDataSchema, type PlatformAdapter, type PlatformConfig, PluginsSchema, ProviderConfigSchema, type ProviderOptions, RUNTIME_IMAGE_MAP, RUN_ARTIFACT_SCHEMA_VERSION, RUN_ATTRIBUTE_KEY_MAX_LENGTH, RUN_ATTRIBUTE_VALUE_MAX_LENGTH, RecordingConfigSchema, type RegistryConfig, RegistrySchema, type RemoveAuthStateFilesInput, type RemoveAuthStateTargetInput, type Reporter, type ReporterEvent, type ResolveAnalyticsIdentityOptions, type ResolveAppiumExecutableOptions, type ResolveAuthStateForRunInput, type ResolveAuthStatePathsInput, type ResolveAuthStateRootInput, type ResolveMobileRunConfigInput, type ResolvedAppiumExecutable, type ResolvedAuthStateForRun, type ResolvedAuthStatePaths, type ResolvedLLMAuth, type ResolvedMobileApp, type ResolvedMobileAppInstall, type ResolvedMobileDevice, type ResolvedMobileRunConfig, type ResolvedWorkspaceFile, type ResolvedWorkspacePaths, type RunArtifactConfigSnapshot, type RunArtifactFinalizeInput, type RunArtifactKind, type RunArtifactMemoryDelta, type RunArtifactMemoryDeltaAction, type RunArtifactMemoryObservationSnapshot, type RunArtifactMemorySnapshot, type RunArtifactMetadata, type RunArtifactPayload, type RunArtifactReporterContext, type RunArtifactRuntimeSnapshot, type RunArtifactStageInput, type RunArtifactSuiteMemberSnapshot, type RunArtifactSuiteSourceSnapshot, type RunArtifactTerminalError, type RunArtifactTestSourceSnapshot, type RunAttributeRunner, type RunAttributeTrigger, type RunAttributes, type RunSuiteConfig, type RunSummary, type RunTestConfig, RunnerLogDataSchema, type SandboxRunnerOptions, type ScopedLogger, type ScreenState, type ScreenStateMetadata, SecretConfigError, type SecretFileMetadata, SecretRedactor, SecretStore, type SecretTemplate, type ServicesConfig, ServicesSchema, SizeString, type StartAuthContext, type StartAuthResult, StdoutLiveReporter, type StepAnnotation, type StepContext, type StepHashInputs, type StepPhaseEvent, type StepResult, type StepStatus, type StepTrace, type SuiteDefinition, SuiteDefinitionSchema, type SuiteObservation, type SuiteObservationFrontmatter, SuiteObservationSchema, type SuiteResult, type SuiteSummary, SuiteTestEntrySchema, TargetNameSchema, TargetSchema, type TestConfig, type TestDefinition, TestDefinitionSchema, type TestMeta, TestMetaSchema, type TestResult, type TestStatus, type TestStep, TestStepSchema, type TimeoutConfig, TimeoutConfigSchema, type TokenRefreshFn, type TokenUsage, type ToolCategory, type ToolDefinition, ToolRegistry, TransportSchema, type UseConfig, UseSchema, VALID_FILENAME_RE, type ValidationDiagnostic, type ValidationResult, type VariableExtractor, type VariableSource, VariableStore, type VerificationResult, VerificationResultSchema, type Verifier, type VerifyResult, WEB_ONLY_ACTIONS, type WorkspaceConfig, type WorkspaceFileKind, type WorkspaceFileRecord, WorkspaceSchema, type WriteAuthStateFilesInput, alignToWindow, applyWorkspaceHookReferenceMigration, auditWorkspaceHookReferenceMigration, browserstackProvider, buildAnalyticsEvent, buildAssertionPrompt, buildAuthStateHookEnv, buildExtractionPrompt, buildInternalRunAttributes, buildMemoryIndex, buildStepPrompt, buildSystemPrompt, buildTools, buildVerificationPrompt, captureAnalytics, captureFailureScreenshot, checkDockerAvailable, clearLLMAuthProviderPlugins, clearLoadedLLMAuthPluginModules, collectAllInjectedIds, compressScreenshot, computeFingerPositions, computePinch, computeSwipe, convertKeysForPlatform, createAnalyticsRunReporter, createAnalyticsService, createAsserter, createAuthFetch, createBetterSqlite3Database, createExtractor, createMemoryProvider, createModel, createWrappedModel, defaultRegistry, deprecateOnFailure, detectGlobOverlap, detectPlaywrightVersion, discoverWorkspaceFiles, ensureMemoryDirs, escapeXml, estimateTokens, executeStep, findBareVariables, findSecretTemplates, findUnresolvedTemplates, flushAnalytics, formatAppiumInstallGuidance, formatDiagnostics, formatDiagnosticsPlain, formatLogEntry, formatParseError, formatRunAttributesBlock, generateAnalyticsUserId, generateFailureSummary, generatePKCE, generateRunId, generateState, getAgentQaVersion, getAnalyticsIdentityPath, getAnalyticsService, getAuthPath, getCredential, getImageDimensions, getLLMAuthProviderPlugin, getProvider, getProviderOptions, hashScreenState, hashStepInstruction, interpolateSecretTemplates, interpolateVariables, isBetterSqlite3AbiMismatch, isBetterSqlite3NativeModuleError, isBetterSqlite3NodeGypSymlinkConflict, isMacPlatform, isPathInsideDir, isReservedAuthStateHookEnvKey, isWorkspacePathMatch, listAuthStateMetadata, listLLMAuthProviderPlugins, listObservations, listProviders, loadLLMAuthPlugins, localAppiumBinaryNames, mapMobileCapabilities, mapWebCapabilities, mergeRunAttributes, normalizeAuthStateUse, normalizeRole, parseAllTests, parseEnvFile, parseHookInline, parseHooksFile, parseMobileSource, parseObservation, parseRunAttrFlags, parseSuiteFile, parseTTL, parseTestFile, readAnalyticsIdentity, readAuth, readAuthStateMetadata, redactAuthStateString, redactAuthStateValue, redactSecretValue, registerAllProviders, registerLLMAuthProviderPlugin, registerLLMAuthProviderPlugins, registerProvider, removeAuth, removeAuthStateFiles, removeAuthStateTarget, resetAnalyticsServiceForTests, resolveAnalyticsAgentProduct, resolveAnalyticsIdentity, resolveAnalyticsStandardProperties, resolveAppiumExecutable, resolveAuthStateForRun, resolveAuthStatePaths, resolveAuthStateRoot, resolveBetterSqliteRebuildCommand, resolveFarmCredentials, resolveFileReferences, resolveLLMAuth, resolveMemoryRoot, resolveMobileRunConfig, resolveSecretTemplatesInValue, resolveWorkspaceFileTarget, resolveWorkspacePaths, runCurator, runHookInSandbox, runHooks, runSuite, runTest, runTestWithRetry, scanContent, serializeEnvFile, shouldAblate, sortRunAttributesForDisplay, stripHookInline, stripReservedAuthStateHookEnv, toolCallToActionPlan, toolSchemaMiddleware, truncateScreenState, validateConfig, validateFilename, validateFiles, validateProject, validateSuiteFile, validateTestFile, validateTrustedRunAttributes, validateUserRunAttributes, warnIfOutOfBounds, writeAnalyticsIdentity, writeAuth, writeAuthStateFiles, writeObservation };
|