@aiscene/core 1.7.0 → 1.7.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.
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/utils.mjs +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/package.json +15 -15
package/dist/es/agent/utils.mjs
CHANGED
|
@@ -152,7 +152,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
|
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
155
|
+
const getMidsceneVersion = ()=>"1.7.1";
|
|
156
156
|
const parsePrompt = (prompt)=>{
|
|
157
157
|
if ('string' == typeof prompt) return {
|
|
158
158
|
textPrompt: prompt,
|
package/dist/es/utils.mjs
CHANGED
|
@@ -170,7 +170,7 @@ function stringifyDumpData(data, indents) {
|
|
|
170
170
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
171
171
|
}
|
|
172
172
|
function getVersion() {
|
|
173
|
-
return "1.7.
|
|
173
|
+
return "1.7.1";
|
|
174
174
|
}
|
|
175
175
|
function debugLog(...message) {
|
|
176
176
|
const debugMode = process.env[MIDSCENE_DEBUG_MODE];
|
package/dist/lib/agent/utils.js
CHANGED
|
@@ -201,7 +201,7 @@ async function matchElementFromCache(context, cacheEntry, cachePrompt, cacheable
|
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
const getMidsceneVersion = ()=>"1.7.
|
|
204
|
+
const getMidsceneVersion = ()=>"1.7.1";
|
|
205
205
|
const parsePrompt = (prompt)=>{
|
|
206
206
|
if ('string' == typeof prompt) return {
|
|
207
207
|
textPrompt: prompt,
|
package/dist/lib/utils.js
CHANGED
|
@@ -213,7 +213,7 @@ function stringifyDumpData(data, indents) {
|
|
|
213
213
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
214
214
|
}
|
|
215
215
|
function getVersion() {
|
|
216
|
-
return "1.7.
|
|
216
|
+
return "1.7.1";
|
|
217
217
|
}
|
|
218
218
|
function debugLog(...message) {
|
|
219
219
|
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": "1.7.
|
|
4
|
+
"version": "1.7.1",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -86,7 +86,18 @@
|
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"dev": "npm run build:watch",
|
|
91
|
+
"build": "rslib build",
|
|
92
|
+
"build:watch": "USE_DEV_REPORT=1 rslib build --watch --no-clean",
|
|
93
|
+
"test": "vitest --run",
|
|
94
|
+
"test:u": "vitest --run -u",
|
|
95
|
+
"test:ai": "AITEST=true npm run test",
|
|
96
|
+
"computer": "TEST_COMPUTER=true npm run test:ai -- tests/ai/evaluate/computer.test.ts",
|
|
97
|
+
"test:parse-action": "npm run test:ai -- tests/ai/parse-action.test.ts"
|
|
98
|
+
},
|
|
89
99
|
"dependencies": {
|
|
100
|
+
"@midscene/shared": "1.6.0",
|
|
90
101
|
"@ui-tars/action-parser": "1.2.3",
|
|
91
102
|
"dayjs": "^1.11.11",
|
|
92
103
|
"dotenv": "^16.4.5",
|
|
@@ -96,8 +107,7 @@
|
|
|
96
107
|
"openai": "6.3.0",
|
|
97
108
|
"semver": "7.5.2",
|
|
98
109
|
"undici": "^6.0.0",
|
|
99
|
-
"zod": "3.24.3"
|
|
100
|
-
"@midscene/shared": "1.6.0"
|
|
110
|
+
"zod": "3.24.3"
|
|
101
111
|
},
|
|
102
112
|
"devDependencies": {
|
|
103
113
|
"@rslib/core": "^0.18.3",
|
|
@@ -116,15 +126,5 @@
|
|
|
116
126
|
"access": "public",
|
|
117
127
|
"registry": "https://registry.npmjs.org"
|
|
118
128
|
},
|
|
119
|
-
"license": "MIT"
|
|
120
|
-
|
|
121
|
-
"dev": "npm run build:watch",
|
|
122
|
-
"build": "rslib build",
|
|
123
|
-
"build:watch": "USE_DEV_REPORT=1 rslib build --watch --no-clean",
|
|
124
|
-
"test": "vitest --run",
|
|
125
|
-
"test:u": "vitest --run -u",
|
|
126
|
-
"test:ai": "AITEST=true npm run test",
|
|
127
|
-
"computer": "TEST_COMPUTER=true npm run test:ai -- tests/ai/evaluate/computer.test.ts",
|
|
128
|
-
"test:parse-action": "npm run test:ai -- tests/ai/parse-action.test.ts"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
129
|
+
"license": "MIT"
|
|
130
|
+
}
|