@autotest/agent 0.0.1 → 0.0.3
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/README.md +43 -27
- package/dist/api/agent_api.d.ts +1 -1
- package/dist/api/agent_api.js +555 -0
- package/dist/api/autotest_agent.d.ts +0 -1
- package/dist/api/autotest_agent.js +205 -0
- package/dist/api/types.d.ts +0 -1
- package/dist/api/types.js +11 -0
- package/dist/autotest-cli.d.ts +1 -1
- package/dist/autotest-cli.js +391 -0
- package/dist/common/case_manager.d.ts +0 -1
- package/dist/common/case_manager.js +91 -0
- package/dist/common/collect_case.d.ts +0 -1
- package/dist/common/collect_case.js +128 -0
- package/dist/common/common_errors.d.ts +0 -1
- package/dist/common/common_errors.js +66 -0
- package/dist/common/config/config_validator.d.ts +0 -1
- package/dist/common/config/config_validator.js +28 -0
- package/dist/common/config/manager.d.ts +0 -1
- package/dist/common/config/manager.js +257 -0
- package/dist/common/config/output.d.ts +0 -1
- package/dist/common/config/output.js +59 -0
- package/dist/common/config/types.d.ts +2243 -2244
- package/dist/common/config/types.js +184 -0
- package/dist/common/dfx/client_factory.d.ts +0 -1
- package/dist/common/dfx/client_factory.js +62 -0
- package/dist/common/dfx/context.d.ts +0 -1
- package/dist/common/dfx/context.js +23 -0
- package/dist/common/dfx/index.d.ts +0 -1
- package/dist/common/dfx/index.js +15 -0
- package/dist/common/dfx/recorder.d.ts +0 -1
- package/dist/common/dfx/recorder.js +191 -0
- package/dist/common/dfx/recording_fetch.d.ts +0 -1
- package/dist/common/dfx/recording_fetch.js +228 -0
- package/dist/common/dfx/source.d.ts +0 -1
- package/dist/common/dfx/source.js +13 -0
- package/dist/common/image_cacher.d.ts +0 -1
- package/dist/common/image_cacher.js +36 -0
- package/dist/common/image_helper.d.ts +0 -1
- package/dist/common/image_helper.js +128 -0
- package/dist/common/image_similarity.d.ts +0 -1
- package/dist/common/image_similarity.js +171 -0
- package/dist/common/llm_cache/cache_transport.d.ts +2 -1
- package/dist/common/llm_cache/cache_transport.js +102 -0
- package/dist/common/llm_cache/prompt_cache.d.ts +53 -0
- package/dist/common/llm_cache/prompt_cache.js +113 -0
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +158 -0
- package/dist/common/model/custom_model.d.ts +0 -1
- package/dist/common/model/custom_model.js +467 -0
- package/dist/common/model/index.d.ts +0 -1
- package/dist/common/model/index.js +5 -0
- package/dist/common/path_utils.d.ts +0 -1
- package/dist/common/path_utils.js +81 -0
- package/dist/common/result_parser.d.ts +0 -1
- package/dist/common/result_parser.js +49 -0
- package/dist/common/usage/token_usage.d.ts +0 -1
- package/dist/common/usage/token_usage.js +117 -0
- package/dist/common/utils.d.ts +0 -1
- package/dist/common/utils.js +125 -0
- package/dist/core/agent/layered_agent/ability_helper.d.ts +0 -1
- package/dist/core/agent/layered_agent/ability_helper.js +125 -0
- package/dist/core/agent/layered_agent/agent.d.ts +0 -1
- package/dist/core/agent/layered_agent/agent.js +37 -0
- package/dist/core/agent/layered_agent/agent_registry.d.ts +0 -1
- package/dist/core/agent/layered_agent/agent_registry.js +75 -0
- package/dist/core/agent/layered_agent/decision.d.ts +0 -1
- package/dist/core/agent/layered_agent/decision.js +478 -0
- package/dist/core/agent/layered_agent/execute_agent/action_handler.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/action_handler.js +155 -0
- package/dist/core/agent/layered_agent/execute_agent/agent_factory.d.ts +1 -2
- package/dist/core/agent/layered_agent/execute_agent/agent_factory.js +41 -0
- package/dist/core/agent/layered_agent/execute_agent/base_agent.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/base_agent.js +112 -0
- package/dist/core/agent/layered_agent/execute_agent/general_agent.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/general_agent.js +207 -0
- package/dist/core/agent/layered_agent/execute_agent/glm_agent.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/glm_agent.js +241 -0
- package/dist/core/agent/layered_agent/execute_agent/i18n.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/i18n.js +34 -0
- package/dist/core/agent/layered_agent/execute_agent/index.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/index.js +67 -0
- package/dist/core/agent/layered_agent/execute_agent/mai_ui_agent.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/mai_ui_agent.js +316 -0
- package/dist/core/agent/layered_agent/execute_agent/mcp_prompts.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/mcp_prompts.js +154 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/general_parser.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/parser/general_parser.js +243 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/glm_parser.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/parser/glm_parser.js +139 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/index.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/parser/index.js +9 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/mai_ui_parser.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/parser/mai_ui_parser.js +94 -0
- package/dist/core/agent/layered_agent/execute_agent/prompts.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/prompts.js +109 -0
- package/dist/core/agent/layered_agent/execute_agent/simple_reporter.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/simple_reporter.js +33 -0
- package/dist/core/agent/layered_agent/execute_agent/utils.d.ts +0 -1
- package/dist/core/agent/layered_agent/execute_agent/utils.js +52 -0
- package/dist/core/agent/report_analyzer_agent/agent.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/agent.js +565 -0
- package/dist/core/agent/report_analyzer_agent/config.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/config.js +22 -0
- package/dist/core/agent/report_analyzer_agent/data_loader.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/data_loader.js +255 -0
- package/dist/core/agent/report_analyzer_agent/guardrails.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/guardrails.js +99 -0
- package/dist/core/agent/report_analyzer_agent/hooks.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/hooks.js +31 -0
- package/dist/core/agent/report_analyzer_agent/index.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/index.js +52 -0
- package/dist/core/agent/report_analyzer_agent/key_steps_builder.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/key_steps_builder.js +42 -0
- package/dist/core/agent/report_analyzer_agent/mapping.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/mapping.js +133 -0
- package/dist/core/agent/report_analyzer_agent/parse.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/parse.js +375 -0
- package/dist/core/agent/report_analyzer_agent/prompt.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/prompt.js +300 -0
- package/dist/core/agent/report_analyzer_agent/report_writer.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/report_writer.js +558 -0
- package/dist/core/agent/report_analyzer_agent/tools.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/tools.js +150 -0
- package/dist/core/agent/report_analyzer_agent/types.d.ts +0 -1
- package/dist/core/agent/report_analyzer_agent/types.js +274 -0
- package/dist/core/agent/rewrite_agent/agent.d.ts +0 -1
- package/dist/core/agent/rewrite_agent/agent.js +209 -0
- package/dist/core/agent/rewrite_agent/guardrails.d.ts +0 -1
- package/dist/core/agent/rewrite_agent/guardrails.js +95 -0
- package/dist/core/agent/rewrite_agent/mapping.d.ts +0 -1
- package/dist/core/agent/rewrite_agent/mapping.js +56 -0
- package/dist/core/agent/rewrite_agent/parse.d.ts +0 -1
- package/dist/core/agent/rewrite_agent/parse.js +121 -0
- package/dist/core/agent/rewrite_agent/types.d.ts +0 -1
- package/dist/core/agent/rewrite_agent/types.js +37 -0
- package/dist/core/agent/single_agent/agent.d.ts +0 -1
- package/dist/core/agent/single_agent/agent.js +798 -0
- package/dist/core/agent/single_agent/hook_manager.d.ts +0 -1
- package/dist/core/agent/single_agent/hook_manager.js +60 -0
- package/dist/core/agent/single_agent/hooks.d.ts +0 -1
- package/dist/core/agent/single_agent/hooks.js +288 -0
- package/dist/core/agent/single_agent/image_utils.d.ts +0 -1
- package/dist/core/agent/single_agent/image_utils.js +159 -0
- package/dist/core/agent/single_agent/scroll_search_agent.d.ts +0 -1
- package/dist/core/agent/single_agent/scroll_search_agent.js +376 -0
- package/dist/core/agent/single_agent/subagent_manager.d.ts +0 -1
- package/dist/core/agent/single_agent/subagent_manager.js +73 -0
- package/dist/core/agent/single_agent/tool_recorder_hook.d.ts +0 -1
- package/dist/core/agent/single_agent/tool_recorder_hook.js +42 -0
- package/dist/core/agent/types.d.ts +0 -1
- package/dist/core/agent/types.js +2 -0
- package/dist/core/agent/utils/message_builder.d.ts +0 -1
- package/dist/core/agent/utils/message_builder.js +138 -0
- package/dist/core/device/device_protocol.d.ts +0 -1
- package/dist/core/device/device_protocol.js +2 -0
- package/dist/core/device/hdc/apps.d.ts +0 -1
- package/dist/core/device/hdc/apps.js +437 -0
- package/dist/core/device/hdc/device.d.ts +0 -1
- package/dist/core/device/hdc/device.js +219 -0
- package/dist/core/device/hdc/index.d.ts +0 -1
- package/dist/core/device/hdc/index.js +31 -0
- package/dist/core/device/hdc/input.d.ts +0 -1
- package/dist/core/device/hdc/input.js +74 -0
- package/dist/core/device/hdc/screenshot.d.ts +0 -1
- package/dist/core/device/hdc/screenshot.js +171 -0
- package/dist/core/device/index.d.ts +0 -1
- package/dist/core/device/index.js +70 -0
- package/dist/core/device/types.d.ts +0 -1
- package/dist/core/device/types.js +2 -0
- package/dist/core/knowledge/knowledge_manager.d.ts +0 -1
- package/dist/core/knowledge/knowledge_manager.js +70 -0
- package/dist/core/knowledge/vectordb.d.ts +0 -1
- package/dist/core/knowledge/vectordb.js +283 -0
- package/dist/core/mcp/adapter_factory.d.ts +0 -1
- package/dist/core/mcp/adapter_factory.js +99 -0
- package/dist/core/mcp/android_adapter.d.ts +1 -2
- package/dist/core/mcp/android_adapter.js +286 -0
- package/dist/core/mcp/base_adapter.d.ts +0 -1
- package/dist/core/mcp/base_adapter.js +86 -0
- package/dist/core/mcp/harmony_hdc_adapter.d.ts +9 -1
- package/dist/core/mcp/harmony_hdc_adapter.js +782 -0
- package/dist/core/mcp/ios_adapter.d.ts +1 -2
- package/dist/core/mcp/ios_adapter.js +286 -0
- package/dist/core/mcp/local_tools.d.ts +0 -1
- package/dist/core/mcp/local_tools.js +41 -0
- package/dist/core/mcp/mcp_tools.d.ts +0 -1
- package/dist/core/mcp/mcp_tools.js +382 -0
- package/dist/core/mcp/types.d.ts +0 -1
- package/dist/core/mcp/types.js +6 -0
- package/dist/core/memory/compressed_session.d.ts +0 -1
- package/dist/core/memory/compressed_session.js +182 -0
- package/dist/core/memory/context_compressor.d.ts +0 -1
- package/dist/core/memory/context_compressor.js +176 -0
- package/dist/core/memory/index.d.ts +0 -1
- package/dist/core/memory/index.js +22 -0
- package/dist/core/memory/memory_manager.d.ts +0 -1
- package/dist/core/memory/memory_manager.js +28 -0
- package/dist/core/memory/reflector.d.ts +0 -1
- package/dist/core/memory/reflector.js +95 -0
- package/dist/core/memory/session_factory.d.ts +0 -1
- package/dist/core/memory/session_factory.js +29 -0
- package/dist/core/memory/tool_player.d.ts +0 -1
- package/dist/core/memory/tool_player.js +225 -0
- package/dist/core/memory/tool_recorder.d.ts +0 -1
- package/dist/core/memory/tool_recorder.js +126 -0
- package/dist/core/preprocessor/task_splitter.d.ts +0 -1
- package/dist/core/preprocessor/task_splitter.js +112 -0
- package/dist/core/prompt/prompt_loader.d.ts +0 -1
- package/dist/core/prompt/prompt_loader.js +313 -0
- package/dist/core/skill/skill_manager.d.ts +0 -1
- package/dist/core/skill/skill_manager.js +299 -0
- package/dist/data_types/action.d.ts +0 -1
- package/dist/data_types/action.js +2 -0
- package/dist/data_types/agent.d.ts +0 -1
- package/dist/data_types/agent.js +2 -0
- package/dist/data_types/device.d.ts +0 -1
- package/dist/data_types/device.js +2 -0
- package/dist/data_types/index.d.ts +0 -1
- package/dist/data_types/index.js +6 -0
- package/dist/data_types/report.d.ts +0 -1
- package/dist/data_types/report.js +6 -0
- package/dist/data_types/task.d.ts +0 -1
- package/dist/data_types/task.js +2 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +164 -1
- package/dist/loop/cli.d.ts +0 -1
- package/dist/loop/cli.js +127 -0
- package/dist/loop/orchestrator.d.ts +0 -1
- package/dist/loop/orchestrator.js +314 -0
- package/dist/loop/result_writer.d.ts +0 -1
- package/dist/loop/result_writer.js +260 -0
- package/dist/loop/types.d.ts +0 -1
- package/dist/loop/types.js +82 -0
- package/dist/mcp-server/server.d.ts +0 -1
- package/dist/mcp-server/server.js +341 -0
- package/dist/mcp-server/types.d.ts +283 -118
- package/dist/mcp-server/types.js +202 -0
- package/dist/reporter/batch_summary.d.ts +0 -1
- package/dist/reporter/batch_summary.js +197 -0
- package/dist/reporter/generator.d.ts +0 -1
- package/dist/reporter/generator.js +772 -0
- package/dist/reporter/types.d.ts +14 -15
- package/dist/reporter/types.js +44 -0
- package/dist/tools/batch_runner.d.ts +1 -1
- package/dist/tools/batch_runner.js +731 -0
- package/package.json +5 -3
- package/dist/common/config/config.yaml +0 -113
- package/dist/hypium_generator/generator.d.ts +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autotest/agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AutoTest Agent — AI 驱动的自动化测试执行代理,支持 HarmonyOS/Android/iOS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,14 +19,16 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"bin": {
|
|
22
|
-
"autotest": "dist/autotest-cli.js"
|
|
22
|
+
"autotest": "dist/autotest-cli.js",
|
|
23
|
+
"autotest-batch": "dist/tools/batch_runner.js"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"dist"
|
|
26
27
|
],
|
|
27
28
|
"scripts": {
|
|
28
|
-
"build": "tsc && copyfiles -u 1 src/common/config/config.yaml \"src/core/prompt/templates/**/*\" \"src/core/agent/report_analyzer_agent/prompts/*.md\" \"src/core/agent/rewrite_agent/prompts/*.md\" dist",
|
|
29
|
+
"build": "tsc --noCheck && tsc -p tsconfig.emit.json && copyfiles -u 1 src/common/config/config.yaml \"src/core/prompt/templates/**/*\" \"src/core/agent/report_analyzer_agent/prompts/*.md\" \"src/core/agent/rewrite_agent/prompts/*.md\" dist",
|
|
29
30
|
"build:obfuscate": "npm run build && node scripts/bundle-obfuscate.js",
|
|
31
|
+
"prepack": "npm run build",
|
|
30
32
|
"caseTest": "node src/tools/runner.mjs",
|
|
31
33
|
"batchCaseTest": "node src/tools/runner.mjs",
|
|
32
34
|
"test": "vitest run",
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
model:
|
|
2
|
-
unified:
|
|
3
|
-
name: "qwen3.7-plus"
|
|
4
|
-
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
|
5
|
-
api_key: "YOUR_API_KEY_HERE"
|
|
6
|
-
provider: "openai"
|
|
7
|
-
temperature: 0.4
|
|
8
|
-
top_p: 0.85
|
|
9
|
-
frequency_penalty: 0.0
|
|
10
|
-
repetition_penalty: 1.1
|
|
11
|
-
presence_penalty: 0.0
|
|
12
|
-
enable_thinking: false
|
|
13
|
-
max_tokens: 2048
|
|
14
|
-
timeout: 600
|
|
15
|
-
max_retries: 3
|
|
16
|
-
prompt_type: "v2.0"
|
|
17
|
-
extra_headers:
|
|
18
|
-
Chat-Id: "autotest"
|
|
19
|
-
|
|
20
|
-
execute:
|
|
21
|
-
name: "gui-plus-2026-02-26"
|
|
22
|
-
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
|
23
|
-
api_key: "YOUR_API_KEY_HERE"
|
|
24
|
-
provider: "mai-ui"
|
|
25
|
-
max_steps: 3
|
|
26
|
-
|
|
27
|
-
decision:
|
|
28
|
-
name: "qwen3.7-plus"
|
|
29
|
-
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1"
|
|
30
|
-
api_key: "YOUR_API_KEY_HERE"
|
|
31
|
-
provider: "openai"
|
|
32
|
-
temperature: 0.0
|
|
33
|
-
top_p: 0.1
|
|
34
|
-
frequency_penalty: 0.0
|
|
35
|
-
|
|
36
|
-
verify:
|
|
37
|
-
name: ""
|
|
38
|
-
base_url: ""
|
|
39
|
-
api_key: ""
|
|
40
|
-
provider: "openai"
|
|
41
|
-
temperature: 0.0
|
|
42
|
-
top_p: 0.1
|
|
43
|
-
frequency_penalty: 0.0
|
|
44
|
-
|
|
45
|
-
agent:
|
|
46
|
-
mode: "single"
|
|
47
|
-
max_steps: 50
|
|
48
|
-
lang: "zh"
|
|
49
|
-
enable_preprocess: false
|
|
50
|
-
enable_hypium_generation: false
|
|
51
|
-
stream_log: false
|
|
52
|
-
debug_mode: null
|
|
53
|
-
adapter_class: null
|
|
54
|
-
action_interval: 1.0
|
|
55
|
-
max_history_image: 3
|
|
56
|
-
screenshot_max_pixels: 1500
|
|
57
|
-
include_previous_screenshot: true
|
|
58
|
-
previous_screenshot_compress_ratio: 0.7
|
|
59
|
-
enable_cache: true
|
|
60
|
-
|
|
61
|
-
log:
|
|
62
|
-
level: "INFO"
|
|
63
|
-
device_log_level: "info"
|
|
64
|
-
verbose: true
|
|
65
|
-
max_log_size: 10
|
|
66
|
-
max_log_file_num: 5
|
|
67
|
-
enable_console_log: true
|
|
68
|
-
enable_file_log: true
|
|
69
|
-
|
|
70
|
-
output:
|
|
71
|
-
json_output: false
|
|
72
|
-
report_dir: null
|
|
73
|
-
root_dir: "reports"
|
|
74
|
-
report_name: "autotest_report"
|
|
75
|
-
embed_images: false
|
|
76
|
-
embed_max_pixels: 800
|
|
77
|
-
|
|
78
|
-
device:
|
|
79
|
-
device_sn: null
|
|
80
|
-
ip: "127.0.0.1"
|
|
81
|
-
port: 8710
|
|
82
|
-
device_serial: ""
|
|
83
|
-
hdc_path: "hdc"
|
|
84
|
-
reset_device: true # true=回主页+清全部后台, false=跳过, 列表=只 force-stop 指定包名
|
|
85
|
-
screen_always_on: true
|
|
86
|
-
operation_mode: "phone"
|
|
87
|
-
screenshot_quality: 90
|
|
88
|
-
screenshot_max_width: 1500
|
|
89
|
-
|
|
90
|
-
network:
|
|
91
|
-
timeout: 600
|
|
92
|
-
max_retries: 3
|
|
93
|
-
no_proxy: ""
|
|
94
|
-
|
|
95
|
-
analyze:
|
|
96
|
-
model_name: ""
|
|
97
|
-
base_url: ""
|
|
98
|
-
api_key: ""
|
|
99
|
-
temperature: 0.1
|
|
100
|
-
max_tokens: 4096
|
|
101
|
-
timeout: 90
|
|
102
|
-
max_retries: 3
|
|
103
|
-
enable_multimodal: true
|
|
104
|
-
max_screenshot_pixels: 800
|
|
105
|
-
max_key_steps: 5
|
|
106
|
-
only_fail: true
|
|
107
|
-
|
|
108
|
-
knowledge:
|
|
109
|
-
apps:
|
|
110
|
-
vmall:
|
|
111
|
-
keywords: ["华为商城", "vmall", "com.huawei.hmos.vmall"]
|
|
112
|
-
md_file: "vmall.md"
|
|
113
|
-
label: "华为商城"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Report-to-Hypium converter.
|
|
3
|
-
*
|
|
4
|
-
* Turns a successful dynamic AutoTestAgent report into a reusable Hypium
|
|
5
|
-
* regression script plus a JSON config. It prefers semantic locators from the
|
|
6
|
-
* captured layout and falls back to normalized coordinates when the UI tree
|
|
7
|
-
* does not expose a stable target.
|
|
8
|
-
*
|
|
9
|
-
* An LLM (via {@link LLMCaller}) can be used to generate the Python script from
|
|
10
|
-
* the extracted actions; when no LLM is configured, a deterministic template is
|
|
11
|
-
* used instead.
|
|
12
|
-
*/
|
|
13
|
-
import { LLMCaller } from '../common/model/custom_model';
|
|
14
|
-
import type { ModelConfig } from '../common/config/types';
|
|
15
|
-
export interface HypiumGenerationResult {
|
|
16
|
-
reportDir: string;
|
|
17
|
-
scriptPath: string;
|
|
18
|
-
configPath: string;
|
|
19
|
-
manifestPath: string | null;
|
|
20
|
-
actionCount: number;
|
|
21
|
-
assertionCount: number;
|
|
22
|
-
}
|
|
23
|
-
export interface HypiumGenerationOptions {
|
|
24
|
-
outputDir?: string;
|
|
25
|
-
copyToReportDir?: boolean;
|
|
26
|
-
llmCaller?: LLMCaller;
|
|
27
|
-
modelConfig?: ModelConfig;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Generate a Hypium regression script + config from a report JSON file.
|
|
31
|
-
*/
|
|
32
|
-
export declare function generateHypiumFromReport(reportJsonPath: string, options?: HypiumGenerationOptions): Promise<HypiumGenerationResult>;
|
|
33
|
-
/**
|
|
34
|
-
* Best-effort Hypium generation from a saved report, gated by the
|
|
35
|
-
* AUTOTEST_GENERATE_HYPIUM environment variable.
|
|
36
|
-
*/
|
|
37
|
-
export declare function maybeGenerateHypiumFromSavedReport(savedFiles: Record<string, string>, status: string | null, options?: HypiumGenerationOptions): Promise<HypiumGenerationResult | null>;
|
|
38
|
-
//# sourceMappingURL=generator.d.ts.map
|