@midscene/core 0.14.0 → 0.14.1

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.
@@ -201,7 +201,7 @@ function stringifyDumpData(data, indents) {
201
201
  return JSON.stringify(data, replacerForPageObject, indents);
202
202
  }
203
203
  function getVersion() {
204
- return "0.14.0";
204
+ return "0.14.1";
205
205
  }
206
206
  function debugLog(...message) {
207
207
  const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
@@ -267,4 +267,4 @@ export {
267
267
  uploadTestInfoToServer
268
268
  };
269
269
 
270
- //# sourceMappingURL=chunk-FJFOIYTG.js.map
270
+ //# sourceMappingURL=chunk-KRFD6SDV.js.map
package/dist/es/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  getLogDirByType,
4
4
  getVersion,
5
5
  setLogDir
6
- } from "./chunk-FJFOIYTG.js";
6
+ } from "./chunk-KRFD6SDV.js";
7
7
  import {
8
8
  AiAssert,
9
9
  AiExtractElementInfo,
package/dist/es/utils.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  uploadTestInfoToServer,
17
17
  writeDumpReport,
18
18
  writeLogFile
19
- } from "./chunk-FJFOIYTG.js";
19
+ } from "./chunk-KRFD6SDV.js";
20
20
  import "./chunk-UBGEKXK7.js";
