@midscene/shared 1.10.4 → 1.10.5-beta-20260714101501.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.10.
|
|
8
|
+
const getCurrentVersion = ()=>"1.10.5-beta-20260714101501.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,
|
|
@@ -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.10.
|
|
40
|
+
const getCurrentVersion = ()=>"1.10.5-beta-20260714101501.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,
|
package/dist/types/recorder.d.ts
CHANGED
|
@@ -13,6 +13,18 @@ export interface MidsceneRecorderPageInfo {
|
|
|
13
13
|
width: number;
|
|
14
14
|
height: number;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* A screenshot stored outside the recording event payload.
|
|
18
|
+
*
|
|
19
|
+
* Recorder events are persisted in the Studio renderer. Keeping full data
|
|
20
|
+
* URLs there makes long recordings retain every screenshot in the renderer
|
|
21
|
+
* heap, so screenshot bytes live in the Playground run directory instead.
|
|
22
|
+
*/
|
|
23
|
+
export interface MidsceneRecorderScreenshotAssetRef {
|
|
24
|
+
id: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
bytes: number;
|
|
27
|
+
}
|
|
16
28
|
export interface MidsceneRecorderEvent {
|
|
17
29
|
type: MidsceneRecorderEventType;
|
|
18
30
|
source?: MidsceneRecorderSourceKind;
|
|
@@ -25,6 +37,8 @@ export interface MidsceneRecorderEvent {
|
|
|
25
37
|
pageInfo: MidsceneRecorderPageInfo;
|
|
26
38
|
screenshotBefore?: string;
|
|
27
39
|
screenshotAfter?: string;
|
|
40
|
+
/** The single screenshot retained for AI description and Markdown export. */
|
|
41
|
+
screenshotAsset?: MidsceneRecorderScreenshotAssetRef;
|
|
28
42
|
semantic?: MidsceneRecorderSemantic;
|
|
29
43
|
elementDescription?: string;
|
|
30
44
|
descriptionLoading?: boolean;
|
package/package.json
CHANGED
package/src/recorder.ts
CHANGED
|
@@ -34,6 +34,19 @@ export interface MidsceneRecorderPageInfo {
|
|
|
34
34
|
height: number;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* A screenshot stored outside the recording event payload.
|
|
39
|
+
*
|
|
40
|
+
* Recorder events are persisted in the Studio renderer. Keeping full data
|
|
41
|
+
* URLs there makes long recordings retain every screenshot in the renderer
|
|
42
|
+
* heap, so screenshot bytes live in the Playground run directory instead.
|
|
43
|
+
*/
|
|
44
|
+
export interface MidsceneRecorderScreenshotAssetRef {
|
|
45
|
+
id: string;
|
|
46
|
+
mimeType: string;
|
|
47
|
+
bytes: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
export interface MidsceneRecorderEvent {
|
|
38
51
|
type: MidsceneRecorderEventType;
|
|
39
52
|
source?: MidsceneRecorderSourceKind;
|
|
@@ -46,6 +59,8 @@ export interface MidsceneRecorderEvent {
|
|
|
46
59
|
pageInfo: MidsceneRecorderPageInfo;
|
|
47
60
|
screenshotBefore?: string;
|
|
48
61
|
screenshotAfter?: string;
|
|
62
|
+
/** The single screenshot retained for AI description and Markdown export. */
|
|
63
|
+
screenshotAsset?: MidsceneRecorderScreenshotAssetRef;
|
|
49
64
|
semantic?: MidsceneRecorderSemantic;
|
|
50
65
|
elementDescription?: string;
|
|
51
66
|
descriptionLoading?: boolean;
|