@burdenoff/ui-engine 2026.1129.1 → 2026.1129.3

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 CHANGED
@@ -63,6 +63,18 @@ A UI script is the portable form of a UI sequence that a desk runs: a paired bro
63
63
  | `fromBrowserActionSteps` | Run in Browser steps (`internal:browser-action`) | Keeps every field a 0.3.0 extension reads |
64
64
  | `toBrowserActionSteps` | Lowering to Run in Browser steps | Null unless the script fits the legacy contract: at most 100 steps and 256 KB, only the 14 legacy actions, one CSS selector per target (or one text for click and wait), step waits of at most 60 s (the legacy extension's cap), literal or supplied input values, no script wait or screenshot settings beyond the defaults, and no flow steps, verification, retries or breakpoints |
65
65
  | `fromRemoteBrowserSteps` | Remote Browser `runSteps` (`store/remotebrowser` 1.0.0) | Playwright `css=`, `text=`, `xpath=`, `id=` and `data-testid=` selectors; other engines are refused |
66
+ | `scriptFromComputerUseActions` | The actions an AI Step took (computer-use tool calls with the worker's `_uiTarget` fingerprints), for Save as steps | Returns `{ script, elements, skipped }` and saves nothing. See below |
67
+
68
+ **Save as steps.** `scriptFromComputerUseActions(actions, { name?, allowedHosts?, loginUrl?, loginSecretRefs?, inputDefaults?, trustFlatRecords? })` converts a recorded AI Step run (plan P4-06b, document 24 threats I3 and I7). Each record is the model's arguments (`action`, `url`, `x`, `y`, `text`, `key`, `deltaX`, `deltaY`, `milliseconds`, `ref`, directly or under `args`, as an object or JSON text; under `args` the worker fields are read only from the record) plus what the worker recorded (`ok`, `pageUrl`, `secretRef`, `screenshotFileId`, `_uiTarget` with `role`, `name`, `testId`, `cssPath`, `text`, `frameOrigin`, `frame`, `inFrame`, `editable`, `masked`, `inputType`). The rules:
69
+
70
+ - Pass the nested form, `{ args: <the model's tool-call arguments>, ok, pageUrl, secretRef, screenshotFileId, _uiTarget }`. A flat record (no `args`) cannot show which of its fields the model sent, so by default one that carries a worker field is skipped as `UNTRUSTED_RECORD`, and a flat record with only model arguments is read for those. `trustFlatRecords: true` reads flat records whole; use it only for records the caller built itself, because a model that can set `secretRef` or `_uiTarget` could send a sign-in secret to a field it picks (document 24 I3).
71
+ - `navigate`, `click_ref`, `type_ref`, `key`, `scroll` and `wait` become steps; `click` and `double_click` become steps only with a recorded element. A target is built as test id, role and name, CSS path, then exact text (`targetFromUiFingerprint`).
72
+ - Secrets are typed by reference only: `type_login_username` and `type_login_password` become `typeSecret` with `login:username` and `login:password` (or `loginSecretRefs`), and typing recorded with a `secretRef` keeps that reference. `expectedOrigin` is the field's frame origin.
73
+ - Typed text becomes a declared input named after the field (`Invoice number` gives `invoiceNumber`), typed with `clear: false` as the tool does; with `inputDefaults` (default true) the typed value is the input's default. Text typed into a masked or password field, into a field nobody recorded, or that looks like a credential is skipped and never copied.
74
+ - Skipped, with a reason code and no values: `ACTION_FAILED`, `FIELD_UNKNOWN`, `FRAME_NOT_ADDRESSABLE` (another origin's frame with no recorded frame chain), `HOST_NOT_ALLOWED`, `INVALID_ACTION`, `INVALID_URL`, `LOGIN_PAGE_UNKNOWN`, `NO_EFFECT`, `NO_ELEMENT` (a click at a position with no element), `OBSERVATION_ONLY` (screenshots), `SECRET_TARGET_UNKNOWN`, `SECRET_VALUE`, `TOO_MANY_INPUTS`, `UNKNOWN_ACTION`, `UNTRUSTED_RECORD` (a flat record with worker fields, without `trustFlatRecords`), `URL_CARRIES_SECRET`.
75
+ - Untargeted typing goes into the field that last took the focus (a click on an element that takes text, a `type_ref` or a login action); a key press, a navigation, a click elsewhere or a skipped action forgets it. An element in a child frame needs its recorded `frame` chain. A scroll with no recorded element becomes a page scroll.
76
+ - `elements` lists each distinct target once, with a name, a key, the steps that use it and the first screenshot file, for the person to save to the element library. Steps keep inline targets.
77
+ - It throws `UiScriptError` only for an unusable call (not a list, more than 2,000 actions, more than 500 converted steps, invalid options) or a whole-script parse limit such as `SCRIPT_TOO_LARGE`. The schema and its hash do not change.
66
78
 
67
79
  **Descriptions.** `describeStep(step, elements)` returns `{ key, vars, fallback }`, with keys under `fluidgrids.uiScript.step.*` for `tr(key, vars)` and an English fallback; `UI_SCRIPT_STEP_MESSAGES` holds every English template.
68
80
 
@@ -14,15 +14,29 @@ import {
14
14
  parseRecording2
15
15
  } from "./index-cs6acyjn.js";
16
16
  import {
17
+ maskUrl2
18
+ } from "./index-bnvmt4wf.js";
19
+ import {
20
+ MAX_SCRIPT_STEPS2,
21
+ MAX_SCRIPT_INPUTS2,
22
+ MAX_FRAME_DEPTH2,
17
23
  MAX_LIST_ITEMS2,
18
24
  MAX_LIST_PAGES2,
19
25
  MAX_STEP_TIMEOUT_MS2,
26
+ MAX_KEYS2,
27
+ MAX_SELECTOR_LENGTH2,
28
+ MAX_URL_LENGTH2,
29
+ MAX_LABEL_LENGTH2,
30
+ MAX_TEXT_LENGTH2,
20
31
  MAX_INTENT_LENGTH2,
21
32
  LEGACY_MAX_BROWSER_STEPS2,
22
33
  LEGACY_MAX_STEPS_BYTES2,
23
34
  LEGACY_MAX_STEP_TIMEOUT_MS2,
24
35
  jsonByteLength2
25
36
  } from "./index-20bbwwc9.js";
37
+ import {
38
+ containsCredential
39
+ } from "./index-mgztm37r.js";
26
40
  // src/script/hash.ts
27
41
  var UI_SCRIPT_SCHEMA_HASH2 = "e6860649ad1cba906fb704ce4b62b3ea4380203e6628c809571602f4d0947884";
28
42
  function schemaHashOf2(jsonSchema) {
@@ -807,4 +821,481 @@ function toRecordedStep(step, fallbackIntent) {
807
821
  return stop2();
808
822
  }
809
823
  }
810
- export { UI_SCRIPT_SCHEMA_HASH2, schemaHashOf2, UI_SCRIPT_SCHEMA_TITLE2, uiScriptJsonSchema2, BROWSER_STEP_ACTIONS2, fromBrowserActionSteps2, toBrowserActionSteps2, targetFromPlaywrightSelector2, fromRemoteBrowserSteps2, fromRecording2, toRecording2 };
824
+ // src/script/adapters/from-computer-use.ts
825
+ var COMPUTER_USE_ACTIONS2 = [
826
+ "screenshot",
827
+ "navigate",
828
+ "click",
829
+ "double_click",
830
+ "click_ref",
831
+ "type",
832
+ "type_ref",
833
+ "key",
834
+ "scroll",
835
+ "wait",
836
+ "open_login_page",
837
+ "type_login_username",
838
+ "type_login_password"
839
+ ];
840
+ var MAX_COMPUTER_USE_ACTIONS2 = 4 * MAX_SCRIPT_STEPS2;
841
+ var COMPUTER_USE_MAX_WAIT_MS2 = 1e4;
842
+ var COMPUTER_USE_DEFAULT_WAIT_MS2 = 1000;
843
+ var DEFAULT_LOGIN_SECRET_REFS2 = { username: "login:username", password: "login:password" };
844
+ var COMPUTER_USE_SKIP_REASONS2 = [
845
+ "ACTION_FAILED",
846
+ "FIELD_UNKNOWN",
847
+ "FRAME_NOT_ADDRESSABLE",
848
+ "HOST_NOT_ALLOWED",
849
+ "INVALID_ACTION",
850
+ "INVALID_URL",
851
+ "LOGIN_PAGE_UNKNOWN",
852
+ "NO_EFFECT",
853
+ "NO_ELEMENT",
854
+ "OBSERVATION_ONLY",
855
+ "SECRET_TARGET_UNKNOWN",
856
+ "SECRET_VALUE",
857
+ "TOO_MANY_INPUTS",
858
+ "UNKNOWN_ACTION",
859
+ "UNTRUSTED_RECORD",
860
+ "URL_CARRIES_SECRET"
861
+ ];
862
+ var SECRET_REF_PATTERN = /^[A-Za-z0-9][A-Za-z0-9:/._#-]{0,254}$/;
863
+ var FILE_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;
864
+ var KEY_PART_PATTERN = /^[^\s+]{1,32}$/;
865
+ var HOST_PATTERN = /^(?:\*\.)?[a-z0-9](?:[a-z0-9-]{0,62})(?:\.[a-z0-9](?:[a-z0-9-]{0,62}))*$/;
866
+ var SECRET_INPUT_TYPES = new Set(["password"]);
867
+ var EDITABLE_ROLES = new Set(["textbox", "searchbox", "combobox", "spinbutton"]);
868
+ var ACTION_SET = new Set(COMPUTER_USE_ACTIONS2);
869
+ function isComputerUseAction(value) {
870
+ return ACTION_SET.has(value);
871
+ }
872
+ var MESSAGES = {
873
+ ACTION_FAILED: "The action failed in the run, so it is not replayed.",
874
+ FIELD_UNKNOWN: "Text typed into a field that was not recorded, so it cannot be checked for secrets.",
875
+ FRAME_NOT_ADDRESSABLE: "The element is in a frame of another origin that the run did not name.",
876
+ HOST_NOT_ALLOWED: "The address is outside the allowed sites.",
877
+ INVALID_ACTION: "The action is missing a value or has a value out of range.",
878
+ INVALID_URL: "The address is not an http or https address.",
879
+ LOGIN_PAGE_UNKNOWN: "The sign-in page address is not known, so the step cannot be replayed.",
880
+ NO_EFFECT: "The action changes nothing.",
881
+ NO_ELEMENT: "A click at a position with no element recorded to name it.",
882
+ OBSERVATION_ONLY: "A screenshot only observes the page.",
883
+ SECRET_TARGET_UNKNOWN: "A secret typed into a field that was not recorded.",
884
+ SECRET_VALUE: "Typed text that is a secret is never saved; use a sign-in step instead.",
885
+ TOO_MANY_INPUTS: `A script declares at most ${MAX_SCRIPT_INPUTS2} inputs.`,
886
+ UNKNOWN_ACTION: "The action is not one Save as steps converts.",
887
+ UNTRUSTED_RECORD: "The record mixes the model arguments with the run fields, so the run fields cannot be trusted.",
888
+ URL_CARRIES_SECRET: "The address carries a token or credential, so it is not saved."
889
+ };
890
+ function isRecord3(value) {
891
+ return typeof value === "object" && value !== null && !Array.isArray(value);
892
+ }
893
+ function str(value, max) {
894
+ if (typeof value !== "string")
895
+ return;
896
+ const text = value.trim();
897
+ return text && text.length <= max ? text : undefined;
898
+ }
899
+ function int(value) {
900
+ const parsed = typeof value === "string" && value.trim() !== "" ? Number(value) : value;
901
+ return typeof parsed === "number" && Number.isFinite(parsed) ? Math.round(parsed) : undefined;
902
+ }
903
+ function httpOrigin(value) {
904
+ if (typeof value !== "string" || value.length > MAX_URL_LENGTH2)
905
+ return;
906
+ try {
907
+ const url = new URL(value);
908
+ return url.protocol === "https:" || url.protocol === "http:" ? url.origin : undefined;
909
+ } catch {
910
+ return;
911
+ }
912
+ }
913
+ function normaliseHosts(hosts) {
914
+ if (hosts === undefined)
915
+ return;
916
+ return hosts.map((host) => {
917
+ const value = host.trim().toLowerCase();
918
+ if (!HOST_PATTERN.test(value)) {
919
+ throw new UiScriptError2("INVALID_SCRIPT", `The allowed host "${host.slice(0, 80)}" is not a host or *.host`);
920
+ }
921
+ return value;
922
+ });
923
+ }
924
+ function hostAllowed(host, allowed) {
925
+ const subject = host.toLowerCase();
926
+ return allowed.some((entry) => entry.startsWith("*.") ? subject.endsWith(entry.slice(1)) : subject === entry);
927
+ }
928
+ function checkSecretRef(value, fallback, which) {
929
+ const ref = value ?? fallback;
930
+ if (!SECRET_REF_PATTERN.test(ref)) {
931
+ throw new UiScriptError2("INVALID_SCRIPT", `The ${which} secret reference is not a valid reference`);
932
+ }
933
+ return ref;
934
+ }
935
+ function label(value) {
936
+ const text = str(value, MAX_LABEL_LENGTH2);
937
+ return text !== undefined && !containsCredential(text) ? text : undefined;
938
+ }
939
+ function targetFromUiFingerprint2(value) {
940
+ if (!isRecord3(value))
941
+ return;
942
+ const methods = [];
943
+ const testId = label(value.testId);
944
+ if (testId !== undefined)
945
+ methods.push({ kind: "testId", value: testId });
946
+ const role = label(value.role);
947
+ const name = label(value.name);
948
+ if (role !== undefined && name !== undefined)
949
+ methods.push({ kind: "role", role, name });
950
+ const css = str(value.cssPath, MAX_SELECTOR_LENGTH2);
951
+ if (css !== undefined && !containsCredential(css))
952
+ methods.push({ kind: "css", selector: css });
953
+ const text = label(value.text);
954
+ if (text !== undefined && text !== name)
955
+ methods.push({ kind: "text", text, exact: true });
956
+ if (methods.length === 0)
957
+ return;
958
+ const frame = Array.isArray(value.frame) ? value.frame : undefined;
959
+ if (frame === undefined || frame.length === 0)
960
+ return { methods };
961
+ const selectors = frame.map((item) => str(item, MAX_SELECTOR_LENGTH2));
962
+ if (frame.length > MAX_FRAME_DEPTH2 || selectors.some((item) => item === undefined || containsCredential(item))) {
963
+ return;
964
+ }
965
+ return { methods, frame: selectors.filter((item) => item !== undefined) };
966
+ }
967
+ function isEditableField(value) {
968
+ if (!isRecord3(value))
969
+ return false;
970
+ const role = typeof value.role === "string" ? value.role.trim().toLowerCase() : "";
971
+ return value.editable === true || typeof value.inputType === "string" || isSecretField(value) || EDITABLE_ROLES.has(role);
972
+ }
973
+ function frameUnaddressable(value, target) {
974
+ if (!isRecord3(value))
975
+ return false;
976
+ if (target)
977
+ return value.inFrame === true && target.frame === undefined;
978
+ return Array.isArray(value.frame) && targetFromUiFingerprint2({ ...value, frame: undefined }) !== undefined;
979
+ }
980
+ function isSecretField(value) {
981
+ if (!isRecord3(value))
982
+ return false;
983
+ const inputType = typeof value.inputType === "string" ? value.inputType.trim().toLowerCase() : "";
984
+ return value.masked === true || SECRET_INPUT_TYPES.has(inputType);
985
+ }
986
+ function inputNameFrom(fieldName) {
987
+ const words = (fieldName ?? "").normalize("NFKD").replace(/[^A-Za-z0-9]+/g, " ").trim().split(" ").filter(Boolean).slice(0, 6);
988
+ const joined = words.map((word, index) => index === 0 ? word.toLowerCase() : `${word.charAt(0).toUpperCase()}${word.slice(1).toLowerCase()}`).join("").slice(0, 48);
989
+ return /^[A-Za-z]/.test(joined) ? joined : "text";
990
+ }
991
+ function elementKeyFrom(name, used) {
992
+ const fromName = inputNameFrom(name);
993
+ const base = fromName === "text" ? "element" : fromName;
994
+ let key = base;
995
+ for (let n = 2;used.has(key); n += 1)
996
+ key = `${base}${n}`;
997
+ used.add(key);
998
+ return key;
999
+ }
1000
+ var MAX_ARGS_TEXT_LENGTH = 64 * 1024;
1001
+ var MODEL_ARGUMENT_KEYS = [
1002
+ "action",
1003
+ "url",
1004
+ "x",
1005
+ "y",
1006
+ "text",
1007
+ "key",
1008
+ "deltaX",
1009
+ "deltaY",
1010
+ "milliseconds",
1011
+ "ref"
1012
+ ];
1013
+ var WORKER_KEYS = ["ok", "pageUrl", "secretRef", "screenshotFileId", "_uiTarget"];
1014
+ function modelArguments(source) {
1015
+ const record = {};
1016
+ for (const key of MODEL_ARGUMENT_KEYS)
1017
+ if (key in source)
1018
+ record[key] = source[key];
1019
+ return record;
1020
+ }
1021
+ function readRecord(raw, trustFlat) {
1022
+ if (!isRecord3(raw))
1023
+ return { fields: undefined, untrusted: false };
1024
+ const args = readArgs(raw.args);
1025
+ if (args === undefined) {
1026
+ if (trustFlat)
1027
+ return { fields: raw, untrusted: false };
1028
+ return { fields: modelArguments(raw), untrusted: WORKER_KEYS.some((key) => (key in raw)) };
1029
+ }
1030
+ const record = modelArguments(args);
1031
+ if (!("action" in args) && "action" in raw)
1032
+ record.action = raw.action;
1033
+ for (const key of WORKER_KEYS)
1034
+ if (key in raw)
1035
+ record[key] = raw[key];
1036
+ return { fields: record, untrusted: false };
1037
+ }
1038
+ function readArgs(value) {
1039
+ if (isRecord3(value))
1040
+ return value;
1041
+ if (typeof value !== "string")
1042
+ return;
1043
+ if (value.length > MAX_ARGS_TEXT_LENGTH)
1044
+ return {};
1045
+ try {
1046
+ const parsed = JSON.parse(value);
1047
+ return isRecord3(parsed) ? parsed : {};
1048
+ } catch {
1049
+ return {};
1050
+ }
1051
+ }
1052
+ function scriptFromComputerUseActions2(actions, options = {}) {
1053
+ if (!Array.isArray(actions))
1054
+ throw new UiScriptError2("INVALID_SCRIPT", "The computer-use actions must be a list");
1055
+ if (actions.length > MAX_COMPUTER_USE_ACTIONS2) {
1056
+ throw new UiScriptError2("TOO_MANY_STEPS", `At most ${MAX_COMPUTER_USE_ACTIONS2} computer-use actions are converted`);
1057
+ }
1058
+ const allowedHosts = normaliseHosts(options.allowedHosts);
1059
+ const secretRefs = {
1060
+ username: checkSecretRef(options.loginSecretRefs?.username, DEFAULT_LOGIN_SECRET_REFS2.username, "user name"),
1061
+ password: checkSecretRef(options.loginSecretRefs?.password, DEFAULT_LOGIN_SECRET_REFS2.password, "password")
1062
+ };
1063
+ if (options.name !== undefined && label(options.name) === undefined) {
1064
+ throw new UiScriptError2("INVALID_SCRIPT", "The script name is empty, too long or holds a credential");
1065
+ }
1066
+ const loginUrl = options.loginUrl === undefined ? undefined : checkLoginUrl(options.loginUrl);
1067
+ const state = {
1068
+ steps: [],
1069
+ inputs: [],
1070
+ elements: new Map,
1071
+ elementKeys: new Set,
1072
+ skipped: [],
1073
+ focused: undefined
1074
+ };
1075
+ const trustFlat = options.trustFlatRecords === true;
1076
+ actions.forEach((raw, index) => {
1077
+ convertAction(state, readRecord(raw, trustFlat), index, {
1078
+ allowedHosts,
1079
+ secretRefs,
1080
+ loginUrl,
1081
+ inputDefaults: options.inputDefaults !== false
1082
+ });
1083
+ });
1084
+ if (state.steps.length === 0)
1085
+ return { script: null, elements: [], skipped: state.skipped };
1086
+ if (state.steps.length > MAX_SCRIPT_STEPS2) {
1087
+ throw new UiScriptError2("TOO_MANY_STEPS", `The actions convert to more than ${MAX_SCRIPT_STEPS2} steps`);
1088
+ }
1089
+ const script = parseUiScript2({
1090
+ scriptVersion: 1,
1091
+ ...options.name === undefined ? {} : { name: options.name.trim() },
1092
+ ...state.inputs.length > 0 ? { inputs: state.inputs } : {},
1093
+ steps: state.steps
1094
+ });
1095
+ return { script, elements: [...state.elements.values()], skipped: state.skipped };
1096
+ }
1097
+ function checkLoginUrl(value) {
1098
+ const url = httpOrigin(value) === undefined ? "" : new URL(value).toString();
1099
+ if (!url || maskUrl2(value).url !== url || containsCredential(value) || url.length > MAX_URL_LENGTH2) {
1100
+ throw new UiScriptError2("INVALID_SCRIPT", "The sign-in page address is not a plain http or https address");
1101
+ }
1102
+ return url;
1103
+ }
1104
+ function convertAction(state, read, index, context) {
1105
+ const record = read.fields;
1106
+ const name = record && typeof record.action === "string" ? record.action.trim() : "";
1107
+ const action = isComputerUseAction(name) ? name : undefined;
1108
+ const skip = (reason) => {
1109
+ state.skipped.push({ index, action: action ?? "unknown", reason, message: MESSAGES[reason] });
1110
+ if (reason !== "OBSERVATION_ONLY" && reason !== "NO_EFFECT")
1111
+ state.focused = undefined;
1112
+ };
1113
+ if (read.untrusted)
1114
+ return skip("UNTRUSTED_RECORD");
1115
+ if (!record || !action)
1116
+ return skip("UNKNOWN_ACTION");
1117
+ if (record.ok === false)
1118
+ return skip("ACTION_FAILED");
1119
+ const fingerprint = record._uiTarget;
1120
+ const target = targetFromUiFingerprint2(fingerprint);
1121
+ const pageOrigin = httpOrigin(record.pageUrl);
1122
+ const frameOrigin = isRecord3(fingerprint) ? httpOrigin(fingerprint.frameOrigin) : undefined;
1123
+ const otherOrigin = target !== undefined && target.frame === undefined && frameOrigin !== undefined && pageOrigin !== undefined && frameOrigin !== pageOrigin;
1124
+ if (otherOrigin || frameUnaddressable(fingerprint, target))
1125
+ return skip("FRAME_NOT_ADDRESSABLE");
1126
+ const id = `s${state.steps.length + 1}`;
1127
+ const push = (step, element) => {
1128
+ state.steps.push(step);
1129
+ if (element)
1130
+ propose(state, element, fingerprint, step.id, record.screenshotFileId);
1131
+ };
1132
+ switch (action) {
1133
+ case "screenshot":
1134
+ return skip("OBSERVATION_ONLY");
1135
+ case "navigate":
1136
+ case "open_login_page": {
1137
+ const address = action === "navigate" ? record.url : context.loginUrl;
1138
+ if (address === undefined)
1139
+ return skip(action === "navigate" ? "INVALID_ACTION" : "LOGIN_PAGE_UNKNOWN");
1140
+ const outcome = checkNavigation(address, context.allowedHosts);
1141
+ if (typeof outcome !== "string")
1142
+ return skip(outcome.reason);
1143
+ state.focused = undefined;
1144
+ return push({ id, action: "navigate", url: outcome });
1145
+ }
1146
+ case "click":
1147
+ case "double_click":
1148
+ case "click_ref": {
1149
+ if (!target)
1150
+ return skip("NO_ELEMENT");
1151
+ state.focused = isEditableField(fingerprint) ? { target, secret: isSecretField(fingerprint), origin: frameOrigin ?? pageOrigin } : undefined;
1152
+ return push({ id, action: action === "double_click" ? "doubleClick" : "click", target }, target);
1153
+ }
1154
+ case "type":
1155
+ case "type_ref":
1156
+ return convertTyping(state, record, action, target, { id, push, skip, frameOrigin, pageOrigin }, context);
1157
+ case "type_login_username":
1158
+ case "type_login_password": {
1159
+ if (isRecord3(fingerprint) && !target)
1160
+ return skip("SECRET_TARGET_UNKNOWN");
1161
+ const field = target ?? state.focused?.target;
1162
+ if (!field)
1163
+ return skip("SECRET_TARGET_UNKNOWN");
1164
+ const origin = target ? frameOrigin ?? pageOrigin : state.focused?.origin ?? pageOrigin;
1165
+ const secretRef = action === "type_login_username" ? context.secretRefs.username : context.secretRefs.password;
1166
+ state.focused = { target: field, secret: true, ...origin ? { origin } : {} };
1167
+ return push({ id, action: "typeSecret", target: field, secretRef, ...origin ? { expectedOrigin: origin } : {} }, field);
1168
+ }
1169
+ case "key": {
1170
+ const keys = readKeys(record.key);
1171
+ if (!keys)
1172
+ return skip("INVALID_ACTION");
1173
+ state.focused = undefined;
1174
+ return push({ id, action: "pressKey", keys });
1175
+ }
1176
+ case "scroll": {
1177
+ const dx = int(record.deltaX) ?? 0;
1178
+ const dy = int(record.deltaY) ?? 0;
1179
+ if (Math.abs(dx) > 1e4 || Math.abs(dy) > 1e4)
1180
+ return skip("INVALID_ACTION");
1181
+ if (dx === 0 && dy === 0)
1182
+ return skip("NO_EFFECT");
1183
+ return push({
1184
+ id,
1185
+ action: "scroll",
1186
+ ...target ? { target } : {},
1187
+ ...dx === 0 ? {} : { dx },
1188
+ ...dy === 0 ? {} : { dy }
1189
+ }, target);
1190
+ }
1191
+ default: {
1192
+ const given = record.milliseconds;
1193
+ const ms = given === undefined ? COMPUTER_USE_DEFAULT_WAIT_MS2 : int(given);
1194
+ if (ms === undefined || ms < 0)
1195
+ return skip("INVALID_ACTION");
1196
+ if (ms === 0)
1197
+ return skip("NO_EFFECT");
1198
+ return push({ id, action: "waitFor", milliseconds: Math.min(ms, COMPUTER_USE_MAX_WAIT_MS2) });
1199
+ }
1200
+ }
1201
+ }
1202
+ function checkNavigation(value, allowedHosts) {
1203
+ if (typeof value !== "string" || !value.trim())
1204
+ return { reason: "INVALID_ACTION" };
1205
+ const raw = value.trim();
1206
+ if (httpOrigin(raw) === undefined)
1207
+ return { reason: "INVALID_URL" };
1208
+ const url = new URL(raw).toString();
1209
+ if (maskUrl2(raw).url !== url || containsCredential(raw))
1210
+ return { reason: "URL_CARRIES_SECRET" };
1211
+ if (allowedHosts !== undefined && !hostAllowed(new URL(url).hostname, allowedHosts)) {
1212
+ return { reason: "HOST_NOT_ALLOWED" };
1213
+ }
1214
+ return url;
1215
+ }
1216
+ function readKeys(value) {
1217
+ if (typeof value !== "string")
1218
+ return;
1219
+ const combo = value.trim();
1220
+ if (combo === "+")
1221
+ return ["+"];
1222
+ const plus = combo.endsWith("++");
1223
+ const keys = [...(plus ? combo.slice(0, -2) : combo).split("+").map((part) => part.trim()), ...plus ? ["+"] : []];
1224
+ return keys.length <= MAX_KEYS2 && keys.every((key) => key === "+" || KEY_PART_PATTERN.test(key)) ? keys : undefined;
1225
+ }
1226
+ function convertTyping(state, record, action, target, helpers, context) {
1227
+ const { id, push, skip } = helpers;
1228
+ if (action === "type_ref" && !target)
1229
+ return skip("NO_ELEMENT");
1230
+ const ownFingerprint = record._uiTarget;
1231
+ if (isRecord3(ownFingerprint) && !target) {
1232
+ if (typeof record.secretRef === "string")
1233
+ return skip("SECRET_TARGET_UNKNOWN");
1234
+ return skip(isSecretField(ownFingerprint) ? "SECRET_VALUE" : "FIELD_UNKNOWN");
1235
+ }
1236
+ if (target) {
1237
+ state.focused = {
1238
+ target,
1239
+ secret: isSecretField(record._uiTarget),
1240
+ origin: helpers.frameOrigin ?? helpers.pageOrigin
1241
+ };
1242
+ }
1243
+ const field = state.focused?.target;
1244
+ const secretField = state.focused?.secret ?? false;
1245
+ const secretRef = typeof record.secretRef === "string" ? record.secretRef.trim() : undefined;
1246
+ if (secretRef !== undefined) {
1247
+ if (!SECRET_REF_PATTERN.test(secretRef))
1248
+ return skip("INVALID_ACTION");
1249
+ if (!field)
1250
+ return skip("SECRET_TARGET_UNKNOWN");
1251
+ const origin = state.focused?.origin ?? helpers.pageOrigin;
1252
+ return push({ id, action: "typeSecret", target: field, secretRef, ...origin ? { expectedOrigin: origin } : {} }, field);
1253
+ }
1254
+ const text = typeof record.text === "number" ? String(record.text) : record.text;
1255
+ if (typeof text !== "string" || text === "" || text.length > MAX_TEXT_LENGTH2)
1256
+ return skip("INVALID_ACTION");
1257
+ if (secretField || containsCredential(text))
1258
+ return skip("SECRET_VALUE");
1259
+ if (!field)
1260
+ return skip("FIELD_UNKNOWN");
1261
+ if (state.inputs.length >= MAX_SCRIPT_INPUTS2)
1262
+ return skip("TOO_MANY_INPUTS");
1263
+ const fieldName = isRecord3(record._uiTarget) ? label(record._uiTarget.name) : undefined;
1264
+ const inputName = uniqueInputName(state.inputs, inputNameFrom(fieldName ?? focusedName(state)));
1265
+ state.inputs.push({
1266
+ name: inputName,
1267
+ type: "text",
1268
+ ...context.inputDefaults ? { default: text } : { required: true }
1269
+ });
1270
+ push({ id, action: "type", target: field, text: { input: inputName }, clear: false }, field);
1271
+ }
1272
+ function focusedName(state) {
1273
+ const method = state.focused?.target.methods.find((item) => item.kind === "role");
1274
+ return method?.kind === "role" ? method.name : undefined;
1275
+ }
1276
+ function uniqueInputName(inputs, base) {
1277
+ const used = new Set(inputs.map((input) => input.name));
1278
+ let name = base;
1279
+ for (let n = 2;used.has(name); n += 1)
1280
+ name = `${base}${n}`;
1281
+ return name;
1282
+ }
1283
+ function propose(state, target, fingerprint, stepId, screenshotFileId) {
1284
+ const identity = canonicalJson2(target);
1285
+ const existing = state.elements.get(identity);
1286
+ if (existing) {
1287
+ existing.stepIds.push(stepId);
1288
+ return;
1289
+ }
1290
+ const record = isRecord3(fingerprint) ? fingerprint : {};
1291
+ const name = label(record.name) ?? label(record.text) ?? label(record.role) ?? `Element ${state.elements.size + 1}`;
1292
+ const fileId = typeof screenshotFileId === "string" && FILE_ID_PATTERN.test(screenshotFileId) ? screenshotFileId : "";
1293
+ state.elements.set(identity, {
1294
+ key: elementKeyFrom(name, state.elementKeys),
1295
+ name,
1296
+ target,
1297
+ stepIds: [stepId],
1298
+ ...fileId ? { screenshotFileId: fileId } : {}
1299
+ });
1300
+ }
1301
+ export { UI_SCRIPT_SCHEMA_HASH2, schemaHashOf2, UI_SCRIPT_SCHEMA_TITLE2, uiScriptJsonSchema2, BROWSER_STEP_ACTIONS2, fromBrowserActionSteps2, toBrowserActionSteps2, targetFromPlaywrightSelector2, fromRemoteBrowserSteps2, fromRecording2, toRecording2, COMPUTER_USE_ACTIONS2, MAX_COMPUTER_USE_ACTIONS2, COMPUTER_USE_MAX_WAIT_MS2, COMPUTER_USE_DEFAULT_WAIT_MS2, DEFAULT_LOGIN_SECRET_REFS2, COMPUTER_USE_SKIP_REASONS2, targetFromUiFingerprint2, scriptFromComputerUseActions2 };
package/dist/index.js CHANGED
@@ -61,8 +61,16 @@ import {
61
61
  targetFromPlaywrightSelector2,
62
62
  fromRemoteBrowserSteps2,
63
63
  fromRecording2,
64
- toRecording2
65
- } from "./index-2g060ryg.js";
64
+ toRecording2,
65
+ COMPUTER_USE_ACTIONS2,
66
+ MAX_COMPUTER_USE_ACTIONS2,
67
+ COMPUTER_USE_MAX_WAIT_MS2,
68
+ COMPUTER_USE_DEFAULT_WAIT_MS2,
69
+ DEFAULT_LOGIN_SECRET_REFS2,
70
+ COMPUTER_USE_SKIP_REASONS2,
71
+ targetFromUiFingerprint2,
72
+ scriptFromComputerUseActions2
73
+ } from "./index-ntg7r3f3.js";
66
74
  import {
67
75
  UI_HEAL_MODES2,
68
76
  UI_HEAL_MODE_RANK2,
@@ -245,9 +253,14 @@ export {
245
253
  BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
246
254
  CAPABILITY_IDS2 as CAPABILITY_IDS,
247
255
  COMPILED_NAME_PREFIX2 as COMPILED_NAME_PREFIX,
256
+ COMPUTER_USE_ACTIONS2 as COMPUTER_USE_ACTIONS,
257
+ COMPUTER_USE_DEFAULT_WAIT_MS2 as COMPUTER_USE_DEFAULT_WAIT_MS,
258
+ COMPUTER_USE_MAX_WAIT_MS2 as COMPUTER_USE_MAX_WAIT_MS,
259
+ COMPUTER_USE_SKIP_REASONS2 as COMPUTER_USE_SKIP_REASONS,
248
260
  CONSEQUENCE_KEYWORDS2 as CONSEQUENCE_KEYWORDS,
249
261
  DEFAULT_FIRST_WAIT_MS2 as DEFAULT_FIRST_WAIT_MS,
250
262
  DEFAULT_LIST_ITEMS2 as DEFAULT_LIST_ITEMS,
263
+ DEFAULT_LOGIN_SECRET_REFS2 as DEFAULT_LOGIN_SECRET_REFS,
251
264
  DEFAULT_MAX_EVENTS2 as DEFAULT_MAX_EVENTS,
252
265
  DEFAULT_POLL_INTERVAL_MS2 as DEFAULT_POLL_INTERVAL_MS,
253
266
  DEFAULT_RETRY_DELAY_MS2 as DEFAULT_RETRY_DELAY_MS,
@@ -261,6 +274,7 @@ export {
261
274
  LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
262
275
  MASKED_MARKER2 as MASKED_MARKER,
263
276
  MAX_CALL_DEPTH2 as MAX_CALL_DEPTH,
277
+ MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
264
278
  MAX_DELAY_MS2 as MAX_DELAY_MS,
265
279
  MAX_EVENTS_LIMIT2 as MAX_EVENTS_LIMIT,
266
280
  MAX_EVENT_MESSAGE2 as MAX_EVENT_MESSAGE,
@@ -415,6 +429,7 @@ export {
415
429
  runUiScript2 as runUiScript,
416
430
  safeParseUiScript2 as safeParseUiScript,
417
431
  schemaHashOf2 as schemaHashOf,
432
+ scriptFromComputerUseActions2 as scriptFromComputerUseActions,
418
433
  sha256Hex2 as sha256Hex,
419
434
  snapshotNodeAt2 as snapshotNodeAt,
420
435
  stepAtPath2 as stepAtPath,
@@ -426,6 +441,7 @@ export {
426
441
  targetFingerprint2 as targetFingerprint,
427
442
  targetFromPlaywrightSelector2 as targetFromPlaywrightSelector,
428
443
  targetFromSnapshotNode2 as targetFromSnapshotNode,
444
+ targetFromUiFingerprint2 as targetFromUiFingerprint,
429
445
  toBrowserActionSteps2 as toBrowserActionSteps,
430
446
  toNumber2 as toNumber,
431
447
  toRecording2 as toRecording,
@@ -0,0 +1,131 @@
1
+ import type { UiScript, UiTarget } from '../types.js';
2
+ /** The computer-use actions the adapter reads (the tool's base and login actions, plus the AI Step tree actions). */
3
+ export declare const COMPUTER_USE_ACTIONS: readonly ["screenshot", "navigate", "click", "double_click", "click_ref", "type", "type_ref", "key", "scroll", "wait", "open_login_page", "type_login_username", "type_login_password"];
4
+ export type ComputerUseAction = (typeof COMPUTER_USE_ACTIONS)[number];
5
+ /**
6
+ * Actions one conversion reads, at most. Screenshots and other skipped actions do not become
7
+ * steps, so this is larger than the script's step limit, which `parseUiScript` enforces on the
8
+ * result (`TOO_MANY_STEPS`).
9
+ */
10
+ export declare const MAX_COMPUTER_USE_ACTIONS: number;
11
+ /** The longest wait the computer-use tool runs (`computer-use-tool.ts` `MAX_WAIT_MS`); a longer wait is capped. */
12
+ export declare const COMPUTER_USE_MAX_WAIT_MS = 10000;
13
+ /** The wait the computer-use tool runs when the model gives no length. */
14
+ export declare const COMPUTER_USE_DEFAULT_WAIT_MS = 1000;
15
+ /** The secret references `type_login_username` and `type_login_password` become unless the caller names others. */
16
+ export declare const DEFAULT_LOGIN_SECRET_REFS: {
17
+ readonly username: "login:username";
18
+ readonly password: "login:password";
19
+ };
20
+ /** Why an action was not converted. */
21
+ export declare const COMPUTER_USE_SKIP_REASONS: readonly ["ACTION_FAILED", "FIELD_UNKNOWN", "FRAME_NOT_ADDRESSABLE", "HOST_NOT_ALLOWED", "INVALID_ACTION", "INVALID_URL", "LOGIN_PAGE_UNKNOWN", "NO_EFFECT", "NO_ELEMENT", "OBSERVATION_ONLY", "SECRET_TARGET_UNKNOWN", "SECRET_VALUE", "TOO_MANY_INPUTS", "UNKNOWN_ACTION", "UNTRUSTED_RECORD", "URL_CARRIES_SECRET"];
22
+ export type ComputerUseSkipReason = (typeof COMPUTER_USE_SKIP_REASONS)[number];
23
+ /** The element an action touched, as the worker records it (`_uiTarget`). Every field is optional. */
24
+ export interface ComputerUseUiTarget {
25
+ role?: string;
26
+ name?: string;
27
+ testId?: string;
28
+ /** A CSS path to the element inside its frame. */
29
+ cssPath?: string;
30
+ /** The element's visible text. */
31
+ text?: string;
32
+ /** The origin of the frame that holds the element. */
33
+ frameOrigin?: string;
34
+ /** CSS selectors of the frames (or open shadow hosts) from the page to the element, when the worker knows them. */
35
+ frame?: string[];
36
+ bbox?: {
37
+ x: number;
38
+ y: number;
39
+ width: number;
40
+ height: number;
41
+ };
42
+ /** The element is a masked or password field (its value is a secret). */
43
+ masked?: boolean;
44
+ /** The `type` attribute of an input element. */
45
+ inputType?: string;
46
+ /** The element takes typed text (an input, a text area or a content-editable element). */
47
+ editable?: boolean;
48
+ /** The element is inside a child frame (of any origin); without `frame` it cannot be addressed. */
49
+ inFrame?: boolean;
50
+ }
51
+ /** One recorded computer-use action. `args` may hold the model's arguments instead of the record itself. */
52
+ export interface ComputerUseActionRecord {
53
+ action: string;
54
+ url?: string;
55
+ x?: number;
56
+ y?: number;
57
+ text?: string;
58
+ key?: string;
59
+ deltaX?: number;
60
+ deltaY?: number;
61
+ milliseconds?: number;
62
+ ref?: string;
63
+ /** False when the action failed in the run. */
64
+ ok?: boolean;
65
+ /** The page address the action ran on. */
66
+ pageUrl?: string;
67
+ /** The secret the worker typed by reference (never the value). */
68
+ secretRef?: string;
69
+ screenshotFileId?: string;
70
+ _uiTarget?: ComputerUseUiTarget;
71
+ args?: Record<string, unknown>;
72
+ }
73
+ export interface ScriptFromComputerUseOptions {
74
+ /** The script's name. */
75
+ name?: string;
76
+ /** Hosts the script may open (`host` or `*.host`); a navigation elsewhere is skipped. Absent means no check here. */
77
+ allowedHosts?: readonly string[];
78
+ /** The address `open_login_page` opened (the Browser Login connection's sign-in page). Absent: the action is skipped. */
79
+ loginUrl?: string;
80
+ /** Secret references for the login actions. */
81
+ loginSecretRefs?: {
82
+ username?: string;
83
+ password?: string;
84
+ };
85
+ /** Keep each typed value as its input's default. Absent means true. */
86
+ inputDefaults?: boolean;
87
+ /**
88
+ * Read the worker fields (`ok`, `pageUrl`, `secretRef`, `screenshotFileId`, `_uiTarget`) of a
89
+ * flat record, one with no `args`. Only for records the caller built itself, where no worker
90
+ * field can have come from the model. Absent means false: such a record is skipped with
91
+ * `UNTRUSTED_RECORD`. The nested form is read the same either way.
92
+ */
93
+ trustFlatRecords?: boolean;
94
+ }
95
+ /** An element the script targets inline, which a person may save to the element library. */
96
+ export interface ComputerUseProposedElement {
97
+ key: string;
98
+ name: string;
99
+ target: UiTarget;
100
+ /** The steps that target it. */
101
+ stepIds: string[];
102
+ /** The screenshot after the first action on it, when the worker stored one. */
103
+ screenshotFileId?: string;
104
+ }
105
+ /** An action that was not converted. It never carries the action's values. */
106
+ export interface ComputerUseSkippedAction {
107
+ /** Position in the input list. */
108
+ index: number;
109
+ /** The action name, or `unknown` when it is not one this adapter knows. */
110
+ action: string;
111
+ reason: ComputerUseSkipReason;
112
+ message: string;
113
+ }
114
+ export interface ComputerUseConversion {
115
+ /** The UI script, or null when no action could be converted. It has passed `parseUiScript`. */
116
+ script: UiScript | null;
117
+ elements: ComputerUseProposedElement[];
118
+ skipped: ComputerUseSkippedAction[];
119
+ }
120
+ /** The recorded element as a multi-method target: test id, role and name, CSS path, then text. */
121
+ export declare function targetFromUiFingerprint(value: unknown): UiTarget | undefined;
122
+ /**
123
+ * Convert the actions an AI Step took into a UI script v1. Nothing is saved.
124
+ * Throws `UiScriptError` for an unusable call (a list that is not an array,
125
+ * more than `MAX_COMPUTER_USE_ACTIONS` actions, invalid options), with
126
+ * `TOO_MANY_STEPS` when the actions convert to more than 500 steps, and when the
127
+ * converted script breaks a whole-script limit of `parseUiScript` (for
128
+ * example `SCRIPT_TOO_LARGE`). A single bad action never throws: it is
129
+ * skipped with its reason.
130
+ */
131
+ export declare function scriptFromComputerUseActions(actions: unknown, options?: ScriptFromComputerUseOptions): ComputerUseConversion;
@@ -20,3 +20,4 @@ export { fromBrowserActionSteps } from './adapters/from-browser-action.js';
20
20
  export { type LowerOptions, toBrowserActionSteps } from './adapters/to-browser-action.js';
21
21
  export { fromRemoteBrowserSteps, targetFromPlaywrightSelector } from './adapters/from-remote-browser.js';
22
22
  export { fromRecording, toRecording } from './adapters/recording.js';
23
+ export { COMPUTER_USE_ACTIONS, COMPUTER_USE_DEFAULT_WAIT_MS, COMPUTER_USE_MAX_WAIT_MS, COMPUTER_USE_SKIP_REASONS, type ComputerUseAction, type ComputerUseActionRecord, type ComputerUseConversion, type ComputerUseProposedElement, type ComputerUseSkipReason, type ComputerUseSkippedAction, type ComputerUseUiTarget, DEFAULT_LOGIN_SECRET_REFS, MAX_COMPUTER_USE_ACTIONS, type ScriptFromComputerUseOptions, scriptFromComputerUseActions, targetFromUiFingerprint, } from './adapters/from-computer-use.js';
package/dist/script.js CHANGED
@@ -30,8 +30,17 @@ import {
30
30
  targetFromPlaywrightSelector2,
31
31
  fromRemoteBrowserSteps2,
32
32
  fromRecording2,
33
- toRecording2
34
- } from "./index-2g060ryg.js";
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-ntg7r3f3.js";
43
+ import"./index-bnvmt4wf.js";
35
44
  import {
36
45
  UI_SCRIPT_STEP_KEY_PREFIX2,
37
46
  UI_SCRIPT_STEP_MESSAGES2,
@@ -100,10 +109,16 @@ import {
100
109
  export {
101
110
  BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
102
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,
103
117
  ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
104
118
  LEGACY_MAX_BROWSER_STEPS2 as LEGACY_MAX_BROWSER_STEPS,
105
119
  LEGACY_MAX_STEPS_BYTES2 as LEGACY_MAX_STEPS_BYTES,
106
120
  LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
121
+ MAX_COMPUTER_USE_ACTIONS2 as MAX_COMPUTER_USE_ACTIONS,
107
122
  MAX_DELAY_MS2 as MAX_DELAY_MS,
108
123
  MAX_EXPRESSION_DEPTH2 as MAX_EXPRESSION_DEPTH,
109
124
  MAX_EXPRESSION_ITEMS2 as MAX_EXPRESSION_ITEMS,
@@ -165,11 +180,13 @@ export {
165
180
  requiredCapabilities2 as requiredCapabilities,
166
181
  safeParseUiScript2 as safeParseUiScript,
167
182
  schemaHashOf2 as schemaHashOf,
183
+ scriptFromComputerUseActions2 as scriptFromComputerUseActions,
168
184
  stepAtPath2 as stepAtPath,
169
185
  stepExpressions2 as stepExpressions,
170
186
  stepMessageKey2 as stepMessageKey,
171
187
  stepTargets2 as stepTargets,
172
188
  targetFromPlaywrightSelector2 as targetFromPlaywrightSelector,
189
+ targetFromUiFingerprint2 as targetFromUiFingerprint,
173
190
  toBrowserActionSteps2 as toBrowserActionSteps,
174
191
  toRecording2 as toRecording,
175
192
  uiExpressionSchema2 as uiExpressionSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/ui-engine",
3
- "version": "2026.1129.1",
3
+ "version": "2026.1129.3",
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, 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.",