@midscene/visualizer 0.28.12-beta-20250923124135.0 → 0.28.12-beta-20250924091555.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,8 +1,11 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
2
|
import { useEnvConfig } from "../store/store.mjs";
|
|
3
|
-
import { noReplayAPIs } from "@midscene/playground";
|
|
4
3
|
import { BLANK_RESULT } from "../utils/constants.mjs";
|
|
5
4
|
import { allScriptsFromDump } from "../utils/replay-scripts.mjs";
|
|
5
|
+
const noReplayAPIs = [
|
|
6
|
+
'aiQuery',
|
|
7
|
+
'aiAssert'
|
|
8
|
+
];
|
|
6
9
|
function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
|
|
7
10
|
const { deepThink, screenshotIncluded, domIncluded } = useEnvConfig();
|
|
8
11
|
const handleRun = useCallback(async (value)=>{
|
|
@@ -2,7 +2,6 @@ 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();
|
|
6
5
|
const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
|
|
7
6
|
const words = fullName.split(' ');
|
|
8
7
|
if (words.length > 3) return words.slice(-3).join(' ');
|
|
@@ -28,9 +28,12 @@ __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");
|
|
32
31
|
const constants_js_namespaceObject = require("../utils/constants.js");
|
|
33
32
|
const replay_scripts_js_namespaceObject = require("../utils/replay-scripts.js");
|
|
33
|
+
const noReplayAPIs = [
|
|
34
|
+
'aiQuery',
|
|
35
|
+
'aiAssert'
|
|
36
|
+
];
|
|
34
37
|
function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, setLoading, infoList, setInfoList, replayCounter, setReplayCounter, verticalMode, currentRunningIdRef, interruptedFlagRef) {
|
|
35
38
|
const { deepThink, screenshotIncluded, domIncluded } = (0, store_js_namespaceObject.useEnvConfig)();
|
|
36
39
|
const handleRun = (0, external_react_namespaceObject.useCallback)(async (value)=>{
|
|
@@ -107,7 +110,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
|
|
|
107
110
|
currentRunningIdRef.current = null;
|
|
108
111
|
let replayInfo = null;
|
|
109
112
|
let counter = replayCounter;
|
|
110
|
-
if ((null == result ? void 0 : result.dump) && !
|
|
113
|
+
if ((null == result ? void 0 : result.dump) && !noReplayAPIs.includes(actionType)) {
|
|
111
114
|
const info = (0, replay_scripts_js_namespaceObject.allScriptsFromDump)(result.dump);
|
|
112
115
|
setReplayCounter((c)=>c + 1);
|
|
113
116
|
replayInfo = info;
|
|
@@ -33,7 +33,6 @@ 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();
|
|
37
36
|
const fullName = typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
|
|
38
37
|
const words = fullName.split(' ');
|
|
39
38
|
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.28.12-beta-
|
|
3
|
+
"version": "0.28.12-beta-20250924091555.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/
|
|
74
|
-
"@midscene/
|
|
75
|
-
"@midscene/
|
|
76
|
-
"@midscene/
|
|
73
|
+
"@midscene/playground": "0.28.12-beta-20250924091555.0",
|
|
74
|
+
"@midscene/web": "0.28.12-beta-20250924091555.0",
|
|
75
|
+
"@midscene/core": "0.28.12-beta-20250924091555.0",
|
|
76
|
+
"@midscene/shared": "0.28.12-beta-20250924091555.0"
|
|
77
77
|
},
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"scripts": {
|