@midscene/web 0.12.1 → 0.12.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/dist/es/appium.js +15 -5
- package/dist/es/appium.js.map +1 -0
- package/dist/es/bridge-mode-browser.js +5 -3
- package/dist/es/bridge-mode-browser.js.map +1 -0
- package/dist/es/bridge-mode.js +17 -7
- package/dist/es/bridge-mode.js.map +1 -0
- package/dist/es/chrome-extension.js +16 -6
- package/dist/es/chrome-extension.js.map +1 -0
- package/dist/es/index.js +15 -5
- package/dist/es/index.js.map +1 -0
- package/dist/es/midscene-playground.js +15 -5
- package/dist/es/midscene-playground.js.map +1 -0
- package/dist/es/playground.js +15 -5
- package/dist/es/playground.js.map +1 -0
- package/dist/es/playwright-report.js +2 -0
- package/dist/es/playwright-report.js.map +1 -0
- package/dist/es/playwright.js +15 -5
- package/dist/es/playwright.js.map +1 -0
- package/dist/es/puppeteer.js +16 -5
- package/dist/es/puppeteer.js.map +1 -0
- package/dist/es/ui-utils.js +2 -0
- package/dist/es/ui-utils.js.map +1 -0
- package/dist/es/utils.js +2 -0
- package/dist/es/utils.js.map +1 -0
- package/dist/es/yaml.js +2 -0
- package/dist/es/yaml.js.map +1 -0
- package/dist/lib/appium.js +15 -5
- package/dist/lib/appium.js.map +1 -0
- package/dist/lib/bridge-mode-browser.js +5 -3
- package/dist/lib/bridge-mode-browser.js.map +1 -0
- package/dist/lib/bridge-mode.js +17 -7
- package/dist/lib/bridge-mode.js.map +1 -0
- package/dist/lib/chrome-extension.js +16 -6
- package/dist/lib/chrome-extension.js.map +1 -0
- package/dist/lib/index.js +15 -5
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/midscene-playground.js +15 -5
- package/dist/lib/midscene-playground.js.map +1 -0
- package/dist/lib/playground.js +15 -5
- package/dist/lib/playground.js.map +1 -0
- package/dist/lib/playwright-report.js +2 -0
- package/dist/lib/playwright-report.js.map +1 -0
- package/dist/lib/playwright.js +15 -5
- package/dist/lib/playwright.js.map +1 -0
- package/dist/lib/puppeteer.js +16 -5
- package/dist/lib/puppeteer.js.map +1 -0
- package/dist/lib/ui-utils.js +2 -0
- package/dist/lib/ui-utils.js.map +1 -0
- package/dist/lib/utils.js +2 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/yaml.js +2 -0
- package/dist/lib/yaml.js.map +1 -0
- package/dist/types/{agent-c2b81e5e.d.ts → agent-93ac4610.d.ts} +3 -3
- package/dist/types/appium.d.ts +3 -3
- package/dist/types/bridge-mode-browser.d.ts +3 -3
- package/dist/types/bridge-mode.d.ts +4 -4
- package/dist/types/{browser-97da85f7.d.ts → browser-3c8d24ff.d.ts} +1 -1
- package/dist/types/chrome-extension.d.ts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/{page-19506936.d.ts → page-09c548ff.d.ts} +2 -2
- package/dist/types/playground.d.ts +4 -4
- package/dist/types/playwright.d.ts +3 -3
- package/dist/types/puppeteer.d.ts +4 -3
- package/dist/types/{utils-40a29aea.d.ts → utils-c05abdf8.d.ts} +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/dist/types/yaml.d.ts +4 -4
- package/package.json +4 -6
package/dist/lib/appium.js
CHANGED
|
@@ -3877,7 +3877,15 @@ var PageTaskExecutor = class {
|
|
|
3877
3877
|
log: param.log
|
|
3878
3878
|
});
|
|
3879
3879
|
}
|
|
3880
|
-
const {
|
|
3880
|
+
const {
|
|
3881
|
+
actions,
|
|
3882
|
+
log: log2,
|
|
3883
|
+
more_actions_needed_by_instruction,
|
|
3884
|
+
error,
|
|
3885
|
+
usage,
|
|
3886
|
+
rawResponse,
|
|
3887
|
+
sleep: sleep3
|
|
3888
|
+
} = planResult;
|
|
3881
3889
|
let stopCollecting = false;
|
|
3882
3890
|
let bboxCollected = false;
|
|
3883
3891
|
let planParsingError = "";
|
|
@@ -3924,7 +3932,7 @@ var PageTaskExecutor = class {
|
|
|
3924
3932
|
}
|
|
3925
3933
|
if (finalActions.length === 0) {
|
|
3926
3934
|
(0, import_node_assert3.default)(
|
|
3927
|
-
|
|
3935
|
+
!more_actions_needed_by_instruction,
|
|
3928
3936
|
error ? `Failed to plan: ${error}` : planParsingError || "No plan found"
|
|
3929
3937
|
);
|
|
3930
3938
|
}
|
|
@@ -3940,7 +3948,7 @@ var PageTaskExecutor = class {
|
|
|
3940
3948
|
return {
|
|
3941
3949
|
output: {
|
|
3942
3950
|
actions: finalActions,
|
|
3943
|
-
|
|
3951
|
+
more_actions_needed_by_instruction,
|
|
3944
3952
|
log: log2
|
|
3945
3953
|
},
|
|
3946
3954
|
cache: {
|
|
@@ -4021,7 +4029,7 @@ var PageTaskExecutor = class {
|
|
|
4021
4029
|
actions,
|
|
4022
4030
|
thought: (_a = actions[0]) == null ? void 0 : _a.thought,
|
|
4023
4031
|
actionType: actions[0].type,
|
|
4024
|
-
|
|
4032
|
+
more_actions_needed_by_instruction: true,
|
|
4025
4033
|
log: ""
|
|
4026
4034
|
},
|
|
4027
4035
|
cache: {
|
|
@@ -4078,7 +4086,7 @@ var PageTaskExecutor = class {
|
|
|
4078
4086
|
if (planResult == null ? void 0 : planResult.log) {
|
|
4079
4087
|
logLog.push(planResult.log);
|
|
4080
4088
|
}
|
|
4081
|
-
if (planResult.
|
|
4089
|
+
if (!planResult.more_actions_needed_by_instruction) {
|
|
4082
4090
|
planningTask = null;
|
|
4083
4091
|
break;
|
|
4084
4092
|
}
|
|
@@ -4897,3 +4905,5 @@ var Page = class {
|
|
|
4897
4905
|
js-yaml/dist/js-yaml.mjs:
|
|
4898
4906
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
4899
4907
|
*/
|
|
4908
|
+
|
|
4909
|
+
//# sourceMappingURL=appium.js.map
|