@midscene/web 0.11.1 → 0.11.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 (36) hide show
  1. package/dist/es/appium.js +84 -39
  2. package/dist/es/bridge-mode-browser.js +58 -19
  3. package/dist/es/bridge-mode.js +61 -43
  4. package/dist/es/chrome-extension.js +104 -51
  5. package/dist/es/index.js +291 -218
  6. package/dist/es/midscene-playground.js +56 -38
  7. package/dist/es/playground.js +56 -38
  8. package/dist/es/playwright.js +251 -203
  9. package/dist/es/puppeteer.js +85 -60
  10. package/dist/es/ui-utils.js +43 -0
  11. package/dist/lib/appium.js +84 -39
  12. package/dist/lib/bridge-mode-browser.js +58 -19
  13. package/dist/lib/bridge-mode.js +61 -43
  14. package/dist/lib/chrome-extension.js +104 -51
  15. package/dist/lib/index.js +291 -218
  16. package/dist/lib/midscene-playground.js +56 -38
  17. package/dist/lib/playground.js +56 -38
  18. package/dist/lib/playwright.js +251 -203
  19. package/dist/lib/puppeteer.js +85 -60
  20. package/dist/lib/ui-utils.js +43 -0
  21. package/dist/types/{tasks-d5a01262.d.ts → agent-ac363fa3.d.ts} +41 -41
  22. package/dist/types/appium.d.ts +2 -2
  23. package/dist/types/bridge-mode-browser.d.ts +2 -2
  24. package/dist/types/bridge-mode.d.ts +3 -3
  25. package/dist/types/{browser-7d5614fb.d.ts → browser-eae1a5c1.d.ts} +4 -4
  26. package/dist/types/chrome-extension.d.ts +3 -3
  27. package/dist/types/index.d.ts +8 -8
  28. package/dist/types/{page-77af8d5f.d.ts → page-cf0f892e.d.ts} +32 -6
  29. package/dist/types/playground.d.ts +3 -3
  30. package/dist/types/playwright.d.ts +12 -6
  31. package/dist/types/puppeteer.d.ts +2 -2
  32. package/dist/types/ui-utils.d.ts +6 -1
  33. package/dist/types/{utils-1a3bc661.d.ts → utils-9a29bfa0.d.ts} +1 -1
  34. package/dist/types/utils.d.ts +1 -1
  35. package/dist/types/yaml.d.ts +3 -3
  36. package/package.json +6 -6
@@ -1,5 +1,5 @@
1
1
  import '@midscene/core';
2
- export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, c as WebUIContext, h as generateCacheId, f as getCurrentExecutionFile, g as getExtraReturnLogic, p as parseContextFromWebPage, e as printReportMsg, r as reportFileName } from './page-77af8d5f.js';
2
+ export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, c as WebUIContext, h as generateCacheId, f as getCurrentExecutionFile, g as getExtraReturnLogic, p as parseContextFromWebPage, e as printReportMsg, r as reportFileName } from './page-cf0f892e.js';
3
3
  import 'playwright';
4
4
  import '@midscene/shared/extractor';
5
5
  import 'puppeteer';
@@ -1,8 +1,8 @@
1
- export { S as ScriptPlayer, f as flowItemBrief, p as parseYamlScript } from './utils-1a3bc661.js';
1
+ export { S as ScriptPlayer, f as flowItemBrief, p as parseYamlScript } from './utils-9a29bfa0.js';
2
2
  import { MidsceneYamlScriptEnv, MidsceneYamlTask } from '@midscene/core';
3
- import './tasks-d5a01262.js';
3
+ import './agent-ac363fa3.js';
4
4
  import '@midscene/core/dist/lib/types/types-4eebf154';
5
- import './page-77af8d5f.js';
5
+ import './page-cf0f892e.js';
6
6
  import 'playwright';
7
7
  import '@midscene/shared/extractor';
8
8
  import 'puppeteer';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/web",
3
3
  "description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
4
- "version": "0.11.1",
4
+ "version": "0.11.2",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "jsnext:source": "./src/index.ts",
@@ -133,8 +133,8 @@
133
133
  "openai": "4.81.0",
134
134
  "socket.io": "4.8.1",
135
135
  "socket.io-client": "4.8.1",
136
- "@midscene/core": "0.11.1",
137
- "@midscene/shared": "0.11.1"
136
+ "@midscene/core": "0.11.2",
137
+ "@midscene/shared": "0.11.2"
138
138
  },
139
139
  "devDependencies": {
140
140
  "@modern-js/module-tools": "2.60.6",
@@ -153,9 +153,9 @@
153
153
  "js-sha256": "0.11.0",
154
154
  "js-yaml": "4.1.0",
155
155
  "playwright": "1.44.1",
156
- "puppeteer": "23.0.2",
156
+ "puppeteer": "24.2.0",
157
157
  "typescript": "~5.0.4",
158
- "vitest": "^1.6.0",
158
+ "vitest": "3.0.5",
159
159
  "webdriverio": "9.0.6"
160
160
  },
161
161
  "peerDependencies": {
@@ -191,7 +191,7 @@
191
191
  "test": "vitest --run",
192
192
  "test:u": "vitest --run -u",
193
193
  "test:ai": "AI_TEST_TYPE=web npm run test",
194
- "test:ai:temp": "AI_TEST_TYPE=web BRIDGE_MODE=true vitest --run tests/ai/bridge/temp.test.ts",
194
+ "test:ai:temp": "MIDSCENE_CACHE=true AI_TEST_TYPE=web BRIDGE_MODE=true vitest --run tests/ai/bridge/open-new-tab.test.ts",
195
195
  "test:ai:bridge": "MIDSCENE_CACHE=true BRIDGE_MODE=true AI_TEST_TYPE=web npm run test --inspect tests/ai/bridge/temp.test.ts",
196
196
  "test:ai:cache": "MIDSCENE_CACHE=true AI_TEST_TYPE=web npm run test",
197
197
  "test:ai:all": "npm run test:ai:web && npm run test:ai:native",