@midscene/core 1.0.1-beta-20251129073709.0 → 1.0.1-beta-20251201114631.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.
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/yaml.d.ts +24 -1
- package/package.json +2 -2
package/dist/types/yaml.d.ts
CHANGED
|
@@ -43,7 +43,30 @@ export interface MidsceneYamlTask {
|
|
|
43
43
|
flow: MidsceneYamlFlowItem[];
|
|
44
44
|
continueOnError?: boolean;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Agent configuration options that can be specified in YAML scripts.
|
|
48
|
+
*
|
|
49
|
+
* This type includes serializable fields from AgentOpt, excluding non-serializable
|
|
50
|
+
* fields like functions and complex objects. All fields are optional.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* - testId priority: CLI parameter > YAML agent.testId > filename
|
|
54
|
+
* - These settings apply to all platforms (Web, Android, iOS, Generic Interface)
|
|
55
|
+
* - modelConfig is configured through environment variables, not in YAML
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```yaml
|
|
59
|
+
* agent:
|
|
60
|
+
* testId: "checkout-test"
|
|
61
|
+
* groupName: "E2E Test Suite"
|
|
62
|
+
* generateReport: true
|
|
63
|
+
* replanningCycleLimit: 30
|
|
64
|
+
* cache:
|
|
65
|
+
* id: "checkout-cache"
|
|
66
|
+
* strategy: "read-write"
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export type MidsceneYamlScriptAgentOpt = Pick<AgentOpt, 'testId' | 'groupName' | 'groupDescription' | 'generateReport' | 'autoPrintReportMsg' | 'reportFileName' | 'replanningCycleLimit' | 'aiActionContext' | 'cache'>;
|
|
47
70
|
export interface MidsceneYamlScriptConfig {
|
|
48
71
|
output?: string;
|
|
49
72
|
unstableLogContent?: boolean | string;
|
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": "1.0.1-beta-
|
|
4
|
+
"version": "1.0.1-beta-20251201114631.0",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"js-yaml": "4.1.0",
|
|
90
90
|
"zod": "3.24.3",
|
|
91
91
|
"socks-proxy-agent": "8.0.4",
|
|
92
|
-
"@midscene/shared": "1.0.1-beta-
|
|
92
|
+
"@midscene/shared": "1.0.1-beta-20251201114631.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.11.2",
|