@midscene/visualizer 0.30.5 → 1.0.1-beta-20251021060907.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.
- package/dist/es/component/prompt-input/index.mjs +1 -1
- package/dist/es/store/history.mjs +1 -1
- package/dist/es/types.mjs +1 -1
- package/dist/es/utils/constants.mjs +2 -2
- package/dist/lib/component/prompt-input/index.js +1 -1
- package/dist/lib/store/history.js +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/utils/constants.js +2 -2
- package/dist/types/types.d.ts +2 -2
- package/dist/types/utils/constants.d.ts +1 -1
- package/package.json +5 -5
|
@@ -506,7 +506,7 @@ const PromptInput = (param)=>{
|
|
|
506
506
|
loading: loading,
|
|
507
507
|
children: text
|
|
508
508
|
});
|
|
509
|
-
if (dryMode) return '
|
|
509
|
+
if (dryMode) return 'aiAct' === selectedType ? /*#__PURE__*/ jsx(Tooltip, {
|
|
510
510
|
title: "Start executing until some interaction actions need to be performed. You can see the process of planning and locating.",
|
|
511
511
|
children: runButton('Dry Run')
|
|
512
512
|
}) : runButton('Run');
|
|
@@ -33,7 +33,7 @@ const getHistoryFromLocalStorage = ()=>{
|
|
|
33
33
|
const historyString = localStorage.getItem(HISTORY_KEY);
|
|
34
34
|
return historyString ? JSON.parse(historyString) : {};
|
|
35
35
|
};
|
|
36
|
-
const getLastSelectedType = ()=>localStorage.getItem(LAST_SELECTED_TYPE_KEY) || '
|
|
36
|
+
const getLastSelectedType = ()=>localStorage.getItem(LAST_SELECTED_TYPE_KEY) || 'aiAct';
|
|
37
37
|
const setLastSelectedType = (type)=>{
|
|
38
38
|
localStorage.setItem(LAST_SELECTED_TYPE_KEY, type);
|
|
39
39
|
};
|
package/dist/es/types.mjs
CHANGED
|
@@ -3,7 +3,7 @@ const deepThinkTip = 'deep think';
|
|
|
3
3
|
const screenshotIncludedTip = 'include screenshot in request';
|
|
4
4
|
const domIncludedTip = 'include DOM info in request';
|
|
5
5
|
const apiMetadata = {
|
|
6
|
-
|
|
6
|
+
aiAct: {
|
|
7
7
|
group: 'interaction',
|
|
8
8
|
title: 'Auto Planning: plan the steps and execute'
|
|
9
9
|
},
|
|
@@ -69,7 +69,7 @@ const apiMetadata = {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
const defaultMainButtons = [
|
|
72
|
-
'
|
|
72
|
+
'aiAct',
|
|
73
73
|
'aiTap',
|
|
74
74
|
'aiQuery',
|
|
75
75
|
'aiAssert'
|
|
@@ -544,7 +544,7 @@ const PromptInput = (param)=>{
|
|
|
544
544
|
loading: loading,
|
|
545
545
|
children: text
|
|
546
546
|
});
|
|
547
|
-
if (dryMode) return '
|
|
547
|
+
if (dryMode) return 'aiAct' === selectedType ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Tooltip, {
|
|
548
548
|
title: "Start executing until some interaction actions need to be performed. You can see the process of planning and locating.",
|
|
549
549
|
children: runButton('Dry Run')
|
|
550
550
|
}) : runButton('Run');
|
|
@@ -34,7 +34,7 @@ const getHistoryFromLocalStorage = ()=>{
|
|
|
34
34
|
const historyString = localStorage.getItem(HISTORY_KEY);
|
|
35
35
|
return historyString ? JSON.parse(historyString) : {};
|
|
36
36
|
};
|
|
37
|
-
const getLastSelectedType = ()=>localStorage.getItem(LAST_SELECTED_TYPE_KEY) || '
|
|
37
|
+
const getLastSelectedType = ()=>localStorage.getItem(LAST_SELECTED_TYPE_KEY) || 'aiAct';
|
|
38
38
|
const setLastSelectedType = (type)=>{
|
|
39
39
|
localStorage.setItem(LAST_SELECTED_TYPE_KEY, type);
|
|
40
40
|
};
|
package/dist/lib/types.js
CHANGED
|
@@ -38,7 +38,7 @@ const deepThinkTip = 'deep think';
|
|
|
38
38
|
const screenshotIncludedTip = 'include screenshot in request';
|
|
39
39
|
const domIncludedTip = 'include DOM info in request';
|
|
40
40
|
const apiMetadata = {
|
|
41
|
-
|
|
41
|
+
aiAct: {
|
|
42
42
|
group: 'interaction',
|
|
43
43
|
title: 'Auto Planning: plan the steps and execute'
|
|
44
44
|
},
|
|
@@ -104,7 +104,7 @@ const apiMetadata = {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
const defaultMainButtons = [
|
|
107
|
-
'
|
|
107
|
+
'aiAct',
|
|
108
108
|
'aiTap',
|
|
109
109
|
'aiQuery',
|
|
110
110
|
'aiAssert'
|
package/dist/types/types.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const VALIDATION_CONSTANTS: {
|
|
|
58
58
|
readonly LOCATION: "midscene_location_field_flag";
|
|
59
59
|
};
|
|
60
60
|
readonly DEFAULT_VALUES: {
|
|
61
|
-
readonly ACTION_TYPE: "
|
|
61
|
+
readonly ACTION_TYPE: "aiAct";
|
|
62
62
|
readonly TIMEOUT_MS: 15000;
|
|
63
63
|
readonly CHECK_INTERVAL_MS: 3000;
|
|
64
64
|
};
|
|
@@ -89,7 +89,7 @@ export interface StaticPlaygroundProps {
|
|
|
89
89
|
context: WebUIContext | null;
|
|
90
90
|
}
|
|
91
91
|
export type ServiceModeType = 'Server' | 'In-Browser' | 'In-Browser-Extension';
|
|
92
|
-
export type RunType = '
|
|
92
|
+
export type RunType = 'aiAct' | 'aiQuery' | 'aiAssert' | 'aiTap' | 'aiDoubleClick' | 'aiHover' | 'aiInput' | 'aiRightClick' | 'aiKeyboardPress' | 'aiScroll' | 'aiLocate' | 'aiBoolean' | 'aiNumber' | 'aiString' | 'aiAsk' | 'aiWaitFor';
|
|
93
93
|
export interface ReplayScriptsInfo {
|
|
94
94
|
scripts: any[];
|
|
95
95
|
width?: number;
|
|
@@ -4,7 +4,7 @@ export declare const deepThinkTip = "deep think";
|
|
|
4
4
|
export declare const screenshotIncludedTip = "include screenshot in request";
|
|
5
5
|
export declare const domIncludedTip = "include DOM info in request";
|
|
6
6
|
export declare const apiMetadata: {
|
|
7
|
-
|
|
7
|
+
aiAct: {
|
|
8
8
|
group: string;
|
|
9
9
|
title: string;
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1-beta-20251021060907.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",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"antd": "^5.21.6",
|
|
71
71
|
"buffer": "6.0.3",
|
|
72
72
|
"dayjs": "^1.11.11",
|
|
73
|
-
"@midscene/
|
|
74
|
-
"@midscene/
|
|
75
|
-
"@midscene/
|
|
76
|
-
"@midscene/
|
|
73
|
+
"@midscene/shared": "1.0.1-beta-20251021060907.0",
|
|
74
|
+
"@midscene/playground": "1.0.1-beta-20251021060907.0",
|
|
75
|
+
"@midscene/web": "1.0.1-beta-20251021060907.0",
|
|
76
|
+
"@midscene/core": "1.0.1-beta-20251021060907.0"
|
|
77
77
|
},
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"scripts": {
|