opensteer 0.6.7 → 0.6.9

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.
@@ -1,168 +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
- type CloudActionMethod = 'goto' | 'snapshot' | 'state' | 'click' | 'dblclick' | 'rightclick' | 'hover' | 'input' | 'select' | 'scroll' | 'tabs' | 'newTab' | 'switchTab' | 'closeTab' | 'getCookies' | 'setCookie' | 'clearCookies' | 'pressKey' | 'type' | 'getElementText' | 'getElementValue' | 'getElementAttributes' | 'getElementBoundingBox' | 'getHtml' | 'getTitle' | 'waitForText' | 'extract' | 'extractFromPlan' | 'clearCache' | 'uploadFile' | 'exportCookies' | 'importCookies' | 'screenshot';
25
- type CloudErrorCode = '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';
26
- declare const cloudSessionContractVersion: "v3";
27
- type CloudSessionContractVersion = typeof cloudSessionContractVersion;
28
- type CloudSessionSourceType = 'agent-thread' | 'agent-run' | 'local-cloud' | 'manual';
29
- interface CloudBrowserProfileLaunchPreference {
30
- profileId: string;
31
- reuseIfActive?: boolean;
32
- }
33
- interface CloudSessionLaunchConfig {
34
- browserProfile?: CloudBrowserProfileLaunchPreference;
35
- }
36
- interface CloudSessionCreateRequest {
37
- cloudSessionContractVersion: CloudSessionContractVersion;
38
- sourceType: 'local-cloud';
39
- clientSessionHint: string;
40
- localRunId: string;
41
- name?: string;
42
- model?: string;
43
- launchContext?: Record<string, unknown>;
44
- launchConfig?: CloudSessionLaunchConfig;
45
- }
46
- interface CloudSessionSummary {
47
- sessionId: string;
48
- workspaceId: string;
49
- state: string;
50
- createdAt: number;
51
- sourceType: CloudSessionSourceType;
52
- sourceRef?: string;
53
- label?: string;
54
- }
55
- interface CloudSessionCreateResponse {
56
- sessionId: string;
57
- actionWsUrl: string;
58
- cdpWsUrl: string;
59
- actionToken: string;
60
- cdpToken: string;
61
- expiresAt?: number;
62
- cloudSessionUrl: string;
63
- cloudSession: CloudSessionSummary;
64
- }
65
- interface CloudSelectorCacheImportEntry {
66
- namespace: string;
67
- siteOrigin: string;
68
- method: string;
69
- descriptionHash: string;
70
- path: unknown;
71
- schemaHash?: string;
72
- createdAt: number;
73
- updatedAt: number;
74
- }
75
- interface CloudSelectorCacheImportRequest {
76
- entries: CloudSelectorCacheImportEntry[];
77
- }
78
- interface CloudSelectorCacheImportResponse {
79
- imported: number;
80
- inserted: number;
81
- updated: number;
82
- skipped: number;
83
- }
84
- interface CloudActionRequest {
85
- id: number;
86
- method: CloudActionMethod;
87
- args: Record<string, unknown>;
88
- sessionId: string;
89
- token: string;
90
- }
91
- interface CloudActionSuccess {
92
- id: number;
93
- ok: true;
94
- result: unknown;
95
- }
96
- interface CloudActionFailure {
97
- id: number;
98
- ok: false;
99
- error: string;
100
- code: CloudErrorCode;
101
- details?: CloudActionFailureDetails;
102
- }
103
- type CloudActionResponse = CloudActionSuccess | CloudActionFailure;
104
- interface CloudActionFailureDetails {
105
- actionFailure?: ActionFailure;
106
- }
107
- type BrowserProfileStatus = 'active' | 'archived' | 'error';
108
- type BrowserProfileProxyPolicy = 'strict_sticky';
109
- type CloudFingerprintMode = 'off' | 'auto';
110
- type BrowserProfileArchiveFormat = 'tar.gz';
111
- interface BrowserProfileDescriptor {
112
- profileId: string;
113
- teamId: string;
114
- ownerUserId: string;
115
- name: string;
116
- status: BrowserProfileStatus;
117
- proxyPolicy: BrowserProfileProxyPolicy;
118
- stickyProxyId?: string;
119
- proxyCountryCode?: string;
120
- proxyRegion?: string;
121
- proxyCity?: string;
122
- fingerprintMode: CloudFingerprintMode;
123
- fingerprintHash?: string;
124
- activeSessionId?: string;
125
- lastSessionId?: string;
126
- lastLaunchedAt?: number;
127
- latestRevision?: number;
128
- latestStorageId?: string;
129
- latestSizeBytes?: number;
130
- latestArchiveSha256?: string;
131
- latestArchiveFormat?: BrowserProfileArchiveFormat;
132
- createdAt: number;
133
- updatedAt: number;
134
- lastError?: string;
135
- }
136
- interface BrowserProfileListResponse {
137
- profiles: BrowserProfileDescriptor[];
138
- nextCursor?: string;
139
- }
140
- interface BrowserProfileCreateRequest {
141
- name: string;
142
- proxy?: {
143
- proxyId?: string;
144
- countryCode?: string;
145
- region?: string;
146
- city?: string;
147
- };
148
- fingerprint?: {
149
- mode?: CloudFingerprintMode;
150
- };
151
- }
152
-
153
- interface BrowserProfileListRequest {
154
- cursor?: string;
155
- limit?: number;
156
- status?: BrowserProfileStatus;
157
- }
158
- declare class BrowserProfileClient {
159
- private readonly baseUrl;
160
- private readonly key;
161
- private readonly authScheme;
162
- constructor(baseUrl: string, key: string, authScheme?: OpensteerAuthScheme);
163
- list(request?: BrowserProfileListRequest): Promise<BrowserProfileListResponse>;
164
- get(profileId: string): Promise<BrowserProfileDescriptor>;
165
- create(request: BrowserProfileCreateRequest): Promise<BrowserProfileDescriptor>;
166
- }
167
-
168
- export { type ActionFailure as A, type BrowserProfileStatus as B, type CloudErrorCode as C, type CloudSessionSourceType as D, type CloudSessionSummary as E, cloudSessionContractVersion as F, 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 CloudBrowserProfileLaunchPreference as w, type CloudFingerprintMode as x, type CloudSessionContractVersion as y, type CloudSessionLaunchConfig as z };