@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
|
@@ -4037,7 +4037,15 @@ var PageTaskExecutor = class {
|
|
|
4037
4037
|
log: param.log
|
|
4038
4038
|
});
|
|
4039
4039
|
}
|
|
4040
|
-
const {
|
|
4040
|
+
const {
|
|
4041
|
+
actions,
|
|
4042
|
+
log: log2,
|
|
4043
|
+
more_actions_needed_by_instruction,
|
|
4044
|
+
error,
|
|
4045
|
+
usage,
|
|
4046
|
+
rawResponse,
|
|
4047
|
+
sleep: sleep4
|
|
4048
|
+
} = planResult;
|
|
4041
4049
|
let stopCollecting = false;
|
|
4042
4050
|
let bboxCollected = false;
|
|
4043
4051
|
let planParsingError = "";
|
|
@@ -4084,7 +4092,7 @@ var PageTaskExecutor = class {
|
|
|
4084
4092
|
}
|
|
4085
4093
|
if (finalActions.length === 0) {
|
|
4086
4094
|
(0, import_node_assert4.default)(
|
|
4087
|
-
|
|
4095
|
+
!more_actions_needed_by_instruction,
|
|
4088
4096
|
error ? `Failed to plan: ${error}` : planParsingError || "No plan found"
|
|
4089
4097
|
);
|
|
4090
4098
|
}
|
|
@@ -4100,7 +4108,7 @@ var PageTaskExecutor = class {
|
|
|
4100
4108
|
return {
|
|
4101
4109
|
output: {
|
|
4102
4110
|
actions: finalActions,
|
|
4103
|
-
|
|
4111
|
+
more_actions_needed_by_instruction,
|
|
4104
4112
|
log: log2
|
|
4105
4113
|
},
|
|
4106
4114
|
cache: {
|
|
@@ -4181,7 +4189,7 @@ var PageTaskExecutor = class {
|
|
|
4181
4189
|
actions,
|
|
4182
4190
|
thought: (_a = actions[0]) == null ? void 0 : _a.thought,
|
|
4183
4191
|
actionType: actions[0].type,
|
|
4184
|
-
|
|
4192
|
+
more_actions_needed_by_instruction: true,
|
|
4185
4193
|
log: ""
|
|
4186
4194
|
},
|
|
4187
4195
|
cache: {
|
|
@@ -4238,7 +4246,7 @@ var PageTaskExecutor = class {
|
|
|
4238
4246
|
if (planResult == null ? void 0 : planResult.log) {
|
|
4239
4247
|
logLog.push(planResult.log);
|
|
4240
4248
|
}
|
|
4241
|
-
if (planResult.
|
|
4249
|
+
if (!planResult.more_actions_needed_by_instruction) {
|
|
4242
4250
|
planningTask = null;
|
|
4243
4251
|
break;
|
|
4244
4252
|
}
|
|
@@ -4875,7 +4883,7 @@ function sleep3(ms) {
|
|
|
4875
4883
|
var ChromeExtensionProxyPage = class {
|
|
4876
4884
|
constructor(forceSameTabNavigation) {
|
|
4877
4885
|
this.pageType = "chrome-extension-proxy";
|
|
4878
|
-
this.version = "0.12.
|
|
4886
|
+
this.version = "0.12.2";
|
|
4879
4887
|
this.activeTabId = null;
|
|
4880
4888
|
this.tabIdOfDebuggerAttached = null;
|
|
4881
4889
|
this.attachingDebugger = null;
|
|
@@ -5290,3 +5298,5 @@ var ChromeExtensionProxyPage = class {
|
|
|
5290
5298
|
js-yaml/dist/js-yaml.mjs:
|
|
5291
5299
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
5292
5300
|
*/
|
|
5301
|
+
|
|
5302
|
+
//# sourceMappingURL=chrome-extension.js.map
|