@midscene/visualizer 1.0.4-beta-20251223105123.0 → 1.0.4-beta-20251223124656.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.
|
@@ -71,16 +71,6 @@ function _object_spread_props(target, source) {
|
|
|
71
71
|
});
|
|
72
72
|
return target;
|
|
73
73
|
}
|
|
74
|
-
function formatError(error) {
|
|
75
|
-
if (!error) return '';
|
|
76
|
-
if ('string' == typeof error) return error;
|
|
77
|
-
if (error.message) return String(error.message);
|
|
78
|
-
try {
|
|
79
|
-
return JSON.stringify(error);
|
|
80
|
-
} catch (e) {
|
|
81
|
-
return String(error);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
74
|
function buildProgressContent(task) {
|
|
85
75
|
const action = typeStr(task);
|
|
86
76
|
const description = paramStr(task);
|
|
@@ -152,7 +142,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
|
|
|
152
142
|
content: buildProgressContent(task),
|
|
153
143
|
timestamp: new Date((null == (_task_timing = task.timing) ? void 0 : _task_timing.start) || Date.now()),
|
|
154
144
|
result: task.error ? {
|
|
155
|
-
error:
|
|
145
|
+
error: String(task.error),
|
|
156
146
|
result: null
|
|
157
147
|
} : void 0
|
|
158
148
|
};
|
|
@@ -178,11 +168,11 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
|
|
|
178
168
|
const resultObj = result.result;
|
|
179
169
|
if (resultObj.dump) result.dump = resultObj.dump;
|
|
180
170
|
if (resultObj.reportHTML) result.reportHTML = resultObj.reportHTML;
|
|
181
|
-
if (resultObj.error) result.error =
|
|
171
|
+
if (resultObj.error) result.error = resultObj.error;
|
|
182
172
|
if (void 0 !== resultObj.result) result.result = resultObj.result;
|
|
183
173
|
}
|
|
184
174
|
} catch (e) {
|
|
185
|
-
result.error =
|
|
175
|
+
result.error = (null == e ? void 0 : e.message) || String(e);
|
|
186
176
|
console.error('Playground execution error:', e);
|
|
187
177
|
if ('object' == typeof e && null !== e) {
|
|
188
178
|
if (e.dump) result.dump = e.dump;
|
|
@@ -99,16 +99,6 @@ function _object_spread_props(target, source) {
|
|
|
99
99
|
});
|
|
100
100
|
return target;
|
|
101
101
|
}
|
|
102
|
-
function formatError(error) {
|
|
103
|
-
if (!error) return '';
|
|
104
|
-
if ('string' == typeof error) return error;
|
|
105
|
-
if (error.message) return String(error.message);
|
|
106
|
-
try {
|
|
107
|
-
return JSON.stringify(error);
|
|
108
|
-
} catch (e) {
|
|
109
|
-
return String(error);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
102
|
function buildProgressContent(task) {
|
|
113
103
|
const action = (0, agent_namespaceObject.typeStr)(task);
|
|
114
104
|
const description = (0, agent_namespaceObject.paramStr)(task);
|
|
@@ -180,7 +170,7 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
|
|
|
180
170
|
content: buildProgressContent(task),
|
|
181
171
|
timestamp: new Date((null == (_task_timing = task.timing) ? void 0 : _task_timing.start) || Date.now()),
|
|
182
172
|
result: task.error ? {
|
|
183
|
-
error:
|
|
173
|
+
error: String(task.error),
|
|
184
174
|
result: null
|
|
185
175
|
} : void 0
|
|
186
176
|
};
|
|
@@ -206,11 +196,11 @@ function usePlaygroundExecution(playgroundSDK, storage, actionSpace, loading, se
|
|
|
206
196
|
const resultObj = result.result;
|
|
207
197
|
if (resultObj.dump) result.dump = resultObj.dump;
|
|
208
198
|
if (resultObj.reportHTML) result.reportHTML = resultObj.reportHTML;
|
|
209
|
-
if (resultObj.error) result.error =
|
|
199
|
+
if (resultObj.error) result.error = resultObj.error;
|
|
210
200
|
if (void 0 !== resultObj.result) result.result = resultObj.result;
|
|
211
201
|
}
|
|
212
202
|
} catch (e) {
|
|
213
|
-
result.error =
|
|
203
|
+
result.error = (null == e ? void 0 : e.message) || String(e);
|
|
214
204
|
console.error('Playground execution error:', e);
|
|
215
205
|
if ('object' == typeof e && null !== e) {
|
|
216
206
|
if (e.dump) result.dump = e.dump;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.0.4-beta-
|
|
3
|
+
"version": "1.0.4-beta-20251223124656.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",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"antd": "^5.21.6",
|
|
61
61
|
"buffer": "6.0.3",
|
|
62
62
|
"dayjs": "^1.11.11",
|
|
63
|
-
"@midscene/core": "1.0.4-beta-
|
|
64
|
-
"@midscene/playground": "1.0.4-beta-
|
|
65
|
-
"@midscene/shared": "1.0.4-beta-
|
|
66
|
-
"@midscene/web": "1.0.4-beta-
|
|
63
|
+
"@midscene/core": "1.0.4-beta-20251223124656.0",
|
|
64
|
+
"@midscene/playground": "1.0.4-beta-20251223124656.0",
|
|
65
|
+
"@midscene/shared": "1.0.4-beta-20251223124656.0",
|
|
66
|
+
"@midscene/web": "1.0.4-beta-20251223124656.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"scripts": {
|