@midscene/core 0.10.2 → 0.10.4
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/lib/ai-model.js +2 -2
- package/dist/lib/{chunk-MTBFUT2H.js → chunk-E7CN2CEK.js} +1 -1
- package/dist/lib/{chunk-2SOSTOJY.js → chunk-J7SJPLMS.js} +3 -2
- package/dist/lib/index.js +13 -13
- package/dist/lib/utils.js +2 -2
- package/dist/lib/{wrappers-S663NGWS.js → wrappers-ESFOLMXN.js} +14 -14
- package/package.json +4 -4
- package/report/index.html +1 -1
package/dist/lib/ai-model.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJ7SJPLMSjs = require('./chunk-J7SJPLMS.js');
|
|
13
13
|
require('./chunk-JP3JBDZS.js');
|
|
14
14
|
require('./chunk-YSQDPG26.js');
|
|
15
15
|
|
|
@@ -23,4 +23,4 @@ require('./chunk-YSQDPG26.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.AiAssert =
|
|
26
|
+
exports.AiAssert = _chunkJ7SJPLMSjs.AiAssert; exports.AiExtractElementInfo = _chunkJ7SJPLMSjs.AiExtractElementInfo; exports.AiInspectElement = _chunkJ7SJPLMSjs.AiInspectElement; exports.callAiFn = _chunkJ7SJPLMSjs.callAiFn; exports.callToGetJSONObject = _chunkJ7SJPLMSjs.callToGetJSONObject; exports.describeUserPage = _chunkJ7SJPLMSjs.describeUserPage; exports.plan = _chunkJ7SJPLMSjs.plan; exports.systemPromptToLocateElement = _chunkJ7SJPLMSjs.systemPromptToLocateElement; exports.transformElementPositionToId = _chunkJ7SJPLMSjs.transformElementPositionToId; exports.vlmPlanning = _chunkJ7SJPLMSjs.vlmPlanning;
|
|
@@ -188,7 +188,7 @@ function stringifyDumpData(data, indents) {
|
|
|
188
188
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
189
189
|
}
|
|
190
190
|
function getVersion() {
|
|
191
|
-
return "0.10.
|
|
191
|
+
return "0.10.4";
|
|
192
192
|
}
|
|
193
193
|
function debugLog(...message) {
|
|
194
194
|
const debugMode = _chunkJP3JBDZSjs.getAIConfig.call(void 0, _chunkJP3JBDZSjs.MIDSCENE_DEBUG_MODE);
|
|
@@ -1911,7 +1911,8 @@ var planSchema = {
|
|
|
1911
1911
|
},
|
|
1912
1912
|
param: {
|
|
1913
1913
|
type: ["object", "null"],
|
|
1914
|
-
description: "Parameter of the action, can be null ONLY when the type field is Tap or Hover"
|
|
1914
|
+
description: "Parameter of the action, can be null ONLY when the type field is Tap or Hover",
|
|
1915
|
+
additionalProperties: true
|
|
1915
1916
|
},
|
|
1916
1917
|
locate: {
|
|
1917
1918
|
type: ["object", "null"],
|
|
@@ -2090,7 +2091,7 @@ async function createChatClient({
|
|
|
2090
2091
|
throw new Error("langsmith is not supported in browser");
|
|
2091
2092
|
}
|
|
2092
2093
|
console.log("DEBUGGING MODE: langsmith wrapper enabled");
|
|
2093
|
-
const { wrapOpenAI } = await Promise.resolve().then(() => require("./wrappers-
|
|
2094
|
+
const { wrapOpenAI } = await Promise.resolve().then(() => require("./wrappers-ESFOLMXN.js"));
|
|
2094
2095
|
openai = wrapOpenAI(openai);
|
|
2095
2096
|
}
|
|
2096
2097
|
if (typeof openai !== "undefined") {
|
package/dist/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkE7CN2CEKjs = require('./chunk-E7CN2CEK.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ var _chunkMTBFUT2Hjs = require('./chunk-MTBFUT2H.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJ7SJPLMSjs = require('./chunk-J7SJPLMS.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -169,7 +169,7 @@ ${(_b = this.latestErrorTask()) == null ? void 0 : _b.errorStack}`
|
|
|
169
169
|
}
|
|
170
170
|
dump() {
|
|
171
171
|
const dumpData = {
|
|
172
|
-
sdkVersion:
|
|
172
|
+
sdkVersion: _chunkE7CN2CEKjs.getVersion.call(void 0, ),
|
|
173
173
|
model_name: _chunkJP3JBDZSjs.getAIConfig.call(void 0, _chunkJP3JBDZSjs.MIDSCENE_MODEL_NAME) || "",
|
|
174
174
|
logTime: Date.now(),
|
|
175
175
|
name: this.name,
|
|
@@ -192,14 +192,14 @@ var logFileName = "";
|
|
|
192
192
|
var logContent = [];
|
|
193
193
|
var logIdIndexMap = {};
|
|
194
194
|
var { pid } = process;
|
|
195
|
-
var logFileExt =
|
|
195
|
+
var logFileExt = _chunkE7CN2CEKjs.insightDumpFileExt;
|
|
196
196
|
var ifInBrowser = typeof window !== "undefined";
|
|
197
197
|
function writeInsightDump(data, logId, dumpSubscriber) {
|
|
198
|
-
const logDir =
|
|
198
|
+
const logDir = _chunkE7CN2CEKjs.getLogDir.call(void 0, );
|
|
199
199
|
_assert2.default.call(void 0, logDir, "logDir should be set before writing dump file");
|
|
200
200
|
const id = logId || _utils.uuid.call(void 0, );
|
|
201
201
|
const baseData = {
|
|
202
|
-
sdkVersion:
|
|
202
|
+
sdkVersion: _chunkE7CN2CEKjs.getVersion.call(void 0, ),
|
|
203
203
|
logTime: Date.now(),
|
|
204
204
|
model_name: _chunkJP3JBDZSjs.getAIConfig.call(void 0, _chunkJP3JBDZSjs.MIDSCENE_MODEL_NAME) || "",
|
|
205
205
|
model_description: _chunkJP3JBDZSjs.getAIConfig.call(void 0, _chunkJP3JBDZSjs.MIDSCENE_USE_VLM_UI_TARS) ? "vlm-ui-tars enabled" : ""
|
|
@@ -210,7 +210,7 @@ function writeInsightDump(data, logId, dumpSubscriber) {
|
|
|
210
210
|
...data
|
|
211
211
|
};
|
|
212
212
|
dumpSubscriber == null ? void 0 : dumpSubscriber(finalData);
|
|
213
|
-
const dataString =
|
|
213
|
+
const dataString = _chunkE7CN2CEKjs.stringifyDumpData.call(void 0, finalData, 2);
|
|
214
214
|
if (typeof logIdIndexMap[id] === "number") {
|
|
215
215
|
logContent[logIdIndexMap[id]] = dataString;
|
|
216
216
|
} else {
|
|
@@ -224,7 +224,7 @@ function writeInsightDump(data, logId, dumpSubscriber) {
|
|
|
224
224
|
logFileName = `${pid}_${baseData.logTime}-${Math.random()}`;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
_chunkE7CN2CEKjs.writeLogFile.call(void 0, {
|
|
228
228
|
fileName: logFileName,
|
|
229
229
|
fileExt: logFileExt,
|
|
230
230
|
fileContent: `[
|
|
@@ -239,7 +239,7 @@ ${logContent.join(",\n")}
|
|
|
239
239
|
// src/insight/index.ts
|
|
240
240
|
var Insight = class {
|
|
241
241
|
constructor(context, opt) {
|
|
242
|
-
this.aiVendorFn =
|
|
242
|
+
this.aiVendorFn = _chunkJ7SJPLMSjs.callAiFn;
|
|
243
243
|
_assert2.default.call(void 0, context, "context is required for Insight");
|
|
244
244
|
if (typeof context === "function") {
|
|
245
245
|
this.contextRetrieverFn = context;
|
|
@@ -265,7 +265,7 @@ var Insight = class {
|
|
|
265
265
|
this.onceDumpUpdatedFn = void 0;
|
|
266
266
|
const context = await this.contextRetrieverFn("locate");
|
|
267
267
|
const startTime = Date.now();
|
|
268
|
-
const { parseResult, elementById, rawResponse, usage } = await
|
|
268
|
+
const { parseResult, elementById, rawResponse, usage } = await _chunkJ7SJPLMSjs.AiInspectElement.call(void 0, {
|
|
269
269
|
callAI: callAI || this.aiVendorFn,
|
|
270
270
|
context,
|
|
271
271
|
multi: Boolean(multi),
|
|
@@ -348,7 +348,7 @@ ${parseResult.errors.join("\n")}`;
|
|
|
348
348
|
this.onceDumpUpdatedFn = void 0;
|
|
349
349
|
const context = await this.contextRetrieverFn("extract");
|
|
350
350
|
const startTime = Date.now();
|
|
351
|
-
const { parseResult, elementById } = await
|
|
351
|
+
const { parseResult, elementById } = await _chunkJ7SJPLMSjs.AiExtractElementInfo.call(void 0, {
|
|
352
352
|
context,
|
|
353
353
|
dataQuery: dataDemand
|
|
354
354
|
});
|
|
@@ -402,7 +402,7 @@ ${parseResult.errors.join("\n")}`;
|
|
|
402
402
|
this.onceDumpUpdatedFn = void 0;
|
|
403
403
|
const context = await this.contextRetrieverFn("assert");
|
|
404
404
|
const startTime = Date.now();
|
|
405
|
-
const assertResult = await
|
|
405
|
+
const assertResult = await _chunkJ7SJPLMSjs.AiAssert.call(void 0, {
|
|
406
406
|
assertion,
|
|
407
407
|
context
|
|
408
408
|
});
|
|
@@ -450,4 +450,4 @@ var src_default = Insight;
|
|
|
450
450
|
|
|
451
451
|
|
|
452
452
|
|
|
453
|
-
exports.AIResponseFormat =
|
|
453
|
+
exports.AIResponseFormat = _chunkJ7SJPLMSjs.AIResponseFormat; exports.BaseElement = _chunkJ7SJPLMSjs.BaseElement; exports.Executor = Executor; exports.Insight = Insight; exports.UIContext = _chunkJ7SJPLMSjs.UIContext; exports.default = src_default; exports.getLogDirByType = _chunkE7CN2CEKjs.getLogDirByType; exports.getVersion = _chunkE7CN2CEKjs.getVersion; exports.plan = _chunkJ7SJPLMSjs.plan; exports.setLogDir = _chunkE7CN2CEKjs.setLogDir; exports.transformElementPositionToId = _chunkJ7SJPLMSjs.transformElementPositionToId;
|
package/dist/lib/utils.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkE7CN2CEKjs = require('./chunk-E7CN2CEK.js');
|
|
20
20
|
require('./chunk-JP3JBDZS.js');
|
|
21
21
|
require('./chunk-YSQDPG26.js');
|
|
22
22
|
|
|
@@ -37,4 +37,4 @@ require('./chunk-YSQDPG26.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.getLogDir =
|
|
40
|
+
exports.getLogDir = _chunkE7CN2CEKjs.getLogDir; exports.getLogDirByType = _chunkE7CN2CEKjs.getLogDirByType; exports.getTmpDir = _chunkE7CN2CEKjs.getTmpDir; exports.getTmpFile = _chunkE7CN2CEKjs.getTmpFile; exports.getVersion = _chunkE7CN2CEKjs.getVersion; exports.groupedActionDumpFileExt = _chunkE7CN2CEKjs.groupedActionDumpFileExt; exports.insightDumpFileExt = _chunkE7CN2CEKjs.insightDumpFileExt; exports.overlapped = _chunkE7CN2CEKjs.overlapped; exports.replaceStringWithFirstAppearance = _chunkE7CN2CEKjs.replaceStringWithFirstAppearance; exports.replacerForPageObject = _chunkE7CN2CEKjs.replacerForPageObject; exports.reportHTMLContent = _chunkE7CN2CEKjs.reportHTMLContent; exports.setLogDir = _chunkE7CN2CEKjs.setLogDir; exports.sleep = _chunkE7CN2CEKjs.sleep; exports.stringifyDumpData = _chunkE7CN2CEKjs.stringifyDumpData; exports.uploadTestInfoToServer = _chunkE7CN2CEKjs.uploadTestInfoToServer; exports.writeDumpReport = _chunkE7CN2CEKjs.writeDumpReport; exports.writeLogFile = _chunkE7CN2CEKjs.writeLogFile;
|
|
@@ -898,7 +898,7 @@ var require_dist = _chunkYSQDPG26js.__commonJS.call(void 0, {
|
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
|
|
901
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
901
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/traceable.js
|
|
902
902
|
var _async_hooks = require('async_hooks');
|
|
903
903
|
|
|
904
904
|
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/rng.js
|
|
@@ -957,7 +957,7 @@ function v4(options, buf, offset) {
|
|
|
957
957
|
}
|
|
958
958
|
var v4_default = v4;
|
|
959
959
|
|
|
960
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
960
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/async_caller.js
|
|
961
961
|
var import_p_retry = _chunkYSQDPG26js.__toESM.call(void 0, require_p_retry());
|
|
962
962
|
var import_p_queue = _chunkYSQDPG26js.__toESM.call(void 0, require_dist());
|
|
963
963
|
var STATUS_NO_RETRY = [
|
|
@@ -1076,7 +1076,7 @@ var AsyncCaller = class {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
1078
|
|
|
1079
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
1079
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/messages.js
|
|
1080
1080
|
function isLangChainMessage(message) {
|
|
1081
1081
|
return typeof (message == null ? void 0 : message._getType) === "function";
|
|
1082
1082
|
}
|
|
@@ -1091,14 +1091,14 @@ function convertLangChainMessageToExample(message) {
|
|
|
1091
1091
|
return converted;
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
1094
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/_uuid.js
|
|
1095
1095
|
function assertUuid(str) {
|
|
1096
1096
|
if (!validate_default(str)) {
|
|
1097
1097
|
throw new Error(`Invalid UUID: ${str}`);
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
1101
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/warn.js
|
|
1102
1102
|
var warnedMessages = {};
|
|
1103
1103
|
function warnOnce(message) {
|
|
1104
1104
|
if (!warnedMessages[message]) {
|
|
@@ -1107,7 +1107,7 @@ function warnOnce(message) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
1110
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/client.js
|
|
1111
1111
|
async function mergeRuntimeEnvIntoRunCreates(runs) {
|
|
1112
1112
|
const runtimeEnv = await getRuntimeEnvironment();
|
|
1113
1113
|
const envVars = getLangChainEnvVarsMetadata();
|
|
@@ -2893,10 +2893,10 @@ var Client = class _Client {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
2896
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/index.js
|
|
2897
2897
|
var __version__ = "0.1.36";
|
|
2898
2898
|
|
|
2899
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
2899
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/env.js
|
|
2900
2900
|
var globalEnv;
|
|
2901
2901
|
var isBrowser = () => typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
2902
2902
|
var isWebWorker = () => typeof globalThis === "object" && globalThis.constructor && globalThis.constructor.name === "DedicatedWorkerGlobalScope";
|
|
@@ -3019,7 +3019,7 @@ function getShas() {
|
|
|
3019
3019
|
return shas;
|
|
3020
3020
|
}
|
|
3021
3021
|
|
|
3022
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3022
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/env.js
|
|
3023
3023
|
var isTracingEnabled = (tracingEnabled) => {
|
|
3024
3024
|
if (tracingEnabled !== void 0) {
|
|
3025
3025
|
return tracingEnabled;
|
|
@@ -3033,7 +3033,7 @@ var isTracingEnabled = (tracingEnabled) => {
|
|
|
3033
3033
|
return !!envVars.find((envVar) => getEnvironmentVariable(envVar) === "true");
|
|
3034
3034
|
};
|
|
3035
3035
|
|
|
3036
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3036
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/run_trees.js
|
|
3037
3037
|
function stripNonAlphanumeric(input) {
|
|
3038
3038
|
return input.replace(/[-:.]/g, "");
|
|
3039
3039
|
}
|
|
@@ -3470,7 +3470,7 @@ function isRunnableConfigLike(x) {
|
|
|
3470
3470
|
containsLangChainTracerLike(x.callbacks));
|
|
3471
3471
|
}
|
|
3472
3472
|
|
|
3473
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3473
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/singletons/traceable.js
|
|
3474
3474
|
var MockAsyncLocalStorage = class {
|
|
3475
3475
|
getStore() {
|
|
3476
3476
|
return void 0;
|
|
@@ -3510,7 +3510,7 @@ function isTraceableFunction(x) {
|
|
|
3510
3510
|
return typeof x === "function" && "langsmith:traceable" in x;
|
|
3511
3511
|
}
|
|
3512
3512
|
|
|
3513
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3513
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/utils/asserts.js
|
|
3514
3514
|
function isPromiseMethod(x) {
|
|
3515
3515
|
if (x === "then" || x === "catch" || x === "finally") {
|
|
3516
3516
|
return true;
|
|
@@ -3536,7 +3536,7 @@ var isGenerator = (x) => (
|
|
|
3536
3536
|
var isThenable = (x) => x != null && typeof x === "object" && "then" in x && typeof x.then === "function";
|
|
3537
3537
|
var isReadableStream = (x) => x != null && typeof x === "object" && "getReader" in x && typeof x.getReader === "function";
|
|
3538
3538
|
|
|
3539
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3539
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/traceable.js
|
|
3540
3540
|
AsyncLocalStorageProviderSingleton.initializeGlobalInstance(new (0, _async_hooks.AsyncLocalStorage)());
|
|
3541
3541
|
var handleRunInputs = (rawInputs) => {
|
|
3542
3542
|
const firstInput = rawInputs[0];
|
|
@@ -3902,7 +3902,7 @@ function traceable(wrappedFunc, config) {
|
|
|
3902
3902
|
return traceableFunc;
|
|
3903
3903
|
}
|
|
3904
3904
|
|
|
3905
|
-
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.
|
|
3905
|
+
// ../../node_modules/.pnpm/langsmith@0.1.36_@langchain+core@0.3.26_openai@4.81.0_ws@8.18.0_zod@3.23.8___langchain@0.3.8__4pav26wgxkhr4h42knx5esdpdi/node_modules/langsmith/dist/wrappers/openai.js
|
|
3906
3906
|
function _combineChatCompletionChoices(choices) {
|
|
3907
3907
|
var _a, _b;
|
|
3908
3908
|
const reversedChoices = choices.slice().reverse();
|
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.10.
|
|
4
|
+
"version": "0.10.4",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"jsnext:source": "./src/index.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@anthropic-ai/sdk": "0.33.1",
|
|
42
42
|
"@langchain/core": "0.3.26",
|
|
43
43
|
"socks-proxy-agent": "8.0.4",
|
|
44
|
-
"openai": "4.
|
|
45
|
-
"@midscene/shared": "0.10.
|
|
44
|
+
"openai": "4.81.0",
|
|
45
|
+
"@midscene/shared": "0.10.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@modern-js/module-tools": "2.60.6",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"build:watch": "modern build -w",
|
|
69
69
|
"new": "modern new",
|
|
70
70
|
"upgrade": "modern upgrade",
|
|
71
|
-
"test": "vitest --run",
|
|
71
|
+
"test": "vitest --run -u",
|
|
72
72
|
"test:ai": "AITEST=true npm run test",
|
|
73
73
|
"computer": "TEST_COMPUTER=true npm run test:ai -- tests/ai/evaluate/computer.test.ts",
|
|
74
74
|
"test:parse-action": "npm run test:ai -- tests/ai/parse-action.test.ts",
|