@autotest/agent 0.0.17 → 0.0.20
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/autotest-cli.js +1 -1
- package/dist/common/config/config.yaml +5 -2
- package/dist/core/agent/single_agent/agent.d.ts +8 -3
- package/dist/core/mcp/harmony_hdc_adapter.d.ts +4 -0
- package/dist/core/mcp/mcp_tools.d.ts +1 -0
- package/dist/generated/version.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/reporter/generator.d.ts +2 -1
- package/dist/tools/batch_runner.js +1 -1
- package/dist/tools/case_runner/runner.js +1 -1
- package/dist/tools/config/config_tool.js +1 -1
- package/dist/tools/prompt_compare/compare_runner.js +1 -1
- package/package.json +8 -3
|
@@ -58,7 +58,10 @@ agent:
|
|
|
58
58
|
debug_mode: null
|
|
59
59
|
parse_mode: "native"
|
|
60
60
|
tool_provider: "device"
|
|
61
|
-
action_interval:
|
|
61
|
+
action_interval: 0.5
|
|
62
|
+
# 录屏开关:开→动态场景步走雪碧图(录屏抽帧拼图发模型);关→所有步走截图(不录屏、不拼雪碧图)。
|
|
63
|
+
# 不同模型对雪碧图处理能力不同,处理不好的模型设 false。
|
|
64
|
+
use_recording_mode: true
|
|
62
65
|
max_history_image: 3
|
|
63
66
|
screenshot_max_pixels: 1500
|
|
64
67
|
include_previous_screenshot: true
|
|
@@ -71,7 +74,7 @@ agent:
|
|
|
71
74
|
prompt_version: ""
|
|
72
75
|
max_loops: 0
|
|
73
76
|
enable_cache: true
|
|
74
|
-
screenshot_on_tool_end:
|
|
77
|
+
screenshot_on_tool_end: false
|
|
75
78
|
verbose: false
|
|
76
79
|
json_output: false
|
|
77
80
|
apirec: false
|
|
@@ -39,9 +39,14 @@ export declare class SingleAgent {
|
|
|
39
39
|
private hasExpectedResults;
|
|
40
40
|
/** Build the hard constraint string for expected result verification, or empty if none. */
|
|
41
41
|
private buildQuotedTextConstraint;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
/** Per-step recording decision. Returns the trigger reason ('' = don't record):
|
|
43
|
+
* - 'agent_marker': model marked "(动态场景)" in the action log
|
|
44
|
+
* - 'agent_record': model explicitly set record=true
|
|
45
|
+
* - 'task_regex': coarse task-level TRANSIENT_RE matched the task text (safety net)
|
|
46
|
+
* Conditions are OR'd — any one triggers recording. The coarse task-level regex is
|
|
47
|
+
* kept as a safety net; the model's per-step judgment (marker / record=true) is
|
|
48
|
+
* honored even when the task text misses the regex vocabulary (fixes the false
|
|
49
|
+
* negative where a real transient's description lacks toast/加载/刷新 keywords). */
|
|
45
50
|
private shouldRecordAction;
|
|
46
51
|
private injectScreenshot;
|
|
47
52
|
private extractResult;
|
|
@@ -51,6 +51,10 @@ export declare class HarmonyHdcAdapter extends MCPDeviceAdapterBase {
|
|
|
51
51
|
private extractPoint;
|
|
52
52
|
private keyNameToCode;
|
|
53
53
|
private clearRecentTasks;
|
|
54
|
+
/** 查询设备剩余后台应用(aa dump -l)并逐一 force-stop,跳过 keepalive 白名单。 */
|
|
55
|
+
private forceStopRemainingApps;
|
|
56
|
+
/** 解析 hypium 风格 delay(秒,操作后等待):缺省取 defaultSec,加 60s 安全上限防误传超大值。 */
|
|
57
|
+
private resolveDelay;
|
|
54
58
|
private pinchGesture;
|
|
55
59
|
private rotateGesture;
|
|
56
60
|
private startToastListener;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AGENT_VERSION = "0.0.20";
|