@midscene/core 0.11.1 → 0.11.2
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/lib/{chunk-LSD3QYTX.js → chunk-BYT7NPTC.js} +2 -2
- package/dist/lib/{chunk-CL4XCL3T.js → chunk-DNL7467B.js} +6 -6
- package/dist/lib/evaluation.js +2 -2
- package/dist/lib/index.js +3 -3
- package/dist/lib/types/index.d.ts +1 -1
- package/dist/lib/utils.js +2 -2
- package/package.json +3 -3
- package/report/index.html +1 -1
- /package/dist/lib/{chunk-LSD3QYTX.js.map → chunk-BYT7NPTC.js.map} +0 -0
- /package/dist/lib/{chunk-CL4XCL3T.js.map → chunk-DNL7467B.js.map} +0 -0
|
@@ -188,7 +188,7 @@ function stringifyDumpData(data, indents) {
|
|
|
188
188
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
189
189
|
}
|
|
190
190
|
function getVersion() {
|
|
191
|
-
return "0.11.
|
|
191
|
+
return "0.11.2";
|
|
192
192
|
}
|
|
193
193
|
function debugLog(...message) {
|
|
194
194
|
const debugMode = _chunkG2Z4BC6Ljs.getAIConfig.call(void 0, _chunkG2Z4BC6Ljs.MIDSCENE_DEBUG_MODE);
|
|
@@ -253,4 +253,4 @@ function uploadTestInfoToServer({ testUrl }) {
|
|
|
253
253
|
|
|
254
254
|
exports.groupedActionDumpFileExt = groupedActionDumpFileExt; exports.getLogDir = getLogDir; exports.setLogDir = setLogDir; exports.getLogDirByType = getLogDirByType; 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;
|
|
255
255
|
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-BYT7NPTC.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBYT7NPTCjs = require('./chunk-BYT7NPTC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -159,7 +159,7 @@ ${(_b = this.latestErrorTask()) == null ? void 0 : _b.errorStack}`
|
|
|
159
159
|
}
|
|
160
160
|
dump() {
|
|
161
161
|
const dumpData = {
|
|
162
|
-
sdkVersion:
|
|
162
|
+
sdkVersion: _chunkBYT7NPTCjs.getVersion.call(void 0, ),
|
|
163
163
|
model_name: _chunkG2Z4BC6Ljs.getAIConfig.call(void 0, _chunkG2Z4BC6Ljs.MIDSCENE_MODEL_NAME) || "",
|
|
164
164
|
logTime: Date.now(),
|
|
165
165
|
name: this.name,
|
|
@@ -179,11 +179,11 @@ var _utils = require('@midscene/shared/utils');
|
|
|
179
179
|
var logContent = [];
|
|
180
180
|
var logIdIndexMap = {};
|
|
181
181
|
function emitInsightDump(data, logId, dumpSubscriber) {
|
|
182
|
-
const logDir =
|
|
182
|
+
const logDir = _chunkBYT7NPTCjs.getLogDir.call(void 0, );
|
|
183
183
|
_assert2.default.call(void 0, logDir, "logDir should be set before writing dump file");
|
|
184
184
|
const id = logId || _utils.uuid.call(void 0, );
|
|
185
185
|
const baseData = {
|
|
186
|
-
sdkVersion:
|
|
186
|
+
sdkVersion: _chunkBYT7NPTCjs.getVersion.call(void 0, ),
|
|
187
187
|
logTime: Date.now(),
|
|
188
188
|
model_name: _chunkG2Z4BC6Ljs.getAIConfig.call(void 0, _chunkG2Z4BC6Ljs.MIDSCENE_MODEL_NAME) || "",
|
|
189
189
|
model_description: _chunkG2Z4BC6Ljs.getAIConfig.call(void 0, _chunkG2Z4BC6Ljs.MIDSCENE_USE_VLM_UI_TARS) ? "vlm-ui-tars enabled" : ""
|
|
@@ -194,7 +194,7 @@ function emitInsightDump(data, logId, dumpSubscriber) {
|
|
|
194
194
|
...data
|
|
195
195
|
};
|
|
196
196
|
dumpSubscriber == null ? void 0 : dumpSubscriber(finalData);
|
|
197
|
-
const dataString =
|
|
197
|
+
const dataString = _chunkBYT7NPTCjs.stringifyDumpData.call(void 0, finalData, 2);
|
|
198
198
|
if (typeof logIdIndexMap[id] === "number") {
|
|
199
199
|
logContent[logIdIndexMap[id]] = dataString;
|
|
200
200
|
} else {
|
|
@@ -413,4 +413,4 @@ var src_default = Insight;
|
|
|
413
413
|
|
|
414
414
|
exports.Executor = Executor; exports.Insight = Insight; exports.src_default = src_default;
|
|
415
415
|
|
|
416
|
-
//# sourceMappingURL=chunk-
|
|
416
|
+
//# sourceMappingURL=chunk-DNL7467B.js.map
|
package/dist/lib/evaluation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-
|
|
2
|
-
require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-DNL7467B.js');
|
|
2
|
+
require('./chunk-BYT7NPTC.js');
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
var _chunkHMB36AJ4js = require('./chunk-HMB36AJ4.js');
|
package/dist/lib/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDNL7467Bjs = require('./chunk-DNL7467B.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBYT7NPTCjs = require('./chunk-BYT7NPTC.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -40,4 +40,4 @@ require('./chunk-LQ2VYIYD.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.AIResponseFormat = _chunkHMB36AJ4js.AIResponseFormat; exports.AiAssert = _chunkHMB36AJ4js.AiAssert; exports.AiInspectElement = _chunkHMB36AJ4js.AiInspectElement; exports.BaseElement = _chunkHMB36AJ4js.BaseElement; exports.Executor =
|
|
43
|
+
exports.AIResponseFormat = _chunkHMB36AJ4js.AIResponseFormat; exports.AiAssert = _chunkHMB36AJ4js.AiAssert; exports.AiInspectElement = _chunkHMB36AJ4js.AiInspectElement; exports.BaseElement = _chunkHMB36AJ4js.BaseElement; exports.Executor = _chunkDNL7467Bjs.Executor; exports.Insight = _chunkDNL7467Bjs.Insight; exports.MIDSCENE_MODEL_NAME = _chunkG2Z4BC6Ljs.MIDSCENE_MODEL_NAME; exports.UIContext = _chunkHMB36AJ4js.UIContext; exports.default = _chunkDNL7467Bjs.src_default; exports.describeUserPage = _chunkHMB36AJ4js.describeUserPage; exports.getAIConfig = _chunkG2Z4BC6Ljs.getAIConfig; exports.getLogDirByType = _chunkBYT7NPTCjs.getLogDirByType; exports.getVersion = _chunkBYT7NPTCjs.getVersion; exports.plan = _chunkHMB36AJ4js.plan; exports.setLogDir = _chunkBYT7NPTCjs.setLogDir; exports.transformElementPositionToId = _chunkHMB36AJ4js.transformElementPositionToId;
|
|
@@ -33,7 +33,7 @@ interface MidsceneYamlScriptEnv {
|
|
|
33
33
|
};
|
|
34
34
|
cookie?: string;
|
|
35
35
|
output?: string;
|
|
36
|
-
|
|
36
|
+
forceSameTabNavigation?: boolean; // if track the newly opened tab, true for default in yaml script
|
|
37
37
|
|
|
38
38
|
// bridge mode config
|
|
39
39
|
bridgeMode?: false | 'newTabWithUrl' | 'currentTab';
|
package/dist/lib/utils.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkBYT7NPTCjs = require('./chunk-BYT7NPTC.js');
|
|
19
19
|
require('./chunk-G2Z4BC6L.js');
|
|
20
20
|
require('./chunk-LQ2VYIYD.js');
|
|
21
21
|
|
|
@@ -35,4 +35,4 @@ require('./chunk-LQ2VYIYD.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.getLogDir =
|
|
38
|
+
exports.getLogDir = _chunkBYT7NPTCjs.getLogDir; exports.getLogDirByType = _chunkBYT7NPTCjs.getLogDirByType; exports.getTmpDir = _chunkBYT7NPTCjs.getTmpDir; exports.getTmpFile = _chunkBYT7NPTCjs.getTmpFile; exports.getVersion = _chunkBYT7NPTCjs.getVersion; exports.groupedActionDumpFileExt = _chunkBYT7NPTCjs.groupedActionDumpFileExt; exports.overlapped = _chunkBYT7NPTCjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkBYT7NPTCjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkBYT7NPTCjs.replacerForPageObject; exports.reportHTMLContent = _chunkBYT7NPTCjs.reportHTMLContent; exports.setLogDir = _chunkBYT7NPTCjs.setLogDir; exports.sleep = _chunkBYT7NPTCjs.sleep; exports.stringifyDumpData = _chunkBYT7NPTCjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkBYT7NPTCjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkBYT7NPTCjs.writeDumpReport; exports.writeLogFile = _chunkBYT7NPTCjs.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.11.
|
|
4
|
+
"version": "0.11.2",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"jsnext:source": "./src/index.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@ui-tars/action-parser": "1.0.1",
|
|
51
51
|
"openai": "4.81.0",
|
|
52
52
|
"socks-proxy-agent": "8.0.4",
|
|
53
|
-
"@midscene/shared": "0.11.
|
|
53
|
+
"@midscene/shared": "0.11.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@modern-js/module-tools": "2.60.6",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dotenv": "16.4.5",
|
|
61
61
|
"langsmith": "0.3.7",
|
|
62
62
|
"typescript": "~5.0.4",
|
|
63
|
-
"vitest": "
|
|
63
|
+
"vitest": "3.0.5"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=18.0.0"
|