@midscene/shared 1.11.1-beta-20260821111517.0 → 1.12.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.
@@ -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.11.1-beta-20260821111517.0";
8
+ const getCurrentVersion = ()=>"1.12.0";
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,
@@ -206,6 +206,7 @@ const MODEL_FAMILY_VALUES = [
206
206
  'auto-glm',
207
207
  'auto-glm-multilingual',
208
208
  'gpt-5',
209
+ 'deepseek',
209
210
  'kimi',
210
211
  'kimi3',
211
212
  'xiaomi-mimo'
@@ -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.11.1-beta-20260821111517.0";
40
+ const getCurrentVersion = ()=>"1.12.0";
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,
@@ -328,6 +328,7 @@ const MODEL_FAMILY_VALUES = [
328
328
  'auto-glm',
329
329
  'auto-glm-multilingual',
330
330
  'gpt-5',
331
+ 'deepseek',
331
332
  'kimi',
332
333
  'kimi3',
333
334
  'xiaomi-mimo'
@@ -133,7 +133,7 @@ export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
133
133
  /**
134
134
  * valid Model family types
135
135
  */
136
- 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' | 'kimi' | 'kimi3' | 'xiaomi-mimo';
136
+ 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' | 'deepseek' | 'kimi' | 'kimi3' | 'xiaomi-mimo';
137
137
  export declare const MODEL_FAMILY_VALUES: TModelFamily[];
138
138
  export interface IModelConfigForInsight {
139
139
  [MIDSCENE_INSIGHT_MODEL_NAME]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "1.11.1-beta-20260821111517.0",
3
+ "version": "1.12.0",
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
@@ -314,6 +314,7 @@ export type TModelFamily =
314
314
  | 'auto-glm'
315
315
  | 'auto-glm-multilingual'
316
316
  | 'gpt-5'
317
+ | 'deepseek'
317
318
  | 'kimi'
318
319
  | 'kimi3'
319
320
  | 'xiaomi-mimo';
@@ -334,6 +335,7 @@ export const MODEL_FAMILY_VALUES: TModelFamily[] = [
334
335
  'auto-glm',
335
336
  'auto-glm-multilingual',
336
337
  'gpt-5',
338
+ 'deepseek',
337
339
  'kimi',
338
340
  'kimi3',
339
341
  'xiaomi-mimo',