21
21
  export {
22
22
  getLogDir,
@@ -201,7 +201,7 @@ function stringifyDumpData(data, indents) {
201
201
  return JSON.stringify(data, replacerForPageObject, indents);
202
202
  }
203
203
  function getVersion() {
204
- return "0.14.0";
204
+ return "0.14.1";
205
205
  }
206
206
  function debugLog(...message) {
207
207
  const debugMode = _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_DEBUG_MODE);
@@ -267,4 +267,4 @@ function uploadTestInfoToServer({ testUrl }) {
267
267
 
268
268
  exports.groupedActionDumpFileExt = groupedActionDumpFileExt; exports.getLogDir = getLogDir; exports.setLogDir = setLogDir; exports.getLogDirByType = getLogDirByType; 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;
269
269
 
270
- //# sourceMappingURL=chunk-FJFOIYTG.js.map
270
+ //# sourceMappingURL=chunk-KRFD6SDV.js.map
package/dist/lib/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkFJFOIYTGjs = require('./chunk-FJFOIYTG.js');
6
+ var _chunkKRFD6SDVjs = require('./chunk-KRFD6SDV.js');
7
7
 
8
8
 
9
9
 
@@ -167,7 +167,7 @@ ${_optionalChain([this, 'access', _7 => _7.latestErrorTask, 'call', _8 => _8(),
167
167
  }
168
168
  dump() {
169
169
  const dumpData = {
170
- sdkVersion: _chunkFJFOIYTGjs.getVersion.call(void 0, ),
170
+ sdkVersion: _chunkKRFD6SDVjs.getVersion.call(void 0, ),
171
171
  model_name: _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME) || "",
172
172
  logTime: Date.now(),
173
173
  name: this.name,
@@ -185,7 +185,7 @@ var _logger = require('@midscene/shared/logger');
185
185
 
186
186
 
187
187
  function emitInsightDump(data, dumpSubscriber) {
188
- const logDir = _chunkFJFOIYTGjs.getLogDir.call(void 0, );
188
+ const logDir = _chunkKRFD6SDVjs.getLogDir.call(void 0, );
189
189
  _utils.assert.call(void 0, logDir, "logDir should be set before writing dump file");
190
190
  let modelDescription = "";
191
191
  if (_chunkUBGEKXK7js.getAIConfigInBoolean.call(void 0, _chunkUBGEKXK7js.MIDSCENE_USE_VLM_UI_TARS)) {
@@ -194,7 +194,7 @@ function emitInsightDump(data, dumpSubscriber) {
194
194
  modelDescription = `${_chunkUBGEKXK7js.vlLocateMode.call(void 0, )} mode`;
195
195
  }
196
196
  const baseData = {
197
- sdkVersion: _chunkFJFOIYTGjs.getVersion.call(void 0, ),
197
+ sdkVersion: _chunkKRFD6SDVjs.getVersion.call(void 0, ),
198
198
  logTime: Date.now(),
199
199
  model_name: _chunkUBGEKXK7js.getAIConfig.call(void 0, _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME) || "",
200
200
  model_description: modelDescription
@@ -460,6 +460,6 @@ var src_default = Insight;
460
460
 
461
461
 
462
462
 
463
- exports.AiAssert = _chunkNT2FFWZIjs.AiAssert; exports.AiLocateElement = _chunkNT2FFWZIjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkNT2FFWZIjs.describeUserPage; exports.getAIConfig = _chunkUBGEKXK7js.getAIConfig; exports.getLogDirByType = _chunkFJFOIYTGjs.getLogDirByType; exports.getVersion = _chunkFJFOIYTGjs.getVersion; exports.plan = _chunkNT2FFWZIjs.plan; exports.setLogDir = _chunkFJFOIYTGjs.setLogDir; exports.transformElementPositionToId = _chunkNT2FFWZIjs.transformElementPositionToId;
463
+ exports.AiAssert = _chunkNT2FFWZIjs.AiAssert; exports.AiLocateElement = _chunkNT2FFWZIjs.AiLocateElement; exports.Executor = Executor; exports.Insight = Insight; exports.MIDSCENE_MODEL_NAME = _chunkUBGEKXK7js.MIDSCENE_MODEL_NAME; exports.default = src_default; exports.describeUserPage = _chunkNT2FFWZIjs.describeUserPage; exports.getAIConfig = _chunkUBGEKXK7js.getAIConfig; exports.getLogDirByType = _chunkKRFD6SDVjs.getLogDirByType; exports.getVersion = _chunkKRFD6SDVjs.getVersion; exports.plan = _chunkNT2FFWZIjs.plan; exports.setLogDir = _chunkKRFD6SDVjs.setLogDir; exports.transformElementPositionToId = _chunkNT2FFWZIjs.transformElementPositionToId;
464
464
 
465
465
  //# sourceMappingURL=index.js.map
package/dist/lib/utils.js CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- var _chunkFJFOIYTGjs = require('./chunk-FJFOIYTG.js');
19
+ var _chunkKRFD6SDVjs = require('./chunk-KRFD6SDV.js');
20
20
  require('./chunk-UBGEKXK7.js');
21
21
 
22
22
 
@@ -36,4 +36,4 @@ require('./chunk-UBGEKXK7.js');
36
36
 
37
37
 
38
38
 
39
- exports.getLogDir = _chunkFJFOIYTGjs.getLogDir; exports.getLogDirByType = _chunkFJFOIYTGjs.getLogDirByType; exports.getTmpDir = _chunkFJFOIYTGjs.getTmpDir; exports.getTmpFile = _chunkFJFOIYTGjs.getTmpFile; exports.getVersion = _chunkFJFOIYTGjs.getVersion; exports.groupedActionDumpFileExt = _chunkFJFOIYTGjs.groupedActionDumpFileExt; exports.overlapped = _chunkFJFOIYTGjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkFJFOIYTGjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkFJFOIYTGjs.replacerForPageObject; exports.reportHTMLContent = _chunkFJFOIYTGjs.reportHTMLContent; exports.setLogDir = _chunkFJFOIYTGjs.setLogDir; exports.setReportTpl = _chunkFJFOIYTGjs.setReportTpl; exports.sleep = _chunkFJFOIYTGjs.sleep; exports.stringifyDumpData = _chunkFJFOIYTGjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkFJFOIYTGjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkFJFOIYTGjs.writeDumpReport; exports.writeLogFile = _chunkFJFOIYTGjs.writeLogFile;
39
+ exports.getLogDir = _chunkKRFD6SDVjs.getLogDir; exports.getLogDirByType = _chunkKRFD6SDVjs.getLogDirByType; exports.getTmpDir = _chunkKRFD6SDVjs.getTmpDir; exports.getTmpFile = _chunkKRFD6SDVjs.getTmpFile; exports.getVersion = _chunkKRFD6SDVjs.getVersion; exports.groupedActionDumpFileExt = _chunkKRFD6SDVjs.groupedActionDumpFileExt; exports.overlapped = _chunkKRFD6SDVjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkKRFD6SDVjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkKRFD6SDVjs.replacerForPageObject; exports.reportHTMLContent = _chunkKRFD6SDVjs.reportHTMLContent; exports.setLogDir = _chunkKRFD6SDVjs.setLogDir; exports.setReportTpl = _chunkKRFD6SDVjs.setReportTpl; exports.sleep = _chunkKRFD6SDVjs.sleep; exports.stringifyDumpData = _chunkKRFD6SDVjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkKRFD6SDVjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkKRFD6SDVjs.writeDumpReport; exports.writeLogFile = _chunkKRFD6SDVjs.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.14.0",
4
+ "version": "0.14.1",
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.14.0"
51
+ "@midscene/shared": "0.14.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@modern-js/module-tools": "2.60.6",