@burdenoff/ui-engine 2026.1127.5 → 2026.1129.2
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 +53 -4
- package/dist/analyze/messages.d.ts +7 -0
- package/dist/analyze/rules/heal-consequential.d.ts +2 -0
- package/dist/analyze/rules/popup-handler-loop.d.ts +2 -0
- package/dist/analyze/types.d.ts +24 -1
- package/dist/analyze.js +1 -1
- package/dist/dom-runtime.iife.js +1 -1
- package/dist/dom-runtime.js +2 -2
- package/dist/drivers.js +9 -7
- package/dist/heal/answer.d.ts +26 -0
- package/dist/heal/consequence.d.ts +74 -0
- package/dist/heal/index.d.ts +19 -0
- package/dist/heal/modes.d.ts +25 -0
- package/dist/heal/popup-limits.d.ts +11 -0
- package/dist/heal/popup.d.ts +48 -0
- package/dist/heal/question.d.ts +41 -0
- package/dist/heal/target-from-node.d.ts +9 -0
- package/dist/heal/types.d.ts +134 -0
- package/dist/heal/verify-rules.d.ts +19 -0
- package/dist/heal/verify.d.ts +52 -0
- package/dist/heal.d.ts +2 -0
- package/dist/heal.js +106 -0
- package/dist/index-20bbwwc9.js +37 -0
- package/dist/{index-xner4tgb.js → index-5cffktzd.js} +481 -3
- package/dist/index-6h7ah1dw.js +328 -0
- package/dist/{index-8w0f6rsz.js → index-6kva2gvd.js} +3 -3
- package/dist/{index-ct2xctrq.js → index-70vm0qz8.js} +2 -2
- package/dist/{index-21hvbvx1.js → index-8w31tpfq.js} +21 -8
- package/dist/{index-r2a9rftv.js → index-eff47v1g.js} +424 -17
- package/dist/{index-9s5nphx0.js → index-hw5npwsv.js} +1 -37
- package/dist/{index-ycs2bz1a.js → index-mhv6a02p.js} +11 -166
- package/dist/index-p5823rpv.js +0 -0
- package/dist/{index-5k26keah.js → index-qg9yfr7r.js} +16 -67
- package/dist/{index-c88tvyj1.js → index-qmv3ar39.js} +1 -1
- package/dist/index-t55wvhvh.js +229 -0
- package/dist/{index-77pcz6n3.js → index-vnv9tp11.js} +4 -2
- package/dist/index-w9jc25y9.js +306 -0
- package/dist/{index-s7qdecev.js → index-xdtanv9b.js} +358 -4
- package/dist/{index-vg8r40y7.js → index-yc0jgph6.js} +7 -0
- package/dist/index-zhbwhdya.js +407 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +142 -24
- package/dist/interpret/driver.d.ts +14 -0
- package/dist/interpret/errors.d.ts +11 -2
- package/dist/interpret/events.d.ts +4 -0
- package/dist/interpret/run.d.ts +33 -0
- package/dist/interpret.js +5 -4
- package/dist/script/adapters/from-computer-use.d.ts +124 -0
- package/dist/script/index.d.ts +1 -0
- package/dist/script.js +28 -9
- package/dist/target/index.d.ts +2 -0
- package/dist/target/roles.d.ts +11 -0
- package/dist/target/snapshot-mask.d.ts +49 -0
- package/dist/target/snapshot-tree.d.ts +65 -0
- package/dist/target/snapshot-url.d.ts +6 -0
- package/dist/target/snapshot.d.ts +1 -6
- package/dist/target.js +55 -13
- package/dist/testing.js +2 -2
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
UI_EXPRESSION_ARITY2,
|
|
50
50
|
parseUiScript2,
|
|
51
51
|
safeParseUiScript2
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-qmv3ar39.js";
|
|
53
53
|
import {
|
|
54
54
|
UI_SCRIPT_SCHEMA_HASH2,
|
|
55
55
|
schemaHashOf2,
|
|
@@ -61,8 +61,34 @@ import {
|
|
|
61
61
|
targetFromPlaywrightSelector2,
|
|
62
62
|
fromRemoteBrowserSteps2,
|
|
63
63
|
fromRecording2,
|
|
64
|
-
toRecording2
|
|
65
|
-
|
|
64
|
+
toRecording2,
|
|
65
|
+
COMPUTER_USE_ACTIONS2,
|
|
66
|
+
MAX_COMPUTER_USE_ACTIONS2,
|
|
67
|
+
COMPUTER_USE_MAX_WAIT_MS2,
|
|
68
|
+
COMPUTER_USE_DEFAULT_WAIT_MS2,
|
|
69
|
+
DEFAULT_LOGIN_SECRET_REFS2,
|
|
70
|
+
COMPUTER_USE_SKIP_REASONS2,
|
|
71
|
+
targetFromUiFingerprint2,
|
|
72
|
+
scriptFromComputerUseActions2
|
|
73
|
+
} from "./index-5cffktzd.js";
|
|
74
|
+
import {
|
|
75
|
+
UI_HEAL_MODES2,
|
|
76
|
+
UI_HEAL_MODE_RANK2,
|
|
77
|
+
UI_CONSEQUENCES2,
|
|
78
|
+
UI_HEAL_FAILURE_CODES2,
|
|
79
|
+
UI_HEAL_CHECK_REASONS2,
|
|
80
|
+
parseHealMode2,
|
|
81
|
+
capHealMode2,
|
|
82
|
+
decideHeal2,
|
|
83
|
+
POPUP_HANDLER_ACTIONS2,
|
|
84
|
+
popupHandlerScript2,
|
|
85
|
+
parseUiPopupHandler2,
|
|
86
|
+
analyzeUiPopupHandler2,
|
|
87
|
+
usablePopupHandlers2,
|
|
88
|
+
matchesUrlPattern2,
|
|
89
|
+
HEAL_POSITION_TOLERANCE_PX2,
|
|
90
|
+
verifyHealCandidate2
|
|
91
|
+
} from "./index-w9jc25y9.js";
|
|
66
92
|
import {
|
|
67
93
|
MAX_CALL_DEPTH2,
|
|
68
94
|
COMPILED_NAME_PREFIX2,
|
|
@@ -70,20 +96,16 @@ import {
|
|
|
70
96
|
stripBreakpoints2,
|
|
71
97
|
inlineCalls2,
|
|
72
98
|
compileUiScript2
|
|
73
|
-
} from "./index-
|
|
99
|
+
} from "./index-6kva2gvd.js";
|
|
74
100
|
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
UI_ANALYZER_RULE_IDS2,
|
|
84
|
-
UI_ANALYZER_DEFAULT_SEVERITY2,
|
|
85
|
-
analyzeUiScript2
|
|
86
|
-
} from "./index-s7qdecev.js";
|
|
101
|
+
MAX_HEAL_QUESTION_NODES2,
|
|
102
|
+
MAX_HEAL_NODE_NAME2,
|
|
103
|
+
HEAL_SYSTEM_PROMPT2,
|
|
104
|
+
buildHealQuestion2,
|
|
105
|
+
targetFromSnapshotNode2,
|
|
106
|
+
MAX_HEAL_ANSWER_LENGTH2,
|
|
107
|
+
parseHealAnswer2
|
|
108
|
+
} from "./index-6h7ah1dw.js";
|
|
87
109
|
import {
|
|
88
110
|
MAX_VALUE_TEXT2,
|
|
89
111
|
MAX_VALUE_ITEMS2,
|
|
@@ -106,7 +128,35 @@ import {
|
|
|
106
128
|
MAX_PAGE_TEXT2,
|
|
107
129
|
DEFAULT_LIST_ITEMS2,
|
|
108
130
|
runUiScript2
|
|
109
|
-
} from "./index-
|
|
131
|
+
} from "./index-eff47v1g.js";
|
|
132
|
+
import {
|
|
133
|
+
MAX_HEAL_KEYWORDS2,
|
|
134
|
+
MAX_HEAL_KEYWORD_LENGTH2,
|
|
135
|
+
CONSEQUENCE_KEYWORDS2,
|
|
136
|
+
keywordWords2,
|
|
137
|
+
usableKeywords2,
|
|
138
|
+
classifyConsequence2,
|
|
139
|
+
elementInfoFromTarget2,
|
|
140
|
+
stepNumber2,
|
|
141
|
+
UI_SCRIPT_PROBLEM_KEY_PREFIX2,
|
|
142
|
+
UI_SCRIPT_PROBLEM_MESSAGES2,
|
|
143
|
+
problemMessageKey2,
|
|
144
|
+
problemMessage2,
|
|
145
|
+
HEALABLE_ACTIONS2,
|
|
146
|
+
compatibleRoles2,
|
|
147
|
+
VALUE_ACTIONS2,
|
|
148
|
+
MAX_POPUP_HANDLERS_PER_STEP2,
|
|
149
|
+
MAX_POPUP_HANDLERS_PER_APPLICATION2,
|
|
150
|
+
MAX_POPUP_HANDLER_STEPS2,
|
|
151
|
+
MAX_POPUP_URL_PATTERN2,
|
|
152
|
+
POPUP_HANDLER_STEP_WAIT_MS2,
|
|
153
|
+
UI_ANALYZER_RULES2,
|
|
154
|
+
UI_PROBLEM_SEVERITIES2,
|
|
155
|
+
UI_ANALYZER_RULE_GROUPS2,
|
|
156
|
+
UI_ANALYZER_RULE_IDS2,
|
|
157
|
+
UI_ANALYZER_DEFAULT_SEVERITY2,
|
|
158
|
+
analyzeUiScript2
|
|
159
|
+
} from "./index-xdtanv9b.js";
|
|
110
160
|
import {
|
|
111
161
|
UI_ERROR_FAMILIES2,
|
|
112
162
|
UI_ERROR_CODES2,
|
|
@@ -118,7 +168,7 @@ import {
|
|
|
118
168
|
UiDriverError2,
|
|
119
169
|
realClock2,
|
|
120
170
|
createVirtualClock2
|
|
121
|
-
} from "./index-
|
|
171
|
+
} from "./index-yc0jgph6.js";
|
|
122
172
|
import {
|
|
123
173
|
UI_SCRIPT_STEP_KEY_PREFIX2,
|
|
124
174
|
UI_SCRIPT_STEP_MESSAGES2,
|
|
@@ -127,6 +177,12 @@ import {
|
|
|
127
177
|
describeExpression2,
|
|
128
178
|
describeStep2
|
|
129
179
|
} from "./index-gvavb597.js";
|
|
180
|
+
import {
|
|
181
|
+
CAPABILITY_IDS2,
|
|
182
|
+
SCRIPT_CAPABILITY2,
|
|
183
|
+
requiredCapabilities2,
|
|
184
|
+
missingCapabilities2
|
|
185
|
+
} from "./index-hw5npwsv.js";
|
|
130
186
|
import {
|
|
131
187
|
UI_SCRIPT_VERSION2,
|
|
132
188
|
MAX_SCRIPT_STEPS2,
|
|
@@ -159,12 +215,8 @@ import {
|
|
|
159
215
|
LEGACY_MAX_BROWSER_STEPS2,
|
|
160
216
|
LEGACY_MAX_STEPS_BYTES2,
|
|
161
217
|
LEGACY_MAX_STEP_TIMEOUT_MS2,
|
|
162
|
-
jsonByteLength2
|
|
163
|
-
|
|
164
|
-
SCRIPT_CAPABILITY2,
|
|
165
|
-
requiredCapabilities2,
|
|
166
|
-
missingCapabilities2
|
|
167
|
-
} from "./index-9s5nphx0.js";
|
|
218
|
+
jsonByteLength2
|
|
219
|
+
} from "./index-20bbwwc9.js";
|
|
168
220
|
import {
|
|
169
221
|
UI_EXPRESSION_OPS2,
|
|
170
222
|
UI_ANCHOR_RELATIONS2,
|
|
@@ -182,6 +234,17 @@ import {
|
|
|
182
234
|
stepExpressions2,
|
|
183
235
|
visitExpression2
|
|
184
236
|
} from "./index-g7724awk.js";
|
|
237
|
+
import {
|
|
238
|
+
SNAPSHOT_ROOT_PATH2,
|
|
239
|
+
MAX_SNAPSHOT_PATH_LENGTH2,
|
|
240
|
+
isSnapshotPath2,
|
|
241
|
+
walkSnapshot2,
|
|
242
|
+
snapshotNodeAt2,
|
|
243
|
+
indexSnapshot2,
|
|
244
|
+
MASKED_MARKER2,
|
|
245
|
+
MAX_MASKED_PATHS2,
|
|
246
|
+
maskSnapshot2
|
|
247
|
+
} from "./index-zhbwhdya.js";
|
|
185
248
|
import {
|
|
186
249
|
REDACTED2,
|
|
187
250
|
redactCredentials2
|
|
@@ -190,17 +253,28 @@ export {
|
|
|
190
253
|
BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
|
|
191
254
|
CAPABILITY_IDS2 as CAPABILITY_IDS,
|
|
192
255
|
COMPILED_NAME_PREFIX2 as COMPILED_NAME_PREFIX,
|
|
256
|
+
COMPUTER_USE_ACTIONS2 as COMPUTER_USE_ACTIONS,
|
|
257
|
+
COMPUTER_USE_DEFAULT_WAIT_MS2 as COMPUTER_USE_DEFAULT_WAIT_MS,
|
|
258
|
+
COMPUTER_USE_MAX_WAIT_MS2 as COMPUTER_USE_MAX_WAIT_MS,
|
|
259
|
+
COMPUTER_USE_SKIP_REASONS2 as COMPUTER_USE_SKIP_REASONS,
|
|
260
|
+
CONSEQUENCE_KEYWORDS2 as CONSEQUENCE_KEYWORDS,
|
|
193
261
|
DEFAULT_FIRST_WAIT_MS2 as DEFAULT_FIRST_WAIT_MS,
|
|
194
262
|
DEFAULT_LIST_ITEMS2 as DEFAULT_LIST_ITEMS,
|
|
263
|
+
DEFAULT_LOGIN_SECRET_REFS2 as DEFAULT_LOGIN_SECRET_REFS,
|
|
195
264
|
DEFAULT_MAX_EVENTS2 as DEFAULT_MAX_EVENTS,
|
|
196
265
|
DEFAULT_POLL_INTERVAL_MS2 as DEFAULT_POLL_INTERVAL_MS,
|
|
197
266
|
DEFAULT_RETRY_DELAY_MS2 as DEFAULT_RETRY_DELAY_MS,
|
|
198
267
|
DEFAULT_WAIT_MS2 as DEFAULT_WAIT_MS,
|
|
199
268
|
ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
|
|
269
|
+
HEALABLE_ACTIONS2 as HEALABLE_ACTIONS,
|
|
270
|
+
HEAL_POSITION_TOLERANCE_PX2 as HEAL_POSITION_TOLERANCE_PX,
|
|
271
|
+
HEAL_SYSTEM_PROMPT2 as HEAL_SYSTEM_PROMPT,
|
|
200
272
|
LEGACY_MAX_BROWSER_STEPS2 as LEGACY_MAX_BROWSER_STEPS,
|
|
201
273
|
LEGACY_MAX_STEPS_BYTES2 as LEGACY_MAX_STEPS_BYTES,
|
|
202
274
|
LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
|
|
275
|
+
MASKED_MARKER2 as MASKED_MARKER,
|
|
203
276
|
MAX_CALL_DEPTH2 as MAX_CALL_DEPTH,
|
|
277
|
+
MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
|
|
204
278
|
MAX_DELAY_MS2 as MAX_DELAY_MS,
|
|
205
279
|
MAX_EVENTS_LIMIT2 as MAX_EVENTS_LIMIT,
|
|
206
280
|
MAX_EVENT_MESSAGE2 as MAX_EVENT_MESSAGE,
|
|
@@ -209,15 +283,25 @@ export {
|
|
|
209
283
|
MAX_EXTRACT_FIELDS2 as MAX_EXTRACT_FIELDS,
|
|
210
284
|
MAX_FLOW_DEPTH2 as MAX_FLOW_DEPTH,
|
|
211
285
|
MAX_FRAME_DEPTH2 as MAX_FRAME_DEPTH,
|
|
286
|
+
MAX_HEAL_ANSWER_LENGTH2 as MAX_HEAL_ANSWER_LENGTH,
|
|
287
|
+
MAX_HEAL_KEYWORDS2 as MAX_HEAL_KEYWORDS,
|
|
288
|
+
MAX_HEAL_KEYWORD_LENGTH2 as MAX_HEAL_KEYWORD_LENGTH,
|
|
289
|
+
MAX_HEAL_NODE_NAME2 as MAX_HEAL_NODE_NAME,
|
|
290
|
+
MAX_HEAL_QUESTION_NODES2 as MAX_HEAL_QUESTION_NODES,
|
|
212
291
|
MAX_INTENT_LENGTH2 as MAX_INTENT_LENGTH,
|
|
213
292
|
MAX_KEYS2 as MAX_KEYS,
|
|
214
293
|
MAX_LABEL_LENGTH2 as MAX_LABEL_LENGTH,
|
|
215
294
|
MAX_LIST_ITEMS2 as MAX_LIST_ITEMS,
|
|
216
295
|
MAX_LIST_PAGES2 as MAX_LIST_PAGES,
|
|
217
296
|
MAX_LOOP_ITERATIONS2 as MAX_LOOP_ITERATIONS,
|
|
297
|
+
MAX_MASKED_PATHS2 as MAX_MASKED_PATHS,
|
|
218
298
|
MAX_NAME_LENGTH2 as MAX_NAME_LENGTH,
|
|
219
299
|
MAX_OPERATOR_ARGS2 as MAX_OPERATOR_ARGS,
|
|
220
300
|
MAX_PAGE_TEXT2 as MAX_PAGE_TEXT,
|
|
301
|
+
MAX_POPUP_HANDLERS_PER_APPLICATION2 as MAX_POPUP_HANDLERS_PER_APPLICATION,
|
|
302
|
+
MAX_POPUP_HANDLERS_PER_STEP2 as MAX_POPUP_HANDLERS_PER_STEP,
|
|
303
|
+
MAX_POPUP_HANDLER_STEPS2 as MAX_POPUP_HANDLER_STEPS,
|
|
304
|
+
MAX_POPUP_URL_PATTERN2 as MAX_POPUP_URL_PATTERN,
|
|
221
305
|
MAX_RECORDED_STEPS2 as MAX_RECORDED_STEPS,
|
|
222
306
|
MAX_RETRY_ATTEMPTS2 as MAX_RETRY_ATTEMPTS,
|
|
223
307
|
MAX_SCRIPT_BYTES2 as MAX_SCRIPT_BYTES,
|
|
@@ -229,6 +313,7 @@ export {
|
|
|
229
313
|
MAX_SELECTOR_LENGTH2 as MAX_SELECTOR_LENGTH,
|
|
230
314
|
MAX_SELECT_VALUES2 as MAX_SELECT_VALUES,
|
|
231
315
|
MAX_SNAPSHOT_NODES2 as MAX_SNAPSHOT_NODES,
|
|
316
|
+
MAX_SNAPSHOT_PATH_LENGTH2 as MAX_SNAPSHOT_PATH_LENGTH,
|
|
232
317
|
MAX_STEP_LOG_ENTRIES2 as MAX_STEP_LOG_ENTRIES,
|
|
233
318
|
MAX_STEP_TIMEOUT_MS2 as MAX_STEP_TIMEOUT_MS,
|
|
234
319
|
MAX_TARGET_METHODS2 as MAX_TARGET_METHODS,
|
|
@@ -237,6 +322,8 @@ export {
|
|
|
237
322
|
MAX_VALUE_ITEMS2 as MAX_VALUE_ITEMS,
|
|
238
323
|
MAX_VALUE_TEXT2 as MAX_VALUE_TEXT,
|
|
239
324
|
NAME_PATTERN2 as NAME_PATTERN,
|
|
325
|
+
POPUP_HANDLER_ACTIONS2 as POPUP_HANDLER_ACTIONS,
|
|
326
|
+
POPUP_HANDLER_STEP_WAIT_MS2 as POPUP_HANDLER_STEP_WAIT_MS,
|
|
240
327
|
RECORDING_ACTION_OF2 as RECORDING_ACTION_OF,
|
|
241
328
|
RECORDING_VERSION2 as RECORDING_VERSION,
|
|
242
329
|
REDACTED2 as REDACTED,
|
|
@@ -244,12 +331,14 @@ export {
|
|
|
244
331
|
RecordingError2 as RecordingError,
|
|
245
332
|
SAVED_STEP_AUTHORS2 as SAVED_STEP_AUTHORS,
|
|
246
333
|
SCRIPT_CAPABILITY2 as SCRIPT_CAPABILITY,
|
|
334
|
+
SNAPSHOT_ROOT_PATH2 as SNAPSHOT_ROOT_PATH,
|
|
247
335
|
STEP_ID_PATTERN2 as STEP_ID_PATTERN,
|
|
248
336
|
UI_ANALYZER_DEFAULT_SEVERITY2 as UI_ANALYZER_DEFAULT_SEVERITY,
|
|
249
337
|
UI_ANALYZER_RULES2 as UI_ANALYZER_RULES,
|
|
250
338
|
UI_ANALYZER_RULE_GROUPS2 as UI_ANALYZER_RULE_GROUPS,
|
|
251
339
|
UI_ANALYZER_RULE_IDS2 as UI_ANALYZER_RULE_IDS,
|
|
252
340
|
UI_ANCHOR_RELATIONS2 as UI_ANCHOR_RELATIONS,
|
|
341
|
+
UI_CONSEQUENCES2 as UI_CONSEQUENCES,
|
|
253
342
|
UI_DESKTOP_ACTIONS2 as UI_DESKTOP_ACTIONS,
|
|
254
343
|
UI_ERROR_CODES2 as UI_ERROR_CODES,
|
|
255
344
|
UI_ERROR_CODE_LIST2 as UI_ERROR_CODE_LIST,
|
|
@@ -257,6 +346,10 @@ export {
|
|
|
257
346
|
UI_EXPRESSION_ARITY2 as UI_EXPRESSION_ARITY,
|
|
258
347
|
UI_EXPRESSION_OPS2 as UI_EXPRESSION_OPS,
|
|
259
348
|
UI_FLOW_ACTIONS2 as UI_FLOW_ACTIONS,
|
|
349
|
+
UI_HEAL_CHECK_REASONS2 as UI_HEAL_CHECK_REASONS,
|
|
350
|
+
UI_HEAL_FAILURE_CODES2 as UI_HEAL_FAILURE_CODES,
|
|
351
|
+
UI_HEAL_MODES2 as UI_HEAL_MODES,
|
|
352
|
+
UI_HEAL_MODE_RANK2 as UI_HEAL_MODE_RANK,
|
|
260
353
|
UI_PROBLEM_SEVERITIES2 as UI_PROBLEM_SEVERITIES,
|
|
261
354
|
UI_RUN_EVENT_KINDS2 as UI_RUN_EVENT_KINDS,
|
|
262
355
|
UI_SCRIPT_PROBLEM_KEY_PREFIX2 as UI_SCRIPT_PROBLEM_KEY_PREFIX,
|
|
@@ -273,35 +366,52 @@ export {
|
|
|
273
366
|
UiDriverError2 as UiDriverError,
|
|
274
367
|
UiRunError2 as UiRunError,
|
|
275
368
|
UiScriptError2 as UiScriptError,
|
|
369
|
+
VALUE_ACTIONS2 as VALUE_ACTIONS,
|
|
276
370
|
afterReplayCall2 as afterReplayCall,
|
|
371
|
+
analyzeUiPopupHandler2 as analyzeUiPopupHandler,
|
|
277
372
|
analyzeUiScript2 as analyzeUiScript,
|
|
278
373
|
applyPins2 as applyPins,
|
|
374
|
+
buildHealQuestion2 as buildHealQuestion,
|
|
279
375
|
canonicalJson2 as canonicalJson,
|
|
376
|
+
capHealMode2 as capHealMode,
|
|
280
377
|
captureRecording2 as captureRecording,
|
|
281
378
|
childBlocks2 as childBlocks,
|
|
379
|
+
classifyConsequence2 as classifyConsequence,
|
|
380
|
+
compatibleRoles2 as compatibleRoles,
|
|
282
381
|
compileUiScript2 as compileUiScript,
|
|
283
382
|
countSteps2 as countSteps,
|
|
284
383
|
createVirtualClock2 as createVirtualClock,
|
|
384
|
+
decideHeal2 as decideHeal,
|
|
285
385
|
describeExpression2 as describeExpression,
|
|
286
386
|
describeStep2 as describeStep,
|
|
287
387
|
describeTarget2 as describeTarget,
|
|
388
|
+
elementInfoFromTarget2 as elementInfoFromTarget,
|
|
288
389
|
errorFamilyOf2 as errorFamilyOf,
|
|
289
390
|
evaluateExpression2 as evaluateExpression,
|
|
290
391
|
finishFallback2 as finishFallback,
|
|
291
392
|
fromBrowserActionSteps2 as fromBrowserActionSteps,
|
|
292
393
|
fromRecording2 as fromRecording,
|
|
293
394
|
fromRemoteBrowserSteps2 as fromRemoteBrowserSteps,
|
|
395
|
+
indexSnapshot2 as indexSnapshot,
|
|
294
396
|
inlineCalls2 as inlineCalls,
|
|
295
397
|
isRetryableInScript2 as isRetryableInScript,
|
|
296
398
|
isSavedStepAuthor2 as isSavedStepAuthor,
|
|
399
|
+
isSnapshotPath2 as isSnapshotPath,
|
|
297
400
|
isUiErrorCode2 as isUiErrorCode,
|
|
298
401
|
jsonByteLength2 as jsonByteLength,
|
|
402
|
+
keywordWords2 as keywordWords,
|
|
299
403
|
markFallbackAsked2 as markFallbackAsked,
|
|
404
|
+
maskSnapshot2 as maskSnapshot,
|
|
300
405
|
maskUrl2 as maskUrl,
|
|
406
|
+
matchesUrlPattern2 as matchesUrlPattern,
|
|
301
407
|
missingCapabilities2 as missingCapabilities,
|
|
408
|
+
parseHealAnswer2 as parseHealAnswer,
|
|
409
|
+
parseHealMode2 as parseHealMode,
|
|
302
410
|
parseRecording2 as parseRecording,
|
|
411
|
+
parseUiPopupHandler2 as parseUiPopupHandler,
|
|
303
412
|
parseUiScript2 as parseUiScript,
|
|
304
413
|
planReplay2 as planReplay,
|
|
414
|
+
popupHandlerScript2 as popupHandlerScript,
|
|
305
415
|
problemMessage2 as problemMessage,
|
|
306
416
|
problemMessageKey2 as problemMessageKey,
|
|
307
417
|
readPath2 as readPath,
|
|
@@ -319,7 +429,9 @@ export {
|
|
|
319
429
|
runUiScript2 as runUiScript,
|
|
320
430
|
safeParseUiScript2 as safeParseUiScript,
|
|
321
431
|
schemaHashOf2 as schemaHashOf,
|
|
432
|
+
scriptFromComputerUseActions2 as scriptFromComputerUseActions,
|
|
322
433
|
sha256Hex2 as sha256Hex,
|
|
434
|
+
snapshotNodeAt2 as snapshotNodeAt,
|
|
323
435
|
stepAtPath2 as stepAtPath,
|
|
324
436
|
stepExpressions2 as stepExpressions,
|
|
325
437
|
stepMessageKey2 as stepMessageKey,
|
|
@@ -328,6 +440,8 @@ export {
|
|
|
328
440
|
stripBreakpoints2 as stripBreakpoints,
|
|
329
441
|
targetFingerprint2 as targetFingerprint,
|
|
330
442
|
targetFromPlaywrightSelector2 as targetFromPlaywrightSelector,
|
|
443
|
+
targetFromSnapshotNode2 as targetFromSnapshotNode,
|
|
444
|
+
targetFromUiFingerprint2 as targetFromUiFingerprint,
|
|
331
445
|
toBrowserActionSteps2 as toBrowserActionSteps,
|
|
332
446
|
toNumber2 as toNumber,
|
|
333
447
|
toRecording2 as toRecording,
|
|
@@ -343,8 +457,12 @@ export {
|
|
|
343
457
|
uiTargetMethodSchema2 as uiTargetMethodSchema,
|
|
344
458
|
uiTargetRefSchema2 as uiTargetRefSchema,
|
|
345
459
|
uiTargetSchema2 as uiTargetSchema,
|
|
460
|
+
usableKeywords2 as usableKeywords,
|
|
461
|
+
usablePopupHandlers2 as usablePopupHandlers,
|
|
346
462
|
valuesEqual2 as valuesEqual,
|
|
463
|
+
verifyHealCandidate2 as verifyHealCandidate,
|
|
347
464
|
visitExpression2 as visitExpression,
|
|
465
|
+
walkSnapshot2 as walkSnapshot,
|
|
348
466
|
walkSteps2 as walkSteps,
|
|
349
467
|
withFingerprint2 as withFingerprint
|
|
350
468
|
};
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
import type { DomAction, DomActionProblem } from '../dom-runtime/actions.js';
|
|
19
19
|
import type { DomResolution } from '../dom-runtime/runtime.js';
|
|
20
20
|
import type { UiStepAction, UiTarget } from '../script/types.js';
|
|
21
|
+
import type { UiTreeSnapshot } from '../target/snapshot.js';
|
|
21
22
|
import type { WebElementState, WebTargetErrorCode } from '../target/types.js';
|
|
22
23
|
/** Where the interpreter is when it calls the driver. */
|
|
23
24
|
export interface UiStepContext {
|
|
@@ -159,6 +160,19 @@ export interface UiDriver {
|
|
|
159
160
|
target?: UiTarget;
|
|
160
161
|
fullPage?: boolean;
|
|
161
162
|
}, context: UiStepContext): Promise<string | null>;
|
|
163
|
+
/**
|
|
164
|
+
* The page's tree snapshot now (`serializeTreeSnapshot`), for healing (plan
|
|
165
|
+
* P4-06a). The interpreter masks it before it leaves the desk. Absent, or
|
|
166
|
+
* null, means the desk cannot heal.
|
|
167
|
+
*/
|
|
168
|
+
treeSnapshot?(context: UiStepContext): Promise<UiTreeSnapshot | null>;
|
|
169
|
+
/**
|
|
170
|
+
* The origin of the document a frame chain leads to (an empty or absent
|
|
171
|
+
* chain is the top document), or null when the chain cannot be followed. The
|
|
172
|
+
* heal verifier compares origins with it; without it, only identical frame
|
|
173
|
+
* chains count as the same frame.
|
|
174
|
+
*/
|
|
175
|
+
frameOrigin?(frame: readonly string[] | undefined, context: UiStepContext): Promise<string | null>;
|
|
162
176
|
}
|
|
163
177
|
/** Real time. */
|
|
164
178
|
export declare const realClock: UiClock;
|
|
@@ -31,7 +31,8 @@ export interface UiErrorCodeInfo {
|
|
|
31
31
|
/**
|
|
32
32
|
* Every run-time error code, with its family. Spec 05 section 10 lists the
|
|
33
33
|
* first ten; the rest are the engine's own codes for web desks, and
|
|
34
|
-
* `INTERRUPTED` and `STOPPED_BY_USER` come from the contract (README section 7)
|
|
34
|
+
* `INTERRUPTED` and `STOPPED_BY_USER` come from the contract (README section 7),
|
|
35
|
+
* and `HEAL_APPROVAL_REQUIRED` from the phase 4 contract (README section 24).
|
|
35
36
|
*/
|
|
36
37
|
export declare const UI_ERROR_CODES: {
|
|
37
38
|
readonly ELEMENT_NOT_FOUND: {
|
|
@@ -164,6 +165,11 @@ export declare const UI_ERROR_CODES: {
|
|
|
164
165
|
readonly preflight: false;
|
|
165
166
|
readonly meaning: "A person sent STOP to a paused TEST run; the clean-up steps ran";
|
|
166
167
|
};
|
|
168
|
+
readonly HEAL_APPROVAL_REQUIRED: {
|
|
169
|
+
readonly family: "DEPENDENCY";
|
|
170
|
+
readonly preflight: false;
|
|
171
|
+
readonly meaning: "Healing found and checked a new target, but a person must approve it first (heal with approval, an always-ask step or keyword, or a consequential control); the run stops with the candidate in error.heal and the desk parks it for approval. Never retried in the script";
|
|
172
|
+
};
|
|
167
173
|
};
|
|
168
174
|
export type UiErrorCode = keyof typeof UI_ERROR_CODES;
|
|
169
175
|
/** Every error code, in table order. */
|
|
@@ -172,7 +178,10 @@ export declare const UI_ERROR_CODE_LIST: UiErrorCode[];
|
|
|
172
178
|
export declare function isUiErrorCode(value: unknown): value is UiErrorCode;
|
|
173
179
|
/** The node error family of a code. */
|
|
174
180
|
export declare function errorFamilyOf(code: UiErrorCode): UiErrorFamily;
|
|
175
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Whether a failure with this code may be retried by a step `retry` or a retry
|
|
183
|
+
* scope. A heal that needs a person's approval is never retried: it ends the run.
|
|
184
|
+
*/
|
|
176
185
|
export declare function isRetryableInScript(code: UiErrorCode): boolean;
|
|
177
186
|
/** Detail a failure carries: what was looked for and what was found. Plain JSON, never typed values or secrets. */
|
|
178
187
|
export type UiErrorDetail = Readonly<Record<string, unknown>>;
|
|
@@ -55,6 +55,10 @@ export interface UiStepLogEntry {
|
|
|
55
55
|
screenshotFileId?: string;
|
|
56
56
|
/** The short error code of a failed step. */
|
|
57
57
|
error?: UiErrorCode;
|
|
58
|
+
/** The step passed on a target healing found (plan P4-06a). */
|
|
59
|
+
healed?: boolean;
|
|
60
|
+
/** The pop-up handler that cleared the way before the step passed. */
|
|
61
|
+
popupHandlerId?: string;
|
|
58
62
|
}
|
|
59
63
|
/** Numbers, stamps and caps events, and delivers them in order. */
|
|
60
64
|
export declare class EventEmitter {
|
package/dist/interpret/run.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { type UiPopupHandler } from '../heal/popup.js';
|
|
2
|
+
import { type UiHealHook, type UiHealReport, type UiHealSettings } from '../heal/types.js';
|
|
3
|
+
import type { UiTarget } from '../script/types.js';
|
|
1
4
|
import { type UiDriver } from './driver.js';
|
|
2
5
|
import { type UiErrorCode, type UiErrorFamily } from './errors.js';
|
|
3
6
|
import { type UiRunEvent, type UiStepLogEntry } from './events.js';
|
|
@@ -44,6 +47,26 @@ export interface RunUiScriptOptions {
|
|
|
44
47
|
pollIntervalMs?: number;
|
|
45
48
|
/** Skip the clean-up steps after a cancel (a worker shutting down). Absent means they run. */
|
|
46
49
|
skipCleanupOnCancel?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Heals a step whose own target is not found or ambiguous (plan P4-06a).
|
|
52
|
+
* Called at most once per step id per run, after the step's retries and
|
|
53
|
+
* pop-up handlers, with the masked snapshot. Absent means no healing.
|
|
54
|
+
*/
|
|
55
|
+
onTargetNotFound?: UiHealHook;
|
|
56
|
+
/** The node's and workspace's healing settings: always-ask step ids, keyword phrases, extra masked paths. */
|
|
57
|
+
healing?: UiHealSettings;
|
|
58
|
+
/**
|
|
59
|
+
* Pop-up handlers of the application (`workerResolveUiAssets.popupHandlers`).
|
|
60
|
+
* Each is parsed and checked by the `popupHandlerLoop` rule; a handler that
|
|
61
|
+
* fails is not used and is reported in a LOG event. At most 50 are used.
|
|
62
|
+
*/
|
|
63
|
+
popupHandlers?: readonly UiPopupHandler[];
|
|
64
|
+
/**
|
|
65
|
+
* Targets that replace steps' own targets, by step id (an approved heal's
|
|
66
|
+
* rerun, D-P4-11). Each must be a valid target of a step healing repairs;
|
|
67
|
+
* otherwise the run fails with INVALID_SCRIPT before any step runs.
|
|
68
|
+
*/
|
|
69
|
+
targetOverrides?: Readonly<Record<string, UiTarget>>;
|
|
47
70
|
}
|
|
48
71
|
/** Why a run did not succeed. */
|
|
49
72
|
export interface UiRunFailure {
|
|
@@ -52,6 +75,15 @@ export interface UiRunFailure {
|
|
|
52
75
|
message: string;
|
|
53
76
|
stepPath?: string;
|
|
54
77
|
stepId?: string;
|
|
78
|
+
/** What healing did for the failed step, when it was asked (plan P4-06a). */
|
|
79
|
+
heal?: UiHealReport;
|
|
80
|
+
}
|
|
81
|
+
/** The repairs of a run (plan P4-06a); in the result only when there was one. */
|
|
82
|
+
export interface UiRunRepairs {
|
|
83
|
+
/** Steps (distinct step ids) that passed on a healed target. */
|
|
84
|
+
healed: number;
|
|
85
|
+
/** Pop-up handlers that ran and let a step pass. */
|
|
86
|
+
popupsHandled: number;
|
|
55
87
|
}
|
|
56
88
|
export interface UiRunResult {
|
|
57
89
|
status: 'succeeded' | 'failed' | 'cancelled' | 'stopped';
|
|
@@ -72,6 +104,7 @@ export interface UiRunResult {
|
|
|
72
104
|
truncated: boolean;
|
|
73
105
|
};
|
|
74
106
|
durationMs: number;
|
|
107
|
+
repairs?: UiRunRepairs;
|
|
75
108
|
}
|
|
76
109
|
/** Run a UI script on a desk. Never throws for a script problem: the result carries it. */
|
|
77
110
|
export declare function runUiScript(script: unknown, driver: UiDriver, options?: RunUiScriptOptions): Promise<UiRunResult>;
|
package/dist/interpret.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import"./index-cs6acyjn.js";
|
|
2
|
-
import"./index-
|
|
2
|
+
import"./index-qmv3ar39.js";
|
|
3
|
+
import"./index-w9jc25y9.js";
|
|
3
4
|
import {
|
|
4
5
|
MAX_CALL_DEPTH2,
|
|
5
6
|
COMPILED_NAME_PREFIX2,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
stripBreakpoints2,
|
|
8
9
|
inlineCalls2,
|
|
9
10
|
compileUiScript2
|
|
10
|
-
} from "./index-
|
|
11
|
+
} from "./index-6kva2gvd.js";
|
|
11
12
|
import {
|
|
12
13
|
MAX_VALUE_TEXT2,
|
|
13
14
|
MAX_VALUE_ITEMS2,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
MAX_PAGE_TEXT2,
|
|
31
32
|
DEFAULT_LIST_ITEMS2,
|
|
32
33
|
runUiScript2
|
|
33
|
-
} from "./index-
|
|
34
|
+
} from "./index-eff47v1g.js";
|
|
34
35
|
import {
|
|
35
36
|
UI_ERROR_FAMILIES2,
|
|
36
37
|
UI_ERROR_CODES2,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
UiDriverError2,
|
|
43
44
|
realClock2,
|
|
44
45
|
createVirtualClock2
|
|
45
|
-
} from "./index-
|
|
46
|
+
} from "./index-yc0jgph6.js";
|
|
46
47
|
export {
|
|
47
48
|
COMPILED_NAME_PREFIX2 as COMPILED_NAME_PREFIX,
|
|
48
49
|
DEFAULT_FIRST_WAIT_MS2 as DEFAULT_FIRST_WAIT_MS,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { UiScript, UiTarget } from '../types.js';
|
|
2
|
+
/** The computer-use actions the adapter reads (the tool's base and login actions, plus the AI Step tree actions). */
|
|
3
|
+
export declare const COMPUTER_USE_ACTIONS: readonly ["screenshot", "navigate", "click", "double_click", "click_ref", "type", "type_ref", "key", "scroll", "wait", "open_login_page", "type_login_username", "type_login_password"];
|
|
4
|
+
export type ComputerUseAction = (typeof COMPUTER_USE_ACTIONS)[number];
|
|
5
|
+
/**
|
|
6
|
+
* Actions one conversion reads, at most. Screenshots and other skipped actions do not become
|
|
7
|
+
* steps, so this is larger than the script's step limit, which `parseUiScript` enforces on the
|
|
8
|
+
* result (`TOO_MANY_STEPS`).
|
|
9
|
+
*/
|
|
10
|
+
export declare const MAX_COMPUTER_USE_ACTIONS: number;
|
|
11
|
+
/** The longest wait the computer-use tool runs (`computer-use-tool.ts` `MAX_WAIT_MS`); a longer wait is capped. */
|
|
12
|
+
export declare const COMPUTER_USE_MAX_WAIT_MS = 10000;
|
|
13
|
+
/** The wait the computer-use tool runs when the model gives no length. */
|
|
14
|
+
export declare const COMPUTER_USE_DEFAULT_WAIT_MS = 1000;
|
|
15
|
+
/** The secret references `type_login_username` and `type_login_password` become unless the caller names others. */
|
|
16
|
+
export declare const DEFAULT_LOGIN_SECRET_REFS: {
|
|
17
|
+
readonly username: "login:username";
|
|
18
|
+
readonly password: "login:password";
|
|
19
|
+
};
|
|
20
|
+
/** Why an action was not converted. */
|
|
21
|
+
export declare const COMPUTER_USE_SKIP_REASONS: readonly ["ACTION_FAILED", "FIELD_UNKNOWN", "FRAME_NOT_ADDRESSABLE", "HOST_NOT_ALLOWED", "INVALID_ACTION", "INVALID_URL", "LOGIN_PAGE_UNKNOWN", "NO_EFFECT", "NO_ELEMENT", "OBSERVATION_ONLY", "SECRET_TARGET_UNKNOWN", "SECRET_VALUE", "TOO_MANY_INPUTS", "UNKNOWN_ACTION", "URL_CARRIES_SECRET"];
|
|
22
|
+
export type ComputerUseSkipReason = (typeof COMPUTER_USE_SKIP_REASONS)[number];
|
|
23
|
+
/** The element an action touched, as the worker records it (`_uiTarget`). Every field is optional. */
|
|
24
|
+
export interface ComputerUseUiTarget {
|
|
25
|
+
role?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
testId?: string;
|
|
28
|
+
/** A CSS path to the element inside its frame. */
|
|
29
|
+
cssPath?: string;
|
|
30
|
+
/** The element's visible text. */
|
|
31
|
+
text?: string;
|
|
32
|
+
/** The origin of the frame that holds the element. */
|
|
33
|
+
frameOrigin?: string;
|
|
34
|
+
/** CSS selectors of the frames (or open shadow hosts) from the page to the element, when the worker knows them. */
|
|
35
|
+
frame?: string[];
|
|
36
|
+
bbox?: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
/** The element is a masked or password field (its value is a secret). */
|
|
43
|
+
masked?: boolean;
|
|
44
|
+
/** The `type` attribute of an input element. */
|
|
45
|
+
inputType?: string;
|
|
46
|
+
/** The element takes typed text (an input, a text area or a content-editable element). */
|
|
47
|
+
editable?: boolean;
|
|
48
|
+
/** The element is inside a child frame (of any origin); without `frame` it cannot be addressed. */
|
|
49
|
+
inFrame?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/** One recorded computer-use action. `args` may hold the model's arguments instead of the record itself. */
|
|
52
|
+
export interface ComputerUseActionRecord {
|
|
53
|
+
action: string;
|
|
54
|
+
url?: string;
|
|
55
|
+
x?: number;
|
|
56
|
+
y?: number;
|
|
57
|
+
text?: string;
|
|
58
|
+
key?: string;
|
|
59
|
+
deltaX?: number;
|
|
60
|
+
deltaY?: number;
|
|
61
|
+
milliseconds?: number;
|
|
62
|
+
ref?: string;
|
|
63
|
+
/** False when the action failed in the run. */
|
|
64
|
+
ok?: boolean;
|
|
65
|
+
/** The page address the action ran on. */
|
|
66
|
+
pageUrl?: string;
|
|
67
|
+
/** The secret the worker typed by reference (never the value). */
|
|
68
|
+
secretRef?: string;
|
|
69
|
+
screenshotFileId?: string;
|
|
70
|
+
_uiTarget?: ComputerUseUiTarget;
|
|
71
|
+
args?: Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
export interface ScriptFromComputerUseOptions {
|
|
74
|
+
/** The script's name. */
|
|
75
|
+
name?: string;
|
|
76
|
+
/** Hosts the script may open (`host` or `*.host`); a navigation elsewhere is skipped. Absent means no check here. */
|
|
77
|
+
allowedHosts?: readonly string[];
|
|
78
|
+
/** The address `open_login_page` opened (the Browser Login connection's sign-in page). Absent: the action is skipped. */
|
|
79
|
+
loginUrl?: string;
|
|
80
|
+
/** Secret references for the login actions. */
|
|
81
|
+
loginSecretRefs?: {
|
|
82
|
+
username?: string;
|
|
83
|
+
password?: string;
|
|
84
|
+
};
|
|
85
|
+
/** Keep each typed value as its input's default. Absent means true. */
|
|
86
|
+
inputDefaults?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/** An element the script targets inline, which a person may save to the element library. */
|
|
89
|
+
export interface ComputerUseProposedElement {
|
|
90
|
+
key: string;
|
|
91
|
+
name: string;
|
|
92
|
+
target: UiTarget;
|
|
93
|
+
/** The steps that target it. */
|
|
94
|
+
stepIds: string[];
|
|
95
|
+
/** The screenshot after the first action on it, when the worker stored one. */
|
|
96
|
+
screenshotFileId?: string;
|
|
97
|
+
}
|
|
98
|
+
/** An action that was not converted. It never carries the action's values. */
|
|
99
|
+
export interface ComputerUseSkippedAction {
|
|
100
|
+
/** Position in the input list. */
|
|
101
|
+
index: number;
|
|
102
|
+
/** The action name, or `unknown` when it is not one this adapter knows. */
|
|
103
|
+
action: string;
|
|
104
|
+
reason: ComputerUseSkipReason;
|
|
105
|
+
message: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ComputerUseConversion {
|
|
108
|
+
/** The UI script, or null when no action could be converted. It has passed `parseUiScript`. */
|
|
109
|
+
script: UiScript | null;
|
|
110
|
+
elements: ComputerUseProposedElement[];
|
|
111
|
+
skipped: ComputerUseSkippedAction[];
|
|
112
|
+
}
|
|
113
|
+
/** The recorded element as a multi-method target: test id, role and name, CSS path, then text. */
|
|
114
|
+
export declare function targetFromUiFingerprint(value: unknown): UiTarget | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Convert the actions an AI Step took into a UI script v1. Nothing is saved.
|
|
117
|
+
* Throws `UiScriptError` for an unusable call (a list that is not an array,
|
|
118
|
+
* more than `MAX_COMPUTER_USE_ACTIONS` actions, invalid options), with
|
|
119
|
+
* `TOO_MANY_STEPS` when the actions convert to more than 500 steps, and when the
|
|
120
|
+
* converted script breaks a whole-script limit of `parseUiScript` (for
|
|
121
|
+
* example `SCRIPT_TOO_LARGE`). A single bad action never throws: it is
|
|
122
|
+
* skipped with its reason.
|
|
123
|
+
*/
|
|
124
|
+
export declare function scriptFromComputerUseActions(actions: unknown, options?: ScriptFromComputerUseOptions): ComputerUseConversion;
|
package/dist/script/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export { fromBrowserActionSteps } from './adapters/from-browser-action.js';
|
|
|
20
20
|
export { type LowerOptions, toBrowserActionSteps } from './adapters/to-browser-action.js';
|
|
21
21
|
export { fromRemoteBrowserSteps, targetFromPlaywrightSelector } from './adapters/from-remote-browser.js';
|
|
22
22
|
export { fromRecording, toRecording } from './adapters/recording.js';
|
|
23
|
+
export { COMPUTER_USE_ACTIONS, COMPUTER_USE_DEFAULT_WAIT_MS, COMPUTER_USE_MAX_WAIT_MS, COMPUTER_USE_SKIP_REASONS, type ComputerUseAction, type ComputerUseActionRecord, type ComputerUseConversion, type ComputerUseProposedElement, type ComputerUseSkipReason, type ComputerUseSkippedAction, type ComputerUseUiTarget, DEFAULT_LOGIN_SECRET_REFS, MAX_COMPUTER_USE_ACTIONS, type ScriptFromComputerUseOptions, scriptFromComputerUseActions, targetFromUiFingerprint, } from './adapters/from-computer-use.js';
|