@autotest/agent 0.0.1
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 +648 -0
- package/dist/api/agent_api.d.ts +37 -0
- package/dist/api/autotest_agent.d.ts +60 -0
- package/dist/api/types.d.ts +86 -0
- package/dist/autotest-cli.d.ts +2 -0
- package/dist/common/case_manager.d.ts +10 -0
- package/dist/common/collect_case.d.ts +29 -0
- package/dist/common/common_errors.d.ts +30 -0
- package/dist/common/config/config.yaml +113 -0
- package/dist/common/config/config_validator.d.ts +8 -0
- package/dist/common/config/manager.d.ts +38 -0
- package/dist/common/config/output.d.ts +11 -0
- package/dist/common/config/types.d.ts +2963 -0
- package/dist/common/dfx/client_factory.d.ts +23 -0
- package/dist/common/dfx/context.d.ts +4 -0
- package/dist/common/dfx/index.d.ts +6 -0
- package/dist/common/dfx/recorder.d.ts +59 -0
- package/dist/common/dfx/recording_fetch.d.ts +4 -0
- package/dist/common/dfx/source.d.ts +9 -0
- package/dist/common/image_cacher.d.ts +10 -0
- package/dist/common/image_helper.d.ts +19 -0
- package/dist/common/image_similarity.d.ts +7 -0
- package/dist/common/llm_cache/cache_transport.d.ts +10 -0
- package/dist/common/logger.d.ts +17 -0
- package/dist/common/model/custom_model.d.ts +52 -0
- package/dist/common/model/index.d.ts +3 -0
- package/dist/common/path_utils.d.ts +11 -0
- package/dist/common/result_parser.d.ts +10 -0
- package/dist/common/usage/token_usage.d.ts +23 -0
- package/dist/common/utils.d.ts +44 -0
- package/dist/core/agent/layered_agent/ability_helper.d.ts +36 -0
- package/dist/core/agent/layered_agent/agent.d.ts +15 -0
- package/dist/core/agent/layered_agent/agent_registry.d.ts +34 -0
- package/dist/core/agent/layered_agent/decision.d.ts +82 -0
- package/dist/core/agent/layered_agent/execute_agent/action_handler.d.ts +26 -0
- package/dist/core/agent/layered_agent/execute_agent/agent_factory.d.ts +24 -0
- package/dist/core/agent/layered_agent/execute_agent/base_agent.d.ts +83 -0
- package/dist/core/agent/layered_agent/execute_agent/general_agent.d.ts +33 -0
- package/dist/core/agent/layered_agent/execute_agent/glm_agent.d.ts +36 -0
- package/dist/core/agent/layered_agent/execute_agent/i18n.d.ts +26 -0
- package/dist/core/agent/layered_agent/execute_agent/index.d.ts +16 -0
- package/dist/core/agent/layered_agent/execute_agent/mai_ui_agent.d.ts +52 -0
- package/dist/core/agent/layered_agent/execute_agent/mcp_prompts.d.ts +4 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/general_parser.d.ts +22 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/glm_parser.d.ts +14 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/index.d.ts +7 -0
- package/dist/core/agent/layered_agent/execute_agent/parser/mai_ui_parser.d.ts +17 -0
- package/dist/core/agent/layered_agent/execute_agent/prompts.d.ts +2 -0
- package/dist/core/agent/layered_agent/execute_agent/simple_reporter.d.ts +13 -0
- package/dist/core/agent/layered_agent/execute_agent/utils.d.ts +6 -0
- package/dist/core/agent/report_analyzer_agent/agent.d.ts +22 -0
- package/dist/core/agent/report_analyzer_agent/config.d.ts +5 -0
- package/dist/core/agent/report_analyzer_agent/data_loader.d.ts +26 -0
- package/dist/core/agent/report_analyzer_agent/guardrails.d.ts +9 -0
- package/dist/core/agent/report_analyzer_agent/hooks.d.ts +6 -0
- package/dist/core/agent/report_analyzer_agent/index.d.ts +17 -0
- package/dist/core/agent/report_analyzer_agent/key_steps_builder.d.ts +9 -0
- package/dist/core/agent/report_analyzer_agent/mapping.d.ts +6 -0
- package/dist/core/agent/report_analyzer_agent/parse.d.ts +4 -0
- package/dist/core/agent/report_analyzer_agent/prompt.d.ts +2 -0
- package/dist/core/agent/report_analyzer_agent/prompts/main_agent.md +198 -0
- package/dist/core/agent/report_analyzer_agent/prompts/main_agent_v2.0.md +420 -0
- package/dist/core/agent/report_analyzer_agent/report_writer.d.ts +8 -0
- package/dist/core/agent/report_analyzer_agent/tools.d.ts +26 -0
- package/dist/core/agent/report_analyzer_agent/types.d.ts +97 -0
- package/dist/core/agent/rewrite_agent/agent.d.ts +27 -0
- package/dist/core/agent/rewrite_agent/guardrails.d.ts +16 -0
- package/dist/core/agent/rewrite_agent/mapping.d.ts +25 -0
- package/dist/core/agent/rewrite_agent/parse.d.ts +14 -0
- package/dist/core/agent/rewrite_agent/prompts/rewriter_v1.0.md +168 -0
- package/dist/core/agent/rewrite_agent/types.d.ts +50 -0
- package/dist/core/agent/single_agent/agent.d.ts +43 -0
- package/dist/core/agent/single_agent/hook_manager.d.ts +43 -0
- package/dist/core/agent/single_agent/hooks.d.ts +23 -0
- package/dist/core/agent/single_agent/image_utils.d.ts +38 -0
- package/dist/core/agent/single_agent/scroll_search_agent.d.ts +58 -0
- package/dist/core/agent/single_agent/subagent_manager.d.ts +51 -0
- package/dist/core/agent/single_agent/tool_recorder_hook.d.ts +20 -0
- package/dist/core/agent/types.d.ts +43 -0
- package/dist/core/agent/utils/message_builder.d.ts +38 -0
- package/dist/core/device/device_protocol.d.ts +3 -0
- package/dist/core/device/hdc/apps.d.ts +38 -0
- package/dist/core/device/hdc/device.d.ts +59 -0
- package/dist/core/device/hdc/index.d.ts +9 -0
- package/dist/core/device/hdc/input.d.ts +20 -0
- package/dist/core/device/hdc/screenshot.d.ts +19 -0
- package/dist/core/device/index.d.ts +49 -0
- package/dist/core/device/types.d.ts +37 -0
- package/dist/core/knowledge/knowledge_manager.d.ts +22 -0
- package/dist/core/knowledge/vectordb.d.ts +44 -0
- package/dist/core/mcp/adapter_factory.d.ts +10 -0
- package/dist/core/mcp/android_adapter.d.ts +30 -0
- package/dist/core/mcp/base_adapter.d.ts +26 -0
- package/dist/core/mcp/harmony_hdc_adapter.d.ts +49 -0
- package/dist/core/mcp/ios_adapter.d.ts +30 -0
- package/dist/core/mcp/local_tools.d.ts +20 -0
- package/dist/core/mcp/mcp_tools.d.ts +51 -0
- package/dist/core/mcp/types.d.ts +24 -0
- package/dist/core/memory/compressed_session.d.ts +46 -0
- package/dist/core/memory/context_compressor.d.ts +24 -0
- package/dist/core/memory/index.d.ts +7 -0
- package/dist/core/memory/memory_manager.d.ts +21 -0
- package/dist/core/memory/reflector.d.ts +20 -0
- package/dist/core/memory/session_factory.d.ts +17 -0
- package/dist/core/memory/tool_player.d.ts +82 -0
- package/dist/core/memory/tool_recorder.d.ts +33 -0
- package/dist/core/preprocessor/task_splitter.d.ts +26 -0
- package/dist/core/prompt/prompt_loader.d.ts +24 -0
- package/dist/core/prompt/templates/debug/planner/planner_v0.0.md +290 -0
- package/dist/core/prompt/templates/debug/planner/planner_v1.0.md +221 -0
- package/dist/core/prompt/templates/debug/planner/planner_v1.1-dy.md +74 -0
- package/dist/core/prompt/templates/debug/planner/planner_v2.0.md +319 -0
- package/dist/core/prompt/templates/fast_action/fast_action_v1.0.md +46 -0
- package/dist/core/prompt/templates/hypium/hypium_v1.0.md +33 -0
- package/dist/core/prompt/templates/hypium/hypium_v2.0.md +285 -0
- package/dist/core/prompt/templates/planner/planner_v2.0.md +319 -0
- package/dist/core/prompt/templates/single/single_v1.0.md +452 -0
- package/dist/core/prompt/templates/single/single_v2.0.md +306 -0
- package/dist/core/prompt/templates/single/single_v2.0_eco.md +313 -0
- package/dist/core/prompt/templates/single/single_v3.0.md +200 -0
- package/dist/core/prompt/templates/splitter/task_splitter_v1.0.md +141 -0
- package/dist/core/skill/skill_manager.d.ts +54 -0
- package/dist/data_types/action.d.ts +2 -0
- package/dist/data_types/agent.d.ts +2 -0
- package/dist/data_types/device.d.ts +2 -0
- package/dist/data_types/index.d.ts +6 -0
- package/dist/data_types/report.d.ts +2 -0
- package/dist/data_types/task.d.ts +2 -0
- package/dist/hypium_generator/generator.d.ts +38 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +1 -0
- package/dist/loop/cli.d.ts +39 -0
- package/dist/loop/orchestrator.d.ts +47 -0
- package/dist/loop/result_writer.d.ts +12 -0
- package/dist/loop/types.d.ts +77 -0
- package/dist/mcp-server/server.d.ts +15 -0
- package/dist/mcp-server/types.d.ts +196 -0
- package/dist/reporter/batch_summary.d.ts +19 -0
- package/dist/reporter/generator.d.ts +46 -0
- package/dist/reporter/types.d.ts +88 -0
- package/dist/tools/batch_runner.d.ts +92 -0
- package/package.json +51 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type OpenAIProvider } from '@ai-sdk/openai';
|
|
2
|
+
import type { AppConfig } from '../config/types';
|
|
3
|
+
import { LLMTrafficRecorder } from './recorder';
|
|
4
|
+
import { type FetchLike } from './recording_fetch';
|
|
5
|
+
export interface ModelSettings {
|
|
6
|
+
temperature: number;
|
|
7
|
+
topP: number;
|
|
8
|
+
frequencyPenalty: number;
|
|
9
|
+
maxTokens: number;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateLLMClientOptions {
|
|
12
|
+
runId?: string | null;
|
|
13
|
+
reportDir?: string;
|
|
14
|
+
maxRecords?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface LLMClientBundle {
|
|
17
|
+
provider: OpenAIProvider;
|
|
18
|
+
modelSettings: ModelSettings;
|
|
19
|
+
recorder: LLMTrafficRecorder;
|
|
20
|
+
recordingFetch: FetchLike;
|
|
21
|
+
}
|
|
22
|
+
export declare function createLLMClient(config: AppConfig, source: string, options?: CreateLLMClientOptions): LLMClientBundle;
|
|
23
|
+
//# sourceMappingURL=client_factory.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { LLMTrafficRecorder, type LLMTrafficRecord, type RecordParams, type RecordQueryOptions, } from './recorder';
|
|
2
|
+
export { createRecordingFetch, type FetchLike } from './recording_fetch';
|
|
3
|
+
export { setStepNumber, getStepNumber, clearStepNumber } from './context';
|
|
4
|
+
export { RecordingSource } from './source';
|
|
5
|
+
export { createLLMClient, type ModelSettings, type CreateLLMClientOptions, type LLMClientBundle, } from './client_factory';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface LLMTrafficRecord {
|
|
2
|
+
id: number;
|
|
3
|
+
runId?: string | null;
|
|
4
|
+
stepNumber?: number | null;
|
|
5
|
+
timestamp: string;
|
|
6
|
+
model: string;
|
|
7
|
+
source: string;
|
|
8
|
+
isStream: boolean;
|
|
9
|
+
requestParams: Record<string, unknown>;
|
|
10
|
+
responseData: Record<string, unknown>;
|
|
11
|
+
durationMs: number;
|
|
12
|
+
promptTokens?: number | null;
|
|
13
|
+
completionTokens?: number | null;
|
|
14
|
+
totalTokens?: number | null;
|
|
15
|
+
error?: string | null;
|
|
16
|
+
streamComplete?: boolean;
|
|
17
|
+
parentRecordId?: number | null;
|
|
18
|
+
}
|
|
19
|
+
export interface RecordQueryOptions {
|
|
20
|
+
source?: string;
|
|
21
|
+
runId?: string;
|
|
22
|
+
limit?: number;
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface RecordParams {
|
|
26
|
+
source: string;
|
|
27
|
+
model: string;
|
|
28
|
+
requestParams: Record<string, unknown>;
|
|
29
|
+
responseData: Record<string, unknown>;
|
|
30
|
+
durationMs: number;
|
|
31
|
+
isStream: boolean;
|
|
32
|
+
runId?: string | null;
|
|
33
|
+
stepNumber?: number | null;
|
|
34
|
+
promptTokens?: number | null;
|
|
35
|
+
completionTokens?: number | null;
|
|
36
|
+
totalTokens?: number | null;
|
|
37
|
+
error?: string | null;
|
|
38
|
+
streamComplete?: boolean;
|
|
39
|
+
parentRecordId?: number | null;
|
|
40
|
+
}
|
|
41
|
+
export declare class LLMTrafficRecorder {
|
|
42
|
+
private dbPath;
|
|
43
|
+
private maxRecords;
|
|
44
|
+
private records;
|
|
45
|
+
private nextId;
|
|
46
|
+
private initialized;
|
|
47
|
+
constructor(dbPath?: string, maxRecords?: number);
|
|
48
|
+
initStore(): void;
|
|
49
|
+
record(params: RecordParams): number | null;
|
|
50
|
+
recordRequest(request: Record<string, unknown>): void;
|
|
51
|
+
recordResponse(response: Record<string, unknown>): void;
|
|
52
|
+
getRecords(options?: RecordQueryOptions): LLMTrafficRecord[];
|
|
53
|
+
query(filter?: Record<string, unknown>): LLMTrafficRecord[];
|
|
54
|
+
getRecordCount(): number;
|
|
55
|
+
clear(): void;
|
|
56
|
+
private cleanupOldRecords;
|
|
57
|
+
private persist;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=recorder.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LLMTrafficRecorder } from './recorder';
|
|
2
|
+
export type FetchLike = typeof globalThis.fetch;
|
|
3
|
+
export declare function createRecordingFetch(originalFetch: FetchLike, recorder: LLMTrafficRecorder, source: string, runId?: string | null): FetchLike;
|
|
4
|
+
//# sourceMappingURL=recording_fetch.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum RecordingSource {
|
|
2
|
+
SINGLE_AGENT = "single_agent",
|
|
3
|
+
HYPIUM_AGENT = "hypium_agent",
|
|
4
|
+
DEBUG_SESSION = "debug_session",
|
|
5
|
+
ANALYZER = "analyzer",
|
|
6
|
+
ANALYZE_SERVICE = "analyze_service",
|
|
7
|
+
CASE_SERVICE = "case_service"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ImageCacher {
|
|
2
|
+
private cache;
|
|
3
|
+
get(path: string): string | null;
|
|
4
|
+
set(path: string, hash: string): void;
|
|
5
|
+
has(path: string): boolean;
|
|
6
|
+
getOrCompute(path: string): Promise<string>;
|
|
7
|
+
isSimilar(path1: string, path2: string, threshold?: number): Promise<boolean>;
|
|
8
|
+
static clearAllCache(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=image_cacher.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare function compressImageBytes(imageBytes: Buffer, maxPixels?: number, quality?: number): Promise<{
|
|
2
|
+
bytes: Buffer;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function compressImageToBase64(imagePath: string, maxPixels?: number, quality?: number): Promise<string>;
|
|
7
|
+
export declare function compressBase64Image(base64Data: string, maxPixels?: number, quality?: number): Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Decode a base64 image (with optional `data:` prefix) into a Buffer.
|
|
10
|
+
* Aligned with python image_helper.decode_base64_image.
|
|
11
|
+
*/
|
|
12
|
+
export declare function decodeBase64Image(base64Data: string): Promise<Buffer>;
|
|
13
|
+
/**
|
|
14
|
+
* Encode a Buffer to a base64 string. Aligned with python
|
|
15
|
+
* image_helper.encode_image_to_base64 (Node buffers encode losslessly; fmt/quality
|
|
16
|
+
* only apply when re-encoding via sharp, which callers can do via compressBase64Image).
|
|
17
|
+
*/
|
|
18
|
+
export declare function encodeImageToBase64(buf: Buffer): string;
|
|
19
|
+
//# sourceMappingURL=image_helper.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function computeImageHash(imagePath: string): Promise<string>;
|
|
2
|
+
export declare function computeImageHashFromBase64(imageBase64: string, side?: number): Promise<string | null>;
|
|
3
|
+
export declare function hammingDistance(hash1: string, hash2: string): number;
|
|
4
|
+
export declare function computeImageSimilarity(image1Base64: string, image2Base64: string, side?: number): Promise<number | null>;
|
|
5
|
+
export declare function areImagesSimilar(hash1: string, hash2: string, threshold?: number): boolean;
|
|
6
|
+
export declare function expectedHashLength(): number;
|
|
7
|
+
//# sourceMappingURL=image_similarity.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class CacheTransport {
|
|
2
|
+
private enabled;
|
|
3
|
+
private cacheDir;
|
|
4
|
+
private cache;
|
|
5
|
+
constructor(enabled?: boolean, cacheDir?: string);
|
|
6
|
+
getCachedResponse(requestKey: string): Promise<string | null>;
|
|
7
|
+
setCachedResponse(requestKey: string, response: string): Promise<void>;
|
|
8
|
+
clearCache(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=cache_transport.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LoggerConfig {
|
|
2
|
+
consoleLevel: string;
|
|
3
|
+
logFile?: string;
|
|
4
|
+
fileLevel: string;
|
|
5
|
+
maxBytes: number;
|
|
6
|
+
backupCount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const logger: {
|
|
9
|
+
debug: (message: string) => void;
|
|
10
|
+
info: (message: string) => void;
|
|
11
|
+
warn: (message: string) => void;
|
|
12
|
+
warning: (message: string) => void;
|
|
13
|
+
error: (message: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function configureLogger(config: Partial<LoggerConfig>): void;
|
|
16
|
+
export declare function setLogFile(logFile: string): void;
|
|
17
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ModelMessage } from 'ai';
|
|
2
|
+
import type { ModelConfig } from '../../common/config/types';
|
|
3
|
+
import { TokenUsage, DashScopeTokenUsage } from '../../common/usage/token_usage';
|
|
4
|
+
import { CacheTransport } from '../llm_cache/cache_transport';
|
|
5
|
+
import type { FetchLike } from '../dfx/recording_fetch';
|
|
6
|
+
export interface LLMCallOptions {
|
|
7
|
+
systemPrompt?: string;
|
|
8
|
+
userPrompt: string;
|
|
9
|
+
images?: Array<{
|
|
10
|
+
base64Data: string;
|
|
11
|
+
mimeType?: string;
|
|
12
|
+
}>;
|
|
13
|
+
modelConfig: ModelConfig;
|
|
14
|
+
cacheTransport?: CacheTransport;
|
|
15
|
+
extraBody?: Record<string, unknown>;
|
|
16
|
+
tools?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export interface LLMCallResult {
|
|
19
|
+
text: string;
|
|
20
|
+
reasoning?: string;
|
|
21
|
+
/** Full raw reasoning content (e.g. vLLM/Qwen reasoning_content), distinct from the SDK summary `reasoning`. */
|
|
22
|
+
reasoningContent?: string;
|
|
23
|
+
toolCalls?: Array<{
|
|
24
|
+
toolName: string;
|
|
25
|
+
args: Record<string, unknown>;
|
|
26
|
+
toolCallId?: string;
|
|
27
|
+
}>;
|
|
28
|
+
tokenUsage: TokenUsage | DashScopeTokenUsage | null;
|
|
29
|
+
finishReason: string;
|
|
30
|
+
rawResponse?: Record<string, unknown>;
|
|
31
|
+
responseMessages?: ModelMessage[];
|
|
32
|
+
}
|
|
33
|
+
export interface LLMCallMessagesOptions {
|
|
34
|
+
messages: ModelMessage[];
|
|
35
|
+
systemPrompt?: string;
|
|
36
|
+
tools?: Record<string, unknown>;
|
|
37
|
+
modelConfig: ModelConfig;
|
|
38
|
+
cacheTransport?: CacheTransport;
|
|
39
|
+
extraBody?: Record<string, unknown>;
|
|
40
|
+
}
|
|
41
|
+
export declare class LLMCaller {
|
|
42
|
+
private cacheTransport;
|
|
43
|
+
private recordingFetch?;
|
|
44
|
+
constructor(cacheTransport?: CacheTransport, recordingFetch?: FetchLike);
|
|
45
|
+
private createProvider;
|
|
46
|
+
private buildMessages;
|
|
47
|
+
private computeCacheKey;
|
|
48
|
+
call(opts: LLMCallOptions): Promise<LLMCallResult>;
|
|
49
|
+
callWithMessages(opts: LLMCallMessagesOptions): Promise<LLMCallResult>;
|
|
50
|
+
private computeMessagesCacheKey;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=custom_model.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 定位打包后 dist 根目录(含 common/config/config.yaml)。
|
|
3
|
+
* 兼容普通构建(模块在 dist/core/... 子目录)与单文件 bundle(模块在 dist/index.js):
|
|
4
|
+
* 从 __dirname 向上查找直到出现 common/config/config.yaml。
|
|
5
|
+
*/
|
|
6
|
+
export declare function findDistRoot(): string;
|
|
7
|
+
export declare function findProjectRoot(): string;
|
|
8
|
+
export declare function getReportBaseDir(config?: {
|
|
9
|
+
rootDir?: string;
|
|
10
|
+
}): string;
|
|
11
|
+
//# sourceMappingURL=path_utils.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function parseTaskResult(agentStatus: string | null, resultText: string): {
|
|
2
|
+
status: 'PASS' | 'FAIL' | 'UNKNOWN';
|
|
3
|
+
reason: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function hasVerdict(text: string): boolean;
|
|
6
|
+
export declare const CLICK_LIKE_TOOLS: string[];
|
|
7
|
+
export declare const SWIPE_LIKE_TOOLS: string[];
|
|
8
|
+
export declare const DOUBLE_CLICK_ACTIONS: string[];
|
|
9
|
+
export declare const LONG_PRESS_ACTIONS: string[];
|
|
10
|
+
//# sourceMappingURL=result_parser.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class TokenUsage {
|
|
2
|
+
inputTokens: number;
|
|
3
|
+
outputTokens: number;
|
|
4
|
+
totalTokens: number;
|
|
5
|
+
cachedTokens: number;
|
|
6
|
+
reasoningTokens: number;
|
|
7
|
+
constructor(inputTokens?: number, outputTokens?: number, totalTokens?: number, cachedTokens?: number, reasoningTokens?: number);
|
|
8
|
+
get uncachedTokens(): number;
|
|
9
|
+
get normalizedTokens(): number;
|
|
10
|
+
toDict(): Record<string, number>;
|
|
11
|
+
toString(): string;
|
|
12
|
+
static fromUsageObj(usageObj: Record<string, unknown> | null | undefined): TokenUsage | null;
|
|
13
|
+
}
|
|
14
|
+
export declare class DashScopeTokenUsage extends TokenUsage {
|
|
15
|
+
cacheCreationTokens: number;
|
|
16
|
+
constructor(inputTokens?: number, outputTokens?: number, totalTokens?: number, cachedTokens?: number, reasoningTokens?: number, cacheCreationTokens?: number);
|
|
17
|
+
get uncachedTokens(): number;
|
|
18
|
+
get normalizedTokens(): number;
|
|
19
|
+
toString(): string;
|
|
20
|
+
static fromUsageObj(usageObj: Record<string, unknown> | null | undefined): DashScopeTokenUsage | null;
|
|
21
|
+
}
|
|
22
|
+
export declare function resolveTokenType(baseUrl: string): typeof TokenUsage;
|
|
23
|
+
//# sourceMappingURL=token_usage.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* General utility functions ported from python/AutoTest/common/utils.py.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sanitize a string into a safe filename (Windows-compatible).
|
|
6
|
+
*
|
|
7
|
+
* Mirrors python `sanitize_filename`: replaces `/ \ : * ? " < > |` with `_`,
|
|
8
|
+
* drops control chars, strips leading/trailing dots and spaces, collapses
|
|
9
|
+
* repeated underscores, and truncates to `maxLength`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function sanitizeFilename(name: string, maxLength?: number): string;
|
|
12
|
+
/**
|
|
13
|
+
* Inject `enable_thinking` into the LLM request `extra_body`.
|
|
14
|
+
*
|
|
15
|
+
* Mirrors python `apply_thinking_config`. Tri-state: `null` = skip (use model
|
|
16
|
+
* default), `true`/`false` = explicit value, written into
|
|
17
|
+
* `chat_template_kwargs.enable_thinking` (vLLM format). Mutates and returns
|
|
18
|
+
* `extraBody` in place.
|
|
19
|
+
*/
|
|
20
|
+
export declare function applyThinkingConfig(extraBody: Record<string, unknown>, enableThinking: boolean | null): Record<string, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Normalize a single coordinate: keep if already in [0,1], else divide by 1000
|
|
23
|
+
* (per-mille → 0-1). Mirrors python `normalize_coord`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeCoord(coord: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* Coordinate defense layer: detect per-mille (0-1000) coordinates and
|
|
28
|
+
* selectively divide >1 values by 1000 to normalize to the 0-1 range.
|
|
29
|
+
*
|
|
30
|
+
* Mirrors python `normalize_tool_coordinates`. Covers both combine format
|
|
31
|
+
* (`pos`/`start`/`end` as [x,y]) and split format (`x`/`y`,
|
|
32
|
+
* `start_x`/`start_y`, `end_x`/`end_y`). Only values >1 are converted; values
|
|
33
|
+
* already in [0,1] are preserved (handles mixed output like [0.85, 780]).
|
|
34
|
+
*
|
|
35
|
+
* Mutates `args` in place. Returns true if any conversion occurred.
|
|
36
|
+
*/
|
|
37
|
+
export declare function normalizeToolCoordinates(toolName: string, args: Record<string, unknown>): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Format a token count for display.
|
|
40
|
+
*
|
|
41
|
+
* Values >= 1000 are shown as `X.XK`, otherwise the raw number is returned.
|
|
42
|
+
*/
|
|
43
|
+
export declare function formatTokenDisplay(total: number): string;
|
|
44
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface AbilityDriver {
|
|
2
|
+
executeShellCommand(cmd: string): string;
|
|
3
|
+
logError?(msg: string): void;
|
|
4
|
+
logWarning?(msg: string): void;
|
|
5
|
+
logDebug?(msg: string): void;
|
|
6
|
+
}
|
|
7
|
+
interface AbilityInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
moduleName: string;
|
|
10
|
+
skills?: Array<{
|
|
11
|
+
actions?: string[];
|
|
12
|
+
}>;
|
|
13
|
+
mainAbility?: string;
|
|
14
|
+
}
|
|
15
|
+
interface HapModuleInfo {
|
|
16
|
+
abilityInfos?: AbilityInfo[];
|
|
17
|
+
mainAbility?: string;
|
|
18
|
+
}
|
|
19
|
+
interface BundleInfo {
|
|
20
|
+
hapModuleInfos?: HapModuleInfo[];
|
|
21
|
+
mainEntry?: string;
|
|
22
|
+
}
|
|
23
|
+
interface IconAbilityInfo {
|
|
24
|
+
name: string;
|
|
25
|
+
moduleName: string;
|
|
26
|
+
moduleMainAbility?: string;
|
|
27
|
+
mainModule?: string;
|
|
28
|
+
score?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function getHapInfo(hapPath: string): Record<string, unknown>;
|
|
31
|
+
export declare function getHapVersionCode(hapPath: string): number;
|
|
32
|
+
export declare function getBundleInfo(driver: AbilityDriver, bundleName: string): BundleInfo;
|
|
33
|
+
export declare function getIconAbilities(driver: AbilityDriver, bundleName: string): IconAbilityInfo[];
|
|
34
|
+
export declare function getMainAbility(driver: AbilityDriver, bundleName: string): IconAbilityInfo | null;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=ability_helper.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AgentResult, AgentHooks, SingleAgentArgs } from '../types';
|
|
2
|
+
import type { MCPDeviceAdapter } from '../../mcp/types';
|
|
3
|
+
import type { AppConfig } from '../../../common/config/types';
|
|
4
|
+
import type { ReportGenerator } from '../../../reporter/types';
|
|
5
|
+
import { LLMCaller } from '../../../common/model';
|
|
6
|
+
export declare class LayeredAgent {
|
|
7
|
+
private adapter;
|
|
8
|
+
private config;
|
|
9
|
+
private reportGenerator;
|
|
10
|
+
private hooks?;
|
|
11
|
+
private llmCaller?;
|
|
12
|
+
constructor(adapter: MCPDeviceAdapter, config: AppConfig, reportGenerator: ReportGenerator, hooks?: AgentHooks, llmCaller?: LLMCaller);
|
|
13
|
+
run(args: SingleAgentArgs): Promise<AgentResult>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global agent registry (aligned with python hybrid_agent/utils/agent_registry.py).
|
|
3
|
+
*
|
|
4
|
+
* Singleton for managing cross-module shared state: executor agent, tool
|
|
5
|
+
* manager (adapter), report generator, last click info, and generic key-value
|
|
6
|
+
* state. Backward-compatible with the old layered-only API (setExecutorAgent /
|
|
7
|
+
* getExecutorAgent delegate to the generic set/get).
|
|
8
|
+
*/
|
|
9
|
+
import type { BaseAgent } from './execute_agent/base_agent';
|
|
10
|
+
import type { MCPDeviceAdapter } from '../../mcp/types';
|
|
11
|
+
import type { ReportGenerator } from '../../../reporter/types';
|
|
12
|
+
declare class AgentRegistryImpl {
|
|
13
|
+
private static instance;
|
|
14
|
+
private _state;
|
|
15
|
+
private _initialized;
|
|
16
|
+
static getInstance(): AgentRegistryImpl;
|
|
17
|
+
set(key: string, value: unknown): void;
|
|
18
|
+
get<T = unknown>(key: string, defaultValue?: T): T;
|
|
19
|
+
clearKey(key: string): void;
|
|
20
|
+
setExecutorAgent(agent: BaseAgent): void;
|
|
21
|
+
getExecutorAgent(): BaseAgent | null;
|
|
22
|
+
setToolManager(adapter: MCPDeviceAdapter): void;
|
|
23
|
+
getToolManager(): MCPDeviceAdapter | null;
|
|
24
|
+
setReportGenerator(rg: ReportGenerator): void;
|
|
25
|
+
getReportGenerator(): ReportGenerator | null;
|
|
26
|
+
setLastClickInfo(info: Record<string, unknown> | null): void;
|
|
27
|
+
getLastClickInfo(): Record<string, unknown> | null;
|
|
28
|
+
clearLastClickInfo(): void;
|
|
29
|
+
isInitialized(): boolean;
|
|
30
|
+
clear(): void;
|
|
31
|
+
}
|
|
32
|
+
export declare const agentRegistry: AgentRegistryImpl;
|
|
33
|
+
export type { AgentRegistryImpl };
|
|
34
|
+
//# sourceMappingURL=agent_registry.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { AgentResult, AgentStatus, AgentHooks } from '../types';
|
|
2
|
+
import type { SingleAgentArgs } from '../types';
|
|
3
|
+
import type { MCPDeviceAdapter } from '../../mcp/types';
|
|
4
|
+
import type { Screenshot, ToolDefine, ToolCallResult } from '../../device/types';
|
|
5
|
+
import type { AppConfig, ModelConfig } from '../../../common/config/types';
|
|
6
|
+
import type { ReportGenerator } from '../../../reporter/types';
|
|
7
|
+
import { LLMCaller } from '../../../common/model';
|
|
8
|
+
import type { ExecutorDevice } from './execute_agent/base_agent';
|
|
9
|
+
import type { BaseAgent } from './execute_agent/base_agent';
|
|
10
|
+
export interface DeviceConfigInfo {
|
|
11
|
+
deviceSn: string | null;
|
|
12
|
+
ip: string;
|
|
13
|
+
port: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function getDeviceConfig(args: SingleAgentArgs, config: AppConfig): DeviceConfigInfo;
|
|
16
|
+
export declare function createClientConfig(config: AppConfig): ModelConfig;
|
|
17
|
+
export declare function collectAllTools(adapter: MCPDeviceAdapter): ToolDefine[];
|
|
18
|
+
export declare function extractResult(output: string): {
|
|
19
|
+
status: 'PASS' | 'FAIL' | 'UNKNOWN';
|
|
20
|
+
tip: string;
|
|
21
|
+
};
|
|
22
|
+
export declare class MCPExecutorDevice implements ExecutorDevice {
|
|
23
|
+
private adapter;
|
|
24
|
+
private reportGenerator?;
|
|
25
|
+
readonly deviceId: string;
|
|
26
|
+
constructor(adapter: MCPDeviceAdapter, reportGenerator?: ReportGenerator);
|
|
27
|
+
getScreenshot(_timeout?: number, saveToReport?: boolean): Promise<Screenshot>;
|
|
28
|
+
tap(x: number, y: number): Promise<void>;
|
|
29
|
+
doubleTap(x: number, y: number): Promise<void>;
|
|
30
|
+
longPress(x: number, y: number): Promise<void>;
|
|
31
|
+
swipe(startX: number, startY: number, endX: number, endY: number): Promise<void>;
|
|
32
|
+
typeText(text: string): Promise<void>;
|
|
33
|
+
clearText(): Promise<void>;
|
|
34
|
+
back(): Promise<void>;
|
|
35
|
+
home(): Promise<void>;
|
|
36
|
+
launchApp(appName: string): Promise<boolean>;
|
|
37
|
+
getCurrentApp(): Promise<string>;
|
|
38
|
+
listTools(): Promise<ToolDefine[]>;
|
|
39
|
+
callTool(toolName: string, toolArgs: Record<string, unknown>): Promise<ToolCallResult>;
|
|
40
|
+
cleanUp(): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
export interface DecisionPlannerOptions {
|
|
43
|
+
adapter: MCPDeviceAdapter;
|
|
44
|
+
config: AppConfig;
|
|
45
|
+
reportGenerator: ReportGenerator;
|
|
46
|
+
hooks?: AgentHooks;
|
|
47
|
+
llmCaller?: LLMCaller;
|
|
48
|
+
executorAgent?: BaseAgent;
|
|
49
|
+
}
|
|
50
|
+
export interface DecisionResult {
|
|
51
|
+
finalOutput: string;
|
|
52
|
+
status: AgentStatus;
|
|
53
|
+
savedFiles: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
export declare class DecisionPlanner {
|
|
56
|
+
private adapter;
|
|
57
|
+
private config;
|
|
58
|
+
private reportGenerator;
|
|
59
|
+
private hooks?;
|
|
60
|
+
private llmCaller;
|
|
61
|
+
private executorAgent?;
|
|
62
|
+
private stepNumber;
|
|
63
|
+
private maxSteps;
|
|
64
|
+
private history;
|
|
65
|
+
constructor(opts: DecisionPlannerOptions);
|
|
66
|
+
run(task: string): Promise<DecisionResult>;
|
|
67
|
+
private captureScreenshot;
|
|
68
|
+
private planStep;
|
|
69
|
+
private executeStep;
|
|
70
|
+
}
|
|
71
|
+
export interface DecisionChatArgs {
|
|
72
|
+
config: AppConfig;
|
|
73
|
+
adapter: MCPDeviceAdapter;
|
|
74
|
+
reportGenerator: ReportGenerator;
|
|
75
|
+
args: SingleAgentArgs;
|
|
76
|
+
hooks?: AgentHooks;
|
|
77
|
+
llmCaller?: LLMCaller;
|
|
78
|
+
executorAgent?: BaseAgent;
|
|
79
|
+
}
|
|
80
|
+
export declare function decisionChat(chatArgs: DecisionChatArgs): Promise<DecisionResult>;
|
|
81
|
+
export type { AgentResult };
|
|
82
|
+
//# sourceMappingURL=decision.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ExecutorDevice } from './base_agent';
|
|
2
|
+
import type { ActionResult } from '../../types';
|
|
3
|
+
type ActionDict = Record<string, unknown>;
|
|
4
|
+
export declare class ActionHandler {
|
|
5
|
+
private device;
|
|
6
|
+
private confirmationCallback;
|
|
7
|
+
private takeoverCallback;
|
|
8
|
+
constructor(device: ExecutorDevice, confirmationCallback?: (message: string) => boolean, takeoverCallback?: (message: string) => void);
|
|
9
|
+
execute(action: ActionDict): Promise<ActionResult>;
|
|
10
|
+
private getHandler;
|
|
11
|
+
private handleLaunch;
|
|
12
|
+
private handleTap;
|
|
13
|
+
private handleType;
|
|
14
|
+
private handleSwipe;
|
|
15
|
+
private handleBack;
|
|
16
|
+
private handleHome;
|
|
17
|
+
private handleDoubleTap;
|
|
18
|
+
private handleLongPress;
|
|
19
|
+
private handleWait;
|
|
20
|
+
private handleTakeover;
|
|
21
|
+
private handleNote;
|
|
22
|
+
private defaultConfirmation;
|
|
23
|
+
private defaultTakeover;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=action_handler.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ModelConfig, AgentConfig } from '../../../../common/config/types';
|
|
2
|
+
import type { LLMCaller } from '../../../../common/model';
|
|
3
|
+
import type { ExecutorDevice, ExecuteReporter, BaseAgent, ConfirmationCallback, ThinkingCallback, TakeoverCallback } from './base_agent';
|
|
4
|
+
export interface AgentCreateOptions {
|
|
5
|
+
modelConfig: ModelConfig;
|
|
6
|
+
agentConfig: AgentConfig;
|
|
7
|
+
device: ExecutorDevice;
|
|
8
|
+
confirmationCallback?: ConfirmationCallback;
|
|
9
|
+
takeoverCallback?: TakeoverCallback;
|
|
10
|
+
thinkingCallback?: ThinkingCallback;
|
|
11
|
+
reportGenerator?: ExecuteReporter | null;
|
|
12
|
+
llmCaller?: LLMCaller;
|
|
13
|
+
}
|
|
14
|
+
export type AgentFactoryFn = (opts: AgentCreateOptions) => BaseAgent;
|
|
15
|
+
export declare class AgentFactory {
|
|
16
|
+
private static registry;
|
|
17
|
+
private static loaded;
|
|
18
|
+
static register(name: string, factory: AgentFactoryFn): void;
|
|
19
|
+
static getAgentFactory(provider: string): AgentFactoryFn;
|
|
20
|
+
static create(provider: string | undefined, opts: AgentCreateOptions): BaseAgent;
|
|
21
|
+
static loadBuiltinAgents(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare function createAgent(provider?: string): AgentFactoryFn;
|
|
24
|
+
//# sourceMappingURL=agent_factory.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ModelConfig, AgentConfig } from '../../../../common/config/types';
|
|
2
|
+
import type { Screenshot, ToolDefine, ToolCallResult } from '../../../device/types';
|
|
3
|
+
import type { StepResult } from '../../types';
|
|
4
|
+
import { type ReportEvent } from '../../../../reporter/types';
|
|
5
|
+
export interface ExecutorDevice {
|
|
6
|
+
readonly deviceId: string;
|
|
7
|
+
getScreenshot(timeout?: number, saveToReport?: boolean): Promise<Screenshot>;
|
|
8
|
+
tap(x: number, y: number, delay?: number): Promise<void>;
|
|
9
|
+
doubleTap(x: number, y: number, delay?: number): Promise<void>;
|
|
10
|
+
longPress(x: number, y: number, durationMs?: number, delay?: number): Promise<void>;
|
|
11
|
+
swipe(startX: number, startY: number, endX: number, endY: number): Promise<void>;
|
|
12
|
+
typeText(text: string): Promise<void>;
|
|
13
|
+
clearText(): Promise<void>;
|
|
14
|
+
back(delay?: number): Promise<void>;
|
|
15
|
+
home(delay?: number): Promise<void>;
|
|
16
|
+
launchApp(appName: string, delay?: number): Promise<boolean>;
|
|
17
|
+
getCurrentApp(): Promise<string>;
|
|
18
|
+
listTools(): Promise<ToolDefine[]>;
|
|
19
|
+
callTool(toolName: string, toolArgs: Record<string, unknown>): Promise<ToolCallResult>;
|
|
20
|
+
cleanUp(): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export interface ExecuteReporter {
|
|
23
|
+
addEvent(event: ReportEvent): void;
|
|
24
|
+
addTokenUsage(usage: unknown, source?: string, stepNumber?: number): void;
|
|
25
|
+
saveScreenshot(base64Data: string, layoutData?: string, prefix?: string): string;
|
|
26
|
+
setTask(task: string): void;
|
|
27
|
+
setTestCase(testCase: string): void;
|
|
28
|
+
startTask(): void;
|
|
29
|
+
endTask(result: string, status?: string): void;
|
|
30
|
+
saveAll(baseFilename?: string): Promise<Record<string, string>>;
|
|
31
|
+
getReportDir(): string;
|
|
32
|
+
}
|
|
33
|
+
export type ConfirmationCallback = (message: string) => boolean;
|
|
34
|
+
export type ThinkingCallback = (chunk: string) => void;
|
|
35
|
+
export type TakeoverCallback = (message: string) => void;
|
|
36
|
+
export interface BaseAgentConstructorOptions {
|
|
37
|
+
modelConfig: ModelConfig;
|
|
38
|
+
agentConfig: AgentConfig;
|
|
39
|
+
device: ExecutorDevice;
|
|
40
|
+
confirmationCallback?: ConfirmationCallback;
|
|
41
|
+
thinkingCallback?: ThinkingCallback;
|
|
42
|
+
takeoverCallback?: TakeoverCallback;
|
|
43
|
+
reportGenerator?: ExecuteReporter | null;
|
|
44
|
+
}
|
|
45
|
+
export interface ExecutorStepResult {
|
|
46
|
+
success: boolean;
|
|
47
|
+
observation: string;
|
|
48
|
+
screenshotChanged: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare abstract class BaseAgent {
|
|
51
|
+
protected modelConfig: ModelConfig;
|
|
52
|
+
protected agentConfig: AgentConfig;
|
|
53
|
+
protected device: ExecutorDevice;
|
|
54
|
+
protected confirmationCallback: ConfirmationCallback;
|
|
55
|
+
protected thinkingCallback?: ThinkingCallback;
|
|
56
|
+
protected takeoverCallback: TakeoverCallback;
|
|
57
|
+
protected reportGenerator: ExecuteReporter | null;
|
|
58
|
+
constructor(opts: BaseAgentConstructorOptions);
|
|
59
|
+
abstract run(task: string): Promise<string>;
|
|
60
|
+
abstract reset(): void;
|
|
61
|
+
abstract get stepCount(): number;
|
|
62
|
+
abstract get screenshot(): unknown[];
|
|
63
|
+
abstract get context(): Array<Record<string, unknown>>;
|
|
64
|
+
abstract get isRunning(): boolean;
|
|
65
|
+
/** Public accessor for the executor device (used by MCP tools). */
|
|
66
|
+
getDevice(): ExecutorDevice;
|
|
67
|
+
/** Public accessor for the agent config (used by MCP tools). */
|
|
68
|
+
getAgentConfig(): AgentConfig;
|
|
69
|
+
/** Public accessor for the model config (used by MCP tools). */
|
|
70
|
+
getModelConfig(): ModelConfig;
|
|
71
|
+
/** Public accessor for the report generator (used by MCP tools). */
|
|
72
|
+
getReportGenerator(): ExecuteReporter | null;
|
|
73
|
+
init(): void;
|
|
74
|
+
cleanUp(): Promise<void>;
|
|
75
|
+
protected defaultConfirmation(_message: string): boolean;
|
|
76
|
+
protected defaultTakeover(_message: string): void;
|
|
77
|
+
protected makeStepResult(success: boolean, finished: boolean, action: Record<string, unknown> | null, thinking: string, message?: string): StepResult;
|
|
78
|
+
executeToolCall(toolCall: {
|
|
79
|
+
name: string;
|
|
80
|
+
arguments: Record<string, unknown>;
|
|
81
|
+
}, _screenshot?: Screenshot | null): Promise<ExecutorStepResult>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=base_agent.d.ts.map
|