opensteer 0.8.9 → 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-RO6WAWWG.js → chunk-33FDEOQY.js} +1973 -55
- package/dist/chunk-33FDEOQY.js.map +1 -0
- package/dist/cli/bin.cjs +2474 -169
- package/dist/cli/bin.cjs.map +1 -1
- package/dist/cli/bin.js +398 -10
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.cjs +206 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -20
- package/dist/index.d.ts +82 -20
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/skills/opensteer/SKILL.md +33 -14
- package/skills/opensteer/references/request-workflow.md +312 -193
- package/skills/opensteer/references/sdk-reference.md +102 -14
- package/skills/recorder/SKILL.md +54 -0
- package/skills/recorder/references/recorder-reference.md +71 -0
- package/dist/chunk-RO6WAWWG.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,19 +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
|
-
}
|
|
782
|
-
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
783
|
-
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
784
|
-
interface ActionBoundaryOutcome {
|
|
785
|
-
readonly trigger: ActionBoundarySettleTrigger;
|
|
786
|
-
readonly crossDocument: boolean;
|
|
787
|
-
readonly bootstrapSettled: boolean;
|
|
788
|
-
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
809
|
interface BodyPayload {
|
|
792
810
|
readonly data: string;
|
|
793
811
|
readonly encoding: BodyPayloadEncoding;
|
|
@@ -1321,6 +1339,8 @@ type OpensteerCapability = (typeof opensteerCapabilities)[number];
|
|
|
1321
1339
|
|
|
1322
1340
|
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
1323
1341
|
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
1342
|
+
declare const cloudSessionRecordingStatuses: readonly ["idle", "recording", "completed", "failed"];
|
|
1343
|
+
type CloudSessionRecordingStatus = (typeof cloudSessionRecordingStatuses)[number];
|
|
1324
1344
|
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
1325
1345
|
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
1326
1346
|
type CloudSessionVisibilityScope = "team" | "owner";
|
|
@@ -1412,6 +1432,21 @@ interface CloudSessionSummary {
|
|
|
1412
1432
|
readonly sourceRef?: string;
|
|
1413
1433
|
readonly label?: string;
|
|
1414
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
|
+
}
|
|
1415
1450
|
interface CloudSelectorCacheImportEntry {
|
|
1416
1451
|
readonly workspace: string;
|
|
1417
1452
|
readonly method: string;
|
|
@@ -1944,6 +1979,9 @@ interface OpensteerPageSnapshotOutput {
|
|
|
1944
1979
|
}
|
|
1945
1980
|
interface OpensteerDomClickInput {
|
|
1946
1981
|
readonly target: OpensteerTargetInput;
|
|
1982
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
1983
|
+
readonly clickCount?: number;
|
|
1984
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
1947
1985
|
readonly persistAsDescription?: string;
|
|
1948
1986
|
readonly captureNetwork?: string;
|
|
1949
1987
|
}
|
|
@@ -2065,8 +2103,9 @@ interface OpensteerComputerExecuteOutput {
|
|
|
2065
2103
|
declare const opensteerSemanticOperationNames: readonly ["session.open", "page.list", "page.new", "page.activate", "page.close", "page.goto", "page.evaluate", "page.add-init-script", "page.snapshot", "dom.click", "dom.hover", "dom.input", "dom.scroll", "dom.extract", "network.query", "network.tag", "network.clear", "network.minimize", "network.diff", "network.probe", "reverse.discover", "reverse.query", "reverse.package.create", "reverse.package.run", "reverse.export", "reverse.report", "reverse.package.get", "reverse.package.list", "reverse.package.patch", "interaction.capture", "interaction.get", "interaction.diff", "interaction.replay", "artifact.read", "inspect.cookies", "inspect.storage", "scripts.capture", "scripts.beautify", "scripts.deobfuscate", "scripts.sandbox", "captcha.solve", "request.raw", "request-plan.infer", "request-plan.write", "request-plan.get", "request-plan.list", "recipe.write", "recipe.get", "recipe.list", "recipe.run", "auth-recipe.write", "auth-recipe.get", "auth-recipe.list", "auth-recipe.run", "request.execute", "computer.execute", "session.close"];
|
|
2066
2104
|
type OpensteerSemanticOperationName = (typeof opensteerSemanticOperationNames)[number];
|
|
2067
2105
|
|
|
2068
|
-
declare const opensteerSessionGrantKinds: readonly ["automation", "view", "cdp"];
|
|
2106
|
+
declare const opensteerSessionGrantKinds: readonly ["semantic", "automation", "view", "cdp"];
|
|
2069
2107
|
type OpensteerSessionGrantKind = (typeof opensteerSessionGrantKinds)[number];
|
|
2108
|
+
type OpensteerSessionGrantTransport = "http" | "ws";
|
|
2070
2109
|
type OpensteerProviderMode$1 = "local" | "cloud";
|
|
2071
2110
|
type OpensteerSessionOwnership = "owned" | "attached" | "managed";
|
|
2072
2111
|
interface OpensteerProviderDescriptor {
|
|
@@ -2088,7 +2127,8 @@ interface OpensteerSessionCapabilities {
|
|
|
2088
2127
|
}
|
|
2089
2128
|
interface OpensteerSessionGrant {
|
|
2090
2129
|
readonly kind: OpensteerSessionGrantKind;
|
|
2091
|
-
readonly
|
|
2130
|
+
readonly transport: OpensteerSessionGrantTransport;
|
|
2131
|
+
readonly url: string;
|
|
2092
2132
|
readonly token: string;
|
|
2093
2133
|
readonly expiresAt: number;
|
|
2094
2134
|
}
|
|
@@ -3791,6 +3831,10 @@ interface DomDescriptorStore {
|
|
|
3791
3831
|
read(input: DomReadDescriptorInput): Promise<DomDescriptorRecord | undefined>;
|
|
3792
3832
|
write(input: DomWriteDescriptorInput): Promise<DomDescriptorRecord>;
|
|
3793
3833
|
}
|
|
3834
|
+
declare function createDomDescriptorStore(options: {
|
|
3835
|
+
readonly root?: FilesystemOpensteerWorkspace;
|
|
3836
|
+
readonly namespace?: string;
|
|
3837
|
+
}): DomDescriptorStore;
|
|
3794
3838
|
declare function hashDomDescriptorDescription(description: string): string;
|
|
3795
3839
|
declare function buildDomDescriptorKey(options: {
|
|
3796
3840
|
readonly namespace?: string;
|
|
@@ -4067,6 +4111,7 @@ interface OpensteerCloudProviderOptions {
|
|
|
4067
4111
|
readonly mode: "cloud";
|
|
4068
4112
|
readonly apiKey?: string;
|
|
4069
4113
|
readonly baseUrl?: string;
|
|
4114
|
+
readonly appBaseUrl?: string;
|
|
4070
4115
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4071
4116
|
readonly region?: string;
|
|
4072
4117
|
readonly sessionId?: string;
|
|
@@ -4145,6 +4190,11 @@ interface OpensteerTargetOptions {
|
|
|
4145
4190
|
readonly description?: string;
|
|
4146
4191
|
readonly captureNetwork?: string;
|
|
4147
4192
|
}
|
|
4193
|
+
interface OpensteerClickOptions extends OpensteerTargetOptions {
|
|
4194
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
4195
|
+
readonly clickCount?: number;
|
|
4196
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
4197
|
+
}
|
|
4148
4198
|
interface OpensteerInputOptions extends OpensteerTargetOptions {
|
|
4149
4199
|
readonly text: string;
|
|
4150
4200
|
readonly pressEnter?: boolean;
|
|
@@ -4255,7 +4305,7 @@ declare class Opensteer {
|
|
|
4255
4305
|
evaluate(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4256
4306
|
evaluateJson(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4257
4307
|
addInitScript(input: string | OpensteerAddInitScriptInput): Promise<OpensteerAddInitScriptOutput>;
|
|
4258
|
-
click(input:
|
|
4308
|
+
click(input: OpensteerClickOptions): Promise<OpensteerActionResult>;
|
|
4259
4309
|
hover(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4260
4310
|
input(input: OpensteerInputOptions): Promise<OpensteerActionResult>;
|
|
4261
4311
|
scroll(input: OpensteerScrollOptions): Promise<OpensteerActionResult>;
|
|
@@ -4323,6 +4373,7 @@ type OpensteerEnvironment = Record<string, string | undefined>;
|
|
|
4323
4373
|
interface OpensteerCloudConfig {
|
|
4324
4374
|
readonly apiKey: string;
|
|
4325
4375
|
readonly baseUrl: string;
|
|
4376
|
+
readonly appBaseUrl?: string;
|
|
4326
4377
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4327
4378
|
}
|
|
4328
4379
|
declare function resolveCloudConfig(input?: {
|
|
@@ -4434,11 +4485,17 @@ interface OpensteerCloudSessionCreateInput {
|
|
|
4434
4485
|
readonly context?: OpensteerBrowserContextOptions;
|
|
4435
4486
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4436
4487
|
readonly observability?: Partial<ObservabilityConfig>;
|
|
4488
|
+
readonly sourceType?: "manual" | "local-cloud";
|
|
4489
|
+
readonly sourceRef?: string;
|
|
4490
|
+
readonly localWorkspaceRootPath?: string;
|
|
4491
|
+
readonly locality?: "auto" | "off";
|
|
4437
4492
|
}
|
|
4438
4493
|
interface OpensteerCloudSessionDescriptor {
|
|
4439
4494
|
readonly sessionId: string;
|
|
4440
|
-
readonly baseUrl: string;
|
|
4441
4495
|
readonly status?: string;
|
|
4496
|
+
readonly baseUrl?: string;
|
|
4497
|
+
readonly initialGrants?: Partial<Record<OpensteerSessionGrantKind, OpensteerSessionGrant>>;
|
|
4498
|
+
readonly initialGrantExpiresAt?: number;
|
|
4442
4499
|
}
|
|
4443
4500
|
interface OpensteerCloudSessionState {
|
|
4444
4501
|
readonly status?: string;
|
|
@@ -4452,6 +4509,9 @@ declare class OpensteerCloudClient {
|
|
|
4452
4509
|
listSessions(): Promise<unknown>;
|
|
4453
4510
|
getSession(sessionId: string): Promise<OpensteerCloudSessionState>;
|
|
4454
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>;
|
|
4455
4515
|
closeSession(sessionId: string): Promise<void>;
|
|
4456
4516
|
createBrowserProfileImport(input: BrowserProfileImportCreateRequest): Promise<BrowserProfileImportCreateResponse>;
|
|
4457
4517
|
uploadBrowserProfileImportPayload(input: {
|
|
@@ -4501,7 +4561,6 @@ interface PersistedLocalBrowserSessionRecord extends PersistedSessionRecordBase
|
|
|
4501
4561
|
interface PersistedCloudSessionRecord extends PersistedSessionRecordBase {
|
|
4502
4562
|
readonly provider: "cloud";
|
|
4503
4563
|
readonly sessionId: string;
|
|
4504
|
-
readonly baseUrl: string;
|
|
4505
4564
|
readonly startedAt: number;
|
|
4506
4565
|
}
|
|
4507
4566
|
type PersistedSessionRecord = PersistedLocalBrowserSessionRecord | PersistedCloudSessionRecord;
|
|
@@ -4529,7 +4588,7 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4529
4588
|
private readonly cloud;
|
|
4530
4589
|
private readonly observability;
|
|
4531
4590
|
private sessionId;
|
|
4532
|
-
private
|
|
4591
|
+
private semanticGrant;
|
|
4533
4592
|
private client;
|
|
4534
4593
|
private automation;
|
|
4535
4594
|
private workspaceStore;
|
|
@@ -4610,6 +4669,9 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4610
4669
|
private isReusableCloudSession;
|
|
4611
4670
|
private requireClient;
|
|
4612
4671
|
private requireAutomation;
|
|
4672
|
+
private ensureSemanticGrant;
|
|
4673
|
+
private handleSemanticClientError;
|
|
4674
|
+
private shouldUseLocalCloudTransport;
|
|
4613
4675
|
}
|
|
4614
4676
|
|
|
4615
4677
|
declare function dispatchSemanticOperation(runtime: OpensteerSemanticRuntime, operation: OpensteerSemanticOperationName, input: unknown, options?: {
|
|
@@ -4651,4 +4713,4 @@ declare function discoverLocalCdpBrowsers(input?: {
|
|
|
4651
4713
|
readonly timeoutMs?: number;
|
|
4652
4714
|
}): Promise<readonly LocalCdpBrowserCandidate[]>;
|
|
4653
4715
|
|
|
4654
|
-
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, 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,19 +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
|
-
}
|
|
782
|
-
type ActionBoundarySettleTrigger = "dom-action" | "navigation";
|
|
783
|
-
type ActionBoundaryTimedOutPhase = "bootstrap";
|
|
784
|
-
interface ActionBoundaryOutcome {
|
|
785
|
-
readonly trigger: ActionBoundarySettleTrigger;
|
|
786
|
-
readonly crossDocument: boolean;
|
|
787
|
-
readonly bootstrapSettled: boolean;
|
|
788
|
-
readonly timedOutPhase?: ActionBoundaryTimedOutPhase;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
809
|
interface BodyPayload {
|
|
792
810
|
readonly data: string;
|
|
793
811
|
readonly encoding: BodyPayloadEncoding;
|
|
@@ -1321,6 +1339,8 @@ type OpensteerCapability = (typeof opensteerCapabilities)[number];
|
|
|
1321
1339
|
|
|
1322
1340
|
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
1323
1341
|
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
1342
|
+
declare const cloudSessionRecordingStatuses: readonly ["idle", "recording", "completed", "failed"];
|
|
1343
|
+
type CloudSessionRecordingStatus = (typeof cloudSessionRecordingStatuses)[number];
|
|
1324
1344
|
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
1325
1345
|
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
1326
1346
|
type CloudSessionVisibilityScope = "team" | "owner";
|
|
@@ -1412,6 +1432,21 @@ interface CloudSessionSummary {
|
|
|
1412
1432
|
readonly sourceRef?: string;
|
|
1413
1433
|
readonly label?: string;
|
|
1414
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
|
+
}
|
|
1415
1450
|
interface CloudSelectorCacheImportEntry {
|
|
1416
1451
|
readonly workspace: string;
|
|
1417
1452
|
readonly method: string;
|
|
@@ -1944,6 +1979,9 @@ interface OpensteerPageSnapshotOutput {
|
|
|
1944
1979
|
}
|
|
1945
1980
|
interface OpensteerDomClickInput {
|
|
1946
1981
|
readonly target: OpensteerTargetInput;
|
|
1982
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
1983
|
+
readonly clickCount?: number;
|
|
1984
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
1947
1985
|
readonly persistAsDescription?: string;
|
|
1948
1986
|
readonly captureNetwork?: string;
|
|
1949
1987
|
}
|
|
@@ -2065,8 +2103,9 @@ interface OpensteerComputerExecuteOutput {
|
|
|
2065
2103
|
declare const opensteerSemanticOperationNames: readonly ["session.open", "page.list", "page.new", "page.activate", "page.close", "page.goto", "page.evaluate", "page.add-init-script", "page.snapshot", "dom.click", "dom.hover", "dom.input", "dom.scroll", "dom.extract", "network.query", "network.tag", "network.clear", "network.minimize", "network.diff", "network.probe", "reverse.discover", "reverse.query", "reverse.package.create", "reverse.package.run", "reverse.export", "reverse.report", "reverse.package.get", "reverse.package.list", "reverse.package.patch", "interaction.capture", "interaction.get", "interaction.diff", "interaction.replay", "artifact.read", "inspect.cookies", "inspect.storage", "scripts.capture", "scripts.beautify", "scripts.deobfuscate", "scripts.sandbox", "captcha.solve", "request.raw", "request-plan.infer", "request-plan.write", "request-plan.get", "request-plan.list", "recipe.write", "recipe.get", "recipe.list", "recipe.run", "auth-recipe.write", "auth-recipe.get", "auth-recipe.list", "auth-recipe.run", "request.execute", "computer.execute", "session.close"];
|
|
2066
2104
|
type OpensteerSemanticOperationName = (typeof opensteerSemanticOperationNames)[number];
|
|
2067
2105
|
|
|
2068
|
-
declare const opensteerSessionGrantKinds: readonly ["automation", "view", "cdp"];
|
|
2106
|
+
declare const opensteerSessionGrantKinds: readonly ["semantic", "automation", "view", "cdp"];
|
|
2069
2107
|
type OpensteerSessionGrantKind = (typeof opensteerSessionGrantKinds)[number];
|
|
2108
|
+
type OpensteerSessionGrantTransport = "http" | "ws";
|
|
2070
2109
|
type OpensteerProviderMode$1 = "local" | "cloud";
|
|
2071
2110
|
type OpensteerSessionOwnership = "owned" | "attached" | "managed";
|
|
2072
2111
|
interface OpensteerProviderDescriptor {
|
|
@@ -2088,7 +2127,8 @@ interface OpensteerSessionCapabilities {
|
|
|
2088
2127
|
}
|
|
2089
2128
|
interface OpensteerSessionGrant {
|
|
2090
2129
|
readonly kind: OpensteerSessionGrantKind;
|
|
2091
|
-
readonly
|
|
2130
|
+
readonly transport: OpensteerSessionGrantTransport;
|
|
2131
|
+
readonly url: string;
|
|
2092
2132
|
readonly token: string;
|
|
2093
2133
|
readonly expiresAt: number;
|
|
2094
2134
|
}
|
|
@@ -3791,6 +3831,10 @@ interface DomDescriptorStore {
|
|
|
3791
3831
|
read(input: DomReadDescriptorInput): Promise<DomDescriptorRecord | undefined>;
|
|
3792
3832
|
write(input: DomWriteDescriptorInput): Promise<DomDescriptorRecord>;
|
|
3793
3833
|
}
|
|
3834
|
+
declare function createDomDescriptorStore(options: {
|
|
3835
|
+
readonly root?: FilesystemOpensteerWorkspace;
|
|
3836
|
+
readonly namespace?: string;
|
|
3837
|
+
}): DomDescriptorStore;
|
|
3794
3838
|
declare function hashDomDescriptorDescription(description: string): string;
|
|
3795
3839
|
declare function buildDomDescriptorKey(options: {
|
|
3796
3840
|
readonly namespace?: string;
|
|
@@ -4067,6 +4111,7 @@ interface OpensteerCloudProviderOptions {
|
|
|
4067
4111
|
readonly mode: "cloud";
|
|
4068
4112
|
readonly apiKey?: string;
|
|
4069
4113
|
readonly baseUrl?: string;
|
|
4114
|
+
readonly appBaseUrl?: string;
|
|
4070
4115
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4071
4116
|
readonly region?: string;
|
|
4072
4117
|
readonly sessionId?: string;
|
|
@@ -4145,6 +4190,11 @@ interface OpensteerTargetOptions {
|
|
|
4145
4190
|
readonly description?: string;
|
|
4146
4191
|
readonly captureNetwork?: string;
|
|
4147
4192
|
}
|
|
4193
|
+
interface OpensteerClickOptions extends OpensteerTargetOptions {
|
|
4194
|
+
readonly button?: OpensteerComputerMouseButton;
|
|
4195
|
+
readonly clickCount?: number;
|
|
4196
|
+
readonly modifiers?: readonly OpensteerComputerKeyModifier[];
|
|
4197
|
+
}
|
|
4148
4198
|
interface OpensteerInputOptions extends OpensteerTargetOptions {
|
|
4149
4199
|
readonly text: string;
|
|
4150
4200
|
readonly pressEnter?: boolean;
|
|
@@ -4255,7 +4305,7 @@ declare class Opensteer {
|
|
|
4255
4305
|
evaluate(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4256
4306
|
evaluateJson(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4257
4307
|
addInitScript(input: string | OpensteerAddInitScriptInput): Promise<OpensteerAddInitScriptOutput>;
|
|
4258
|
-
click(input:
|
|
4308
|
+
click(input: OpensteerClickOptions): Promise<OpensteerActionResult>;
|
|
4259
4309
|
hover(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4260
4310
|
input(input: OpensteerInputOptions): Promise<OpensteerActionResult>;
|
|
4261
4311
|
scroll(input: OpensteerScrollOptions): Promise<OpensteerActionResult>;
|
|
@@ -4323,6 +4373,7 @@ type OpensteerEnvironment = Record<string, string | undefined>;
|
|
|
4323
4373
|
interface OpensteerCloudConfig {
|
|
4324
4374
|
readonly apiKey: string;
|
|
4325
4375
|
readonly baseUrl: string;
|
|
4376
|
+
readonly appBaseUrl?: string;
|
|
4326
4377
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4327
4378
|
}
|
|
4328
4379
|
declare function resolveCloudConfig(input?: {
|
|
@@ -4434,11 +4485,17 @@ interface OpensteerCloudSessionCreateInput {
|
|
|
4434
4485
|
readonly context?: OpensteerBrowserContextOptions;
|
|
4435
4486
|
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4436
4487
|
readonly observability?: Partial<ObservabilityConfig>;
|
|
4488
|
+
readonly sourceType?: "manual" | "local-cloud";
|
|
4489
|
+
readonly sourceRef?: string;
|
|
4490
|
+
readonly localWorkspaceRootPath?: string;
|
|
4491
|
+
readonly locality?: "auto" | "off";
|
|
4437
4492
|
}
|
|
4438
4493
|
interface OpensteerCloudSessionDescriptor {
|
|
4439
4494
|
readonly sessionId: string;
|
|
4440
|
-
readonly baseUrl: string;
|
|
4441
4495
|
readonly status?: string;
|
|
4496
|
+
readonly baseUrl?: string;
|
|
4497
|
+
readonly initialGrants?: Partial<Record<OpensteerSessionGrantKind, OpensteerSessionGrant>>;
|
|
4498
|
+
readonly initialGrantExpiresAt?: number;
|
|
4442
4499
|
}
|
|
4443
4500
|
interface OpensteerCloudSessionState {
|
|
4444
4501
|
readonly status?: string;
|
|
@@ -4452,6 +4509,9 @@ declare class OpensteerCloudClient {
|
|
|
4452
4509
|
listSessions(): Promise<unknown>;
|
|
4453
4510
|
getSession(sessionId: string): Promise<OpensteerCloudSessionState>;
|
|
4454
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>;
|
|
4455
4515
|
closeSession(sessionId: string): Promise<void>;
|
|
4456
4516
|
createBrowserProfileImport(input: BrowserProfileImportCreateRequest): Promise<BrowserProfileImportCreateResponse>;
|
|
4457
4517
|
uploadBrowserProfileImportPayload(input: {
|
|
@@ -4501,7 +4561,6 @@ interface PersistedLocalBrowserSessionRecord extends PersistedSessionRecordBase
|
|
|
4501
4561
|
interface PersistedCloudSessionRecord extends PersistedSessionRecordBase {
|
|
4502
4562
|
readonly provider: "cloud";
|
|
4503
4563
|
readonly sessionId: string;
|
|
4504
|
-
readonly baseUrl: string;
|
|
4505
4564
|
readonly startedAt: number;
|
|
4506
4565
|
}
|
|
4507
4566
|
type PersistedSessionRecord = PersistedLocalBrowserSessionRecord | PersistedCloudSessionRecord;
|
|
@@ -4529,7 +4588,7 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4529
4588
|
private readonly cloud;
|
|
4530
4589
|
private readonly observability;
|
|
4531
4590
|
private sessionId;
|
|
4532
|
-
private
|
|
4591
|
+
private semanticGrant;
|
|
4533
4592
|
private client;
|
|
4534
4593
|
private automation;
|
|
4535
4594
|
private workspaceStore;
|
|
@@ -4610,6 +4669,9 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4610
4669
|
private isReusableCloudSession;
|
|
4611
4670
|
private requireClient;
|
|
4612
4671
|
private requireAutomation;
|
|
4672
|
+
private ensureSemanticGrant;
|
|
4673
|
+
private handleSemanticClientError;
|
|
4674
|
+
private shouldUseLocalCloudTransport;
|
|
4613
4675
|
}
|
|
4614
4676
|
|
|
4615
4677
|
declare function dispatchSemanticOperation(runtime: OpensteerSemanticRuntime, operation: OpensteerSemanticOperationName, input: unknown, options?: {
|
|
@@ -4651,4 +4713,4 @@ declare function discoverLocalCdpBrowsers(input?: {
|
|
|
4651
4713
|
readonly timeoutMs?: number;
|
|
4652
4714
|
}): Promise<readonly LocalCdpBrowserCandidate[]>;
|
|
4653
4715
|
|
|
4654
|
-
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, 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, 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) {
|