@midscene/core 0.15.4 → 0.15.5

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.
@@ -200,7 +200,7 @@ function stringifyDumpData(data, indents) {
200
200
  return JSON.stringify(data, replacerForPageObject, indents);
201
201
  }
202
202
  function getVersion() {
203
- return "0.15.4";
203
+ return "0.15.5";
204
204
  }
205
205
  function debugLog(...message) {
206
206
  const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
@@ -264,4 +264,4 @@ export {
264
264
  uploadTestInfoToServer
265
265
  };
266
266
 
267
- //# sourceMappingURL=chunk-CPQXAHF4.js.map
267
+ //# sourceMappingURL=chunk-QDSQACJB.js.map
package/dist/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getVersion
3
- } from "./chunk-CPQXAHF4.js";
3
+ } from "./chunk-QDSQACJB.js";
4
4
  import {
5
5
  AiAssert,
6
6
  AiExtractElementInfo,
package/dist/es/utils.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  uploadTestInfoToServer,
15
15
  writeDumpReport,
16
16
  writeLogFile
17
- } from "./chunk-CPQXAHF4.js";
17
+ } from "./chunk-QDSQACJB.js";
18
18
  export {
19
19
  getLogDir,
20
20
  getTmpDir,
@@ -200,7 +200,7 @@ function stringifyDumpData(data, indents) {
200
200
  return JSON.stringify(data, replacerForPageObject, indents);
201
201
  }
202
202
  function getVersion() {
203
- return "0.15.4";
203
+ return "0.15.5";
204
204
  }
205
205
  function debugLog(...message) {
206
206
  const debugMode = _env.getAIConfig.call(void 0, _env.MIDSCENE_DEBUG_MODE);
@@ -264,4 +264,4 @@ function uploadTestInfoToServer({ testUrl }) {
264
264
 
265
265
  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;
266
266
 
267
- //# sourceMappingURL=chunk-CPQXAHF4.js.map
267
+ //# sourceMappingURL=chunk-QDSQACJB.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 _chunkCPQXAHF4js = require('./chunk-CPQXAHF4.js');
3
+ var _chunkQDSQACJBjs = require('./chunk-QDSQACJB.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: _chunkCPQXAHF4js.getVersion.call(void 0, ),
159
+ sdkVersion: _chunkQDSQACJBjs.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,
@@ -188,7 +188,7 @@ function emitInsightDump(data, dumpSubscriber) {
188
188
  modelDescription = `${_env.vlLocateMode.call(void 0, )} mode`;
189
189
  }
190
190
  const baseData = {
191
- sdkVersion: _chunkCPQXAHF4js.getVersion.call(void 0, ),
191
+ sdkVersion: _chunkQDSQACJBjs.getVersion.call(void 0, ),
192
192
  logTime: Date.now(),
193
193
  model_name: _env.getAIConfig.call(void 0, _env.MIDSCENE_MODEL_NAME) || "",
194
194
  model_description: modelDescription
@@ -449,6 +449,6 @@ var src_default = Insight;
449
449
 
450
450
 
451
451
 
452
- exports.AiAssert = _chunkJXRUA7CTjs.AiAssert; exports.AiLocateElement = _chunkJXRUA7CTjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkJXRUA7CTjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion = _chunkCPQXAHF4js.getVersion; exports.plan = _chunkJXRUA7CTjs.plan;
452
+ exports.AiAssert = _chunkJXRUA7CTjs.AiAssert; exports.AiLocateElement = _chunkJXRUA7CTjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _env.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkJXRUA7CTjs.describeUserPage; exports.getAIConfig = _env.getAIConfig; exports.getVersion = _chunkQDSQACJBjs.getVersion; exports.plan = _chunkJXRUA7CTjs.plan;
453
453
 
454
454
  //# sourceMappingURL=index.js.map
package/dist/lib/utils.js CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunkCPQXAHF4js = require('./chunk-CPQXAHF4.js');
17
+ var _chunkQDSQACJBjs = require('./chunk-QDSQACJB.js');
18
18
 
19
19
 
20
20
 
@@ -31,4 +31,4 @@ var _chunkCPQXAHF4js = require('./chunk-CPQXAHF4.js');
31
31
 
32
32
 
33
33
 
34
- exports.getLogDir = _chunkCPQXAHF4js.getLogDir; exports.getTmpDir = _chunkCPQXAHF4js.getTmpDir; exports.getTmpFile = _chunkCPQXAHF4js.getTmpFile; exports.getVersion = _chunkCPQXAHF4js.getVersion; exports.groupedActionDumpFileExt = _chunkCPQXAHF4js.groupedActionDumpFileExt; exports.overlapped = _chunkCPQXAHF4js.overlapped; exports.replaceStringWithFirstAppearance = _chunkCPQXAHF4js.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkCPQXAHF4js.replacerForPageObject; exports.reportHTMLContent = _chunkCPQXAHF4js.reportHTMLContent; exports.setReportTpl = _chunkCPQXAHF4js.setReportTpl; exports.sleep = _chunkCPQXAHF4js.sleep; exports.stringifyDumpData = _chunkCPQXAHF4js.stringifyDumpData; exports.uploadTestInfoToServer = _chunkCPQXAHF4js.uploadTestInfoToServer; exports.writeDumpReport = _chunkCPQXAHF4js.writeDumpReport; exports.writeLogFile = _chunkCPQXAHF4js.writeLogFile;
34
+ exports.getLogDir = _chunkQDSQACJBjs.getLogDir; exports.getTmpDir = _chunkQDSQACJBjs.getTmpDir; exports.getTmpFile = _chunkQDSQACJBjs.getTmpFile; exports.getVersion = _chunkQDSQACJBjs.getVersion; exports.groupedActionDumpFileExt = _chunkQDSQACJBjs.groupedActionDumpFileExt; exports.overlapped = _chunkQDSQACJBjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkQDSQACJBjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkQDSQACJBjs.replacerForPageObject; exports.reportHTMLContent = _chunkQDSQACJBjs.reportHTMLContent; exports.setReportTpl = _chunkQDSQACJBjs.setReportTpl; exports.sleep = _chunkQDSQACJBjs.sleep; exports.stringifyDumpData = _chunkQDSQACJBjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkQDSQACJBjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkQDSQACJBjs.writeDumpReport; exports.writeLogFile = _chunkQDSQACJBjs.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.15.4",
4
+ "version": "0.15.5",
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.15.4"
47
+ "@midscene/shared": "0.15.5"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@modern-js/module-tools": "2.60.6",