@burdenoff/ui-engine 2026.1127.4 → 2026.1127.5

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.
Files changed (38) hide show
  1. package/README.md +29 -3
  2. package/dist/analyze/analyze.d.ts +19 -0
  3. package/dist/analyze/context.d.ts +40 -0
  4. package/dist/analyze/index.d.ts +10 -0
  5. package/dist/analyze/messages.d.ts +39 -0
  6. package/dist/analyze/rules/fixed-wait.d.ts +6 -0
  7. package/dist/analyze/rules/hardware-input.d.ts +2 -0
  8. package/dist/analyze/rules/index.d.ts +3 -0
  9. package/dist/analyze/rules/inline-target.d.ts +2 -0
  10. package/dist/analyze/rules/masked-value.d.ts +8 -0
  11. package/dist/analyze/rules/no-cleanup.d.ts +2 -0
  12. package/dist/analyze/rules/plain-text-secret.d.ts +2 -0
  13. package/dist/analyze/rules/rule.d.ts +15 -0
  14. package/dist/analyze/rules/secret-origin.d.ts +7 -0
  15. package/dist/analyze/rules/sensitive-screenshot.d.ts +2 -0
  16. package/dist/analyze/rules/single-method-target.d.ts +2 -0
  17. package/dist/analyze/rules/unknown-variable.d.ts +2 -0
  18. package/dist/analyze/rules/unused-value.d.ts +2 -0
  19. package/dist/analyze/sensitive.d.ts +14 -0
  20. package/dist/analyze/types.d.ts +66 -0
  21. package/dist/analyze.d.ts +2 -0
  22. package/dist/analyze.js +26 -0
  23. package/dist/drivers.js +8 -6
  24. package/dist/{index-3f1j8386.js → index-21hvbvx1.js} +18 -12
  25. package/dist/{index-h88y5qgv.js → index-8w0f6rsz.js} +5 -3
  26. package/dist/index-9s5nphx0.js +99 -0
  27. package/dist/{index-895kscx3.js → index-c88tvyj1.js} +7 -5
  28. package/dist/{index-3jymbm5t.js → index-g7724awk.js} +1 -92
  29. package/dist/index-gvavb597.js +195 -0
  30. package/dist/{index-zzhysbkj.js → index-r2a9rftv.js} +14 -5
  31. package/dist/index-s7qdecev.js +489 -0
  32. package/dist/{index-pm13mvvc.js → index-xner4tgb.js} +3 -196
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +52 -24
  35. package/dist/interpret.js +3 -3
  36. package/dist/script.js +26 -22
  37. package/dist/testing.js +1 -1
  38. package/package.json +7 -3
@@ -7,7 +7,7 @@ import {
7
7
  uiStepFingerprint2,
8
8
  UiScriptError2,
9
9
  parseUiScript2
10
- } from "./index-895kscx3.js";
10
+ } from "./index-c88tvyj1.js";
11
11
  import {
12
12
  sha256Hex2,
13
13
  RecordingError2,
@@ -22,7 +22,7 @@ import {
22
22
  LEGACY_MAX_STEPS_BYTES2,
23
23
  LEGACY_MAX_STEP_TIMEOUT_MS2,
24
24
  jsonByteLength2
25
- } from "./index-3jymbm5t.js";
25
+ } from "./index-9s5nphx0.js";
26
26
  // src/script/hash.ts
27
27
  var UI_SCRIPT_SCHEMA_HASH2 = "e6860649ad1cba906fb704ce4b62b3ea4380203e6628c809571602f4d0947884";
