@midscene/core 0.16.8 → 0.16.9-beta-20250506093037.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-O4LD4OZB.js → chunk-KHYCNMYW.js} +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/utils.js +1 -1
- package/dist/lib/{chunk-O4LD4OZB.js → chunk-KHYCNMYW.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 +6 -6
- /package/dist/es/{chunk-O4LD4OZB.js.map → chunk-KHYCNMYW.js.map} +0 -0
- /package/dist/lib/{chunk-O4LD4OZB.js.map → chunk-KHYCNMYW.js.map} +0 -0
|
@@ -218,7 +218,7 @@ function stringifyDumpData(data, indents) {
|
|
|
218
218
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
219
219
|
}
|
|
220
220
|
function getVersion() {
|
|
221
|
-
return "0.16.
|
|
221
|
+
return "0.16.9-beta-20250506093037.0";
|
|
222
222
|
}
|
|
223
223
|
function debugLog(...message) {
|
|
224
224
|
const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
|
|
@@ -282,4 +282,4 @@ export {
|
|
|
282
282
|
uploadTestInfoToServer
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-KHYCNMYW.js.map
|
package/dist/es/index.js
CHANGED
package/dist/es/utils.js
CHANGED
|
@@ -218,7 +218,7 @@ function stringifyDumpData(data, indents) {
|
|
|
218
218
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
219
219
|
}
|
|
220
220
|
function getVersion() {
|
|
221
|
-
return "0.16.
|
|
221
|
+
return "0.16.9-beta-20250506093037.0";
|
|
222
222
|
}
|
|
223
223
|
function debugLog(...message) {
|
|
224
224
|
const debugMode = _env.getAIConfig.call(void 0, _env.MIDSCENE_DEBUG_MODE);
|
|
@@ -282,4 +282,4 @@ function uploadTestInfoToServer({ testUrl }) {
|
|
|
282
282
|
|
|
283
283
|
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;
|
|
284
284
|
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-KHYCNMYW.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 _chunkKHYCNMYWjs = require('./chunk-KHYCNMYW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -156,7 +156,7 @@ ${_optionalChain([this, 'access', _7 => _7.latestErrorTask, 'call', _8 => _8(),
|
|
|
156
156
|
}
|
|
157
157
|
dump() {
|
|
158
158
|
const dumpData = {
|
|
159
|
-
sdkVersion:
|
|
159
|
+
sdkVersion: _chunkKHYCNMYWjs.getVersion.call(void 0, ),
|
|
160
160
|
model_name: _env.getAIConfig.call(void 0, _env.MIDSCENE_MODEL_NAME) || "",
|
|
161
161
|
logTime: Date.now(),
|
|
162
162
|
name: this.name,
|
|
@@ -194,7 +194,7 @@ function emitInsightDump(data, dumpSubscriber) {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
const baseData = {
|
|
197
|
-
sdkVersion:
|
|
197
|
+
sdkVersion: _chunkKHYCNMYWjs.getVersion.call(void 0, ),
|
|
198
198
|
logTime: Date.now(),
|
|
199
199
|
model_name: _env.getAIConfig.call(void 0, _env.MIDSCENE_MODEL_NAME) || "",
|
|
200
200
|
model_description: modelDescription
|
|
@@ -455,6 +455,6 @@ var src_default = Insight;
|
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
|
|
458
|
-
exports.AiAssert = _chunkU3HZWESXjs.AiAssert; exports.AiLocateElement = _chunkU3HZWESXjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkU3HZWESXjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion =
|
|
458
|
+
exports.AiAssert = _chunkU3HZWESXjs.AiAssert; exports.AiLocateElement = _chunkU3HZWESXjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkU3HZWESXjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion = _chunkKHYCNMYWjs.getVersion; exports.plan = _chunkU3HZWESXjs.plan;
|
|
459
459
|
|
|
460
460
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/utils.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkKHYCNMYWjs = require('./chunk-KHYCNMYW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -31,4 +31,4 @@ var _chunkO4LD4OZBjs = require('./chunk-O4LD4OZB.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
exports.getLogDir =
|
|
34
|
+
exports.getLogDir = _chunkKHYCNMYWjs.getLogDir; exports.getTmpDir = _chunkKHYCNMYWjs.getTmpDir; exports.getTmpFile = _chunkKHYCNMYWjs.getTmpFile; exports.getVersion = _chunkKHYCNMYWjs.getVersion; exports.groupedActionDumpFileExt = _chunkKHYCNMYWjs.groupedActionDumpFileExt; exports.overlapped = _chunkKHYCNMYWjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkKHYCNMYWjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkKHYCNMYWjs.replacerForPageObject; exports.reportHTMLContent = _chunkKHYCNMYWjs.reportHTMLContent; exports.setReportTpl = _chunkKHYCNMYWjs.setReportTpl; exports.sleep = _chunkKHYCNMYWjs.sleep; exports.stringifyDumpData = _chunkKHYCNMYWjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkKHYCNMYWjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkKHYCNMYWjs.writeDumpReport; exports.writeLogFile = _chunkKHYCNMYWjs.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.16.
|
|
4
|
+
"version": "0.16.9-beta-20250506093037.0",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"jsnext:source": "./src/index.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dirty-json": "0.9.2",
|
|
45
45
|
"dotenv": "16.4.5",
|
|
46
46
|
"langsmith": "0.3.7",
|
|
47
|
-
"@midscene/shared": "0.16.
|
|
47
|
+
"@midscene/shared": "0.16.9-beta-20250506093037.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@modern-js/module-tools": "2.60.6",
|