@opensteer/runtime-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +28663 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +766 -0
- package/dist/index.d.ts +766 -0
- package/dist/index.js +28627 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
import { BrowserCoreEngine, PageRef, NetworkRecord, HeaderEntry, BodyPayload, SessionRef } from '@opensteer/browser-core';
|
|
2
|
+
import { OpensteerSemanticOperationName, OpensteerArtifactKind, ArtifactProvenance, TraceContext, HtmlSnapshot, DomSnapshot, CookieRecord, StorageSnapshot, ScriptSourceArtifactData, ArtifactRelation, ArtifactReference, OpensteerArtifact, OpensteerRequestPlanPayload, OpensteerRequestPlanLifecycle, OpensteerRequestPlanFreshness, OpensteerAuthRecipePayload, OpensteerRecipePayload, OpensteerReverseCasePayload, OpensteerInteractionTracePayload, OpensteerReversePackagePayload, OpensteerReverseReportPayload, NetworkQueryRecord, NetworkResourceType, TraceOutcome, OpensteerEvent, OpensteerError, TraceRecord, TraceBundle, OpensteerBrowserOptions, OpensteerBrowserLaunchOptions, OpensteerBrowserContextOptions, OpensteerSessionInfo, OpensteerOpenInput, OpensteerOpenOutput, OpensteerPageListInput, OpensteerPageListOutput, OpensteerPageNewInput, OpensteerPageNewOutput, OpensteerPageActivateInput, OpensteerPageActivateOutput, OpensteerPageCloseInput, OpensteerPageCloseOutput, OpensteerPageGotoInput, OpensteerPageGotoOutput, OpensteerPageEvaluateInput, OpensteerPageEvaluateOutput, OpensteerAddInitScriptInput, OpensteerAddInitScriptOutput, OpensteerPageSnapshotInput, OpensteerPageSnapshotOutput, OpensteerDomClickInput, OpensteerActionResult, OpensteerDomHoverInput, OpensteerDomInputInput, OpensteerDomScrollInput, OpensteerDomExtractInput, OpensteerDomExtractOutput, OpensteerNetworkQueryInput, OpensteerNetworkQueryOutput, OpensteerNetworkSaveInput, OpensteerNetworkSaveOutput, OpensteerNetworkClearInput, OpensteerNetworkClearOutput, OpensteerCaptureScriptsInput, OpensteerCaptureScriptsOutput, OpensteerNetworkMinimizeInput, OpensteerNetworkMinimizeOutput, OpensteerNetworkDiffInput, OpensteerNetworkDiffOutput, OpensteerArtifactReadInput, OpensteerArtifactReadOutput, OpensteerTransportProbeInput, OpensteerTransportProbeOutput, OpensteerReverseDiscoverInput, OpensteerReverseDiscoverOutput, OpensteerReverseQueryInput, OpensteerReverseQueryOutput, OpensteerReversePackageCreateInput, OpensteerReversePackageCreateOutput, OpensteerReversePackageRunInput, OpensteerReversePackageRunOutput, OpensteerReverseExportInput, OpensteerReverseExportOutput, OpensteerReverseReportInput, OpensteerReverseReportOutput, OpensteerReversePackageGetInput, OpensteerReversePackageGetOutput, OpensteerReversePackageListInput, OpensteerReversePackageListOutput, OpensteerReversePackagePatchInput, OpensteerReversePackagePatchOutput, OpensteerInteractionCaptureInput, OpensteerInteractionCaptureOutput, OpensteerInteractionGetInput, OpensteerInteractionGetOutput, OpensteerInteractionDiffInput, OpensteerInteractionDiffOutput, OpensteerInteractionReplayInput, OpensteerInteractionReplayOutput, OpensteerScriptBeautifyInput, OpensteerScriptBeautifyOutput, OpensteerScriptDeobfuscateInput, OpensteerScriptDeobfuscateOutput, OpensteerScriptSandboxInput, OpensteerScriptSandboxOutput, OpensteerCaptchaSolveInput, OpensteerCaptchaSolveOutput, OpensteerInferRequestPlanInput, OpensteerWriteRequestPlanInput, OpensteerGetRequestPlanInput, OpensteerListRequestPlansInput, OpensteerListRequestPlansOutput, OpensteerWriteAuthRecipeInput, OpensteerWriteRecipeInput, OpensteerGetAuthRecipeInput, OpensteerGetRecipeInput, OpensteerListAuthRecipesInput, OpensteerListAuthRecipesOutput, OpensteerListRecipesInput, OpensteerListRecipesOutput, OpensteerRunAuthRecipeInput, OpensteerRunAuthRecipeOutput, OpensteerRunRecipeInput, OpensteerRunRecipeOutput, OpensteerRawRequestInput, OpensteerRawRequestOutput, OpensteerRequestExecuteInput, OpensteerRequestExecuteOutput, OpensteerComputerExecuteInput, OpensteerComputerExecuteOutput, OpensteerSessionCloseOutput } from '@opensteer/protocol';
|
|
3
|
+
|
|
4
|
+
declare const OPENSTEER_RUNTIME_CORE_VERSION: string;
|
|
5
|
+
|
|
6
|
+
interface TimeoutResolutionInput {
|
|
7
|
+
readonly operation: OpensteerSemanticOperationName;
|
|
8
|
+
readonly signal?: AbortSignal;
|
|
9
|
+
}
|
|
10
|
+
interface TimeoutPolicy {
|
|
11
|
+
resolveTimeoutMs(input: TimeoutResolutionInput): number | undefined;
|
|
12
|
+
}
|
|
13
|
+
type SettleTrigger = "navigation" | "dom-action" | "snapshot";
|
|
14
|
+
interface SettleDelayInput {
|
|
15
|
+
readonly operation: OpensteerSemanticOperationName;
|
|
16
|
+
readonly trigger: SettleTrigger;
|
|
17
|
+
}
|
|
18
|
+
interface SettleContext extends SettleDelayInput {
|
|
19
|
+
readonly engine: BrowserCoreEngine;
|
|
20
|
+
readonly pageRef: PageRef;
|
|
21
|
+
readonly signal: AbortSignal;
|
|
22
|
+
readonly remainingMs: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
interface SettleObserver {
|
|
25
|
+
settle(input: SettleContext): Promise<boolean>;
|
|
26
|
+
}
|
|
27
|
+
interface SettlePolicy {
|
|
28
|
+
readonly observers?: readonly SettleObserver[];
|
|
29
|
+
resolveDelayMs(input: SettleDelayInput): number;
|
|
30
|
+
}
|
|
31
|
+
interface RetryEvaluationInput {
|
|
32
|
+
readonly operation: OpensteerSemanticOperationName;
|
|
33
|
+
readonly error: unknown;
|
|
34
|
+
}
|
|
35
|
+
interface RetryDecision {
|
|
36
|
+
readonly retry: false;
|
|
37
|
+
}
|
|
38
|
+
interface RetryPolicy {
|
|
39
|
+
evaluate(input: RetryEvaluationInput): RetryDecision | Promise<RetryDecision>;
|
|
40
|
+
}
|
|
41
|
+
interface FallbackEvaluationInput {
|
|
42
|
+
readonly operation: OpensteerSemanticOperationName;
|
|
43
|
+
readonly error: unknown;
|
|
44
|
+
}
|
|
45
|
+
interface FallbackDecision {
|
|
46
|
+
readonly fallback: false;
|
|
47
|
+
}
|
|
48
|
+
interface FallbackPolicy {
|
|
49
|
+
evaluate(input: FallbackEvaluationInput): FallbackDecision | Promise<FallbackDecision>;
|
|
50
|
+
}
|
|
51
|
+
interface OpensteerPolicy {
|
|
52
|
+
readonly timeout: TimeoutPolicy;
|
|
53
|
+
readonly settle: SettlePolicy;
|
|
54
|
+
readonly retry: RetryPolicy;
|
|
55
|
+
readonly fallback: FallbackPolicy;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type ArtifactPayloadType = "structured" | "binary";
|
|
59
|
+
type ProtocolArtifactDelivery = "external" | "inline-if-structured";
|
|
60
|
+
interface ArtifactScope extends TraceContext {
|
|
61
|
+
}
|
|
62
|
+
interface ArtifactManifest {
|
|
63
|
+
readonly artifactId: string;
|
|
64
|
+
readonly kind: OpensteerArtifactKind;
|
|
65
|
+
readonly createdAt: number;
|
|
66
|
+
readonly provenance?: ArtifactProvenance;
|
|
67
|
+
readonly scope: ArtifactScope;
|
|
68
|
+
readonly mediaType: string;
|
|
69
|
+
readonly payloadType: ArtifactPayloadType;
|
|
70
|
+
readonly byteLength: number;
|
|
71
|
+
readonly sha256: string;
|
|
72
|
+
readonly objectRelativePath: string;
|
|
73
|
+
}
|
|
74
|
+
type StructuredArtifactKind = Exclude<OpensteerArtifactKind, "screenshot">;
|
|
75
|
+
interface StructuredArtifactDataByKind {
|
|
76
|
+
readonly "html-snapshot": HtmlSnapshot;
|
|
77
|
+
readonly "dom-snapshot": DomSnapshot;
|
|
78
|
+
readonly cookies: readonly CookieRecord[];
|
|
79
|
+
readonly "storage-snapshot": StorageSnapshot;
|
|
80
|
+
readonly "script-source": ScriptSourceArtifactData;
|
|
81
|
+
}
|
|
82
|
+
type StructuredArtifactPayloadByKind = {
|
|
83
|
+
[K in StructuredArtifactKind]: {
|
|
84
|
+
readonly kind: K;
|
|
85
|
+
readonly payloadType: "structured";
|
|
86
|
+
readonly data: StructuredArtifactDataByKind[K];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type StoredArtifactPayloadByKind = {
|
|
90
|
+
readonly screenshot: {
|
|
91
|
+
readonly kind: "screenshot";
|
|
92
|
+
readonly payloadType: "binary";
|
|
93
|
+
readonly data: Uint8Array;
|
|
94
|
+
};
|
|
95
|
+
} & StructuredArtifactPayloadByKind;
|
|
96
|
+
type StoredArtifactPayload = StoredArtifactPayloadByKind[OpensteerArtifactKind];
|
|
97
|
+
interface StoredArtifactRecord {
|
|
98
|
+
readonly manifest: ArtifactManifest;
|
|
99
|
+
readonly payload: StoredArtifactPayload;
|
|
100
|
+
}
|
|
101
|
+
type WriteStructuredArtifactInputByKind<K extends StructuredArtifactKind> = {
|
|
102
|
+
readonly artifactId?: string;
|
|
103
|
+
readonly kind: K;
|
|
104
|
+
readonly createdAt?: number;
|
|
105
|
+
readonly provenance?: ArtifactProvenance;
|
|
106
|
+
readonly scope?: ArtifactScope;
|
|
107
|
+
readonly mediaType?: string;
|
|
108
|
+
readonly data: StructuredArtifactDataByKind[K];
|
|
109
|
+
};
|
|
110
|
+
type WriteStructuredArtifactInput = {
|
|
111
|
+
[K in StructuredArtifactKind]: WriteStructuredArtifactInputByKind<K>;
|
|
112
|
+
}[StructuredArtifactKind];
|
|
113
|
+
interface WriteBinaryArtifactInput {
|
|
114
|
+
readonly artifactId?: string;
|
|
115
|
+
readonly kind: "screenshot";
|
|
116
|
+
readonly createdAt?: number;
|
|
117
|
+
readonly provenance?: ArtifactProvenance;
|
|
118
|
+
readonly scope?: ArtifactScope;
|
|
119
|
+
readonly mediaType: string;
|
|
120
|
+
readonly data: Uint8Array;
|
|
121
|
+
}
|
|
122
|
+
interface OpensteerArtifactStore {
|
|
123
|
+
readonly manifestsDirectory: string;
|
|
124
|
+
readonly objectsDirectory: string;
|
|
125
|
+
writeStructured(input: WriteStructuredArtifactInput): Promise<ArtifactManifest>;
|
|
126
|
+
writeBinary(input: WriteBinaryArtifactInput): Promise<ArtifactManifest>;
|
|
127
|
+
getManifest(artifactId: string): Promise<ArtifactManifest | undefined>;
|
|
128
|
+
read(artifactId: string): Promise<StoredArtifactRecord | undefined>;
|
|
129
|
+
toProtocolArtifactReference(artifactId: string, relation: ArtifactRelation): Promise<ArtifactReference | undefined>;
|
|
130
|
+
toProtocolArtifact(artifactId: string, options?: {
|
|
131
|
+
readonly delivery?: ProtocolArtifactDelivery;
|
|
132
|
+
}): Promise<OpensteerArtifact | undefined>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
type JsonPrimitive = boolean | number | string | null;
|
|
136
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
137
|
+
interface JsonObject {
|
|
138
|
+
readonly [key: string]: JsonValue;
|
|
139
|
+
}
|
|
140
|
+
type JsonArray = readonly JsonValue[];
|
|
141
|
+
|
|
142
|
+
interface RegistryProvenance {
|
|
143
|
+
readonly source: string;
|
|
144
|
+
readonly sourceId?: string;
|
|
145
|
+
readonly capturedAt?: number;
|
|
146
|
+
readonly notes?: string;
|
|
147
|
+
}
|
|
148
|
+
interface RegistryRecord<TPayload = JsonValue> {
|
|
149
|
+
readonly id: string;
|
|
150
|
+
readonly key: string;
|
|
151
|
+
readonly version: string;
|
|
152
|
+
readonly createdAt: number;
|
|
153
|
+
readonly updatedAt: number;
|
|
154
|
+
readonly contentHash: string;
|
|
155
|
+
readonly tags: readonly string[];
|
|
156
|
+
readonly provenance?: RegistryProvenance;
|
|
157
|
+
readonly payload: TPayload;
|
|
158
|
+
}
|
|
159
|
+
type DescriptorRecord = RegistryRecord;
|
|
160
|
+
type AuthRecipeRecord = RegistryRecord<OpensteerAuthRecipePayload>;
|
|
161
|
+
type RecipeRecord = RegistryRecord<OpensteerRecipePayload>;
|
|
162
|
+
type InteractionTraceRecord = RegistryRecord<OpensteerInteractionTracePayload>;
|
|
163
|
+
type ReverseCaseRecord = RegistryRecord<OpensteerReverseCasePayload>;
|
|
164
|
+
type ReversePackageRecord = RegistryRecord<OpensteerReversePackagePayload>;
|
|
165
|
+
type ReverseReportRecord = RegistryRecord<OpensteerReverseReportPayload>;
|
|
166
|
+
type RequestPlanLifecycle = OpensteerRequestPlanLifecycle;
|
|
167
|
+
type RequestPlanFreshness = OpensteerRequestPlanFreshness;
|
|
168
|
+
interface RequestPlanRecord extends RegistryRecord<OpensteerRequestPlanPayload> {
|
|
169
|
+
readonly lifecycle: RequestPlanLifecycle;
|
|
170
|
+
readonly freshness?: RequestPlanFreshness;
|
|
171
|
+
}
|
|
172
|
+
interface ResolveRegistryRecordInput {
|
|
173
|
+
readonly key: string;
|
|
174
|
+
readonly version?: string;
|
|
175
|
+
}
|
|
176
|
+
interface WriteDescriptorInput<TPayload = JsonValue> {
|
|
177
|
+
readonly id?: string;
|
|
178
|
+
readonly key: string;
|
|
179
|
+
readonly version: string;
|
|
180
|
+
readonly createdAt?: number;
|
|
181
|
+
readonly updatedAt?: number;
|
|
182
|
+
readonly tags?: readonly string[];
|
|
183
|
+
readonly provenance?: RegistryProvenance;
|
|
184
|
+
readonly payload: TPayload;
|
|
185
|
+
}
|
|
186
|
+
interface WriteRequestPlanInput extends WriteDescriptorInput<OpensteerRequestPlanPayload> {
|
|
187
|
+
readonly lifecycle?: RequestPlanLifecycle;
|
|
188
|
+
readonly freshness?: RequestPlanFreshness;
|
|
189
|
+
}
|
|
190
|
+
interface WriteAuthRecipeInput extends WriteDescriptorInput<OpensteerAuthRecipePayload> {
|
|
191
|
+
}
|
|
192
|
+
interface WriteRecipeInput extends WriteDescriptorInput<OpensteerRecipePayload> {
|
|
193
|
+
}
|
|
194
|
+
interface WriteInteractionTraceInput extends WriteDescriptorInput<OpensteerInteractionTracePayload> {
|
|
195
|
+
}
|
|
196
|
+
interface WriteReverseCaseInput extends WriteDescriptorInput<OpensteerReverseCasePayload> {
|
|
197
|
+
}
|
|
198
|
+
interface WriteReversePackageInput extends WriteDescriptorInput<OpensteerReversePackagePayload> {
|
|
199
|
+
}
|
|
200
|
+
interface WriteReverseReportInput extends WriteDescriptorInput<OpensteerReverseReportPayload> {
|
|
201
|
+
}
|
|
202
|
+
interface ListRegistryRecordsInput {
|
|
203
|
+
readonly key?: string;
|
|
204
|
+
}
|
|
205
|
+
interface UpdateRequestPlanMetadataInput {
|
|
206
|
+
readonly id: string;
|
|
207
|
+
readonly updatedAt?: number;
|
|
208
|
+
readonly lifecycle?: RequestPlanLifecycle;
|
|
209
|
+
readonly freshness?: RequestPlanFreshness;
|
|
210
|
+
}
|
|
211
|
+
interface UpdateReverseCaseInput {
|
|
212
|
+
readonly id: string;
|
|
213
|
+
readonly updatedAt?: number;
|
|
214
|
+
readonly tags?: readonly string[];
|
|
215
|
+
readonly provenance?: RegistryProvenance;
|
|
216
|
+
readonly payload: OpensteerReverseCasePayload;
|
|
217
|
+
}
|
|
218
|
+
interface DescriptorRegistryStore {
|
|
219
|
+
readonly recordsDirectory: string;
|
|
220
|
+
readonly indexesDirectory: string;
|
|
221
|
+
write(input: WriteDescriptorInput): Promise<DescriptorRecord>;
|
|
222
|
+
getById(id: string): Promise<DescriptorRecord | undefined>;
|
|
223
|
+
resolve(input: ResolveRegistryRecordInput): Promise<DescriptorRecord | undefined>;
|
|
224
|
+
}
|
|
225
|
+
interface RequestPlanRegistryStore {
|
|
226
|
+
readonly recordsDirectory: string;
|
|
227
|
+
readonly indexesDirectory: string;
|
|
228
|
+
write(input: WriteRequestPlanInput): Promise<RequestPlanRecord>;
|
|
229
|
+
getById(id: string): Promise<RequestPlanRecord | undefined>;
|
|
230
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly RequestPlanRecord[]>;
|
|
231
|
+
resolve(input: ResolveRegistryRecordInput): Promise<RequestPlanRecord | undefined>;
|
|
232
|
+
updateMetadata(input: UpdateRequestPlanMetadataInput): Promise<RequestPlanRecord>;
|
|
233
|
+
}
|
|
234
|
+
interface AuthRecipeRegistryStore {
|
|
235
|
+
readonly recordsDirectory: string;
|
|
236
|
+
readonly indexesDirectory: string;
|
|
237
|
+
write(input: WriteAuthRecipeInput): Promise<AuthRecipeRecord>;
|
|
238
|
+
getById(id: string): Promise<AuthRecipeRecord | undefined>;
|
|
239
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly AuthRecipeRecord[]>;
|
|
240
|
+
resolve(input: ResolveRegistryRecordInput): Promise<AuthRecipeRecord | undefined>;
|
|
241
|
+
}
|
|
242
|
+
interface RecipeRegistryStore extends AuthRecipeRegistryStore {
|
|
243
|
+
write(input: WriteRecipeInput): Promise<RecipeRecord>;
|
|
244
|
+
getById(id: string): Promise<RecipeRecord | undefined>;
|
|
245
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly RecipeRecord[]>;
|
|
246
|
+
resolve(input: ResolveRegistryRecordInput): Promise<RecipeRecord | undefined>;
|
|
247
|
+
}
|
|
248
|
+
interface InteractionTraceRegistryStore {
|
|
249
|
+
readonly recordsDirectory: string;
|
|
250
|
+
readonly indexesDirectory: string;
|
|
251
|
+
write(input: WriteInteractionTraceInput): Promise<InteractionTraceRecord>;
|
|
252
|
+
getById(id: string): Promise<InteractionTraceRecord | undefined>;
|
|
253
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly InteractionTraceRecord[]>;
|
|
254
|
+
resolve(input: ResolveRegistryRecordInput): Promise<InteractionTraceRecord | undefined>;
|
|
255
|
+
}
|
|
256
|
+
interface ReverseCaseRegistryStore {
|
|
257
|
+
readonly recordsDirectory: string;
|
|
258
|
+
readonly indexesDirectory: string;
|
|
259
|
+
write(input: WriteReverseCaseInput): Promise<ReverseCaseRecord>;
|
|
260
|
+
getById(id: string): Promise<ReverseCaseRecord | undefined>;
|
|
261
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly ReverseCaseRecord[]>;
|
|
262
|
+
resolve(input: ResolveRegistryRecordInput): Promise<ReverseCaseRecord | undefined>;
|
|
263
|
+
update(input: UpdateReverseCaseInput): Promise<ReverseCaseRecord>;
|
|
264
|
+
}
|
|
265
|
+
interface ReversePackageRegistryStore {
|
|
266
|
+
readonly recordsDirectory: string;
|
|
267
|
+
readonly indexesDirectory: string;
|
|
268
|
+
write(input: WriteReversePackageInput): Promise<ReversePackageRecord>;
|
|
269
|
+
getById(id: string): Promise<ReversePackageRecord | undefined>;
|
|
270
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly ReversePackageRecord[]>;
|
|
271
|
+
resolve(input: ResolveRegistryRecordInput): Promise<ReversePackageRecord | undefined>;
|
|
272
|
+
}
|
|
273
|
+
interface ReverseReportRegistryStore {
|
|
274
|
+
readonly recordsDirectory: string;
|
|
275
|
+
readonly indexesDirectory: string;
|
|
276
|
+
write(input: WriteReverseReportInput): Promise<ReverseReportRecord>;
|
|
277
|
+
getById(id: string): Promise<ReverseReportRecord | undefined>;
|
|
278
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly ReverseReportRecord[]>;
|
|
279
|
+
resolve(input: ResolveRegistryRecordInput): Promise<ReverseReportRecord | undefined>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
interface SavedNetworkQueryInput {
|
|
283
|
+
readonly recordId?: string;
|
|
284
|
+
readonly requestId?: string;
|
|
285
|
+
readonly actionId?: string;
|
|
286
|
+
readonly tag?: string;
|
|
287
|
+
readonly url?: string;
|
|
288
|
+
readonly hostname?: string;
|
|
289
|
+
readonly path?: string;
|
|
290
|
+
readonly method?: string;
|
|
291
|
+
readonly status?: string;
|
|
292
|
+
readonly resourceType?: NetworkResourceType;
|
|
293
|
+
readonly includeBodies?: boolean;
|
|
294
|
+
readonly limit?: number;
|
|
295
|
+
}
|
|
296
|
+
interface SavedNetworkStore {
|
|
297
|
+
readonly databasePath: string;
|
|
298
|
+
initialize(): Promise<void>;
|
|
299
|
+
save(records: readonly NetworkQueryRecord[], tag?: string): Promise<number>;
|
|
300
|
+
query(input?: SavedNetworkQueryInput): Promise<readonly NetworkQueryRecord[]>;
|
|
301
|
+
getByRecordId(recordId: string, options?: {
|
|
302
|
+
readonly includeBodies?: boolean;
|
|
303
|
+
}): Promise<NetworkQueryRecord | undefined>;
|
|
304
|
+
clear(input?: {
|
|
305
|
+
readonly tag?: string;
|
|
306
|
+
}): Promise<number>;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
interface TraceRunManifest {
|
|
310
|
+
readonly runId: string;
|
|
311
|
+
readonly createdAt: number;
|
|
312
|
+
readonly updatedAt: number;
|
|
313
|
+
readonly entryCount: number;
|
|
314
|
+
}
|
|
315
|
+
interface CreateTraceRunInput {
|
|
316
|
+
readonly runId?: string;
|
|
317
|
+
readonly createdAt?: number;
|
|
318
|
+
}
|
|
319
|
+
interface AppendTraceEntryInput<TData extends JsonValue = JsonValue> {
|
|
320
|
+
readonly traceId?: string;
|
|
321
|
+
readonly stepId?: string;
|
|
322
|
+
readonly operation: string;
|
|
323
|
+
readonly outcome: TraceOutcome;
|
|
324
|
+
readonly startedAt: number;
|
|
325
|
+
readonly completedAt: number;
|
|
326
|
+
readonly context?: TraceContext;
|
|
327
|
+
readonly events?: readonly OpensteerEvent[];
|
|
328
|
+
readonly artifacts?: readonly ArtifactReference[];
|
|
329
|
+
readonly data?: TData;
|
|
330
|
+
readonly error?: OpensteerError;
|
|
331
|
+
}
|
|
332
|
+
interface TraceEntryRecord<TData extends JsonValue = JsonValue> {
|
|
333
|
+
readonly runId: string;
|
|
334
|
+
readonly sequence: number;
|
|
335
|
+
readonly traceId: string;
|
|
336
|
+
readonly stepId: string;
|
|
337
|
+
readonly operation: string;
|
|
338
|
+
readonly outcome: TraceOutcome;
|
|
339
|
+
readonly startedAt: number;
|
|
340
|
+
readonly completedAt: number;
|
|
341
|
+
readonly durationMs: number;
|
|
342
|
+
readonly context: TraceContext;
|
|
343
|
+
readonly events: readonly OpensteerEvent[];
|
|
344
|
+
readonly artifacts?: readonly ArtifactReference[];
|
|
345
|
+
readonly data?: TData;
|
|
346
|
+
readonly error?: OpensteerError;
|
|
347
|
+
}
|
|
348
|
+
interface OpensteerTraceStore {
|
|
349
|
+
readonly runsDirectory: string;
|
|
350
|
+
createRun(input?: CreateTraceRunInput): Promise<TraceRunManifest>;
|
|
351
|
+
getRun(runId: string): Promise<TraceRunManifest | undefined>;
|
|
352
|
+
append<TData extends JsonValue>(runId: string, input: AppendTraceEntryInput<TData>): Promise<TraceEntryRecord<TData>>;
|
|
353
|
+
listEntries(runId: string): Promise<readonly TraceEntryRecord[]>;
|
|
354
|
+
getEntry(runId: string, traceId: string): Promise<TraceEntryRecord | undefined>;
|
|
355
|
+
toProtocolTraceRecord<TData extends JsonValue>(entry: TraceEntryRecord<TData>): TraceRecord<TData>;
|
|
356
|
+
readProtocolTraceBundle(runId: string, traceId: string, options?: {
|
|
357
|
+
readonly artifactDelivery?: ProtocolArtifactDelivery;
|
|
358
|
+
}): Promise<TraceBundle | undefined>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
declare const OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT = "opensteer-workspace";
|
|
362
|
+
declare const OPENSTEER_FILESYSTEM_WORKSPACE_VERSION = 2;
|
|
363
|
+
interface OpensteerWorkspaceManifest {
|
|
364
|
+
readonly layout: typeof OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT;
|
|
365
|
+
readonly version: typeof OPENSTEER_FILESYSTEM_WORKSPACE_VERSION;
|
|
366
|
+
readonly scope: "workspace" | "temporary";
|
|
367
|
+
readonly workspace?: string;
|
|
368
|
+
readonly createdAt: number;
|
|
369
|
+
readonly updatedAt: number;
|
|
370
|
+
readonly paths: {
|
|
371
|
+
readonly browser: "browser";
|
|
372
|
+
readonly live: "live";
|
|
373
|
+
readonly artifacts: "artifacts";
|
|
374
|
+
readonly traces: "traces";
|
|
375
|
+
readonly registry: "registry";
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
interface CreateFilesystemOpensteerWorkspaceOptions {
|
|
379
|
+
readonly rootPath: string;
|
|
380
|
+
readonly workspace?: string;
|
|
381
|
+
readonly scope?: "workspace" | "temporary";
|
|
382
|
+
readonly createdAt?: number;
|
|
383
|
+
}
|
|
384
|
+
interface FilesystemOpensteerWorkspace {
|
|
385
|
+
readonly rootPath: string;
|
|
386
|
+
readonly manifestPath: string;
|
|
387
|
+
readonly manifest: OpensteerWorkspaceManifest;
|
|
388
|
+
readonly browserPath: string;
|
|
389
|
+
readonly browserManifestPath: string;
|
|
390
|
+
readonly browserUserDataDir: string;
|
|
391
|
+
readonly livePath: string;
|
|
392
|
+
readonly liveSessionPath: string;
|
|
393
|
+
readonly liveBrowserPath: string;
|
|
394
|
+
readonly artifactsPath: string;
|
|
395
|
+
readonly tracesPath: string;
|
|
396
|
+
readonly registryPath: string;
|
|
397
|
+
readonly lockPath: string;
|
|
398
|
+
readonly artifacts: OpensteerArtifactStore;
|
|
399
|
+
readonly traces: OpensteerTraceStore;
|
|
400
|
+
readonly registry: {
|
|
401
|
+
readonly descriptors: DescriptorRegistryStore;
|
|
402
|
+
readonly requestPlans: RequestPlanRegistryStore;
|
|
403
|
+
readonly authRecipes: AuthRecipeRegistryStore;
|
|
404
|
+
readonly recipes: RecipeRegistryStore;
|
|
405
|
+
readonly savedNetwork: SavedNetworkStore;
|
|
406
|
+
readonly reverseCases: ReverseCaseRegistryStore;
|
|
407
|
+
readonly interactionTraces: InteractionTraceRegistryStore;
|
|
408
|
+
readonly reversePackages: ReversePackageRegistryStore;
|
|
409
|
+
readonly reverseReports: ReverseReportRegistryStore;
|
|
410
|
+
};
|
|
411
|
+
lock<T>(task: () => Promise<T>): Promise<T>;
|
|
412
|
+
}
|
|
413
|
+
declare function normalizeWorkspaceId(workspace: string): string;
|
|
414
|
+
declare function resolveFilesystemWorkspacePath(input: {
|
|
415
|
+
readonly rootDir: string;
|
|
416
|
+
readonly workspace: string;
|
|
417
|
+
}): string;
|
|
418
|
+
declare function createFilesystemOpensteerWorkspace(options: CreateFilesystemOpensteerWorkspaceOptions): Promise<FilesystemOpensteerWorkspace>;
|
|
419
|
+
|
|
420
|
+
interface OpensteerRouteRequest {
|
|
421
|
+
readonly url: string;
|
|
422
|
+
readonly method: string;
|
|
423
|
+
readonly headers: readonly HeaderEntry[];
|
|
424
|
+
readonly resourceType: NetworkRecord["resourceType"];
|
|
425
|
+
readonly pageRef?: PageRef;
|
|
426
|
+
readonly postData?: BodyPayload;
|
|
427
|
+
}
|
|
428
|
+
interface OpensteerFetchedRouteResponse {
|
|
429
|
+
readonly url: string;
|
|
430
|
+
readonly status: number;
|
|
431
|
+
readonly statusText: string;
|
|
432
|
+
readonly headers: readonly HeaderEntry[];
|
|
433
|
+
readonly body?: BodyPayload;
|
|
434
|
+
readonly redirected: boolean;
|
|
435
|
+
}
|
|
436
|
+
type OpensteerRouteHandlerResult = {
|
|
437
|
+
readonly kind: "continue";
|
|
438
|
+
} | {
|
|
439
|
+
readonly kind: "fulfill";
|
|
440
|
+
readonly status?: number;
|
|
441
|
+
readonly headers?: readonly HeaderEntry[];
|
|
442
|
+
readonly body?: string | Uint8Array;
|
|
443
|
+
readonly contentType?: string;
|
|
444
|
+
} | {
|
|
445
|
+
readonly kind: "abort";
|
|
446
|
+
readonly errorCode?: string;
|
|
447
|
+
};
|
|
448
|
+
interface OpensteerRouteOptions {
|
|
449
|
+
readonly pageRef?: PageRef;
|
|
450
|
+
readonly urlPattern: string;
|
|
451
|
+
readonly resourceTypes?: readonly NetworkRecord["resourceType"][];
|
|
452
|
+
readonly times?: number;
|
|
453
|
+
readonly handler: (input: {
|
|
454
|
+
readonly request: OpensteerRouteRequest;
|
|
455
|
+
fetchOriginal(): Promise<OpensteerFetchedRouteResponse>;
|
|
456
|
+
}) => OpensteerRouteHandlerResult | Promise<OpensteerRouteHandlerResult>;
|
|
457
|
+
}
|
|
458
|
+
interface OpensteerRouteRegistration {
|
|
459
|
+
readonly routeId: string;
|
|
460
|
+
readonly sessionRef: SessionRef;
|
|
461
|
+
readonly pageRef?: PageRef;
|
|
462
|
+
readonly urlPattern: string;
|
|
463
|
+
}
|
|
464
|
+
interface OpensteerInterceptScriptOptions {
|
|
465
|
+
readonly pageRef?: PageRef;
|
|
466
|
+
readonly urlPattern: string;
|
|
467
|
+
readonly times?: number;
|
|
468
|
+
readonly handler: (input: {
|
|
469
|
+
readonly url: string;
|
|
470
|
+
readonly content: string;
|
|
471
|
+
readonly headers: readonly HeaderEntry[];
|
|
472
|
+
readonly status: number;
|
|
473
|
+
}) => string | Promise<string>;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
interface OpensteerEngineFactoryOptions {
|
|
477
|
+
readonly browser?: OpensteerBrowserOptions;
|
|
478
|
+
readonly launch?: OpensteerBrowserLaunchOptions;
|
|
479
|
+
readonly context?: OpensteerBrowserContextOptions;
|
|
480
|
+
}
|
|
481
|
+
type OpensteerEngineFactory = (options: OpensteerEngineFactoryOptions) => Promise<BrowserCoreEngine>;
|
|
482
|
+
type OpensteerRuntimeWorkspace = FilesystemOpensteerWorkspace;
|
|
483
|
+
interface OpensteerSessionRuntimeOptions {
|
|
484
|
+
readonly name: string;
|
|
485
|
+
readonly workspace?: OpensteerRuntimeWorkspace;
|
|
486
|
+
readonly workspaceName?: string;
|
|
487
|
+
readonly rootPath?: string;
|
|
488
|
+
readonly engine?: BrowserCoreEngine;
|
|
489
|
+
readonly engineFactory?: OpensteerEngineFactory;
|
|
490
|
+
readonly policy?: OpensteerPolicy;
|
|
491
|
+
readonly cleanupRootOnClose?: boolean;
|
|
492
|
+
readonly sessionInfo?: Partial<Omit<OpensteerSessionInfo, "sessionId" | "activePageRef">>;
|
|
493
|
+
}
|
|
494
|
+
interface RuntimeOperationOptions {
|
|
495
|
+
readonly signal?: AbortSignal;
|
|
496
|
+
}
|
|
497
|
+
declare class OpensteerSessionRuntime {
|
|
498
|
+
readonly workspace: string;
|
|
499
|
+
readonly rootPath: string;
|
|
500
|
+
private readonly workspaceName;
|
|
501
|
+
private readonly injectedEngine;
|
|
502
|
+
private readonly engineFactory;
|
|
503
|
+
private readonly policy;
|
|
504
|
+
private readonly cleanupRootOnClose;
|
|
505
|
+
private readonly sessionInfoBase;
|
|
506
|
+
private root;
|
|
507
|
+
private engine;
|
|
508
|
+
private dom;
|
|
509
|
+
private computer;
|
|
510
|
+
private readonly networkJournal;
|
|
511
|
+
private extractionDescriptors;
|
|
512
|
+
private sessionRef;
|
|
513
|
+
private pageRef;
|
|
514
|
+
private runId;
|
|
515
|
+
private latestSnapshot;
|
|
516
|
+
private readonly backgroundNetworkPersistence;
|
|
517
|
+
private readonly cookieJars;
|
|
518
|
+
private readonly recipeCache;
|
|
519
|
+
private ownsEngine;
|
|
520
|
+
constructor(options: OpensteerSessionRuntimeOptions);
|
|
521
|
+
info(): Promise<OpensteerSessionInfo>;
|
|
522
|
+
open(input?: OpensteerOpenInput, options?: RuntimeOperationOptions): Promise<OpensteerOpenOutput>;
|
|
523
|
+
listPages(input?: OpensteerPageListInput, options?: RuntimeOperationOptions): Promise<OpensteerPageListOutput>;
|
|
524
|
+
newPage(input?: OpensteerPageNewInput, options?: RuntimeOperationOptions): Promise<OpensteerPageNewOutput>;
|
|
525
|
+
activatePage(input: OpensteerPageActivateInput, options?: RuntimeOperationOptions): Promise<OpensteerPageActivateOutput>;
|
|
526
|
+
closePage(input?: OpensteerPageCloseInput, options?: RuntimeOperationOptions): Promise<OpensteerPageCloseOutput>;
|
|
527
|
+
goto(input: OpensteerPageGotoInput, options?: RuntimeOperationOptions): Promise<OpensteerPageGotoOutput>;
|
|
528
|
+
evaluate(input: OpensteerPageEvaluateInput, options?: RuntimeOperationOptions): Promise<OpensteerPageEvaluateOutput>;
|
|
529
|
+
addInitScript(input: OpensteerAddInitScriptInput, options?: RuntimeOperationOptions): Promise<OpensteerAddInitScriptOutput>;
|
|
530
|
+
snapshot(input?: OpensteerPageSnapshotInput, options?: RuntimeOperationOptions): Promise<OpensteerPageSnapshotOutput>;
|
|
531
|
+
click(input: OpensteerDomClickInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
532
|
+
hover(input: OpensteerDomHoverInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
533
|
+
input(input: OpensteerDomInputInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
534
|
+
scroll(input: OpensteerDomScrollInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
535
|
+
extract(input: OpensteerDomExtractInput, options?: RuntimeOperationOptions): Promise<OpensteerDomExtractOutput>;
|
|
536
|
+
queryNetwork(input?: OpensteerNetworkQueryInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkQueryOutput>;
|
|
537
|
+
saveNetwork(input: OpensteerNetworkSaveInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkSaveOutput>;
|
|
538
|
+
clearNetwork(input?: OpensteerNetworkClearInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkClearOutput>;
|
|
539
|
+
captureScripts(input?: OpensteerCaptureScriptsInput, options?: RuntimeOperationOptions): Promise<OpensteerCaptureScriptsOutput>;
|
|
540
|
+
minimizeNetwork(input: OpensteerNetworkMinimizeInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkMinimizeOutput>;
|
|
541
|
+
diffNetwork(input: OpensteerNetworkDiffInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkDiffOutput>;
|
|
542
|
+
readArtifact(input: OpensteerArtifactReadInput, options?: RuntimeOperationOptions): Promise<OpensteerArtifactReadOutput>;
|
|
543
|
+
probeNetwork(input: OpensteerTransportProbeInput, options?: RuntimeOperationOptions): Promise<OpensteerTransportProbeOutput>;
|
|
544
|
+
discoverReverse(input: OpensteerReverseDiscoverInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseDiscoverOutput>;
|
|
545
|
+
queryReverse(input: OpensteerReverseQueryInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseQueryOutput>;
|
|
546
|
+
createReversePackage(input: OpensteerReversePackageCreateInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageCreateOutput>;
|
|
547
|
+
runReversePackage(input: OpensteerReversePackageRunInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageRunOutput>;
|
|
548
|
+
exportReverse(input: OpensteerReverseExportInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseExportOutput>;
|
|
549
|
+
getReverseReport(input: OpensteerReverseReportInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseReportOutput>;
|
|
550
|
+
getReversePackage(input: OpensteerReversePackageGetInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageGetOutput>;
|
|
551
|
+
listReversePackages(input?: OpensteerReversePackageListInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageListOutput>;
|
|
552
|
+
patchReversePackage(input: OpensteerReversePackagePatchInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackagePatchOutput>;
|
|
553
|
+
private captureReverseCaseInternal;
|
|
554
|
+
private analyzeReverseCaseInternal;
|
|
555
|
+
private queryReverseCaseInternal;
|
|
556
|
+
private resolveReversePackageSource;
|
|
557
|
+
private replayReversePackageInternal;
|
|
558
|
+
private executeReversePackageWorkflow;
|
|
559
|
+
private executeReversePackageOperationStep;
|
|
560
|
+
private resolveReversePackageResolverValues;
|
|
561
|
+
private resolveReversePackageResolverValue;
|
|
562
|
+
private resolveReverseValueTemplate;
|
|
563
|
+
private resolveReverseValueReference;
|
|
564
|
+
private waitForReversePackageRecord;
|
|
565
|
+
private buildReverseTransportOperationInput;
|
|
566
|
+
private writePortableReverseRequestPlan;
|
|
567
|
+
private writeReversePackage;
|
|
568
|
+
private buildReversePackageDraft;
|
|
569
|
+
private writeReverseReportRecord;
|
|
570
|
+
captureInteraction(input: OpensteerInteractionCaptureInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionCaptureOutput>;
|
|
571
|
+
getInteraction(input: OpensteerInteractionGetInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionGetOutput>;
|
|
572
|
+
private runInteractionCaptureScript;
|
|
573
|
+
private runInteractionCaptureSteps;
|
|
574
|
+
diffInteraction(input: OpensteerInteractionDiffInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionDiffOutput>;
|
|
575
|
+
replayInteraction(input: OpensteerInteractionReplayInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionReplayOutput>;
|
|
576
|
+
beautifyScript(input: OpensteerScriptBeautifyInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptBeautifyOutput>;
|
|
577
|
+
deobfuscateScript(input: OpensteerScriptDeobfuscateInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptDeobfuscateOutput>;
|
|
578
|
+
sandboxScript(input: OpensteerScriptSandboxInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptSandboxOutput>;
|
|
579
|
+
solveCaptcha(input: OpensteerCaptchaSolveInput, options?: RuntimeOperationOptions): Promise<OpensteerCaptchaSolveOutput>;
|
|
580
|
+
inferRequestPlan(input: OpensteerInferRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
581
|
+
writeRequestPlan(input: OpensteerWriteRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
582
|
+
getRequestPlan(input: OpensteerGetRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
583
|
+
listRequestPlans(input?: OpensteerListRequestPlansInput, options?: RuntimeOperationOptions): Promise<OpensteerListRequestPlansOutput>;
|
|
584
|
+
writeAuthRecipe(input: OpensteerWriteAuthRecipeInput, options?: RuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
585
|
+
writeRecipe(input: OpensteerWriteRecipeInput, options?: RuntimeOperationOptions): Promise<RecipeRecord>;
|
|
586
|
+
getAuthRecipe(input: OpensteerGetAuthRecipeInput, options?: RuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
587
|
+
getRecipe(input: OpensteerGetRecipeInput, options?: RuntimeOperationOptions): Promise<RecipeRecord>;
|
|
588
|
+
listAuthRecipes(input?: OpensteerListAuthRecipesInput, options?: RuntimeOperationOptions): Promise<OpensteerListAuthRecipesOutput>;
|
|
589
|
+
listRecipes(input?: OpensteerListRecipesInput, options?: RuntimeOperationOptions): Promise<OpensteerListRecipesOutput>;
|
|
590
|
+
getCookies(input?: {
|
|
591
|
+
readonly urls?: readonly string[];
|
|
592
|
+
}, options?: RuntimeOperationOptions): Promise<readonly CookieRecord[]>;
|
|
593
|
+
getStorageSnapshot(input?: {
|
|
594
|
+
readonly includeSessionStorage?: boolean;
|
|
595
|
+
readonly includeIndexedDb?: boolean;
|
|
596
|
+
}, options?: RuntimeOperationOptions): Promise<StorageSnapshot>;
|
|
597
|
+
runAuthRecipe(input: OpensteerRunAuthRecipeInput, options?: RuntimeOperationOptions): Promise<OpensteerRunAuthRecipeOutput>;
|
|
598
|
+
runRecipe(input: OpensteerRunRecipeInput, options?: RuntimeOperationOptions): Promise<OpensteerRunRecipeOutput>;
|
|
599
|
+
rawRequest(input: OpensteerRawRequestInput, options?: RuntimeOperationOptions): Promise<OpensteerRawRequestOutput>;
|
|
600
|
+
route(input: OpensteerRouteOptions): Promise<OpensteerRouteRegistration>;
|
|
601
|
+
interceptScript(input: OpensteerInterceptScriptOptions): Promise<OpensteerRouteRegistration>;
|
|
602
|
+
request(input: OpensteerRequestExecuteInput, options?: RuntimeOperationOptions): Promise<OpensteerRequestExecuteOutput>;
|
|
603
|
+
computerExecute(input: OpensteerComputerExecuteInput, options?: RuntimeOperationOptions): Promise<OpensteerComputerExecuteOutput>;
|
|
604
|
+
close(options?: RuntimeOperationOptions): Promise<OpensteerSessionCloseOutput>;
|
|
605
|
+
disconnect(): Promise<void>;
|
|
606
|
+
isOpen(): boolean;
|
|
607
|
+
private runDomAction;
|
|
608
|
+
private prepareDomTarget;
|
|
609
|
+
private queryLiveNetwork;
|
|
610
|
+
private captureScriptsInternal;
|
|
611
|
+
private materializeCapturedScript;
|
|
612
|
+
private beginMutationCapture;
|
|
613
|
+
private completeMutationCapture;
|
|
614
|
+
private resolveNetworkRecordByRecordId;
|
|
615
|
+
private resolveCurrentStateSource;
|
|
616
|
+
private resolveReverseCaseById;
|
|
617
|
+
private tryResolveReverseCaseById;
|
|
618
|
+
private resolveReversePackageById;
|
|
619
|
+
private resolveReverseReportById;
|
|
620
|
+
private resolveReverseReportByPackageId;
|
|
621
|
+
private resolveReverseReportByCaseId;
|
|
622
|
+
private resolveInteractionTraceById;
|
|
623
|
+
private captureReverseStateSnapshot;
|
|
624
|
+
private restoreReverseStateSnapshots;
|
|
625
|
+
private waitForObservedReplayRecord;
|
|
626
|
+
private waitForMatchingReplayRecord;
|
|
627
|
+
private isObservedReplayRecordSettled;
|
|
628
|
+
private replayInteractionTraceById;
|
|
629
|
+
private readLiveNetworkRecords;
|
|
630
|
+
private readLiveRequestIds;
|
|
631
|
+
private observeLiveTransportDelta;
|
|
632
|
+
private executeTransportRequestWithJournal;
|
|
633
|
+
private currentBinding;
|
|
634
|
+
private requireSessionRef;
|
|
635
|
+
private ensureBrowserTransportBinding;
|
|
636
|
+
private requireExistingBrowserBindingForRecovery;
|
|
637
|
+
private executeRawTransportRequest;
|
|
638
|
+
private executeDirectTransportRequestWithPersistence;
|
|
639
|
+
private executePageHttpTransportRequestWithPersistence;
|
|
640
|
+
private executeContextTransportRequestWithPersistence;
|
|
641
|
+
private executeMatchedTlsTransportRequestWithPersistence;
|
|
642
|
+
private executePageHttpTransportRequest;
|
|
643
|
+
private executePageHttpEventStreamRequest;
|
|
644
|
+
private executePageHttpWebSocketRequest;
|
|
645
|
+
private executeContextTransportRequest;
|
|
646
|
+
private executeMatchedTlsTransportRequest;
|
|
647
|
+
private persistDirectTransportRecord;
|
|
648
|
+
private executeResolvedRequestPlan;
|
|
649
|
+
private executePlanTransportRequest;
|
|
650
|
+
private touchRequestPlanFreshness;
|
|
651
|
+
private executeConfiguredRecipeBinding;
|
|
652
|
+
private clearRecipeBindingCache;
|
|
653
|
+
private retryResolvedRequestPlan;
|
|
654
|
+
private resolveRecipeRecord;
|
|
655
|
+
private runResolvedRecipe;
|
|
656
|
+
private executeRecipeRecord;
|
|
657
|
+
private executeRecipeStep;
|
|
658
|
+
private executeAuthRecipeHook;
|
|
659
|
+
private executeRecipeRequest;
|
|
660
|
+
private resolvePageHttpBinding;
|
|
661
|
+
private syncBrowserCookiesToJar;
|
|
662
|
+
private executeAnalysisTransportRequest;
|
|
663
|
+
private resolveScriptTransformSource;
|
|
664
|
+
private buildScriptTransformOutput;
|
|
665
|
+
private applyCookieJarToTransportRequest;
|
|
666
|
+
private updateCookieJarFromResponse;
|
|
667
|
+
private readCookieValue;
|
|
668
|
+
private readStorageValue;
|
|
669
|
+
private scheduleBackgroundNetworkSaveByRequestIds;
|
|
670
|
+
private flushBackgroundNetworkPersistence;
|
|
671
|
+
private toDomTargetRef;
|
|
672
|
+
private ensureRoot;
|
|
673
|
+
private ensureEngine;
|
|
674
|
+
private ensureSemantics;
|
|
675
|
+
private ensurePageRef;
|
|
676
|
+
private requireRoot;
|
|
677
|
+
private requireEngine;
|
|
678
|
+
private requireDom;
|
|
679
|
+
private requireComputer;
|
|
680
|
+
private requireExtractionDescriptors;
|
|
681
|
+
private ensureLiveRuntimeBinding;
|
|
682
|
+
private probeRuntimeBindingHealth;
|
|
683
|
+
private readSessionState;
|
|
684
|
+
private captureSnapshotArtifacts;
|
|
685
|
+
private persistComputerArtifacts;
|
|
686
|
+
private appendTrace;
|
|
687
|
+
private cleanupSessionResources;
|
|
688
|
+
private resetRuntimeState;
|
|
689
|
+
private runWithOperationTimeout;
|
|
690
|
+
private navigatePage;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
interface OpensteerRuntimeOperationOptions {
|
|
694
|
+
readonly signal?: AbortSignal;
|
|
695
|
+
}
|
|
696
|
+
interface OpensteerSemanticRuntime {
|
|
697
|
+
info(options?: OpensteerRuntimeOperationOptions): Promise<OpensteerSessionInfo>;
|
|
698
|
+
open(input?: OpensteerOpenInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerOpenOutput>;
|
|
699
|
+
listPages(input?: OpensteerPageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageListOutput>;
|
|
700
|
+
newPage(input?: OpensteerPageNewInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageNewOutput>;
|
|
701
|
+
activatePage(input: OpensteerPageActivateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageActivateOutput>;
|
|
702
|
+
closePage(input?: OpensteerPageCloseInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageCloseOutput>;
|
|
703
|
+
goto(input: OpensteerPageGotoInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageGotoOutput>;
|
|
704
|
+
evaluate(input: OpensteerPageEvaluateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageEvaluateOutput>;
|
|
705
|
+
addInitScript(input: OpensteerAddInitScriptInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerAddInitScriptOutput>;
|
|
706
|
+
snapshot(input?: OpensteerPageSnapshotInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageSnapshotOutput>;
|
|
707
|
+
click(input: OpensteerDomClickInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
708
|
+
hover(input: OpensteerDomHoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
709
|
+
input(input: OpensteerDomInputInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
710
|
+
scroll(input: OpensteerDomScrollInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
711
|
+
extract(input: OpensteerDomExtractInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerDomExtractOutput>;
|
|
712
|
+
queryNetwork(input?: OpensteerNetworkQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkQueryOutput>;
|
|
713
|
+
saveNetwork(input: OpensteerNetworkSaveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkSaveOutput>;
|
|
714
|
+
minimizeNetwork(input: OpensteerNetworkMinimizeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkMinimizeOutput>;
|
|
715
|
+
diffNetwork(input: OpensteerNetworkDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkDiffOutput>;
|
|
716
|
+
probeNetwork(input: OpensteerTransportProbeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerTransportProbeOutput>;
|
|
717
|
+
discoverReverse(input: OpensteerReverseDiscoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseDiscoverOutput>;
|
|
718
|
+
queryReverse(input: OpensteerReverseQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseQueryOutput>;
|
|
719
|
+
createReversePackage(input: OpensteerReversePackageCreateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageCreateOutput>;
|
|
720
|
+
runReversePackage(input: OpensteerReversePackageRunInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageRunOutput>;
|
|
721
|
+
exportReverse(input: OpensteerReverseExportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseExportOutput>;
|
|
722
|
+
getReverseReport(input: OpensteerReverseReportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseReportOutput>;
|
|
723
|
+
getReversePackage(input: OpensteerReversePackageGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageGetOutput>;
|
|
724
|
+
listReversePackages(input?: OpensteerReversePackageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageListOutput>;
|
|
725
|
+
patchReversePackage(input: OpensteerReversePackagePatchInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackagePatchOutput>;
|
|
726
|
+
captureInteraction(input: OpensteerInteractionCaptureInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionCaptureOutput>;
|
|
727
|
+
getInteraction(input: OpensteerInteractionGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionGetOutput>;
|
|
728
|
+
diffInteraction(input: OpensteerInteractionDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionDiffOutput>;
|
|
729
|
+
replayInteraction(input: OpensteerInteractionReplayInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionReplayOutput>;
|
|
730
|
+
clearNetwork(input?: OpensteerNetworkClearInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkClearOutput>;
|
|
731
|
+
captureScripts(input?: OpensteerCaptureScriptsInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptureScriptsOutput>;
|
|
732
|
+
readArtifact(input: OpensteerArtifactReadInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerArtifactReadOutput>;
|
|
733
|
+
beautifyScript(input: OpensteerScriptBeautifyInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptBeautifyOutput>;
|
|
734
|
+
deobfuscateScript(input: OpensteerScriptDeobfuscateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptDeobfuscateOutput>;
|
|
735
|
+
sandboxScript(input: OpensteerScriptSandboxInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptSandboxOutput>;
|
|
736
|
+
solveCaptcha(input: OpensteerCaptchaSolveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptchaSolveOutput>;
|
|
737
|
+
getCookies(input?: {
|
|
738
|
+
readonly urls?: readonly string[];
|
|
739
|
+
}, options?: OpensteerRuntimeOperationOptions): Promise<readonly CookieRecord[]>;
|
|
740
|
+
getStorageSnapshot(input?: {
|
|
741
|
+
readonly includeSessionStorage?: boolean;
|
|
742
|
+
readonly includeIndexedDb?: boolean;
|
|
743
|
+
}, options?: OpensteerRuntimeOperationOptions): Promise<StorageSnapshot>;
|
|
744
|
+
rawRequest(input: OpensteerRawRequestInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRawRequestOutput>;
|
|
745
|
+
inferRequestPlan(input: OpensteerInferRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
746
|
+
writeRequestPlan(input: OpensteerWriteRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
747
|
+
getRequestPlan(input: OpensteerGetRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
748
|
+
listRequestPlans(input?: OpensteerListRequestPlansInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRequestPlansOutput>;
|
|
749
|
+
writeAuthRecipe(input: OpensteerWriteAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
750
|
+
writeRecipe(input: OpensteerWriteRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
751
|
+
getAuthRecipe(input: OpensteerGetAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
752
|
+
getRecipe(input: OpensteerGetRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
753
|
+
listAuthRecipes(input?: OpensteerListAuthRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListAuthRecipesOutput>;
|
|
754
|
+
listRecipes(input?: OpensteerListRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRecipesOutput>;
|
|
755
|
+
runAuthRecipe(input: OpensteerRunAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunAuthRecipeOutput>;
|
|
756
|
+
runRecipe(input: OpensteerRunRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunRecipeOutput>;
|
|
757
|
+
request(input: OpensteerRequestExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRequestExecuteOutput>;
|
|
758
|
+
computerExecute(input: OpensteerComputerExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerComputerExecuteOutput>;
|
|
759
|
+
close(options?: OpensteerRuntimeOperationOptions): Promise<OpensteerSessionCloseOutput>;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
declare function dispatchSemanticOperation(runtime: OpensteerSemanticRuntime, operation: OpensteerSemanticOperationName, input: unknown, options?: {
|
|
763
|
+
readonly signal?: AbortSignal;
|
|
764
|
+
}): Promise<unknown>;
|
|
765
|
+
|
|
766
|
+
export { type CreateFilesystemOpensteerWorkspaceOptions, type FilesystemOpensteerWorkspace, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OPENSTEER_RUNTIME_CORE_VERSION, type OpensteerEngineFactory, type OpensteerEngineFactoryOptions, type OpensteerRuntimeOperationOptions, type OpensteerRuntimeWorkspace, type OpensteerSemanticRuntime, OpensteerSessionRuntime, type OpensteerSessionRuntimeOptions, type OpensteerWorkspaceManifest, createFilesystemOpensteerWorkspace, dispatchSemanticOperation, normalizeWorkspaceId, resolveFilesystemWorkspacePath };
|