@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.
Files changed (67) hide show
  1. package/dist/es/appium.js +15 -5
  2. package/dist/es/appium.js.map +1 -0
  3. package/dist/es/bridge-mode-browser.js +5 -3
  4. package/dist/es/bridge-mode-browser.js.map +1 -0
  5. package/dist/es/bridge-mode.js +17 -7
  6. package/dist/es/bridge-mode.js.map +1 -0
  7. package/dist/es/chrome-extension.js +16 -6
  8. package/dist/es/chrome-extension.js.map +1 -0
  9. package/dist/es/index.js +15 -5
  10. package/dist/es/index.js.map +1 -0
  11. package/dist/es/midscene-playground.js +15 -5
  12. package/dist/es/midscene-playground.js.map +1 -0
  13. package/dist/es/playground.js +15 -5
  14. package/dist/es/playground.js.map +1 -0
  15. package/dist/es/playwright-report.js +2 -0
  16. package/dist/es/playwright-report.js.map +1 -0
  17. package/dist/es/playwright.js +15 -5
  18. package/dist/es/playwright.js.map +1 -0
  19. package/dist/es/puppeteer.js +16 -5
  20. package/dist/es/puppeteer.js.map +1 -0
  21. package/dist/es/ui-utils.js +2 -0
  22. package/dist/es/ui-utils.js.map +1 -0
  23. package/dist/es/utils.js +2 -0
  24. package/dist/es/utils.js.map +1 -0
  25. package/dist/es/yaml.js +2 -0
  26. package/dist/es/yaml.js.map +1 -0
  27. package/dist/lib/appium.js +15 -5
  28. package/dist/lib/appium.js.map +1 -0
  29. package/dist/lib/bridge-mode-browser.js +5 -3
  30. package/dist/lib/bridge-mode-browser.js.map +1 -0
  31. package/dist/lib/bridge-mode.js +17 -7
  32. package/dist/lib/bridge-mode.js.map +1 -0
  33. package/dist/lib/chrome-extension.js +16 -6
  34. package/dist/lib/chrome-extension.js.map +1 -0
  35. package/dist/lib/index.js +15 -5
  36. package/dist/lib/index.js.map +1 -0
  37. package/dist/lib/midscene-playground.js +15 -5
  38. package/dist/lib/midscene-playground.js.map +1 -0
  39. package/dist/lib/playground.js +15 -5
  40. package/dist/lib/playground.js.map +1 -0
  41. package/dist/lib/playwright-report.js +2 -0
  42. package/dist/lib/playwright-report.js.map +1 -0
  43. package/dist/lib/playwright.js +15 -5
  44. package/dist/lib/playwright.js.map +1 -0
  45. package/dist/lib/puppeteer.js +16 -5
  46. package/dist/lib/puppeteer.js.map +1 -0
  47. package/dist/lib/ui-utils.js +2 -0
  48. package/dist/lib/ui-utils.js.map +1 -0
  49. package/dist/lib/utils.js +2 -0
  50. package/dist/lib/utils.js.map +1 -0
  51. package/dist/lib/yaml.js +2 -0
  52. package/dist/lib/yaml.js.map +1 -0
  53. package/dist/types/{agent-c2b81e5e.d.ts → agent-93ac4610.d.ts} +3 -3
  54. package/dist/types/appium.d.ts +3 -3
  55. package/dist/types/bridge-mode-browser.d.ts +3 -3
  56. package/dist/types/bridge-mode.d.ts +4 -4
  57. package/dist/types/{browser-97da85f7.d.ts → browser-3c8d24ff.d.ts} +1 -1
  58. package/dist/types/chrome-extension.d.ts +4 -4
  59. package/dist/types/index.d.ts +4 -4
  60. package/dist/types/{page-19506936.d.ts → page-09c548ff.d.ts} +2 -2
  61. package/dist/types/playground.d.ts +4 -4
  62. package/dist/types/playwright.d.ts +3 -3
  63. package/dist/types/puppeteer.d.ts +4 -3
  64. package/dist/types/{utils-40a29aea.d.ts → utils-c05abdf8.d.ts} +1 -1
  65. package/dist/types/utils.d.ts +2 -2
  66. package/dist/types/yaml.d.ts +4 -4
  67. package/package.json +4 -6
@@ -4037,7 +4037,15 @@ var PageTaskExecutor = class {
4037
4037
  log: param.log
4038
4038
  });
4039
4039
  }
4040
- const { actions, log: log2, finish, error, usage, rawResponse, sleep: sleep4 } = planResult;
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
- finish,
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
- finish,
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
- finish: false,
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.finish) {
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.1";
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