@burdenoff/ui-engine 2026.1203.1 → 2026.1204.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 +20 -2
- package/dist/analyze/analyze.d.ts +10 -0
- package/dist/analyze/context.d.ts +25 -9
- package/dist/analyze/index.d.ts +3 -2
- package/dist/analyze/messages.d.ts +2 -0
- package/dist/analyze/rules/run-command-from-variable.d.ts +2 -0
- package/dist/analyze/rules/single-method-image-target.d.ts +7 -0
- package/dist/analyze/sensitive.d.ts +2 -2
- package/dist/analyze/types.d.ts +6 -2
- package/dist/analyze.js +4 -2
- package/dist/desk.d.ts +13 -0
- package/dist/desk.js +29 -0
- package/dist/dom-runtime.iife.js +1 -1
- package/dist/dom-runtime.js +2 -2
- package/dist/drivers/desk-backend.d.ts +40 -0
- package/dist/drivers/desk-driver.d.ts +41 -0
- package/dist/drivers/desk-errors.d.ts +19 -0
- package/dist/drivers/desk-tree.d.ts +28 -0
- package/dist/drivers/desk-wire.d.ts +237 -0
- package/dist/drivers/index.d.ts +3 -1
- package/dist/drivers.js +13 -10
- package/dist/heal.js +5 -5
- package/dist/index-0ps53dhe.js +85 -0
- package/dist/{index-qm9nd548.js → index-2q0hh6we.js} +4 -4
- package/dist/index-552x2bnm.js +56 -0
- package/dist/index-6m0chbhq.js +64 -0
- package/dist/{index-xdtanv9b.js → index-7gfzv5n8.js} +97 -54
- package/dist/{index-gvavb597.js → index-93hfbk5c.js} +10 -0
- package/dist/index-a8s39bse.js +920 -0
- package/dist/{index-g7724awk.js → index-axph39g0.js} +22 -0
- package/dist/index-b5a306v7.js +43 -0
- package/dist/index-bx4bsvg0.js +458 -0
- package/dist/{index-6h7ah1dw.js → index-cc49ykn5.js} +4 -4
- package/dist/{index-3hsp44k5.js → index-e557vzdd.js} +221 -36
- package/dist/{index-vnv9tp11.js → index-e7pgqd60.js} +2 -2
- package/dist/index-hdq3y007.js +246 -0
- package/dist/{index-zagmp5ya.js → index-n3nfhjrj.js} +2 -2
- package/dist/{index-rs3yzt5q.js → index-nmsg2wze.js} +4 -4
- package/dist/{index-zhbwhdya.js → index-q2jbva7c.js} +5 -3
- package/dist/{index-n7ah1jn7.js → index-rbem2yms.js} +16 -243
- package/dist/{index-mhv6a02p.js → index-reef7e8m.js} +1 -1
- package/dist/{index-y4j6zep8.js → index-wdbn4xjc.js} +6 -6
- package/dist/{index-pfdm8evf.js → index-x8fc4r4h.js} +115 -9
- package/dist/{index-yc0jgph6.js → index-yhzykhdj.js} +6 -43
- package/dist/{index-t55wvhvh.js → index-z2v8prer.js} +1 -61
- package/dist/index-zj3zhbac.js +1123 -0
- package/dist/{index-hw5npwsv.js → index-zpxk3fzd.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +162 -20
- package/dist/interpret/driver.d.ts +109 -18
- package/dist/interpret/errors.d.ts +7 -1
- package/dist/interpret/events.d.ts +5 -2
- package/dist/interpret/index.d.ts +4 -3
- package/dist/interpret/run.d.ts +28 -1
- package/dist/interpret.js +16 -9
- package/dist/script/adapters/recording-desktop.d.ts +52 -0
- package/dist/script/describe.d.ts +7 -2
- package/dist/script/desk-roles.d.ts +33 -0
- package/dist/script/desktop-capabilities.d.ts +125 -0
- package/dist/script/desktop-schema.d.ts +281 -0
- package/dist/script/desktop-types.d.ts +265 -0
- package/dist/script/fingerprint.d.ts +10 -1
- package/dist/script/hash.d.ts +9 -0
- package/dist/script/index.d.ts +14 -4
- package/dist/script/json-schema.d.ts +8 -0
- package/dist/script/parse.d.ts +29 -0
- package/dist/script/schema.d.ts +2098 -1
- package/dist/script/walk.d.ts +18 -4
- package/dist/script.js +118 -8
- package/dist/target/types.d.ts +10 -4
- package/dist/target.js +20 -16
- package/dist/testing.js +5 -3
- package/package.json +9 -3
- package/schema/ui-script-desktop-v1.schema.json +12181 -0
- package/dist/index-68x61c7a.js +0 -743
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -32,6 +32,10 @@ import {
|
|
|
32
32
|
replayReasons2
|
|
33
33
|
} from "./index-eg57f5cf.js";
|
|
34
34
|
import {
|
|
35
|
+
DESKTOP_SCRIPT_SURFACE2,
|
|
36
|
+
UI_DESKTOP_TARGET_METHOD_KINDS2,
|
|
37
|
+
UI_DESKTOP_GET_WHAT2,
|
|
38
|
+
UI_DESKTOP_ONLY_ACTIONS2,
|
|
35
39
|
uiScriptRegistry2,
|
|
36
40
|
NAME_PATTERN2,
|
|
37
41
|
STEP_ID_PATTERN2,
|
|
@@ -42,20 +46,48 @@ import {
|
|
|
42
46
|
uiTargetRefSchema2,
|
|
43
47
|
uiStepSchema2,
|
|
44
48
|
uiScriptSchema2,
|
|
49
|
+
MAX_DESK_SELECTOR_STRING2,
|
|
50
|
+
MAX_DESK_SELECTOR_PATH2,
|
|
51
|
+
MAX_DESK_SELECTOR_INDEX2,
|
|
52
|
+
MAX_DESK_IMAGE_BYTES2,
|
|
53
|
+
MAX_DESK_IMAGE_PIXELS2,
|
|
54
|
+
MAX_DESK_IMAGE_BASE642,
|
|
55
|
+
MAX_DESK_TEXT_TARGET2,
|
|
56
|
+
MAX_DESK_TEXT_OCCURRENCE2,
|
|
57
|
+
MAX_DESK_RECORDED_SCALE2,
|
|
58
|
+
MAX_DESK_COORDINATE2,
|
|
59
|
+
MAX_DESK_OPEN_APP_ARGS2,
|
|
60
|
+
MAX_DESK_GET_ATTRIBUTES2,
|
|
61
|
+
MAX_DESK_FILE_BYTES2,
|
|
62
|
+
DEFAULT_DESK_FILE_BYTES2,
|
|
63
|
+
MAX_DESK_PATH_LENGTH2,
|
|
64
|
+
MAX_DESK_SET_VALUE2,
|
|
65
|
+
desktopUiScriptRegistry2,
|
|
66
|
+
desktopUiTargetMethodSchema2,
|
|
67
|
+
desktopUiTargetSchema2,
|
|
68
|
+
desktopUiTargetRefSchema2,
|
|
69
|
+
desktopUiStepSchema2,
|
|
70
|
+
desktopUiScriptSchema2,
|
|
45
71
|
canonicalJson2,
|
|
46
72
|
RECORDING_ACTION_OF2,
|
|
47
73
|
uiStepFingerprint2,
|
|
74
|
+
desktopStepFingerprint2,
|
|
48
75
|
withFingerprint2,
|
|
76
|
+
withDesktopFingerprint2,
|
|
49
77
|
UiScriptError2,
|
|
50
78
|
UI_EXPRESSION_ARITY2,
|
|
51
79
|
parseUiScript2,
|
|
52
|
-
safeParseUiScript2
|
|
53
|
-
|
|
80
|
+
safeParseUiScript2,
|
|
81
|
+
parseDesktopUiScript2,
|
|
82
|
+
safeParseDesktopUiScript2,
|
|
83
|
+
isWorkspaceRelativePath2,
|
|
84
|
+
isApplicationName2
|
|
85
|
+
} from "./index-zj3zhbac.js";
|
|
54
86
|
import {
|
|
55
|
-
UI_SCRIPT_SCHEMA_HASH2,
|
|
56
|
-
schemaHashOf2,
|
|
57
87
|
UI_SCRIPT_SCHEMA_TITLE2,
|
|
58
88
|
uiScriptJsonSchema2,
|
|
89
|
+
UI_DESKTOP_SCRIPT_SCHEMA_TITLE2,
|
|
90
|
+
desktopUiScriptJsonSchema2,
|
|
59
91
|
BROWSER_STEP_ACTIONS2,
|
|
60
92
|
fromBrowserActionSteps2,
|
|
61
93
|
toBrowserActionSteps2,
|
|
@@ -63,6 +95,9 @@ import {
|
|
|
63
95
|
fromRemoteBrowserSteps2,
|
|
64
96
|
fromRecording2,
|
|
65
97
|
toRecording2,
|
|
98
|
+
selectorMethodOfRecordedTarget2,
|
|
99
|
+
desktopTargetOfRecordedTarget2,
|
|
100
|
+
fromRecordingForDesk2,
|
|
66
101
|
COMPUTER_USE_ACTIONS2,
|
|
67
102
|
MAX_COMPUTER_USE_ACTIONS2,
|
|
68
103
|
COMPUTER_USE_MAX_WAIT_MS2,
|
|
@@ -71,7 +106,7 @@ import {
|
|
|
71
106
|
COMPUTER_USE_SKIP_REASONS2,
|
|
72
107
|
targetFromUiFingerprint2,
|
|
73
108
|
scriptFromComputerUseActions2
|
|
74
|
-
} from "./index-
|
|
109
|
+
} from "./index-x8fc4r4h.js";
|
|
75
110
|
import {
|
|
76
111
|
UI_HEAL_MODES2,
|
|
77
112
|
UI_HEAL_MODE_RANK2,
|
|
@@ -89,7 +124,20 @@ import {
|
|
|
89
124
|
matchesUrlPattern2,
|
|
90
125
|
HEAL_POSITION_TOLERANCE_PX2,
|
|
91
126
|
verifyHealCandidate2
|
|
92
|
-
} from "./index-
|
|
127
|
+
} from "./index-2q0hh6we.js";
|
|
128
|
+
import {
|
|
129
|
+
engineCodeOfDeskError2,
|
|
130
|
+
engineDetailOfDeskError2,
|
|
131
|
+
deskNodeInState2,
|
|
132
|
+
matchDeskTreeMethod2,
|
|
133
|
+
isDeskWireTreeSnapshot2,
|
|
134
|
+
DESK_FIND_MAX2,
|
|
135
|
+
DESK_FIND_ALL_MAX2,
|
|
136
|
+
DEFAULT_DESK_SNAPSHOT_NODES2,
|
|
137
|
+
deskTargetOfMethod2,
|
|
138
|
+
createDeskDriver2,
|
|
139
|
+
deskBackendFromAct2
|
|
140
|
+
} from "./index-a8s39bse.js";
|
|
93
141
|
import {
|
|
94
142
|
MAX_CALL_DEPTH2,
|
|
95
143
|
COMPILED_NAME_PREFIX2,
|
|
@@ -97,7 +145,7 @@ import {
|
|
|
97
145
|
stripBreakpoints2,
|
|
98
146
|
inlineCalls2,
|
|
99
147
|
compileUiScript2
|
|
100
|
-
} from "./index-
|
|
148
|
+
} from "./index-nmsg2wze.js";
|
|
101
149
|
import {
|
|
102
150
|
MAX_HEAL_QUESTION_NODES2,
|
|
103
151
|
MAX_HEAL_NODE_NAME2,
|
|
@@ -106,7 +154,7 @@ import {
|
|
|
106
154
|
targetFromSnapshotNode2,
|
|
107
155
|
MAX_HEAL_ANSWER_LENGTH2,
|
|
108
156
|
parseHealAnswer2
|
|
109
|
-
} from "./index-
|
|
157
|
+
} from "./index-cc49ykn5.js";
|
|
110
158
|
import {
|
|
111
159
|
MAX_VALUE_TEXT2,
|
|
112
160
|
MAX_VALUE_ITEMS2,
|
|
@@ -128,8 +176,10 @@ import {
|
|
|
128
176
|
MAX_EVENTS_LIMIT2,
|
|
129
177
|
MAX_PAGE_TEXT2,
|
|
130
178
|
DEFAULT_LIST_ITEMS2,
|
|
131
|
-
runUiScript2
|
|
132
|
-
|
|
179
|
+
runUiScript2,
|
|
180
|
+
DEFAULT_COMMAND_TIMEOUT_MS2,
|
|
181
|
+
runDesktopUiScript2
|
|
182
|
+
} from "./index-e557vzdd.js";
|
|
133
183
|
import {
|
|
134
184
|
MAX_HEAL_KEYWORDS2,
|
|
135
185
|
MAX_HEAL_KEYWORD_LENGTH2,
|
|
@@ -156,8 +206,13 @@ import {
|
|
|
156
206
|
UI_ANALYZER_RULE_GROUPS2,
|
|
157
207
|
UI_ANALYZER_RULE_IDS2,
|
|
158
208
|
UI_ANALYZER_DEFAULT_SEVERITY2,
|
|
159
|
-
analyzeUiScript2
|
|
160
|
-
|
|
209
|
+
analyzeUiScript2,
|
|
210
|
+
analyzeDesktopUiScript2
|
|
211
|
+
} from "./index-7gfzv5n8.js";
|
|
212
|
+
import {
|
|
213
|
+
realClock2,
|
|
214
|
+
createVirtualClock2
|
|
215
|
+
} from "./index-b5a306v7.js";
|
|
161
216
|
import {
|
|
162
217
|
UI_ERROR_FAMILIES2,
|
|
163
218
|
UI_ERROR_CODES2,
|
|
@@ -166,10 +221,8 @@ import {
|
|
|
166
221
|
errorFamilyOf2,
|
|
167
222
|
isRetryableInScript2,
|
|
168
223
|
UiRunError2,
|
|
169
|
-
UiDriverError2
|
|
170
|
-
|
|
171
|
-
createVirtualClock2
|
|
172
|
-
} from "./index-yc0jgph6.js";
|
|
224
|
+
UiDriverError2
|
|
225
|
+
} from "./index-yhzykhdj.js";
|
|
173
226
|
import {
|
|
174
227
|
UI_SCRIPT_STEP_KEY_PREFIX2,
|
|
175
228
|
UI_SCRIPT_STEP_MESSAGES2,
|
|
@@ -177,13 +230,35 @@ import {
|
|
|
177
230
|
describeTarget2,
|
|
178
231
|
describeExpression2,
|
|
179
232
|
describeStep2
|
|
180
|
-
} from "./index-
|
|
233
|
+
} from "./index-93hfbk5c.js";
|
|
234
|
+
import {
|
|
235
|
+
platformRole2,
|
|
236
|
+
rolesMatch2
|
|
237
|
+
} from "./index-0ps53dhe.js";
|
|
238
|
+
import {
|
|
239
|
+
UI_SCRIPT_SCHEMA_HASH2,
|
|
240
|
+
DESKTOP_SCRIPT_SCHEMA_HASH2,
|
|
241
|
+
schemaHashOf2,
|
|
242
|
+
DESKTOP_DESK_CONTRACT_VERSION2,
|
|
243
|
+
DESK_ACTION_NAMES2,
|
|
244
|
+
DESK_TARGET_KIND_NAMES2,
|
|
245
|
+
DESK_SELECTOR_PLATFORM_NAMES2,
|
|
246
|
+
DESK_SHELL_ACTIONS2,
|
|
247
|
+
COMMAND_INTERPRETER_APPS2,
|
|
248
|
+
isCommandInterpreterApp2,
|
|
249
|
+
deskFeaturesOfMethod2,
|
|
250
|
+
deskHasFeature2,
|
|
251
|
+
desktopScriptDeskNeeds2,
|
|
252
|
+
desktopShellSteps2,
|
|
253
|
+
checkDesktopScriptShell2,
|
|
254
|
+
checkDesktopScriptForDesk2
|
|
255
|
+
} from "./index-bx4bsvg0.js";
|
|
181
256
|
import {
|
|
182
257
|
CAPABILITY_IDS2,
|
|
183
258
|
SCRIPT_CAPABILITY2,
|
|
184
259
|
requiredCapabilities2,
|
|
185
260
|
missingCapabilities2
|
|
186
|
-
} from "./index-
|
|
261
|
+
} from "./index-zpxk3fzd.js";
|
|
187
262
|
import {
|
|
188
263
|
UI_SCRIPT_VERSION2,
|
|
189
264
|
MAX_SCRIPT_STEPS2,
|
|
@@ -234,7 +309,7 @@ import {
|
|
|
234
309
|
stepTargets2,
|
|
235
310
|
stepExpressions2,
|
|
236
311
|
visitExpression2
|
|
237
|
-
} from "./index-
|
|
312
|
+
} from "./index-axph39g0.js";
|
|
238
313
|
import {
|
|
239
314
|
SNAPSHOT_ROOT_PATH2,
|
|
240
315
|
MAX_SNAPSHOT_PATH_LENGTH2,
|
|
@@ -245,7 +320,7 @@ import {
|
|
|
245
320
|
MASKED_MARKER2,
|
|
246
321
|
MAX_MASKED_PATHS2,
|
|
247
322
|
maskSnapshot2
|
|
248
|
-
} from "./index-
|
|
323
|
+
} from "./index-q2jbva7c.js";
|
|
249
324
|
import {
|
|
250
325
|
REDACTED2,
|
|
251
326
|
redactCredentials2
|
|
@@ -253,12 +328,16 @@ import {
|
|
|
253
328
|
export {
|
|
254
329
|
BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
|
|
255
330
|
CAPABILITY_IDS2 as CAPABILITY_IDS,
|
|
331
|
+
COMMAND_INTERPRETER_APPS2 as COMMAND_INTERPRETER_APPS,
|
|
256
332
|
COMPILED_NAME_PREFIX2 as COMPILED_NAME_PREFIX,
|
|
257
333
|
COMPUTER_USE_ACTIONS2 as COMPUTER_USE_ACTIONS,
|
|
258
334
|
COMPUTER_USE_DEFAULT_WAIT_MS2 as COMPUTER_USE_DEFAULT_WAIT_MS,
|
|
259
335
|
COMPUTER_USE_MAX_WAIT_MS2 as COMPUTER_USE_MAX_WAIT_MS,
|
|
260
336
|
COMPUTER_USE_SKIP_REASONS2 as COMPUTER_USE_SKIP_REASONS,
|
|
261
337
|
CONSEQUENCE_KEYWORDS2 as CONSEQUENCE_KEYWORDS,
|
|
338
|
+
DEFAULT_COMMAND_TIMEOUT_MS2 as DEFAULT_COMMAND_TIMEOUT_MS,
|
|
339
|
+
DEFAULT_DESK_FILE_BYTES2 as DEFAULT_DESK_FILE_BYTES,
|
|
340
|
+
DEFAULT_DESK_SNAPSHOT_NODES2 as DEFAULT_DESK_SNAPSHOT_NODES,
|
|
262
341
|
DEFAULT_FIRST_WAIT_MS2 as DEFAULT_FIRST_WAIT_MS,
|
|
263
342
|
DEFAULT_LIST_ITEMS2 as DEFAULT_LIST_ITEMS,
|
|
264
343
|
DEFAULT_LOGIN_SECRET_REFS2 as DEFAULT_LOGIN_SECRET_REFS,
|
|
@@ -266,6 +345,15 @@ export {
|
|
|
266
345
|
DEFAULT_POLL_INTERVAL_MS2 as DEFAULT_POLL_INTERVAL_MS,
|
|
267
346
|
DEFAULT_RETRY_DELAY_MS2 as DEFAULT_RETRY_DELAY_MS,
|
|
268
347
|
DEFAULT_WAIT_MS2 as DEFAULT_WAIT_MS,
|
|
348
|
+
DESKTOP_DESK_CONTRACT_VERSION2 as DESKTOP_DESK_CONTRACT_VERSION,
|
|
349
|
+
DESKTOP_SCRIPT_SCHEMA_HASH2 as DESKTOP_SCRIPT_SCHEMA_HASH,
|
|
350
|
+
DESKTOP_SCRIPT_SURFACE2 as DESKTOP_SCRIPT_SURFACE,
|
|
351
|
+
DESK_ACTION_NAMES2 as DESK_ACTION_NAMES,
|
|
352
|
+
DESK_FIND_ALL_MAX2 as DESK_FIND_ALL_MAX,
|
|
353
|
+
DESK_FIND_MAX2 as DESK_FIND_MAX,
|
|
354
|
+
DESK_SELECTOR_PLATFORM_NAMES2 as DESK_SELECTOR_PLATFORM_NAMES,
|
|
355
|
+
DESK_SHELL_ACTIONS2 as DESK_SHELL_ACTIONS,
|
|
356
|
+
DESK_TARGET_KIND_NAMES2 as DESK_TARGET_KIND_NAMES,
|
|
269
357
|
ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
|
|
270
358
|
HEALABLE_ACTIONS2 as HEALABLE_ACTIONS,
|
|
271
359
|
HEAL_POSITION_TOLERANCE_PX2 as HEAL_POSITION_TOLERANCE_PX,
|
|
@@ -277,6 +365,21 @@ export {
|
|
|
277
365
|
MAX_CALL_DEPTH2 as MAX_CALL_DEPTH,
|
|
278
366
|
MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
|
|
279
367
|
MAX_DELAY_MS2 as MAX_DELAY_MS,
|
|
368
|
+
MAX_DESK_COORDINATE2 as MAX_DESK_COORDINATE,
|
|
369
|
+
MAX_DESK_FILE_BYTES2 as MAX_DESK_FILE_BYTES,
|
|
370
|
+
MAX_DESK_GET_ATTRIBUTES2 as MAX_DESK_GET_ATTRIBUTES,
|
|
371
|
+
MAX_DESK_IMAGE_BASE642 as MAX_DESK_IMAGE_BASE64,
|
|
372
|
+
MAX_DESK_IMAGE_BYTES2 as MAX_DESK_IMAGE_BYTES,
|
|
373
|
+
MAX_DESK_IMAGE_PIXELS2 as MAX_DESK_IMAGE_PIXELS,
|
|
374
|
+
MAX_DESK_OPEN_APP_ARGS2 as MAX_DESK_OPEN_APP_ARGS,
|
|
375
|
+
MAX_DESK_PATH_LENGTH2 as MAX_DESK_PATH_LENGTH,
|
|
376
|
+
MAX_DESK_RECORDED_SCALE2 as MAX_DESK_RECORDED_SCALE,
|
|
377
|
+
MAX_DESK_SELECTOR_INDEX2 as MAX_DESK_SELECTOR_INDEX,
|
|
378
|
+
MAX_DESK_SELECTOR_PATH2 as MAX_DESK_SELECTOR_PATH,
|
|
379
|
+
MAX_DESK_SELECTOR_STRING2 as MAX_DESK_SELECTOR_STRING,
|
|
380
|
+
MAX_DESK_SET_VALUE2 as MAX_DESK_SET_VALUE,
|
|
381
|
+
MAX_DESK_TEXT_OCCURRENCE2 as MAX_DESK_TEXT_OCCURRENCE,
|
|
382
|
+
MAX_DESK_TEXT_TARGET2 as MAX_DESK_TEXT_TARGET,
|
|
280
383
|
MAX_EVENTS_LIMIT2 as MAX_EVENTS_LIMIT,
|
|
281
384
|
MAX_EVENT_MESSAGE2 as MAX_EVENT_MESSAGE,
|
|
282
385
|
MAX_EXPRESSION_DEPTH2 as MAX_EXPRESSION_DEPTH,
|
|
@@ -341,6 +444,10 @@ export {
|
|
|
341
444
|
UI_ANCHOR_RELATIONS2 as UI_ANCHOR_RELATIONS,
|
|
342
445
|
UI_CONSEQUENCES2 as UI_CONSEQUENCES,
|
|
343
446
|
UI_DESKTOP_ACTIONS2 as UI_DESKTOP_ACTIONS,
|
|
447
|
+
UI_DESKTOP_GET_WHAT2 as UI_DESKTOP_GET_WHAT,
|
|
448
|
+
UI_DESKTOP_ONLY_ACTIONS2 as UI_DESKTOP_ONLY_ACTIONS,
|
|
449
|
+
UI_DESKTOP_SCRIPT_SCHEMA_TITLE2 as UI_DESKTOP_SCRIPT_SCHEMA_TITLE,
|
|
450
|
+
UI_DESKTOP_TARGET_METHOD_KINDS2 as UI_DESKTOP_TARGET_METHOD_KINDS,
|
|
344
451
|
UI_ERROR_CODES2 as UI_ERROR_CODES,
|
|
345
452
|
UI_ERROR_CODE_LIST2 as UI_ERROR_CODE_LIST,
|
|
346
453
|
UI_ERROR_FAMILIES2 as UI_ERROR_FAMILIES,
|
|
@@ -369,6 +476,7 @@ export {
|
|
|
369
476
|
UiScriptError2 as UiScriptError,
|
|
370
477
|
VALUE_ACTIONS2 as VALUE_ACTIONS,
|
|
371
478
|
afterReplayCall2 as afterReplayCall,
|
|
479
|
+
analyzeDesktopUiScript2 as analyzeDesktopUiScript,
|
|
372
480
|
analyzeUiPopupHandler2 as analyzeUiPopupHandler,
|
|
373
481
|
analyzeUiScript2 as analyzeUiScript,
|
|
374
482
|
applyPins2 as applyPins,
|
|
@@ -376,42 +484,71 @@ export {
|
|
|
376
484
|
canonicalJson2 as canonicalJson,
|
|
377
485
|
capHealMode2 as capHealMode,
|
|
378
486
|
captureRecording2 as captureRecording,
|
|
487
|
+
checkDesktopScriptForDesk2 as checkDesktopScriptForDesk,
|
|
488
|
+
checkDesktopScriptShell2 as checkDesktopScriptShell,
|
|
379
489
|
childBlocks2 as childBlocks,
|
|
380
490
|
classifyConsequence2 as classifyConsequence,
|
|
381
491
|
compatibleRoles2 as compatibleRoles,
|
|
382
492
|
compileUiScript2 as compileUiScript,
|
|
383
493
|
countSteps2 as countSteps,
|
|
494
|
+
createDeskDriver2 as createDeskDriver,
|
|
384
495
|
createVirtualClock2 as createVirtualClock,
|
|
385
496
|
decideHeal2 as decideHeal,
|
|
386
497
|
describeExpression2 as describeExpression,
|
|
387
498
|
describeStep2 as describeStep,
|
|
388
499
|
describeTarget2 as describeTarget,
|
|
500
|
+
deskBackendFromAct2 as deskBackendFromAct,
|
|
501
|
+
deskFeaturesOfMethod2 as deskFeaturesOfMethod,
|
|
502
|
+
deskHasFeature2 as deskHasFeature,
|
|
503
|
+
deskNodeInState2 as deskNodeInState,
|
|
504
|
+
deskTargetOfMethod2 as deskTargetOfMethod,
|
|
505
|
+
desktopScriptDeskNeeds2 as desktopScriptDeskNeeds,
|
|
506
|
+
desktopShellSteps2 as desktopShellSteps,
|
|
507
|
+
desktopStepFingerprint2 as desktopStepFingerprint,
|
|
508
|
+
desktopTargetOfRecordedTarget2 as desktopTargetOfRecordedTarget,
|
|
509
|
+
desktopUiScriptJsonSchema2 as desktopUiScriptJsonSchema,
|
|
510
|
+
desktopUiScriptRegistry2 as desktopUiScriptRegistry,
|
|
511
|
+
desktopUiScriptSchema2 as desktopUiScriptSchema,
|
|
512
|
+
desktopUiStepSchema2 as desktopUiStepSchema,
|
|
513
|
+
desktopUiTargetMethodSchema2 as desktopUiTargetMethodSchema,
|
|
514
|
+
desktopUiTargetRefSchema2 as desktopUiTargetRefSchema,
|
|
515
|
+
desktopUiTargetSchema2 as desktopUiTargetSchema,
|
|
389
516
|
elementInfoFromTarget2 as elementInfoFromTarget,
|
|
517
|
+
engineCodeOfDeskError2 as engineCodeOfDeskError,
|
|
518
|
+
engineDetailOfDeskError2 as engineDetailOfDeskError,
|
|
390
519
|
errorFamilyOf2 as errorFamilyOf,
|
|
391
520
|
evaluateExpression2 as evaluateExpression,
|
|
392
521
|
finishFallback2 as finishFallback,
|
|
393
522
|
fromBrowserActionSteps2 as fromBrowserActionSteps,
|
|
394
523
|
fromRecording2 as fromRecording,
|
|
524
|
+
fromRecordingForDesk2 as fromRecordingForDesk,
|
|
395
525
|
fromRemoteBrowserSteps2 as fromRemoteBrowserSteps,
|
|
396
526
|
indexSnapshot2 as indexSnapshot,
|
|
397
527
|
inlineCalls2 as inlineCalls,
|
|
528
|
+
isApplicationName2 as isApplicationName,
|
|
529
|
+
isCommandInterpreterApp2 as isCommandInterpreterApp,
|
|
530
|
+
isDeskWireTreeSnapshot2 as isDeskWireTreeSnapshot,
|
|
398
531
|
isRetryableInScript2 as isRetryableInScript,
|
|
399
532
|
isSavedStepAuthor2 as isSavedStepAuthor,
|
|
400
533
|
isSnapshotPath2 as isSnapshotPath,
|
|
401
534
|
isUiErrorCode2 as isUiErrorCode,
|
|
535
|
+
isWorkspaceRelativePath2 as isWorkspaceRelativePath,
|
|
402
536
|
jsonByteLength2 as jsonByteLength,
|
|
403
537
|
keywordWords2 as keywordWords,
|
|
404
538
|
markFallbackAsked2 as markFallbackAsked,
|
|
405
539
|
maskSnapshot2 as maskSnapshot,
|
|
406
540
|
maskUrl2 as maskUrl,
|
|
541
|
+
matchDeskTreeMethod2 as matchDeskTreeMethod,
|
|
407
542
|
matchesUrlPattern2 as matchesUrlPattern,
|
|
408
543
|
missingCapabilities2 as missingCapabilities,
|
|
544
|
+
parseDesktopUiScript2 as parseDesktopUiScript,
|
|
409
545
|
parseHealAnswer2 as parseHealAnswer,
|
|
410
546
|
parseHealMode2 as parseHealMode,
|
|
411
547
|
parseRecording2 as parseRecording,
|
|
412
548
|
parseUiPopupHandler2 as parseUiPopupHandler,
|
|
413
549
|
parseUiScript2 as parseUiScript,
|
|
414
550
|
planReplay2 as planReplay,
|
|
551
|
+
platformRole2 as platformRole,
|
|
415
552
|
popupHandlerScript2 as popupHandlerScript,
|
|
416
553
|
problemMessage2 as problemMessage,
|
|
417
554
|
problemMessageKey2 as problemMessageKey,
|
|
@@ -427,10 +564,14 @@ export {
|
|
|
427
564
|
replayStateFrom2 as replayStateFrom,
|
|
428
565
|
requiredCapabilities2 as requiredCapabilities,
|
|
429
566
|
resolveTarget2 as resolveTarget,
|
|
567
|
+
rolesMatch2 as rolesMatch,
|
|
568
|
+
runDesktopUiScript2 as runDesktopUiScript,
|
|
430
569
|
runUiScript2 as runUiScript,
|
|
570
|
+
safeParseDesktopUiScript2 as safeParseDesktopUiScript,
|
|
431
571
|
safeParseUiScript2 as safeParseUiScript,
|
|
432
572
|
schemaHashOf2 as schemaHashOf,
|
|
433
573
|
scriptFromComputerUseActions2 as scriptFromComputerUseActions,
|
|
574
|
+
selectorMethodOfRecordedTarget2 as selectorMethodOfRecordedTarget,
|
|
434
575
|
sha256Hex2 as sha256Hex,
|
|
435
576
|
snapshotNodeAt2 as snapshotNodeAt,
|
|
436
577
|
stepAtPath2 as stepAtPath,
|
|
@@ -466,5 +607,6 @@ export {
|
|
|
466
607
|
visitExpression2 as visitExpression,
|
|
467
608
|
walkSnapshot2 as walkSnapshot,
|
|
468
609
|
walkSteps2 as walkSteps,
|
|
610
|
+
withDesktopFingerprint2 as withDesktopFingerprint,
|
|
469
611
|
withFingerprint2 as withFingerprint
|
|
470
612
|
};
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import type { DomAction, DomActionProblem } from '../dom-runtime/actions.js';
|
|
19
19
|
import type { DomResolution } from '../dom-runtime/runtime.js';
|
|
20
|
+
import type { DeskCapabilitiesLike } from '../script/desktop-capabilities.js';
|
|
21
|
+
import type { DesktopUiGetWhat, DesktopUiStepAction, DesktopUiTarget } from '../script/desktop-types.js';
|
|
20
22
|
import type { UiStepAction, UiTarget } from '../script/types.js';
|
|
21
23
|
import type { UiTreeSnapshot } from '../target/snapshot.js';
|
|
22
24
|
import type { WebElementState, WebTargetErrorCode } from '../target/types.js';
|
|
@@ -25,11 +27,21 @@ export interface UiStepContext {
|
|
|
25
27
|
/** The step path (`"2"`, `"2.then.0"`, `"cleanup.0"`). */
|
|
26
28
|
path: string;
|
|
27
29
|
stepId: string;
|
|
28
|
-
action
|
|
30
|
+
/** A web action, or a desktop action in a desktop run. */
|
|
31
|
+
action: UiStepAction | DesktopUiStepAction;
|
|
29
32
|
/** 1 for the first attempt of the step, then 2, 3 for its retries. */
|
|
30
33
|
attempt: number;
|
|
31
34
|
/** Aborted when the run is cancelled; a driver that can stop a call early listens to it. */
|
|
32
35
|
signal?: AbortSignal;
|
|
36
|
+
/**
|
|
37
|
+
* Desktop runs only: the step's input method (the step's own, else the
|
|
38
|
+
* script's, else `auto`). A desk driver acts through the control's pattern
|
|
39
|
+
* for `direct`, with real input for `hardware`, and prefers the pattern for
|
|
40
|
+
* `auto` (document 05 section 4).
|
|
41
|
+
*/
|
|
42
|
+
inputMethod?: 'auto' | 'direct' | 'hardware';
|
|
43
|
+
/** Desktop runs only: the step's own timeout, so a desk driver can bound one action. */
|
|
44
|
+
timeoutMs?: number;
|
|
33
45
|
}
|
|
34
46
|
/** Time as the interpreter sees it. A snapshot or test driver passes a virtual clock so waits take no real time. */
|
|
35
47
|
export interface UiClock {
|
|
@@ -79,9 +91,9 @@ export type UiDriverListResult<T> = {
|
|
|
79
91
|
resolution?: DomResolution;
|
|
80
92
|
} | UiDriverFailure;
|
|
81
93
|
/** One field of a list row: its target is searched inside each item. */
|
|
82
|
-
export interface UiListField {
|
|
94
|
+
export interface UiListField<T extends DesktopUiTarget = UiTarget> {
|
|
83
95
|
name: string;
|
|
84
|
-
target:
|
|
96
|
+
target: T;
|
|
85
97
|
read: UiReadKind;
|
|
86
98
|
/** Read every match inside the item as a list. */
|
|
87
99
|
all: boolean;
|
|
@@ -89,13 +101,18 @@ export interface UiListField {
|
|
|
89
101
|
/** A row of an extracted list: field name to value. */
|
|
90
102
|
export type UiListRow = Record<string, UiReadValue | UiReadValue[]>;
|
|
91
103
|
/** The targets of a `login` step; absent targets use the desk's defaults. */
|
|
92
|
-
export interface UiLoginTargets {
|
|
93
|
-
username?:
|
|
94
|
-
password?:
|
|
95
|
-
submit?:
|
|
96
|
-
success?:
|
|
104
|
+
export interface UiLoginTargets<T extends DesktopUiTarget = UiTarget> {
|
|
105
|
+
username?: T;
|
|
106
|
+
password?: T;
|
|
107
|
+
submit?: T;
|
|
108
|
+
success?: T;
|
|
97
109
|
}
|
|
98
|
-
|
|
110
|
+
/**
|
|
111
|
+
* A desk the interpreter runs on. `T` is the target type it resolves: web
|
|
112
|
+
* targets for a web desk (the default), desktop targets for a desk driver
|
|
113
|
+
* (`UiDeskDriver`, `runDesktopUiScript`).
|
|
114
|
+
*/
|
|
115
|
+
export interface UiDriver<T extends DesktopUiTarget = UiTarget> {
|
|
99
116
|
/** The capability ids this desk supports (`CAPABILITY_IDS` of the script module). */
|
|
100
117
|
readonly capabilities: readonly string[];
|
|
101
118
|
/** Absent means real time. */
|
|
@@ -111,21 +128,21 @@ export interface UiDriver {
|
|
|
111
128
|
*/
|
|
112
129
|
readonly replay?: boolean;
|
|
113
130
|
/** Resolve a target once, in the given state. */
|
|
114
|
-
resolve(target:
|
|
131
|
+
resolve(target: T, options: {
|
|
115
132
|
state: WebElementState;
|
|
116
133
|
}, context: UiStepContext): Promise<DomResolution>;
|
|
117
134
|
/** Act on the one element a target resolves to, or on the focused element when `target` is null. */
|
|
118
|
-
act(target:
|
|
135
|
+
act(target: T | null, action: DomAction, options: {
|
|
119
136
|
state?: WebElementState;
|
|
120
137
|
}, context: UiStepContext): Promise<UiDriverResult>;
|
|
121
138
|
/** Read from the one element a target resolves to (it must be visible). */
|
|
122
|
-
read(target:
|
|
139
|
+
read(target: T, read: UiReadKind, context: UiStepContext): Promise<UiDriverResult>;
|
|
123
140
|
/** Read from every visible element the first matching method finds, in document order. */
|
|
124
|
-
readAll(target:
|
|
141
|
+
readAll(target: T, read: UiReadKind, context: UiStepContext): Promise<UiDriverListResult<UiReadValue>>;
|
|
125
142
|
/** Read up to `maxItems` rows: every element `item` matches, with each field searched inside it. */
|
|
126
|
-
listItems(item:
|
|
143
|
+
listItems(item: T, fields: readonly UiListField<T>[], maxItems: number, context: UiStepContext): Promise<UiDriverListResult<UiListRow>>;
|
|
127
144
|
/** Press keys together (one key, or modifiers and a key) on a target, or on the focused element when null. */
|
|
128
|
-
pressKeys(target:
|
|
145
|
+
pressKeys(target: T | null, keys: readonly string[], context: UiStepContext): Promise<UiDriverResult>;
|
|
129
146
|
navigate(url: string, options: {
|
|
130
147
|
waitUntil: 'load' | 'domcontentloaded' | 'networkidle' | 'commit';
|
|
131
148
|
timeoutMs: number;
|
|
@@ -147,17 +164,17 @@ export interface UiDriver {
|
|
|
147
164
|
to?: 'top' | 'bottom';
|
|
148
165
|
}, context: UiStepContext): Promise<void>;
|
|
149
166
|
/** Type a secret the desk redeems itself; the value never reaches the interpreter. */
|
|
150
|
-
typeSecret?(target:
|
|
167
|
+
typeSecret?(target: T, secret: {
|
|
151
168
|
secretRef: string;
|
|
152
169
|
expectedOrigin?: string;
|
|
153
170
|
}, context: UiStepContext): Promise<UiDriverResult>;
|
|
154
171
|
/** Sign in through the node's Browser Login connection (remote browsers). Throws `LOGIN_FAILED`. */
|
|
155
|
-
login?(targets: UiLoginTargets
|
|
172
|
+
login?(targets: UiLoginTargets<T>, options: {
|
|
156
173
|
timeoutMs: number;
|
|
157
174
|
}, context: UiStepContext): Promise<void>;
|
|
158
175
|
/** Take a screenshot; returns a reference the host can store (a Files id), or null. */
|
|
159
176
|
screenshot?(options: {
|
|
160
|
-
target?:
|
|
177
|
+
target?: T;
|
|
161
178
|
fullPage?: boolean;
|
|
162
179
|
}, context: UiStepContext): Promise<string | null>;
|
|
163
180
|
/**
|
|
@@ -174,6 +191,80 @@ export interface UiDriver {
|
|
|
174
191
|
*/
|
|
175
192
|
frameOrigin?(frame: readonly string[] | undefined, context: UiStepContext): Promise<string | null>;
|
|
176
193
|
}
|
|
194
|
+
/** A value a desk `get` returns: text, a flag, a number, bounds or named attributes. */
|
|
195
|
+
export type UiDeskReadValue = UiReadValue | number | {
|
|
196
|
+
[name: string]: string | number;
|
|
197
|
+
};
|
|
198
|
+
/** The result of a control-pattern action or a `get` on a desk. */
|
|
199
|
+
export type UiDeskDriverResult = {
|
|
200
|
+
ok: true;
|
|
201
|
+
value?: UiDeskReadValue;
|
|
202
|
+
resolution?: DomResolution;
|
|
203
|
+
} | UiDriverFailure;
|
|
204
|
+
/** What a desktop step does to the one element its target resolves to (desk contract v3 section 5). */
|
|
205
|
+
export type UiDeskPatternAction = {
|
|
206
|
+
kind: 'invoke';
|
|
207
|
+
} | {
|
|
208
|
+
kind: 'setValue';
|
|
209
|
+
value: string;
|
|
210
|
+
} | {
|
|
211
|
+
kind: 'toggle';
|
|
212
|
+
state?: 'on' | 'off';
|
|
213
|
+
} | {
|
|
214
|
+
kind: 'expand';
|
|
215
|
+
state?: 'expanded' | 'collapsed';
|
|
216
|
+
} | {
|
|
217
|
+
kind: 'get';
|
|
218
|
+
what: DesktopUiGetWhat;
|
|
219
|
+
attributes?: readonly string[];
|
|
220
|
+
};
|
|
221
|
+
/** An open window, as a desktop step reports it. Screen text: untrusted. */
|
|
222
|
+
export interface UiDeskWindow {
|
|
223
|
+
app: string;
|
|
224
|
+
title: string;
|
|
225
|
+
processName?: string;
|
|
226
|
+
state: 'normal' | 'minimized' | 'maximized';
|
|
227
|
+
focused: boolean;
|
|
228
|
+
bounds: {
|
|
229
|
+
x: number;
|
|
230
|
+
y: number;
|
|
231
|
+
w: number;
|
|
232
|
+
h: number;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* A desk driver: a desk that runs desktop scripts (RPA plan package P2-03b).
|
|
237
|
+
* It resolves desktop targets, and runs the desktop actions the interpreter
|
|
238
|
+
* hands it one at a time. Like every driver it makes one attempt per call;
|
|
239
|
+
* the interpreter waits and retries.
|
|
240
|
+
*/
|
|
241
|
+
export interface UiDeskDriver extends UiDriver<DesktopUiTarget> {
|
|
242
|
+
/** Marks a desk driver. */
|
|
243
|
+
readonly desk: true;
|
|
244
|
+
/** The desk's capabilities, for the run's preflight check (`checkDesktopScriptForDesk`). */
|
|
245
|
+
deskCapabilities(): DeskCapabilitiesLike;
|
|
246
|
+
/** Does the page or screen show this text now (Wait for text, the textPresent check). */
|
|
247
|
+
containsText(text: string, context: UiStepContext): Promise<boolean>;
|
|
248
|
+
focusWindow(app: string, title: string | undefined, context: UiStepContext): Promise<void>;
|
|
249
|
+
openApp(app: string, options: {
|
|
250
|
+
args?: readonly string[];
|
|
251
|
+
waitForTitle?: string;
|
|
252
|
+
}, context: UiStepContext): Promise<UiDeskWindow[]>;
|
|
253
|
+
closeApp(app: string, title: string | undefined, context: UiStepContext): Promise<void>;
|
|
254
|
+
windowState(app: string, title: string | undefined, state: UiDeskWindow['state'], context: UiStepContext): Promise<UiDeskWindow[]>;
|
|
255
|
+
listWindows(app: string | undefined, context: UiStepContext): Promise<UiDeskWindow[]>;
|
|
256
|
+
/** A control-pattern action or a read on the one element a target resolves to. */
|
|
257
|
+
pattern(target: DesktopUiTarget, action: UiDeskPatternAction, context: UiStepContext): Promise<UiDeskDriverResult>;
|
|
258
|
+
/** Run a command in the workspace folder (or a folder inside it); returns its output. */
|
|
259
|
+
runCommand(command: string, options: {
|
|
260
|
+
cwd?: string;
|
|
261
|
+
timeoutMs: number;
|
|
262
|
+
}, context: UiStepContext): Promise<string>;
|
|
263
|
+
/** Read a file inside the workspace folder as text. */
|
|
264
|
+
readFile(path: string, maxBytes: number, context: UiStepContext): Promise<string>;
|
|
265
|
+
/** Write text to a file inside the workspace folder. */
|
|
266
|
+
writeFile(path: string, content: string, context: UiStepContext): Promise<void>;
|
|
267
|
+
}
|
|
177
268
|
/** Real time. */
|
|
178
269
|
export declare const realClock: UiClock;
|
|
179
270
|
/**
|
|
@@ -32,7 +32,8 @@ export interface UiErrorCodeInfo {
|
|
|
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
34
|
* `INTERRUPTED` and `STOPPED_BY_USER` come from the contract (README section 7),
|
|
35
|
-
*
|
|
35
|
+
* `HEAL_APPROVAL_REQUIRED` from the phase 4 contract (README section 24), and
|
|
36
|
+
* `SHELL_NOT_ALLOWED` from desk contract v3 (README section 37).
|
|
36
37
|
*/
|
|
37
38
|
export declare const UI_ERROR_CODES: {
|
|
38
39
|
readonly ELEMENT_NOT_FOUND: {
|
|
@@ -170,6 +171,11 @@ export declare const UI_ERROR_CODES: {
|
|
|
170
171
|
readonly preflight: false;
|
|
171
172
|
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
173
|
};
|
|
174
|
+
readonly SHELL_NOT_ALLOWED: {
|
|
175
|
+
readonly family: "VALIDATION";
|
|
176
|
+
readonly preflight: true;
|
|
177
|
+
readonly meaning: "The script has Run command or file-write steps and the pool or grant, or the machine (desk.allow-shell), does not allow them; no step ran";
|
|
178
|
+
};
|
|
173
179
|
};
|
|
174
180
|
export type UiErrorCode = keyof typeof UI_ERROR_CODES;
|
|
175
181
|
/** Every error code, in table order. */
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* LOG summary with `detail.truncated: true`, drops the rest, and still emits
|
|
11
11
|
* the final FINISHED event (the service keeps FINISHED past its own cap).
|
|
12
12
|
*/
|
|
13
|
+
import type { DesktopUiStepAction } from '../script/desktop-types.js';
|
|
13
14
|
import type { UiStepAction } from '../script/types.js';
|
|
14
15
|
import type { UiErrorCode } from './errors.js';
|
|
15
16
|
/** The event kinds (contract `UiTaskEventKind`). */
|
|
@@ -28,7 +29,8 @@ export interface UiRunEvent {
|
|
|
28
29
|
kind: UiRunEventKind;
|
|
29
30
|
stepPath?: string;
|
|
30
31
|
stepId?: string;
|
|
31
|
-
action
|
|
32
|
+
/** A web action, or a desktop action in a desktop run. */
|
|
33
|
+
action?: UiStepAction | DesktopUiStepAction;
|
|
32
34
|
/** The target method kind that found the element. */
|
|
33
35
|
resolvedBy?: string;
|
|
34
36
|
durationMs?: number;
|
|
@@ -45,7 +47,8 @@ export type UiRunEventDraft = Omit<UiRunEvent, 'seq' | 'at'>;
|
|
|
45
47
|
export interface UiStepLogEntry {
|
|
46
48
|
path: string;
|
|
47
49
|
stepId: string;
|
|
48
|
-
action
|
|
50
|
+
/** A web action, or a desktop action in a desktop run. */
|
|
51
|
+
action: UiStepAction | DesktopUiStepAction;
|
|
49
52
|
status: 'passed' | 'failed' | 'skipped';
|
|
50
53
|
/** The target method kind that found the element. */
|
|
51
54
|
method?: string;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* `errors.ts` holds every run-time error code with its node error family,
|
|
4
4
|
* `expr.ts` the expression evaluator, `driver.ts` the desk driver interface,
|
|
5
5
|
* `compile.ts` the compiler a worker runs before it parks a node, `run.ts` the
|
|
6
|
-
* interpreter and `
|
|
6
|
+
* interpreter (`runUiScript`, and `runDesktopUiScript` for desktop scripts on a
|
|
7
|
+
* desk driver, plan P2-03b) and `events.ts` the step events and step log.
|
|
7
8
|
*/
|
|
8
9
|
export { UI_ERROR_CODES, UI_ERROR_CODE_LIST, UI_ERROR_FAMILIES, type UiErrorCode, type UiErrorCodeInfo, type UiErrorDetail, type UiErrorFamily, UiDriverError, UiRunError, errorFamilyOf, isRetryableInScript, isUiErrorCode, } from './errors.js';
|
|
9
10
|
export { type ExpressionScope, MAX_VALUE_ITEMS, MAX_VALUE_TEXT, type UiValue, evaluateExpression, readPath, toNumber, toText, toUiValue, truthy, valuesEqual, } from './expr.js';
|
|
10
|
-
export { type UiClock, type UiDriver, type UiDriverFailure, type UiDriverListResult, type UiDriverResult, type UiListField, type UiListRow, type UiLoginTargets, type UiReadKind, type UiReadValue, type UiStepContext, createVirtualClock, realClock, } from './driver.js';
|
|
11
|
+
export { type UiClock, type UiDeskDriver, type UiDeskDriverResult, type UiDeskPatternAction, type UiDeskReadValue, type UiDeskWindow, type UiDriver, type UiDriverFailure, type UiDriverListResult, type UiDriverResult, type UiListField, type UiListRow, type UiLoginTargets, type UiReadKind, type UiReadValue, type UiStepContext, createVirtualClock, realClock, } from './driver.js';
|
|
11
12
|
export { DEFAULT_MAX_EVENTS, MAX_EVENT_MESSAGE, MAX_STEP_LOG_ENTRIES, UI_RUN_EVENT_KINDS, type UiRunEvent, type UiRunEventKind, type UiStepLogEntry, } from './events.js';
|
|
12
13
|
export { COMPILED_NAME_PREFIX, type CompileUiScriptOptions, type CompiledUiScript, type InlinedCall, MAX_CALL_DEPTH, type ResolvedUiElement, type ResolvedUiSequence, applyPins, compileUiScript, inlineCalls, stripBreakpoints, } from './compile.js';
|
|
13
|
-
export { DEFAULT_FIRST_WAIT_MS, DEFAULT_LIST_ITEMS, DEFAULT_POLL_INTERVAL_MS, DEFAULT_RETRY_DELAY_MS, DEFAULT_WAIT_MS, MAX_EVENTS_LIMIT, MAX_PAGE_TEXT, type RunUiScriptOptions, type UiRunFailure, type UiRunResult, type UiTaskCommand, runUiScript, } from './run.js';
|
|
14
|
+
export { DEFAULT_FIRST_WAIT_MS, DEFAULT_LIST_ITEMS, DEFAULT_POLL_INTERVAL_MS, DEFAULT_RETRY_DELAY_MS, DEFAULT_WAIT_MS, MAX_EVENTS_LIMIT, MAX_PAGE_TEXT, DEFAULT_COMMAND_TIMEOUT_MS, type RunDesktopUiScriptOptions, type RunUiScriptOptions, type UiRunFailure, type UiRunResult, type UiTaskCommand, runDesktopUiScript, runUiScript, } from './run.js';
|