@autotest/agent 0.0.3 → 0.0.5

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.
Files changed (69) hide show
  1. package/README.md +130 -75
  2. package/dist/api/agent_api.d.ts +2 -6
  3. package/dist/api/agent_api.js +6 -11
  4. package/dist/autotest-cli.js +9 -2
  5. package/dist/common/config/config.yaml +134 -0
  6. package/dist/common/model/custom_model.js +63 -5
  7. package/dist/common/path_utils.d.ts +7 -3
  8. package/dist/common/path_utils.js +12 -5
  9. package/dist/common/result_parser.js +1 -1
  10. package/dist/core/agent/layered_agent/decision.js +61 -23
  11. package/dist/core/agent/layered_agent/execute_agent/general_agent.js +1 -1
  12. package/dist/core/agent/layered_agent/execute_agent/mcp_prompts.d.ts +1 -1
  13. package/dist/core/agent/layered_agent/execute_agent/mcp_prompts.js +5 -5
  14. package/dist/core/agent/layered_agent/execute_agent/parser/general_parser.js +1 -1
  15. package/dist/core/agent/layered_agent/execute_agent/parser/glm_parser.js +1 -1
  16. package/dist/core/agent/layered_agent/execute_agent/parser/mai_ui_parser.js +1 -1
  17. package/dist/core/agent/layered_agent/execute_agent/prompts.d.ts +1 -1
  18. package/dist/core/agent/layered_agent/execute_agent/prompts.js +5 -5
  19. package/dist/core/mcp/mcp_tools.d.ts +19 -2
  20. package/dist/core/mcp/mcp_tools.js +40 -12
  21. package/dist/core/memory/_utils.d.ts +18 -0
  22. package/dist/core/memory/_utils.js +140 -0
  23. package/dist/core/memory/replan_manager.d.ts +9 -0
  24. package/dist/core/memory/replan_manager.js +12 -0
  25. package/dist/core/memory/tool_player_popup.d.ts +66 -0
  26. package/dist/core/memory/tool_player_popup.js +276 -0
  27. package/dist/core/memory/tool_player_replan.d.ts +49 -0
  28. package/dist/core/memory/tool_player_replan.js +226 -0
  29. package/dist/core/memory/tool_player_xpath.d.ts +52 -0
  30. package/dist/core/memory/tool_player_xpath.js +139 -0
  31. package/dist/core/prompt/prompt_loader.js +3 -1
  32. package/dist/core/prompt/templates/debug/hypium/hypium_v2.0_optimize_scroll_search.md +310 -0
  33. package/dist/core/prompt/templates/debug/hypium/hypium_v2.0_relative_1000.md +284 -0
  34. package/dist/core/prompt/templates/debug/planner/planner_v3.0.md +140 -0
  35. package/dist/core/prompt/templates/debug/single/single_v2.0_optimize_scroll_search.md +272 -0
  36. package/dist/core/prompt/templates/debug/single/single_v2.0_relative_1000.md +277 -0
  37. package/dist/core/prompt/templates/single/single_v2.0_0_1000.md +315 -0
  38. package/dist/core/skill/skill_manager.js +4 -1
  39. package/dist/core/skill/skills/cancel-all-follows/SKILL.md +23 -0
  40. package/dist/core/skill/skills/create-local-image/SKILL.md +12 -0
  41. package/dist/core/skill/skills/create-local-video/SKILL.md +12 -0
  42. package/dist/core/skill/skills/dismiss-popups/SKILL.md +39 -0
  43. package/dist/core/skill/skills/douyin_test_skills.md +16 -0
  44. package/dist/data_types/case.d.ts +32 -0
  45. package/dist/data_types/case.js +57 -0
  46. package/dist/data_types/index.d.ts +2 -0
  47. package/dist/data_types/index.js +6 -1
  48. package/dist/data_types/screen.d.ts +12 -0
  49. package/dist/data_types/screen.js +23 -0
  50. package/dist/mcp-server/types.js +72 -50
  51. package/dist/reporter/generator.d.ts +0 -14
  52. package/dist/reporter/generator.js +18 -504
  53. package/dist/reporter/html_template/index.d.ts +56 -0
  54. package/dist/reporter/html_template/index.js +524 -0
  55. package/dist/reporter/json_report.d.ts +1 -0
  56. package/dist/reporter/json_report.js +6 -0
  57. package/dist/reporter/types.d.ts +1 -0
  58. package/dist/reporter/types.js +1 -0
  59. package/dist/tools/batch_runner.d.ts +3 -1
  60. package/dist/tools/batch_runner.js +21 -6
  61. package/dist/tools/case_runner/report.d.ts +9 -0
  62. package/dist/tools/case_runner/report.js +264 -0
  63. package/dist/tools/case_runner/runner.d.ts +57 -0
  64. package/dist/tools/case_runner/runner.js +410 -0
  65. package/dist/tools/config/config_tool.d.ts +13 -0
  66. package/dist/tools/config/config_tool.js +339 -0
  67. package/dist/tools/prompt_compare/compare_runner.d.ts +13 -0
  68. package/dist/tools/prompt_compare/compare_runner.js +360 -0
  69. package/package.json +7 -3
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: dismiss-popups
3
+ description: 自动检测并消除抖音运行过程中的各种弹窗。能够识别并跳过视频中的“假弹窗”。当用户遇到未知弹窗遮挡或需要清理屏幕干扰时使用。
4
+ ---
5
+
6
+ # 弹窗消除 (Dismiss Popups)
7
+
8
+ 此技能用于识别并消除屏幕上的干扰元素,包括真实的系统/应用弹窗和视频内容中伪造的“假弹窗”。
9
+
10
+ ## 执行步骤
11
+
12
+ 1. **观察当前页面状态**:
13
+ - 检查是否处于“首页”、“关注”等短视频流页面。
14
+ - 识别当前屏幕上的遮挡物是否具有明显的 UI 交互特征(如:右上角的 `x` 按钮、底部的“以后再说”等文字)。
15
+
16
+ 2. **识别并处理“真弹窗”**:
17
+ - 如果识别到 `x` 关闭图标,或“以后再说”、“暂不”、“我知道了”、“取消”等关闭类按钮,且其位置固定在 UI 层级中,则直接点击该区域。
18
+ - 等待 0.5 秒,确认弹窗是否消失。
19
+
20
+ 3. **识别并处理“视频/内容假弹窗”**:
21
+ - **短视频播放页**:如果当前处于视频流中,且弹窗样式看起来非常突兀(如:清晰度与背景不一、带有明显的点击诱导、且无法通过常规
22
+ UI 探测识别其关闭按钮),则该弹窗极有可能是视频内容的一部分。
23
+ - **操作方法**:调用 `go_back()` 返回或向上滑动(Swipe Up)切换到下一个视频。
24
+ - **首页/推荐/关注列表页(如网格布局)**:如果发现某个内容卡片(如视频缩略图)内部包含看起来像弹窗的元素(如“签到领钱”红色悬浮窗),但它
25
+ **只存在于单个卡片内**且**并未遮挡整个屏幕或底部导航栏**,则判定为内容的一部分。
26
+ - **⚠️ 绝对禁令**:**严禁点击**这类缩略图中的“假弹窗”!这通常是博主制作的封面诱导,点击会导致意外进入该视频,产生误操作。直接忽略,继续寻找你真正需要的操作目标。
27
+
28
+ 4. **处理权限请求(系统级)**:
29
+ - 如果是系统级弹窗(如位置、存储权限),除非任务明确需要,否则一律选择“仅在使用中允许”或“拒绝/取消”。
30
+
31
+ 5. **验证清理结果**:
32
+ - 确认主操作区域(如:搜索框、底部导航栏)已无遮挡。
33
+
34
+ ## 注意事项
35
+
36
+ - **识别优先级**:优先寻找并点击真实的 UI 关闭按钮。
37
+ - **防止误操作**:如果无法确定是弹窗还是正常页面内容,优先选择“返回”或“向上滑动”而不是盲目点击弹窗中心区域。
38
+ - **连续弹窗**:有些应用会连续弹出多个通知,需循环检查直到屏幕干净。
39
+ - **特殊情况**:在视频流中,如果“弹窗”随着视频背景一起滚动,那一定是视频里的假弹窗,直接划走即可。
@@ -0,0 +1,16 @@
1
+ # Skill: 取消所有关注
2
+ ## Description
3
+ 在抖音中取消关注所有用户,直到列表为空。
4
+ ## Steps
5
+ 1. 调用 `login` 工具确保登录状态。
6
+ 2. 调用 `start_app("抖音")` 打开应用。
7
+ 3. 点击底部的 "我" 标签进入个人主页。
8
+ 4. 点击 "关注" 标签区域进入关注列表。
9
+ 5. 点击 "批量管理" 按钮进入批量管理页面。
10
+ 6. 从右向左滑动,找到 "全部" 标签。
11
+ 7. 点击 "全部" 标签区域。
12
+ 8. 循环执行以下操作,直到没有关注的人:
13
+ - 观察屏幕,寻找 "取消关注"按钮。
14
+ - 如果找到,点击它们。
15
+ - 直到找不到"取消关注"按钮
16
+ ---
@@ -0,0 +1,32 @@
1
+ export interface AppInfoDict {
2
+ bundle_name: string;
3
+ display_name: string;
4
+ }
5
+ export declare class AppInfo {
6
+ bundleName: string;
7
+ displayName: string;
8
+ constructor(bundleName: string, displayName: string);
9
+ toDict(): AppInfoDict;
10
+ static fromDict(data: Record<string, unknown>): AppInfo;
11
+ }
12
+ export interface CaseInfoDict {
13
+ case_id: string;
14
+ case_name: string;
15
+ setup_steps: string;
16
+ process_steps: string;
17
+ teardown_steps: string;
18
+ app_infos: AppInfoDict[];
19
+ extend_tools: string[];
20
+ }
21
+ export declare class CaseInfo {
22
+ caseId: string;
23
+ caseName: string;
24
+ setupSteps: string;
25
+ processSteps: string;
26
+ teardownSteps: string;
27
+ appInfos: AppInfo[];
28
+ extendTools: string[];
29
+ constructor(caseId: string, caseName: string, setupSteps: string, processSteps: string, teardownSteps: string, appInfos: AppInfo[], extendTools?: string[]);
30
+ toDict(): CaseInfoDict;
31
+ static fromDict(data: Record<string, unknown>): CaseInfo;
32
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // Aligned with python data_types/case.py: AppInfo / CaseInfo structured case model.
3
+ // Used by case_runner (tools/case_runner) and batch runner CaseInfo-mode.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.CaseInfo = exports.AppInfo = void 0;
6
+ class AppInfo {
7
+ bundleName;
8
+ displayName;
9
+ constructor(bundleName, displayName) {
10
+ this.bundleName = bundleName;
11
+ this.displayName = displayName;
12
+ }
13
+ toDict() {
14
+ return {
15
+ bundle_name: this.bundleName,
16
+ display_name: this.displayName,
17
+ };
18
+ }
19
+ static fromDict(data) {
20
+ return new AppInfo(String(data['bundle_name'] ?? ''), String(data['display_name'] ?? ''));
21
+ }
22
+ }
23
+ exports.AppInfo = AppInfo;
24
+ class CaseInfo {
25
+ caseId;
26
+ caseName;
27
+ setupSteps;
28
+ processSteps;
29
+ teardownSteps;
30
+ appInfos;
31
+ extendTools;
32
+ constructor(caseId, caseName, setupSteps, processSteps, teardownSteps, appInfos, extendTools = []) {
33
+ this.caseId = caseId;
34
+ this.caseName = caseName;
35
+ this.setupSteps = setupSteps;
36
+ this.processSteps = processSteps;
37
+ this.teardownSteps = teardownSteps;
38
+ this.appInfos = appInfos;
39
+ this.extendTools = extendTools;
40
+ }
41
+ toDict() {
42
+ return {
43
+ case_id: this.caseId,
44
+ case_name: this.caseName,
45
+ setup_steps: this.setupSteps,
46
+ process_steps: this.processSteps,
47
+ teardown_steps: this.teardownSteps,
48
+ app_infos: this.appInfos.map((a) => a.toDict()),
49
+ extend_tools: this.extendTools,
50
+ };
51
+ }
52
+ static fromDict(data) {
53
+ const appInfosRaw = data['app_infos'] ?? [];
54
+ return new CaseInfo(String(data['case_id'] ?? ''), String(data['case_name'] ?? ''), String(data['setup_steps'] ?? ''), String(data['process_steps'] ?? ''), String(data['teardown_steps'] ?? ''), appInfosRaw.map((a) => AppInfo.fromDict(a)), data['extend_tools'] ?? []);
55
+ }
56
+ }
57
+ exports.CaseInfo = CaseInfo;
@@ -3,3 +3,5 @@ export { type ActionResult, type StepResult } from './action';
3
3
  export { EventType, ReportEventSchema, type ReportEvent } from './report';
4
4
  export { type TokenUsage } from './task';
5
5
  export { type SingleAgentArgs } from './agent';
6
+ export { AppInfo, CaseInfo, type AppInfoDict, type CaseInfoDict } from './case';
7
+ export { ScreenInfo } from './screen';
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportEventSchema = exports.EventType = void 0;
3
+ exports.ScreenInfo = exports.CaseInfo = exports.AppInfo = exports.ReportEventSchema = exports.EventType = void 0;
4
4
  var report_1 = require("./report");
5
5
  Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return report_1.EventType; } });
