@midscene/web 0.26.6 → 0.26.7-beta-20250815153024.0
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/dist/es/bridge-mode/io-client.mjs +1 -1
- package/dist/es/bridge-mode/io-server.mjs +2 -2
- package/dist/es/bridge-mode/io-server.mjs.map +1 -1
- package/dist/es/bridge-mode/page-browser-side.mjs +1 -1
- package/dist/es/bridge-mode/page-browser-side.mjs.map +1 -1
- package/dist/es/chrome-extension/page.mjs +1 -1
- package/dist/es/common/agent.mjs +95 -59
- package/dist/es/common/agent.mjs.map +1 -1
- package/dist/es/common/tasks.mjs +8 -8
- package/dist/es/common/tasks.mjs.map +1 -1
- package/dist/es/common/utils.mjs +6 -1
- package/dist/es/common/utils.mjs.map +1 -1
- package/dist/es/yaml/player.mjs +75 -13
- package/dist/es/yaml/player.mjs.map +1 -1
- package/dist/lib/bridge-mode/io-client.js +1 -1
- package/dist/lib/bridge-mode/io-server.js +2 -2
- package/dist/lib/bridge-mode/io-server.js.map +1 -1
- package/dist/lib/bridge-mode/page-browser-side.js +1 -1
- package/dist/lib/bridge-mode/page-browser-side.js.map +1 -1
- package/dist/lib/chrome-extension/page.js +1 -1
- package/dist/lib/common/agent.js +94 -58
- package/dist/lib/common/agent.js.map +1 -1
- package/dist/lib/common/tasks.js +8 -8
- package/dist/lib/common/tasks.js.map +1 -1
- package/dist/lib/common/utils.js +6 -1
- package/dist/lib/common/utils.js.map +1 -1
- package/dist/lib/yaml/player.js +75 -13
- package/dist/lib/yaml/player.js.map +1 -1
- package/dist/types/common/agent.d.ts +23 -4
- package/dist/types/yaml/player.d.ts +1 -0
- package/package.json +3 -3
- package/dist/es/common/plan-builder.mjs +0 -89
- package/dist/es/common/plan-builder.mjs.map +0 -1
- package/dist/lib/common/plan-builder.js +0 -123
- package/dist/lib/common/plan-builder.js.map +0 -1
- package/dist/types/common/plan-builder.d.ts +0 -2
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { getDebug } from "@midscene/shared/logger";
|
|
2
|
-
import { assert } from "@midscene/shared/utils";
|
|
3
|
-
const debug = getDebug('plan-builder');
|
|
4
|
-
function buildPlans(type, locateParam, param) {
|
|
5
|
-
let returnPlans = [];
|
|
6
|
-
const locatePlan = locateParam ? {
|
|
7
|
-
type: 'Locate',
|
|
8
|
-
locate: locateParam,
|
|
9
|
-
param: locateParam,
|
|
10
|
-
thought: ''
|
|
11
|
-
} : null;
|
|
12
|
-
if ('Tap' === type || 'Hover' === type || 'RightClick' === type) {
|
|
13
|
-
assert(locateParam, `missing locate info for action "${type}"`);
|
|
14
|
-
assert(locatePlan, `missing locate info for action "${type}"`);
|
|
15
|
-
const tapPlan = {
|
|
16
|
-
type,
|
|
17
|
-
param: null,
|
|
18
|
-
thought: '',
|
|
19
|
-
locate: locateParam
|
|
20
|
-
};
|
|
21
|
-
returnPlans = [
|
|
22
|
-
locatePlan,
|
|
23
|
-
tapPlan
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
if ('Input' === type || 'KeyboardPress' === type) {
|
|
27
|
-
if ('Input' === type) assert(locateParam, `missing locate info for action "${type}"`);
|
|
28
|
-
assert(param, `missing param for action "${type}"`);
|
|
29
|
-
const inputPlan = {
|
|
30
|
-
type,
|
|
31
|
-
param: param,
|
|
32
|
-
thought: '',
|
|
33
|
-
locate: locateParam
|
|
34
|
-
};
|
|
35
|
-
returnPlans = locatePlan ? [
|
|
36
|
-
locatePlan,
|
|
37
|
-
inputPlan
|
|
38
|
-
] : [
|
|
39
|
-
inputPlan
|
|
40
|
-
];
|
|
41
|
-
}
|
|
42
|
-
if ('Scroll' === type) {
|
|
43
|
-
assert(param, `missing param for action "${type}"`);
|
|
44
|
-
const scrollPlan = {
|
|
45
|
-
type,
|
|
46
|
-
param: param,
|
|
47
|
-
thought: '',
|
|
48
|
-
locate: locateParam
|
|
49
|
-
};
|
|
50
|
-
returnPlans = locatePlan ? [
|
|
51
|
-
locatePlan,
|
|
52
|
-
scrollPlan
|
|
53
|
-
] : [
|
|
54
|
-
scrollPlan
|
|
55
|
-
];
|
|
56
|
-
}
|
|
57
|
-
if ('Sleep' === type) {
|
|
58
|
-
assert(param, `missing param for action "${type}"`);
|
|
59
|
-
const sleepPlan = {
|
|
60
|
-
type,
|
|
61
|
-
param: param,
|
|
62
|
-
thought: '',
|
|
63
|
-
locate: null
|
|
64
|
-
};
|
|
65
|
-
returnPlans = [
|
|
66
|
-
sleepPlan
|
|
67
|
-
];
|
|
68
|
-
}
|
|
69
|
-
if ('Locate' === type) {
|
|
70
|
-
assert(locateParam, `missing locate info for action "${type}"`);
|
|
71
|
-
const locatePlan = {
|
|
72
|
-
type,
|
|
73
|
-
param: locateParam,
|
|
74
|
-
locate: locateParam,
|
|
75
|
-
thought: ''
|
|
76
|
-
};
|
|
77
|
-
returnPlans = [
|
|
78
|
-
locatePlan
|
|
79
|
-
];
|
|
80
|
-
}
|
|
81
|
-
if (returnPlans) {
|
|
82
|
-
debug('buildPlans', returnPlans);
|
|
83
|
-
return returnPlans;
|
|
84
|
-
}
|
|
85
|
-
throw new Error(`Not supported type: ${type}`);
|
|
86
|
-
}
|
|
87
|
-
export { buildPlans };
|
|
88
|
-
|
|
89
|
-
//# sourceMappingURL=plan-builder.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common/plan-builder.mjs","sources":["webpack://@midscene/web/./src/common/plan-builder.ts"],"sourcesContent":["import type {\n DetailedLocateParam,\n PlanningAction,\n PlanningActionParamInputOrKeyPress,\n PlanningActionParamSleep,\n PlanningActionParamTap,\n PlanningLocateParam,\n ScrollParam,\n} from '@midscene/core';\nimport { getDebug } from '@midscene/shared/logger';\nimport { assert } from '@midscene/shared/utils';\n\nconst debug = getDebug('plan-builder');\n\nexport function buildPlans(\n type: PlanningAction['type'],\n locateParam?: DetailedLocateParam,\n param?:\n | PlanningActionParamInputOrKeyPress\n | ScrollParam\n | PlanningActionParamSleep,\n): PlanningAction[] {\n let returnPlans: PlanningAction[] = [];\n const locatePlan: PlanningAction<PlanningLocateParam> | null = locateParam\n ? {\n type: 'Locate',\n locate: locateParam,\n param: locateParam,\n thought: '',\n }\n : null;\n if (type === 'Tap' || type === 'Hover' || type === 'RightClick') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n assert(locatePlan, `missing locate info for action \"${type}\"`);\n const tapPlan: PlanningAction<PlanningActionParamTap> = {\n type,\n param: null,\n thought: '',\n locate: locateParam,\n };\n\n returnPlans = [locatePlan, tapPlan];\n }\n if (type === 'Input' || type === 'KeyboardPress') {\n if (type === 'Input') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n }\n assert(param, `missing param for action \"${type}\"`);\n\n const inputPlan: PlanningAction<PlanningActionParamInputOrKeyPress> = {\n type,\n param: param as PlanningActionParamInputOrKeyPress,\n thought: '',\n locate: locateParam!,\n };\n\n if (locatePlan) {\n returnPlans = [locatePlan, inputPlan];\n } else {\n returnPlans = [inputPlan];\n }\n }\n\n if (type === 'Scroll') {\n assert(param, `missing param for action \"${type}\"`);\n\n const scrollPlan: PlanningAction<ScrollParam> = {\n type,\n param: param as ScrollParam,\n thought: '',\n locate: locateParam,\n };\n\n if (locatePlan) {\n returnPlans = [locatePlan, scrollPlan];\n } else {\n returnPlans = [scrollPlan];\n }\n }\n\n if (type === 'Sleep') {\n assert(param, `missing param for action \"${type}\"`);\n\n const sleepPlan: PlanningAction<PlanningActionParamSleep> = {\n type,\n param: param as PlanningActionParamSleep,\n thought: '',\n locate: null,\n };\n\n returnPlans = [sleepPlan];\n }\n\n if (type === 'Locate') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n const locatePlan: PlanningAction<PlanningLocateParam> = {\n type,\n param: locateParam as PlanningLocateParam,\n locate: locateParam,\n thought: '',\n };\n returnPlans = [locatePlan];\n }\n\n if (returnPlans) {\n debug('buildPlans', returnPlans);\n return returnPlans;\n }\n\n throw new Error(`Not supported type: ${type}`);\n}\n"],"names":["debug","getDebug","buildPlans","type","locateParam","param","returnPlans","locatePlan","assert","tapPlan","inputPlan","scrollPlan","sleepPlan","Error"],"mappings":";;AAYA,MAAMA,QAAQC,SAAS;AAEhB,SAASC,WACdC,IAA4B,EAC5BC,WAAiC,EACjCC,KAG4B;IAE5B,IAAIC,cAAgC,EAAE;IACtC,MAAMC,aAAyDH,cAC3D;QACE,MAAM;QACN,QAAQA;QACR,OAAOA;QACP,SAAS;IACX,IACA;IACJ,IAAID,AAAS,UAATA,QAAkBA,AAAS,YAATA,QAAoBA,AAAS,iBAATA,MAAuB;QAC/DK,OAAOJ,aAAa,CAAC,gCAAgC,EAAED,KAAK,CAAC,CAAC;QAC9DK,OAAOD,YAAY,CAAC,gCAAgC,EAAEJ,KAAK,CAAC,CAAC;QAC7D,MAAMM,UAAkD;YACtDN;YACA,OAAO;YACP,SAAS;YACT,QAAQC;QACV;QAEAE,cAAc;YAACC;YAAYE;SAAQ;IACrC;IACA,IAAIN,AAAS,YAATA,QAAoBA,AAAS,oBAATA,MAA0B;QAChD,IAAIA,AAAS,YAATA,MACFK,OAAOJ,aAAa,CAAC,gCAAgC,EAAED,KAAK,CAAC,CAAC;QAEhEK,OAAOH,OAAO,CAAC,0BAA0B,EAAEF,KAAK,CAAC,CAAC;QAElD,MAAMO,YAAgE;YACpEP;YACA,OAAOE;YACP,SAAS;YACT,QAAQD;QACV;QAGEE,cADEC,aACY;YAACA;YAAYG;SAAU,GAEvB;YAACA;SAAU;IAE7B;IAEA,IAAIP,AAAS,aAATA,MAAmB;QACrBK,OAAOH,OAAO,CAAC,0BAA0B,EAAEF,KAAK,CAAC,CAAC;QAElD,MAAMQ,aAA0C;YAC9CR;YACA,OAAOE;YACP,SAAS;YACT,QAAQD;QACV;QAGEE,cADEC,aACY;YAACA;YAAYI;SAAW,GAExB;YAACA;SAAW;IAE9B;IAEA,IAAIR,AAAS,YAATA,MAAkB;QACpBK,OAAOH,OAAO,CAAC,0BAA0B,EAAEF,KAAK,CAAC,CAAC;QAElD,MAAMS,YAAsD;YAC1DT;YACA,OAAOE;YACP,SAAS;YACT,QAAQ;QACV;QAEAC,cAAc;YAACM;SAAU;IAC3B;IAEA,IAAIT,AAAS,aAATA,MAAmB;QACrBK,OAAOJ,aAAa,CAAC,gCAAgC,EAAED,KAAK,CAAC,CAAC;QAC9D,MAAMI,aAAkD;YACtDJ;YACA,OAAOC;YACP,QAAQA;YACR,SAAS;QACX;QACAE,cAAc;YAACC;SAAW;IAC5B;IAEA,IAAID,aAAa;QACfN,MAAM,cAAcM;QACpB,OAAOA;IACT;IAEA,MAAM,IAAIO,MAAM,CAAC,oBAAoB,EAAEV,MAAM;AAC/C"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
buildPlans: ()=>buildPlans
|
|
28
|
-
});
|
|
29
|
-
const logger_namespaceObject = require("@midscene/shared/logger");
|
|
30
|
-
const utils_namespaceObject = require("@midscene/shared/utils");
|
|
31
|
-
const debug = (0, logger_namespaceObject.getDebug)('plan-builder');
|
|
32
|
-
function buildPlans(type, locateParam, param) {
|
|
33
|
-
let returnPlans = [];
|
|
34
|
-
const locatePlan = locateParam ? {
|
|
35
|
-
type: 'Locate',
|
|
36
|
-
locate: locateParam,
|
|
37
|
-
param: locateParam,
|
|
38
|
-
thought: ''
|
|
39
|
-
} : null;
|
|
40
|
-
if ('Tap' === type || 'Hover' === type || 'RightClick' === type) {
|
|
41
|
-
(0, utils_namespaceObject.assert)(locateParam, `missing locate info for action "${type}"`);
|
|
42
|
-
(0, utils_namespaceObject.assert)(locatePlan, `missing locate info for action "${type}"`);
|
|
43
|
-
const tapPlan = {
|
|
44
|
-
type,
|
|
45
|
-
param: null,
|
|
46
|
-
thought: '',
|
|
47
|
-
locate: locateParam
|
|
48
|
-
};
|
|
49
|
-
returnPlans = [
|
|
50
|
-
locatePlan,
|
|
51
|
-
tapPlan
|
|
52
|
-
];
|
|
53
|
-
}
|
|
54
|
-
if ('Input' === type || 'KeyboardPress' === type) {
|
|
55
|
-
if ('Input' === type) (0, utils_namespaceObject.assert)(locateParam, `missing locate info for action "${type}"`);
|
|
56
|
-
(0, utils_namespaceObject.assert)(param, `missing param for action "${type}"`);
|
|
57
|
-
const inputPlan = {
|
|
58
|
-
type,
|
|
59
|
-
param: param,
|
|
60
|
-
thought: '',
|
|
61
|
-
locate: locateParam
|
|
62
|
-
};
|
|
63
|
-
returnPlans = locatePlan ? [
|
|
64
|
-
locatePlan,
|
|
65
|
-
inputPlan
|
|
66
|
-
] : [
|
|
67
|
-
inputPlan
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
if ('Scroll' === type) {
|
|
71
|
-
(0, utils_namespaceObject.assert)(param, `missing param for action "${type}"`);
|
|
72
|
-
const scrollPlan = {
|
|
73
|
-
type,
|
|
74
|
-
param: param,
|
|
75
|
-
thought: '',
|
|
76
|
-
locate: locateParam
|
|
77
|
-
};
|
|
78
|
-
returnPlans = locatePlan ? [
|
|
79
|
-
locatePlan,
|
|
80
|
-
scrollPlan
|
|
81
|
-
] : [
|
|
82
|
-
scrollPlan
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
if ('Sleep' === type) {
|
|
86
|
-
(0, utils_namespaceObject.assert)(param, `missing param for action "${type}"`);
|
|
87
|
-
const sleepPlan = {
|
|
88
|
-
type,
|
|
89
|
-
param: param,
|
|
90
|
-
thought: '',
|
|
91
|
-
locate: null
|
|
92
|
-
};
|
|
93
|
-
returnPlans = [
|
|
94
|
-
sleepPlan
|
|
95
|
-
];
|
|
96
|
-
}
|
|
97
|
-
if ('Locate' === type) {
|
|
98
|
-
(0, utils_namespaceObject.assert)(locateParam, `missing locate info for action "${type}"`);
|
|
99
|
-
const locatePlan = {
|
|
100
|
-
type,
|
|
101
|
-
param: locateParam,
|
|
102
|
-
locate: locateParam,
|
|
103
|
-
thought: ''
|
|
104
|
-
};
|
|
105
|
-
returnPlans = [
|
|
106
|
-
locatePlan
|
|
107
|
-
];
|
|
108
|
-
}
|
|
109
|
-
if (returnPlans) {
|
|
110
|
-
debug('buildPlans', returnPlans);
|
|
111
|
-
return returnPlans;
|
|
112
|
-
}
|
|
113
|
-
throw new Error(`Not supported type: ${type}`);
|
|
114
|
-
}
|
|
115
|
-
exports.buildPlans = __webpack_exports__.buildPlans;
|
|
116
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
117
|
-
"buildPlans"
|
|
118
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
119
|
-
Object.defineProperty(exports, '__esModule', {
|
|
120
|
-
value: true
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
//# sourceMappingURL=plan-builder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common/plan-builder.js","sources":["webpack://@midscene/web/webpack/runtime/define_property_getters","webpack://@midscene/web/webpack/runtime/has_own_property","webpack://@midscene/web/webpack/runtime/make_namespace_object","webpack://@midscene/web/./src/common/plan-builder.ts"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import type {\n DetailedLocateParam,\n PlanningAction,\n PlanningActionParamInputOrKeyPress,\n PlanningActionParamSleep,\n PlanningActionParamTap,\n PlanningLocateParam,\n ScrollParam,\n} from '@midscene/core';\nimport { getDebug } from '@midscene/shared/logger';\nimport { assert } from '@midscene/shared/utils';\n\nconst debug = getDebug('plan-builder');\n\nexport function buildPlans(\n type: PlanningAction['type'],\n locateParam?: DetailedLocateParam,\n param?:\n | PlanningActionParamInputOrKeyPress\n | ScrollParam\n | PlanningActionParamSleep,\n): PlanningAction[] {\n let returnPlans: PlanningAction[] = [];\n const locatePlan: PlanningAction<PlanningLocateParam> | null = locateParam\n ? {\n type: 'Locate',\n locate: locateParam,\n param: locateParam,\n thought: '',\n }\n : null;\n if (type === 'Tap' || type === 'Hover' || type === 'RightClick') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n assert(locatePlan, `missing locate info for action \"${type}\"`);\n const tapPlan: PlanningAction<PlanningActionParamTap> = {\n type,\n param: null,\n thought: '',\n locate: locateParam,\n };\n\n returnPlans = [locatePlan, tapPlan];\n }\n if (type === 'Input' || type === 'KeyboardPress') {\n if (type === 'Input') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n }\n assert(param, `missing param for action \"${type}\"`);\n\n const inputPlan: PlanningAction<PlanningActionParamInputOrKeyPress> = {\n type,\n param: param as PlanningActionParamInputOrKeyPress,\n thought: '',\n locate: locateParam!,\n };\n\n if (locatePlan) {\n returnPlans = [locatePlan, inputPlan];\n } else {\n returnPlans = [inputPlan];\n }\n }\n\n if (type === 'Scroll') {\n assert(param, `missing param for action \"${type}\"`);\n\n const scrollPlan: PlanningAction<ScrollParam> = {\n type,\n param: param as ScrollParam,\n thought: '',\n locate: locateParam,\n };\n\n if (locatePlan) {\n returnPlans = [locatePlan, scrollPlan];\n } else {\n returnPlans = [scrollPlan];\n }\n }\n\n if (type === 'Sleep') {\n assert(param, `missing param for action \"${type}\"`);\n\n const sleepPlan: PlanningAction<PlanningActionParamSleep> = {\n type,\n param: param as PlanningActionParamSleep,\n thought: '',\n locate: null,\n };\n\n returnPlans = [sleepPlan];\n }\n\n if (type === 'Locate') {\n assert(locateParam, `missing locate info for action \"${type}\"`);\n const locatePlan: PlanningAction<PlanningLocateParam> = {\n type,\n param: locateParam as PlanningLocateParam,\n locate: locateParam,\n thought: '',\n };\n returnPlans = [locatePlan];\n }\n\n if (returnPlans) {\n debug('buildPlans', returnPlans);\n return returnPlans;\n }\n\n throw new Error(`Not supported type: ${type}`);\n}\n"],"names":["__webpack_require__","definition","key","Object","obj","prop","Symbol","debug","getDebug","buildPlans","type","locateParam","param","returnPlans","locatePlan","assert","tapPlan","inputPlan","scrollPlan","sleepPlan","Error"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { DetailedLocateParam, PlanningAction, PlanningActionParamInputOrKeyPress, PlanningActionParamSleep, ScrollParam } from '@midscene/core';
|
|
2
|
-
export declare function buildPlans(type: PlanningAction['type'], locateParam?: DetailedLocateParam, param?: PlanningActionParamInputOrKeyPress | ScrollParam | PlanningActionParamSleep): PlanningAction[];
|