@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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppConfigSchema = exports.AgentConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ModelConfigSchema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string().default(''),
|
|
7
|
+
baseUrl: zod_1.z.string().default(''),
|
|
8
|
+
apiKey: zod_1.z.string().default(''),
|
|
9
|
+
provider: zod_1.z.string().default('openai'),
|
|
10
|
+
apiVersion: zod_1.z.string().default(''),
|
|
11
|
+
// Aligned with python config/types.py: temperature 0.4, topP 0.85, maxTokens 1024
|
|
12
|
+
temperature: zod_1.z.number().min(0).max(2).default(0.4),
|
|
13
|
+
topP: zod_1.z.number().default(0.85),
|
|
14
|
+
frequencyPenalty: zod_1.z.number().default(0.0),
|
|
15
|
+
repetitionPenalty: zod_1.z.number().default(1.0),
|
|
16
|
+
presencePenalty: zod_1.z.number().default(0.0),
|
|
17
|
+
// Tri-state: null = skip (use model default), true/false = explicit (vLLM chat_template_kwargs)
|
|
18
|
+
enableThinking: zod_1.z.boolean().nullable().default(null),
|
|
19
|
+
maxTokens: zod_1.z.number().int().default(1024),
|
|
20
|
+
timeout: zod_1.z.number().int().default(600),
|
|
21
|
+
maxRetries: zod_1.z.number().int().default(3),
|
|
22
|
+
extraBody: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable().optional(),
|
|
23
|
+
extraHeaders: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable().optional(),
|
|
24
|
+
promptType: zod_1.z.string().default(''),
|
|
25
|
+
});
|
|
26
|
+
const ModelGroupConfigSchema = zod_1.z.object({
|
|
27
|
+
unified: ModelConfigSchema.default({}),
|
|
28
|
+
execute: ModelConfigSchema.default({}),
|
|
29
|
+
decision: ModelConfigSchema.default({}),
|
|
30
|
+
verify: ModelConfigSchema.default({}),
|
|
31
|
+
// Aligned with python ModelGroupConfig: per-agent model overrides
|
|
32
|
+
reflection: ModelConfigSchema.optional(),
|
|
33
|
+
analyze: ModelConfigSchema.optional(),
|
|
34
|
+
extraModels: zod_1.z.record(zod_1.z.string(), ModelConfigSchema).default({}),
|
|
35
|
+
});
|
|
36
|
+
exports.AgentConfigSchema = zod_1.z.object({
|
|
37
|
+
mode: zod_1.z.enum(['single', 'hypium', 'layered']).default('single'),
|
|
38
|
+
// Aligned with python: maxSteps 50 (was 100)
|
|
39
|
+
maxSteps: zod_1.z.number().int().positive().default(50),
|
|
40
|
+
lang: zod_1.z.enum(['zh', 'en']).default('zh'),
|
|
41
|
+
enablePreprocess: zod_1.z.boolean().default(false),
|
|
42
|
+
streamLog: zod_1.z.boolean().default(false),
|
|
43
|
+
debugMode: zod_1.z.enum(['file', 'memory']).nullable().optional(),
|
|
44
|
+
actionInterval: zod_1.z.number().default(1.5),
|
|
45
|
+
maxHistoryImage: zod_1.z.number().int().default(3),
|
|
46
|
+
// Deprecated: kept until agent-core migration to parseMode/toolProvider
|
|
47
|
+
adapterType: zod_1.z.string().default('text_tag'),
|
|
48
|
+
stepEndWaitTime: zod_1.z.number().default(0.0),
|
|
49
|
+
cleanRecentTask: zod_1.z.boolean().default(false),
|
|
50
|
+
systemPrompt: zod_1.z.string().nullable().optional(),
|
|
51
|
+
verbose: zod_1.z.boolean().default(false),
|
|
52
|
+
jsonOutput: zod_1.z.boolean().default(false),
|
|
53
|
+
apirec: zod_1.z.boolean().default(false),
|
|
54
|
+
defaultTask: zod_1.z.string().default(''),
|
|
55
|
+
promptVersion: zod_1.z.string().default(''),
|
|
56
|
+
maxResultRetries: zod_1.z.number().int().default(2),
|
|
57
|
+
// Aligned with python: includePreviousScreenshot True — inject previous screenshot
|
|
58
|
+
// with action marker so LLM can see where its last click landed and self-correct.
|
|
59
|
+
includePreviousScreenshot: zod_1.z.boolean().default(true),
|
|
60
|
+
previousScreenshotCompressRatio: zod_1.z.number().default(0.7),
|
|
61
|
+
enableCache: zod_1.z.boolean().default(true),
|
|
62
|
+
// --- New fields aligned with python AgentConfig ---
|
|
63
|
+
parseMode: zod_1.z.string().default('native'),
|
|
64
|
+
toolProvider: zod_1.z.string().default('device'),
|
|
65
|
+
promptName: zod_1.z.string().default('single_v2.0'),
|
|
66
|
+
role: zod_1.z.string().nullable().default(null),
|
|
67
|
+
sessionType: zod_1.z.string().default('compressed'),
|
|
68
|
+
maxLoops: zod_1.z.number().int().default(0),
|
|
69
|
+
maxHistoryActions: zod_1.z.number().int().default(10),
|
|
70
|
+
screenshotMaxPixels: zod_1.z.number().int().default(1500),
|
|
71
|
+
screenshotOnToolEnd: zod_1.z.boolean().default(true),
|
|
72
|
+
minimalInject: zod_1.z.boolean().default(false),
|
|
73
|
+
enableAttributionAnalysis: zod_1.z.boolean().default(false),
|
|
74
|
+
});
|
|
75
|
+
/**
|
|
76
|
+
* Agent group config (aligned with python AgentGroupConfig).
|
|
77
|
+
* `unified` is the default agent config; `extraAgents` are per-role overrides.
|
|
78
|
+
* Backward compat: old flat `agent: { mode: ... }` config is auto-migrated
|
|
79
|
+
* to `{ unified: { mode: ... } }` by ConfigManager.
|
|
80
|
+
*/
|
|
81
|
+
const AgentGroupConfigSchema = zod_1.z.object({
|
|
82
|
+
unified: exports.AgentConfigSchema.default({}),
|
|
83
|
+
extraAgents: zod_1.z.record(zod_1.z.string(), exports.AgentConfigSchema).default({}),
|
|
84
|
+
});
|
|
85
|
+
const LogConfigSchema = zod_1.z.object({
|
|
86
|
+
// Aligned with python: level DEBUG (was INFO)
|
|
87
|
+
level: zod_1.z.string().default('DEBUG'),
|
|
88
|
+
deviceLogLevel: zod_1.z.string().default('info'),
|
|
89
|
+
verbose: zod_1.z.boolean().default(false),
|
|
90
|
+
maxLogSize: zod_1.z.number().int().default(10),
|
|
91
|
+
maxLogFileNum: zod_1.z.number().int().default(5),
|
|
92
|
+
enableConsoleLog: zod_1.z.boolean().default(true),
|
|
93
|
+
enableFileLog: zod_1.z.boolean().default(true),
|
|
94
|
+
});
|
|
95
|
+
const OutputConfigSchema = zod_1.z.object({
|
|
96
|
+
jsonOutput: zod_1.z.boolean().default(false),
|
|
97
|
+
// Aligned with python: default to <date>/<time> subdir (was nullable.optional)
|
|
98
|
+
// Preprocess null→undefined so .default() kicks in (config.yaml may have report_dir: null)
|
|
99
|
+
reportDir: zod_1.z.preprocess((v) => (v === null ? undefined : v), zod_1.z.string().default(() => {
|
|
100
|
+
const n = new Date();
|
|
101
|
+
const d = `${n.getFullYear()}${String(n.getMonth() + 1).padStart(2, '0')}${String(n.getDate()).padStart(2, '0')}`;
|
|
102
|
+
const t = `${String(n.getHours()).padStart(2, '0')}${String(n.getMinutes()).padStart(2, '0')}${String(n.getSeconds()).padStart(2, '0')}`;
|
|
103
|
+
return `${d}/${t}`;
|
|
104
|
+
})),
|
|
105
|
+
rootDir: zod_1.z.string().default('reports'),
|
|
106
|
+
reportName: zod_1.z.string().default('autotest_report'),
|
|
107
|
+
embedImages: zod_1.z.boolean().default(false),
|
|
108
|
+
embedMaxPixels: zod_1.z.number().int().default(800),
|
|
109
|
+
});
|
|
110
|
+
const DeviceConfigSchema = zod_1.z.object({
|
|
111
|
+
deviceSn: zod_1.z.string().nullable().default(null),
|
|
112
|
+
ip: zod_1.z.string().default('127.0.0.1'),
|
|
113
|
+
port: zod_1.z.number().int().min(1).max(65535).default(8710),
|
|
114
|
+
hdcPath: zod_1.z.string().default('hdc'),
|
|
115
|
+
// Aligned with python: reset_device supports bool | list[str]
|
|
116
|
+
// true: go home + clear all recent tasks; false: skip; list: force-stop specific packages
|
|
117
|
+
resetDevice: zod_1.z.union([zod_1.z.boolean(), zod_1.z.array(zod_1.z.string())]).default(true),
|
|
118
|
+
screenAlwaysOn: zod_1.z.boolean().default(true),
|
|
119
|
+
deviceImpl: zod_1.z.string().default('HDCDevice'),
|
|
120
|
+
appConfig: zod_1.z.string().default(''),
|
|
121
|
+
operationMode: zod_1.z.enum(['phone', 'pc']).default('phone'),
|
|
122
|
+
});
|
|
123
|
+
const NetworkConfigSchema = zod_1.z.object({
|
|
124
|
+
timeout: zod_1.z.number().int().default(600),
|
|
125
|
+
maxRetries: zod_1.z.number().int().default(3),
|
|
126
|
+
noProxy: zod_1.z.string().default(''),
|
|
127
|
+
});
|
|
128
|
+
const AnalyzerConfigSchema = zod_1.z.object({
|
|
129
|
+
modelName: zod_1.z.string().default(''),
|
|
130
|
+
baseUrl: zod_1.z.string().default(''),
|
|
131
|
+
apiKey: zod_1.z.string().default(''),
|
|
132
|
+
temperature: zod_1.z.number().default(0.0),
|
|
133
|
+
maxTokens: zod_1.z.number().int().default(4096),
|
|
134
|
+
timeout: zod_1.z.number().int().default(90),
|
|
135
|
+
maxRetries: zod_1.z.number().int().default(3),
|
|
136
|
+
enableMultimodal: zod_1.z.boolean().default(true),
|
|
137
|
+
maxKeySteps: zod_1.z.number().int().default(5),
|
|
138
|
+
onlyFail: zod_1.z.boolean().default(true),
|
|
139
|
+
maxTurns: zod_1.z.number().int().default(8),
|
|
140
|
+
outputFormat: zod_1.z.string().default('all'),
|
|
141
|
+
});
|
|
142
|
+
const AppKnowledgeConfigSchema = zod_1.z.object({
|
|
143
|
+
keywords: zod_1.z.array(zod_1.z.string()).default([]),
|
|
144
|
+
mdFile: zod_1.z.string().default(''),
|
|
145
|
+
label: zod_1.z.string().default(''),
|
|
146
|
+
});
|
|
147
|
+
const KnowledgeConfigSchema = zod_1.z.object({
|
|
148
|
+
apps: zod_1.z.record(zod_1.z.string(), AppKnowledgeConfigSchema).default({}),
|
|
149
|
+
});
|
|
150
|
+
// --- New optional config schemas aligned with python ---
|
|
151
|
+
const CompressionConfigSchema = zod_1.z.object({
|
|
152
|
+
enabled: zod_1.z.boolean().default(true),
|
|
153
|
+
maxTokens: zod_1.z.number().int().default(7000),
|
|
154
|
+
maxRecentMessages: zod_1.z.number().int().default(6),
|
|
155
|
+
});
|
|
156
|
+
const ReflectionConfigSchema = zod_1.z.object({
|
|
157
|
+
enabled: zod_1.z.boolean().default(true),
|
|
158
|
+
initialStep: zod_1.z.number().int().default(25),
|
|
159
|
+
interval: zod_1.z.number().int().default(15),
|
|
160
|
+
recentMessages: zod_1.z.number().int().default(10),
|
|
161
|
+
});
|
|
162
|
+
const DetectionConfigSchema = zod_1.z.object({
|
|
163
|
+
enabled: zod_1.z.boolean().default(false),
|
|
164
|
+
});
|
|
165
|
+
const DebugConfigSchema = zod_1.z.object({
|
|
166
|
+
promptScanPaths: zod_1.z.array(zod_1.z.string()).default([]),
|
|
167
|
+
});
|
|
168
|
+
exports.AppConfigSchema = zod_1.z.object({
|
|
169
|
+
model: ModelGroupConfigSchema.default({}),
|
|
170
|
+
agent: AgentGroupConfigSchema.default({}),
|
|
171
|
+
log: LogConfigSchema.default({}),
|
|
172
|
+
output: OutputConfigSchema.default({}),
|
|
173
|
+
device: DeviceConfigSchema.default({}),
|
|
174
|
+
network: NetworkConfigSchema.default({}),
|
|
175
|
+
analyze: AnalyzerConfigSchema.default({}),
|
|
176
|
+
knowledge: KnowledgeConfigSchema.default({}),
|
|
177
|
+
// --- New optional top-level configs aligned with python ---
|
|
178
|
+
contextCompression: CompressionConfigSchema.optional(),
|
|
179
|
+
reflection: ReflectionConfigSchema.optional(),
|
|
180
|
+
detection: DetectionConfigSchema.optional(),
|
|
181
|
+
debug: DebugConfigSchema.optional(),
|
|
182
|
+
agentRoles: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
183
|
+
extensions: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
184
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.createLLMClient = createLLMClient;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
const openai_1 = require("@ai-sdk/openai");
|
|
39
|
+
const recorder_1 = require("./recorder");
|
|
40
|
+
const recording_fetch_1 = require("./recording_fetch");
|
|
41
|
+
function createLLMClient(config, source, options = {}) {
|
|
42
|
+
const { runId = null, reportDir, maxRecords } = options;
|
|
43
|
+
const modelConfig = config.model.unified;
|
|
44
|
+
const dbPath = reportDir
|
|
45
|
+
? path.join(reportDir, 'api_records.json')
|
|
46
|
+
: path.join(process.cwd(), 'logs', 'api_records.json');
|
|
47
|
+
const recorder = new recorder_1.LLMTrafficRecorder(dbPath, maxRecords);
|
|
48
|
+
recorder.initStore();
|
|
49
|
+
const recordingFetch = (0, recording_fetch_1.createRecordingFetch)(globalThis.fetch, recorder, source, runId);
|
|
50
|
+
const provider = (0, openai_1.createOpenAI)({
|
|
51
|
+
baseURL: modelConfig.baseUrl,
|
|
52
|
+
apiKey: modelConfig.apiKey,
|
|
53
|
+
fetch: recordingFetch,
|
|
54
|
+
});
|
|
55
|
+
const modelSettings = {
|
|
56
|
+
temperature: modelConfig.temperature,
|
|
57
|
+
topP: modelConfig.topP,
|
|
58
|
+
frequencyPenalty: modelConfig.frequencyPenalty,
|
|
59
|
+
maxTokens: modelConfig.maxTokens,
|
|
60
|
+
};
|
|
61
|
+
return { provider, modelSettings, recorder, recordingFetch };
|
|
62
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setStepNumber = setStepNumber;
|
|
4
|
+
exports.getStepNumber = getStepNumber;
|
|
5
|
+
exports.clearStepNumber = clearStepNumber;
|
|
6
|
+
const node_async_hooks_1 = require("node:async_hooks");
|
|
7
|
+
const stepNumberStorage = new node_async_hooks_1.AsyncLocalStorage();
|
|
8
|
+
let globalStepNumber = null;
|
|
9
|
+
function setStepNumber(step) {
|
|
10
|
+
globalStepNumber = step;
|
|
11
|
+
stepNumberStorage.enterWith(step);
|
|
12
|
+
}
|
|
13
|
+
function getStepNumber() {
|
|
14
|
+
const store = stepNumberStorage.getStore();
|
|
15
|
+
if (store !== undefined) {
|
|
16
|
+
return store;
|
|
17
|
+
}
|
|
18
|
+
return globalStepNumber;
|
|
19
|
+
}
|
|
20
|
+
function clearStepNumber() {
|
|
21
|
+
globalStepNumber = null;
|
|
22
|
+
stepNumberStorage.enterWith(null);
|
|
23
|
+
}
|
|
@@ -3,4 +3,3 @@ export { createRecordingFetch, type FetchLike } from './recording_fetch';
|
|
|
3
3
|
export { setStepNumber, getStepNumber, clearStepNumber } from './context';
|
|
4
4
|
export { RecordingSource } from './source';
|
|
5
5
|
export { createLLMClient, type ModelSettings, type CreateLLMClientOptions, type LLMClientBundle, } from './client_factory';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createLLMClient = exports.RecordingSource = exports.clearStepNumber = exports.getStepNumber = exports.setStepNumber = exports.createRecordingFetch = exports.LLMTrafficRecorder = void 0;
|
|
4
|
+
var recorder_1 = require("./recorder");
|
|
5
|
+
Object.defineProperty(exports, "LLMTrafficRecorder", { enumerable: true, get: function () { return recorder_1.LLMTrafficRecorder; } });
|
|
6
|
+
var recording_fetch_1 = require("./recording_fetch");
|
|
7
|
+
Object.defineProperty(exports, "createRecordingFetch", { enumerable: true, get: function () { return recording_fetch_1.createRecordingFetch; } });
|
|
8
|
+
var context_1 = require("./context");
|
|
9
|
+
Object.defineProperty(exports, "setStepNumber", { enumerable: true, get: function () { return context_1.setStepNumber; } });
|
|
10
|
+
Object.defineProperty(exports, "getStepNumber", { enumerable: true, get: function () { return context_1.getStepNumber; } });
|
|
11
|
+
Object.defineProperty(exports, "clearStepNumber", { enumerable: true, get: function () { return context_1.clearStepNumber; } });
|
|
12
|
+
var source_1 = require("./source");
|
|
13
|
+
Object.defineProperty(exports, "RecordingSource", { enumerable: true, get: function () { return source_1.RecordingSource; } });
|
|
14
|
+
var client_factory_1 = require("./client_factory");
|
|
15
|
+
Object.defineProperty(exports, "createLLMClient", { enumerable: true, get: function () { return client_factory_1.createLLMClient; } });
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.LLMTrafficRecorder = void 0;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const logger_1 = require("../logger");
|
|
40
|
+
class LLMTrafficRecorder {
|
|
41
|
+
dbPath;
|
|
42
|
+
maxRecords;
|
|
43
|
+
records = [];
|
|
44
|
+
nextId = 1;
|
|
45
|
+
initialized = false;
|
|
46
|
+
constructor(dbPath, maxRecords = 10000) {
|
|
47
|
+
this.dbPath = dbPath ?? path.join(process.cwd(), 'logs', 'llm_traffic.json');
|
|
48
|
+
this.maxRecords = maxRecords;
|
|
49
|
+
}
|
|
50
|
+
initStore() {
|
|
51
|
+
const dir = path.dirname(this.dbPath);
|
|
52
|
+
if (!fs.existsSync(dir)) {
|
|
53
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
54
|
+
}
|
|
55
|
+
if (fs.existsSync(this.dbPath)) {
|
|
56
|
+
try {
|
|
57
|
+
const raw = fs.readFileSync(this.dbPath, 'utf-8');
|
|
58
|
+
const parsed = JSON.parse(raw);
|
|
59
|
+
if (Array.isArray(parsed)) {
|
|
60
|
+
this.records = parsed;
|
|
61
|
+
this.nextId = parsed.reduce((max, rec) => (rec.id > max ? rec.id : max), 0) + 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
logger_1.logger.warn(`LLMTrafficRecorder: failed to load existing store: ${e}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
this.initialized = true;
|
|
69
|
+
logger_1.logger.info(`LLM traffic recorder initialized: ${this.dbPath}`);
|
|
70
|
+
}
|
|
71
|
+
record(params) {
|
|
72
|
+
if (!this.initialized)
|
|
73
|
+
this.initStore();
|
|
74
|
+
try {
|
|
75
|
+
const record = {
|
|
76
|
+
id: this.nextId++,
|
|
77
|
+
runId: params.runId ?? null,
|
|
78
|
+
stepNumber: params.stepNumber ?? null,
|
|
79
|
+
timestamp: new Date().toISOString(),
|
|
80
|
+
model: params.model,
|
|
81
|
+
source: params.source,
|
|
82
|
+
isStream: params.isStream,
|
|
83
|
+
requestParams: params.requestParams,
|
|
84
|
+
responseData: params.responseData,
|
|
85
|
+
durationMs: params.durationMs,
|
|
86
|
+
promptTokens: params.promptTokens ?? null,
|
|
87
|
+
completionTokens: params.completionTokens ?? null,
|
|
88
|
+
totalTokens: params.totalTokens ?? null,
|
|
89
|
+
error: params.error ?? null,
|
|
90
|
+
streamComplete: params.streamComplete ?? true,
|
|
91
|
+
parentRecordId: params.parentRecordId ?? null,
|
|
92
|
+
};
|
|
93
|
+
this.records.push(record);
|
|
94
|
+
this.cleanupOldRecords();
|
|
95
|
+
this.persist();
|
|
96
|
+
logger_1.logger.debug(`LLMTrafficRecorder.record: id=${record.id}, model=${record.model}, source=${record.source}`);
|
|
97
|
+
return record.id;
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
logger_1.logger.warn(`LLMTrafficRecorder: failed to record LLM traffic: ${e}`);
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
recordRequest(request) {
|
|
105
|
+
if (!this.initialized)
|
|
106
|
+
this.initStore();
|
|
107
|
+
this.record({
|
|
108
|
+
source: String(request.source ?? 'unknown'),
|
|
109
|
+
model: String(request.model ?? 'unknown'),
|
|
110
|
+
requestParams: request,
|
|
111
|
+
responseData: {},
|
|
112
|
+
durationMs: 0,
|
|
113
|
+
isStream: false,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
recordResponse(response) {
|
|
117
|
+
if (!this.initialized)
|
|
118
|
+
this.initStore();
|
|
119
|
+
this.record({
|
|
120
|
+
source: String(response.source ?? 'unknown'),
|
|
121
|
+
model: String(response.model ?? 'unknown'),
|
|
122
|
+
requestParams: {},
|
|
123
|
+
responseData: response,
|
|
124
|
+
durationMs: Number(response.durationMs ?? 0),
|
|
125
|
+
isStream: Boolean(response.isStream),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
getRecords(options = {}) {
|
|
129
|
+
if (!this.initialized)
|
|
130
|
+
this.initStore();
|
|
131
|
+
const { source, runId, limit = 50, offset = 0 } = options;
|
|
132
|
+
let filtered = [...this.records];
|
|
133
|
+
if (source) {
|
|
134
|
+
filtered = filtered.filter((rec) => rec.source === source);
|
|
135
|
+
}
|
|
136
|
+
if (runId) {
|
|
137
|
+
filtered = filtered.filter((rec) => rec.runId === runId);
|
|
138
|
+
}
|
|
139
|
+
filtered.sort((a, b) => b.id - a.id);
|
|
140
|
+
return filtered.slice(offset, offset + limit);
|
|
141
|
+
}
|
|
142
|
+
query(filter) {
|
|
143
|
+
if (!this.initialized)
|
|
144
|
+
this.initStore();
|
|
145
|
+
if (!filter)
|
|
146
|
+
return [...this.records].sort((a, b) => b.id - a.id);
|
|
147
|
+
return this.records.filter((rec) => Object.entries(filter).every(([k, v]) => {
|
|
148
|
+
const key = k;
|
|
149
|
+
return rec[key] === v;
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
getRecordCount() {
|
|
153
|
+
if (!this.initialized)
|
|
154
|
+
this.initStore();
|
|
155
|
+
return this.records.length;
|
|
156
|
+
}
|
|
157
|
+
clear() {
|
|
158
|
+
this.records = [];
|
|
159
|
+
this.nextId = 1;
|
|
160
|
+
try {
|
|
161
|
+
if (fs.existsSync(this.dbPath)) {
|
|
162
|
+
fs.writeFileSync(this.dbPath, '[]', 'utf-8');
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
logger_1.logger.warn(`LLMTrafficRecorder: failed to clear store: ${e}`);
|
|
167
|
+
}
|
|
168
|
+
logger_1.logger.info('LLMTrafficRecorder: records cleared');
|
|
169
|
+
}
|
|
170
|
+
cleanupOldRecords() {
|
|
171
|
+
if (this.records.length <= this.maxRecords)
|
|
172
|
+
return;
|
|
173
|
+
const deleteCount = this.records.length - this.maxRecords;
|
|
174
|
+
this.records.sort((a, b) => a.id - b.id);
|
|
175
|
+
this.records = this.records.slice(deleteCount);
|
|
176
|
+
logger_1.logger.debug(`LLMTrafficRecorder: cleaned up ${deleteCount} old records`);
|
|
177
|
+
}
|
|
178
|
+
persist() {
|
|
179
|
+
try {
|
|
180
|
+
const dir = path.dirname(this.dbPath);
|
|
181
|
+
if (!fs.existsSync(dir)) {
|
|
182
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
183
|
+
}
|
|
184
|
+
fs.writeFileSync(this.dbPath, JSON.stringify(this.records, null, 2), 'utf-8');
|
|
185
|
+
}
|
|
186
|
+
catch (e) {
|
|
187
|
+
logger_1.logger.warn(`LLMTrafficRecorder: failed to persist records: ${e}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.LLMTrafficRecorder = LLMTrafficRecorder;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { LLMTrafficRecorder } from './recorder';
|
|
2
2
|
export type FetchLike = typeof globalThis.fetch;
|
|
3
3
|
export declare function createRecordingFetch(originalFetch: FetchLike, recorder: LLMTrafficRecorder, source: string, runId?: string | null): FetchLike;
|
|
4
|
-
//# sourceMappingURL=recording_fetch.d.ts.map
|