@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
|
@@ -4329,7 +4329,15 @@ var PageTaskExecutor = class {
|
|
|
4329
4329
|
log: param.log
|
|
4330
4330
|
});
|
|
4331
4331
|
}
|
|
4332
|
-
const {
|
|
4332
|
+
const {
|
|
4333
|
+
actions,
|
|
4334
|
+
log: log2,
|
|
4335
|
+
more_actions_needed_by_instruction,
|
|
4336
|
+
error,
|
|
4337
|
+
usage,
|
|
4338
|
+
rawResponse,
|
|
4339
|
+
sleep: sleep3
|
|
4340
|
+
} = planResult;
|
|
4333
4341
|
let stopCollecting = false;
|
|
4334
4342
|
let bboxCollected = false;
|
|
4335
4343
|
let planParsingError = "";
|
|
@@ -4376,7 +4384,7 @@ var PageTaskExecutor = class {
|
|
|
4376
4384
|
}
|
|
4377
4385
|
if (finalActions.length === 0) {
|
|
4378
4386
|
(0, import_node_assert4.default)(
|
|
4379
|
-
|
|
4387
|
+
!more_actions_needed_by_instruction,
|
|
4380
4388
|
error ? `Failed to plan: ${error}` : planParsingError || "No plan found"
|
|
4381
4389
|
);
|
|
4382
4390
|
}
|
|
@@ -4392,7 +4400,7 @@ var PageTaskExecutor = class {
|
|
|
4392
4400
|
return {
|
|
4393
4401
|
output: {
|
|
4394
4402
|
actions: finalActions,
|
|
4395
|
-
|
|
4403
|
+
more_actions_needed_by_instruction,
|
|
4396
4404
|
log: log2
|
|
4397
4405
|
},
|
|
4398
4406
|
cache: {
|
|
@@ -4473,7 +4481,7 @@ var PageTaskExecutor = class {
|
|
|
4473
4481
|
actions,
|
|
4474
4482
|
thought: (_a = actions[0]) == null ? void 0 : _a.thought,
|
|
4475
4483
|
actionType: actions[0].type,
|
|
4476
|
-
|
|
4484
|
+
more_actions_needed_by_instruction: true,
|
|
4477
4485
|
log: ""
|
|
4478
4486
|
},
|
|
4479
4487
|
cache: {
|
|
@@ -4530,7 +4538,7 @@ var PageTaskExecutor = class {
|
|
|
4530
4538
|
if (planResult == null ? void 0 : planResult.log) {
|
|
4531
4539
|
logLog.push(planResult.log);
|
|
4532
4540
|
}
|
|
4533
|
-
if (planResult.
|
|
4541
|
+
if (!planResult.more_actions_needed_by_instruction) {
|
|
4534
4542
|
planningTask = null;
|
|
4535
4543
|
break;
|
|
4536
4544
|
}
|
|
@@ -5197,3 +5205,5 @@ Promise.resolve().then(() => server.launch()).then(() => {
|
|
|
5197
5205
|
js-yaml/dist/js-yaml.mjs:
|
|
5198
5206
|
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
5199
5207
|
*/
|
|
5208
|
+
|
|
5209
|
+
//# sourceMappingURL=midscene-playground.js.map
|