28
28
  function schemaHashOf2(jsonSchema) {
@@ -41,199 +41,6 @@ function uiScriptJsonSchema2() {
41
41
  const { $schema, ...rest } = generated;
42
42
  return { $schema, title: UI_SCRIPT_SCHEMA_TITLE2, ...rest };
43
43
  }
44
- // src/script/describe.ts
45
- var UI_SCRIPT_STEP_KEY_PREFIX2 = "fluidgrids.uiScript.step.";
46
- var UI_SCRIPT_STEP_MESSAGES2 = {
47
- navigate: "Go to {{url}}",
48
- goBack: "Go back",
49
- reload: "Reload the page",
50
- closeTab: "Close the tab",
51
- click: "Click {{target}}",
52
- rightClick: "Right-click {{target}}",
53
- doubleClick: "Double-click {{target}}",
54
- rightDoubleClick: "Right double-click {{target}}",
55
- hover: "Point at {{target}}",
56
- type: "Type {{value}} into {{target}}",
57
- typeFocused: "Type {{value}}",
58
- typeMasked: "Type a hidden value into {{target}}",
59
- typeMaskedFocused: "Type a hidden value",
60
- typeSecret: "Type a secret into {{target}}",
61
- clear: "Clear {{target}}",
62
- select: "Choose {{value}} in {{target}}",
63
- check: "Tick {{target}}",
64
- uncheck: "Untick {{target}}",
65
- pressKey: "Press {{keys}}",
66
- scrollTop: "Scroll to the top",
67
- scrollBottom: "Scroll to the bottom",
68
- scrollTo: "Scroll to {{target}}",
69
- scrollBy: "Scroll by {{dx}}, {{dy}}",
70
- scrollInside: "Scroll {{target}} by {{dx}}, {{dy}}",
71
- waitFor: "Wait for {{target}}",
72
- waitForGone: "Wait for {{target}} to go away",
73
- waitForText: "Wait for the text {{value}}",
74
- waitForUrl: "Wait for the address to contain {{value}}",
75
- waitForTime: "Wait {{milliseconds}} ms",
76
- extract: "Read {{fields}}",
77
- extractList: "Read each {{target}}",
78
- getText: "Read the text of {{target}}",
79
- getValue: "Read the value of {{target}}",
80
- getAttribute: "Read {{attribute}} of {{target}}",
81
- elementExists: "Check whether {{target}} is there",
82
- getPageText: "Read the page text",
83
- getPageHtml: "Read the page HTML",
84
- screenshot: "Take a screenshot",
85
- screenshotOf: "Take a screenshot of {{target}}",
86
- login: "Sign in",
87
- focusWindow: "Switch to {{app}}",
88
- if: "If {{condition}}",
89
- ifElement: "If {{target}} is there",
90
- forEach: "For each item in {{value}}",
91
- forEachElement: "For each {{target}}",
92
- while: "While {{condition}}, at most {{max}} times",
93
- whileElement: "While {{target}} is there, at most {{max}} times",
94
- retryScope: "Try up to {{attempts}} times",
95
- set: "Set {{name}} to {{value}}",
96
- log: "Log {{value}}",
97
- call: "Run the shared sequence {{sequence}}"
98
- };
99
- function stepMessageKey2(name) {
100
- return `${UI_SCRIPT_STEP_KEY_PREFIX2}${name}`;
101
- }
102
- var MAX_SHOWN = 60;
103
- function shorten(text) {
104
- const flat = text.replace(/\s+/g, " ").trim();
105
- return flat.length > MAX_SHOWN ? `${flat.slice(0, MAX_SHOWN - 1)}…` : flat;
106
- }
107
- function quoted(text) {
108
- return `"${shorten(text)}"`;
109
- }
110
- function describeTarget2(ref, elements = {}) {
111
- if (!ref)
112
- return quoted("?");
113
- if ("element" in ref) {
114
- const element = elements[ref.element];
115
- if (element?.name)
116
- return quoted(element.name);
117
- if (!element?.target)
118
- return quoted(ref.element);
119
- return describeTarget2(element.target);
120
- }
121
- const method = ref.methods.find((item) => item.enabled !== false) ?? ref.methods[0];
122
- switch (method?.kind) {
123
- case "role":
124
- case "fuzzy":
125
- return quoted(method.name);
126
- case "text":
127
- return quoted(method.text);
128
- case "testId":
129
- return quoted(method.value);
130
- case "anchor":
131
- return quoted(method.anchor.kind === "text" ? method.anchor.text : method.anchor.name);
132
- case "css":
133
- return quoted(method.selector);
134
- case "xpath":
135
- return quoted(method.xpath);
136
- default:
137
- return quoted("?");
138
- }
139
- }
140
- function describeExpression2(expression) {
141
- if (expression === undefined || expression === null)
142
- return "…";
143
- if (typeof expression === "string")
144
- return quoted(expression);
145
- if (typeof expression === "number" || typeof expression === "boolean")
146
- return String(expression);
147
- if ("input" in expression)
148
- return `[${expression.input}]`;
149
- if ("var" in expression)
150
- return `[${expression.var}]`;
151
- return "…";
152
- }
153
- function fill(name, vars) {
154
- const fallback = UI_SCRIPT_STEP_MESSAGES2[name].replace(/\{\{(\w+)\}\}/g, (_match, variable) => String(vars[variable] ?? ""));
155
- return { key: stepMessageKey2(name), vars, fallback };
156
- }
157
- function describeStep2(step, elements = {}) {
158
- const target = (ref) => describeTarget2(ref, elements);
159
- switch (step.action) {
160
- case "navigate":
161
- return fill("navigate", { url: describeExpression2(step.url) });
162
- case "click":
163
- return fill(step.button === "right" ? "rightClick" : "click", { target: target(step.target) });
164
- case "doubleClick":
165
- return fill(step.button === "right" ? "rightDoubleClick" : "doubleClick", { target: target(step.target) });
166
- case "hover":
167
- case "clear":
168
- case "typeSecret":
169
- case "getText":
170
- case "getValue":
171
- case "elementExists":
172
- return fill(step.action, { target: target(step.target) });
173
- case "type": {
174
- if (!step.target)
175
- return fill(step.masked ? "typeMaskedFocused" : "typeFocused", step.masked ? {} : { value: describeExpression2(step.text) });
176
- return fill(step.masked ? "typeMasked" : "type", {
177
- target: target(step.target),
178
- ...step.masked ? {} : { value: describeExpression2(step.text) }
179
- });
180
- }
181
- case "select":
182
- return fill("select", {
183
- value: step.values.map(describeExpression2).join(", "),
184
- target: target(step.target)
185
- });
186
- case "check":
187
- return fill(step.checked === false ? "uncheck" : "check", { target: target(step.target) });
188
- case "pressKey":
189
- return fill("pressKey", { keys: step.keys.join("+") });
190
- case "scroll":
191
- if (step.target && (step.dx !== undefined || step.dy !== undefined)) {
192
- return fill("scrollInside", { target: target(step.target), dx: step.dx ?? 0, dy: step.dy ?? 0 });
193
- }
194
- if (step.target)
195
- return fill("scrollTo", { target: target(step.target) });
196
- if (step.dx !== undefined || step.dy !== undefined)
197
- return fill("scrollBy", { dx: step.dx ?? 0, dy: step.dy ?? 0 });
198
- return fill(step.to === "top" ? "scrollTop" : "scrollBottom", {});
199
- case "waitFor":
200
- if (step.target) {
201
- const gone = step.state === "hidden" || step.state === "detached";
202
- return fill(gone ? "waitForGone" : "waitFor", { target: target(step.target) });
203
- }
204
- if (step.text !== undefined)
205
- return fill("waitForText", { value: describeExpression2(step.text) });
206
- if (step.urlContains !== undefined)
207
- return fill("waitForUrl", { value: describeExpression2(step.urlContains) });
208
- return fill("waitForTime", { milliseconds: step.milliseconds ?? 0 });
209
- case "extract":
210
- return fill("extract", { fields: step.fields.map((field) => field.name).join(", ") });
211
- case "extractList":
212
- return fill("extractList", { target: target(step.item) });
213
- case "getAttribute":
214
- return fill("getAttribute", { attribute: step.attribute, target: target(step.target) });
215
- case "screenshot":
216
- return step.target ? fill("screenshotOf", { target: target(step.target) }) : fill("screenshot", {});
217
- case "focusWindow":
218
- return fill("focusWindow", { app: quoted(step.title ?? step.app) });
219
- case "if":
220
- return step.elementExists ? fill("ifElement", { target: target(step.elementExists) }) : fill("if", { condition: describeExpression2(step.condition) });
221
- case "forEach":
222
- return step.elements ? fill("forEachElement", { target: target(step.elements) }) : fill("forEach", { value: describeExpression2(step.in) });
223
- case "while":
224
- return step.elementExists ? fill("whileElement", { target: target(step.elementExists), max: step.maxIterations }) : fill("while", { condition: describeExpression2(step.condition), max: step.maxIterations });
225
- case "retryScope":
226
- return fill("retryScope", { attempts: step.attempts });
227
- case "set":
228
- return fill("set", { name: `[${step.name}]`, value: describeExpression2(step.value) });
229
- case "log":
230
- return fill("log", { value: describeExpression2(step.message) });
231
- case "call":
232
- return fill("call", { sequence: quoted(step.sequenceId) });
233
- default:
234
- return fill(step.action, {});
235
- }
236
- }
237
44
  // src/script/adapters/browser-action-contract.ts
238
45
  var BROWSER_STEP_ACTIONS2 = [
239
46
  "navigate",
@@ -1000,4 +807,4 @@ function toRecordedStep(step, fallbackIntent) {
1000
807
  return stop2();
1001
808
  }
1002
809
  }
1003
- export { UI_SCRIPT_SCHEMA_HASH2, schemaHashOf2, UI_SCRIPT_SCHEMA_TITLE2, uiScriptJsonSchema2, UI_SCRIPT_STEP_KEY_PREFIX2, UI_SCRIPT_STEP_MESSAGES2, stepMessageKey2, describeTarget2, describeExpression2, describeStep2, BROWSER_STEP_ACTIONS2, fromBrowserActionSteps2, toBrowserActionSteps2, targetFromPlaywrightSelector2, fromRemoteBrowserSteps2, fromRecording2, toRecording2 };
810
+ export { UI_SCRIPT_SCHEMA_HASH2, schemaHashOf2, UI_SCRIPT_SCHEMA_TITLE2, uiScriptJsonSchema2, BROWSER_STEP_ACTIONS2, fromBrowserActionSteps2, toBrowserActionSteps2, targetFromPlaywrightSelector2, fromRemoteBrowserSteps2, fromRecording2, toRecording2 };
package/dist/index.d.ts CHANGED
@@ -10,3 +10,4 @@ export { MAX_SNAPSHOT_NODES, type ResolveOutcome, type SnapshotNode, readSnapsho
10
10
  export { type FallbackReason, type ReplayCallKind, type ReplayCallOutcome, type ReplayChatMessage, type ReplayFunctionCall, type ReplayOptions, type ReplayPlan, type ReplaySource, type ReplayState, afterReplayCall, finishFallback, markFallbackAsked, planReplay, readReplayState, replayReasons, replayStateFrom, } from './replay.js';
11
11
  export * from './script.js';
12
12
  export * from './interpret.js';
13
+ export * from './analyze.js';
package/dist/index.js CHANGED
@@ -49,18 +49,12 @@ import {
49
49
  UI_EXPRESSION_ARITY2,
50
50
  parseUiScript2,
51
51
  safeParseUiScript2
52
- } from "./index-895kscx3.js";
52
+ } from "./index-c88tvyj1.js";
53
53
  import {
54
54
  UI_SCRIPT_SCHEMA_HASH2,
55
55
  schemaHashOf2,
56
56
  UI_SCRIPT_SCHEMA_TITLE2,
57
57
  uiScriptJsonSchema2,
58
- UI_SCRIPT_STEP_KEY_PREFIX2,
59
- UI_SCRIPT_STEP_MESSAGES2,
60
- stepMessageKey2,
61
- describeTarget2,
62
- describeExpression2,
63
- describeStep2,
64
58
  BROWSER_STEP_ACTIONS2,
65
59
  fromBrowserActionSteps2,
66
60
  toBrowserActionSteps2,
@@ -68,7 +62,7 @@ import {
68
62
  fromRemoteBrowserSteps2,
69
63
  fromRecording2,
70
64
  toRecording2
71
- } from "./index-pm13mvvc.js";
65
+ } from "./index-xner4tgb.js";
72
66
  import {
73
67
  MAX_CALL_DEPTH2,
74
68
  COMPILED_NAME_PREFIX2,
@@ -76,7 +70,20 @@ import {
76
70
  stripBreakpoints2,
77
71
  inlineCalls2,
78
72
  compileUiScript2
79
- } from "./index-h88y5qgv.js";
73
+ } from "./index-8w0f6rsz.js";
74
+ import {
75
+ stepNumber2,
76
+ UI_SCRIPT_PROBLEM_KEY_PREFIX2,
77
+ UI_SCRIPT_PROBLEM_MESSAGES2,
78
+ problemMessageKey2,
79
+ problemMessage2,
80
+ UI_ANALYZER_RULES2,
81
+ UI_PROBLEM_SEVERITIES2,
82
+ UI_ANALYZER_RULE_GROUPS2,
83
+ UI_ANALYZER_RULE_IDS2,
84
+ UI_ANALYZER_DEFAULT_SEVERITY2,
85
+ analyzeUiScript2
86
+ } from "./index-s7qdecev.js";
80
87
  import {
81
88
  MAX_VALUE_TEXT2,
82
89
  MAX_VALUE_ITEMS2,
@@ -99,7 +106,7 @@ import {
99
106
  MAX_PAGE_TEXT2,
100
107
  DEFAULT_LIST_ITEMS2,
101
108
  runUiScript2
102
- } from "./index-zzhysbkj.js";
109
+ } from "./index-r2a9rftv.js";
103
110
  import {
104
111
  UI_ERROR_FAMILIES2,
105
112
  UI_ERROR_CODES2,
@@ -113,14 +120,14 @@ import {
113
120
  createVirtualClock2
114
121
  } from "./index-vg8r40y7.js";
115
122
  import {
116
- UI_EXPRESSION_OPS2,
117
- UI_ANCHOR_RELATIONS2,
118
- UI_TARGET_METHOD_KINDS2,
119
- UI_WEB_ACTIONS2,
120
- UI_DESKTOP_ACTIONS2,
121
- UI_FLOW_ACTIONS2,
122
- UI_STEP_ACTIONS2,
123
- UI_VALUE_TYPES2,
123
+ UI_SCRIPT_STEP_KEY_PREFIX2,
124
+ UI_SCRIPT_STEP_MESSAGES2,
125
+ stepMessageKey2,
126
+ describeTarget2,
127
+ describeExpression2,
128
+ describeStep2
129
+ } from "./index-gvavb597.js";
130
+ import {
124
131
  UI_SCRIPT_VERSION2,
125
132
  MAX_SCRIPT_STEPS2,
126
133
  MAX_SCRIPT_BYTES2,
@@ -153,18 +160,28 @@ import {
153
160
  LEGACY_MAX_STEPS_BYTES2,
154
161
  LEGACY_MAX_STEP_TIMEOUT_MS2,
155
162
  jsonByteLength2,
163
+ CAPABILITY_IDS2,
164
+ SCRIPT_CAPABILITY2,
165
+ requiredCapabilities2,
166
+ missingCapabilities2
167
+ } from "./index-9s5nphx0.js";
168
+ import {
169
+ UI_EXPRESSION_OPS2,
170
+ UI_ANCHOR_RELATIONS2,
171
+ UI_TARGET_METHOD_KINDS2,
172
+ UI_WEB_ACTIONS2,
173
+ UI_DESKTOP_ACTIONS2,
174
+ UI_FLOW_ACTIONS2,
175
+ UI_STEP_ACTIONS2,
176
+ UI_VALUE_TYPES2,
156
177
  childBlocks2,
157
178
  walkSteps2,
158
179
  countSteps2,
159
180
  stepAtPath2,
160
181
  stepTargets2,
161
182
  stepExpressions2,
162
- visitExpression2,
163
- CAPABILITY_IDS2,
164
- SCRIPT_CAPABILITY2,
165
- requiredCapabilities2,
166
- missingCapabilities2
167
- } from "./index-3jymbm5t.js";
183
+ visitExpression2
184
+ } from "./index-g7724awk.js";
168
185
  import {
169
186
  REDACTED2,
170
187
  redactCredentials2
@@ -228,6 +245,10 @@ export {
228
245
  SAVED_STEP_AUTHORS2 as SAVED_STEP_AUTHORS,
229
246
  SCRIPT_CAPABILITY2 as SCRIPT_CAPABILITY,
230
247
  STEP_ID_PATTERN2 as STEP_ID_PATTERN,
248
+ UI_ANALYZER_DEFAULT_SEVERITY2 as UI_ANALYZER_DEFAULT_SEVERITY,
249
+ UI_ANALYZER_RULES2 as UI_ANALYZER_RULES,
250
+ UI_ANALYZER_RULE_GROUPS2 as UI_ANALYZER_RULE_GROUPS,
251
+ UI_ANALYZER_RULE_IDS2 as UI_ANALYZER_RULE_IDS,
231
252
  UI_ANCHOR_RELATIONS2 as UI_ANCHOR_RELATIONS,
232
253
  UI_DESKTOP_ACTIONS2 as UI_DESKTOP_ACTIONS,
233
254
  UI_ERROR_CODES2 as UI_ERROR_CODES,
@@ -236,7 +257,10 @@ export {
236
257
  UI_EXPRESSION_ARITY2 as UI_EXPRESSION_ARITY,
237
258
  UI_EXPRESSION_OPS2 as UI_EXPRESSION_OPS,
238
259
  UI_FLOW_ACTIONS2 as UI_FLOW_ACTIONS,
260
+ UI_PROBLEM_SEVERITIES2 as UI_PROBLEM_SEVERITIES,
239
261
  UI_RUN_EVENT_KINDS2 as UI_RUN_EVENT_KINDS,
262
+ UI_SCRIPT_PROBLEM_KEY_PREFIX2 as UI_SCRIPT_PROBLEM_KEY_PREFIX,
263
+ UI_SCRIPT_PROBLEM_MESSAGES2 as UI_SCRIPT_PROBLEM_MESSAGES,
240
264
  UI_SCRIPT_SCHEMA_HASH2 as UI_SCRIPT_SCHEMA_HASH,
241
265
  UI_SCRIPT_SCHEMA_TITLE2 as UI_SCRIPT_SCHEMA_TITLE,
242
266
  UI_SCRIPT_STEP_KEY_PREFIX2 as UI_SCRIPT_STEP_KEY_PREFIX,
@@ -250,6 +274,7 @@ export {
250
274
  UiRunError2 as UiRunError,
251
275
  UiScriptError2 as UiScriptError,
252
276
  afterReplayCall2 as afterReplayCall,
277
+ analyzeUiScript2 as analyzeUiScript,
253
278
  applyPins2 as applyPins,
254
279
  canonicalJson2 as canonicalJson,
255
280
  captureRecording2 as captureRecording,
@@ -277,6 +302,8 @@ export {
277
302
  parseRecording2 as parseRecording,
278
303
  parseUiScript2 as parseUiScript,
279
304
  planReplay2 as planReplay,
305
+ problemMessage2 as problemMessage,
306
+ problemMessageKey2 as problemMessageKey,
280
307
  readPath2 as readPath,
281
308
  readReplayState2 as readReplayState,
282
309
  readSnapshotNodes2 as readSnapshotNodes,
@@ -296,6 +323,7 @@ export {
296
323
  stepAtPath2 as stepAtPath,
297
324
  stepExpressions2 as stepExpressions,
298
325
  stepMessageKey2 as stepMessageKey,
326
+ stepNumber2 as stepNumber,
299
327
  stepTargets2 as stepTargets,
300
328
  stripBreakpoints2 as stripBreakpoints,
301
329
  targetFingerprint2 as targetFingerprint,
package/dist/interpret.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import"./index-cs6acyjn.js";
2
- import"./index-895kscx3.js";
2
+ import"./index-c88tvyj1.js";
3
3
  import {
4
4
  MAX_CALL_DEPTH2,
5
5
  COMPILED_NAME_PREFIX2,
@@ -7,7 +7,7 @@ import {
7
7
  stripBreakpoints2,
8
8
  inlineCalls2,
9
9
  compileUiScript2
10
- } from "./index-h88y5qgv.js";
10
+ } from "./index-8w0f6rsz.js";
11
11
  import {
12
12
  MAX_VALUE_TEXT2,
13
13
  MAX_VALUE_ITEMS2,
@@ -30,7 +30,7 @@ import {
30
30
  MAX_PAGE_TEXT2,
31
31
  DEFAULT_LIST_ITEMS2,
32
32
  runUiScript2
33
- } from "./index-zzhysbkj.js";
33
+ } from "./index-r2a9rftv.js";
34
34
  import {
35
35
  UI_ERROR_FAMILIES2,
36
36
  UI_ERROR_CODES2,
package/dist/script.js CHANGED
@@ -17,19 +17,13 @@ import {
17
17
  UI_EXPRESSION_ARITY2,
18
18
  parseUiScript2,
19
19
  safeParseUiScript2
20
- } from "./index-895kscx3.js";
20
+ } from "./index-c88tvyj1.js";
21
21
  import"./index-cs6acyjn.js";
22
22
  import {
23
23
  UI_SCRIPT_SCHEMA_HASH2,
24
24
  schemaHashOf2,
25
25
  UI_SCRIPT_SCHEMA_TITLE2,
26
26
  uiScriptJsonSchema2,
27
- UI_SCRIPT_STEP_KEY_PREFIX2,
28
- UI_SCRIPT_STEP_MESSAGES2,
29
- stepMessageKey2,
30
- describeTarget2,
31
- describeExpression2,
32
- describeStep2,
33
27
  BROWSER_STEP_ACTIONS2,
34
28
  fromBrowserActionSteps2,
35
29
  toBrowserActionSteps2,
@@ -37,16 +31,16 @@ import {
37
31
  fromRemoteBrowserSteps2,
38
32
  fromRecording2,
39
33
  toRecording2
40
- } from "./index-pm13mvvc.js";
34
+ } from "./index-xner4tgb.js";
35
+ import {
36
+ UI_SCRIPT_STEP_KEY_PREFIX2,
37
+ UI_SCRIPT_STEP_MESSAGES2,
38
+ stepMessageKey2,
39
+ describeTarget2,
40
+ describeExpression2,
41
+ describeStep2
42
+ } from "./index-gvavb597.js";
41
43
  import {
42
- UI_EXPRESSION_OPS2,
43
- UI_ANCHOR_RELATIONS2,
44
- UI_TARGET_METHOD_KINDS2,
45
- UI_WEB_ACTIONS2,
46
- UI_DESKTOP_ACTIONS2,
47
- UI_FLOW_ACTIONS2,
48
- UI_STEP_ACTIONS2,
49
- UI_VALUE_TYPES2,
50
44
  UI_SCRIPT_VERSION2,
51
45
  MAX_SCRIPT_STEPS2,
52
46
  MAX_SCRIPT_BYTES2,
@@ -79,18 +73,28 @@ import {
79
73
  LEGACY_MAX_STEPS_BYTES2,
80
74
  LEGACY_MAX_STEP_TIMEOUT_MS2,
81
75
  jsonByteLength2,
76
+ CAPABILITY_IDS2,
77
+ SCRIPT_CAPABILITY2,
78
+ requiredCapabilities2,
79
+ missingCapabilities2
80
+ } from "./index-9s5nphx0.js";
81
+ import {
82
+ UI_EXPRESSION_OPS2,
83
+ UI_ANCHOR_RELATIONS2,
84
+ UI_TARGET_METHOD_KINDS2,
85
+ UI_WEB_ACTIONS2,
86
+ UI_DESKTOP_ACTIONS2,
87
+ UI_FLOW_ACTIONS2,
88
+ UI_STEP_ACTIONS2,
89
+ UI_VALUE_TYPES2,
82
90
  childBlocks2,
83
91
  walkSteps2,
84
92
  countSteps2,
85
93
  stepAtPath2,
86
94
  stepTargets2,
87
95
  stepExpressions2,
88
- visitExpression2,
89
- CAPABILITY_IDS2,
90
- SCRIPT_CAPABILITY2,
91
- requiredCapabilities2,
92
- missingCapabilities2
93
- } from "./index-3jymbm5t.js";
96
+ visitExpression2
97
+ } from "./index-g7724awk.js";
94
98
  export {
95
99
  BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
96
100
  CAPABILITY_IDS2 as CAPABILITY_IDS,
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createDomDriver2
3
- } from "./index-3f1j8386.js";
3
+ } from "./index-21hvbvx1.js";
4
4
  import {
5
5
  UiDriverError2,
6
6
  createVirtualClock2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@burdenoff/ui-engine",
3
- "version": "2026.1127.4",
4
- "description": "Shared, browser-safe UI automation engine: recordings, capture-time masking, target resolution, replay, the UI script v1 contract, the multi-method web target resolver and DOM runtime, and the UI script interpreter for FluidGrids RPA and BotManor Stewards.",
3
+ "version": "2026.1127.5",
4
+ "description": "Shared, browser-safe UI automation engine: recordings, capture-time masking, target resolution, replay, the UI script v1 contract, the multi-method web target resolver and DOM runtime, the UI script interpreter and the UI script analyzer for FluidGrids RPA and BotManor Stewards.",
5
5
  "license": "MIT",
6
6
  "author": "Burdenoff Consultancy Services Pvt. Ltd.",
7
7
  "repository": {
@@ -50,6 +50,10 @@
50
50
  "types": "./dist/interpret.d.ts",
51
51
  "import": "./dist/interpret.js"
52
52
  },
53
+ "./analyze": {
54
+ "types": "./dist/analyze.d.ts",
55
+ "import": "./dist/analyze.js"
56
+ },
53
57
  "./drivers": {
54
58
  "types": "./dist/drivers.d.ts",
55
59
  "import": "./dist/drivers.js"
@@ -68,7 +72,7 @@
68
72
  "LICENSE"
69
73
  ],
70
74
  "scripts": {
71
- "build": "rm -rf dist && bun build src/index.ts src/recording.ts src/capture.ts src/resolve.ts src/replay.ts src/script.ts src/target.ts src/dom-runtime.ts src/interpret.ts src/drivers.ts src/testing.ts --outdir dist --root src --target browser --format esm --splitting --packages external && bun build src/dom-runtime/iife.ts --outfile dist/dom-runtime.iife.js --target browser --format iife --minify && tsc -p tsconfig.build.json",
75
+ "build": "rm -rf dist && bun build src/index.ts src/recording.ts src/capture.ts src/resolve.ts src/replay.ts src/script.ts src/target.ts src/dom-runtime.ts src/interpret.ts src/analyze.ts src/drivers.ts src/testing.ts --outdir dist --root src --target browser --format esm --splitting --packages external && bun build src/dom-runtime/iife.ts --outfile dist/dom-runtime.iife.js --target browser --format iife --minify && tsc -p tsconfig.build.json",
72
76
  "type:check": "boff gate -- bun check --no-pretty",
73
77
  "lint": "eslint .",
74
78
  "lint:fix": "eslint . --fix",