@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.
Files changed (75) hide show
  1. package/README.md +20 -2
  2. package/dist/analyze/analyze.d.ts +10 -0
  3. package/dist/analyze/context.d.ts +25 -9
  4. package/dist/analyze/index.d.ts +3 -2
  5. package/dist/analyze/messages.d.ts +2 -0
  6. package/dist/analyze/rules/run-command-from-variable.d.ts +2 -0
  7. package/dist/analyze/rules/single-method-image-target.d.ts +7 -0
  8. package/dist/analyze/sensitive.d.ts +2 -2
  9. package/dist/analyze/types.d.ts +6 -2
  10. package/dist/analyze.js +4 -2
  11. package/dist/desk.d.ts +13 -0
  12. package/dist/desk.js +29 -0
  13. package/dist/dom-runtime.iife.js +1 -1
  14. package/dist/dom-runtime.js +2 -2
  15. package/dist/drivers/desk-backend.d.ts +40 -0
  16. package/dist/drivers/desk-driver.d.ts +41 -0
  17. package/dist/drivers/desk-errors.d.ts +19 -0
  18. package/dist/drivers/desk-tree.d.ts +28 -0
  19. package/dist/drivers/desk-wire.d.ts +237 -0
  20. package/dist/drivers/index.d.ts +3 -1
  21. package/dist/drivers.js +13 -10
  22. package/dist/heal.js +5 -5
  23. package/dist/index-0ps53dhe.js +85 -0
  24. package/dist/{index-qm9nd548.js → index-2q0hh6we.js} +4 -4
  25. package/dist/index-552x2bnm.js +56 -0
  26. package/dist/index-6m0chbhq.js +64 -0
  27. package/dist/{index-xdtanv9b.js → index-7gfzv5n8.js} +97 -54
  28. package/dist/{index-gvavb597.js → index-93hfbk5c.js} +10 -0
  29. package/dist/index-a8s39bse.js +920 -0
  30. package/dist/{index-g7724awk.js → index-axph39g0.js} +22 -0
  31. package/dist/index-b5a306v7.js +43 -0
  32. package/dist/index-bx4bsvg0.js +458 -0
  33. package/dist/{index-6h7ah1dw.js → index-cc49ykn5.js} +4 -4
  34. package/dist/{index-3hsp44k5.js → index-e557vzdd.js} +221 -36
  35. package/dist/{index-vnv9tp11.js → index-e7pgqd60.js} +2 -2
  36. package/dist/index-hdq3y007.js +246 -0
  37. package/dist/{index-zagmp5ya.js → index-n3nfhjrj.js} +2 -2
  38. package/dist/{index-rs3yzt5q.js → index-nmsg2wze.js} +4 -4
  39. package/dist/{index-zhbwhdya.js → index-q2jbva7c.js} +5 -3
  40. package/dist/{index-n7ah1jn7.js → index-rbem2yms.js} +16 -243
  41. package/dist/{index-mhv6a02p.js → index-reef7e8m.js} +1 -1
  42. package/dist/{index-y4j6zep8.js → index-wdbn4xjc.js} +6 -6
  43. package/dist/{index-pfdm8evf.js → index-x8fc4r4h.js} +115 -9
  44. package/dist/{index-yc0jgph6.js → index-yhzykhdj.js} +6 -43
  45. package/dist/{index-t55wvhvh.js → index-z2v8prer.js} +1 -61
  46. package/dist/index-zj3zhbac.js +1123 -0
  47. package/dist/{index-hw5npwsv.js → index-zpxk3fzd.js} +1 -1
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.js +162 -20
  50. package/dist/interpret/driver.d.ts +109 -18
  51. package/dist/interpret/errors.d.ts +7 -1
  52. package/dist/interpret/events.d.ts +5 -2
  53. package/dist/interpret/index.d.ts +4 -3
  54. package/dist/interpret/run.d.ts +28 -1
  55. package/dist/interpret.js +16 -9
  56. package/dist/script/adapters/recording-desktop.d.ts +52 -0
  57. package/dist/script/describe.d.ts +7 -2
  58. package/dist/script/desk-roles.d.ts +33 -0
  59. package/dist/script/desktop-capabilities.d.ts +125 -0
  60. package/dist/script/desktop-schema.d.ts +281 -0
  61. package/dist/script/desktop-types.d.ts +265 -0
  62. package/dist/script/fingerprint.d.ts +10 -1
  63. package/dist/script/hash.d.ts +9 -0
  64. package/dist/script/index.d.ts +14 -4
  65. package/dist/script/json-schema.d.ts +8 -0
  66. package/dist/script/parse.d.ts +29 -0
  67. package/dist/script/schema.d.ts +2098 -1
  68. package/dist/script/walk.d.ts +18 -4
  69. package/dist/script.js +118 -8
  70. package/dist/target/types.d.ts +10 -4
  71. package/dist/target.js +20 -16
  72. package/dist/testing.js +5 -3
  73. package/package.json +9 -3
  74. package/schema/ui-script-desktop-v1.schema.json +12181 -0
  75. package/dist/index-68x61c7a.js +0 -743
