@midscene/core 0.26.0 → 0.26.2-beta-20250812035614.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-NBFEZEAH.js → chunk-KAYSYGXR.js} +3 -3
- package/dist/es/index.js +1 -1
- package/dist/es/utils.js +1 -1
- package/dist/lib/{chunk-NBFEZEAH.js → chunk-KAYSYGXR.js} +3 -3
- package/dist/lib/index.js +4 -4
- package/dist/lib/utils.js +2 -2
- package/package.json +3 -3
- /package/dist/es/{chunk-NBFEZEAH.js.map → chunk-KAYSYGXR.js.map} +0 -0
- /package/dist/lib/{chunk-NBFEZEAH.js.map → chunk-KAYSYGXR.js.map} +0 -0
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 _chunkKAYSYGXRjs = require('./chunk-KAYSYGXR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -176,7 +176,7 @@ ${_optionalChain([this, 'access', _7 => _7.latestErrorTask, 'call', _8 => _8(),
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
const dumpData = {
|
|
179
|
-
sdkVersion:
|
|
179
|
+
sdkVersion: _chunkKAYSYGXRjs.getVersion.call(void 0, ),
|
|
180
180
|
model_name: _env.getAIConfig.call(void 0, _env.MIDSCENE_MODEL_NAME) || "",
|
|
181
181
|
model_description: modelDescription,
|
|
182
182
|
logTime: Date.now(),
|
|
@@ -248,7 +248,7 @@ var _logger = require('@midscene/shared/logger');
|
|
|
248
248
|
|
|
249
249
|
function emitInsightDump(data, dumpSubscriber) {
|
|
250
250
|
const baseData = {
|
|
251
|
-
sdkVersion:
|
|
251
|
+
sdkVersion: _chunkKAYSYGXRjs.getVersion.call(void 0, ),
|
|
252
252
|
logTime: Date.now(),
|
|
253
253
|
model_name: _env.getAIConfig.call(void 0, _env.MIDSCENE_MODEL_NAME) || ""
|
|
254
254
|
};
|
|
@@ -565,6 +565,6 @@ var src_default = Insight;
|
|
|
565
565
|
|
|
566
566
|
|
|
567
567
|
|
|
568
|
-
exports.AiAssert = _chunkI5LBWOQAjs.AiAssert; exports.AiLocateElement = _chunkI5LBWOQAjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkI5LBWOQAjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion =
|
|
568
|
+
exports.AiAssert = _chunkI5LBWOQAjs.AiAssert; exports.AiLocateElement = _chunkI5LBWOQAjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkI5LBWOQAjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion = _chunkKAYSYGXRjs.getVersion; exports.plan = _chunkI5LBWOQAjs.plan;
|
|
569
569
|
|
|
570
570
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/utils.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkKAYSYGXRjs = require('./chunk-KAYSYGXR.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,4 +27,4 @@ var _chunkNBFEZEAHjs = require('./chunk-NBFEZEAH.js');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
exports.getTmpDir =
|
|
30
|
+
exports.getTmpDir = _chunkKAYSYGXRjs.getTmpDir; exports.getTmpFile = _chunkKAYSYGXRjs.getTmpFile; exports.getVersion = _chunkKAYSYGXRjs.getVersion; exports.groupedActionDumpFileExt = _chunkKAYSYGXRjs.groupedActionDumpFileExt; exports.insertScriptBeforeClosingHtml = _chunkKAYSYGXRjs.insertScriptBeforeClosingHtml; exports.overlapped = _chunkKAYSYGXRjs.overlapped; exports.replacerForPageObject = _chunkKAYSYGXRjs.replacerForPageObject; exports.reportHTMLContent = _chunkKAYSYGXRjs.reportHTMLContent; exports.sleep = _chunkKAYSYGXRjs.sleep; exports.stringifyDumpData = _chunkKAYSYGXRjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkKAYSYGXRjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkKAYSYGXRjs.writeDumpReport; exports.writeLogFile = _chunkKAYSYGXRjs.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.26.0",
|
|
4
|
+
"version": "0.26.2-beta-20250812035614.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,8 +44,8 @@
|
|
|
44
44
|
"langsmith": "0.3.7",
|
|
45
45
|
"openai": "4.81.0",
|
|
46
46
|
"socks-proxy-agent": "8.0.4",
|
|
47
|
-
"@midscene/recorder": "0.26.0",
|
|
48
|
-
"@midscene/shared": "0.26.0"
|
|
47
|
+
"@midscene/recorder": "0.26.2-beta-20250812035614.0",
|
|
48
|
+
"@midscene/shared": "0.26.2-beta-20250812035614.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@modern-js/module-tools": "2.60.6",
|
|
File without changes
|
|
File without changes
|