@burdenoff/ui-engine 2026.1127.5 → 2026.1129.1
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 +42 -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-2g060ryg.js} +2 -2
- 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 +125 -23
- 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.js +10 -8
- 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
|
@@ -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.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.",
|
|
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",
|