@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.
@@ -58,7 +58,10 @@ agent:
58
58
  debug_mode: null
59
59
  parse_mode: "native"
60
60
  tool_provider: "device"
61
- action_interval: 1.5
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: true
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
- /** Code-decided: should this action trigger recording?
43
- * Primary: model marks "(动态场景)" in the log → record
44
- * Override: model explicitly sets record=true → record */
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;
@@ -71,3 +71,4 @@ export interface JudgeResult {
71
71
  reason: string;
72
72
  }
73
73
  export declare const judge: (conclusion: string) => Promise<string>;
74
+ export declare const request_help: (problem: string, context?: string) => Promise<string>;
@@ -0,0 +1 @@
1
+ export declare const AGENT_VERSION = "0.0.20";