@midscene/visualizer 0.27.3-beta-20250825082408.0 → 0.27.3
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.
|
@@ -62,7 +62,8 @@ const ServiceModeControl = (param)=>{
|
|
|
62
62
|
if ('Server' === serviceMode) overrideServerConfig(config);
|
|
63
63
|
}, [
|
|
64
64
|
config,
|
|
65
|
-
serviceMode
|
|
65
|
+
serviceMode,
|
|
66
|
+
serverValid
|
|
66
67
|
]);
|
|
67
68
|
const statusContent = 'Server' === serviceMode && renderServerTip();
|
|
68
69
|
const title = TITLE_TEXT[serviceMode];
|
|
@@ -60,22 +60,8 @@ const getTaskProgress = async (requestId)=>{
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
const actionNameForType = (type)=>{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if ('aiAssert' === type) return 'Assert';
|
|
66
|
-
if ('aiTap' === type) return 'Tap';
|
|
67
|
-
if ('aiHover' === type) return 'Hover';
|
|
68
|
-
if ('aiInput' === type) return 'Input';
|
|
69
|
-
if ('aiRightClick' === type) return 'Right Click';
|
|
70
|
-
if ('aiKeyboardPress' === type) return 'Keyboard Press';
|
|
71
|
-
if ('aiScroll' === type) return 'Scroll';
|
|
72
|
-
if ('aiLocate' === type) return 'Locate';
|
|
73
|
-
if ('aiBoolean' === type) return 'Boolean';
|
|
74
|
-
if ('aiNumber' === type) return 'Number';
|
|
75
|
-
if ('aiString' === type) return 'String';
|
|
76
|
-
if ('aiAsk' === type) return 'Ask';
|
|
77
|
-
if ('aiWaitFor' === type) return 'Wait For';
|
|
78
|
-
return type;
|
|
63
|
+
const typeWithoutAi = type.startsWith('ai') ? type.slice(2) : type;
|
|
64
|
+
return typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
|
|
79
65
|
};
|
|
80
66
|
const staticAgentFromContext = (context)=>{
|
|
81
67
|
const page = new StaticPage(context);
|
|
@@ -90,7 +90,8 @@ const ServiceModeControl = (param)=>{
|
|
|
90
90
|
if ('Server' === serviceMode) (0, external_playground_utils_js_namespaceObject.overrideServerConfig)(config);
|
|
91
91
|
}, [
|
|
92
92
|
config,
|
|
93
|
-
serviceMode
|
|
93
|
+
serviceMode,
|
|
94
|
+
serverValid
|
|
94
95
|
]);
|
|
95
96
|
const statusContent = 'Server' === serviceMode && renderServerTip();
|
|
96
97
|
const title = TITLE_TEXT[serviceMode];
|
|
@@ -99,22 +99,8 @@ const getTaskProgress = async (requestId)=>{
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
const actionNameForType = (type)=>{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if ('aiAssert' === type) return 'Assert';
|
|
105
|
-
if ('aiTap' === type) return 'Tap';
|
|
106
|
-
if ('aiHover' === type) return 'Hover';
|
|
107
|
-
if ('aiInput' === type) return 'Input';
|
|
108
|
-
if ('aiRightClick' === type) return 'Right Click';
|
|
109
|
-
if ('aiKeyboardPress' === type) return 'Keyboard Press';
|
|
110
|
-
if ('aiScroll' === type) return 'Scroll';
|
|
111
|
-
if ('aiLocate' === type) return 'Locate';
|
|
112
|
-
if ('aiBoolean' === type) return 'Boolean';
|
|
113
|
-
if ('aiNumber' === type) return 'Number';
|
|
114
|
-
if ('aiString' === type) return 'String';
|
|
115
|
-
if ('aiAsk' === type) return 'Ask';
|
|
116
|
-
if ('aiWaitFor' === type) return 'Wait For';
|
|
117
|
-
return type;
|
|
102
|
+
const typeWithoutAi = type.startsWith('ai') ? type.slice(2) : type;
|
|
103
|
+
return typeWithoutAi.replace(/([A-Z])/g, ' $1').trim();
|
|
118
104
|
};
|
|
119
105
|
const staticAgentFromContext = (context)=>{
|
|
120
106
|
const page = new playground_namespaceObject.StaticPage(context);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "0.27.3
|
|
3
|
+
"version": "0.27.3",
|
|
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,9 +70,9 @@
|
|
|
70
70
|
"antd": "^5.21.6",
|
|
71
71
|
"buffer": "6.0.3",
|
|
72
72
|
"dayjs": "^1.11.11",
|
|
73
|
-
"@midscene/core": "0.27.3
|
|
74
|
-
"@midscene/
|
|
75
|
-
"@midscene/
|
|
73
|
+
"@midscene/core": "0.27.3",
|
|
74
|
+
"@midscene/web": "0.27.3",
|
|
75
|
+
"@midscene/shared": "0.27.3"
|
|
76
76
|
},
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"scripts": {
|