@midscene/core 0.14.0 → 0.14.1
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.
- package/dist/es/{chunk-FJFOIYTG.js → chunk-KRFD6SDV.js} +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/utils.js +1 -1
- package/dist/lib/{chunk-FJFOIYTG.js → chunk-KRFD6SDV.js} +2 -2
- package/dist/lib/index.js +5 -5
- package/dist/lib/utils.js +2 -2
- package/package.json +2 -2
- package/report/index.html +4 -4
- /package/dist/es/{chunk-FJFOIYTG.js.map → chunk-KRFD6SDV.js.map} +0 -0
- /package/dist/lib/{chunk-FJFOIYTG.js.map → chunk-KRFD6SDV.js.map} +0 -0
|
@@ -201,7 +201,7 @@ function stringifyDumpData(data, indents) {
|
|
|
201
201
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
202
202
|
}
|
|
203
203
|
function getVersion() {
|
|
204
|
-
return "0.14.
|
|
204
|
+
return "0.14.1";
|
|
205
205
|
}
|
|
206
206
|
function debugLog(...message) {
|
|
207
207
|
const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
|
|
@@ -267,4 +267,4 @@ export {
|
|
|
267
267
|
uploadTestInfoToServer
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
//# sourceMappingURL=chunk-
|
|
270
|
+
//# sourceMappingURL=chunk-KRFD6SDV.js.map
|
package/dist/es/index.js
CHANGED
package/dist/es/utils.js
CHANGED
|
@@ -201,7 +201,7 @@ function stringifyDumpData(data, indents) {
|
|
|
201
201
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
202
202
|
}
|
|
203
203
|
function getVersion() {
|
|
204
|
-
return "0.14.
|
|
204
|
+
return "0.14.1";
|
|
205
205
|
}
|
|
206
206
|
function debugLog(...message) {
|
|
207
207
|
const debugMode = _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_DEBUG_MODE);
|
|
@@ -267,4 +267,4 @@ function uploadTestInfoToServer({ testUrl }) {
|
|
|
267
267
|
|
|
268
268
|
exports.groupedActionDumpFileExt = groupedActionDumpFileExt; exports.getLogDir = getLogDir; exports.setLogDir = setLogDir; exports.getLogDirByType = getLogDirByType; exports.setReportTpl = setReportTpl; exports.replaceStringWithFirstAppearance = replaceStringWithFirstAppearance; exports.reportHTMLContent = reportHTMLContent; exports.writeDumpReport = writeDumpReport; exports.writeLogFile = writeLogFile; exports.getTmpDir = getTmpDir; exports.getTmpFile = getTmpFile; exports.overlapped = overlapped; exports.sleep = sleep; exports.replacerForPageObject = replacerForPageObject; exports.stringifyDumpData = stringifyDumpData; exports.getVersion = getVersion; exports.uploadTestInfoToServer = uploadTestInfoToServer;
|
|
269
269
|
|
|
270
|
-
//# sourceMappingURL=chunk-
|
|
270
|
+
//# sourceMappingURL=chunk-KRFD6SDV.js.map
|
package/dist/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKRFD6SDVjs = require('./chunk-KRFD6SDV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -167,7 +167,7 @@ ${_optionalChain([this, 'access', _7 => _7.latestErrorTask, 'call', _8 => _8(),
|
|
|
167
167
|
}
|
|
168
168
|
dump() {
|
|
169
169
|
const dumpData = {
|
|
170
|
-
sdkVersion:
|
|
170
|
+
sdkVersion: _chunkKRFD6SDVjs.getVersion.call(void 0, ),
|
|
171
171
|
model_name: _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME) || "",
|
|
172
172
|
logTime: Date.now(),
|
|
173
173
|
name: this.name,
|
|
@@ -185,7 +185,7 @@ var _logger = require('@midscene/shared/logger');
|
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
function emitInsightDump(data, dumpSubscriber) {
|
|
188
|
-
const logDir =
|
|
188
|
+
const logDir = _chunkKRFD6SDVjs.getLogDir.call(void 0, );
|
|
189
189
|
_utils.assert.call(void 0, logDir, "logDir should be set before writing dump file");
|
|
190
190
|
let modelDescription = "";
|
|
191
191
|
if (_chunkUBGEKXK7js.getAIConfigInBoolean.call(void 0, _chunkUBGEKXK7js.MIDSCENE_USE_VLM_UI_TARS)) {
|
|
@@ -194,7 +194,7 @@ function emitInsightDump(data, dumpSubscriber) {
|
|
|
194
194
|
modelDescription = `${_chunkUBGEKXK7js.vlLocateMode.call(void 0, )} mode`;
|
|
195
195
|
}
|
|
196
196
|
const baseData = {
|
|
197
|
-
sdkVersion:
|
|
197
|
+
sdkVersion: _chunkKRFD6SDVjs.getVersion.call(void 0, ),
|
|
198
198
|
logTime: Date.now(),
|
|
199
199
|
model_name: _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME) || "",
|
|
200
200
|
model_description: modelDescription
|
|
@@ -460,6 +460,6 @@ var src_default = Insight;
|
|
|
460
460
|
|
|
461
461
|
|
|
462
462
|
|
|
463
|
-
exports.AiAssert = _chunkNT2FFWZIjs.AiAssert; exports.AiLocateElement = _chunkNT2FFWZIjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkNT2FFWZIjs.describeUserPage; exports.getAIConfig = _chunkUBGEKXK7js.getAIConfig; exports.getLogDirByType =
|
|
463
|
+
exports.AiAssert = _chunkNT2FFWZIjs.AiAssert; exports.AiLocateElement = _chunkNT2FFWZIjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkNT2FFWZIjs.describeUserPage; exports.getAIConfig = _chunkUBGEKXK7js.getAIConfig; exports.getLogDirByType = _chunkKRFD6SDVjs.getLogDirByType; exports.getVersion = _chunkKRFD6SDVjs.getVersion; exports.plan = _chunkNT2FFWZIjs.plan; exports.setLogDir = _chunkKRFD6SDVjs.setLogDir; exports.transformElementPositionToId = _chunkNT2FFWZIjs.transformElementPositionToId;
|
|
464
464
|
|
|
465
465
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/utils.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkKRFD6SDVjs = require('./chunk-KRFD6SDV.js');
|
|
20
20
|
require('./chunk-UBGEKXK7.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -36,4 +36,4 @@ require('./chunk-UBGEKXK7.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
exports.getLogDir =
|
|
39
|
+
exports.getLogDir = _chunkKRFD6SDVjs.getLogDir; exports.getLogDirByType = _chunkKRFD6SDVjs.getLogDirByType; exports.getTmpDir = _chunkKRFD6SDVjs.getTmpDir; exports.getTmpFile = _chunkKRFD6SDVjs.getTmpFile; exports.getVersion = _chunkKRFD6SDVjs.getVersion; exports.groupedActionDumpFileExt = _chunkKRFD6SDVjs.groupedActionDumpFileExt; exports.overlapped = _chunkKRFD6SDVjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkKRFD6SDVjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkKRFD6SDVjs.replacerForPageObject; exports.reportHTMLContent = _chunkKRFD6SDVjs.reportHTMLContent; exports.setLogDir = _chunkKRFD6SDVjs.setLogDir; exports.setReportTpl = _chunkKRFD6SDVjs.setReportTpl; exports.sleep = _chunkKRFD6SDVjs.sleep; exports.stringifyDumpData = _chunkKRFD6SDVjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkKRFD6SDVjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkKRFD6SDVjs.writeDumpReport; exports.writeLogFile = _chunkKRFD6SDVjs.writeLogFile;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/core",
|
|
3
3
|
"description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"jsnext:source": "./src/index.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dirty-json": "0.9.2",
|
|
49
49
|
"dotenv": "16.4.5",
|
|
50
50
|
"langsmith": "0.3.7",
|
|
51
|
-
"@midscene/shared": "0.14.
|
|
51
|
+
"@midscene/shared": "0.14.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@modern-js/module-tools": "2.60.6",
|