@aiscene/core 2.0.0 → 4.0.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.
@@ -123,7 +123,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
123
123
  return;
124
124
  }
125
125
  }
126
- const getMidsceneVersion = ()=>"2.0.0";
126
+ const getMidsceneVersion = ()=>"4.0.0";
127
127
  const parsePrompt = (prompt)=>{
128
128
  if ('string' == typeof prompt) return {
129
129
  textPrompt: prompt,
package/dist/es/utils.mjs CHANGED
@@ -175,7 +175,7 @@ function stringifyDumpData(data, indents) {
175
175
  return JSON.stringify(data, replacerForPageObject, indents);
176
176
  }
177
177
  function getVersion() {
178
- return "2.0.0";
178
+ return "4.0.0";
179
179
  }
180
180
  function debugLog(...message) {
181
181
  const debugMode = process.env[MIDSCENE_DEBUG_MODE];
@@ -170,7 +170,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
170
170
  return;
171
171
  }
172
172
  }
173
- const getMidsceneVersion = ()=>"2.0.0";
173
+ const getMidsceneVersion = ()=>"4.0.0";
174
174
  const parsePrompt = (prompt)=>{
175
175
  if ('string' == typeof prompt) return {
176
176
  textPrompt: prompt,
package/dist/lib/types.js CHANGED
@@ -6,7 +6,7 @@ var __webpack_modules__ = {
6
6
  "./dump/screenshot-store" (module) {
7
7
  module.exports = require("./dump/screenshot-store.js");
8
8
  },
9
- "@/screenshot-item" (module) {
9
+ "./screenshot-item" (module) {
10
10
  module.exports = require("./screenshot-item.js");
11
11
  },
12
12
  "./yaml" (module) {
@@ -73,7 +73,7 @@ var __webpack_exports__ = {};
73
73
  var node_path__rspack_import_1 = __webpack_require__("node:path");
74
74
  var _dump_screenshot_restoration__rspack_import_2 = __webpack_require__("./dump/screenshot-restoration");
75
75
  var _dump_screenshot_store__rspack_import_3 = __webpack_require__("./dump/screenshot-store");
76
- var _screenshot_item__rspack_import_4 = __webpack_require__("@/screenshot-item");
76
+ var _screenshot_item__rspack_import_4 = __webpack_require__("./screenshot-item");
77
77
  var _yaml__rspack_import_5 = __webpack_require__("./yaml");
78
78
  var __rspack_reexport = {};
79
79
  for(const __rspack_import_key in _yaml__rspack_import_5)if ([
package/dist/lib/utils.js CHANGED
@@ -219,7 +219,7 @@ function stringifyDumpData(data, indents) {
219
219
  return JSON.stringify(data, replacerForPageObject, indents);
220
220
  }
221
221
  function getVersion() {
222
- return "2.0.0";
222
+ return "4.0.0";
223
223
  }
224
224
  function debugLog(...message) {
225
225
  const debugMode = process.env[env_namespaceObject.MIDSCENE_DEBUG_MODE];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aiscene/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": "2.0.0",
4
+ "version": "4.0.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",