opensteer 0.6.13 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +256 -184
- package/dist/chunk-PQYA6IX2.js +32571 -0
- package/dist/chunk-PQYA6IX2.js.map +1 -0
- package/dist/cli/bin.cjs +38201 -0
- package/dist/cli/bin.cjs.map +1 -0
- package/dist/cli/bin.d.cts +1 -0
- package/dist/cli/bin.d.ts +1 -0
- package/dist/cli/bin.js +5612 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/index.cjs +31309 -16009
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4440 -670
- package/dist/index.d.ts +4440 -670
- package/dist/index.js +438 -378
- package/dist/index.js.map +1 -0
- package/package.json +56 -62
- package/skills/README.md +21 -20
- package/skills/opensteer/SKILL.md +60 -194
- package/skills/opensteer/references/cli-reference.md +69 -113
- package/skills/opensteer/references/request-workflow.md +81 -0
- package/skills/opensteer/references/sdk-reference.md +101 -154
- package/CHANGELOG.md +0 -75
- package/bin/opensteer.mjs +0 -1423
- package/dist/browser-profile-client-CGXc0-P9.d.cts +0 -228
- package/dist/browser-profile-client-DHLzMf-K.d.ts +0 -228
- package/dist/chunk-2ES46WCO.js +0 -1437
- package/dist/chunk-3H5RRIMZ.js +0 -69
- package/dist/chunk-AVXUMEDG.js +0 -62
- package/dist/chunk-DN3GI5CH.js +0 -57
- package/dist/chunk-FAHE5DB2.js +0 -190
- package/dist/chunk-HBTSQ2V4.js +0 -15259
- package/dist/chunk-K5CL76MG.js +0 -81
- package/dist/chunk-U724TBY6.js +0 -1262
- package/dist/chunk-ZRCFF546.js +0 -77
- package/dist/cli/auth.cjs +0 -2022
- package/dist/cli/auth.d.cts +0 -114
- package/dist/cli/auth.d.ts +0 -114
- package/dist/cli/auth.js +0 -15
- package/dist/cli/local-profile.cjs +0 -197
- package/dist/cli/local-profile.d.cts +0 -18
- package/dist/cli/local-profile.d.ts +0 -18
- package/dist/cli/local-profile.js +0 -97
- package/dist/cli/profile.cjs +0 -18548
- package/dist/cli/profile.d.cts +0 -79
- package/dist/cli/profile.d.ts +0 -79
- package/dist/cli/profile.js +0 -1328
- package/dist/cli/server.cjs +0 -17232
- package/dist/cli/server.d.cts +0 -2
- package/dist/cli/server.d.ts +0 -2
- package/dist/cli/server.js +0 -977
- package/dist/cli/skills-installer.cjs +0 -230
- package/dist/cli/skills-installer.d.cts +0 -28
- package/dist/cli/skills-installer.d.ts +0 -28
- package/dist/cli/skills-installer.js +0 -201
- package/dist/extractor-4Q3TFZJB.js +0 -8
- package/dist/resolver-MGN64KCP.js +0 -7
- package/dist/types-Cr10igF3.d.cts +0 -345
- package/dist/types-Cr10igF3.d.ts +0 -345
- package/skills/electron/SKILL.md +0 -87
- package/skills/electron/references/opensteer-electron-recipes.md +0 -88
- package/skills/electron/references/opensteer-electron-workflow.md +0 -85
- package/skills/opensteer/references/examples.md +0 -118
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { O as OpensteerAuthScheme } from './types-Cr10igF3.cjs';
|
|
2
|
-
|
|
3
|
-
type ActionFailureCode = 'TARGET_NOT_FOUND' | 'TARGET_UNAVAILABLE' | 'TARGET_STALE' | 'TARGET_AMBIGUOUS' | 'BLOCKED_BY_INTERCEPTOR' | 'NOT_VISIBLE' | 'NOT_ENABLED' | 'NOT_EDITABLE' | 'INVALID_TARGET' | 'INVALID_OPTIONS' | 'ACTION_TIMEOUT' | 'UNKNOWN';
|
|
4
|
-
type ActionFailureClassificationSource = 'typed_error' | 'playwright_call_log' | 'dom_probe' | 'message_heuristic' | 'unknown';
|
|
5
|
-
interface ActionFailureBlocker {
|
|
6
|
-
tag: string;
|
|
7
|
-
id: string | null;
|
|
8
|
-
classes: string[];
|
|
9
|
-
role: string | null;
|
|
10
|
-
text: string | null;
|
|
11
|
-
}
|
|
12
|
-
interface ActionFailureDetails {
|
|
13
|
-
blocker?: ActionFailureBlocker;
|
|
14
|
-
observation?: string;
|
|
15
|
-
}
|
|
16
|
-
interface ActionFailure {
|
|
17
|
-
code: ActionFailureCode;
|
|
18
|
-
message: string;
|
|
19
|
-
retryable: boolean;
|
|
20
|
-
classificationSource: ActionFailureClassificationSource;
|
|
21
|
-
details?: ActionFailureDetails;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const cloudActionMethods: readonly ["goto", "snapshot", "screenshot", "state", "click", "dblclick", "rightclick", "hover", "input", "select", "scroll", "tabs", "newTab", "switchTab", "closeTab", "getCookies", "setCookie", "clearCookies", "pressKey", "type", "getElementText", "getElementValue", "getElementAttributes", "getElementBoundingBox", "getHtml", "getTitle", "uploadFile", "exportCookies", "importCookies", "waitForText", "extract", "extractFromPlan", "clearCache"];
|
|
25
|
-
type CloudActionMethod = (typeof cloudActionMethods)[number];
|
|
26
|
-
declare const cloudErrorCodes: readonly ["CLOUD_AUTH_FAILED", "CLOUD_SESSION_NOT_FOUND", "CLOUD_SESSION_CLOSED", "CLOUD_UNSUPPORTED_METHOD", "CLOUD_INVALID_REQUEST", "CLOUD_MODEL_NOT_ALLOWED", "CLOUD_ACTION_FAILED", "CLOUD_CAPACITY_EXHAUSTED", "CLOUD_RUNTIME_UNAVAILABLE", "CLOUD_RUNTIME_MISMATCH", "CLOUD_SESSION_STALE", "CLOUD_CONTROL_PLANE_ERROR", "CLOUD_CONTRACT_MISMATCH", "CLOUD_PROXY_UNAVAILABLE", "CLOUD_PROXY_REQUIRED", "CLOUD_BILLING_LIMIT_REACHED", "CLOUD_RATE_LIMITED", "CLOUD_BROWSER_PROFILE_NOT_FOUND", "CLOUD_BROWSER_PROFILE_BUSY", "CLOUD_BROWSER_PROFILE_DISABLED", "CLOUD_BROWSER_PROFILE_PROXY_UNAVAILABLE", "CLOUD_BROWSER_PROFILE_SYNC_FAILED", "CLOUD_INTERNAL"];
|
|
27
|
-
type CloudErrorCode = (typeof cloudErrorCodes)[number];
|
|
28
|
-
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
29
|
-
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
30
|
-
declare const cloudSessionContractVersion: "v3";
|
|
31
|
-
type CloudSessionContractVersion = typeof cloudSessionContractVersion;
|
|
32
|
-
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
33
|
-
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
34
|
-
type CloudSessionVisibilityScope = 'team' | 'owner';
|
|
35
|
-
type CloudProxyMode = 'disabled' | 'optional' | 'required';
|
|
36
|
-
type CloudProxyProtocol = 'http' | 'https' | 'socks5';
|
|
37
|
-
type CloudFingerprintMode = 'off' | 'auto';
|
|
38
|
-
type BrowserProfileStatus = 'active' | 'archived' | 'error';
|
|
39
|
-
type BrowserProfileProxyPolicy = 'strict_sticky';
|
|
40
|
-
type BrowserProfileArchiveFormat = 'tar.gz';
|
|
41
|
-
interface CloudViewport {
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
}
|
|
45
|
-
interface CloudGeolocation {
|
|
46
|
-
latitude: number;
|
|
47
|
-
longitude: number;
|
|
48
|
-
accuracy?: number;
|
|
49
|
-
}
|
|
50
|
-
interface CloudBrowserContextConfig {
|
|
51
|
-
viewport?: CloudViewport;
|
|
52
|
-
locale?: string;
|
|
53
|
-
timezoneId?: string;
|
|
54
|
-
geolocation?: CloudGeolocation;
|
|
55
|
-
colorScheme?: 'light' | 'dark' | 'no-preference';
|
|
56
|
-
userAgent?: string;
|
|
57
|
-
javaScriptEnabled?: boolean;
|
|
58
|
-
ignoreHTTPSErrors?: boolean;
|
|
59
|
-
}
|
|
60
|
-
interface CloudBrowserExtensionConfig {
|
|
61
|
-
includeDefaults?: boolean;
|
|
62
|
-
extensionKeys?: string[];
|
|
63
|
-
}
|
|
64
|
-
interface CloudBrowserLaunchConfig {
|
|
65
|
-
headless?: boolean;
|
|
66
|
-
context?: CloudBrowserContextConfig;
|
|
67
|
-
chromeArgs?: string[];
|
|
68
|
-
extensions?: CloudBrowserExtensionConfig;
|
|
69
|
-
}
|
|
70
|
-
interface CloudProxyPreference {
|
|
71
|
-
mode?: CloudProxyMode;
|
|
72
|
-
countryCode?: string;
|
|
73
|
-
region?: string;
|
|
74
|
-
city?: string;
|
|
75
|
-
proxyId?: string;
|
|
76
|
-
}
|
|
77
|
-
interface CloudFingerprintPreference {
|
|
78
|
-
mode?: CloudFingerprintMode;
|
|
79
|
-
locales?: string[];
|
|
80
|
-
minWidth?: number;
|
|
81
|
-
maxWidth?: number;
|
|
82
|
-
minHeight?: number;
|
|
83
|
-
maxHeight?: number;
|
|
84
|
-
slim?: boolean;
|
|
85
|
-
}
|
|
86
|
-
interface CloudBrowserProfileLaunchPreference {
|
|
87
|
-
profileId: string;
|
|
88
|
-
reuseIfActive?: boolean;
|
|
89
|
-
}
|
|
90
|
-
interface CloudSessionLaunchConfig {
|
|
91
|
-
browser?: CloudBrowserLaunchConfig;
|
|
92
|
-
proxy?: CloudProxyPreference;
|
|
93
|
-
fingerprint?: CloudFingerprintPreference;
|
|
94
|
-
browserProfile?: CloudBrowserProfileLaunchPreference;
|
|
95
|
-
}
|
|
96
|
-
interface CloudSessionCreateRequest {
|
|
97
|
-
cloudSessionContractVersion: CloudSessionContractVersion;
|
|
98
|
-
sourceType: 'local-cloud';
|
|
99
|
-
clientSessionHint: string;
|
|
100
|
-
localRunId: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
model?: string;
|
|
103
|
-
launchContext?: Record<string, unknown>;
|
|
104
|
-
launchConfig?: CloudSessionLaunchConfig;
|
|
105
|
-
}
|
|
106
|
-
interface CloudSessionSummary {
|
|
107
|
-
sessionId: string;
|
|
108
|
-
workspaceId: string;
|
|
109
|
-
state: CloudSessionStatus;
|
|
110
|
-
createdAt: number;
|
|
111
|
-
sourceType: CloudSessionSourceType;
|
|
112
|
-
sourceRef?: string;
|
|
113
|
-
label?: string;
|
|
114
|
-
}
|
|
115
|
-
interface CloudSessionCreateResponse {
|
|
116
|
-
sessionId: string;
|
|
117
|
-
actionWsUrl: string;
|
|
118
|
-
cdpWsUrl: string;
|
|
119
|
-
actionToken: string;
|
|
120
|
-
cdpToken: string;
|
|
121
|
-
expiresAt?: number;
|
|
122
|
-
cloudSessionUrl: string;
|
|
123
|
-
cloudSession: CloudSessionSummary;
|
|
124
|
-
}
|
|
125
|
-
interface CloudSelectorCacheImportEntry {
|
|
126
|
-
namespace: string;
|
|
127
|
-
siteOrigin: string;
|
|
128
|
-
method: string;
|
|
129
|
-
descriptionHash: string;
|
|
130
|
-
path: unknown;
|
|
131
|
-
schemaHash?: string;
|
|
132
|
-
createdAt: number;
|
|
133
|
-
updatedAt: number;
|
|
134
|
-
}
|
|
135
|
-
interface CloudSelectorCacheImportRequest {
|
|
136
|
-
entries: CloudSelectorCacheImportEntry[];
|
|
137
|
-
}
|
|
138
|
-
interface CloudSelectorCacheImportResponse {
|
|
139
|
-
imported: number;
|
|
140
|
-
inserted: number;
|
|
141
|
-
updated: number;
|
|
142
|
-
skipped: number;
|
|
143
|
-
}
|
|
144
|
-
interface CloudActionRequest {
|
|
145
|
-
id: number;
|
|
146
|
-
method: CloudActionMethod;
|
|
147
|
-
args: Record<string, unknown>;
|
|
148
|
-
sessionId: string;
|
|
149
|
-
token: string;
|
|
150
|
-
}
|
|
151
|
-
interface CloudActionSuccess {
|
|
152
|
-
id: number;
|
|
153
|
-
ok: true;
|
|
154
|
-
result: unknown;
|
|
155
|
-
}
|
|
156
|
-
interface CloudActionFailure {
|
|
157
|
-
id: number;
|
|
158
|
-
ok: false;
|
|
159
|
-
error: string;
|
|
160
|
-
code: CloudErrorCode;
|
|
161
|
-
details?: CloudActionFailureDetails;
|
|
162
|
-
}
|
|
163
|
-
type CloudActionResponse = CloudActionSuccess | CloudActionFailure;
|
|
164
|
-
interface CloudActionFailureDetails {
|
|
165
|
-
actionFailure?: ActionFailure;
|
|
166
|
-
}
|
|
167
|
-
interface BrowserProfileDescriptor {
|
|
168
|
-
profileId: string;
|
|
169
|
-
teamId: string;
|
|
170
|
-
ownerUserId: string;
|
|
171
|
-
name: string;
|
|
172
|
-
status: BrowserProfileStatus;
|
|
173
|
-
proxyPolicy: BrowserProfileProxyPolicy;
|
|
174
|
-
stickyProxyId?: string;
|
|
175
|
-
proxyCountryCode?: string;
|
|
176
|
-
proxyRegion?: string;
|
|
177
|
-
proxyCity?: string;
|
|
178
|
-
fingerprintMode: CloudFingerprintMode;
|
|
179
|
-
fingerprintHash?: string;
|
|
180
|
-
activeSessionId?: string;
|
|
181
|
-
lastSessionId?: string;
|
|
182
|
-
lastLaunchedAt?: number;
|
|
183
|
-
latestRevision?: number;
|
|
184
|
-
latestStorageId?: string;
|
|
185
|
-
latestSizeBytes?: number;
|
|
186
|
-
latestArchiveSha256?: string;
|
|
187
|
-
latestArchiveFormat?: BrowserProfileArchiveFormat;
|
|
188
|
-
createdAt: number;
|
|
189
|
-
updatedAt: number;
|
|
190
|
-
lastError?: string;
|
|
191
|
-
}
|
|
192
|
-
interface BrowserProfileListResponse {
|
|
193
|
-
profiles: BrowserProfileDescriptor[];
|
|
194
|
-
nextCursor?: string;
|
|
195
|
-
}
|
|
196
|
-
interface BrowserProfileCreateRequest {
|
|
197
|
-
name: string;
|
|
198
|
-
proxy?: {
|
|
199
|
-
proxyId?: string;
|
|
200
|
-
countryCode?: string;
|
|
201
|
-
region?: string;
|
|
202
|
-
city?: string;
|
|
203
|
-
};
|
|
204
|
-
fingerprint?: {
|
|
205
|
-
mode?: CloudFingerprintMode;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
declare function isCloudActionMethod(value: unknown): value is CloudActionMethod;
|
|
209
|
-
declare function isCloudErrorCode(value: unknown): value is CloudErrorCode;
|
|
210
|
-
declare function isCloudSessionSourceType(value: unknown): value is CloudSessionSourceType;
|
|
211
|
-
declare function isCloudSessionStatus(value: unknown): value is CloudSessionStatus;
|
|
212
|
-
|
|
213
|
-
interface BrowserProfileListRequest {
|
|
214
|
-
cursor?: string;
|
|
215
|
-
limit?: number;
|
|
216
|
-
status?: BrowserProfileStatus;
|
|
217
|
-
}
|
|
218
|
-
declare class BrowserProfileClient {
|
|
219
|
-
private readonly baseUrl;
|
|
220
|
-
private readonly key;
|
|
221
|
-
private readonly authScheme;
|
|
222
|
-
constructor(baseUrl: string, key: string, authScheme?: OpensteerAuthScheme);
|
|
223
|
-
list(request?: BrowserProfileListRequest): Promise<BrowserProfileListResponse>;
|
|
224
|
-
get(profileId: string): Promise<BrowserProfileDescriptor>;
|
|
225
|
-
create(request: BrowserProfileCreateRequest): Promise<BrowserProfileDescriptor>;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export { type ActionFailure as A, type BrowserProfileStatus as B, type CloudErrorCode as C, type CloudFingerprintMode as D, type CloudFingerprintPreference as E, type CloudGeolocation as F, type CloudProxyMode as G, type CloudProxyPreference as H, type CloudProxyProtocol as I, type CloudSessionContractVersion as J, type CloudSessionLaunchConfig as K, type CloudSessionSourceType as L, type CloudSessionStatus as M, type CloudSessionSummary as N, type CloudSessionVisibilityScope as O, type CloudViewport as P, cloudActionMethods as Q, cloudErrorCodes as R, cloudSessionContractVersion as S, cloudSessionSourceTypes as T, cloudSessionStatuses as U, isCloudActionMethod as V, isCloudErrorCode as W, isCloudSessionSourceType as X, isCloudSessionStatus as Y, type BrowserProfileListRequest as a, type BrowserProfileListResponse as b, type BrowserProfileCreateRequest as c, type BrowserProfileDescriptor as d, type ActionFailureCode as e, type CloudActionFailureDetails as f, type CloudSessionCreateRequest as g, type CloudSessionCreateResponse as h, type CloudSelectorCacheImportRequest as i, type CloudSelectorCacheImportResponse as j, type CloudActionMethod as k, type CloudSelectorCacheImportEntry as l, type ActionFailureBlocker as m, type ActionFailureClassificationSource as n, type ActionFailureDetails as o, type BrowserProfileArchiveFormat as p, BrowserProfileClient as q, type BrowserProfileProxyPolicy as r, type CloudActionFailure as s, type CloudActionRequest as t, type CloudActionResponse as u, type CloudActionSuccess as v, type CloudBrowserContextConfig as w, type CloudBrowserExtensionConfig as x, type CloudBrowserLaunchConfig as y, type CloudBrowserProfileLaunchPreference as z };
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { O as OpensteerAuthScheme } from './types-Cr10igF3.js';
|
|
2
|
-
|
|
3
|
-
type ActionFailureCode = 'TARGET_NOT_FOUND' | 'TARGET_UNAVAILABLE' | 'TARGET_STALE' | 'TARGET_AMBIGUOUS' | 'BLOCKED_BY_INTERCEPTOR' | 'NOT_VISIBLE' | 'NOT_ENABLED' | 'NOT_EDITABLE' | 'INVALID_TARGET' | 'INVALID_OPTIONS' | 'ACTION_TIMEOUT' | 'UNKNOWN';
|
|
4
|
-
type ActionFailureClassificationSource = 'typed_error' | 'playwright_call_log' | 'dom_probe' | 'message_heuristic' | 'unknown';
|
|
5
|
-
interface ActionFailureBlocker {
|
|
6
|
-
tag: string;
|
|
7
|
-
id: string | null;
|
|
8
|
-
classes: string[];
|
|
9
|
-
role: string | null;
|
|
10
|
-
text: string | null;
|
|
11
|
-
}
|
|
12
|
-
interface ActionFailureDetails {
|
|
13
|
-
blocker?: ActionFailureBlocker;
|
|
14
|
-
observation?: string;
|
|
15
|
-
}
|
|
16
|
-
interface ActionFailure {
|
|
17
|
-
code: ActionFailureCode;
|
|
18
|
-
message: string;
|
|
19
|
-
retryable: boolean;
|
|
20
|
-
classificationSource: ActionFailureClassificationSource;
|
|
21
|
-
details?: ActionFailureDetails;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const cloudActionMethods: readonly ["goto", "snapshot", "screenshot", "state", "click", "dblclick", "rightclick", "hover", "input", "select", "scroll", "tabs", "newTab", "switchTab", "closeTab", "getCookies", "setCookie", "clearCookies", "pressKey", "type", "getElementText", "getElementValue", "getElementAttributes", "getElementBoundingBox", "getHtml", "getTitle", "uploadFile", "exportCookies", "importCookies", "waitForText", "extract", "extractFromPlan", "clearCache"];
|
|
25
|
-
type CloudActionMethod = (typeof cloudActionMethods)[number];
|
|
26
|
-
declare const cloudErrorCodes: readonly ["CLOUD_AUTH_FAILED", "CLOUD_SESSION_NOT_FOUND", "CLOUD_SESSION_CLOSED", "CLOUD_UNSUPPORTED_METHOD", "CLOUD_INVALID_REQUEST", "CLOUD_MODEL_NOT_ALLOWED", "CLOUD_ACTION_FAILED", "CLOUD_CAPACITY_EXHAUSTED", "CLOUD_RUNTIME_UNAVAILABLE", "CLOUD_RUNTIME_MISMATCH", "CLOUD_SESSION_STALE", "CLOUD_CONTROL_PLANE_ERROR", "CLOUD_CONTRACT_MISMATCH", "CLOUD_PROXY_UNAVAILABLE", "CLOUD_PROXY_REQUIRED", "CLOUD_BILLING_LIMIT_REACHED", "CLOUD_RATE_LIMITED", "CLOUD_BROWSER_PROFILE_NOT_FOUND", "CLOUD_BROWSER_PROFILE_BUSY", "CLOUD_BROWSER_PROFILE_DISABLED", "CLOUD_BROWSER_PROFILE_PROXY_UNAVAILABLE", "CLOUD_BROWSER_PROFILE_SYNC_FAILED", "CLOUD_INTERNAL"];
|
|
27
|
-
type CloudErrorCode = (typeof cloudErrorCodes)[number];
|
|
28
|
-
declare const cloudSessionStatuses: readonly ["provisioning", "active", "closing", "closed", "failed"];
|
|
29
|
-
type CloudSessionStatus = (typeof cloudSessionStatuses)[number];
|
|
30
|
-
declare const cloudSessionContractVersion: "v3";
|
|
31
|
-
type CloudSessionContractVersion = typeof cloudSessionContractVersion;
|
|
32
|
-
declare const cloudSessionSourceTypes: readonly ["agent-thread", "agent-run", "project-agent-run", "local-cloud", "manual"];
|
|
33
|
-
type CloudSessionSourceType = (typeof cloudSessionSourceTypes)[number];
|
|
34
|
-
type CloudSessionVisibilityScope = 'team' | 'owner';
|
|
35
|
-
type CloudProxyMode = 'disabled' | 'optional' | 'required';
|
|
36
|
-
type CloudProxyProtocol = 'http' | 'https' | 'socks5';
|
|
37
|
-
type CloudFingerprintMode = 'off' | 'auto';
|
|
38
|
-
type BrowserProfileStatus = 'active' | 'archived' | 'error';
|
|
39
|
-
type BrowserProfileProxyPolicy = 'strict_sticky';
|
|
40
|
-
type BrowserProfileArchiveFormat = 'tar.gz';
|
|
41
|
-
interface CloudViewport {
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
}
|
|
45
|
-
interface CloudGeolocation {
|
|
46
|
-
latitude: number;
|
|
47
|
-
longitude: number;
|
|
48
|
-
accuracy?: number;
|
|
49
|
-
}
|
|
50
|
-
interface CloudBrowserContextConfig {
|
|
51
|
-
viewport?: CloudViewport;
|
|
52
|
-
locale?: string;
|
|
53
|
-
timezoneId?: string;
|
|
54
|
-
geolocation?: CloudGeolocation;
|
|
55
|
-
colorScheme?: 'light' | 'dark' | 'no-preference';
|
|
56
|
-
userAgent?: string;
|
|
57
|
-
javaScriptEnabled?: boolean;
|
|
58
|
-
ignoreHTTPSErrors?: boolean;
|
|
59
|
-
}
|
|
60
|
-
interface CloudBrowserExtensionConfig {
|
|
61
|
-
includeDefaults?: boolean;
|
|
62
|
-
extensionKeys?: string[];
|
|
63
|
-
}
|
|
64
|
-
interface CloudBrowserLaunchConfig {
|
|
65
|
-
headless?: boolean;
|
|
66
|
-
context?: CloudBrowserContextConfig;
|
|
67
|
-
chromeArgs?: string[];
|
|
68
|
-
extensions?: CloudBrowserExtensionConfig;
|
|
69
|
-
}
|
|
70
|
-
interface CloudProxyPreference {
|
|
71
|
-
mode?: CloudProxyMode;
|
|
72
|
-
countryCode?: string;
|
|
73
|
-
region?: string;
|
|
74
|
-
city?: string;
|
|
75
|
-
proxyId?: string;
|
|
76
|
-
}
|
|
77
|
-
interface CloudFingerprintPreference {
|
|
78
|
-
mode?: CloudFingerprintMode;
|
|
79
|
-
locales?: string[];
|
|
80
|
-
minWidth?: number;
|
|
81
|
-
maxWidth?: number;
|
|
82
|
-
minHeight?: number;
|
|
83
|
-
maxHeight?: number;
|
|
84
|
-
slim?: boolean;
|
|
85
|
-
}
|
|
86
|
-
interface CloudBrowserProfileLaunchPreference {
|
|
87
|
-
profileId: string;
|
|
88
|
-
reuseIfActive?: boolean;
|
|
89
|
-
}
|
|
90
|
-
interface CloudSessionLaunchConfig {
|
|
91
|
-
browser?: CloudBrowserLaunchConfig;
|
|
92
|
-
proxy?: CloudProxyPreference;
|
|
93
|
-
fingerprint?: CloudFingerprintPreference;
|
|
94
|
-
browserProfile?: CloudBrowserProfileLaunchPreference;
|
|
95
|
-
}
|
|
96
|
-
interface CloudSessionCreateRequest {
|
|
97
|
-
cloudSessionContractVersion: CloudSessionContractVersion;
|
|
98
|
-
sourceType: 'local-cloud';
|
|
99
|
-
clientSessionHint: string;
|
|
100
|
-
localRunId: string;
|
|
101
|
-
name?: string;
|
|
102
|
-
model?: string;
|
|
103
|
-
launchContext?: Record<string, unknown>;
|
|
104
|
-
launchConfig?: CloudSessionLaunchConfig;
|
|
105
|
-
}
|
|
106
|
-
interface CloudSessionSummary {
|
|
107
|
-
sessionId: string;
|
|
108
|
-
workspaceId: string;
|
|
109
|
-
state: CloudSessionStatus;
|
|
110
|
-
createdAt: number;
|
|
111
|
-
sourceType: CloudSessionSourceType;
|
|
112
|
-
sourceRef?: string;
|
|
113
|
-
label?: string;
|
|
114
|
-
}
|
|
115
|
-
interface CloudSessionCreateResponse {
|
|
116
|
-
sessionId: string;
|
|
117
|
-
actionWsUrl: string;
|
|
118
|
-
cdpWsUrl: string;
|
|
119
|
-
actionToken: string;
|
|
120
|
-
cdpToken: string;
|
|
121
|
-
expiresAt?: number;
|
|
122
|
-
cloudSessionUrl: string;
|
|
123
|
-
cloudSession: CloudSessionSummary;
|
|
124
|
-
}
|
|
125
|
-
interface CloudSelectorCacheImportEntry {
|
|
126
|
-
namespace: string;
|
|
127
|
-
siteOrigin: string;
|
|
128
|
-
method: string;
|
|
129
|
-
descriptionHash: string;
|
|
130
|
-
path: unknown;
|
|
131
|
-
schemaHash?: string;
|
|
132
|
-
createdAt: number;
|
|
133
|
-
updatedAt: number;
|
|
134
|
-
}
|
|
135
|
-
interface CloudSelectorCacheImportRequest {
|
|
136
|
-
entries: CloudSelectorCacheImportEntry[];
|
|
137
|
-
}
|
|
138
|
-
interface CloudSelectorCacheImportResponse {
|
|
139
|
-
imported: number;
|
|
140
|
-
inserted: number;
|
|
141
|
-
updated: number;
|
|
142
|
-
skipped: number;
|
|
143
|
-
}
|
|
144
|
-
interface CloudActionRequest {
|
|
145
|
-
id: number;
|
|
146
|
-
method: CloudActionMethod;
|
|
147
|
-
args: Record<string, unknown>;
|
|
148
|
-
sessionId: string;
|
|
149
|
-
token: string;
|
|
150
|
-
}
|
|
151
|
-
interface CloudActionSuccess {
|
|
152
|
-
id: number;
|
|
153
|
-
ok: true;
|
|
154
|
-
result: unknown;
|
|
155
|
-
}
|
|
156
|
-
interface CloudActionFailure {
|
|
157
|
-
id: number;
|
|
158
|
-
ok: false;
|
|
159
|
-
error: string;
|
|
160
|
-
code: CloudErrorCode;
|
|
161
|
-
details?: CloudActionFailureDetails;
|
|
162
|
-
}
|
|
163
|
-
type CloudActionResponse = CloudActionSuccess | CloudActionFailure;
|
|
164
|
-
interface CloudActionFailureDetails {
|
|
165
|
-
actionFailure?: ActionFailure;
|
|
166
|
-
}
|
|
167
|
-
interface BrowserProfileDescriptor {
|
|
168
|
-
profileId: string;
|
|
169
|
-
teamId: string;
|
|
170
|
-
ownerUserId: string;
|
|
171
|
-
name: string;
|
|
172
|
-
status: BrowserProfileStatus;
|
|
173
|
-
proxyPolicy: BrowserProfileProxyPolicy;
|
|
174
|
-
stickyProxyId?: string;
|
|
175
|
-
proxyCountryCode?: string;
|
|
176
|
-
proxyRegion?: string;
|
|
177
|
-
proxyCity?: string;
|
|
178
|
-
fingerprintMode: CloudFingerprintMode;
|
|
179
|
-
fingerprintHash?: string;
|
|
180
|
-
activeSessionId?: string;
|
|
181
|
-
lastSessionId?: string;
|
|
182
|
-
lastLaunchedAt?: number;
|
|
183
|
-
latestRevision?: number;
|
|
184
|
-
latestStorageId?: string;
|
|
185
|
-
latestSizeBytes?: number;
|
|
186
|
-
latestArchiveSha256?: string;
|
|
187
|
-
latestArchiveFormat?: BrowserProfileArchiveFormat;
|
|
188
|
-
createdAt: number;
|
|
189
|
-
updatedAt: number;
|
|
190
|
-
lastError?: string;
|
|
191
|
-
}
|
|
192
|
-
interface BrowserProfileListResponse {
|
|
193
|
-
profiles: BrowserProfileDescriptor[];
|
|
194
|
-
nextCursor?: string;
|
|
195
|
-
}
|
|
196
|
-
interface BrowserProfileCreateRequest {
|
|
197
|
-
name: string;
|
|
198
|
-
proxy?: {
|
|
199
|
-
proxyId?: string;
|
|
200
|
-
countryCode?: string;
|
|
201
|
-
region?: string;
|
|
202
|
-
city?: string;
|
|
203
|
-
};
|
|
204
|
-
fingerprint?: {
|
|
205
|
-
mode?: CloudFingerprintMode;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
declare function isCloudActionMethod(value: unknown): value is CloudActionMethod;
|
|
209
|
-
declare function isCloudErrorCode(value: unknown): value is CloudErrorCode;
|
|
210
|
-
declare function isCloudSessionSourceType(value: unknown): value is CloudSessionSourceType;
|
|
211
|
-
declare function isCloudSessionStatus(value: unknown): value is CloudSessionStatus;
|
|
212
|
-
|
|
213
|
-
interface BrowserProfileListRequest {
|
|
214
|
-
cursor?: string;
|
|
215
|
-
limit?: number;
|
|
216
|
-
status?: BrowserProfileStatus;
|
|
217
|
-
}
|
|
218
|
-
declare class BrowserProfileClient {
|
|
219
|
-
private readonly baseUrl;
|
|
220
|
-
private readonly key;
|
|
221
|
-
private readonly authScheme;
|
|
222
|
-
constructor(baseUrl: string, key: string, authScheme?: OpensteerAuthScheme);
|
|
223
|
-
list(request?: BrowserProfileListRequest): Promise<BrowserProfileListResponse>;
|
|
224
|
-
get(profileId: string): Promise<BrowserProfileDescriptor>;
|
|
225
|
-
create(request: BrowserProfileCreateRequest): Promise<BrowserProfileDescriptor>;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export { type ActionFailure as A, type BrowserProfileStatus as B, type CloudErrorCode as C, type CloudFingerprintMode as D, type CloudFingerprintPreference as E, type CloudGeolocation as F, type CloudProxyMode as G, type CloudProxyPreference as H, type CloudProxyProtocol as I, type CloudSessionContractVersion as J, type CloudSessionLaunchConfig as K, type CloudSessionSourceType as L, type CloudSessionStatus as M, type CloudSessionSummary as N, type CloudSessionVisibilityScope as O, type CloudViewport as P, cloudActionMethods as Q, cloudErrorCodes as R, cloudSessionContractVersion as S, cloudSessionSourceTypes as T, cloudSessionStatuses as U, isCloudActionMethod as V, isCloudErrorCode as W, isCloudSessionSourceType as X, isCloudSessionStatus as Y, type BrowserProfileListRequest as a, type BrowserProfileListResponse as b, type BrowserProfileCreateRequest as c, type BrowserProfileDescriptor as d, type ActionFailureCode as e, type CloudActionFailureDetails as f, type CloudSessionCreateRequest as g, type CloudSessionCreateResponse as h, type CloudSelectorCacheImportRequest as i, type CloudSelectorCacheImportResponse as j, type CloudActionMethod as k, type CloudSelectorCacheImportEntry as l, type ActionFailureBlocker as m, type ActionFailureClassificationSource as n, type ActionFailureDetails as o, type BrowserProfileArchiveFormat as p, BrowserProfileClient as q, type BrowserProfileProxyPolicy as r, type CloudActionFailure as s, type CloudActionRequest as t, type CloudActionResponse as u, type CloudActionSuccess as v, type CloudBrowserContextConfig as w, type CloudBrowserExtensionConfig as x, type CloudBrowserLaunchConfig as y, type CloudBrowserProfileLaunchPreference as z };
|