@midscene/shared 1.4.5 → 1.4.6

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.
@@ -166,9 +166,11 @@ const ALL_ENV_KEYS = [
166
166
  ];
167
167
  const VL_MODE_RAW_VALID_VALUES = [
168
168
  'doubao-vision',
169
+ 'doubao-seed',
169
170
  'gemini',
170
171
  'qwen2.5-vl',
171
172
  'qwen3-vl',
173
+ 'qwen3.5',
172
174
  'vlm-ui-tars',
173
175
  'vlm-ui-tars-doubao',
174
176
  'vlm-ui-tars-doubao-1.5',
@@ -275,9 +275,11 @@ const ALL_ENV_KEYS = [
275
275
  ];
276
276
  const VL_MODE_RAW_VALID_VALUES = [
277
277
  'doubao-vision',
278
+ 'doubao-seed',
278
279
  'gemini',
279
280
  'qwen2.5-vl',
280
281
  'qwen3-vl',
282
+ 'qwen3.5',
281
283
  'vlm-ui-tars',
282
284
  'vlm-ui-tars-doubao',
283
285
  'vlm-ui-tars-doubao-1.5',
@@ -114,7 +114,7 @@ export declare const MODEL_ENV_KEYS: readonly ["MIDSCENE_MODEL_NAME", "MIDSCENE_
114
114
  export declare const ALL_ENV_KEYS: readonly [...string[], "MIDSCENE_DEBUG_MODE", "MIDSCENE_DEBUG_MODEL_PROFILE", "MIDSCENE_DEBUG_MODEL_RESPONSE", "MIDSCENE_RUN_DIR", "MIDSCENE_CACHE", "MIDSCENE_FORCE_DEEP_THINK", "MIDSCENE_MCP_USE_PUPPETEER_MODE", "MIDSCENE_MCP_ANDROID_MODE", "MIDSCENE_LANGSMITH_DEBUG", "MIDSCENE_LANGFUSE_DEBUG", "MIDSCENE_REPORT_QUIET", "MIDSCENE_MODEL_MAX_TOKENS", "MIDSCENE_CACHE_MAX_FILENAME_LENGTH", "MIDSCENE_REPLANNING_CYCLE_LIMIT", "MIDSCENE_MODEL_MAX_TOKENS", "OPENAI_MAX_TOKENS", "MIDSCENE_ADB_PATH", "MIDSCENE_ADB_REMOTE_HOST", "MIDSCENE_ADB_REMOTE_PORT", "MIDSCENE_ANDROID_IME_STRATEGY", "MIDSCENE_IOS_DEVICE_UDID", "MIDSCENE_IOS_SIMULATOR_UDID", "MIDSCENE_REPORT_TAG_NAME", "MIDSCENE_PREFERRED_LANGUAGE", "MATCH_BY_POSITION", "MIDSCENE_MCP_CHROME_PATH", "DOCKER_CONTAINER", "MIDSCENE_MODEL_NAME", "MIDSCENE_MODEL_INIT_CONFIG_JSON", "MIDSCENE_MODEL_API_KEY", "MIDSCENE_MODEL_BASE_URL", "MIDSCENE_MODEL_SOCKS_PROXY", "MIDSCENE_MODEL_HTTP_PROXY", "MIDSCENE_MODEL_TIMEOUT", "MIDSCENE_MODEL_TEMPERATURE", "MIDSCENE_MODEL_RETRY_COUNT", "MIDSCENE_MODEL_RETRY_INTERVAL", "MIDSCENE_USE_VLM_UI_TARS", "MIDSCENE_USE_QWEN_VL", "MIDSCENE_USE_QWEN3_VL", "MIDSCENE_USE_DOUBAO_VISION", "MIDSCENE_USE_GEMINI", "MIDSCENE_USE_VL_MODEL", "OPENAI_API_KEY", "OPENAI_BASE_URL", "MIDSCENE_OPENAI_INIT_CONFIG_JSON", "MIDSCENE_OPENAI_HTTP_PROXY", "MIDSCENE_OPENAI_SOCKS_PROXY", "MIDSCENE_INSIGHT_MODEL_NAME", "MIDSCENE_INSIGHT_MODEL_SOCKS_PROXY", "MIDSCENE_INSIGHT_MODEL_HTTP_PROXY", "MIDSCENE_INSIGHT_MODEL_BASE_URL", "MIDSCENE_INSIGHT_MODEL_API_KEY", "MIDSCENE_INSIGHT_MODEL_INIT_CONFIG_JSON", "MIDSCENE_INSIGHT_MODEL_TIMEOUT", "MIDSCENE_INSIGHT_MODEL_TEMPERATURE", "MIDSCENE_INSIGHT_MODEL_RETRY_COUNT", "MIDSCENE_INSIGHT_MODEL_RETRY_INTERVAL", "MIDSCENE_INSIGHT_MODEL_FAMILY", "MIDSCENE_PLANNING_MODEL_NAME", "MIDSCENE_PLANNING_MODEL_SOCKS_PROXY", "MIDSCENE_PLANNING_MODEL_HTTP_PROXY", "MIDSCENE_PLANNING_MODEL_BASE_URL", "MIDSCENE_PLANNING_MODEL_API_KEY", "MIDSCENE_PLANNING_MODEL_INIT_CONFIG_JSON", "MIDSCENE_PLANNING_MODEL_TIMEOUT", "MIDSCENE_PLANNING_MODEL_TEMPERATURE", "MIDSCENE_PLANNING_MODEL_RETRY_COUNT", "MIDSCENE_PLANNING_MODEL_RETRY_INTERVAL", "MIDSCENE_PLANNING_MODEL_FAMILY", "MIDSCENE_MODEL_FAMILY"];
115
115
  export type TEnvKeys = (typeof ALL_ENV_KEYS)[number];
116
116
  export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
117
- export type TVlModeValues = 'qwen2.5-vl' | 'qwen3-vl' | 'doubao-vision' | 'gemini' | 'vlm-ui-tars' | 'vlm-ui-tars-doubao' | 'vlm-ui-tars-doubao-1.5' | 'glm-v' | 'auto-glm' | 'auto-glm-multilingual';
117
+ export type TVlModeValues = 'qwen2.5-vl' | 'qwen3-vl' | 'qwen3.5' | 'doubao-vision' | 'doubao-seed' | 'gemini' | 'vlm-ui-tars' | 'vlm-ui-tars-doubao' | 'vlm-ui-tars-doubao-1.5' | 'glm-v' | 'auto-glm' | 'auto-glm-multilingual';
118
118
  export declare const VL_MODE_RAW_VALID_VALUES: TVlModeValues[];
119
119
  /**
120
120
  * Model family values - unified model configuration approach
@@ -123,6 +123,7 @@ export declare const VL_MODE_RAW_VALID_VALUES: TVlModeValues[];
123
123
  * Note: These values directly correspond to VL_MODE_RAW_VALID_VALUES
124
124
  * - 'qwen2.5-vl' is Qwen 2.5
125
125
  * - 'qwen3-vl' is Qwen 3
126
+ * - 'qwen3.5' is Qwen 3.5 (behaves the same as qwen3-vl)
126
127
  */
127
128
  export type TModelFamily = TVlModeValues | 'gpt-5';
128
129
  export declare const MODEL_FAMILY_VALUES: TModelFamily[];
@@ -157,8 +158,10 @@ export interface IModelConfigForPlanning {
157
158
  * Required: MIDSCENE_MODEL_FAMILY must be set to one of:
158
159
  * - 'qwen2.5-vl'
159
160
  * - 'qwen3-vl'
161
+ * - 'qwen3.5'
160
162
  * - 'gemini'
161
163
  * - 'doubao-vision'
164
+ * - 'doubao-seed'
162
165
  * - 'vlm-ui-tars'
163
166
  * - 'vlm-ui-tars-doubao'
164
167
  * - 'vlm-ui-tars-doubao-1.5'
@@ -263,7 +266,7 @@ export interface IModelConfig {
263
266
  retryInterval?: number;
264
267
  /**
265
268
  * Model family - unified model configuration
266
- * Maps directly to model families like 'qwen2.5-vl', 'qwen3-vl', 'doubao-vision', etc.
269
+ * Maps directly to model families like 'qwen2.5-vl', 'qwen3-vl', 'doubao-vision', 'doubao-seed', etc.
267
270
  */
268
271
  modelFamily?: TModelFamily;
269
272
  uiTarsModelVersion?: UITarsModelVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "repository": "https://github.com/web-infra-dev/midscene",
5
5
  "homepage": "https://midscenejs.com/",
6
6
  "types": "./dist/types/index.d.ts",
package/src/env/types.ts CHANGED
@@ -256,7 +256,9 @@ export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
256
256
  export type TVlModeValues =
257
257
  | 'qwen2.5-vl'
258
258
  | 'qwen3-vl'
259
+ | 'qwen3.5'
259
260
  | 'doubao-vision'
261
+ | 'doubao-seed'
260
262
  | 'gemini'
261
263
  | 'vlm-ui-tars'
262
264
  | 'vlm-ui-tars-doubao'
@@ -267,9 +269,11 @@ export type TVlModeValues =
267
269
 
268
270
  export const VL_MODE_RAW_VALID_VALUES: TVlModeValues[] = [
269
271
  'doubao-vision',
272
+ 'doubao-seed',
270
273
  'gemini',
271
274
  'qwen2.5-vl',
272
275
  'qwen3-vl',
276
+ 'qwen3.5',
273
277
  'vlm-ui-tars',
274
278
  'vlm-ui-tars-doubao',
275
279
  'vlm-ui-tars-doubao-1.5',
@@ -285,6 +289,7 @@ export const VL_MODE_RAW_VALID_VALUES: TVlModeValues[] = [
285
289
  * Note: These values directly correspond to VL_MODE_RAW_VALID_VALUES
286
290
  * - 'qwen2.5-vl' is Qwen 2.5
287
291
  * - 'qwen3-vl' is Qwen 3
292
+ * - 'qwen3.5' is Qwen 3.5 (behaves the same as qwen3-vl)
288
293
  */
289
294
  export type TModelFamily = TVlModeValues | 'gpt-5';
290
295
 
@@ -338,8 +343,10 @@ export interface IModelConfigForPlanning {
338
343
  * Required: MIDSCENE_MODEL_FAMILY must be set to one of:
339
344
  * - 'qwen2.5-vl'
340
345
  * - 'qwen3-vl'
346
+ * - 'qwen3.5'
341
347
  * - 'gemini'
342
348
  * - 'doubao-vision'
349
+ * - 'doubao-seed'
343
350
  * - 'vlm-ui-tars'
344
351
  * - 'vlm-ui-tars-doubao'
345
352
  * - 'vlm-ui-tars-doubao-1.5'
@@ -461,7 +468,7 @@ export interface IModelConfig {
461
468
  retryInterval?: number;
462
469
  /**
463
470
  * Model family - unified model configuration
464
- * Maps directly to model families like 'qwen2.5-vl', 'qwen3-vl', 'doubao-vision', etc.
471
+ * Maps directly to model families like 'qwen2.5-vl', 'qwen3-vl', 'doubao-vision', 'doubao-seed', etc.
465
472
  */
466
473
  modelFamily?: TModelFamily;
467
474
  uiTarsModelVersion?: UITarsModelVersion;