@midscene/core 1.9.2-beta-20260608084200.0 → 1.9.2

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.
@@ -91,6 +91,23 @@ export interface MidsceneYamlScriptWebEnv extends MidsceneYamlScriptConfig, Mids
91
91
  continueOnNetworkIdleError?: boolean;
92
92
  };
93
93
  cookie?: string;
94
+ /**
95
+ * Extra HTTP headers sent with every request (Puppeteer only, not supported
96
+ * in bridge mode). Useful when the server validates custom request headers.
97
+ *
98
+ * Header values must be strings. Quote values that YAML would otherwise parse
99
+ * as a boolean or number (e.g. `true`, `false`, `123`), such as `"true"`.
100
+ *
101
+ * @example
102
+ * ```yaml
103
+ * web:
104
+ * url: https://example.com
105
+ * extraHTTPHeaders:
106
+ * X-Custom-Token: my-token
107
+ * Accept-Language: en-US
108
+ * ```
109
+ */
110
+ extraHTTPHeaders?: Record<string, string>;
94
111
  forceSameTabNavigation?: boolean;
95
112
  /**
96
113
  * Custom Chrome launch arguments (Puppeteer only, not supported in bridge mode).
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.9.2-beta-20260608084200.0",
4
+ "version": "1.9.2",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -99,7 +99,7 @@
99
99
  "semver": "7.5.2",
100
100
  "undici": "^6.0.0",
101
101
  "zod": "^3.25.1",
102
- "@midscene/shared": "1.9.2-beta-20260608084200.0"
102
+ "@midscene/shared": "1.9.2"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@rslib/core": "^0.18.3",