@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/script.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
UI_EXPRESSION_ARITY2,
|
|
18
18
|
parseUiScript2,
|
|
19
19
|
safeParseUiScript2
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-qmv3ar39.js";
|
|
21
21
|
import"./index-cs6acyjn.js";
|
|
22
22
|
import {
|
|
23
23
|
UI_SCRIPT_SCHEMA_HASH2,
|
|
@@ -30,8 +30,17 @@ import {
|
|
|
30
30
|
targetFromPlaywrightSelector2,
|
|
31
31
|
fromRemoteBrowserSteps2,
|
|
32
32
|
fromRecording2,
|
|
33
|
-
toRecording2
|
|
34
|
-
|
|
33
|
+
toRecording2,
|
|
34
|
+
COMPUTER_USE_ACTIONS2,
|
|
35
|
+
MAX_COMPUTER_USE_ACTIONS2,
|
|
36
|
+
COMPUTER_USE_MAX_WAIT_MS2,
|
|
37
|
+
COMPUTER_USE_DEFAULT_WAIT_MS2,
|
|
38
|
+
DEFAULT_LOGIN_SECRET_REFS2,
|
|
39
|
+
COMPUTER_USE_SKIP_REASONS2,
|
|
40
|
+
targetFromUiFingerprint2,
|
|
41
|
+
scriptFromComputerUseActions2
|
|
42
|
+
} from "./index-5cffktzd.js";
|
|
43
|
+
import"./index-bnvmt4wf.js";
|
|
35
44
|
import {
|
|
36
45
|
UI_SCRIPT_STEP_KEY_PREFIX2,
|
|
37
46
|
UI_SCRIPT_STEP_MESSAGES2,
|
|
@@ -40,6 +49,12 @@ import {
|
|
|
40
49
|
describeExpression2,
|
|
41
50
|
describeStep2
|
|
42
51
|
} from "./index-gvavb597.js";
|
|
52
|
+
import {
|
|
53
|
+
CAPABILITY_IDS2,
|
|
54
|
+
SCRIPT_CAPABILITY2,
|
|
55
|
+
requiredCapabilities2,
|
|
56
|
+
missingCapabilities2
|
|
57
|
+
} from "./index-hw5npwsv.js";
|
|
43
58
|
import {
|
|
44
59
|
UI_SCRIPT_VERSION2,
|
|
45
60
|
MAX_SCRIPT_STEPS2,
|
|
@@ -72,12 +87,8 @@ import {
|
|
|
72
87
|
LEGACY_MAX_BROWSER_STEPS2,
|
|
73
88
|
LEGACY_MAX_STEPS_BYTES2,
|
|
74
89
|
LEGACY_MAX_STEP_TIMEOUT_MS2,
|
|
75
|
-
jsonByteLength2
|
|
76
|
-
|
|
77
|
-
SCRIPT_CAPABILITY2,
|
|
78
|
-
requiredCapabilities2,
|
|
79
|
-
missingCapabilities2
|
|
80
|
-
} from "./index-9s5nphx0.js";
|
|
90
|
+
jsonByteLength2
|
|
91
|
+
} from "./index-20bbwwc9.js";
|
|
81
92
|
import {
|
|
82
93
|
UI_EXPRESSION_OPS2,
|
|
83
94
|
UI_ANCHOR_RELATIONS2,
|
|
@@ -98,10 +109,16 @@ import {
|
|
|
98
109
|
export {
|
|
99
110
|
BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
|
|
100
111
|
CAPABILITY_IDS2 as CAPABILITY_IDS,
|
|
112
|
+
COMPUTER_USE_ACTIONS2 as COMPUTER_USE_ACTIONS,
|
|
113
|
+
COMPUTER_USE_DEFAULT_WAIT_MS2 as COMPUTER_USE_DEFAULT_WAIT_MS,
|
|
114
|
+
COMPUTER_USE_MAX_WAIT_MS2 as COMPUTER_USE_MAX_WAIT_MS,
|
|
115
|
+
COMPUTER_USE_SKIP_REASONS2 as COMPUTER_USE_SKIP_REASONS,
|
|
116
|
+
DEFAULT_LOGIN_SECRET_REFS2 as DEFAULT_LOGIN_SECRET_REFS,
|
|
101
117
|
ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
|
|
102
118
|
LEGACY_MAX_BROWSER_STEPS2 as LEGACY_MAX_BROWSER_STEPS,
|
|
103
119
|
LEGACY_MAX_STEPS_BYTES2 as LEGACY_MAX_STEPS_BYTES,
|
|
104
120
|
LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
|
|
121
|
+
MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
|
|
105
122
|
MAX_DELAY_MS2 as MAX_DELAY_MS,
|
|
106
123
|
MAX_EXPRESSION_DEPTH2 as MAX_EXPRESSION_DEPTH,
|
|
107
124
|
MAX_EXPRESSION_ITEMS2 as MAX_EXPRESSION_ITEMS,
|
|
@@ -163,11 +180,13 @@ export {
|
|
|
163
180
|
requiredCapabilities2 as requiredCapabilities,
|
|
164
181
|
safeParseUiScript2 as safeParseUiScript,
|
|
165
182
|
schemaHashOf2 as schemaHashOf,
|
|
183
|
+
scriptFromComputerUseActions2 as scriptFromComputerUseActions,
|
|
166
184
|
stepAtPath2 as stepAtPath,
|
|
167
185
|
stepExpressions2 as stepExpressions,
|
|
168
186
|
stepMessageKey2 as stepMessageKey,
|
|
169
187
|
stepTargets2 as stepTargets,
|
|
170
188
|
targetFromPlaywrightSelector2 as targetFromPlaywrightSelector,
|
|
189
|
+
targetFromUiFingerprint2 as targetFromUiFingerprint,
|
|
171
190
|
toBrowserActionSteps2 as toBrowserActionSteps,
|
|
172
191
|
toRecording2 as toRecording,
|
|
173
192
|
uiExpressionSchema2 as uiExpressionSchema,
|
package/dist/target/index.d.ts
CHANGED
|
@@ -11,3 +11,5 @@ export { type ElementStateProbe, SENSITIVE_MARKERS, type WebSearchRoot, elementR
|
|
|
11
11
|
export { ANCHOR_MARGIN_PX, DEFAULT_FUZZY_THRESHOLD, FUZZY_MARGIN, INTERACTIVE_ROLES, MAX_XPATH_RESULTS, type MethodMatch, type ScoredElement, matchMethod, relationDistance, } from './methods.js';
|
|
12
12
|
export { type ResolveWebTargetOptions, type WebFrameEntry, type WebTargetMatches, describeCandidate, enterFrames, resolveAllWebTargets, resolveWebTarget, } from './resolve.js';
|
|
13
13
|
export { DEFAULT_SNAPSHOT_MAX_NODES, type HydratedSnapshot, MAX_SNAPSHOT_DEPTH, MAX_SNAPSHOT_TEXT, type SerializeTreeSnapshotOptions, UI_TREE_SNAPSHOT_VERSION, type UiTreeSnapshot, type UiTreeSnapshotChild, type UiTreeSnapshotNode, hydrateTreeSnapshot, serializeTreeSnapshot, snapshotUrl, } from './snapshot.js';
|
|
14
|
+
export { MASKED_MARKER, MAX_MASKED_PATHS, type MaskSnapshotOptions, type MaskedSnapshot, maskSnapshot, } from './snapshot-mask.js';
|
|
15
|
+
export { MAX_SNAPSHOT_NAME, MAX_SNAPSHOT_PATH_LENGTH, MAX_SNAPSHOT_WALK, SNAPSHOT_ROOT_PATH, type SnapshotEdge, type SnapshotEntry, type SnapshotIndex, attributeOf, indexSnapshot, isSensitiveSnapshotEntry, isSnapshotEditingHost, isSnapshotPath, snapshotFrameDepth, snapshotHosts, snapshotName, snapshotNodeAt, snapshotRole, snapshotText, walkSnapshot, } from './snapshot-tree.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Implicit ARIA roles by tag and input type, and the roles that take their
|
|
3
|
+
* name from their content (WAI-ARIA 1.2, accname 1.2 step 2F). Pure tables
|
|
4
|
+
* with no DOM use, shared by the DOM role computation (`aria.ts`) and the
|
|
5
|
+
* snapshot role computation the heal question uses (`snapshot-tree.ts`), so
|
|
6
|
+
* both report the same role for the same element.
|
|
7
|
+
*/
|
|
8
|
+
export declare const INPUT_ROLES: Record<string, string>;
|
|
9
|
+
export declare const TAG_ROLES: Record<string, string>;
|
|
10
|
+
/** Roles whose accessible name comes from their content (accname step 2F). */
|
|
11
|
+
export declare const NAME_FROM_CONTENT: Set<string>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `maskSnapshot` (plan P4-06a, threat R1 of document 24): the copy of a tree
|
|
3
|
+
* snapshot that may leave the desk for healing.
|
|
4
|
+
*
|
|
5
|
+
* A snapshot already holds no form values (`serializeTreeSnapshot`), but it
|
|
6
|
+
* keeps the visible text of the page. Before a heal sends the tree to the
|
|
7
|
+
* service (and from there, masked again, to a model), every element that is
|
|
8
|
+
* masked loses its words and keeps only what places it on the page:
|
|
9
|
+
*
|
|
10
|
+
* - elements named in `maskedPaths` (a desk or a person marked them), and
|
|
11
|
+
* with `sensitive` (the default), every password, one-time-code, card or
|
|
12
|
+
* secret field, anything inside such a field, and anything marked
|
|
13
|
+
* sensitive (`data-fg-sensitive`, `data-sensitive`, `data-private`);
|
|
14
|
+
* - a masked element keeps its tag, bounds, hidden flag and identifying
|
|
15
|
+
* attributes (role, type, id, name, test ids, structural ARIA); it loses
|
|
16
|
+
* its texts (each becomes an empty text, so node paths do not move), its descriptive attributes (labels, titles, placeholders,
|
|
17
|
+
* alt, value, href and free-text ARIA), and so do all its descendants,
|
|
18
|
+
* shadow content and frames included; it gains `data-fg-sensitive` so a
|
|
19
|
+
* later reader (the heal question, a hydrated replay) treats it as sensitive;
|
|
20
|
+
* - the bounds of every outermost masked element are returned as
|
|
21
|
+
* `screenshotMask`, in the top page's coordinates (an element inside a
|
|
22
|
+
* frame is moved by its frame's position; frame borders are not added),
|
|
23
|
+
* for the desk to paint over the screenshot before it uploads it (the
|
|
24
|
+
* worker and the extension do the painting).
|
|
25
|
+
*
|
|
26
|
+
* The input is never changed. Pure: no DOM is needed.
|
|
27
|
+
*/
|
|
28
|
+
import type { UiTreeSnapshot } from './snapshot.js';
|
|
29
|
+
import type { WebRect } from './types.js';
|
|
30
|
+
/** The marker a masked element gains. */
|
|
31
|
+
export declare const MASKED_MARKER = "data-fg-sensitive";
|
|
32
|
+
/** Most paths `maskedPaths` may name; more are ignored. */
|
|
33
|
+
export declare const MAX_MASKED_PATHS = 1000;
|
|
34
|
+
export interface MaskSnapshotOptions {
|
|
35
|
+
/** Node paths to mask, with everything inside them. Paths that are not valid or name no element are ignored. */
|
|
36
|
+
maskedPaths?: readonly string[];
|
|
37
|
+
/** Also mask sensitive elements and secret fields. Absent means true. */
|
|
38
|
+
sensitive?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface MaskedSnapshot {
|
|
41
|
+
/** The masked copy. */
|
|
42
|
+
snapshot: UiTreeSnapshot;
|
|
43
|
+
/** The paths of the outermost masked elements, in document order. */
|
|
44
|
+
maskedPaths: string[];
|
|
45
|
+
/** The bounds of the outermost masked elements that have bounds: the rectangles to paint over a screenshot. */
|
|
46
|
+
screenshotMask: WebRect[];
|
|
47
|
+
}
|
|
48
|
+
/** Mask a snapshot for healing. See the module comment for what is masked and what is kept. */
|
|
49
|
+
export declare function maskSnapshot(snapshot: UiTreeSnapshot, options?: MaskSnapshotOptions): MaskedSnapshot;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { UiTreeSnapshot, UiTreeSnapshotNode } from './snapshot.js';
|
|
2
|
+
/** The path of the root element. */
|
|
3
|
+
export declare const SNAPSHOT_ROOT_PATH = "/";
|
|
4
|
+
/** Longest node path accepted. */
|
|
5
|
+
export declare const MAX_SNAPSHOT_PATH_LENGTH = 1024;
|
|
6
|
+
/** Most elements a walk visits; a snapshot holds at most 5,000 nodes by default. */
|
|
7
|
+
export declare const MAX_SNAPSHOT_WALK = 100000;
|
|
8
|
+
/** Longest name or text the snapshot readers return. */
|
|
9
|
+
export declare const MAX_SNAPSHOT_NAME = 200;
|
|
10
|
+
/** How an element was reached from its parent: as a child, a shadow child, or a frame's document element. */
|
|
11
|
+
export type SnapshotEdge = 'root' | 'c' | 's' | 'f';
|
|
12
|
+
/** One element of a snapshot, with where it sits. */
|
|
13
|
+
export interface SnapshotEntry {
|
|
14
|
+
node: UiTreeSnapshotNode;
|
|
15
|
+
path: string;
|
|
16
|
+
edge: SnapshotEdge;
|
|
17
|
+
parent: SnapshotEntry | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The search root the element belongs to: `/` for the top document, the
|
|
20
|
+
* frame document element's path for a frame, `<host path>#shadow` for a
|
|
21
|
+
* shadow root. Selectors and uniqueness are judged within one scope.
|
|
22
|
+
*/
|
|
23
|
+
scope: string;
|
|
24
|
+
/** Position in document order (the walk order). */
|
|
25
|
+
order: number;
|
|
26
|
+
}
|
|
27
|
+
/** True for a path of the node path grammar. */
|
|
28
|
+
export declare function isSnapshotPath(path: unknown): path is string;
|
|
29
|
+
/** Every element of a snapshot in document order: an element, its children, its shadow children, then its frame. */
|
|
30
|
+
export declare function walkSnapshot(snapshot: Pick<UiTreeSnapshot, 'root'>): SnapshotEntry[];
|
|
31
|
+
/** The element at a path, or undefined when the path is not valid or names no element. */
|
|
32
|
+
export declare function snapshotNodeAt(snapshot: Pick<UiTreeSnapshot, 'root'>, path: string): UiTreeSnapshotNode | undefined;
|
|
33
|
+
/** The value of an attribute of a snapshot element, or undefined. */
|
|
34
|
+
export declare function attributeOf(node: UiTreeSnapshotNode, name: string): string | undefined;
|
|
35
|
+
/** The element itself carries a sensitive marker. */
|
|
36
|
+
export declare function hasSnapshotMarker(node: UiTreeSnapshotNode): boolean;
|
|
37
|
+
/** The element or an ancestor (across shadow roots and frames) carries a sensitive marker. */
|
|
38
|
+
export declare function isMarkedInSnapshot(entry: SnapshotEntry): boolean;
|
|
39
|
+
/** True for an element whose own `contenteditable` makes it editable (anything but "false"). */
|
|
40
|
+
export declare function isSnapshotEditingHost(node: UiTreeSnapshotNode): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* True when a snapshot element holds or shows data that must not leave the
|
|
43
|
+
* desk: a password, one-time-code, card or secret field, anything inside
|
|
44
|
+
* such a field, and anything marked sensitive (itself or an ancestor).
|
|
45
|
+
*/
|
|
46
|
+
export declare function isSensitiveSnapshotEntry(entry: SnapshotEntry): boolean;
|
|
47
|
+
/** The visible text of an element: its texts and its visible descendants' (shadow content included, frames not). */
|
|
48
|
+
export declare function snapshotText(node: UiTreeSnapshotNode, max?: number): string;
|
|
49
|
+
/** The role of a snapshot element: the first token of `role`, else the implicit role, else ''. */
|
|
50
|
+
export declare function snapshotRole(entry: SnapshotEntry): string;
|
|
51
|
+
/** Index of a scope: the elements of each scope, and its ids. */
|
|
52
|
+
export interface SnapshotIndex {
|
|
53
|
+
entries: SnapshotEntry[];
|
|
54
|
+
byPath: Map<string, SnapshotEntry>;
|
|
55
|
+
/** Elements by scope, in document order. */
|
|
56
|
+
byScope: Map<string, SnapshotEntry[]>;
|
|
57
|
+
}
|
|
58
|
+
/** Walk a snapshot once and index it by path and by scope. */
|
|
59
|
+
export declare function indexSnapshot(snapshot: Pick<UiTreeSnapshot, 'root'>): SnapshotIndex;
|
|
60
|
+
/** The accessible name of a snapshot element, as far as a snapshot allows. Sensitive elements have no name. */
|
|
61
|
+
export declare function snapshotName(entry: SnapshotEntry, index: SnapshotIndex, max?: number): string;
|
|
62
|
+
/** The frame and shadow hosts an element sits in, outermost first (the iframe or host elements). */
|
|
63
|
+
export declare function snapshotHosts(entry: SnapshotEntry): SnapshotEntry[];
|
|
64
|
+
/** How many frames (not shadow roots) an element sits in. */
|
|
65
|
+
export declare function snapshotFrameDepth(entry: SnapshotEntry): number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A URL as a snapshot keeps it: http(s) and relative URLs only, without user
|
|
3
|
+
* information, query or fragment, cut after a reset-style path segment, and
|
|
4
|
+
* with recognisable credentials replaced. Anything else is dropped (null).
|
|
5
|
+
*/
|
|
6
|
+
export declare function snapshotUrl(raw: string): string | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ElementStateProbe } from './dom.js';
|
|
2
|
+
export { snapshotUrl } from './snapshot-url.js';
|
|
2
3
|
export declare const UI_TREE_SNAPSHOT_VERSION = 1;
|
|
3
4
|
/** Default most nodes (elements and texts) a snapshot keeps; the rest is cut and `truncated` is set. */
|
|
4
5
|
export declare const DEFAULT_SNAPSHOT_MAX_NODES = 5000;
|
|
@@ -36,12 +37,6 @@ export interface SerializeTreeSnapshotOptions extends ElementStateProbe {
|
|
|
36
37
|
/** Most nodes kept. Absent means `DEFAULT_SNAPSHOT_MAX_NODES`. */
|
|
37
38
|
maxNodes?: number;
|
|
38
39
|
}
|
|
39
|
-
/**
|
|
40
|
-
* A URL as a snapshot keeps it: http(s) and relative URLs only, without user
|
|
41
|
-
* information, query or fragment, cut after a reset-style path segment, and
|
|
42
|
-
* with recognisable credentials replaced. Anything else is dropped (null).
|
|
43
|
-
*/
|
|
44
|
-
export declare function snapshotUrl(raw: string): string | null;
|
|
45
40
|
/** Serialise a live document into a value-free tree snapshot. */
|
|
46
41
|
export declare function serializeTreeSnapshot(document: Document, options?: SerializeTreeSnapshotOptions): UiTreeSnapshot;
|
|
47
42
|
/** The result of hydration: the probe that reports recorded bounds and visibility to `resolveWebTarget`. */
|
package/dist/target.js
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SNAPSHOT_ROOT_PATH2,
|
|
3
|
+
MAX_SNAPSHOT_PATH_LENGTH2,
|
|
4
|
+
MAX_SNAPSHOT_WALK2,
|
|
5
|
+
MAX_SNAPSHOT_NAME2,
|
|
6
|
+
isSnapshotPath2,
|
|
7
|
+
walkSnapshot2,
|
|
8
|
+
snapshotNodeAt2,
|
|
9
|
+
attributeOf2,
|
|
10
|
+
isSnapshotEditingHost2,
|
|
11
|
+
isSensitiveSnapshotEntry2,
|
|
12
|
+
snapshotText2,
|
|
13
|
+
snapshotRole2,
|
|
14
|
+
indexSnapshot2,
|
|
15
|
+
snapshotName2,
|
|
16
|
+
snapshotHosts2,
|
|
17
|
+
snapshotFrameDepth2,
|
|
18
|
+
MASKED_MARKER2,
|
|
19
|
+
MAX_MASKED_PATHS2,
|
|
20
|
+
maskSnapshot2
|
|
21
|
+
} from "./index-zhbwhdya.js";
|
|
1
22
|
import {
|
|
2
23
|
WEB_TARGET_ERROR_CODES2,
|
|
3
24
|
MAX_CANDIDATES2,
|
|
@@ -17,20 +38,10 @@ import {
|
|
|
17
38
|
DEFAULT_SNAPSHOT_MAX_NODES2,
|
|
18
39
|
MAX_SNAPSHOT_DEPTH2,
|
|
19
40
|
MAX_SNAPSHOT_TEXT2,
|
|
20
|
-
snapshotUrl2,
|
|
21
41
|
serializeTreeSnapshot2,
|
|
22
42
|
hydrateTreeSnapshot2
|
|
23
|
-
} from "./index-
|
|
43
|
+
} from "./index-qg9yfr7r.js";
|
|
24
44
|
import {
|
|
25
|
-
SENSITIVE_MARKERS2,
|
|
26
|
-
hasSensitiveMarker2,
|
|
27
|
-
MAX_COMPARED_TEXT2,
|
|
28
|
-
normaliseText2,
|
|
29
|
-
sameText2,
|
|
30
|
-
containsText2,
|
|
31
|
-
editDistance2,
|
|
32
|
-
textSimilarity2,
|
|
33
|
-
clip2,
|
|
34
45
|
MAX_NAME_LENGTH3,
|
|
35
46
|
MAX_VISIBLE_TEXT2,
|
|
36
47
|
roleOf2,
|
|
@@ -46,25 +57,44 @@ import {
|
|
|
46
57
|
elementsUnder2,
|
|
47
58
|
isSecretFieldName2,
|
|
48
59
|
isSensitiveElement2
|
|
49
|
-
} from "./index-
|
|
60
|
+
} from "./index-mhv6a02p.js";
|
|
61
|
+
import {
|
|
62
|
+
SENSITIVE_MARKERS2,
|
|
63
|
+
hasSensitiveMarker2,
|
|
64
|
+
MAX_COMPARED_TEXT2,
|
|
65
|
+
normaliseText2,
|
|
66
|
+
sameText2,
|
|
67
|
+
containsText2,
|
|
68
|
+
editDistance2,
|
|
69
|
+
textSimilarity2,
|
|
70
|
+
clip2,
|
|
71
|
+
snapshotUrl2
|
|
72
|
+
} from "./index-t55wvhvh.js";
|
|
50
73
|
export {
|
|
51
74
|
ANCHOR_MARGIN_PX2 as ANCHOR_MARGIN_PX,
|
|
52
75
|
DEFAULT_FUZZY_THRESHOLD2 as DEFAULT_FUZZY_THRESHOLD,
|
|
53
76
|
DEFAULT_SNAPSHOT_MAX_NODES2 as DEFAULT_SNAPSHOT_MAX_NODES,
|
|
54
77
|
FUZZY_MARGIN2 as FUZZY_MARGIN,
|
|
55
78
|
INTERACTIVE_ROLES2 as INTERACTIVE_ROLES,
|
|
79
|
+
MASKED_MARKER2 as MASKED_MARKER,
|
|
56
80
|
MAX_CANDIDATES2 as MAX_CANDIDATES,
|
|
57
81
|
MAX_CANDIDATE_NAME2 as MAX_CANDIDATE_NAME,
|
|
58
82
|
MAX_COMPARED_TEXT2 as MAX_COMPARED_TEXT,
|
|
83
|
+
MAX_MASKED_PATHS2 as MAX_MASKED_PATHS,
|
|
59
84
|
MAX_NAME_LENGTH3 as MAX_NAME_LENGTH,
|
|
60
85
|
MAX_SNAPSHOT_DEPTH2 as MAX_SNAPSHOT_DEPTH,
|
|
86
|
+
MAX_SNAPSHOT_NAME2 as MAX_SNAPSHOT_NAME,
|
|
87
|
+
MAX_SNAPSHOT_PATH_LENGTH2 as MAX_SNAPSHOT_PATH_LENGTH,
|
|
61
88
|
MAX_SNAPSHOT_TEXT2 as MAX_SNAPSHOT_TEXT,
|
|
89
|
+
MAX_SNAPSHOT_WALK2 as MAX_SNAPSHOT_WALK,
|
|
62
90
|
MAX_VISIBLE_TEXT2 as MAX_VISIBLE_TEXT,
|
|
63
91
|
MAX_XPATH_RESULTS2 as MAX_XPATH_RESULTS,
|
|
64
92
|
SENSITIVE_MARKERS2 as SENSITIVE_MARKERS,
|
|
93
|
+
SNAPSHOT_ROOT_PATH2 as SNAPSHOT_ROOT_PATH,
|
|
65
94
|
UI_TREE_SNAPSHOT_VERSION2 as UI_TREE_SNAPSHOT_VERSION,
|
|
66
95
|
WEB_TARGET_ERROR_CODES2 as WEB_TARGET_ERROR_CODES,
|
|
67
96
|
accessibleName2 as accessibleName,
|
|
97
|
+
attributeOf2 as attributeOf,
|
|
68
98
|
clip2 as clip,
|
|
69
99
|
containsText2 as containsText,
|
|
70
100
|
describeCandidate2 as describeCandidate,
|
|
@@ -74,12 +104,17 @@ export {
|
|
|
74
104
|
enterFrames2 as enterFrames,
|
|
75
105
|
hasSensitiveMarker2 as hasSensitiveMarker,
|
|
76
106
|
hydrateTreeSnapshot2 as hydrateTreeSnapshot,
|
|
107
|
+
indexSnapshot2 as indexSnapshot,
|
|
77
108
|
isElementEnabled2 as isElementEnabled,
|
|
78
109
|
isElementVisible2 as isElementVisible,
|
|
79
110
|
isSecretFieldName2 as isSecretFieldName,
|
|
80
111
|
isSensitiveElement2 as isSensitiveElement,
|
|
112
|
+
isSensitiveSnapshotEntry2 as isSensitiveSnapshotEntry,
|
|
113
|
+
isSnapshotEditingHost2 as isSnapshotEditingHost,
|
|
114
|
+
isSnapshotPath2 as isSnapshotPath,
|
|
81
115
|
isTypedContent2 as isTypedContent,
|
|
82
116
|
labelName2 as labelName,
|
|
117
|
+
maskSnapshot2 as maskSnapshot,
|
|
83
118
|
matchMethod2 as matchMethod,
|
|
84
119
|
matchesRoleAndName2 as matchesRoleAndName,
|
|
85
120
|
normaliseText2 as normaliseText,
|
|
@@ -90,7 +125,14 @@ export {
|
|
|
90
125
|
roleOf2 as roleOf,
|
|
91
126
|
sameText2 as sameText,
|
|
92
127
|
serializeTreeSnapshot2 as serializeTreeSnapshot,
|
|
128
|
+
snapshotFrameDepth2 as snapshotFrameDepth,
|
|
129
|
+
snapshotHosts2 as snapshotHosts,
|
|
130
|
+
snapshotName2 as snapshotName,
|
|
131
|
+
snapshotNodeAt2 as snapshotNodeAt,
|
|
132
|
+
snapshotRole2 as snapshotRole,
|
|
133
|
+
snapshotText2 as snapshotText,
|
|
93
134
|
snapshotUrl2 as snapshotUrl,
|
|
94
135
|
textSimilarity2 as textSimilarity,
|
|
95
|
-
visibleText2 as visibleText
|
|
136
|
+
visibleText2 as visibleText,
|
|
137
|
+
walkSnapshot2 as walkSnapshot
|
|
96
138
|
};
|
package/dist/testing.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDomDriver2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-8w31tpfq.js";
|
|
4
4
|
import {
|
|
5
5
|
UiDriverError2,
|
|
6
6
|
createVirtualClock2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-yc0jgph6.js";
|
|
8
8
|
|
|
9
9
|
// src/testing/fixtures/ambiguous.ts
|
|
10
10
|
var AMBIGUOUS_HTML = `<!doctype html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/ui-engine",
|
|
3
|
-
"version": "2026.
|
|
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
|
|
3
|
+
"version": "2026.1129.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 and UI step healing for FluidGrids RPA and BotManor Stewards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Burdenoff Consultancy Services Pvt. Ltd.",
|
|
7
7
|
"repository": {
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
"types": "./dist/analyze.d.ts",
|
|
55
55
|
"import": "./dist/analyze.js"
|
|
56
56
|
},
|
|
57
|
+
"./heal": {
|
|
58
|
+
"types": "./dist/heal.d.ts",
|
|
59
|
+
"import": "./dist/heal.js"
|
|
60
|
+
},
|
|
57
61
|
"./drivers": {
|
|
58
62
|
"types": "./dist/drivers.d.ts",
|
|
59
63
|
"import": "./dist/drivers.js"
|
|
@@ -72,7 +76,7 @@
|
|
|
72
76
|
"LICENSE"
|
|
73
77
|
],
|
|
74
78
|
"scripts": {
|
|
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",
|
|
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",
|
|
76
80
|
"type:check": "boff gate -- bun check --no-pretty",
|
|
77
81
|
"lint": "eslint .",
|
|
78
82
|
"lint:fix": "eslint . --fix",
|