opensteer 0.8.2 → 0.8.4
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/README.md +7 -6
- package/dist/{chunk-X3G6QSCF.js → chunk-C7GWMSTV.js} +1700 -577
- package/dist/chunk-C7GWMSTV.js.map +1 -0
- package/dist/cli/bin.cjs +6115 -4757
- package/dist/cli/bin.cjs.map +1 -1
- package/dist/cli/bin.js +320 -52
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.cjs +1751 -614
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +484 -539
- package/dist/index.d.ts +484 -539
- package/dist/index.js +30 -26
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/skills/opensteer/SKILL.md +66 -13
- package/skills/opensteer/references/cli-reference.md +115 -20
- package/skills/opensteer/references/request-workflow.md +35 -15
- package/skills/opensteer/references/sdk-reference.md +85 -21
- package/dist/chunk-X3G6QSCF.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { OpensteerEngineFactory, DomDescriptorStore as DomDescriptorStore$1, OpensteerSessionRuntime as OpensteerSessionRuntime$1 } from '@opensteer/runtime-core';
|
|
2
|
+
export { OpensteerEngineFactory, OpensteerEngineFactoryOptions, OpensteerRuntimeWorkspace } from '@opensteer/runtime-core';
|
|
3
|
+
|
|
1
4
|
type JsonPrimitive$1 = boolean | number | string | null;
|
|
2
5
|
type JsonValue$1 = JsonPrimitive$1 | JsonObject$1 | JsonArray$1;
|
|
3
6
|
interface JsonObject$1 {
|
|
@@ -5,6 +8,9 @@ interface JsonObject$1 {
|
|
|
5
8
|
}
|
|
6
9
|
type JsonArray$1 = readonly JsonValue$1[];
|
|
7
10
|
|
|
11
|
+
declare const OPENSTEER_PROTOCOL_VERSION: string;
|
|
12
|
+
type OpensteerProtocolVersion = typeof OPENSTEER_PROTOCOL_VERSION;
|
|
13
|
+
|
|
8
14
|
interface ExternalBinaryLocation {
|
|
9
15
|
readonly delivery: "external";
|
|
10
16
|
readonly uri: string;
|
|
@@ -938,7 +944,6 @@ interface OpensteerRegistryProvenance {
|
|
|
938
944
|
readonly capturedAt?: number;
|
|
939
945
|
readonly notes?: string;
|
|
940
946
|
}
|
|
941
|
-
type OpensteerRequestPlanLifecycle = "draft" | "active" | "deprecated" | "retired";
|
|
942
947
|
interface OpensteerRequestPlanFreshness {
|
|
943
948
|
readonly lastValidatedAt?: number;
|
|
944
949
|
readonly staleAt?: number;
|
|
@@ -953,7 +958,6 @@ interface OpensteerRequestPlanRecord {
|
|
|
953
958
|
readonly contentHash: string;
|
|
954
959
|
readonly tags: readonly string[];
|
|
955
960
|
readonly provenance?: OpensteerRegistryProvenance;
|
|
956
|
-
readonly lifecycle: OpensteerRequestPlanLifecycle;
|
|
957
961
|
readonly freshness?: OpensteerRequestPlanFreshness;
|
|
958
962
|
readonly payload: OpensteerRequestPlanPayload;
|
|
959
963
|
}
|
|
@@ -1155,7 +1159,6 @@ interface OpensteerWriteRequestPlanInput {
|
|
|
1155
1159
|
readonly version: string;
|
|
1156
1160
|
readonly tags?: readonly string[];
|
|
1157
1161
|
readonly provenance?: OpensteerRegistryProvenance;
|
|
1158
|
-
readonly lifecycle?: OpensteerRequestPlanLifecycle;
|
|
1159
1162
|
readonly freshness?: OpensteerRequestPlanFreshness;
|
|
1160
1163
|
readonly payload: OpensteerRequestPlanPayload;
|
|
1161
1164
|
}
|
|
@@ -1286,7 +1289,7 @@ interface OpensteerInferRequestPlanInput {
|
|
|
1286
1289
|
readonly recordId: string;
|
|
1287
1290
|
readonly key: string;
|
|
1288
1291
|
readonly version: string;
|
|
1289
|
-
readonly
|
|
1292
|
+
readonly transport?: TransportKind;
|
|
1290
1293
|
}
|
|
1291
1294
|
|
|
1292
1295
|
interface ScreenshotArtifact {
|
|
@@ -1304,6 +1307,211 @@ interface ScreenshotArtifact {
|
|
|
1304
1307
|
declare const opensteerCapabilities: readonly ["sessions.manage", "pages.manage", "pages.navigate", "input.pointer", "input.keyboard", "input.touch", "artifacts.screenshot", "execution.pause", "execution.resume", "execution.freeze", "inspect.pages", "inspect.frames", "inspect.html", "inspect.domSnapshot", "inspect.text", "inspect.attributes", "inspect.hitTest", "inspect.viewportMetrics", "inspect.network", "inspect.networkBodies", "inspect.cookies", "inspect.localStorage", "inspect.sessionStorage", "inspect.indexedDb", "transport.sessionHttp", "instrumentation.initScripts", "instrumentation.routing", "events.pageLifecycle", "events.dialog", "events.download", "events.chooser", "events.worker", "events.console", "events.pageError", "events.websocket", "events.eventStream", "events.executionState", "surface.rest", "surface.mcp"];
|
|
1305
1308
|
type OpensteerCapability = (typeof opensteerCapabilities)[number];
|
|
1306
1309
|
|
|
1310
|
+
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
1311
|
+
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
1312
|
+
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
1313
|
+
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
1314
|
+
type CloudSessionVisibilityScope = "team" | "owner";
|
|
1315
|
+
type CloudProxyMode = "disabled" | "optional" | "required";
|
|
1316
|
+
type CloudProxyProtocol = "http" | "https" | "socks5";
|
|
1317
|
+
type CloudFingerprintMode = "off" | "auto";
|
|
1318
|
+
type BrowserProfileStatus = "active" | "archived" | "error";
|
|
1319
|
+
type BrowserProfileProxyPolicy = "strict_sticky";
|
|
1320
|
+
type BrowserProfileArchiveFormat = "tar.gz";
|
|
1321
|
+
type PortableBrowserProfileSnapshotFormat = "portable-cookies-v1+json.gz";
|
|
1322
|
+
type PortableBrowserFamily = "chromium";
|
|
1323
|
+
type BrowserProfileImportStatus = "awaiting_upload" | "queued" | "processing" | "ready" | "failed";
|
|
1324
|
+
interface PortableBrowserProfileSnapshotSource {
|
|
1325
|
+
readonly browserFamily: PortableBrowserFamily;
|
|
1326
|
+
readonly browserName?: string;
|
|
1327
|
+
readonly browserMajor?: string;
|
|
1328
|
+
readonly browserBrand?: string;
|
|
1329
|
+
readonly captureMethod?: string;
|
|
1330
|
+
readonly platform?: string;
|
|
1331
|
+
readonly capturedAt: number;
|
|
1332
|
+
}
|
|
1333
|
+
interface BrowserProfileImportSnapshotSummary {
|
|
1334
|
+
readonly source: PortableBrowserProfileSnapshotSource;
|
|
1335
|
+
readonly cookieCount: number;
|
|
1336
|
+
readonly domainCount: number;
|
|
1337
|
+
}
|
|
1338
|
+
interface CloudViewport {
|
|
1339
|
+
readonly width: number;
|
|
1340
|
+
readonly height: number;
|
|
1341
|
+
}
|
|
1342
|
+
interface CloudGeolocation {
|
|
1343
|
+
readonly latitude: number;
|
|
1344
|
+
readonly longitude: number;
|
|
1345
|
+
readonly accuracy?: number;
|
|
1346
|
+
}
|
|
1347
|
+
interface CloudBrowserContextConfig {
|
|
1348
|
+
readonly viewport?: CloudViewport;
|
|
1349
|
+
readonly locale?: string;
|
|
1350
|
+
readonly timezoneId?: string;
|
|
1351
|
+
readonly geolocation?: CloudGeolocation;
|
|
1352
|
+
readonly colorScheme?: "light" | "dark" | "no-preference";
|
|
1353
|
+
readonly userAgent?: string;
|
|
1354
|
+
readonly javaScriptEnabled?: boolean;
|
|
1355
|
+
readonly ignoreHTTPSErrors?: boolean;
|
|
1356
|
+
}
|
|
1357
|
+
interface CloudBrowserExtensionConfig {
|
|
1358
|
+
readonly includeDefaults?: boolean;
|
|
1359
|
+
readonly extensionKeys?: readonly string[];
|
|
1360
|
+
}
|
|
1361
|
+
interface CloudBrowserLaunchConfig {
|
|
1362
|
+
readonly headless?: boolean;
|
|
1363
|
+
readonly context?: CloudBrowserContextConfig;
|
|
1364
|
+
readonly chromeArgs?: readonly string[];
|
|
1365
|
+
readonly extensions?: CloudBrowserExtensionConfig;
|
|
1366
|
+
}
|
|
1367
|
+
interface CloudProxyPreference {
|
|
1368
|
+
readonly mode?: CloudProxyMode;
|
|
1369
|
+
readonly countryCode?: string;
|
|
1370
|
+
readonly region?: string;
|
|
1371
|
+
readonly city?: string;
|
|
1372
|
+
readonly proxyId?: string;
|
|
1373
|
+
}
|
|
1374
|
+
interface CloudFingerprintPreference {
|
|
1375
|
+
readonly mode?: CloudFingerprintMode;
|
|
1376
|
+
readonly locales?: readonly string[];
|
|
1377
|
+
readonly minWidth?: number;
|
|
1378
|
+
readonly maxWidth?: number;
|
|
1379
|
+
readonly minHeight?: number;
|
|
1380
|
+
readonly maxHeight?: number;
|
|
1381
|
+
readonly slim?: boolean;
|
|
1382
|
+
}
|
|
1383
|
+
interface CloudBrowserProfilePreference {
|
|
1384
|
+
readonly profileId: string;
|
|
1385
|
+
readonly reuseIfActive?: boolean;
|
|
1386
|
+
}
|
|
1387
|
+
type CloudBrowserProfileLaunchPreference = CloudBrowserProfilePreference;
|
|
1388
|
+
interface CloudSessionLaunchConfig {
|
|
1389
|
+
readonly browser?: CloudBrowserLaunchConfig;
|
|
1390
|
+
readonly proxy?: CloudProxyPreference;
|
|
1391
|
+
readonly fingerprint?: CloudFingerprintPreference;
|
|
1392
|
+
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
1393
|
+
}
|
|
1394
|
+
interface CloudSessionSummary {
|
|
1395
|
+
readonly sessionId: string;
|
|
1396
|
+
readonly workspaceId: string;
|
|
1397
|
+
readonly state: CloudSessionStatus;
|
|
1398
|
+
readonly createdAt: number;
|
|
1399
|
+
readonly sourceType: CloudSessionSourceType;
|
|
1400
|
+
readonly sourceRef?: string;
|
|
1401
|
+
readonly label?: string;
|
|
1402
|
+
}
|
|
1403
|
+
interface CloudSelectorCacheImportEntry {
|
|
1404
|
+
readonly workspace: string;
|
|
1405
|
+
readonly method: string;
|
|
1406
|
+
readonly descriptionHash: string;
|
|
1407
|
+
readonly description?: string;
|
|
1408
|
+
readonly path: unknown;
|
|
1409
|
+
readonly schemaHash?: string;
|
|
1410
|
+
readonly createdAt: number;
|
|
1411
|
+
readonly updatedAt: number;
|
|
1412
|
+
}
|
|
1413
|
+
interface CloudSelectorCacheImportRequest {
|
|
1414
|
+
readonly entries: readonly CloudSelectorCacheImportEntry[];
|
|
1415
|
+
}
|
|
1416
|
+
interface CloudSelectorCacheImportResponse {
|
|
1417
|
+
readonly imported: number;
|
|
1418
|
+
readonly inserted: number;
|
|
1419
|
+
readonly updated: number;
|
|
1420
|
+
readonly skipped: number;
|
|
1421
|
+
}
|
|
1422
|
+
interface CloudRegistryImportEntry {
|
|
1423
|
+
readonly workspace: string;
|
|
1424
|
+
readonly recordId: string;
|
|
1425
|
+
readonly key: string;
|
|
1426
|
+
readonly version: string;
|
|
1427
|
+
readonly contentHash: string;
|
|
1428
|
+
readonly tags: readonly string[];
|
|
1429
|
+
readonly provenance?: unknown;
|
|
1430
|
+
readonly payload: unknown;
|
|
1431
|
+
readonly createdAt: number;
|
|
1432
|
+
readonly updatedAt: number;
|
|
1433
|
+
}
|
|
1434
|
+
interface CloudRequestPlanImportEntry extends CloudRegistryImportEntry {
|
|
1435
|
+
readonly freshness?: unknown;
|
|
1436
|
+
}
|
|
1437
|
+
interface CloudRegistryImportRequest {
|
|
1438
|
+
readonly entries: readonly CloudRegistryImportEntry[];
|
|
1439
|
+
}
|
|
1440
|
+
interface CloudRequestPlanImportRequest {
|
|
1441
|
+
readonly entries: readonly CloudRequestPlanImportEntry[];
|
|
1442
|
+
}
|
|
1443
|
+
interface CloudRegistryImportResponse {
|
|
1444
|
+
readonly imported: number;
|
|
1445
|
+
readonly inserted: number;
|
|
1446
|
+
readonly updated: number;
|
|
1447
|
+
readonly skipped: number;
|
|
1448
|
+
}
|
|
1449
|
+
interface BrowserProfileDescriptor {
|
|
1450
|
+
readonly profileId: string;
|
|
1451
|
+
readonly teamId: string;
|
|
1452
|
+
readonly ownerUserId: string;
|
|
1453
|
+
readonly name: string;
|
|
1454
|
+
readonly status: BrowserProfileStatus;
|
|
1455
|
+
readonly proxyPolicy: BrowserProfileProxyPolicy;
|
|
1456
|
+
readonly stickyProxyId?: string;
|
|
1457
|
+
readonly proxyCountryCode?: string;
|
|
1458
|
+
readonly proxyRegion?: string;
|
|
1459
|
+
readonly proxyCity?: string;
|
|
1460
|
+
readonly fingerprintMode: CloudFingerprintMode;
|
|
1461
|
+
readonly fingerprintHash?: string;
|
|
1462
|
+
readonly activeSessionId?: string;
|
|
1463
|
+
readonly lastSessionId?: string;
|
|
1464
|
+
readonly lastLaunchedAt?: number;
|
|
1465
|
+
readonly latestRevision?: number;
|
|
1466
|
+
readonly latestStorageId?: string;
|
|
1467
|
+
readonly latestSizeBytes?: number;
|
|
1468
|
+
readonly latestArchiveSha256?: string;
|
|
1469
|
+
readonly latestArchiveFormat?: BrowserProfileArchiveFormat;
|
|
1470
|
+
readonly createdAt: number;
|
|
1471
|
+
readonly updatedAt: number;
|
|
1472
|
+
readonly lastError?: string;
|
|
1473
|
+
}
|
|
1474
|
+
interface BrowserProfileListResponse {
|
|
1475
|
+
readonly profiles: readonly BrowserProfileDescriptor[];
|
|
1476
|
+
readonly nextCursor?: string;
|
|
1477
|
+
}
|
|
1478
|
+
interface BrowserProfileCreateRequest {
|
|
1479
|
+
readonly name: string;
|
|
1480
|
+
readonly proxy?: {
|
|
1481
|
+
readonly proxyId?: string;
|
|
1482
|
+
readonly countryCode?: string;
|
|
1483
|
+
readonly region?: string;
|
|
1484
|
+
readonly city?: string;
|
|
1485
|
+
};
|
|
1486
|
+
readonly fingerprint?: {
|
|
1487
|
+
readonly mode?: CloudFingerprintMode;
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
interface BrowserProfileImportCreateRequest {
|
|
1491
|
+
readonly profileId: string;
|
|
1492
|
+
}
|
|
1493
|
+
interface BrowserProfileImportCreateResponse {
|
|
1494
|
+
readonly importId: string;
|
|
1495
|
+
readonly profileId: string;
|
|
1496
|
+
readonly status: BrowserProfileImportStatus;
|
|
1497
|
+
readonly uploadUrl: string;
|
|
1498
|
+
readonly uploadMethod: "PUT";
|
|
1499
|
+
readonly uploadFormat: PortableBrowserProfileSnapshotFormat;
|
|
1500
|
+
readonly maxUploadBytes: number;
|
|
1501
|
+
}
|
|
1502
|
+
interface BrowserProfileImportDescriptor {
|
|
1503
|
+
readonly importId: string;
|
|
1504
|
+
readonly profileId: string;
|
|
1505
|
+
readonly status: BrowserProfileImportStatus;
|
|
1506
|
+
readonly uploadFormat: PortableBrowserProfileSnapshotFormat;
|
|
1507
|
+
readonly storageId?: string;
|
|
1508
|
+
readonly revision?: number;
|
|
1509
|
+
readonly error?: string;
|
|
1510
|
+
readonly snapshotSummary?: BrowserProfileImportSnapshotSummary;
|
|
1511
|
+
readonly createdAt: number;
|
|
1512
|
+
readonly updatedAt: number;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1307
1515
|
declare const opensteerErrorCodes: readonly ["invalid-request", "invalid-argument", "invalid-ref", "unsupported-version", "unsupported-operation", "unsupported-capability", "not-found", "stale-node-ref", "session-closed", "page-closed", "frame-detached", "timeout", "navigation-failed", "permission-denied", "conflict", "profile-unavailable", "auth-failure", "auth-recovery-failed", "browser-required", "rate-limited", "operation-failed", "internal"];
|
|
1308
1516
|
type OpensteerErrorCode = (typeof opensteerErrorCodes)[number];
|
|
1309
1517
|
interface OpensteerError {
|
|
@@ -1728,6 +1936,54 @@ interface OpensteerComputerExecuteOutput {
|
|
|
1728
1936
|
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.save", "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"];
|
|
1729
1937
|
type OpensteerSemanticOperationName = (typeof opensteerSemanticOperationNames)[number];
|
|
1730
1938
|
|
|
1939
|
+
declare const opensteerSessionGrantKinds: readonly ["automation", "view", "cdp"];
|
|
1940
|
+
type OpensteerSessionGrantKind = (typeof opensteerSessionGrantKinds)[number];
|
|
1941
|
+
type OpensteerProviderKind$1 = "local" | "cloud";
|
|
1942
|
+
type OpensteerSessionOwnership = "owned" | "attached" | "managed";
|
|
1943
|
+
interface OpensteerProviderDescriptor {
|
|
1944
|
+
readonly kind: OpensteerProviderKind$1;
|
|
1945
|
+
readonly ownership: OpensteerSessionOwnership;
|
|
1946
|
+
readonly engine?: string;
|
|
1947
|
+
readonly baseUrl?: string;
|
|
1948
|
+
readonly region?: string;
|
|
1949
|
+
}
|
|
1950
|
+
interface OpensteerSessionCapabilities {
|
|
1951
|
+
readonly semanticOperations: readonly OpensteerSemanticOperationName[];
|
|
1952
|
+
readonly protocolCapabilities?: readonly OpensteerCapability[];
|
|
1953
|
+
readonly sessionGrants?: readonly OpensteerSessionGrantKind[];
|
|
1954
|
+
readonly instrumentation: {
|
|
1955
|
+
readonly route: boolean;
|
|
1956
|
+
readonly interceptScript: boolean;
|
|
1957
|
+
readonly networkStream: boolean;
|
|
1958
|
+
};
|
|
1959
|
+
}
|
|
1960
|
+
interface OpensteerSessionGrant {
|
|
1961
|
+
readonly kind: OpensteerSessionGrantKind;
|
|
1962
|
+
readonly wsUrl: string;
|
|
1963
|
+
readonly token: string;
|
|
1964
|
+
readonly expiresAt: number;
|
|
1965
|
+
}
|
|
1966
|
+
interface OpensteerSessionAccessGrantResponse {
|
|
1967
|
+
readonly sessionId: string;
|
|
1968
|
+
readonly expiresAt: number;
|
|
1969
|
+
readonly grants: Partial<Record<OpensteerSessionGrantKind, OpensteerSessionGrant>>;
|
|
1970
|
+
}
|
|
1971
|
+
interface OpensteerRuntimeVersionInfo {
|
|
1972
|
+
readonly protocolVersion: OpensteerProtocolVersion;
|
|
1973
|
+
readonly runtimeCoreVersion?: string;
|
|
1974
|
+
readonly packages?: Readonly<Record<string, string>>;
|
|
1975
|
+
}
|
|
1976
|
+
interface OpensteerSessionInfo {
|
|
1977
|
+
readonly provider: OpensteerProviderDescriptor;
|
|
1978
|
+
readonly workspace?: string;
|
|
1979
|
+
readonly sessionId?: string;
|
|
1980
|
+
readonly activePageRef?: PageRef;
|
|
1981
|
+
readonly reconnectable: boolean;
|
|
1982
|
+
readonly capabilities: OpensteerSessionCapabilities;
|
|
1983
|
+
readonly grants?: readonly OpensteerSessionGrant[];
|
|
1984
|
+
readonly runtime?: OpensteerRuntimeVersionInfo;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1731
1987
|
type NetworkDiffFieldKind = "added" | "removed" | "changed" | "unchanged";
|
|
1732
1988
|
interface NetworkDiffEntropy {
|
|
1733
1989
|
readonly left?: number;
|
|
@@ -2849,10 +3105,8 @@ type InteractionTraceRecord = RegistryRecord<OpensteerInteractionTracePayload>;
|
|
|
2849
3105
|
type ReverseCaseRecord = RegistryRecord<OpensteerReverseCasePayload>;
|
|
2850
3106
|
type ReversePackageRecord = RegistryRecord<OpensteerReversePackagePayload>;
|
|
2851
3107
|
type ReverseReportRecord = RegistryRecord<OpensteerReverseReportPayload>;
|
|
2852
|
-
type RequestPlanLifecycle = OpensteerRequestPlanLifecycle;
|
|
2853
3108
|
type RequestPlanFreshness = OpensteerRequestPlanFreshness;
|
|
2854
3109
|
interface RequestPlanRecord extends RegistryRecord<OpensteerRequestPlanPayload> {
|
|
2855
|
-
readonly lifecycle: RequestPlanLifecycle;
|
|
2856
3110
|
readonly freshness?: RequestPlanFreshness;
|
|
2857
3111
|
}
|
|
2858
3112
|
interface ResolveRegistryRecordInput {
|
|
@@ -2870,7 +3124,6 @@ interface WriteDescriptorInput<TPayload = JsonValue> {
|
|
|
2870
3124
|
readonly payload: TPayload;
|
|
2871
3125
|
}
|
|
2872
3126
|
interface WriteRequestPlanInput extends WriteDescriptorInput<OpensteerRequestPlanPayload> {
|
|
2873
|
-
readonly lifecycle?: RequestPlanLifecycle;
|
|
2874
3127
|
readonly freshness?: RequestPlanFreshness;
|
|
2875
3128
|
}
|
|
2876
3129
|
interface WriteAuthRecipeInput extends WriteDescriptorInput<OpensteerAuthRecipePayload> {
|
|
@@ -2888,10 +3141,9 @@ interface WriteReverseReportInput extends WriteDescriptorInput<OpensteerReverseR
|
|
|
2888
3141
|
interface ListRegistryRecordsInput {
|
|
2889
3142
|
readonly key?: string;
|
|
2890
3143
|
}
|
|
2891
|
-
interface
|
|
3144
|
+
interface UpdateRequestPlanFreshnessInput {
|
|
2892
3145
|
readonly id: string;
|
|
2893
3146
|
readonly updatedAt?: number;
|
|
2894
|
-
readonly lifecycle?: RequestPlanLifecycle;
|
|
2895
3147
|
readonly freshness?: RequestPlanFreshness;
|
|
2896
3148
|
}
|
|
2897
3149
|
interface UpdateReverseCaseInput {
|
|
@@ -2906,6 +3158,7 @@ interface DescriptorRegistryStore {
|
|
|
2906
3158
|
readonly indexesDirectory: string;
|
|
2907
3159
|
write(input: WriteDescriptorInput): Promise<DescriptorRecord>;
|
|
2908
3160
|
getById(id: string): Promise<DescriptorRecord | undefined>;
|
|
3161
|
+
list(input?: ListRegistryRecordsInput): Promise<readonly DescriptorRecord[]>;
|
|
2909
3162
|
resolve(input: ResolveRegistryRecordInput): Promise<DescriptorRecord | undefined>;
|
|
2910
3163
|
}
|
|
2911
3164
|
interface RequestPlanRegistryStore {
|
|
@@ -2915,7 +3168,7 @@ interface RequestPlanRegistryStore {
|
|
|
2915
3168
|
getById(id: string): Promise<RequestPlanRecord | undefined>;
|
|
2916
3169
|
list(input?: ListRegistryRecordsInput): Promise<readonly RequestPlanRecord[]>;
|
|
2917
3170
|
resolve(input: ResolveRegistryRecordInput): Promise<RequestPlanRecord | undefined>;
|
|
2918
|
-
|
|
3171
|
+
updateFreshness(input: UpdateRequestPlanFreshnessInput): Promise<RequestPlanRecord>;
|
|
2919
3172
|
}
|
|
2920
3173
|
interface AuthRecipeRegistryStore {
|
|
2921
3174
|
readonly recordsDirectory: string;
|
|
@@ -3075,7 +3328,8 @@ interface FilesystemOpensteerWorkspace {
|
|
|
3075
3328
|
readonly browserManifestPath: string;
|
|
3076
3329
|
readonly browserUserDataDir: string;
|
|
3077
3330
|
readonly livePath: string;
|
|
3078
|
-
readonly
|
|
3331
|
+
readonly liveLocalPath: string;
|
|
3332
|
+
readonly liveCloudPath: string;
|
|
3079
3333
|
readonly artifactsPath: string;
|
|
3080
3334
|
readonly tracesPath: string;
|
|
3081
3335
|
readonly registryPath: string;
|
|
@@ -3344,6 +3598,11 @@ interface DomRuntime {
|
|
|
3344
3598
|
}): Promise<Readonly<Record<string, boolean>>>;
|
|
3345
3599
|
}
|
|
3346
3600
|
|
|
3601
|
+
interface DomDescriptorStore {
|
|
3602
|
+
read(input: DomReadDescriptorInput): Promise<DomDescriptorRecord | undefined>;
|
|
3603
|
+
write(input: DomWriteDescriptorInput): Promise<DomDescriptorRecord>;
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3347
3606
|
declare function buildArrayFieldPathCandidates(path: ElementPath): string[];
|
|
3348
3607
|
declare function isCurrentUrlField(field: DomExtractFieldSelector | DomArrayFieldSelector): boolean;
|
|
3349
3608
|
declare function normalizeExtractedValue(raw: unknown, attribute?: string): string | null;
|
|
@@ -3386,6 +3645,7 @@ declare function createDomRuntime(options: {
|
|
|
3386
3645
|
readonly engine: BrowserCoreEngine;
|
|
3387
3646
|
readonly root?: FilesystemOpensteerWorkspace;
|
|
3388
3647
|
readonly namespace?: string;
|
|
3648
|
+
readonly descriptorStore?: DomDescriptorStore;
|
|
3389
3649
|
readonly policy?: OpensteerPolicy;
|
|
3390
3650
|
}): DomRuntime;
|
|
3391
3651
|
|
|
@@ -3483,9 +3743,71 @@ declare class OpensteerBrowserManager {
|
|
|
3483
3743
|
private resolveLivePersistentEngineName;
|
|
3484
3744
|
private assertPersistentBrowserClosed;
|
|
3485
3745
|
private closePersistentBrowser;
|
|
3746
|
+
private writeLivePersistentBrowser;
|
|
3486
3747
|
private requirePersistentMode;
|
|
3487
3748
|
}
|
|
3488
3749
|
|
|
3750
|
+
interface OpensteerRuntimeOptions {
|
|
3751
|
+
readonly workspace?: string;
|
|
3752
|
+
readonly rootDir?: string;
|
|
3753
|
+
readonly rootPath?: string;
|
|
3754
|
+
readonly engineName?: OpensteerEngineName;
|
|
3755
|
+
readonly browser?: OpensteerBrowserOptions;
|
|
3756
|
+
readonly launch?: OpensteerBrowserLaunchOptions;
|
|
3757
|
+
readonly context?: OpensteerBrowserContextOptions;
|
|
3758
|
+
readonly engine?: BrowserCoreEngine;
|
|
3759
|
+
readonly engineFactory?: OpensteerEngineFactory;
|
|
3760
|
+
readonly policy?: OpensteerPolicy;
|
|
3761
|
+
readonly descriptorStore?: DomDescriptorStore$1;
|
|
3762
|
+
readonly cleanupRootOnClose?: boolean;
|
|
3763
|
+
}
|
|
3764
|
+
interface OpensteerSessionRuntimeOptions {
|
|
3765
|
+
readonly name: string;
|
|
3766
|
+
readonly rootDir?: string;
|
|
3767
|
+
readonly rootPath?: string;
|
|
3768
|
+
readonly engineName?: OpensteerEngineName;
|
|
3769
|
+
readonly browser?: OpensteerBrowserOptions;
|
|
3770
|
+
readonly launch?: OpensteerBrowserLaunchOptions;
|
|
3771
|
+
readonly context?: OpensteerBrowserContextOptions;
|
|
3772
|
+
readonly engine?: BrowserCoreEngine;
|
|
3773
|
+
readonly engineFactory?: OpensteerEngineFactory;
|
|
3774
|
+
readonly policy?: OpensteerPolicy;
|
|
3775
|
+
readonly descriptorStore?: DomDescriptorStore$1;
|
|
3776
|
+
readonly cleanupRootOnClose?: boolean;
|
|
3777
|
+
}
|
|
3778
|
+
declare class OpensteerRuntime extends OpensteerSessionRuntime$1 {
|
|
3779
|
+
constructor(options?: OpensteerRuntimeOptions);
|
|
3780
|
+
}
|
|
3781
|
+
declare class OpensteerSessionRuntime extends OpensteerSessionRuntime$1 {
|
|
3782
|
+
constructor(options: OpensteerSessionRuntimeOptions);
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
declare const OPENSTEER_PROVIDER_KINDS: readonly ["local", "cloud"];
|
|
3786
|
+
type OpensteerProviderKind = (typeof OPENSTEER_PROVIDER_KINDS)[number];
|
|
3787
|
+
type OpensteerProviderSource = "explicit" | "env" | "default";
|
|
3788
|
+
interface OpensteerLocalProviderOptions {
|
|
3789
|
+
readonly kind: "local";
|
|
3790
|
+
}
|
|
3791
|
+
interface OpensteerCloudProviderOptions {
|
|
3792
|
+
readonly kind: "cloud";
|
|
3793
|
+
readonly apiKey?: string;
|
|
3794
|
+
readonly baseUrl?: string;
|
|
3795
|
+
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
3796
|
+
readonly region?: string;
|
|
3797
|
+
readonly sessionId?: string;
|
|
3798
|
+
}
|
|
3799
|
+
type OpensteerProviderOptions = OpensteerLocalProviderOptions | OpensteerCloudProviderOptions;
|
|
3800
|
+
interface OpensteerResolvedProvider {
|
|
3801
|
+
readonly kind: OpensteerProviderKind;
|
|
3802
|
+
readonly source: OpensteerProviderSource;
|
|
3803
|
+
}
|
|
3804
|
+
declare function assertProviderSupportsEngine(provider: OpensteerProviderKind, engine: string): void;
|
|
3805
|
+
declare function normalizeOpensteerProviderKind(value: string, source?: string): OpensteerProviderKind;
|
|
3806
|
+
declare function resolveOpensteerProvider(input?: {
|
|
3807
|
+
readonly provider?: OpensteerProviderOptions;
|
|
3808
|
+
readonly environmentProvider?: string;
|
|
3809
|
+
}): OpensteerResolvedProvider;
|
|
3810
|
+
|
|
3489
3811
|
interface OpensteerRouteRequest {
|
|
3490
3812
|
readonly url: string;
|
|
3491
3813
|
readonly method: string;
|
|
@@ -3542,519 +3864,6 @@ interface OpensteerInterceptScriptOptions {
|
|
|
3542
3864
|
}) => string | Promise<string>;
|
|
3543
3865
|
}
|
|
3544
3866
|
|
|
3545
|
-
interface OpensteerEngineFactoryOptions {
|
|
3546
|
-
readonly browser?: OpensteerBrowserOptions;
|
|
3547
|
-
readonly launch?: OpensteerBrowserLaunchOptions;
|
|
3548
|
-
readonly context?: OpensteerBrowserContextOptions;
|
|
3549
|
-
}
|
|
3550
|
-
type OpensteerEngineFactory = (options: OpensteerEngineFactoryOptions) => Promise<BrowserCoreEngine>;
|
|
3551
|
-
interface OpensteerRuntimeOptions {
|
|
3552
|
-
readonly workspace?: string;
|
|
3553
|
-
readonly rootDir?: string;
|
|
3554
|
-
readonly rootPath?: string;
|
|
3555
|
-
readonly engineName?: OpensteerEngineName;
|
|
3556
|
-
readonly browser?: OpensteerBrowserOptions;
|
|
3557
|
-
readonly launch?: OpensteerBrowserLaunchOptions;
|
|
3558
|
-
readonly context?: OpensteerBrowserContextOptions;
|
|
3559
|
-
readonly engine?: BrowserCoreEngine;
|
|
3560
|
-
readonly engineFactory?: OpensteerEngineFactory;
|
|
3561
|
-
readonly policy?: OpensteerPolicy;
|
|
3562
|
-
readonly cleanupRootOnClose?: boolean;
|
|
3563
|
-
}
|
|
3564
|
-
interface RuntimeOperationOptions {
|
|
3565
|
-
readonly signal?: AbortSignal;
|
|
3566
|
-
}
|
|
3567
|
-
declare class OpensteerRuntime {
|
|
3568
|
-
readonly workspace: string;
|
|
3569
|
-
readonly rootPath: string;
|
|
3570
|
-
private readonly publicWorkspace;
|
|
3571
|
-
private readonly configuredBrowser;
|
|
3572
|
-
private readonly configuredLaunch;
|
|
3573
|
-
private readonly configuredContext;
|
|
3574
|
-
private readonly configuredEngineName;
|
|
3575
|
-
private readonly injectedEngine;
|
|
3576
|
-
private readonly engineFactory;
|
|
3577
|
-
private readonly policy;
|
|
3578
|
-
private readonly cleanupRootOnClose;
|
|
3579
|
-
private root;
|
|
3580
|
-
private engine;
|
|
3581
|
-
private dom;
|
|
3582
|
-
private computer;
|
|
3583
|
-
private readonly networkJournal;
|
|
3584
|
-
private extractionDescriptors;
|
|
3585
|
-
private sessionRef;
|
|
3586
|
-
private pageRef;
|
|
3587
|
-
private runId;
|
|
3588
|
-
private latestSnapshot;
|
|
3589
|
-
private readonly backgroundNetworkPersistence;
|
|
3590
|
-
private readonly cookieJars;
|
|
3591
|
-
private readonly recipeCache;
|
|
3592
|
-
private ownsEngine;
|
|
3593
|
-
constructor(options?: OpensteerRuntimeOptions);
|
|
3594
|
-
open(input?: OpensteerOpenInput, options?: RuntimeOperationOptions): Promise<OpensteerOpenOutput>;
|
|
3595
|
-
listPages(input?: OpensteerPageListInput, options?: RuntimeOperationOptions): Promise<OpensteerPageListOutput>;
|
|
3596
|
-
newPage(input?: OpensteerPageNewInput, options?: RuntimeOperationOptions): Promise<OpensteerPageNewOutput>;
|
|
3597
|
-
activatePage(input: OpensteerPageActivateInput, options?: RuntimeOperationOptions): Promise<OpensteerPageActivateOutput>;
|
|
3598
|
-
closePage(input?: OpensteerPageCloseInput, options?: RuntimeOperationOptions): Promise<OpensteerPageCloseOutput>;
|
|
3599
|
-
goto(input: OpensteerPageGotoInput, options?: RuntimeOperationOptions): Promise<OpensteerPageGotoOutput>;
|
|
3600
|
-
evaluate(input: OpensteerPageEvaluateInput, options?: RuntimeOperationOptions): Promise<OpensteerPageEvaluateOutput>;
|
|
3601
|
-
addInitScript(input: OpensteerAddInitScriptInput, options?: RuntimeOperationOptions): Promise<OpensteerAddInitScriptOutput>;
|
|
3602
|
-
snapshot(input?: OpensteerPageSnapshotInput, options?: RuntimeOperationOptions): Promise<OpensteerPageSnapshotOutput>;
|
|
3603
|
-
click(input: OpensteerDomClickInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3604
|
-
hover(input: OpensteerDomHoverInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3605
|
-
input(input: OpensteerDomInputInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3606
|
-
scroll(input: OpensteerDomScrollInput, options?: RuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3607
|
-
extract(input: OpensteerDomExtractInput, options?: RuntimeOperationOptions): Promise<OpensteerDomExtractOutput>;
|
|
3608
|
-
queryNetwork(input?: OpensteerNetworkQueryInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkQueryOutput>;
|
|
3609
|
-
saveNetwork(input: OpensteerNetworkSaveInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkSaveOutput>;
|
|
3610
|
-
clearNetwork(input?: OpensteerNetworkClearInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkClearOutput>;
|
|
3611
|
-
captureScripts(input?: OpensteerCaptureScriptsInput, options?: RuntimeOperationOptions): Promise<OpensteerCaptureScriptsOutput>;
|
|
3612
|
-
minimizeNetwork(input: OpensteerNetworkMinimizeInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkMinimizeOutput>;
|
|
3613
|
-
diffNetwork(input: OpensteerNetworkDiffInput, options?: RuntimeOperationOptions): Promise<OpensteerNetworkDiffOutput>;
|
|
3614
|
-
readArtifact(input: OpensteerArtifactReadInput, options?: RuntimeOperationOptions): Promise<OpensteerArtifactReadOutput>;
|
|
3615
|
-
probeNetwork(input: OpensteerTransportProbeInput, options?: RuntimeOperationOptions): Promise<OpensteerTransportProbeOutput>;
|
|
3616
|
-
discoverReverse(input: OpensteerReverseDiscoverInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseDiscoverOutput>;
|
|
3617
|
-
queryReverse(input: OpensteerReverseQueryInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseQueryOutput>;
|
|
3618
|
-
createReversePackage(input: OpensteerReversePackageCreateInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageCreateOutput>;
|
|
3619
|
-
runReversePackage(input: OpensteerReversePackageRunInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageRunOutput>;
|
|
3620
|
-
exportReverse(input: OpensteerReverseExportInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseExportOutput>;
|
|
3621
|
-
getReverseReport(input: OpensteerReverseReportInput, options?: RuntimeOperationOptions): Promise<OpensteerReverseReportOutput>;
|
|
3622
|
-
getReversePackage(input: OpensteerReversePackageGetInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageGetOutput>;
|
|
3623
|
-
listReversePackages(input?: OpensteerReversePackageListInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackageListOutput>;
|
|
3624
|
-
patchReversePackage(input: OpensteerReversePackagePatchInput, options?: RuntimeOperationOptions): Promise<OpensteerReversePackagePatchOutput>;
|
|
3625
|
-
private captureReverseCaseInternal;
|
|
3626
|
-
private analyzeReverseCaseInternal;
|
|
3627
|
-
private queryReverseCaseInternal;
|
|
3628
|
-
private resolveReversePackageSource;
|
|
3629
|
-
private replayReversePackageInternal;
|
|
3630
|
-
private executeReversePackageWorkflow;
|
|
3631
|
-
private executeReversePackageOperationStep;
|
|
3632
|
-
private resolveReversePackageResolverValues;
|
|
3633
|
-
private resolveReversePackageResolverValue;
|
|
3634
|
-
private resolveReverseValueTemplate;
|
|
3635
|
-
private resolveReverseValueReference;
|
|
3636
|
-
private waitForReversePackageRecord;
|
|
3637
|
-
private buildReverseTransportOperationInput;
|
|
3638
|
-
private writePortableReverseRequestPlan;
|
|
3639
|
-
private writeReversePackage;
|
|
3640
|
-
private buildReversePackageDraft;
|
|
3641
|
-
private writeReverseReportRecord;
|
|
3642
|
-
captureInteraction(input: OpensteerInteractionCaptureInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionCaptureOutput>;
|
|
3643
|
-
getInteraction(input: OpensteerInteractionGetInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionGetOutput>;
|
|
3644
|
-
private runInteractionCaptureScript;
|
|
3645
|
-
private runInteractionCaptureSteps;
|
|
3646
|
-
diffInteraction(input: OpensteerInteractionDiffInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionDiffOutput>;
|
|
3647
|
-
replayInteraction(input: OpensteerInteractionReplayInput, options?: RuntimeOperationOptions): Promise<OpensteerInteractionReplayOutput>;
|
|
3648
|
-
beautifyScript(input: OpensteerScriptBeautifyInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptBeautifyOutput>;
|
|
3649
|
-
deobfuscateScript(input: OpensteerScriptDeobfuscateInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptDeobfuscateOutput>;
|
|
3650
|
-
sandboxScript(input: OpensteerScriptSandboxInput, options?: RuntimeOperationOptions): Promise<OpensteerScriptSandboxOutput>;
|
|
3651
|
-
solveCaptcha(input: OpensteerCaptchaSolveInput, options?: RuntimeOperationOptions): Promise<OpensteerCaptchaSolveOutput>;
|
|
3652
|
-
inferRequestPlan(input: OpensteerInferRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
3653
|
-
writeRequestPlan(input: OpensteerWriteRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
3654
|
-
getRequestPlan(input: OpensteerGetRequestPlanInput, options?: RuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
3655
|
-
listRequestPlans(input?: OpensteerListRequestPlansInput, options?: RuntimeOperationOptions): Promise<OpensteerListRequestPlansOutput>;
|
|
3656
|
-
writeAuthRecipe(input: OpensteerWriteAuthRecipeInput, options?: RuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
3657
|
-
writeRecipe(input: OpensteerWriteRecipeInput, options?: RuntimeOperationOptions): Promise<RecipeRecord>;
|
|
3658
|
-
getAuthRecipe(input: OpensteerGetAuthRecipeInput, options?: RuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
3659
|
-
getRecipe(input: OpensteerGetRecipeInput, options?: RuntimeOperationOptions): Promise<RecipeRecord>;
|
|
3660
|
-
listAuthRecipes(input?: OpensteerListAuthRecipesInput, options?: RuntimeOperationOptions): Promise<OpensteerListAuthRecipesOutput>;
|
|
3661
|
-
listRecipes(input?: OpensteerListRecipesInput, options?: RuntimeOperationOptions): Promise<OpensteerListRecipesOutput>;
|
|
3662
|
-
getCookies(input?: {
|
|
3663
|
-
readonly urls?: readonly string[];
|
|
3664
|
-
}, options?: RuntimeOperationOptions): Promise<readonly CookieRecord[]>;
|
|
3665
|
-
getStorageSnapshot(input?: {
|
|
3666
|
-
readonly includeSessionStorage?: boolean;
|
|
3667
|
-
readonly includeIndexedDb?: boolean;
|
|
3668
|
-
}, options?: RuntimeOperationOptions): Promise<StorageSnapshot>;
|
|
3669
|
-
runAuthRecipe(input: OpensteerRunAuthRecipeInput, options?: RuntimeOperationOptions): Promise<OpensteerRunAuthRecipeOutput>;
|
|
3670
|
-
runRecipe(input: OpensteerRunRecipeInput, options?: RuntimeOperationOptions): Promise<OpensteerRunRecipeOutput>;
|
|
3671
|
-
rawRequest(input: OpensteerRawRequestInput, options?: RuntimeOperationOptions): Promise<OpensteerRawRequestOutput>;
|
|
3672
|
-
route(input: OpensteerRouteOptions): Promise<OpensteerRouteRegistration>;
|
|
3673
|
-
interceptScript(input: OpensteerInterceptScriptOptions): Promise<OpensteerRouteRegistration>;
|
|
3674
|
-
request(input: OpensteerRequestExecuteInput, options?: RuntimeOperationOptions): Promise<OpensteerRequestExecuteOutput>;
|
|
3675
|
-
computerExecute(input: OpensteerComputerExecuteInput, options?: RuntimeOperationOptions): Promise<OpensteerComputerExecuteOutput>;
|
|
3676
|
-
close(options?: RuntimeOperationOptions): Promise<OpensteerSessionCloseOutput>;
|
|
3677
|
-
disconnect(): Promise<void>;
|
|
3678
|
-
isOpen(): boolean;
|
|
3679
|
-
private runDomAction;
|
|
3680
|
-
private prepareDomTarget;
|
|
3681
|
-
private queryLiveNetwork;
|
|
3682
|
-
private captureScriptsInternal;
|
|
3683
|
-
private materializeCapturedScript;
|
|
3684
|
-
private beginMutationCapture;
|
|
3685
|
-
private completeMutationCapture;
|
|
3686
|
-
private resolveNetworkRecordByRecordId;
|
|
3687
|
-
private resolveCurrentStateSource;
|
|
3688
|
-
private resolveReverseCaseById;
|
|
3689
|
-
private tryResolveReverseCaseById;
|
|
3690
|
-
private resolveReversePackageById;
|
|
3691
|
-
private resolveReverseReportById;
|
|
3692
|
-
private resolveReverseReportByPackageId;
|
|
3693
|
-
private resolveReverseReportByCaseId;
|
|
3694
|
-
private resolveInteractionTraceById;
|
|
3695
|
-
private captureReverseStateSnapshot;
|
|
3696
|
-
private restoreReverseStateSnapshots;
|
|
3697
|
-
private waitForObservedReplayRecord;
|
|
3698
|
-
private waitForMatchingReplayRecord;
|
|
3699
|
-
private isObservedReplayRecordSettled;
|
|
3700
|
-
private replayInteractionTraceById;
|
|
3701
|
-
private readLiveNetworkRecords;
|
|
3702
|
-
private readLiveRequestIds;
|
|
3703
|
-
private observeLiveTransportDelta;
|
|
3704
|
-
private executeTransportRequestWithJournal;
|
|
3705
|
-
private currentBinding;
|
|
3706
|
-
private requireSessionRef;
|
|
3707
|
-
private ensureBrowserTransportBinding;
|
|
3708
|
-
private requireExistingBrowserBindingForRecovery;
|
|
3709
|
-
private executeRawTransportRequest;
|
|
3710
|
-
private executeDirectTransportRequestWithPersistence;
|
|
3711
|
-
private executePageHttpTransportRequestWithPersistence;
|
|
3712
|
-
private executeContextTransportRequestWithPersistence;
|
|
3713
|
-
private executeMatchedTlsTransportRequestWithPersistence;
|
|
3714
|
-
private executePageHttpTransportRequest;
|
|
3715
|
-
private executePageHttpEventStreamRequest;
|
|
3716
|
-
private executePageHttpWebSocketRequest;
|
|
3717
|
-
private executeContextTransportRequest;
|
|
3718
|
-
private executeMatchedTlsTransportRequest;
|
|
3719
|
-
private persistDirectTransportRecord;
|
|
3720
|
-
private executeResolvedRequestPlan;
|
|
3721
|
-
private executePlanTransportRequest;
|
|
3722
|
-
private touchRequestPlanFreshness;
|
|
3723
|
-
private executeConfiguredRecipeBinding;
|
|
3724
|
-
private clearRecipeBindingCache;
|
|
3725
|
-
private retryResolvedRequestPlan;
|
|
3726
|
-
private resolveRecipeRecord;
|
|
3727
|
-
private runResolvedRecipe;
|
|
3728
|
-
private executeRecipeRecord;
|
|
3729
|
-
private executeRecipeStep;
|
|
3730
|
-
private executeAuthRecipeHook;
|
|
3731
|
-
private executeRecipeRequest;
|
|
3732
|
-
private resolvePageHttpBinding;
|
|
3733
|
-
private syncBrowserCookiesToJar;
|
|
3734
|
-
private executeAnalysisTransportRequest;
|
|
3735
|
-
private resolveScriptTransformSource;
|
|
3736
|
-
private buildScriptTransformOutput;
|
|
3737
|
-
private applyCookieJarToTransportRequest;
|
|
3738
|
-
private updateCookieJarFromResponse;
|
|
3739
|
-
private readCookieValue;
|
|
3740
|
-
private readStorageValue;
|
|
3741
|
-
private scheduleBackgroundNetworkSaveByRequestIds;
|
|
3742
|
-
private flushBackgroundNetworkPersistence;
|
|
3743
|
-
private toDomTargetRef;
|
|
3744
|
-
private ensureRoot;
|
|
3745
|
-
private ensureEngine;
|
|
3746
|
-
private ensureSemantics;
|
|
3747
|
-
private ensurePageRef;
|
|
3748
|
-
private requireRoot;
|
|
3749
|
-
private requireEngine;
|
|
3750
|
-
private requireDom;
|
|
3751
|
-
private requireComputer;
|
|
3752
|
-
private requireExtractionDescriptors;
|
|
3753
|
-
private ensureLiveRuntimeBinding;
|
|
3754
|
-
private probeRuntimeBindingHealth;
|
|
3755
|
-
private readSessionState;
|
|
3756
|
-
private captureSnapshotArtifacts;
|
|
3757
|
-
private persistComputerArtifacts;
|
|
3758
|
-
private appendTrace;
|
|
3759
|
-
private cleanupSessionResources;
|
|
3760
|
-
private resetRuntimeState;
|
|
3761
|
-
private runWithOperationTimeout;
|
|
3762
|
-
private navigatePage;
|
|
3763
|
-
}
|
|
3764
|
-
|
|
3765
|
-
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
3766
|
-
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
3767
|
-
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
3768
|
-
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
3769
|
-
type CloudSessionVisibilityScope = "team" | "owner";
|
|
3770
|
-
type CloudProxyMode = "disabled" | "optional" | "required";
|
|
3771
|
-
type CloudProxyProtocol = "http" | "https" | "socks5";
|
|
3772
|
-
type CloudFingerprintMode = "off" | "auto";
|
|
3773
|
-
type BrowserProfileStatus = "active" | "archived" | "error";
|
|
3774
|
-
type BrowserProfileProxyPolicy = "strict_sticky";
|
|
3775
|
-
type BrowserProfileArchiveFormat = "tar.gz";
|
|
3776
|
-
type PortableBrowserProfileSnapshotFormat = "portable-cookies-v1+json.gz";
|
|
3777
|
-
type PortableBrowserFamily = "chromium";
|
|
3778
|
-
type BrowserProfileImportStatus = "awaiting_upload" | "queued" | "processing" | "ready" | "failed";
|
|
3779
|
-
interface PortableBrowserProfileSnapshotSource {
|
|
3780
|
-
readonly browserFamily: PortableBrowserFamily;
|
|
3781
|
-
readonly browserName?: string;
|
|
3782
|
-
readonly browserMajor?: string;
|
|
3783
|
-
readonly browserBrand?: string;
|
|
3784
|
-
readonly captureMethod?: string;
|
|
3785
|
-
readonly platform?: string;
|
|
3786
|
-
readonly capturedAt: number;
|
|
3787
|
-
}
|
|
3788
|
-
interface BrowserProfileImportSnapshotSummary {
|
|
3789
|
-
readonly source: PortableBrowserProfileSnapshotSource;
|
|
3790
|
-
readonly cookieCount: number;
|
|
3791
|
-
readonly domainCount: number;
|
|
3792
|
-
}
|
|
3793
|
-
interface CloudViewport {
|
|
3794
|
-
readonly width: number;
|
|
3795
|
-
readonly height: number;
|
|
3796
|
-
}
|
|
3797
|
-
interface CloudGeolocation {
|
|
3798
|
-
readonly latitude: number;
|
|
3799
|
-
readonly longitude: number;
|
|
3800
|
-
readonly accuracy?: number;
|
|
3801
|
-
}
|
|
3802
|
-
interface CloudBrowserContextConfig {
|
|
3803
|
-
readonly viewport?: CloudViewport;
|
|
3804
|
-
readonly locale?: string;
|
|
3805
|
-
readonly timezoneId?: string;
|
|
3806
|
-
readonly geolocation?: CloudGeolocation;
|
|
3807
|
-
readonly colorScheme?: "light" | "dark" | "no-preference";
|
|
3808
|
-
readonly userAgent?: string;
|
|
3809
|
-
readonly javaScriptEnabled?: boolean;
|
|
3810
|
-
readonly ignoreHTTPSErrors?: boolean;
|
|
3811
|
-
}
|
|
3812
|
-
interface CloudBrowserExtensionConfig {
|
|
3813
|
-
readonly includeDefaults?: boolean;
|
|
3814
|
-
readonly extensionKeys?: readonly string[];
|
|
3815
|
-
}
|
|
3816
|
-
interface CloudBrowserLaunchConfig {
|
|
3817
|
-
readonly headless?: boolean;
|
|
3818
|
-
readonly context?: CloudBrowserContextConfig;
|
|
3819
|
-
readonly chromeArgs?: readonly string[];
|
|
3820
|
-
readonly extensions?: CloudBrowserExtensionConfig;
|
|
3821
|
-
}
|
|
3822
|
-
interface CloudProxyPreference {
|
|
3823
|
-
readonly mode?: CloudProxyMode;
|
|
3824
|
-
readonly countryCode?: string;
|
|
3825
|
-
readonly region?: string;
|
|
3826
|
-
readonly city?: string;
|
|
3827
|
-
readonly proxyId?: string;
|
|
3828
|
-
}
|
|
3829
|
-
interface CloudFingerprintPreference {
|
|
3830
|
-
readonly mode?: CloudFingerprintMode;
|
|
3831
|
-
readonly locales?: readonly string[];
|
|
3832
|
-
readonly minWidth?: number;
|
|
3833
|
-
readonly maxWidth?: number;
|
|
3834
|
-
readonly minHeight?: number;
|
|
3835
|
-
readonly maxHeight?: number;
|
|
3836
|
-
readonly slim?: boolean;
|
|
3837
|
-
}
|
|
3838
|
-
interface CloudBrowserProfilePreference {
|
|
3839
|
-
readonly profileId: string;
|
|
3840
|
-
readonly reuseIfActive?: boolean;
|
|
3841
|
-
}
|
|
3842
|
-
type CloudBrowserProfileLaunchPreference = CloudBrowserProfilePreference;
|
|
3843
|
-
interface CloudSessionLaunchConfig {
|
|
3844
|
-
readonly browser?: CloudBrowserLaunchConfig;
|
|
3845
|
-
readonly proxy?: CloudProxyPreference;
|
|
3846
|
-
readonly fingerprint?: CloudFingerprintPreference;
|
|
3847
|
-
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
3848
|
-
}
|
|
3849
|
-
interface CloudSessionSummary {
|
|
3850
|
-
readonly sessionId: string;
|
|
3851
|
-
readonly workspaceId: string;
|
|
3852
|
-
readonly state: CloudSessionStatus;
|
|
3853
|
-
readonly createdAt: number;
|
|
3854
|
-
readonly sourceType: CloudSessionSourceType;
|
|
3855
|
-
readonly sourceRef?: string;
|
|
3856
|
-
readonly label?: string;
|
|
3857
|
-
}
|
|
3858
|
-
interface CloudSelectorCacheImportEntry {
|
|
3859
|
-
readonly namespace: string;
|
|
3860
|
-
readonly siteOrigin: string;
|
|
3861
|
-
readonly method: string;
|
|
3862
|
-
readonly descriptionHash: string;
|
|
3863
|
-
readonly path: unknown;
|
|
3864
|
-
readonly schemaHash?: string;
|
|
3865
|
-
readonly createdAt: number;
|
|
3866
|
-
readonly updatedAt: number;
|
|
3867
|
-
}
|
|
3868
|
-
interface CloudSelectorCacheImportRequest {
|
|
3869
|
-
readonly entries: readonly CloudSelectorCacheImportEntry[];
|
|
3870
|
-
}
|
|
3871
|
-
interface CloudSelectorCacheImportResponse {
|
|
3872
|
-
readonly imported: number;
|
|
3873
|
-
readonly inserted: number;
|
|
3874
|
-
readonly updated: number;
|
|
3875
|
-
readonly skipped: number;
|
|
3876
|
-
}
|
|
3877
|
-
interface BrowserProfileDescriptor {
|
|
3878
|
-
readonly profileId: string;
|
|
3879
|
-
readonly teamId: string;
|
|
3880
|
-
readonly ownerUserId: string;
|
|
3881
|
-
readonly name: string;
|
|
3882
|
-
readonly status: BrowserProfileStatus;
|
|
3883
|
-
readonly proxyPolicy: BrowserProfileProxyPolicy;
|
|
3884
|
-
readonly stickyProxyId?: string;
|
|
3885
|
-
readonly proxyCountryCode?: string;
|
|
3886
|
-
readonly proxyRegion?: string;
|
|
3887
|
-
readonly proxyCity?: string;
|
|
3888
|
-
readonly fingerprintMode: CloudFingerprintMode;
|
|
3889
|
-
readonly fingerprintHash?: string;
|
|
3890
|
-
readonly activeSessionId?: string;
|
|
3891
|
-
readonly lastSessionId?: string;
|
|
3892
|
-
readonly lastLaunchedAt?: number;
|
|
3893
|
-
readonly latestRevision?: number;
|
|
3894
|
-
readonly latestStorageId?: string;
|
|
3895
|
-
readonly latestSizeBytes?: number;
|
|
3896
|
-
readonly latestArchiveSha256?: string;
|
|
3897
|
-
readonly latestArchiveFormat?: BrowserProfileArchiveFormat;
|
|
3898
|
-
readonly createdAt: number;
|
|
3899
|
-
readonly updatedAt: number;
|
|
3900
|
-
readonly lastError?: string;
|
|
3901
|
-
}
|
|
3902
|
-
interface BrowserProfileListResponse {
|
|
3903
|
-
readonly profiles: readonly BrowserProfileDescriptor[];
|
|
3904
|
-
readonly nextCursor?: string;
|
|
3905
|
-
}
|
|
3906
|
-
interface BrowserProfileCreateRequest {
|
|
3907
|
-
readonly name: string;
|
|
3908
|
-
readonly proxy?: {
|
|
3909
|
-
readonly proxyId?: string;
|
|
3910
|
-
readonly countryCode?: string;
|
|
3911
|
-
readonly region?: string;
|
|
3912
|
-
readonly city?: string;
|
|
3913
|
-
};
|
|
3914
|
-
readonly fingerprint?: {
|
|
3915
|
-
readonly mode?: CloudFingerprintMode;
|
|
3916
|
-
};
|
|
3917
|
-
}
|
|
3918
|
-
interface BrowserProfileImportCreateRequest {
|
|
3919
|
-
readonly profileId: string;
|
|
3920
|
-
}
|
|
3921
|
-
interface BrowserProfileImportCreateResponse {
|
|
3922
|
-
readonly importId: string;
|
|
3923
|
-
readonly profileId: string;
|
|
3924
|
-
readonly status: BrowserProfileImportStatus;
|
|
3925
|
-
readonly uploadUrl: string;
|
|
3926
|
-
readonly uploadMethod: "PUT";
|
|
3927
|
-
readonly uploadFormat: PortableBrowserProfileSnapshotFormat;
|
|
3928
|
-
readonly maxUploadBytes: number;
|
|
3929
|
-
}
|
|
3930
|
-
interface BrowserProfileImportDescriptor {
|
|
3931
|
-
readonly importId: string;
|
|
3932
|
-
readonly profileId: string;
|
|
3933
|
-
readonly status: BrowserProfileImportStatus;
|
|
3934
|
-
readonly uploadFormat: PortableBrowserProfileSnapshotFormat;
|
|
3935
|
-
readonly storageId?: string;
|
|
3936
|
-
readonly revision?: number;
|
|
3937
|
-
readonly error?: string;
|
|
3938
|
-
readonly snapshotSummary?: BrowserProfileImportSnapshotSummary;
|
|
3939
|
-
readonly createdAt: number;
|
|
3940
|
-
readonly updatedAt: number;
|
|
3941
|
-
}
|
|
3942
|
-
|
|
3943
|
-
declare const OPENSTEER_EXECUTION_MODES: readonly ["local", "cloud"];
|
|
3944
|
-
type OpensteerExecutionMode = (typeof OPENSTEER_EXECUTION_MODES)[number];
|
|
3945
|
-
declare function normalizeOpensteerExecutionMode(value: string, source?: string): OpensteerExecutionMode;
|
|
3946
|
-
declare function resolveOpensteerExecutionMode(input?: {
|
|
3947
|
-
readonly local?: boolean;
|
|
3948
|
-
readonly cloud?: boolean;
|
|
3949
|
-
readonly explicit?: OpensteerExecutionMode;
|
|
3950
|
-
readonly environment?: string;
|
|
3951
|
-
}): OpensteerExecutionMode;
|
|
3952
|
-
|
|
3953
|
-
interface OpensteerCloudConfig {
|
|
3954
|
-
readonly apiKey: string;
|
|
3955
|
-
readonly baseUrl: string;
|
|
3956
|
-
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
3957
|
-
}
|
|
3958
|
-
declare function resolveCloudConfig(input?: {
|
|
3959
|
-
readonly enabled?: boolean;
|
|
3960
|
-
readonly apiKey?: string;
|
|
3961
|
-
readonly baseUrl?: string;
|
|
3962
|
-
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
3963
|
-
readonly mode?: "local" | "cloud";
|
|
3964
|
-
}): OpensteerCloudConfig | undefined;
|
|
3965
|
-
|
|
3966
|
-
interface OpensteerRuntimeOperationOptions {
|
|
3967
|
-
readonly signal?: AbortSignal;
|
|
3968
|
-
}
|
|
3969
|
-
interface OpensteerSemanticRuntime {
|
|
3970
|
-
open(input?: OpensteerOpenInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerOpenOutput>;
|
|
3971
|
-
listPages(input?: OpensteerPageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageListOutput>;
|
|
3972
|
-
newPage(input?: OpensteerPageNewInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageNewOutput>;
|
|
3973
|
-
activatePage(input: OpensteerPageActivateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageActivateOutput>;
|
|
3974
|
-
closePage(input?: OpensteerPageCloseInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageCloseOutput>;
|
|
3975
|
-
goto(input: OpensteerPageGotoInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageGotoOutput>;
|
|
3976
|
-
evaluate(input: OpensteerPageEvaluateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageEvaluateOutput>;
|
|
3977
|
-
addInitScript(input: OpensteerAddInitScriptInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerAddInitScriptOutput>;
|
|
3978
|
-
snapshot(input?: OpensteerPageSnapshotInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageSnapshotOutput>;
|
|
3979
|
-
click(input: OpensteerDomClickInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3980
|
-
hover(input: OpensteerDomHoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3981
|
-
input(input: OpensteerDomInputInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3982
|
-
scroll(input: OpensteerDomScrollInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
3983
|
-
extract(input: OpensteerDomExtractInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerDomExtractOutput>;
|
|
3984
|
-
queryNetwork(input?: OpensteerNetworkQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkQueryOutput>;
|
|
3985
|
-
saveNetwork(input: OpensteerNetworkSaveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkSaveOutput>;
|
|
3986
|
-
minimizeNetwork(input: OpensteerNetworkMinimizeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkMinimizeOutput>;
|
|
3987
|
-
diffNetwork(input: OpensteerNetworkDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkDiffOutput>;
|
|
3988
|
-
probeNetwork(input: OpensteerTransportProbeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerTransportProbeOutput>;
|
|
3989
|
-
discoverReverse(input: OpensteerReverseDiscoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseDiscoverOutput>;
|
|
3990
|
-
queryReverse(input: OpensteerReverseQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseQueryOutput>;
|
|
3991
|
-
createReversePackage(input: OpensteerReversePackageCreateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageCreateOutput>;
|
|
3992
|
-
runReversePackage(input: OpensteerReversePackageRunInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageRunOutput>;
|
|
3993
|
-
exportReverse(input: OpensteerReverseExportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseExportOutput>;
|
|
3994
|
-
getReverseReport(input: OpensteerReverseReportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseReportOutput>;
|
|
3995
|
-
getReversePackage(input: OpensteerReversePackageGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageGetOutput>;
|
|
3996
|
-
listReversePackages(input?: OpensteerReversePackageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageListOutput>;
|
|
3997
|
-
patchReversePackage(input: OpensteerReversePackagePatchInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackagePatchOutput>;
|
|
3998
|
-
captureInteraction(input: OpensteerInteractionCaptureInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionCaptureOutput>;
|
|
3999
|
-
getInteraction(input: OpensteerInteractionGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionGetOutput>;
|
|
4000
|
-
diffInteraction(input: OpensteerInteractionDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionDiffOutput>;
|
|
4001
|
-
replayInteraction(input: OpensteerInteractionReplayInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionReplayOutput>;
|
|
4002
|
-
clearNetwork(input?: OpensteerNetworkClearInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkClearOutput>;
|
|
4003
|
-
captureScripts(input?: OpensteerCaptureScriptsInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptureScriptsOutput>;
|
|
4004
|
-
readArtifact(input: OpensteerArtifactReadInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerArtifactReadOutput>;
|
|
4005
|
-
beautifyScript(input: OpensteerScriptBeautifyInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptBeautifyOutput>;
|
|
4006
|
-
deobfuscateScript(input: OpensteerScriptDeobfuscateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptDeobfuscateOutput>;
|
|
4007
|
-
sandboxScript(input: OpensteerScriptSandboxInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptSandboxOutput>;
|
|
4008
|
-
solveCaptcha(input: OpensteerCaptchaSolveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptchaSolveOutput>;
|
|
4009
|
-
getCookies(input?: {
|
|
4010
|
-
readonly urls?: readonly string[];
|
|
4011
|
-
}, options?: OpensteerRuntimeOperationOptions): Promise<readonly CookieRecord[]>;
|
|
4012
|
-
getStorageSnapshot(input?: {
|
|
4013
|
-
readonly includeSessionStorage?: boolean;
|
|
4014
|
-
readonly includeIndexedDb?: boolean;
|
|
4015
|
-
}, options?: OpensteerRuntimeOperationOptions): Promise<StorageSnapshot>;
|
|
4016
|
-
rawRequest(input: OpensteerRawRequestInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRawRequestOutput>;
|
|
4017
|
-
inferRequestPlan(input: OpensteerInferRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4018
|
-
writeRequestPlan(input: OpensteerWriteRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4019
|
-
getRequestPlan(input: OpensteerGetRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4020
|
-
listRequestPlans(input?: OpensteerListRequestPlansInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRequestPlansOutput>;
|
|
4021
|
-
writeAuthRecipe(input: OpensteerWriteAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
4022
|
-
writeRecipe(input: OpensteerWriteRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
4023
|
-
getAuthRecipe(input: OpensteerGetAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
4024
|
-
getRecipe(input: OpensteerGetRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
4025
|
-
listAuthRecipes(input?: OpensteerListAuthRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListAuthRecipesOutput>;
|
|
4026
|
-
listRecipes(input?: OpensteerListRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRecipesOutput>;
|
|
4027
|
-
runAuthRecipe(input: OpensteerRunAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunAuthRecipeOutput>;
|
|
4028
|
-
runRecipe(input: OpensteerRunRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunRecipeOutput>;
|
|
4029
|
-
request(input: OpensteerRequestExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRequestExecuteOutput>;
|
|
4030
|
-
computerExecute(input: OpensteerComputerExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerComputerExecuteOutput>;
|
|
4031
|
-
close(options?: OpensteerRuntimeOperationOptions): Promise<OpensteerSessionCloseOutput>;
|
|
4032
|
-
}
|
|
4033
|
-
interface OpensteerDisconnectableRuntime extends OpensteerSemanticRuntime {
|
|
4034
|
-
disconnect(): Promise<void>;
|
|
4035
|
-
}
|
|
4036
|
-
|
|
4037
|
-
interface OpensteerCloudOptions {
|
|
4038
|
-
readonly apiKey?: string;
|
|
4039
|
-
readonly baseUrl?: string;
|
|
4040
|
-
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4041
|
-
}
|
|
4042
|
-
interface OpensteerResolvedRuntimeConfig {
|
|
4043
|
-
readonly mode: OpensteerExecutionMode;
|
|
4044
|
-
readonly cloud?: OpensteerCloudConfig;
|
|
4045
|
-
}
|
|
4046
|
-
declare function resolveOpensteerRuntimeConfig(input?: {
|
|
4047
|
-
readonly cloud?: boolean | OpensteerCloudOptions;
|
|
4048
|
-
readonly environmentMode?: string;
|
|
4049
|
-
readonly mode?: OpensteerExecutionMode;
|
|
4050
|
-
}): OpensteerResolvedRuntimeConfig;
|
|
4051
|
-
declare function createOpensteerSemanticRuntime(input?: {
|
|
4052
|
-
readonly runtimeOptions?: OpensteerRuntimeOptions;
|
|
4053
|
-
readonly engine?: OpensteerEngineName;
|
|
4054
|
-
readonly cloud?: boolean | OpensteerCloudOptions;
|
|
4055
|
-
readonly mode?: OpensteerExecutionMode;
|
|
4056
|
-
}): OpensteerDisconnectableRuntime;
|
|
4057
|
-
|
|
4058
3867
|
interface OpensteerTargetOptions {
|
|
4059
3868
|
readonly element?: number;
|
|
4060
3869
|
readonly selector?: string;
|
|
@@ -4084,6 +3893,8 @@ interface OpensteerWaitForPageOptions {
|
|
|
4084
3893
|
readonly pollIntervalMs?: number;
|
|
4085
3894
|
}
|
|
4086
3895
|
type OpensteerGotoOptions = OpensteerPageGotoInput;
|
|
3896
|
+
type OpensteerSnapshotOptions = OpensteerSnapshotMode | OpensteerPageSnapshotInput;
|
|
3897
|
+
type OpensteerSnapshotResult = OpensteerPageSnapshotOutput;
|
|
4087
3898
|
type OpensteerComputerExecuteOptions = OpensteerComputerExecuteInput;
|
|
4088
3899
|
type OpensteerComputerExecuteResult = OpensteerComputerExecuteOutput;
|
|
4089
3900
|
type OpensteerNetworkQueryOptions = OpensteerNetworkQueryInput;
|
|
@@ -4142,7 +3953,7 @@ type OpensteerCaptchaSolveOptions = OpensteerCaptchaSolveInput;
|
|
|
4142
3953
|
type OpensteerCaptchaSolveResult = OpensteerCaptchaSolveOutput;
|
|
4143
3954
|
type OpensteerAddInitScriptOptions = OpensteerAddInitScriptInput;
|
|
4144
3955
|
interface OpensteerOptions extends OpensteerRuntimeOptions {
|
|
4145
|
-
readonly
|
|
3956
|
+
readonly provider?: OpensteerProviderOptions;
|
|
4146
3957
|
}
|
|
4147
3958
|
interface OpensteerBrowserCloneOptions {
|
|
4148
3959
|
readonly sourceUserDataDir: string;
|
|
@@ -4160,6 +3971,7 @@ declare class Opensteer {
|
|
|
4160
3971
|
readonly browser: OpensteerBrowserController;
|
|
4161
3972
|
constructor(options?: OpensteerOptions);
|
|
4162
3973
|
open(input?: string | OpensteerOpenInput): Promise<OpensteerOpenOutput>;
|
|
3974
|
+
info(): Promise<OpensteerSessionInfo>;
|
|
4163
3975
|
listPages(input?: OpensteerPageListInput): Promise<OpensteerPageListOutput>;
|
|
4164
3976
|
newPage(input?: OpensteerPageNewInput): Promise<OpensteerPageNewOutput>;
|
|
4165
3977
|
activatePage(input: OpensteerPageActivateInput): Promise<OpensteerPageActivateOutput>;
|
|
@@ -4168,9 +3980,6 @@ declare class Opensteer {
|
|
|
4168
3980
|
evaluate(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4169
3981
|
evaluateJson(input: string | OpensteerPageEvaluateInput): Promise<OpensteerPageEvaluateOutput["value"]>;
|
|
4170
3982
|
addInitScript(input: string | OpensteerAddInitScriptInput): Promise<OpensteerAddInitScriptOutput>;
|
|
4171
|
-
snapshot(input?: OpensteerSnapshotMode | {
|
|
4172
|
-
readonly mode?: OpensteerSnapshotMode;
|
|
4173
|
-
}): Promise<OpensteerPageSnapshotOutput>;
|
|
4174
3983
|
click(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4175
3984
|
hover(input: OpensteerTargetOptions): Promise<OpensteerActionResult>;
|
|
4176
3985
|
input(input: OpensteerInputOptions): Promise<OpensteerActionResult>;
|
|
@@ -4180,6 +3989,7 @@ declare class Opensteer {
|
|
|
4180
3989
|
waitForNetwork(input: OpensteerWaitForNetworkOptions): Promise<OpensteerNetworkQueryResult["records"][number]>;
|
|
4181
3990
|
waitForResponse(input: OpensteerWaitForNetworkOptions): Promise<OpensteerNetworkQueryResult["records"][number]>;
|
|
4182
3991
|
waitForPage(input?: OpensteerWaitForPageOptions): Promise<OpensteerPageListOutput["pages"][number]>;
|
|
3992
|
+
snapshot(input?: OpensteerSnapshotOptions): Promise<OpensteerSnapshotResult>;
|
|
4183
3993
|
saveNetwork(input: OpensteerNetworkSaveOptions): Promise<OpensteerNetworkSaveResult>;
|
|
4184
3994
|
minimizeNetwork(input: OpensteerNetworkMinimizeOptions): Promise<OpensteerNetworkMinimizeResult>;
|
|
4185
3995
|
diffNetwork(input: OpensteerNetworkDiffOptions): Promise<OpensteerNetworkDiffResult>;
|
|
@@ -4233,6 +4043,103 @@ declare class Opensteer {
|
|
|
4233
4043
|
private requireOwnedInstrumentationRuntime;
|
|
4234
4044
|
}
|
|
4235
4045
|
|
|
4046
|
+
interface OpensteerCloudConfig {
|
|
4047
|
+
readonly apiKey: string;
|
|
4048
|
+
readonly baseUrl: string;
|
|
4049
|
+
readonly browserProfile?: CloudBrowserProfilePreference;
|
|
4050
|
+
}
|
|
4051
|
+
declare function resolveCloudConfig(input?: {
|
|
4052
|
+
readonly provider?: OpensteerProviderOptions;
|
|
4053
|
+
readonly environmentProvider?: string;
|
|
4054
|
+
}): OpensteerCloudConfig | undefined;
|
|
4055
|
+
|
|
4056
|
+
interface OpensteerRuntimeOperationOptions {
|
|
4057
|
+
readonly signal?: AbortSignal;
|
|
4058
|
+
}
|
|
4059
|
+
interface OpensteerSemanticRuntime {
|
|
4060
|
+
info(options?: OpensteerRuntimeOperationOptions): Promise<OpensteerSessionInfo>;
|
|
4061
|
+
open(input?: OpensteerOpenInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerOpenOutput>;
|
|
4062
|
+
listPages(input?: OpensteerPageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageListOutput>;
|
|
4063
|
+
newPage(input?: OpensteerPageNewInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageNewOutput>;
|
|
4064
|
+
activatePage(input: OpensteerPageActivateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageActivateOutput>;
|
|
4065
|
+
closePage(input?: OpensteerPageCloseInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageCloseOutput>;
|
|
4066
|
+
goto(input: OpensteerPageGotoInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageGotoOutput>;
|
|
4067
|
+
evaluate(input: OpensteerPageEvaluateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageEvaluateOutput>;
|
|
4068
|
+
addInitScript(input: OpensteerAddInitScriptInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerAddInitScriptOutput>;
|
|
4069
|
+
snapshot(input?: OpensteerPageSnapshotInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerPageSnapshotOutput>;
|
|
4070
|
+
click(input: OpensteerDomClickInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
4071
|
+
hover(input: OpensteerDomHoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
4072
|
+
input(input: OpensteerDomInputInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
4073
|
+
scroll(input: OpensteerDomScrollInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerActionResult>;
|
|
4074
|
+
extract(input: OpensteerDomExtractInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerDomExtractOutput>;
|
|
4075
|
+
queryNetwork(input?: OpensteerNetworkQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkQueryOutput>;
|
|
4076
|
+
saveNetwork(input: OpensteerNetworkSaveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkSaveOutput>;
|
|
4077
|
+
minimizeNetwork(input: OpensteerNetworkMinimizeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkMinimizeOutput>;
|
|
4078
|
+
diffNetwork(input: OpensteerNetworkDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkDiffOutput>;
|
|
4079
|
+
probeNetwork(input: OpensteerTransportProbeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerTransportProbeOutput>;
|
|
4080
|
+
discoverReverse(input: OpensteerReverseDiscoverInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseDiscoverOutput>;
|
|
4081
|
+
queryReverse(input: OpensteerReverseQueryInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseQueryOutput>;
|
|
4082
|
+
createReversePackage(input: OpensteerReversePackageCreateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageCreateOutput>;
|
|
4083
|
+
runReversePackage(input: OpensteerReversePackageRunInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageRunOutput>;
|
|
4084
|
+
exportReverse(input: OpensteerReverseExportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseExportOutput>;
|
|
4085
|
+
getReverseReport(input: OpensteerReverseReportInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReverseReportOutput>;
|
|
4086
|
+
getReversePackage(input: OpensteerReversePackageGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageGetOutput>;
|
|
4087
|
+
listReversePackages(input?: OpensteerReversePackageListInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackageListOutput>;
|
|
4088
|
+
patchReversePackage(input: OpensteerReversePackagePatchInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerReversePackagePatchOutput>;
|
|
4089
|
+
captureInteraction(input: OpensteerInteractionCaptureInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionCaptureOutput>;
|
|
4090
|
+
getInteraction(input: OpensteerInteractionGetInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionGetOutput>;
|
|
4091
|
+
diffInteraction(input: OpensteerInteractionDiffInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionDiffOutput>;
|
|
4092
|
+
replayInteraction(input: OpensteerInteractionReplayInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerInteractionReplayOutput>;
|
|
4093
|
+
clearNetwork(input?: OpensteerNetworkClearInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerNetworkClearOutput>;
|
|
4094
|
+
captureScripts(input?: OpensteerCaptureScriptsInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptureScriptsOutput>;
|
|
4095
|
+
readArtifact(input: OpensteerArtifactReadInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerArtifactReadOutput>;
|
|
4096
|
+
beautifyScript(input: OpensteerScriptBeautifyInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptBeautifyOutput>;
|
|
4097
|
+
deobfuscateScript(input: OpensteerScriptDeobfuscateInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptDeobfuscateOutput>;
|
|
4098
|
+
sandboxScript(input: OpensteerScriptSandboxInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerScriptSandboxOutput>;
|
|
4099
|
+
solveCaptcha(input: OpensteerCaptchaSolveInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerCaptchaSolveOutput>;
|
|
4100
|
+
getCookies(input?: {
|
|
4101
|
+
readonly urls?: readonly string[];
|
|
4102
|
+
}, options?: OpensteerRuntimeOperationOptions): Promise<readonly CookieRecord[]>;
|
|
4103
|
+
getStorageSnapshot(input?: {
|
|
4104
|
+
readonly includeSessionStorage?: boolean;
|
|
4105
|
+
readonly includeIndexedDb?: boolean;
|
|
4106
|
+
}, options?: OpensteerRuntimeOperationOptions): Promise<StorageSnapshot>;
|
|
4107
|
+
rawRequest(input: OpensteerRawRequestInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRawRequestOutput>;
|
|
4108
|
+
inferRequestPlan(input: OpensteerInferRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4109
|
+
writeRequestPlan(input: OpensteerWriteRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4110
|
+
getRequestPlan(input: OpensteerGetRequestPlanInput, options?: OpensteerRuntimeOperationOptions): Promise<RequestPlanRecord>;
|
|
4111
|
+
listRequestPlans(input?: OpensteerListRequestPlansInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRequestPlansOutput>;
|
|
4112
|
+
writeAuthRecipe(input: OpensteerWriteAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
4113
|
+
writeRecipe(input: OpensteerWriteRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
4114
|
+
getAuthRecipe(input: OpensteerGetAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<AuthRecipeRecord>;
|
|
4115
|
+
getRecipe(input: OpensteerGetRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<RecipeRecord>;
|
|
4116
|
+
listAuthRecipes(input?: OpensteerListAuthRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListAuthRecipesOutput>;
|
|
4117
|
+
listRecipes(input?: OpensteerListRecipesInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerListRecipesOutput>;
|
|
4118
|
+
runAuthRecipe(input: OpensteerRunAuthRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunAuthRecipeOutput>;
|
|
4119
|
+
runRecipe(input: OpensteerRunRecipeInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRunRecipeOutput>;
|
|
4120
|
+
request(input: OpensteerRequestExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerRequestExecuteOutput>;
|
|
4121
|
+
computerExecute(input: OpensteerComputerExecuteInput, options?: OpensteerRuntimeOperationOptions): Promise<OpensteerComputerExecuteOutput>;
|
|
4122
|
+
close(options?: OpensteerRuntimeOperationOptions): Promise<OpensteerSessionCloseOutput>;
|
|
4123
|
+
}
|
|
4124
|
+
|
|
4125
|
+
interface OpensteerDisconnectableRuntime extends OpensteerSemanticRuntime {
|
|
4126
|
+
disconnect(): Promise<void>;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
interface OpensteerResolvedRuntimeConfig {
|
|
4130
|
+
readonly provider: OpensteerResolvedProvider;
|
|
4131
|
+
readonly cloud?: OpensteerCloudConfig;
|
|
4132
|
+
}
|
|
4133
|
+
declare function resolveOpensteerRuntimeConfig(input?: {
|
|
4134
|
+
readonly provider?: OpensteerProviderOptions;
|
|
4135
|
+
readonly environmentProvider?: string;
|
|
4136
|
+
}): OpensteerResolvedRuntimeConfig;
|
|
4137
|
+
declare function createOpensteerSemanticRuntime(input?: {
|
|
4138
|
+
readonly runtimeOptions?: OpensteerRuntimeOptions;
|
|
4139
|
+
readonly engine?: OpensteerEngineName;
|
|
4140
|
+
readonly provider?: OpensteerProviderOptions;
|
|
4141
|
+
}): OpensteerDisconnectableRuntime;
|
|
4142
|
+
|
|
4236
4143
|
type BrowserBrandId = "chrome" | "chrome-canary" | "chromium" | "brave" | "edge" | "vivaldi" | "helium";
|
|
4237
4144
|
|
|
4238
4145
|
type CookieCaptureStrategy = "attach" | "headless" | "managed-relaunch";
|
|
@@ -4272,6 +4179,7 @@ declare class OpensteerCloudClient {
|
|
|
4272
4179
|
createSession(input?: OpensteerCloudSessionCreateInput): Promise<OpensteerCloudSessionDescriptor>;
|
|
4273
4180
|
listSessions(): Promise<unknown>;
|
|
4274
4181
|
getSession(sessionId: string): Promise<OpensteerCloudSessionState>;
|
|
4182
|
+
issueAccess(sessionId: string, capabilities: readonly OpensteerSessionGrantKind[]): Promise<OpensteerSessionAccessGrantResponse>;
|
|
4275
4183
|
closeSession(sessionId: string): Promise<void>;
|
|
4276
4184
|
createBrowserProfileImport(input: BrowserProfileImportCreateRequest): Promise<BrowserProfileImportCreateResponse>;
|
|
4277
4185
|
uploadBrowserProfileImportPayload(input: {
|
|
@@ -4280,33 +4188,64 @@ declare class OpensteerCloudClient {
|
|
|
4280
4188
|
}): Promise<BrowserProfileImportDescriptor>;
|
|
4281
4189
|
getBrowserProfileImport(importId: string): Promise<BrowserProfileImportDescriptor>;
|
|
4282
4190
|
syncBrowserProfileCookies(input: SyncBrowserProfileCookiesInput): Promise<BrowserProfileImportDescriptor>;
|
|
4191
|
+
importSelectorCache(entries: readonly CloudSelectorCacheImportEntry[]): Promise<CloudSelectorCacheImportResponse>;
|
|
4192
|
+
importRequestPlans(entries: readonly CloudRequestPlanImportEntry[]): Promise<CloudRegistryImportResponse>;
|
|
4193
|
+
importRecipes(entries: readonly CloudRegistryImportEntry[]): Promise<CloudRegistryImportResponse>;
|
|
4194
|
+
importAuthRecipes(entries: readonly CloudRegistryImportEntry[]): Promise<CloudRegistryImportResponse>;
|
|
4283
4195
|
buildAuthorizationHeader(): string;
|
|
4284
4196
|
private buildHeaders;
|
|
4285
4197
|
private request;
|
|
4286
4198
|
private waitForSessionClosed;
|
|
4287
4199
|
}
|
|
4288
4200
|
|
|
4289
|
-
declare const
|
|
4290
|
-
declare const
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
readonly
|
|
4294
|
-
readonly
|
|
4201
|
+
declare const OPENSTEER_LIVE_SESSION_LAYOUT = "opensteer-session";
|
|
4202
|
+
declare const OPENSTEER_LIVE_SESSION_VERSION = 1;
|
|
4203
|
+
type OpensteerLiveSessionProvider = "local" | "cloud";
|
|
4204
|
+
interface PersistedSessionRecordBase {
|
|
4205
|
+
readonly layout: typeof OPENSTEER_LIVE_SESSION_LAYOUT;
|
|
4206
|
+
readonly version: typeof OPENSTEER_LIVE_SESSION_VERSION;
|
|
4207
|
+
readonly provider: OpensteerLiveSessionProvider;
|
|
4295
4208
|
readonly workspace?: string;
|
|
4209
|
+
readonly updatedAt: number;
|
|
4210
|
+
readonly activePageRef?: string;
|
|
4211
|
+
readonly reconnectable?: boolean;
|
|
4212
|
+
readonly capabilities?: OpensteerSessionCapabilities;
|
|
4213
|
+
}
|
|
4214
|
+
interface PersistedLocalBrowserSessionRecord extends PersistedSessionRecordBase {
|
|
4215
|
+
readonly provider: "local";
|
|
4216
|
+
readonly engine: "playwright" | "abp";
|
|
4217
|
+
readonly endpoint?: string;
|
|
4218
|
+
readonly baseUrl?: string;
|
|
4219
|
+
readonly remoteDebuggingUrl?: string;
|
|
4220
|
+
readonly sessionDir?: string;
|
|
4221
|
+
readonly pid: number;
|
|
4222
|
+
readonly startedAt: number;
|
|
4223
|
+
readonly executablePath?: string;
|
|
4224
|
+
readonly userDataDir: string;
|
|
4225
|
+
}
|
|
4226
|
+
interface PersistedCloudSessionRecord extends PersistedSessionRecordBase {
|
|
4227
|
+
readonly provider: "cloud";
|
|
4296
4228
|
readonly sessionId: string;
|
|
4297
4229
|
readonly baseUrl: string;
|
|
4298
4230
|
readonly startedAt: number;
|
|
4299
|
-
readonly updatedAt: number;
|
|
4300
4231
|
}
|
|
4232
|
+
type PersistedSessionRecord = PersistedLocalBrowserSessionRecord | PersistedCloudSessionRecord;
|
|
4233
|
+
declare function resolveLiveSessionRecordPath(rootPath: string, provider: OpensteerLiveSessionProvider): string;
|
|
4234
|
+
declare function resolveLocalSessionRecordPath(rootPath: string): string;
|
|
4235
|
+
declare function resolveCloudSessionRecordPath(rootPath: string): string;
|
|
4236
|
+
declare function readPersistedSessionRecord(rootPath: string, provider: OpensteerLiveSessionProvider): Promise<PersistedSessionRecord | undefined>;
|
|
4237
|
+
declare function readPersistedCloudSessionRecord(rootPath: string): Promise<PersistedCloudSessionRecord | undefined>;
|
|
4238
|
+
declare function readPersistedLocalBrowserSessionRecord(rootPath: string): Promise<PersistedLocalBrowserSessionRecord | undefined>;
|
|
4239
|
+
declare function writePersistedSessionRecord(rootPath: string, record: PersistedSessionRecord): Promise<void>;
|
|
4240
|
+
declare function clearPersistedSessionRecord(rootPath: string, provider: OpensteerLiveSessionProvider): Promise<void>;
|
|
4241
|
+
|
|
4301
4242
|
interface CloudSessionProxyOptions {
|
|
4302
4243
|
readonly rootDir?: string;
|
|
4303
4244
|
readonly rootPath?: string;
|
|
4304
4245
|
readonly workspace?: string;
|
|
4305
4246
|
readonly cleanupRootOnClose?: boolean;
|
|
4306
4247
|
}
|
|
4307
|
-
|
|
4308
|
-
declare function readPersistedCloudSessionRecord(rootPath: string): Promise<PersistedCloudSessionRecord | undefined>;
|
|
4309
|
-
declare function hasPersistedCloudSession(rootPath: string): Promise<boolean>;
|
|
4248
|
+
|
|
4310
4249
|
declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
4311
4250
|
readonly rootPath: string;
|
|
4312
4251
|
readonly workspace: string | undefined;
|
|
@@ -4315,9 +4254,11 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4315
4254
|
private sessionId;
|
|
4316
4255
|
private sessionBaseUrl;
|
|
4317
4256
|
private client;
|
|
4257
|
+
private automation;
|
|
4318
4258
|
private workspaceStore;
|
|
4319
4259
|
constructor(cloud: OpensteerCloudClient, options?: CloudSessionProxyOptions);
|
|
4320
4260
|
open(input?: OpensteerOpenInput): Promise<OpensteerOpenOutput>;
|
|
4261
|
+
info(): Promise<OpensteerSessionInfo>;
|
|
4321
4262
|
listPages(input?: OpensteerPageListInput): Promise<OpensteerPageListOutput>;
|
|
4322
4263
|
newPage(input?: OpensteerPageNewInput): Promise<OpensteerPageNewOutput>;
|
|
4323
4264
|
activatePage(input: OpensteerPageActivateInput): Promise<OpensteerPageActivateOutput>;
|
|
@@ -4359,6 +4300,8 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4359
4300
|
getCookies(input?: {
|
|
4360
4301
|
readonly urls?: readonly string[];
|
|
4361
4302
|
}): Promise<readonly CookieRecord[]>;
|
|
4303
|
+
route(input: OpensteerRouteOptions): Promise<OpensteerRouteRegistration>;
|
|
4304
|
+
interceptScript(input: OpensteerInterceptScriptOptions): Promise<OpensteerRouteRegistration>;
|
|
4362
4305
|
getStorageSnapshot(input?: {
|
|
4363
4306
|
readonly includeSessionStorage?: boolean;
|
|
4364
4307
|
readonly includeIndexedDb?: boolean;
|
|
@@ -4381,6 +4324,7 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4381
4324
|
close(): Promise<OpensteerSessionCloseOutput>;
|
|
4382
4325
|
disconnect(): Promise<void>;
|
|
4383
4326
|
private ensureSession;
|
|
4327
|
+
private syncRegistryToCloud;
|
|
4384
4328
|
private bindClient;
|
|
4385
4329
|
private ensureWorkspaceStore;
|
|
4386
4330
|
private loadPersistedSession;
|
|
@@ -4388,6 +4332,7 @@ declare class CloudSessionProxy implements OpensteerDisconnectableRuntime {
|
|
|
4388
4332
|
private clearPersistedSession;
|
|
4389
4333
|
private isReusableCloudSession;
|
|
4390
4334
|
private requireClient;
|
|
4335
|
+
private requireAutomation;
|
|
4391
4336
|
}
|
|
4392
4337
|
|
|
4393
4338
|
declare function dispatchSemanticOperation(runtime: OpensteerSemanticRuntime, operation: OpensteerSemanticOperationName, input: unknown, options?: {
|
|
@@ -4429,4 +4374,4 @@ declare function discoverLocalCdpBrowsers(input?: {
|
|
|
4429
4374
|
readonly timeoutMs?: number;
|
|
4430
4375
|
}): Promise<readonly LocalCdpBrowserCandidate[]>;
|
|
4431
4376
|
|
|
4432
|
-
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, 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 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 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, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, 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
|
|
4377
|
+
export { type AnchorTargetRef, type AppendTraceEntryInput, type ArtifactManifest, 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, type FilesystemOpensteerWorkspace, type InspectedCdpEndpoint, type InteractionTraceRecord, type InteractionTraceRegistryStore, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, 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 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 OpensteerNetworkSaveOptions, type OpensteerNetworkSaveResult, type OpensteerOptions, type OpensteerPolicy, type OpensteerProviderKind, 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, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, clearPersistedSessionRecord, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createDomRuntime, createFilesystemOpensteerWorkspace, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, discoverLocalCdpBrowsers, dispatchSemanticOperation, inspectCdpEndpoint, isCurrentUrlField, isValidCssAttributeKey, listLocalChromeProfiles, normalizeExtractedValue, normalizeOpensteerEngineName, normalizeOpensteerProviderKind, normalizeWorkspaceId, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudConfig, resolveCloudSessionRecordPath, resolveDomActionBridge, resolveExtractedValueInContext, resolveFilesystemWorkspacePath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, resolveOpensteerEngineName, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath, writePersistedSessionRecord };
|