@midscene/core 0.14.4-beta-20250418094131.0 → 0.15.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.
- package/dist/es/{chunk-BKDOK3RJ.js → chunk-EAOQ3VY4.js} +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/utils.js +1 -1
- package/dist/lib/{chunk-BKDOK3RJ.js → chunk-EAOQ3VY4.js} +2 -2
- package/dist/lib/index.js +4 -4
- package/dist/lib/utils.js +2 -2
- package/package.json +2 -2
- package/report/index.html +8 -8
- /package/dist/es/{chunk-BKDOK3RJ.js.map → chunk-EAOQ3VY4.js.map} +0 -0
- /package/dist/lib/{chunk-BKDOK3RJ.js.map → chunk-EAOQ3VY4.js.map} +0 -0
|
@@ -192,7 +192,7 @@ function stringifyDumpData(data, indents) {
|
|
|
192
192
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
193
193
|
}
|
|
194
194
|
function getVersion() {
|
|
195
|
-
return "0.
|
|
195
|
+
return "0.15.0";
|
|
196
196
|
}
|
|
197
197
|
function debugLog(...message) {
|
|
198
198
|
const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
|
|
@@ -256,4 +256,4 @@ export {
|
|
|
256
256
|
uploadTestInfoToServer
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
//# sourceMappingURL=chunk-
|
|
259
|
+
//# sourceMappingURL=chunk-EAOQ3VY4.js.map
|
package/dist/es/index.js
CHANGED
package/dist/es/utils.js
CHANGED
|
@@ -192,7 +192,7 @@ function stringifyDumpData(data, indents) {
|
|
|
192
192
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
193
193
|
}
|
|
194
194
|
function getVersion() {
|
|
195
|
-
return "0.
|
|
195
|
+
return "0.15.0";
|
|
196
196
|
}
|
|
197
197
|
function debugLog(...message) {
|
|
198
198
|
const debugMode = _chunkL7YQALVOjs.getAIConfig.call(void 0, _chunkL7YQALVOjs.MIDSCENE_DEBUG_MODE);
|
|
@@ -256,4 +256,4 @@ function uploadTestInfoToServer({ testUrl }) {
|
|
|
256
256
|
|
|
257
257
|
exports.groupedActionDumpFileExt = groupedActionDumpFileExt; exports.getLogDir = getLogDir; 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;
|
|
258
258
|
|
|
259
|
-
//# sourceMappingURL=chunk-
|
|
259
|
+
//# sourceMappingURL=chunk-EAOQ3VY4.js.map
|
package/dist/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEAOQ3VY4js = require('./chunk-EAOQ3VY4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -162,7 +162,7 @@ ${_optionalChain([this, 'access', _7 => _7.latestErrorTask, 'call', _8 => _8(),
|
|
|
162
162
|
}
|
|
163
163
|
dump() {
|
|
164
164
|
const dumpData = {
|
|
165
|
-
sdkVersion:
|
|
165
|
+
sdkVersion: _chunkEAOQ3VY4js.getVersion.call(void 0, ),
|
|
166
166
|
model_name: _chunkL7YQALVOjs.getAIConfig.call(void 0, _chunkL7YQALVOjs.MIDSCENE_MODEL_NAME) || "",
|
|
167
167
|
logTime: Date.now(),
|
|
168
168
|
name: this.name,
|
|
@@ -184,7 +184,7 @@ function emitInsightDump(data, dumpSubscriber) {
|
|
|
184
184
|
modelDescription = `${_chunkL7YQALVOjs.vlLocateMode.call(void 0, )} mode`;
|
|
185
185
|
}
|
|
186
186
|
const baseData = {
|
|
187
|
-
sdkVersion:
|
|
187
|
+
sdkVersion: _chunkEAOQ3VY4js.getVersion.call(void 0, ),
|
|
188
188
|
logTime: Date.now(),
|
|
189
189
|
model_name: _chunkL7YQALVOjs.getAIConfig.call(void 0, _chunkL7YQALVOjs.MIDSCENE_MODEL_NAME) || "",
|
|
190
190
|
model_description: modelDescription
|
|
@@ -447,6 +447,6 @@ var src_default = Insight;
|
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
|
|
450
|
-
exports.AiAssert = _chunkFFIC6TFZjs.AiAssert; exports.AiLocateElement = _chunkFFIC6TFZjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkL7YQALVOjs.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkFFIC6TFZjs.describeUserPage; exports.getAIConfig = _chunkL7YQALVOjs.getAIConfig; exports.getVersion =
|
|
450
|
+
exports.AiAssert = _chunkFFIC6TFZjs.AiAssert; exports.AiLocateElement = _chunkFFIC6TFZjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkL7YQALVOjs.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkFFIC6TFZjs.describeUserPage; exports.getAIConfig = _chunkL7YQALVOjs.getAIConfig; exports.getVersion = _chunkEAOQ3VY4js.getVersion; exports.plan = _chunkFFIC6TFZjs.plan;
|
|
451
451
|
|
|
452
452
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/utils.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEAOQ3VY4js = require('./chunk-EAOQ3VY4.js');
|
|
18
18
|
require('./chunk-L7YQALVO.js');
|
|
19
19
|
|
|
20
20
|
|
|
@@ -32,4 +32,4 @@ require('./chunk-L7YQALVO.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
exports.getLogDir =
|
|
35
|
+
exports.getLogDir = _chunkEAOQ3VY4js.getLogDir; exports.getTmpDir = _chunkEAOQ3VY4js.getTmpDir; exports.getTmpFile = _chunkEAOQ3VY4js.getTmpFile; exports.getVersion = _chunkEAOQ3VY4js.getVersion; exports.groupedActionDumpFileExt = _chunkEAOQ3VY4js.groupedActionDumpFileExt; exports.overlapped = _chunkEAOQ3VY4js.overlapped; exports.replaceStringWithFirstAppearance = _chunkEAOQ3VY4js.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkEAOQ3VY4js.replacerForPageObject; exports.reportHTMLContent = _chunkEAOQ3VY4js.reportHTMLContent; exports.setReportTpl = _chunkEAOQ3VY4js.setReportTpl; exports.sleep = _chunkEAOQ3VY4js.sleep; exports.stringifyDumpData = _chunkEAOQ3VY4js.stringifyDumpData; exports.uploadTestInfoToServer = _chunkEAOQ3VY4js.uploadTestInfoToServer; exports.writeDumpReport = _chunkEAOQ3VY4js.writeDumpReport; exports.writeLogFile = _chunkEAOQ3VY4js.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.
|
|
4
|
+
"version": "0.15.0",
|
|
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.
|
|
51
|
+
"@midscene/shared": "0.15.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@modern-js/module-tools": "2.60.6",
|