@midscene/shared 1.8.8 → 1.8.9

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.
@@ -5,7 +5,7 @@ import { assert } from "../utils.mjs";
5
5
  import { maskConfig, parseJson } from "./helper.mjs";
6
6
  import { initDebugConfig } from "./init-debug.mjs";
7
7
  const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
8
- const getCurrentVersion = ()=>"1.8.8";
8
+ const getCurrentVersion = ()=>"1.8.9";
9
9
  const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
10
10
  const KEYS_MAP = {
11
11
  insight: INSIGHT_MODEL_CONFIG_KEYS,
@@ -188,6 +188,7 @@ const MODEL_FAMILY_VALUES = [
188
188
  'gemini',
189
189
  'qwen2.5-vl',
190
190
  'qwen3-vl',
191
+ 'qwen3',
191
192
  'qwen3.5',
192
193
  'qwen3.6',
193
194
  'vlm-ui-tars',
@@ -37,7 +37,7 @@ const external_utils_js_namespaceObject = require("../utils.js");
37
37
  const external_helper_js_namespaceObject = require("./helper.js");
38
38
  const external_init_debug_js_namespaceObject = require("./init-debug.js");
39
39
  const MODEL_CONFIG_DOC_URL = 'https://midscenejs.com/model-common-config.html';
40
- const getCurrentVersion = ()=>"1.8.8";
40
+ const getCurrentVersion = ()=>"1.8.9";
41
41
  const getInvalidModelFamilyMessage = (modelFamily)=>`Invalid MIDSCENE_MODEL_FAMILY value: ${modelFamily}. Current version v${getCurrentVersion()} accepts the following model families: ${external_types_js_namespaceObject.MODEL_FAMILY_VALUES.join(', ')}. You can also visit ${MODEL_CONFIG_DOC_URL} for the latest configuration information.`;
42
42
  const KEYS_MAP = {
43
43
  insight: external_constants_js_namespaceObject.INSIGHT_MODEL_CONFIG_KEYS,
@@ -306,6 +306,7 @@ const MODEL_FAMILY_VALUES = [
306
306
  'gemini',
307
307
  'qwen2.5-vl',
308
308
  'qwen3-vl',
309
+ 'qwen3',
309
310
  'qwen3.5',
310
311
  'qwen3.6',
311
312
  'vlm-ui-tars',
@@ -124,7 +124,7 @@ export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
124
124
  /**
125
125
  * valid Model family types
126
126
  */
127
- export type TModelFamily = 'qwen2.5-vl' | 'qwen3-vl' | 'qwen3.5' | 'qwen3.6' | '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' | 'gpt-5';
127
+ export type TModelFamily = 'qwen2.5-vl' | 'qwen3-vl' | 'qwen3' | 'qwen3.5' | 'qwen3.6' | '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' | 'gpt-5';
128
128
  export declare const MODEL_FAMILY_VALUES: TModelFamily[];
129
129
  export interface IModelConfigForInsight {
130
130
  [MIDSCENE_INSIGHT_MODEL_NAME]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
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
@@ -285,6 +285,7 @@ export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
285
285
  export type TModelFamily =
286
286
  | 'qwen2.5-vl'
287
287
  | 'qwen3-vl'
288
+ | 'qwen3'
288
289
  | 'qwen3.5'
289
290
  | 'qwen3.6'
290
291
  | 'doubao-vision'
@@ -304,6 +305,7 @@ export const MODEL_FAMILY_VALUES: TModelFamily[] = [
304
305
  'gemini',
305
306
  'qwen2.5-vl',
306
307
  'qwen3-vl',
308
+ 'qwen3',
307
309
  'qwen3.5',
308
310
  'qwen3.6',
309
311
  'vlm-ui-tars',