@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/playground.js
CHANGED
|
@@ -3992,7 +3992,15 @@ var PageTaskExecutor = class {
|
|
|
3992
3992
|
log: param.log
|
|
3993
3993
|
});
|
|
3994
3994
|
}
|
|
3995
|
-
const {
|
|
3995
|
+
const {
|
|
3996
|
+
actions,
|
|
3997
|
+
log: log2,
|
|
3998
|
+
more_actions_needed_by_instruction,
|
|
3999
|
+
error,
|
|
4000
|
+
usage,
|
|
4001
|
+
rawResponse,
|
|
4002
|
+
sleep: sleep3
|
|
4003
|
+
} = planResult;
|
|
3996
4004
|
let stopCollecting = false;
|
|
3997
4005
|
let bboxCollected = false;
|
|
3998
4006
|
let planParsingError = "";
|
|
@@ -4039,7 +4047,7 @@ var PageTaskExecutor = class {
|
|
|
4039
4047
|
}
|
|
4040
4048
|
if (finalActions.length === 0) {
|
|
4041
4049
|
(0, import_node_assert4.default)(
|
|
4042
|
-
|
|
4050
|
+
!more_actions_needed_by_instruction,
|
|
4043
4051
|
error ? `Failed to plan: ${error}` : planParsingError || "No plan found"
|
|
4044
4052
|
);
|
|
4045
4053
|
}
|
|
@@ -4055,7 +4063,7 @@ var PageTaskExecutor = class {
|
|
|
4055
4063
|
return {
|
|
4056
4064
|
output: {
|
|
4057
4065
|
actions: finalActions,
|
|
4058
|
-
|
|
4066
|
+
more_actions_needed_by_instruction,
|
|
4059
4067
|
log: log2
|
|
4060
4068
|
},
|
|
4061
4069
|
cache: {
|
|
@@ -4136,7 +4144,7 @@ var PageTaskExecutor = class {
|
|
|
4136
4144
|
actions,
|
|
4137
4145
|
thought: (_a = actions[0]) == null ? void 0 : _a.thought,
|
|
4138
4146
|
actionType: actions[0].type,
|
|
4139
|
-
|
|
4147
|
+
more_actions_needed_by_instruction: true,
|
|
4140
4148
|
log: ""
|
|
4141
4149
|
},
|
|
4142
4150
|
cache: {
|
|
@@ -4193,7 +4201,7 @@ var PageTaskExecutor = class {
|
|
|
4193
4201
|
if (planResult == null ? void 0 : planResult.log) {
|
|
4194
4202
|
logLog.push(planResult.log);
|
|
4195
4203
|
}
|
|
4196
|
-
if (planResult.
|
|
4204
|
+
if (!planResult.more_actions_needed_by_instruction) {
|
|
4197
4205
|
planningTask = null;
|
|
4198
4206
|
break;
|
|
4199
4207
|
}
|
|
@@ -4723,3 +4731,5 @@ var StaticPage = class {
|
|
|
4723
4731
|
js-yaml/dist/js-yaml.mjs:
|
|
4724
4732
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
4725
4733
|
*/
|
|
4734
|
+
|
|
4735
|
+
//# sourceMappingURL=playground.js.map
|