6
6
  Object.defineProperty(exports, "ReportEventSchema", { enumerable: true, get: function () { return report_1.ReportEventSchema; } });
7
+ var case_1 = require("./case");
8
+ Object.defineProperty(exports, "AppInfo", { enumerable: true, get: function () { return case_1.AppInfo; } });
9
+ Object.defineProperty(exports, "CaseInfo", { enumerable: true, get: function () { return case_1.CaseInfo; } });
10
+ var screen_1 = require("./screen");
11
+ Object.defineProperty(exports, "ScreenInfo", { enumerable: true, get: function () { return screen_1.ScreenInfo; } });
@@ -0,0 +1,12 @@
1
+ export declare class ScreenInfo {
2
+ width: number;
3
+ height: number;
4
+ app: string;
5
+ constructor(width?: number, height?: number, app?: string);
6
+ toDict(): {
7
+ width: number;
8
+ height: number;
9
+ app: string;
10
+ };
11
+ static fromDict(data: Record<string, unknown>): ScreenInfo;
12
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // Aligned with python data_types/screen.py: ScreenInfo (width/height/app).
3
+ // Standalone screen metadata; distinct from the agent-internal ScreenInfo
4
+ // in core/agent/utils/message_builder.ts (current_app/extra).
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ScreenInfo = void 0;
7
+ class ScreenInfo {
8
+ width;
9
+ height;
10
+ app;
11
+ constructor(width = 0, height = 0, app = '') {
12
+ this.width = width;
13
+ this.height = height;
14
+ this.app = app;
15
+ }
16
+ toDict() {
17
+ return { width: this.width, height: this.height, app: this.app };
18
+ }
19
+ static fromDict(data) {
20
+ return new ScreenInfo(Number(data['width'] ?? 0), Number(data['height'] ?? 0), String(data['app'] ?? ''));
21
+ }
22
+ }
23
+ exports.ScreenInfo = ScreenInfo;
@@ -4,6 +4,7 @@ exports.TOOL_DESCRIPTIONS = exports.UpdateConfigInputSchema = exports.GetConfigI
4
4
  const zod_1 = require("zod");
5
5
  var McpServerToolName;
6
6
  (function (McpServerToolName) {
7
+ // Device operations (35 — aligned with adapter callTool)
7
8
  McpServerToolName["CLICK"] = "click";
8
9
  McpServerToolName["DOUBLE_CLICK"] = "double_click";
9
10
  McpServerToolName["LONG_CLICK"] = "long_click";
@@ -39,6 +40,7 @@ var McpServerToolName;
39
40
  McpServerToolName["START_DATA_COLLECT"] = "start_data_collect";
40
41
  McpServerToolName["STOP_DATA_COLLECT"] = "stop_data_collect";
41
42
  McpServerToolName["GENERATE_REPORT"] = "generate_report";
43
+ // Management (7)
42
44
  McpServerToolName["LIST_DEVICES"] = "list_devices";
43
45
  McpServerToolName["RUN_TASK"] = "run_task";
44
46
  McpServerToolName["GET_TASK_RESULT"] = "get_task_result";
@@ -47,11 +49,13 @@ var McpServerToolName;
47
49
  McpServerToolName["GET_CONFIG"] = "get_config";
48
50
  McpServerToolName["UPDATE_CONFIG"] = "update_config";
49
51
  })(McpServerToolName || (exports.McpServerToolName = McpServerToolName = {}));
52
+ // ---- Point helper: accepts pos:[x,y] or x/y pair ----
50
53
  const PointSchema = zod_1.z.object({
51
54
  pos: zod_1.z.array(zod_1.z.number()).length(2).optional(),
52
55
  x: zod_1.z.number().optional(),
53
56
  y: zod_1.z.number().optional(),
54
57
  });
58
+ // ---- Device operation schemas ----
55
59
  exports.ClickInputSchema = PointSchema;
56
60
  exports.DoubleClickInputSchema = PointSchema;
57
61
  exports.LongClickInputSchema = zod_1.z.object({
@@ -69,17 +73,29 @@ exports.DragInputSchema = zod_1.z.object({
69
73
  start: zod_1.z.array(zod_1.z.number()).length(2),
70
74
  end: zod_1.z.array(zod_1.z.number()).length(2),
71
75
  });
72
- exports.InputTextInputSchema = zod_1.z.object({ text: zod_1.z.string() });
76
+ exports.InputTextInputSchema = zod_1.z.object({
77
+ text: zod_1.z.string(),
78
+ });
73
79
  exports.ClearTextInputSchema = zod_1.z.object({});
74
- exports.GoBackInputSchema = zod_1.z.object({ times: zod_1.z.number().int().default(1) });
75
- exports.GoHomeInputSchema = zod_1.z.object({ times: zod_1.z.number().int().default(1) });
80
+ exports.GoBackInputSchema = zod_1.z.object({
81
+ times: zod_1.z.number().int().default(1),
82
+ });
83
+ exports.GoHomeInputSchema = zod_1.z.object({
84
+ times: zod_1.z.number().int().default(1),
85
+ });
76
86
  exports.StartAppInputSchema = zod_1.z.object({
77
87
  app_name: zod_1.z.string(),
78
88
  cold_start: zod_1.z.boolean().default(false),
79
89
  });
80
- exports.StopAppInputSchema = zod_1.z.object({ app_name: zod_1.z.string() });
81
- exports.ClearAppDataInputSchema = zod_1.z.object({ app_name: zod_1.z.string() });
82
- exports.WaitInputSchema = zod_1.z.object({ duration: zod_1.z.number().default(3) });
90
+ exports.StopAppInputSchema = zod_1.z.object({
91
+ app_name: zod_1.z.string(),
92
+ });
93
+ exports.ClearAppDataInputSchema = zod_1.z.object({
94
+ app_name: zod_1.z.string(),
95
+ });
96
+ exports.WaitInputSchema = zod_1.z.object({
97
+ duration: zod_1.z.number().default(3),
98
+ });
83
99
  exports.PressKeyInputSchema = zod_1.z.object({
84
100
  key_name: zod_1.z.enum(['home', 'power', 'volume_up', 'volume_down']),
85
101
  });
@@ -133,6 +149,7 @@ exports.GetToastInputSchema = zod_1.z.object({
133
149
  exports.StartDataCollectInputSchema = zod_1.z.object({});
134
150
  exports.StopDataCollectInputSchema = zod_1.z.object({});
135
151
  exports.GenerateReportInputSchema = zod_1.z.object({});
152
+ // ---- Management schemas ----
136
153
  exports.ListDevicesInputSchema = zod_1.z.object({});
137
154
  exports.RunTaskInputSchema = zod_1.z.object({
138
155
  task: zod_1.z.string(),
@@ -145,7 +162,9 @@ exports.RunTaskInputSchema = zod_1.z.object({
145
162
  feedbackMode: zod_1.z.enum(['poll', 'stream', 'callback']).default('poll'),
146
163
  callbackUrl: zod_1.z.string().nullable().optional(),
147
164
  });
148
- exports.GetTaskResultInputSchema = zod_1.z.object({ taskId: zod_1.z.string() });
165
+ exports.GetTaskResultInputSchema = zod_1.z.object({
166
+ taskId: zod_1.z.string(),
167
+ });
149
168
  exports.ResumeTaskInputSchema = zod_1.z.object({
150
169
  taskId: zod_1.z.string(),
151
170
  startIndex: zod_1.z.number().int().nullable().optional(),
@@ -155,48 +174,51 @@ exports.AnalyzeFailureInputSchema = zod_1.z.object({
155
174
  caseIdx: zod_1.z.number().int(),
156
175
  });
157
176
  exports.GetConfigInputSchema = zod_1.z.object({});
158
- exports.UpdateConfigInputSchema = zod_1.z.object({ partial: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()) });
177
+ exports.UpdateConfigInputSchema = zod_1.z.object({
178
+ partial: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
179
+ });
180
+ // ---- Tool descriptions ----
159
181
  exports.TOOL_DESCRIPTIONS = {
160
- click: 'Click at the given coordinates',
161
- double_click: 'Double-click at the given coordinates',
162
- long_click: 'Long-press at the given coordinates',
163
- swipe: 'Swipe from start point to end point',
164
- drag: 'Drag from start point to end point',
165
- input_text: 'Input text at the current cursor position',
166
- clear_text: 'Clear text at the current cursor position',
167
- go_back: 'Go back to the previous screen',
168
- go_home: 'Go to the home screen',
169
- start_app: 'Launch an application on the device',
170
- stop_app: 'Stop an application on the device',
171
- clear_app_data: 'Clear application data',
172
- wait: 'Wait for the specified duration (max 200s)',
173
- press_key: 'Press a key (home/power/volume_up/volume_down)',
174
- screen_on: 'Turn on the device screen',
175
- screen_off: 'Turn off the device screen',
176
- unlock_screen: 'Unlock the device screen',
177
- clear_recent_task: 'Clear all recent tasks',
178
- enter_recent_task: 'Enter the recent tasks page',
179
- get_current_app: 'Get the current foreground app bundle name',
180
- screenshot: 'Capture a screenshot',
181
- layout: 'Get the current UI layout',
182
- mcp_clean_up: 'Release all cached device connections',
183
- open_control_center: 'Open the system control center',
184
- open_notification_center: 'Open the system notification center',
185
- pinch_in: 'Pinch in (two-finger zoom out)',
186
- pinch_out: 'Pinch out (two-finger zoom in)',
187
- rotate_gesture: 'Perform a two-finger rotation gesture',
188
- rotate_screen: 'Rotate the screen orientation',
189
- stop_all_app: 'Stop all running applications',
190
- start_listen_toast: 'Start listening for Toast messages',
191
- get_toast: 'Get the latest Toast message',
192
- start_data_collect: 'Start data collection',
193
- stop_data_collect: 'Stop data collection',
194
- generate_report: 'Generate a test report',
195
- list_devices: 'List all connected devices',
196
- run_task: 'Run a test task',
197
- get_task_result: 'Get the result of a task',
198
- resume_task: 'Resume a task from a given step',
199
- analyze_failure: 'Analyze the failure of a task',
200
- get_config: 'Get the current configuration',
201
- update_config: 'Update the configuration',
182
+ click: '在指定坐标执行点击操作',
183
+ double_click: '在指定坐标执行双击操作',
184
+ long_click: '在指定坐标执行长按操作',
185
+ swipe: '从起点滑动到终点',
186
+ drag: '从起点拖拽到终点',
187
+ input_text: '在当前光标位置输入文本',
188
+ clear_text: '清除当前光标位置的文本',
189
+ go_back: '返回上一级',
190
+ go_home: '返回桌面',
191
+ start_app: '在设备上启动应用程序',
192
+ stop_app: '在设备上停止应用程序',
193
+ clear_app_data: '清除应用程序的数据',
194
+ wait: '等待指定时间,最大600秒',
195
+ press_key: '按下按键 (home/power/volume_up/volume_down)',
196
+ screen_on: '打开设备屏幕',
197
+ screen_off: '关闭设备屏幕',
198
+ unlock_screen: '解锁设备屏幕',
199
+ clear_recent_task: '清空最近任务(清空后台)',
200
+ enter_recent_task: '进入系统最近任务页面',
201
+ get_current_app: '获取当前运行的应用程序的包名',
202
+ screenshot: '获取屏幕截图',
203
+ layout: '获取设备当前UI布局并提取有效元素',
204
+ mcp_clean_up: '释放所有缓存的设备连接',
205
+ open_control_center: '打开系统控制中心',
206
+ open_notification_center: '打开系统通知中心',
207
+ pinch_in: '在指定位置执行双指缩放',
208
+ pinch_out: '在指定位置执行双指放大',
209
+ rotate_gesture: '执行双指旋转手势',
210
+ rotate_screen: '旋转设备屏幕方向',
211
+ stop_all_app: '停止所有应用程序',
212
+ start_listen_toast: '开始监听 Toast 提示消息',
213
+ get_toast: '获取最新的 Toast 提示消息',
214
+ start_data_collect: '开始数据采集',
215
+ stop_data_collect: '结束数据采集',
216
+ generate_report: '生成测试报告',
217
+ list_devices: '列出所有已连接的设备',
218
+ run_task: '执行一个测试任务',
219
+ get_task_result: '获取任务执行结果',
220
+ resume_task: '从指定步骤恢复执行任务',
221
+ analyze_failure: '分析任务失败原因',
222
+ get_config: '获取当前配置',
223
+ update_config: '更新配置',
202
224
  };
@@ -27,19 +27,5 @@ export declare class ReportGeneratorImpl implements ReportGenerator {
27
27
  private buildReportData;
28
28
  private serializeForJson;
29
29
  private eventToDict;
30
- private toRelativePath;
31
- private resolveImgSrc;
32
- private escapeHtml;
33
- private formatDuration;
34
- private formatTime;
35
- private formatTokenCount;
36
- private extractStepTitle;
37
- private asPoint2;
38
- private asPointFromXY;
39
- private stripTagMarkers;
40
- private groupSteps;
41
- private getStepTokens;
42
- private getFinalStatus;
43
30
  private generateMarkdown;
44
- private generateHtml;
45
31
  }