Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: web-infra-dev/midscene
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.19.0
Choose a base ref
...
head repository: web-infra-dev/midscene
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.19.1
Choose a head ref
  • 9 commits
  • 43 files changed
  • 3 contributors

Commits on Jun 13, 2025

  1. Copy the full SHA
    65fc4ea View commit details

Commits on Jun 16, 2025

  1. Copy the full SHA
    86ec890 View commit details
  2. Copy the full SHA
    f7d8471 View commit details
  3. fix(core): only replace script tag (#829)

    * fix(core): only replace script tag
    
    * test(web-integration): add more test
    quanru authored Jun 16, 2025
    Copy the full SHA
    50203ed View commit details
  4. feat(web-integration): dump pageContext for aiAssert (#835)

    * feat(web-integration): add pageContext for aiAssert
    
    * fix(web-integration): screenshot name
    quanru authored Jun 16, 2025
    Copy the full SHA
    3775c2d View commit details
  5. Copy the full SHA
    5e9eb72 View commit details

Commits on Jun 17, 2025

  1. feat(android): support ime strategy for android device (#839)

    * feat(android): support ime strategy for android device
    
    * docs(site): update
    quanru authored Jun 17, 2025
    Copy the full SHA
    5f79ef8 View commit details
  2. fix(shared): add text content for leaf elements before text node (#837)

    * fix(shared): add text content for leaf elements before text node
    
    * fix(core): return too early
    
    * fix(core): update page description condition for non-vl mode
    
    * test(core): add bug test case
    quanru authored Jun 17, 2025
    Copy the full SHA
    dbd4c89 View commit details
  3. release: v0.19.1

    github-actions[bot] committed Jun 17, 2025
    Copy the full SHA
    bcfc2fc View commit details
Showing with 488,340 additions and 607 deletions.
  1. +1 −1 apps/chrome-extension/static/manifest.json
  2. +2 −2 apps/report/src/App.tsx
  3. +2 −2 apps/report/src/index.tsx
  4. +6,945 −1 apps/report/test-data/ai-shop.json
  5. +45 −1 apps/report/test-data/error.json
  6. +384,732 −1 apps/report/test-data/online-order.json
  7. +78 −1 apps/report/test-data/query-only.json
  8. +3,645 −1 apps/report/test-data/swag-lab.json
  9. +74,284 −1 apps/report/test-data/taobao.json
  10. +49 −41 apps/site/docs/en/integrate-with-android.mdx
  11. +2 −2 apps/site/docs/en/integrate-with-playwright.mdx
  12. +49 −40 apps/site/docs/zh/integrate-with-android.mdx
  13. +3 −1 biome.json
  14. +16 −0 nx.json
  15. +1 −1 package.json
  16. BIN packages/android-playground/bin/server.bin
  17. +1 −3 packages/android-playground/package.json
  18. +12 −4 packages/android-playground/src/scrcpy-server.ts
  19. +1 −1 packages/android/package.json
  20. +1 −0 packages/android/src/agent/index.ts
  21. +13 −5 packages/android/src/page/index.ts
  22. +1 −1 packages/cli/package.json
  23. +2 −3 packages/core/package.json
  24. +9 −7 packages/core/src/ai-model/prompt/util.ts
  25. +3 −7 packages/core/src/utils.ts
  26. +982 −0 packages/core/tests/fixtures/dump-for-utils-test.json
  27. +198 −3 packages/core/tests/unit-test/prompt/utils.test.ts
  28. +1 −1 packages/evaluation/package.json
  29. +1 −1 packages/mcp/package.json
  30. +1 −1 packages/recorder/package.json
  31. +1 −1 packages/shared/package.json
  32. +3 −0 packages/shared/src/env.ts
  33. +24 −10 packages/shared/src/extractor/locator.ts
  34. +18 −2 packages/shared/src/logger.ts
  35. +2 −2 packages/shared/src/utils.ts
  36. +1 −1 packages/visualizer/package.json
  37. +1 −1 packages/web-integration/package.json
  38. +15 −3 packages/web-integration/src/common/tasks.ts
  39. +23 −6 packages/web-integration/src/common/utils.ts
  40. +2 −2 packages/web-integration/tests/ai/web/puppeteer/e2e.test.ts
  41. +17,152 −0 packages/web-integration/tests/unit-test/fixtures/dump-with-invisible.json
  42. +18 −0 packages/web-integration/tests/unit-test/util.test.ts
  43. +0 −446 pnpm-lock.yaml
2 changes: 1 addition & 1 deletion apps/chrome-extension/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Midscene.js",
"description": "Open-source SDK for automating web pages using natural language through AI.",
"version": "0.76",
"version": "0.77",
"manifest_version": 3,
"permissions": [
"activeTab",
4 changes: 2 additions & 2 deletions apps/report/src/App.tsx
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { Button, ConfigProvider, Empty } from 'antd';
import { useEffect, useRef, useState } from 'react';
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';

import { antiEscapeHtml } from '@midscene/shared/utils';
import { antiEscapeScriptTag } from '@midscene/shared/utils';
import { Logo, Player, globalThemeConfig } from '@midscene/visualizer';
import { PlaywrightCaseSelector } from './components/PlaywrightCaseSelector';
import DetailPanel from './components/detail-panel';
@@ -276,7 +276,7 @@ const App = () => {
}
});

const content = antiEscapeHtml(el.textContent || '');
const content = antiEscapeScriptTag(el.textContent || '');
try {
const jsonContent = JSON.parse(content);
jsonContent.attributes = attributes;
4 changes: 2 additions & 2 deletions apps/report/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { antiEscapeHtml } from '@midscene/shared/utils';
import { escapeScriptTag } from '@midscene/shared/utils';
import { Alert } from 'antd';
import ReactDOM from 'react-dom/client';
import { Visualizer } from './App';
@@ -49,7 +49,7 @@ if (rootEl) {
}
});

const content = antiEscapeHtml(el.textContent || '');
const content = escapeScriptTag(el.textContent || '');
try {
const jsonContent = JSON.parse(content);
jsonContent.attributes = attributes;
6,946 changes: 6,945 additions & 1 deletion apps/report/test-data/ai-shop.json

Large diffs are not rendered by default.

Loading