@@ -4,26 +4,40 @@
4
4
  * top-level step, `"2.then.0"` the first step of its `then` block, and
5
5
  * `"cleanup.0"` the first clean-up step. The interpreter's step ranges and
6
6
  * the step events use the same paths.
7
+ *
8
+ * Every function also takes a desktop script or step (`desktop-types.ts`),
9
+ * with the desktop fields included, and returns desktop types for it.
7
10
  */
11
+ import type { DesktopUiScript, DesktopUiStep, DesktopUiTargetRef } from './desktop-types.js';
8
12
  import type { UiExpression, UiScript, UiStep, UiTargetRef } from './types.js';
13
+ type AnyStep = UiStep | DesktopUiStep;
14
+ type AnyScript = Pick<UiScript, 'steps' | 'cleanup'> | Pick<DesktopUiScript, 'steps' | 'cleanup'>;
9
15
  /** The nested blocks of a step, by block name. */
10
16
  export declare function childBlocks(step: UiStep): Array<[string, UiStep[]]>;
17
+ export declare function childBlocks(step: DesktopUiStep): Array<[string, DesktopUiStep[]]>;
18
+ export declare function childBlocks(step: AnyStep): Array<[string, AnyStep[]]>;
11
19
  /** One step with where it sits. */
12
- export interface WalkedStep {
13
- step: UiStep;
20
+ export interface WalkedStep<S extends AnyStep = UiStep> {
21
+ step: S;
14
22
  path: string;
15
23
  /** Flow blocks around the step (0 for a top-level or clean-up step). */
16
24
  depth: number;
17
25
  }
18
26
  /** Every step of a script in document order: the main steps, then the clean-up block. */
19
27
  export declare function walkSteps(script: Pick<UiScript, 'steps' | 'cleanup'>): Generator<WalkedStep>;
28
+ export declare function walkSteps(script: Pick<DesktopUiScript, 'steps' | 'cleanup'>): Generator<WalkedStep<DesktopUiStep>>;
29
+ export declare function walkSteps(script: AnyScript): Generator<WalkedStep<AnyStep>>;
20
30
  /** Total steps in a script, nested blocks and the clean-up block included. */
21
- export declare function countSteps(script: Pick<UiScript, 'steps' | 'cleanup'>): number;
31
+ export declare function countSteps(script: AnyScript): number;
22
32
  /** The step at a path, or undefined. */
23
33
  export declare function stepAtPath(script: Pick<UiScript, 'steps' | 'cleanup'>, path: string): UiStep | undefined;
34
+ export declare function stepAtPath(script: Pick<DesktopUiScript, 'steps' | 'cleanup'>, path: string): DesktopUiStep | undefined;
24
35
  /** Every target reference a step holds, with the field it sits in (the step's own blocks excluded). */
25
36
  export declare function stepTargets(step: UiStep): Array<[string, UiTargetRef]>;
37
+ export declare function stepTargets(step: DesktopUiStep): Array<[string, DesktopUiTargetRef]>;
38
+ export declare function stepTargets(step: AnyStep): Array<[string, UiTargetRef | DesktopUiTargetRef]>;
26
39
  /** Every expression a step holds, with the field it sits in (the step's own blocks excluded). */
27
- export declare function stepExpressions(step: UiStep): Array<[string, UiExpression]>;
40
+ export declare function stepExpressions(step: AnyStep): Array<[string, UiExpression]>;
28
41
  /** Calls `visit` on an expression and every expression inside it, with its depth (the root is 1). */
29
42
  export declare function visitExpression(expression: UiExpression, visit: (node: UiExpression, depth: number) => void, depth?: number): void;
43
+ export {};
package/dist/script.js CHANGED
@@ -1,4 +1,8 @@
1
1
  import {
2
+ DESKTOP_SCRIPT_SURFACE2,
3
+ UI_DESKTOP_TARGET_METHOD_KINDS2,
4
+ UI_DESKTOP_GET_WHAT2,
5
+ UI_DESKTOP_ONLY_ACTIONS2,
2
6
  uiScriptRegistry2,
3
7
  NAME_PATTERN2,
4
8
  STEP_ID_PATTERN2,
@@ -9,21 +13,49 @@ import {
9
13
  uiTargetRefSchema2,
10
14
  uiStepSchema2,
11
15
  uiScriptSchema2,
16
+ MAX_DESK_SELECTOR_STRING2,
17
+ MAX_DESK_SELECTOR_PATH2,
18
+ MAX_DESK_SELECTOR_INDEX2,
19
+ MAX_DESK_IMAGE_BYTES2,
20
+ MAX_DESK_IMAGE_PIXELS2,
21
+ MAX_DESK_IMAGE_BASE642,
22
+ MAX_DESK_TEXT_TARGET2,
23
+ MAX_DESK_TEXT_OCCURRENCE2,
24
+ MAX_DESK_RECORDED_SCALE2,
25
+ MAX_DESK_COORDINATE2,
26
+ MAX_DESK_OPEN_APP_ARGS2,
27
+ MAX_DESK_GET_ATTRIBUTES2,
28
+ MAX_DESK_FILE_BYTES2,
29
+ DEFAULT_DESK_FILE_BYTES2,
30
+ MAX_DESK_PATH_LENGTH2,
31
+ MAX_DESK_SET_VALUE2,
32
+ desktopUiScriptRegistry2,
33
+ desktopUiTargetMethodSchema2,
34
+ desktopUiTargetSchema2,
35
+ desktopUiTargetRefSchema2,
36
+ desktopUiStepSchema2,
37
+ desktopUiScriptSchema2,
12
38
  canonicalJson2,
13
39
  RECORDING_ACTION_OF2,
14
40
  uiStepFingerprint2,
41
+ desktopStepFingerprint2,
15
42
  withFingerprint2,
43
+ withDesktopFingerprint2,
16
44
  UiScriptError2,
17
45
  UI_EXPRESSION_ARITY2,
18
46
  parseUiScript2,
19
- safeParseUiScript2
20
- } from "./index-68x61c7a.js";
47
+ safeParseUiScript2,
48
+ parseDesktopUiScript2,
49
+ safeParseDesktopUiScript2,
50
+ isWorkspaceRelativePath2,
51
+ isApplicationName2
52
+ } from "./index-zj3zhbac.js";
21
53
  import"./index-dcs2pe49.js";
22
54
  import {
23
- UI_SCRIPT_SCHEMA_HASH2,
24
- schemaHashOf2,
25
55
  UI_SCRIPT_SCHEMA_TITLE2,
26
56
  uiScriptJsonSchema2,
57
+ UI_DESKTOP_SCRIPT_SCHEMA_TITLE2,
58
+ desktopUiScriptJsonSchema2,
27
59
  BROWSER_STEP_ACTIONS2,
28
60
  fromBrowserActionSteps2,
29
61
  toBrowserActionSteps2,
@@ -31,6 +63,9 @@ import {
31
63
  fromRemoteBrowserSteps2,
32
64
  fromRecording2,
33
65
  toRecording2,
66
+ selectorMethodOfRecordedTarget2,
67
+ desktopTargetOfRecordedTarget2,
68
+ fromRecordingForDesk2,
34
69
  COMPUTER_USE_ACTIONS2,
35
70
  MAX_COMPUTER_USE_ACTIONS2,
36
71
  COMPUTER_USE_MAX_WAIT_MS2,
@@ -39,7 +74,7 @@ import {
39
74
  COMPUTER_USE_SKIP_REASONS2,
40
75
  targetFromUiFingerprint2,
41
76
  scriptFromComputerUseActions2
42
- } from "./index-pfdm8evf.js";
77
+ } from "./index-x8fc4r4h.js";
43
78
  import"./index-5xqsjeqj.js";
44
79
  import {
45
80
  UI_SCRIPT_STEP_KEY_PREFIX2,
@@ -48,13 +83,35 @@ import {
48
83
  describeTarget2,
49
84
  describeExpression2,
50
85
  describeStep2
51
- } from "./index-gvavb597.js";
86
+ } from "./index-93hfbk5c.js";
87
+ import {
88
+ platformRole2,
89
+ rolesMatch2
90
+ } from "./index-0ps53dhe.js";
91
+ import {
92
+ UI_SCRIPT_SCHEMA_HASH2,
93
+ DESKTOP_SCRIPT_SCHEMA_HASH2,
94
+ schemaHashOf2,
95
+ DESKTOP_DESK_CONTRACT_VERSION2,
96
+ DESK_ACTION_NAMES2,
97
+ DESK_TARGET_KIND_NAMES2,
98
+ DESK_SELECTOR_PLATFORM_NAMES2,
99
+ DESK_SHELL_ACTIONS2,
100
+ COMMAND_INTERPRETER_APPS2,
101
+ isCommandInterpreterApp2,
102
+ deskFeaturesOfMethod2,
103
+ deskHasFeature2,
104
+ desktopScriptDeskNeeds2,
105
+ desktopShellSteps2,
106
+ checkDesktopScriptShell2,
107
+ checkDesktopScriptForDesk2
108
+ } from "./index-bx4bsvg0.js";
52
109
  import {
53
110
  CAPABILITY_IDS2,
54
111
  SCRIPT_CAPABILITY2,
55
112
  requiredCapabilities2,
56
113
  missingCapabilities2
57
- } from "./index-hw5npwsv.js";
114
+ } from "./index-zpxk3fzd.js";
58
115
  import {
59
116
  UI_SCRIPT_VERSION2,
60
117
  MAX_SCRIPT_STEPS2,
@@ -105,21 +162,45 @@ import {
105
162
  stepTargets2,
106
163
  stepExpressions2,
107
164
  visitExpression2
108
- } from "./index-g7724awk.js";
165
+ } from "./index-axph39g0.js";
109
166
  export {
110
167
  BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
111
168
  CAPABILITY_IDS2 as CAPABILITY_IDS,
169
+ COMMAND_INTERPRETER_APPS2 as COMMAND_INTERPRETER_APPS,
112
170
  COMPUTER_USE_ACTIONS2 as COMPUTER_USE_ACTIONS,
113
171
  COMPUTER_USE_DEFAULT_WAIT_MS2 as COMPUTER_USE_DEFAULT_WAIT_MS,
114
172
  COMPUTER_USE_MAX_WAIT_MS2 as COMPUTER_USE_MAX_WAIT_MS,
115
173
  COMPUTER_USE_SKIP_REASONS2 as COMPUTER_USE_SKIP_REASONS,
174
+ DEFAULT_DESK_FILE_BYTES2 as DEFAULT_DESK_FILE_BYTES,
116
175
  DEFAULT_LOGIN_SECRET_REFS2 as DEFAULT_LOGIN_SECRET_REFS,
176
+ DESKTOP_DESK_CONTRACT_VERSION2 as DESKTOP_DESK_CONTRACT_VERSION,
177
+ DESKTOP_SCRIPT_SCHEMA_HASH2 as DESKTOP_SCRIPT_SCHEMA_HASH,
178
+ DESKTOP_SCRIPT_SURFACE2 as DESKTOP_SCRIPT_SURFACE,
179
+ DESK_ACTION_NAMES2 as DESK_ACTION_NAMES,
180
+ DESK_SELECTOR_PLATFORM_NAMES2 as DESK_SELECTOR_PLATFORM_NAMES,
181
+ DESK_SHELL_ACTIONS2 as DESK_SHELL_ACTIONS,
182
+ DESK_TARGET_KIND_NAMES2 as DESK_TARGET_KIND_NAMES,
117
183
  ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
118
184
  LEGACY_MAX_BROWSER_STEPS2 as LEGACY_MAX_BROWSER_STEPS,
119
185
  LEGACY_MAX_STEPS_BYTES2 as LEGACY_MAX_STEPS_BYTES,
120
186
  LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
121
187
  MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
122
188
  MAX_DELAY_MS2 as MAX_DELAY_MS,
189
+ MAX_DESK_COORDINATE2 as MAX_DESK_COORDINATE,
190
+ MAX_DESK_FILE_BYTES2 as MAX_DESK_FILE_BYTES,
191
+ MAX_DESK_GET_ATTRIBUTES2 as MAX_DESK_GET_ATTRIBUTES,
192
+ MAX_DESK_IMAGE_BASE642 as MAX_DESK_IMAGE_BASE64,
193
+ MAX_DESK_IMAGE_BYTES2 as MAX_DESK_IMAGE_BYTES,
194
+ MAX_DESK_IMAGE_PIXELS2 as MAX_DESK_IMAGE_PIXELS,
195
+ MAX_DESK_OPEN_APP_ARGS2 as MAX_DESK_OPEN_APP_ARGS,
196
+ MAX_DESK_PATH_LENGTH2 as MAX_DESK_PATH_LENGTH,
197
+ MAX_DESK_RECORDED_SCALE2 as MAX_DESK_RECORDED_SCALE,
198
+ MAX_DESK_SELECTOR_INDEX2 as MAX_DESK_SELECTOR_INDEX,
199
+ MAX_DESK_SELECTOR_PATH2 as MAX_DESK_SELECTOR_PATH,
200
+ MAX_DESK_SELECTOR_STRING2 as MAX_DESK_SELECTOR_STRING,
201
+ MAX_DESK_SET_VALUE2 as MAX_DESK_SET_VALUE,
202
+ MAX_DESK_TEXT_OCCURRENCE2 as MAX_DESK_TEXT_OCCURRENCE,
203
+ MAX_DESK_TEXT_TARGET2 as MAX_DESK_TEXT_TARGET,
123
204
  MAX_EXPRESSION_DEPTH2 as MAX_EXPRESSION_DEPTH,
124
205
  MAX_EXPRESSION_ITEMS2 as MAX_EXPRESSION_ITEMS,
125
206
  MAX_EXTRACT_FIELDS2 as MAX_EXTRACT_FIELDS,
@@ -152,6 +233,10 @@ export {
152
233
  STEP_ID_PATTERN2 as STEP_ID_PATTERN,
153
234
  UI_ANCHOR_RELATIONS2 as UI_ANCHOR_RELATIONS,
154
235
  UI_DESKTOP_ACTIONS2 as UI_DESKTOP_ACTIONS,
236
+ UI_DESKTOP_GET_WHAT2 as UI_DESKTOP_GET_WHAT,
237
+ UI_DESKTOP_ONLY_ACTIONS2 as UI_DESKTOP_ONLY_ACTIONS,
238
+ UI_DESKTOP_SCRIPT_SCHEMA_TITLE2 as UI_DESKTOP_SCRIPT_SCHEMA_TITLE,
239
+ UI_DESKTOP_TARGET_METHOD_KINDS2 as UI_DESKTOP_TARGET_METHOD_KINDS,
155
240
  UI_EXPRESSION_ARITY2 as UI_EXPRESSION_ARITY,
156
241
  UI_EXPRESSION_OPS2 as UI_EXPRESSION_OPS,
157
242
  UI_FLOW_ACTIONS2 as UI_FLOW_ACTIONS,
@@ -166,21 +251,45 @@ export {
166
251
  UI_WEB_ACTIONS2 as UI_WEB_ACTIONS,
167
252
  UiScriptError2 as UiScriptError,
168
253
  canonicalJson2 as canonicalJson,
254
+ checkDesktopScriptForDesk2 as checkDesktopScriptForDesk,
255
+ checkDesktopScriptShell2 as checkDesktopScriptShell,
169
256
  childBlocks2 as childBlocks,
170
257
  countSteps2 as countSteps,
171
258
  describeExpression2 as describeExpression,
172
259
  describeStep2 as describeStep,
173
260
  describeTarget2 as describeTarget,
261
+ deskFeaturesOfMethod2 as deskFeaturesOfMethod,
262
+ deskHasFeature2 as deskHasFeature,
263
+ desktopScriptDeskNeeds2 as desktopScriptDeskNeeds,
264
+ desktopShellSteps2 as desktopShellSteps,
265
+ desktopStepFingerprint2 as desktopStepFingerprint,
266
+ desktopTargetOfRecordedTarget2 as desktopTargetOfRecordedTarget,
267
+ desktopUiScriptJsonSchema2 as desktopUiScriptJsonSchema,
268
+ desktopUiScriptRegistry2 as desktopUiScriptRegistry,
269
+ desktopUiScriptSchema2 as desktopUiScriptSchema,
270
+ desktopUiStepSchema2 as desktopUiStepSchema,
271
+ desktopUiTargetMethodSchema2 as desktopUiTargetMethodSchema,
272
+ desktopUiTargetRefSchema2 as desktopUiTargetRefSchema,
273
+ desktopUiTargetSchema2 as desktopUiTargetSchema,
174
274
  fromBrowserActionSteps2 as fromBrowserActionSteps,
175
275
  fromRecording2 as fromRecording,
276
+ fromRecordingForDesk2 as fromRecordingForDesk,
176
277
  fromRemoteBrowserSteps2 as fromRemoteBrowserSteps,
278
+ isApplicationName2 as isApplicationName,
279
+ isCommandInterpreterApp2 as isCommandInterpreterApp,
280
+ isWorkspaceRelativePath2 as isWorkspaceRelativePath,
177
281
  jsonByteLength2 as jsonByteLength,
178
282
  missingCapabilities2 as missingCapabilities,
283
+ parseDesktopUiScript2 as parseDesktopUiScript,
179
284
  parseUiScript2 as parseUiScript,
285
+ platformRole2 as platformRole,
180
286
  requiredCapabilities2 as requiredCapabilities,
287
+ rolesMatch2 as rolesMatch,
288
+ safeParseDesktopUiScript2 as safeParseDesktopUiScript,
181
289
  safeParseUiScript2 as safeParseUiScript,
182
290
  schemaHashOf2 as schemaHashOf,
183
291
  scriptFromComputerUseActions2 as scriptFromComputerUseActions,
292
+ selectorMethodOfRecordedTarget2 as selectorMethodOfRecordedTarget,
184
293
  stepAtPath2 as stepAtPath,
185
294
  stepExpressions2 as stepExpressions,
186
295
  stepMessageKey2 as stepMessageKey,
@@ -200,5 +309,6 @@ export {
200
309
  uiTargetSchema2 as uiTargetSchema,
201
310
  visitExpression2 as visitExpression,
202
311
  walkSteps2 as walkSteps,
312
+ withDesktopFingerprint2 as withDesktopFingerprint,
203
313
  withFingerprint2 as withFingerprint
204
314
  };
@@ -4,7 +4,13 @@
4
4
  * Everything a resolution reports is plain JSON (no element references), so the
5
5
  * DOM runtime can hand it across an isolated-world or CDP boundary unchanged.
6
6
  */
7
- import type { UiAnchor, UiTargetMethodKind } from '../script/types.js';
7
+ import type { DesktopUiTargetMethodKind } from '../script/desktop-types.js';
8
+ import type { UiAnchor } from '../script/types.js';
9
+ /**
10
+ * The method a resolution names: a web method, or on a desk (plan P2-03b) a
11
+ * desktop method (`uia`, `ax`, `atspi`, `image`, `ocr`).
12
+ */
13
+ export type WebResolvedMethodKind = DesktopUiTargetMethodKind;
8
14
  /** Bounds in CSS pixels, relative to the top viewport (frame offsets added). */
9
15
  export interface WebRect {
10
16
  x: number;
@@ -41,7 +47,7 @@ export type WebMethodOutcome = 'found' | 'none' | 'ambiguous' | 'notInteractable
41
47
  /** The result of one method, in target order. */
42
48
  export interface WebMethodAttempt {
43
49
  index: number;
44
- method: UiTargetMethodKind;
50
+ method: WebResolvedMethodKind;
45
51
  outcome: WebMethodOutcome;
46
52
  /** Elements the method matched in the required state. */
47
53
  matches: number;
@@ -65,7 +71,7 @@ export interface WebCandidate {
65
71
  name: string;
66
72
  bounds: WebRect;
67
73
  /** The method that matched this element. */
68
- method: UiTargetMethodKind;
74
+ method: WebResolvedMethodKind;
69
75
  /** The position of that method in the target. */
70
76
  methodIndex: number;
71
77
  /**
@@ -84,7 +90,7 @@ export interface WebFrameProblem {
84
90
  export interface WebTargetFound<E> {
85
91
  status: 'found';
86
92
  element: E;
87
- method: UiTargetMethodKind;
93
+ method: WebResolvedMethodKind;
88
94
  methodIndex: number;
89
95
  /** True when a method other than the first enabled one found the element (spec 05: method drift is reported). */
90
96
  fallback: boolean;
package/dist/target.js CHANGED
@@ -18,18 +18,8 @@ import {
18
18
  MASKED_MARKER2,
19
19
  MAX_MASKED_PATHS2,
20
20
  maskSnapshot2
21
- } from "./index-zhbwhdya.js";
21
+ } from "./index-q2jbva7c.js";
22
22
  import {
23
- WEB_TARGET_ERROR_CODES2,
24
- MAX_CANDIDATES2,
25
- MAX_CANDIDATE_NAME2,
26
- DEFAULT_FUZZY_THRESHOLD2,
27
- FUZZY_MARGIN2,
28
- ANCHOR_MARGIN_PX2,
29
- MAX_XPATH_RESULTS2,
30
- INTERACTIVE_ROLES2,
31
- relationDistance2,
32
- matchMethod2,
33
23
  MAX_CONTAINER_DEPTH2,
34
24
  MAX_CONTAINER_CHECKS2,
35
25
  MAX_CONTAINER_CHECKS_PER_RESOLUTION2,
@@ -49,7 +39,22 @@ import {
49
39
  MAX_SNAPSHOT_TEXT2,
50
40
  serializeTreeSnapshot2,
51
41
  hydrateTreeSnapshot2
52
- } from "./index-n7ah1jn7.js";
42
+ } from "./index-rbem2yms.js";
43
+ import {
44
+ snapshotUrl2
45
+ } from "./index-6m0chbhq.js";
46
+ import {
47
+ WEB_TARGET_ERROR_CODES2,
48
+ MAX_CANDIDATES2,
49
+ MAX_CANDIDATE_NAME2,
50
+ DEFAULT_FUZZY_THRESHOLD2,
51
+ FUZZY_MARGIN2,
52
+ ANCHOR_MARGIN_PX2,
53
+ MAX_XPATH_RESULTS2,
54
+ INTERACTIVE_ROLES2,
55
+ relationDistance2,
56
+ matchMethod2
57
+ } from "./index-hdq3y007.js";
53
58
  import {
54
59
  MAX_NAME_LENGTH3,
55
60
  MAX_VISIBLE_TEXT2,
@@ -66,7 +71,7 @@ import {
66
71
  elementsUnder2,
67
72
  isSecretFieldName2,
68
73
  isSensitiveElement2
69
- } from "./index-mhv6a02p.js";
74
+ } from "./index-reef7e8m.js";
70
75
  import {
71
76
  SENSITIVE_MARKERS2,
72
77
  hasSensitiveMarker2,
@@ -76,9 +81,8 @@ import {
76
81
  containsText2,
77
82
  editDistance2,
78
83
  textSimilarity2,
79
- clip2,
80
- snapshotUrl2
81
- } from "./index-t55wvhvh.js";
84
+ clip2
85
+ } from "./index-z2v8prer.js";
82
86
  export {
83
87
  ANCHOR_MARGIN_PX2 as ANCHOR_MARGIN_PX,
84
88
  CONTAINER_ROLES2 as CONTAINER_ROLES,
package/dist/testing.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  createDomDriver2
3
- } from "./index-y4j6zep8.js";
3
+ } from "./index-wdbn4xjc.js";
4
4
  import {
5
- UiDriverError2,
6
5
  createVirtualClock2
7
- } from "./index-yc0jgph6.js";
6
+ } from "./index-b5a306v7.js";
7
+ import {
8
+ UiDriverError2
9
+ } from "./index-yhzykhdj.js";
8
10
 
9
11
  // src/testing/fixtures/ambiguous.ts
10
12
  var AMBIGUOUS_HTML = `<!doctype html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@burdenoff/ui-engine",
3
- "version": "2026.1203.1",
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, the UI script analyzer and UI step healing for FluidGrids RPA and BotManor Stewards.",
3
+ "version": "2026.1204.2",
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, the UI script analyzer, UI step healing, the desktop script schema with its desk capability check, and the desk driver that runs desktop scripts for FluidGrids RPA and BotManor Stewards.",
5
5
  "license": "MIT",
6
6
  "author": "Burdenoff Consultancy Services Pvt. Ltd.",
7
7
  "repository": {
@@ -62,11 +62,16 @@
62
62
  "types": "./dist/drivers.d.ts",
63
63
  "import": "./dist/drivers.js"
64
64
  },
65
+ "./desk": {
66
+ "types": "./dist/desk.d.ts",
67
+ "import": "./dist/desk.js"
68
+ },
65
69
  "./testing": {
66
70
  "types": "./dist/testing.d.ts",
67
71
  "import": "./dist/testing.js"
68
72
  },
69
73
  "./schema/ui-script-v1.schema.json": "./schema/ui-script-v1.schema.json",
74
+ "./schema/ui-script-desktop-v1.schema.json": "./schema/ui-script-desktop-v1.schema.json",
70
75
  "./package.json": "./package.json"
71
76
  },
72
77
  "files": [
@@ -76,7 +81,7 @@
76
81
  "LICENSE"
77
82
  ],
78
83
  "scripts": {
79
- "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/heal.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",
84
+ "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/heal.ts src/drivers.ts src/desk.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",
80
85
  "type:check": "boff gate -- bun check --no-pretty",
81
86
  "lint": "eslint .",
82
87
  "lint:fix": "eslint . --fix",
@@ -99,6 +104,7 @@
99
104
  "devDependencies": {
100
105
  "@burdenoff/toolchain": "2026.1123.1",
101
106
  "@types/bun": "^1.4.4",
107
+ "@vibecontrols/plugin-sdk": "2026.1203.4",
102
108
  "eslint": "^9.39.5",
103
109
  "happy-dom": "21.0.4",
104
110
  "typescript": "6.0.3",