@midscene/visualizer 0.29.2 → 0.29.3-beta-20250925085555.0

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.
@@ -1,11 +1,8 @@
1
1
  import { useCallback } from "react";
2
2
  import { useEnvConfig } from "../store/store.mjs";
3
+ import { noReplayAPIs } from "@midscene/playground";
3
4
  import { BLANK_RESULT } from "../utils/constants.mjs";
4
5
  import { allScriptsFromDump } from "../utils/replay-scripts.mjs";
5
- const noReplayAPIs = [
6
- 'aiQuery',
7
- 'aiAssert'
8
- ];
9
6
  function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
10
7
  const { deepThink, screenshotIncluded, domIncluded } = useEnvConfig();
11
8
  const handleRun = useCallback(async (value)=>{
@@ -2,6 +2,7 @@ import { StaticPage, StaticPageAgent } from "@midscene/web/static";
2
2
  import { isZodObjectSchema, unwrapZodType } from "../types.mjs";
3
3
  const actionNameForType = (type)=>{
4
4
  const typeWithoutAi = type.startsWith('ai') ? type.slice(2) : type;
5
+ if (typeWithoutAi.startsWith('IOS')) return typeWithoutAi.substring(3).replace(/([A-Z])/g, ' $1').replace(/^/, 'IOS').trim();
5
6
  const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
6
7
  const words = fullName.split(' ');
7
8
  if (words.length > 3) return words.slice(-3).join(' ');
@@ -28,12 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const external_react_namespaceObject = require("react");
30
30
  const store_js_namespaceObject = require("../store/store.js");
31
+ const playground_namespaceObject = require("@midscene/playground");
31
32
  const constants_js_namespaceObject = require("../utils/constants.js");
32
33
  const replay_scripts_js_namespaceObject = require("../utils/replay-scripts.js");
33
- const noReplayAPIs = [
34
- 'aiQuery',
35
- 'aiAssert'
36
- ];
37
34
  function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
38
35
  const { deepThink, screenshotIncluded, domIncluded } = (0, store_js_namespaceObject.useEnvConfig)();
39
36
  const handleRun = (0, external_react_namespaceObject.useCallback)(async (value)=>{
@@ -110,7 +107,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
110
107
  currentRunningIdRef.current = null;
111
108
  let replayInfo = null;
112
109
  let counter = replayCounter;
113
- if ((null == result ? void 0 : result.dump) && !noReplayAPIs.includes(actionType)) {
110
+ if ((null == result ? void 0 : result.dump) && !playground_namespaceObject.noReplayAPIs.includes(actionType)) {
114
111
  const info = (0, replay_scripts_js_namespaceObject.allScriptsFromDump)(result.dump);
115
112
  setReplayCounter((c)=>c + 1);
116
113
  replayInfo = info;
@@ -33,6 +33,7 @@ const static_namespaceObject = require("@midscene/web/static");
33
33
  const external_types_js_namespaceObject = require("../types.js");
34
34
  const actionNameForType = (type)=>{
35
35
  const typeWithoutAi = type.startsWith('ai') ? type.slice(2) : type;
36
+ if (typeWithoutAi.startsWith('IOS')) return typeWithoutAi.substring(3).replace(/([A-Z])/g, ' $1').replace(/^/, 'IOS').trim();
36
37
  const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
37
38
  const words = fullName.split(' ');
38
39
  if (words.length > 3) return words.slice(-3).join(' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/visualizer",
3
- "version": "0.29.2",
3
+ "version": "0.29.3-beta-20250925085555.0",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
@@ -70,10 +70,10 @@
70
70
  "antd": "^5.21.6",
71
71
  "buffer": "6.0.3",
72
72
  "dayjs": "^1.11.11",
73
- "@midscene/playground": "0.29.2",
74
- "@midscene/shared": "0.29.2",
75
- "@midscene/core": "0.29.2",
76
- "@midscene/web": "0.29.2"
73
+ "@midscene/core": "0.29.3-beta-20250925085555.0",
74
+ "@midscene/playground": "0.29.3-beta-20250925085555.0",
75
+ "@midscene/shared": "0.29.3-beta-20250925085555.0",
76
+ "@midscene/web": "0.29.3-beta-20250925085555.0"
77
77
  },
78
78
  "license": "MIT",
79
79
  "scripts": {