opensteer 0.8.10 → 0.8.11
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/{chunk-F3X6UOEN.js → chunk-33FDEOQY.js} +315 -141
- package/dist/chunk-33FDEOQY.js.map +1 -0
- package/dist/cli/bin.cjs +445 -156
- package/dist/cli/bin.cjs.map +1 -1
- package/dist/cli/bin.js +127 -12
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.cjs +64 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -16
- package/dist/index.d.ts +63 -16
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/chunk-F3X6UOEN.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -397,6 +397,27 @@ interface BrowserCapabilities {
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
+
interface PostLoadTrackerSnapshot {
|
|
401
|
+
readonly lastTrackedNetworkActivityAt: number;
|
|
402
|
+
readonly trackedPendingFetches: number;
|
|
403
|
+
readonly trackedPendingXhrs: number;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface ActionBoundarySnapshot {
|
|
407
|
+
readonly pageRef: PageRef;
|
|
408
|
+
readonly documentRef: DocumentRef;
|
|
409
|
+
readonly url?: string;
|
|
410
|
+
readonly tracker?: PostLoadTrackerSnapshot;
|
|
411
|
+
}
|
|
412
|
+
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
413
|
+
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
414
|
+
interface ActionBoundaryOutcome {
|
|
415
|
+
readonly trigger: ActionBoundarySettleTrigger;
|
|
416
|
+
readonly crossDocument: boolean;
|
|
417
|
+
readonly bootstrapSettled: boolean;
|
|
418
|
+
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
419
|
+
}
|
|
420
|
+
|
|
400
421
|
type ConsoleLevel = "debug" | "log" | "info" | "warn" | "error" | "trace";
|
|
401
422
|
interface StepEventBase {
|
|
402
423
|
readonly eventId: string;
|
|
@@ -717,12 +738,22 @@ interface BrowserInspector {
|
|
|
717
738
|
readonly frameRef?: FrameRef;
|
|
718
739
|
readonly documentRef?: DocumentRef;
|
|
719
740
|
}): Promise<DomSnapshot>;
|
|
741
|
+
getActionBoundarySnapshot(input: {
|
|
742
|
+
readonly pageRef: PageRef;
|
|
743
|
+
}): Promise<ActionBoundarySnapshot>;
|
|
720
744
|
waitForVisualStability(input: {
|
|
721
745
|
readonly pageRef: PageRef;
|
|
722
746
|
readonly timeoutMs?: number;
|
|
723
747
|
readonly settleMs?: number;
|
|
724
748
|
readonly scope?: VisualStabilityScope;
|
|
725
749
|
}): Promise<void>;
|
|
750
|
+
waitForPostLoadQuiet(input: {
|
|
751
|
+
readonly pageRef: PageRef;
|
|
752
|
+
readonly timeoutMs?: number;
|
|
753
|
+
readonly quietMs?: number;
|
|
754
|
+
readonly captureWindowMs?: number;
|
|
755
|
+
readonly signal?: AbortSignal;
|
|
756
|
+
}): Promise<void>;
|
|
726
757
|
readText(input: NodeLocator): Promise<string | null>;
|
|
727
758
|
readAttributes(input: NodeLocator): Promise<readonly {
|
|
728
759
|
readonly name: string;
|
|
@@ -775,20 +806,6 @@ interface BrowserInstrumentation {
|
|
|
775
806
|
interface BrowserCoreEngine extends BrowserExecutor, BrowserInspector, SessionTransportExecutor, BrowserInstrumentation {
|
|
776
807
|
}
|
|
777
808
|
|
|
778
|
-
interface ActionBoundarySnapshot {
|
|
779
|
-
readonly pageRef: PageRef;
|
|
780
|
-
readonly documentRef: DocumentRef;
|
|
781
|
-
readonly url?: string;
|
|
782
|
-
}
|
|
783
|
-
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
784
|
-
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
785
|
-
interface ActionBoundaryOutcome {
|
|
786
|
-
readonly trigger: ActionBoundarySettleTrigger;
|
|
787
|
-
readonly crossDocument: boolean;
|
|
788
|
-
readonly bootstrapSettled: boolean;
|
|
789
|
-
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
809
|
interface BodyPayload {
|
|
793
810
|
readonly data: string;
|
|
794
811
|
readonly encoding: BodyPayloadEncoding;
|
|
@@ -1322,6 +1339,8 @@ type OpensteerCapability = (typeof opensteerCapabilities)[number];
|
|
|
1322
1339
|
|
|
1323
1340
|
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
1324
1341
|
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
1342
|
+
declare const cloudSessionRecordingStatuses: readonly ["idle", "recording", "completed", "failed"];
|
|
1343
|
+
type CloudSessionRecordingStatus = (typeof cloudSessionRecordingStatuses)[number];
|
|
1325
1344
|
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
1326
1345
|
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
1327
1346
|
type CloudSessionVisibilityScope = "team" | "owner";
|
|
@@ -1413,6 +1432,21 @@ interface CloudSessionSummary {
|
|
|
1413
1432
|
readonly sourceRef?: string;
|
|
1414
1433
|
readonly label?: string;
|
|
1415
1434
|
}
|
|
1435
|
+
interface CloudSessionRecordingResult {
|
|
1436
|
+
readonly fileName: string;
|
|
1437
|
+
readonly script: string;
|
|
1438
|
+
readonly actionCount: number;
|
|
1439
|
+
}
|
|
1440
|
+
interface CloudSessionRecordingState {
|
|
1441
|
+
readonly sessionId: string;
|
|
1442
|
+
readonly status: CloudSessionRecordingStatus;
|
|
1443
|
+
readonly actionCount: number;
|
|
1444
|
+
readonly startedAt?: number;
|
|
1445
|
+
readonly stoppedAt?: number;
|
|
1446
|
+
readonly updatedAt: number;
|
|
1447
|
+
readonly error?: string;
|
|
1448
|
+
readonly result?: CloudSessionRecordingResult;
|
|
1449
|
+
}
|
|
1416
1450
|
interface CloudSelectorCacheImportEntry {
|
|
1417
1451
|
readonly workspace: string;
|
|
1418
1452
|
readonly method: string;
|
|
@@ -1945,6 +1979,9 @@ interface OpensteerPageSnapshotOutput {
|
|
|
1945
1979
|
}
|
|
1946
1980
|
interface OpensteerDomClickInput {
|
|
1947
1981
|
readonly target: OpensteerTargetInput;
|
|
1982
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
1983
|
+
readonly clickCount?: number;
|
|
1984
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
1948
1985
|
readonly persistAsDescription?: string;
|
|
1949
1986
|
readonly captureNetwork?: string;
|
|
1950
1987
|
}
|
|
@@ -4074,6 +4111,7 @@ interface OpensteerCloudProviderOptions {
|
|
|
4074
4111
|
readonly mode: "cloud";
|
|
4075
4112
|
readonly apiKey?: string;
|
|
4076
4113
|
readonly baseUrl?: string;
|
|
4114
|
+
readonly appBaseUrl?: string;
|
|
4077
4115
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4078
4116
|
readonly region?: string;
|
|
4079
4117
|
readonly sessionId?: string;
|
|
@@ -4152,6 +4190,11 @@ interface OpensteerTargetOptions {
|
|
|
4152
4190
|
readonly description?: string;
|
|
4153
4191
|
readonly captureNetwork?: string;
|
|
4154
4192
|
}
|
|
4193
|
+
interface OpensteerClickOptions extends OpensteerTargetOptions {
|
|
4194
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
4195
|
+
readonly clickCount?: number;
|
|
4196
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
4197
|
+
}
|
|
4155
4198
|
interface OpensteerInputOptions extends OpensteerTargetOptions {
|
|
4156
4199
|
readonly text: string;
|
|
4157
4200
|
readonly pressEnter?: boolean;
|
|
@@ -4262,7 +4305,7 @@ declare class Opensteer {
|
|
|
4262
4305
|
evaluate(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4263
4306
|
evaluateJson(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4264
4307
|
addInitScript(input: string | OpensteerAddInitScriptInput): Promise<OpensteerAddInitScriptOutput>;
|
|
4265
|
-
click(input:
|
|
4308
|
+
click(input: OpensteerClickOptions): Promise<OpensteerActionResult>;
|
|
4266
4309
|
hover(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4267
4310
|
input(input: OpensteerInputOptions): Promise<OpensteerActionResult>;
|
|
4268
4311
|
scroll(input: OpensteerScrollOptions): Promise<OpensteerActionResult>;
|
|
@@ -4330,6 +4373,7 @@ type OpensteerEnvironment = Record<string, string | undefined>;
|
|
|
4330
4373
|
interface OpensteerCloudConfig {
|
|
4331
4374
|
readonly apiKey: string;
|
|
4332
4375
|
readonly baseUrl: string;
|
|
4376
|
+
readonly appBaseUrl?: string;
|
|
4333
4377
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4334
4378
|
}
|
|
4335
4379
|
declare function resolveCloudConfig(input?: {
|
|
@@ -4465,6 +4509,9 @@ declare class OpensteerCloudClient {
|
|
|
4465
4509
|
listSessions(): Promise<unknown>;
|
|
4466
4510
|
getSession(sessionId: string): Promise<OpensteerCloudSessionState>;
|
|
4467
4511
|
issueAccess(sessionId: string, capabilities: readonly OpensteerSessionGrantKind[]): Promise<OpensteerSessionAccessGrantResponse>;
|
|
4512
|
+
getSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4513
|
+
startSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4514
|
+
stopSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4468
4515
|
closeSession(sessionId: string): Promise<void>;
|
|
4469
4516
|
createBrowserProfileImport(input: BrowserProfileImportCreateRequest): Promise<BrowserProfileImportCreateResponse>;
|
|
4470
4517
|
uploadBrowserProfileImportPayload(input: {
|
|
@@ -4666,4 +4713,4 @@ declare function discoverLocalCdpBrowsers(input?: {
|
|
|
4666
4713
|
readonly timeoutMs?: number;
|
|
4667
4714
|
}): Promise<readonly LocalCdpBrowserCandidate[]>;
|
|
4668
4715
|
|
|
4669
|
-
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, type ArtifactPayloadType, type ArtifactScope, type AuthRecipeRecord, type AuthRecipeRegistryStore, type BrowserProfileArchiveFormat, type BrowserProfileCreateRequest, type BrowserProfileDescriptor, type BrowserProfileImportCreateRequest, type BrowserProfileImportCreateResponse, type BrowserProfileImportDescriptor, type BrowserProfileImportStatus, type BrowserProfileListResponse, type BrowserProfileStatus, type CloudBrowserContextConfig, type CloudBrowserExtensionConfig, type CloudBrowserLaunchConfig, type CloudBrowserProfileLaunchPreference, type CloudBrowserProfilePreference, type CloudFingerprintMode, type CloudFingerprintPreference, type CloudGeolocation, type CloudProxyMode, type CloudProxyPreference, type CloudProxyProtocol, type CloudRegistryImportEntry, type CloudRegistryImportRequest, type CloudRegistryImportResponse, type CloudRequestPlanImportEntry, type CloudRequestPlanImportRequest, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, type CloudSessionLaunchConfig, CloudSessionProxy, type CloudSessionProxyOptions, type CloudSessionSourceType, type CloudSessionStatus, type CloudSessionSummary, type CloudSessionVisibilityScope, type CloudViewport, type ContextHop, type CreateFilesystemOpensteerWorkspaceOptions, type CreateTraceRunInput, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, type DescriptorRecord, type DescriptorRegistryStore, type DomActionBridge, type DomActionBridgeProvider, type DomActionOutcome, type DomActionPolicyOperation, type DomActionScrollAlignment, type DomActionScrollOptions, type DomActionSettleOptions, type DomActionTargetInspection, type DomArrayFieldSelector, type DomArrayRowMetadata, type DomArraySelector, type DomBuildPathInput, type DomClickInput, type DomDescriptorPayload, type DomDescriptorRecord, type DomDescriptorStore, type DomExtractArrayRowsInput, type DomExtractFieldSelector, type DomExtractFieldsInput, type DomExtractedArrayRow, type DomHoverInput, type DomInputInput, type DomPath, type DomReadDescriptorInput, type DomResolveTargetInput, type DomRuntime, type DomScrollInput, type DomTargetRef, type DomWriteDescriptorInput, type ElementPath, ElementPathError, type FallbackDecision, type FallbackEvaluationInput, type FallbackPolicy, FilesystemArtifactStore, type FilesystemObservationStore, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListObservationArtifactsInput, type ListObservationEventsInput, type LocalCdpBrowserCandidate, type LocalChromeProfileDescriptor, MATCH_ATTRIBUTE_PRIORITY, type MatchClause, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, Opensteer, type OpensteerAddInitScriptOptions, type OpensteerArtifactReadOptions, type OpensteerArtifactReadResult, type OpensteerArtifactStore, OpensteerAttachAmbiguousError, type OpensteerBrowserCloneOptions, type OpensteerBrowserController, OpensteerBrowserManager, type OpensteerBrowserManagerOptions, type OpensteerBrowserStatus, type OpensteerCaptchaSolveOptions, type OpensteerCaptchaSolveResult, type OpensteerCaptureScriptsOptions, type OpensteerCaptureScriptsResult, OpensteerCloudClient, type OpensteerCloudConfig, type OpensteerCloudProviderOptions, type OpensteerCloudSessionCreateInput, type OpensteerCloudSessionDescriptor, type OpensteerComputerExecuteOptions, type OpensteerComputerExecuteResult, type OpensteerDisconnectableRuntime, type OpensteerEngineName, type OpensteerExtractOptions, type OpensteerExtractionDescriptorPayload, type OpensteerExtractionDescriptorRecord, type OpensteerExtractionDescriptorStore, type OpensteerFetchedRouteResponse, type OpensteerInputOptions, type OpensteerInteractionCaptureOptions, type OpensteerInteractionCaptureResult, type OpensteerInteractionDiffOptions, type OpensteerInteractionDiffResult, type OpensteerInteractionReplayOptions, type OpensteerInteractionReplayResult, type OpensteerInterceptScriptOptions, type OpensteerLiveSessionProvider, type OpensteerLocalProviderOptions, type OpensteerNetworkClearOptions, type OpensteerNetworkClearResult, type OpensteerNetworkDiffOptions, type OpensteerNetworkDiffResult, type OpensteerNetworkMinimizeOptions, type OpensteerNetworkMinimizeResult, type OpensteerNetworkProbeOptions, type OpensteerNetworkProbeResult, type OpensteerNetworkQueryOptions, type OpensteerNetworkQueryResult, type OpensteerNetworkTagOptions, type OpensteerNetworkTagResult, type OpensteerOptions, type OpensteerPolicy, type OpensteerProviderMode, type OpensteerProviderOptions, type OpensteerProviderSource, type OpensteerRawRequestOptions, type OpensteerRawRequestResult, type OpensteerRequestOptions, type OpensteerRequestResult, type OpensteerResolvedProvider, type OpensteerReverseDiscoverOptions, type OpensteerReverseDiscoverResult, type OpensteerReverseExportOptions, type OpensteerReverseExportResult, type OpensteerReversePackageCreateOptions, type OpensteerReversePackageCreateResult, type OpensteerReversePackageGetOptions, type OpensteerReversePackageGetResult, type OpensteerReversePackageListOptions, type OpensteerReversePackageListResult, type OpensteerReversePackagePatchOptions, type OpensteerReversePackagePatchResult, type OpensteerReversePackageRunOptions, type OpensteerReversePackageRunResult, type OpensteerReverseQueryOptions, type OpensteerReverseQueryResult, type OpensteerReverseReportOptions, type OpensteerReverseReportResult, type OpensteerRouteHandlerResult, type OpensteerRouteOptions, type OpensteerRouteRegistration, OpensteerRuntime, type OpensteerRuntimeOptions, type OpensteerScriptBeautifyOptions, type OpensteerScriptBeautifyResult, type OpensteerScriptDeobfuscateOptions, type OpensteerScriptDeobfuscateResult, type OpensteerScriptSandboxOptions, type OpensteerScriptSandboxResult, type OpensteerScrollOptions, type OpensteerSemanticRuntime, OpensteerSessionRuntime, type OpensteerSessionRuntimeOptions, type OpensteerSnapshotOptions, type OpensteerSnapshotResult, type OpensteerTargetOptions, type OpensteerTraceStore, type OpensteerWaitForNetworkOptions, type OpensteerWaitForPageOptions, type OpensteerWorkspaceManifest, type PathNode, type PersistedCloudSessionRecord, type PersistedLocalBrowserSessionRecord, type PersistedSessionRecord, type ProtocolArtifactDelivery, type RecipeRecord, type RecipeRegistryStore, type RegistryProvenance, type RegistryRecord, type ReplayElementPath, type RequestPlanFreshness, type RequestPlanRecord, type RequestPlanRegistryStore, type ResolveRegistryRecordInput, type ResolvedDomTarget, type RetryDecision, type RetryEvaluationInput, type RetryPolicy, type ReverseCaseRecord, type ReverseCaseRegistryStore, type ReversePackageRecord, type ReversePackageRegistryStore, type ReverseReportRecord, type ReverseReportRegistryStore, STABLE_PRIMARY_ATTR_KEYS, type SavedNetworkQueryInput, type SavedNetworkStore, type SettleContext, type SettleDelayInput, type SettleObserver, type SettlePolicy, type SettleTrigger, type StoredArtifactPayload, type StoredArtifactRecord, type StructuralElementAnchor, type StructuredArtifactKind, type SyncBrowserProfileCookiesInput, type TimeoutExecutionContext, type TimeoutPolicy, type TimeoutResolutionInput, type TraceEntryRecord, type TraceRunManifest, type UpdateReverseCaseInput, type WorkspaceBrowserBootstrap, type WorkspaceBrowserManifest, type WorkspaceLiveBrowserRecord, type WriteAuthRecipeInput, type WriteBinaryArtifactInput, type WriteDescriptorInput, type WriteInteractionTraceInput, type WriteRecipeInput, type WriteRequestPlanInput, type WriteReverseCaseInput, type WriteReversePackageInput, type WriteReverseReportInput, type WriteStructuredArtifactInput, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord };
|
|
4716
|
+
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, type ArtifactPayloadType, type ArtifactScope, type AuthRecipeRecord, type AuthRecipeRegistryStore, type BrowserProfileArchiveFormat, type BrowserProfileCreateRequest, type BrowserProfileDescriptor, type BrowserProfileImportCreateRequest, type BrowserProfileImportCreateResponse, type BrowserProfileImportDescriptor, type BrowserProfileImportStatus, type BrowserProfileListResponse, type BrowserProfileStatus, type CloudBrowserContextConfig, type CloudBrowserExtensionConfig, type CloudBrowserLaunchConfig, type CloudBrowserProfileLaunchPreference, type CloudBrowserProfilePreference, type CloudFingerprintMode, type CloudFingerprintPreference, type CloudGeolocation, type CloudProxyMode, type CloudProxyPreference, type CloudProxyProtocol, type CloudRegistryImportEntry, type CloudRegistryImportRequest, type CloudRegistryImportResponse, type CloudRequestPlanImportEntry, type CloudRequestPlanImportRequest, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, type CloudSessionLaunchConfig, CloudSessionProxy, type CloudSessionProxyOptions, type CloudSessionSourceType, type CloudSessionStatus, type CloudSessionSummary, type CloudSessionVisibilityScope, type CloudViewport, type ContextHop, type CreateFilesystemOpensteerWorkspaceOptions, type CreateTraceRunInput, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, type DescriptorRecord, type DescriptorRegistryStore, type DomActionBridge, type DomActionBridgeProvider, type DomActionOutcome, type DomActionPolicyOperation, type DomActionScrollAlignment, type DomActionScrollOptions, type DomActionSettleOptions, type DomActionTargetInspection, type DomArrayFieldSelector, type DomArrayRowMetadata, type DomArraySelector, type DomBuildPathInput, type DomClickInput, type DomDescriptorPayload, type DomDescriptorRecord, type DomDescriptorStore, type DomExtractArrayRowsInput, type DomExtractFieldSelector, type DomExtractFieldsInput, type DomExtractedArrayRow, type DomHoverInput, type DomInputInput, type DomPath, type DomReadDescriptorInput, type DomResolveTargetInput, type DomRuntime, type DomScrollInput, type DomTargetRef, type DomWriteDescriptorInput, type ElementPath, ElementPathError, type FallbackDecision, type FallbackEvaluationInput, type FallbackPolicy, FilesystemArtifactStore, type FilesystemObservationStore, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListObservationArtifactsInput, type ListObservationEventsInput, type LocalCdpBrowserCandidate, type LocalChromeProfileDescriptor, MATCH_ATTRIBUTE_PRIORITY, type MatchClause, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, Opensteer, type OpensteerAddInitScriptOptions, type OpensteerArtifactReadOptions, type OpensteerArtifactReadResult, type OpensteerArtifactStore, OpensteerAttachAmbiguousError, type OpensteerBrowserCloneOptions, type OpensteerBrowserController, OpensteerBrowserManager, type OpensteerBrowserManagerOptions, type OpensteerBrowserStatus, type OpensteerCaptchaSolveOptions, type OpensteerCaptchaSolveResult, type OpensteerCaptureScriptsOptions, type OpensteerCaptureScriptsResult, type OpensteerClickOptions, OpensteerCloudClient, type OpensteerCloudConfig, type OpensteerCloudProviderOptions, type OpensteerCloudSessionCreateInput, type OpensteerCloudSessionDescriptor, type OpensteerComputerExecuteOptions, type OpensteerComputerExecuteResult, type OpensteerDisconnectableRuntime, type OpensteerEngineName, type OpensteerExtractOptions, type OpensteerExtractionDescriptorPayload, type OpensteerExtractionDescriptorRecord, type OpensteerExtractionDescriptorStore, type OpensteerFetchedRouteResponse, type OpensteerInputOptions, type OpensteerInteractionCaptureOptions, type OpensteerInteractionCaptureResult, type OpensteerInteractionDiffOptions, type OpensteerInteractionDiffResult, type OpensteerInteractionReplayOptions, type OpensteerInteractionReplayResult, type OpensteerInterceptScriptOptions, type OpensteerLiveSessionProvider, type OpensteerLocalProviderOptions, type OpensteerNetworkClearOptions, type OpensteerNetworkClearResult, type OpensteerNetworkDiffOptions, type OpensteerNetworkDiffResult, type OpensteerNetworkMinimizeOptions, type OpensteerNetworkMinimizeResult, type OpensteerNetworkProbeOptions, type OpensteerNetworkProbeResult, type OpensteerNetworkQueryOptions, type OpensteerNetworkQueryResult, type OpensteerNetworkTagOptions, type OpensteerNetworkTagResult, type OpensteerOptions, type OpensteerPolicy, type OpensteerProviderMode, type OpensteerProviderOptions, type OpensteerProviderSource, type OpensteerRawRequestOptions, type OpensteerRawRequestResult, type OpensteerRequestOptions, type OpensteerRequestResult, type OpensteerResolvedProvider, type OpensteerReverseDiscoverOptions, type OpensteerReverseDiscoverResult, type OpensteerReverseExportOptions, type OpensteerReverseExportResult, type OpensteerReversePackageCreateOptions, type OpensteerReversePackageCreateResult, type OpensteerReversePackageGetOptions, type OpensteerReversePackageGetResult, type OpensteerReversePackageListOptions, type OpensteerReversePackageListResult, type OpensteerReversePackagePatchOptions, type OpensteerReversePackagePatchResult, type OpensteerReversePackageRunOptions, type OpensteerReversePackageRunResult, type OpensteerReverseQueryOptions, type OpensteerReverseQueryResult, type OpensteerReverseReportOptions, type OpensteerReverseReportResult, type OpensteerRouteHandlerResult, type OpensteerRouteOptions, type OpensteerRouteRegistration, OpensteerRuntime, type OpensteerRuntimeOptions, type OpensteerScriptBeautifyOptions, type OpensteerScriptBeautifyResult, type OpensteerScriptDeobfuscateOptions, type OpensteerScriptDeobfuscateResult, type OpensteerScriptSandboxOptions, type OpensteerScriptSandboxResult, type OpensteerScrollOptions, type OpensteerSemanticRuntime, OpensteerSessionRuntime, type OpensteerSessionRuntimeOptions, type OpensteerSnapshotOptions, type OpensteerSnapshotResult, type OpensteerTargetOptions, type OpensteerTraceStore, type OpensteerWaitForNetworkOptions, type OpensteerWaitForPageOptions, type OpensteerWorkspaceManifest, type PathNode, type PersistedCloudSessionRecord, type PersistedLocalBrowserSessionRecord, type PersistedSessionRecord, type ProtocolArtifactDelivery, type RecipeRecord, type RecipeRegistryStore, type RegistryProvenance, type RegistryRecord, type ReplayElementPath, type RequestPlanFreshness, type RequestPlanRecord, type RequestPlanRegistryStore, type ResolveRegistryRecordInput, type ResolvedDomTarget, type RetryDecision, type RetryEvaluationInput, type RetryPolicy, type ReverseCaseRecord, type ReverseCaseRegistryStore, type ReversePackageRecord, type ReversePackageRegistryStore, type ReverseReportRecord, type ReverseReportRegistryStore, STABLE_PRIMARY_ATTR_KEYS, type SavedNetworkQueryInput, type SavedNetworkStore, type SettleContext, type SettleDelayInput, type SettleObserver, type SettlePolicy, type SettleTrigger, type StoredArtifactPayload, type StoredArtifactRecord, type StructuralElementAnchor, type StructuredArtifactKind, type SyncBrowserProfileCookiesInput, type TimeoutExecutionContext, type TimeoutPolicy, type TimeoutResolutionInput, type TraceEntryRecord, type TraceRunManifest, type UpdateReverseCaseInput, type WorkspaceBrowserBootstrap, type WorkspaceBrowserManifest, type WorkspaceLiveBrowserRecord, type WriteAuthRecipeInput, type WriteBinaryArtifactInput, type WriteDescriptorInput, type WriteInteractionTraceInput, type WriteRecipeInput, type WriteRequestPlanInput, type WriteReverseCaseInput, type WriteReversePackageInput, type WriteReverseReportInput, type WriteStructuredArtifactInput, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord };
|
package/dist/index.d.ts
CHANGED
|
@@ -397,6 +397,27 @@ interface BrowserCapabilities {
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
+
interface PostLoadTrackerSnapshot {
|
|
401
|
+
readonly lastTrackedNetworkActivityAt: number;
|
|
402
|
+
readonly trackedPendingFetches: number;
|
|
403
|
+
readonly trackedPendingXhrs: number;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface ActionBoundarySnapshot {
|
|
407
|
+
readonly pageRef: PageRef;
|
|
408
|
+
readonly documentRef: DocumentRef;
|
|
409
|
+
readonly url?: string;
|
|
410
|
+
readonly tracker?: PostLoadTrackerSnapshot;
|
|
411
|
+
}
|
|
412
|
+
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
413
|
+
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
414
|
+
interface ActionBoundaryOutcome {
|
|
415
|
+
readonly trigger: ActionBoundarySettleTrigger;
|
|
416
|
+
readonly crossDocument: boolean;
|
|
417
|
+
readonly bootstrapSettled: boolean;
|
|
418
|
+
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
419
|
+
}
|
|
420
|
+
|
|
400
421
|
type ConsoleLevel = "debug" | "log" | "info" | "warn" | "error" | "trace";
|
|
401
422
|
interface StepEventBase {
|
|
402
423
|
readonly eventId: string;
|
|
@@ -717,12 +738,22 @@ interface BrowserInspector {
|
|
|
717
738
|
readonly frameRef?: FrameRef;
|
|
718
739
|
readonly documentRef?: DocumentRef;
|
|
719
740
|
}): Promise<DomSnapshot>;
|
|
741
|
+
getActionBoundarySnapshot(input: {
|
|
742
|
+
readonly pageRef: PageRef;
|
|
743
|
+
}): Promise<ActionBoundarySnapshot>;
|
|
720
744
|
waitForVisualStability(input: {
|
|
721
745
|
readonly pageRef: PageRef;
|
|
722
746
|
readonly timeoutMs?: number;
|
|
723
747
|
readonly settleMs?: number;
|
|
724
748
|
readonly scope?: VisualStabilityScope;
|
|
725
749
|
}): Promise<void>;
|
|
750
|
+
waitForPostLoadQuiet(input: {
|
|
751
|
+
readonly pageRef: PageRef;
|
|
752
|
+
readonly timeoutMs?: number;
|
|
753
|
+
readonly quietMs?: number;
|
|
754
|
+
readonly captureWindowMs?: number;
|
|
755
|
+
readonly signal?: AbortSignal;
|
|
756
|
+
}): Promise<void>;
|
|
726
757
|
readText(input: NodeLocator): Promise<string | null>;
|
|
727
758
|
readAttributes(input: NodeLocator): Promise<readonly {
|
|
728
759
|
readonly name: string;
|
|
@@ -775,20 +806,6 @@ interface BrowserInstrumentation {
|
|
|
775
806
|
interface BrowserCoreEngine extends BrowserExecutor, BrowserInspector, SessionTransportExecutor, BrowserInstrumentation {
|
|
776
807
|
}
|
|
777
808
|
|
|
778
|
-
interface ActionBoundarySnapshot {
|
|
779
|
-
readonly pageRef: PageRef;
|
|
780
|
-
readonly documentRef: DocumentRef;
|
|
781
|
-
readonly url?: string;
|
|
782
|
-
}
|
|
783
|
-
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
784
|
-
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
785
|
-
interface ActionBoundaryOutcome {
|
|
786
|
-
readonly trigger: ActionBoundarySettleTrigger;
|
|
787
|
-
readonly crossDocument: boolean;
|
|
788
|
-
readonly bootstrapSettled: boolean;
|
|
789
|
-
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
809
|
interface BodyPayload {
|
|
793
810
|
readonly data: string;
|
|
794
811
|
readonly encoding: BodyPayloadEncoding;
|
|
@@ -1322,6 +1339,8 @@ type OpensteerCapability = (typeof opensteerCapabilities)[number];
|
|
|
1322
1339
|
|
|
1323
1340
|
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
1324
1341
|
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
1342
|
+
declare const cloudSessionRecordingStatuses: readonly ["idle", "recording", "completed", "failed"];
|
|
1343
|
+
type CloudSessionRecordingStatus = (typeof cloudSessionRecordingStatuses)[number];
|
|
1325
1344
|
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
1326
1345
|
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
1327
1346
|
type CloudSessionVisibilityScope = "team" | "owner";
|
|
@@ -1413,6 +1432,21 @@ interface CloudSessionSummary {
|
|
|
1413
1432
|
readonly sourceRef?: string;
|
|
1414
1433
|
readonly label?: string;
|
|
1415
1434
|
}
|
|
1435
|
+
interface CloudSessionRecordingResult {
|
|
1436
|
+
readonly fileName: string;
|
|
1437
|
+
readonly script: string;
|
|
1438
|
+
readonly actionCount: number;
|
|
1439
|
+
}
|
|
1440
|
+
interface CloudSessionRecordingState {
|
|
1441
|
+
readonly sessionId: string;
|
|
1442
|
+
readonly status: CloudSessionRecordingStatus;
|
|
1443
|
+
readonly actionCount: number;
|
|
1444
|
+
readonly startedAt?: number;
|
|
1445
|
+
readonly stoppedAt?: number;
|
|
1446
|
+
readonly updatedAt: number;
|
|
1447
|
+
readonly error?: string;
|
|
1448
|
+
readonly result?: CloudSessionRecordingResult;
|
|
1449
|
+
}
|
|
1416
1450
|
interface CloudSelectorCacheImportEntry {
|
|
1417
1451
|
readonly workspace: string;
|
|
1418
1452
|
readonly method: string;
|
|
@@ -1945,6 +1979,9 @@ interface OpensteerPageSnapshotOutput {
|
|
|
1945
1979
|
}
|
|
1946
1980
|
interface OpensteerDomClickInput {
|
|
1947
1981
|
readonly target: OpensteerTargetInput;
|
|
1982
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
1983
|
+
readonly clickCount?: number;
|
|
1984
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
1948
1985
|
readonly persistAsDescription?: string;
|
|
1949
1986
|
readonly captureNetwork?: string;
|
|
1950
1987
|
}
|
|
@@ -4074,6 +4111,7 @@ interface OpensteerCloudProviderOptions {
|
|
|
4074
4111
|
readonly mode: "cloud";
|
|
4075
4112
|
readonly apiKey?: string;
|
|
4076
4113
|
readonly baseUrl?: string;
|
|
4114
|
+
readonly appBaseUrl?: string;
|
|
4077
4115
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4078
4116
|
readonly region?: string;
|
|
4079
4117
|
readonly sessionId?: string;
|
|
@@ -4152,6 +4190,11 @@ interface OpensteerTargetOptions {
|
|
|
4152
4190
|
readonly description?: string;
|
|
4153
4191
|
readonly captureNetwork?: string;
|
|
4154
4192
|
}
|
|
4193
|
+
interface OpensteerClickOptions extends OpensteerTargetOptions {
|
|
4194
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
4195
|
+
readonly clickCount?: number;
|
|
4196
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
4197
|
+
}
|
|
4155
4198
|
interface OpensteerInputOptions extends OpensteerTargetOptions {
|
|
4156
4199
|
readonly text: string;
|
|
4157
4200
|
readonly pressEnter?: boolean;
|
|
@@ -4262,7 +4305,7 @@ declare class Opensteer {
|
|
|
4262
4305
|
evaluate(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4263
4306
|
evaluateJson(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4264
4307
|
addInitScript(input: string | OpensteerAddInitScriptInput): Promise<OpensteerAddInitScriptOutput>;
|
|
4265
|
-
click(input:
|
|
4308
|
+
click(input: OpensteerClickOptions): Promise<OpensteerActionResult>;
|
|
4266
4309
|
hover(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4267
4310
|
input(input: OpensteerInputOptions): Promise<OpensteerActionResult>;
|
|
4268
4311
|
scroll(input: OpensteerScrollOptions): Promise<OpensteerActionResult>;
|
|
@@ -4330,6 +4373,7 @@ type OpensteerEnvironment = Record<string, string | undefined>;
|
|
|
4330
4373
|
interface OpensteerCloudConfig {
|
|
4331
4374
|
readonly apiKey: string;
|
|
4332
4375
|
readonly baseUrl: string;
|
|
4376
|
+
readonly appBaseUrl?: string;
|
|
4333
4377
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4334
4378
|
}
|
|
4335
4379
|
declare function resolveCloudConfig(input?: {
|
|
@@ -4465,6 +4509,9 @@ declare class OpensteerCloudClient {
|
|
|
4465
4509
|
listSessions(): Promise<unknown>;
|
|
4466
4510
|
getSession(sessionId: string): Promise<OpensteerCloudSessionState>;
|
|
4467
4511
|
issueAccess(sessionId: string, capabilities: readonly OpensteerSessionGrantKind[]): Promise<OpensteerSessionAccessGrantResponse>;
|
|
4512
|
+
getSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4513
|
+
startSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4514
|
+
stopSessionRecording(sessionId: string): Promise<CloudSessionRecordingState>;
|
|
4468
4515
|
closeSession(sessionId: string): Promise<void>;
|
|
4469
4516
|
createBrowserProfileImport(input: BrowserProfileImportCreateRequest): Promise<BrowserProfileImportCreateResponse>;
|
|
4470
4517
|
uploadBrowserProfileImportPayload(input: {
|
|
@@ -4666,4 +4713,4 @@ declare function discoverLocalCdpBrowsers(input?: {
|
|
|
4666
4713
|
readonly timeoutMs?: number;
|
|
4667
4714
|
}): Promise<readonly LocalCdpBrowserCandidate[]>;
|
|
4668
4715
|
|
|
4669
|
-
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, type ArtifactPayloadType, type ArtifactScope, type AuthRecipeRecord, type AuthRecipeRegistryStore, type BrowserProfileArchiveFormat, type BrowserProfileCreateRequest, type BrowserProfileDescriptor, type BrowserProfileImportCreateRequest, type BrowserProfileImportCreateResponse, type BrowserProfileImportDescriptor, type BrowserProfileImportStatus, type BrowserProfileListResponse, type BrowserProfileStatus, type CloudBrowserContextConfig, type CloudBrowserExtensionConfig, type CloudBrowserLaunchConfig, type CloudBrowserProfileLaunchPreference, type CloudBrowserProfilePreference, type CloudFingerprintMode, type CloudFingerprintPreference, type CloudGeolocation, type CloudProxyMode, type CloudProxyPreference, type CloudProxyProtocol, type CloudRegistryImportEntry, type CloudRegistryImportRequest, type CloudRegistryImportResponse, type CloudRequestPlanImportEntry, type CloudRequestPlanImportRequest, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, type CloudSessionLaunchConfig, CloudSessionProxy, type CloudSessionProxyOptions, type CloudSessionSourceType, type CloudSessionStatus, type CloudSessionSummary, type CloudSessionVisibilityScope, type CloudViewport, type ContextHop, type CreateFilesystemOpensteerWorkspaceOptions, type CreateTraceRunInput, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, type DescriptorRecord, type DescriptorRegistryStore, type DomActionBridge, type DomActionBridgeProvider, type DomActionOutcome, type DomActionPolicyOperation, type DomActionScrollAlignment, type DomActionScrollOptions, type DomActionSettleOptions, type DomActionTargetInspection, type DomArrayFieldSelector, type DomArrayRowMetadata, type DomArraySelector, type DomBuildPathInput, type DomClickInput, type DomDescriptorPayload, type DomDescriptorRecord, type DomDescriptorStore, type DomExtractArrayRowsInput, type DomExtractFieldSelector, type DomExtractFieldsInput, type DomExtractedArrayRow, type DomHoverInput, type DomInputInput, type DomPath, type DomReadDescriptorInput, type DomResolveTargetInput, type DomRuntime, type DomScrollInput, type DomTargetRef, type DomWriteDescriptorInput, type ElementPath, ElementPathError, type FallbackDecision, type FallbackEvaluationInput, type FallbackPolicy, FilesystemArtifactStore, type FilesystemObservationStore, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListObservationArtifactsInput, type ListObservationEventsInput, type LocalCdpBrowserCandidate, type LocalChromeProfileDescriptor, MATCH_ATTRIBUTE_PRIORITY, type MatchClause, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, Opensteer, type OpensteerAddInitScriptOptions, type OpensteerArtifactReadOptions, type OpensteerArtifactReadResult, type OpensteerArtifactStore, OpensteerAttachAmbiguousError, type OpensteerBrowserCloneOptions, type OpensteerBrowserController, OpensteerBrowserManager, type OpensteerBrowserManagerOptions, type OpensteerBrowserStatus, type OpensteerCaptchaSolveOptions, type OpensteerCaptchaSolveResult, type OpensteerCaptureScriptsOptions, type OpensteerCaptureScriptsResult, OpensteerCloudClient, type OpensteerCloudConfig, type OpensteerCloudProviderOptions, type OpensteerCloudSessionCreateInput, type OpensteerCloudSessionDescriptor, type OpensteerComputerExecuteOptions, type OpensteerComputerExecuteResult, type OpensteerDisconnectableRuntime, type OpensteerEngineName, type OpensteerExtractOptions, type OpensteerExtractionDescriptorPayload, type OpensteerExtractionDescriptorRecord, type OpensteerExtractionDescriptorStore, type OpensteerFetchedRouteResponse, type OpensteerInputOptions, type OpensteerInteractionCaptureOptions, type OpensteerInteractionCaptureResult, type OpensteerInteractionDiffOptions, type OpensteerInteractionDiffResult, type OpensteerInteractionReplayOptions, type OpensteerInteractionReplayResult, type OpensteerInterceptScriptOptions, type OpensteerLiveSessionProvider, type OpensteerLocalProviderOptions, type OpensteerNetworkClearOptions, type OpensteerNetworkClearResult, type OpensteerNetworkDiffOptions, type OpensteerNetworkDiffResult, type OpensteerNetworkMinimizeOptions, type OpensteerNetworkMinimizeResult, type OpensteerNetworkProbeOptions, type OpensteerNetworkProbeResult, type OpensteerNetworkQueryOptions, type OpensteerNetworkQueryResult, type OpensteerNetworkTagOptions, type OpensteerNetworkTagResult, type OpensteerOptions, type OpensteerPolicy, type OpensteerProviderMode, type OpensteerProviderOptions, type OpensteerProviderSource, type OpensteerRawRequestOptions, type OpensteerRawRequestResult, type OpensteerRequestOptions, type OpensteerRequestResult, type OpensteerResolvedProvider, type OpensteerReverseDiscoverOptions, type OpensteerReverseDiscoverResult, type OpensteerReverseExportOptions, type OpensteerReverseExportResult, type OpensteerReversePackageCreateOptions, type OpensteerReversePackageCreateResult, type OpensteerReversePackageGetOptions, type OpensteerReversePackageGetResult, type OpensteerReversePackageListOptions, type OpensteerReversePackageListResult, type OpensteerReversePackagePatchOptions, type OpensteerReversePackagePatchResult, type OpensteerReversePackageRunOptions, type OpensteerReversePackageRunResult, type OpensteerReverseQueryOptions, type OpensteerReverseQueryResult, type OpensteerReverseReportOptions, type OpensteerReverseReportResult, type OpensteerRouteHandlerResult, type OpensteerRouteOptions, type OpensteerRouteRegistration, OpensteerRuntime, type OpensteerRuntimeOptions, type OpensteerScriptBeautifyOptions, type OpensteerScriptBeautifyResult, type OpensteerScriptDeobfuscateOptions, type OpensteerScriptDeobfuscateResult, type OpensteerScriptSandboxOptions, type OpensteerScriptSandboxResult, type OpensteerScrollOptions, type OpensteerSemanticRuntime, OpensteerSessionRuntime, type OpensteerSessionRuntimeOptions, type OpensteerSnapshotOptions, type OpensteerSnapshotResult, type OpensteerTargetOptions, type OpensteerTraceStore, type OpensteerWaitForNetworkOptions, type OpensteerWaitForPageOptions, type OpensteerWorkspaceManifest, type PathNode, type PersistedCloudSessionRecord, type PersistedLocalBrowserSessionRecord, type PersistedSessionRecord, type ProtocolArtifactDelivery, type RecipeRecord, type RecipeRegistryStore, type RegistryProvenance, type RegistryRecord, type ReplayElementPath, type RequestPlanFreshness, type RequestPlanRecord, type RequestPlanRegistryStore, type ResolveRegistryRecordInput, type ResolvedDomTarget, type RetryDecision, type RetryEvaluationInput, type RetryPolicy, type ReverseCaseRecord, type ReverseCaseRegistryStore, type ReversePackageRecord, type ReversePackageRegistryStore, type ReverseReportRecord, type ReverseReportRegistryStore, STABLE_PRIMARY_ATTR_KEYS, type SavedNetworkQueryInput, type SavedNetworkStore, type SettleContext, type SettleDelayInput, type SettleObserver, type SettlePolicy, type SettleTrigger, type StoredArtifactPayload, type StoredArtifactRecord, type StructuralElementAnchor, type StructuredArtifactKind, type SyncBrowserProfileCookiesInput, type TimeoutExecutionContext, type TimeoutPolicy, type TimeoutResolutionInput, type TraceEntryRecord, type TraceRunManifest, type UpdateReverseCaseInput, type WorkspaceBrowserBootstrap, type WorkspaceBrowserManifest, type WorkspaceLiveBrowserRecord, type WriteAuthRecipeInput, type WriteBinaryArtifactInput, type WriteDescriptorInput, type WriteInteractionTraceInput, type WriteRecipeInput, type WriteRequestPlanInput, type WriteReverseCaseInput, type WriteReversePackageInput, type WriteReverseReportInput, type WriteStructuredArtifactInput, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord };
|
|
4716
|
+
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, type ArtifactPayloadType, type ArtifactScope, type AuthRecipeRecord, type AuthRecipeRegistryStore, type BrowserProfileArchiveFormat, type BrowserProfileCreateRequest, type BrowserProfileDescriptor, type BrowserProfileImportCreateRequest, type BrowserProfileImportCreateResponse, type BrowserProfileImportDescriptor, type BrowserProfileImportStatus, type BrowserProfileListResponse, type BrowserProfileStatus, type CloudBrowserContextConfig, type CloudBrowserExtensionConfig, type CloudBrowserLaunchConfig, type CloudBrowserProfileLaunchPreference, type CloudBrowserProfilePreference, type CloudFingerprintMode, type CloudFingerprintPreference, type CloudGeolocation, type CloudProxyMode, type CloudProxyPreference, type CloudProxyProtocol, type CloudRegistryImportEntry, type CloudRegistryImportRequest, type CloudRegistryImportResponse, type CloudRequestPlanImportEntry, type CloudRequestPlanImportRequest, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, type CloudSessionLaunchConfig, CloudSessionProxy, type CloudSessionProxyOptions, type CloudSessionSourceType, type CloudSessionStatus, type CloudSessionSummary, type CloudSessionVisibilityScope, type CloudViewport, type ContextHop, type CreateFilesystemOpensteerWorkspaceOptions, type CreateTraceRunInput, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, type DescriptorRecord, type DescriptorRegistryStore, type DomActionBridge, type DomActionBridgeProvider, type DomActionOutcome, type DomActionPolicyOperation, type DomActionScrollAlignment, type DomActionScrollOptions, type DomActionSettleOptions, type DomActionTargetInspection, type DomArrayFieldSelector, type DomArrayRowMetadata, type DomArraySelector, type DomBuildPathInput, type DomClickInput, type DomDescriptorPayload, type DomDescriptorRecord, type DomDescriptorStore, type DomExtractArrayRowsInput, type DomExtractFieldSelector, type DomExtractFieldsInput, type DomExtractedArrayRow, type DomHoverInput, type DomInputInput, type DomPath, type DomReadDescriptorInput, type DomResolveTargetInput, type DomRuntime, type DomScrollInput, type DomTargetRef, type DomWriteDescriptorInput, type ElementPath, ElementPathError, type FallbackDecision, type FallbackEvaluationInput, type FallbackPolicy, FilesystemArtifactStore, type FilesystemObservationStore, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListObservationArtifactsInput, type ListObservationEventsInput, type LocalCdpBrowserCandidate, type LocalChromeProfileDescriptor, MATCH_ATTRIBUTE_PRIORITY, type MatchClause, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, Opensteer, type OpensteerAddInitScriptOptions, type OpensteerArtifactReadOptions, type OpensteerArtifactReadResult, type OpensteerArtifactStore, OpensteerAttachAmbiguousError, type OpensteerBrowserCloneOptions, type OpensteerBrowserController, OpensteerBrowserManager, type OpensteerBrowserManagerOptions, type OpensteerBrowserStatus, type OpensteerCaptchaSolveOptions, type OpensteerCaptchaSolveResult, type OpensteerCaptureScriptsOptions, type OpensteerCaptureScriptsResult, type OpensteerClickOptions, OpensteerCloudClient, type OpensteerCloudConfig, type OpensteerCloudProviderOptions, type OpensteerCloudSessionCreateInput, type OpensteerCloudSessionDescriptor, type OpensteerComputerExecuteOptions, type OpensteerComputerExecuteResult, type OpensteerDisconnectableRuntime, type OpensteerEngineName, type OpensteerExtractOptions, type OpensteerExtractionDescriptorPayload, type OpensteerExtractionDescriptorRecord, type OpensteerExtractionDescriptorStore, type OpensteerFetchedRouteResponse, type OpensteerInputOptions, type OpensteerInteractionCaptureOptions, type OpensteerInteractionCaptureResult, type OpensteerInteractionDiffOptions, type OpensteerInteractionDiffResult, type OpensteerInteractionReplayOptions, type OpensteerInteractionReplayResult, type OpensteerInterceptScriptOptions, type OpensteerLiveSessionProvider, type OpensteerLocalProviderOptions, type OpensteerNetworkClearOptions, type OpensteerNetworkClearResult, type OpensteerNetworkDiffOptions, type OpensteerNetworkDiffResult, type OpensteerNetworkMinimizeOptions, type OpensteerNetworkMinimizeResult, type OpensteerNetworkProbeOptions, type OpensteerNetworkProbeResult, type OpensteerNetworkQueryOptions, type OpensteerNetworkQueryResult, type OpensteerNetworkTagOptions, type OpensteerNetworkTagResult, type OpensteerOptions, type OpensteerPolicy, type OpensteerProviderMode, type OpensteerProviderOptions, type OpensteerProviderSource, type OpensteerRawRequestOptions, type OpensteerRawRequestResult, type OpensteerRequestOptions, type OpensteerRequestResult, type OpensteerResolvedProvider, type OpensteerReverseDiscoverOptions, type OpensteerReverseDiscoverResult, type OpensteerReverseExportOptions, type OpensteerReverseExportResult, type OpensteerReversePackageCreateOptions, type OpensteerReversePackageCreateResult, type OpensteerReversePackageGetOptions, type OpensteerReversePackageGetResult, type OpensteerReversePackageListOptions, type OpensteerReversePackageListResult, type OpensteerReversePackagePatchOptions, type OpensteerReversePackagePatchResult, type OpensteerReversePackageRunOptions, type OpensteerReversePackageRunResult, type OpensteerReverseQueryOptions, type OpensteerReverseQueryResult, type OpensteerReverseReportOptions, type OpensteerReverseReportResult, type OpensteerRouteHandlerResult, type OpensteerRouteOptions, type OpensteerRouteRegistration, OpensteerRuntime, type OpensteerRuntimeOptions, type OpensteerScriptBeautifyOptions, type OpensteerScriptBeautifyResult, type OpensteerScriptDeobfuscateOptions, type OpensteerScriptDeobfuscateResult, type OpensteerScriptSandboxOptions, type OpensteerScriptSandboxResult, type OpensteerScrollOptions, type OpensteerSemanticRuntime, OpensteerSessionRuntime, type OpensteerSessionRuntimeOptions, type OpensteerSnapshotOptions, type OpensteerSnapshotResult, type OpensteerTargetOptions, type OpensteerTraceStore, type OpensteerWaitForNetworkOptions, type OpensteerWaitForPageOptions, type OpensteerWorkspaceManifest, type PathNode, type PersistedCloudSessionRecord, type PersistedLocalBrowserSessionRecord, type PersistedSessionRecord, type ProtocolArtifactDelivery, type RecipeRecord, type RecipeRegistryStore, type RegistryProvenance, type RegistryRecord, type ReplayElementPath, type RequestPlanFreshness, type RequestPlanRecord, type RequestPlanRegistryStore, type ResolveRegistryRecordInput, type ResolvedDomTarget, type RetryDecision, type RetryEvaluationInput, type RetryPolicy, type ReverseCaseRecord, type ReverseCaseRegistryStore, type ReversePackageRecord, type ReversePackageRegistryStore, type ReverseReportRecord, type ReverseReportRegistryStore, STABLE_PRIMARY_ATTR_KEYS, type SavedNetworkQueryInput, type SavedNetworkStore, type SettleContext, type SettleDelayInput, type SettleObserver, type SettlePolicy, type SettleTrigger, type StoredArtifactPayload, type StoredArtifactRecord, type StructuralElementAnchor, type StructuredArtifactKind, type SyncBrowserProfileCookiesInput, type TimeoutExecutionContext, type TimeoutPolicy, type TimeoutResolutionInput, type TraceEntryRecord, type TraceRunManifest, type UpdateReverseCaseInput, type WorkspaceBrowserBootstrap, type WorkspaceBrowserManifest, type WorkspaceLiveBrowserRecord, type WriteAuthRecipeInput, type WriteBinaryArtifactInput, type WriteDescriptorInput, type WriteInteractionTraceInput, type WriteRecipeInput, type WriteRequestPlanInput, type WriteReverseCaseInput, type WriteReversePackageInput, type WriteReverseReportInput, type WriteStructuredArtifactInput, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveOpensteerEnvironment, resolveOpensteerRuntimeConfig, createOpensteerSemanticRuntime, OpensteerBrowserManager } from './chunk-
|
|
2
|
-
export { CloudSessionProxy, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, ElementPathError, MATCH_ATTRIBUTE_PRIORITY, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OpensteerAttachAmbiguousError, OpensteerBrowserManager, OpensteerCloudClient, OpensteerRuntime, OpensteerSessionRuntime, STABLE_PRIMARY_ATTR_KEYS, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord } from './chunk-
|
|
1
|
+
import { resolveOpensteerEnvironment, resolveOpensteerRuntimeConfig, createOpensteerSemanticRuntime, OpensteerBrowserManager } from './chunk-33FDEOQY.js';
|
|
2
|
+
export { CloudSessionProxy, DEFAULT_OPENSTEER_ENGINE, DEFERRED_MATCH_ATTR_KEYS, ElementPathError, MATCH_ATTRIBUTE_PRIORITY, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OpensteerAttachAmbiguousError, OpensteerBrowserManager, OpensteerCloudClient, OpensteerRuntime, OpensteerSessionRuntime, STABLE_PRIMARY_ATTR_KEYS, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createArtifactStore, createDomDescriptorStore, createDomRuntime, createFilesystemOpensteerWorkspace, createObservationStore, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, hashDomDescriptorDescription, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, manifestToExternalBinaryLocation, normalizeExtractedValue, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeOpensteerProviderMode, normalizeWorkspaceId, parseDomDescriptorRecord, parseExtractionDescriptorRecord, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord } from './chunk-33FDEOQY.js';
|
|
3
3
|
|
|
4
4
|
// src/sdk/opensteer.ts
|
|
5
5
|
var Opensteer = class {
|
|
@@ -90,7 +90,13 @@ var Opensteer = class {
|
|
|
90
90
|
return this.runtime.addInitScript(normalized);
|
|
91
91
|
}
|
|
92
92
|
async click(input) {
|
|
93
|
-
const
|
|
93
|
+
const { button, clickCount, modifiers, ...target } = input;
|
|
94
|
+
const normalized = {
|
|
95
|
+
...normalizeTargetOptions(target),
|
|
96
|
+
...button === void 0 ? {} : { button },
|
|
97
|
+
...clickCount === void 0 ? {} : { clickCount },
|
|
98
|
+
...modifiers === void 0 ? {} : { modifiers }
|
|
99
|
+
};
|
|
94
100
|
return this.runtime.click(normalized);
|
|
95
101
|
}
|
|
96
102
|
async hover(input) {
|