@midscene/shared 1.9.4-beta-20260610095330.0 → 1.9.4

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.9.4-beta-20260610095330.0";
8
+ const getCurrentVersion = ()=>"1.9.4";
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,
@@ -197,7 +197,8 @@ const MODEL_FAMILY_VALUES = [
197
197
  'glm-v',
198
198
  'auto-glm',
199
199
  'auto-glm-multilingual',
200
- 'gpt-5'
200
+ 'gpt-5',
201
+ 'kimi'
201
202
  ];
202
203
  var types_UITarsModelVersion = /*#__PURE__*/ function(UITarsModelVersion) {
203
204
  UITarsModelVersion["V1_0"] = "1.0";
@@ -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.9.4-beta-20260610095330.0";
40
+ const getCurrentVersion = ()=>"1.9.4";
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,
@@ -315,7 +315,8 @@ const MODEL_FAMILY_VALUES = [
315
315
  'glm-v',
316
316
  'auto-glm',
317
317
  'auto-glm-multilingual',
318
- 'gpt-5'
318
+ 'gpt-5',
319
+ 'kimi'
319
320
  ];
320
321
  var UITarsModelVersion = /*#__PURE__*/ function(UITarsModelVersion) {
321
322
  UITarsModelVersion["V1_0"] = "1.0";
@@ -125,7 +125,7 @@ export type TGlobalConfig = Record<TEnvKeys, string | undefined>;
125
125
  /**
126
126
  * valid Model family types
127
127
  */
128
- 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
+ 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';
129
129
  export declare const MODEL_FAMILY_VALUES: TModelFamily[];
130
130
  export interface IModelConfigForInsight {
131
131
  [MIDSCENE_INSIGHT_MODEL_NAME]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/shared",
3
- "version": "1.9.4-beta-20260610095330.0",
3
+ "version": "1.9.4",
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
@@ -299,7 +299,8 @@ export type TModelFamily =
299
299
  | 'glm-v'
300
300
  | 'auto-glm'
301
301
  | 'auto-glm-multilingual'
302
- | 'gpt-5';
302
+ | 'gpt-5'
303
+ | 'kimi';
303
304
 
304
305
  export const MODEL_FAMILY_VALUES: TModelFamily[] = [
305
306
  'doubao-vision',
@@ -317,6 +318,7 @@ export const MODEL_FAMILY_VALUES: TModelFamily[] = [
317
318
  'auto-glm',
318
319
  'auto-glm-multilingual',
319
320
  'gpt-5',
321
+ 'kimi',
320
322
  ];
321
323
 
322
324
  export interface IModelConfigForInsight {