@midscene/visualizer 0.27.3-beta-20250825082408.0 → 0.27.3-beta-20250825120123.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.
@@ -60,22 +60,8 @@ const getTaskProgress = async (requestId)=>{
60
60
  }
61
61
  };
62
62
  const actionNameForType = (type)=>{
63
- if ('aiAction' === type) return 'Action';
64
- if ('aiQuery' === type) return 'Query';
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);
@@ -99,22 +99,8 @@ const getTaskProgress = async (requestId)=>{
99
99
  }
100
100
  };
101
101
  const actionNameForType = (type)=>{
102
- if ('aiAction' === type) return 'Action';
103
- if ('aiQuery' === type) return 'Query';
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-beta-20250825082408.0",
3
+ "version": "0.27.3-beta-20250825120123.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,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-beta-20250825082408.0",
74
- "@midscene/shared": "0.27.3-beta-20250825082408.0",
75
- "@midscene/web": "0.27.3-beta-20250825082408.0"
73
+ "@midscene/shared": "0.27.3-beta-20250825120123.0",
74
+ "@midscene/web": "0.27.3-beta-20250825120123.0",
75
+ "@midscene/core": "0.27.3-beta-20250825120123.0"
76
76
  },
77
77
  "license": "MIT",
78
78
  "scripts": {