import type { ApiClient } from '../api-client'; import type { AgentChatMode, AgentServerConfig, CommandResult, ProjectConfigResponse } from '../types'; /** Options for E2E test execution */ export interface ExecuteE2eTestOptions { payload: Record; commandId: string; client: ApiClient; serverConfig?: AgentServerConfig; activeChatMode?: AgentChatMode; availableChatModes?: AgentChatMode[]; agentId?: string; projectDir?: string; projectConfig?: ProjectConfigResponse; mcpConfigPath?: string; tenantCode?: string; browserLocalPort?: number; /** * E2E 専用のブラウザーセッションを子プロセス実行前にメインプロセスへ * 事前登録するコールバック。未指定(VS Code トンネル未接続等)の場合は * セッション事前登録をスキップする。 */ getOrCreateBrowserSession?: (sessionId: string) => Promise; /** * E2E 専用のブラウザーセッションを実行後にクローズするコールバック。 * close失敗はE2E結果報告を妨げないよう呼び出し側でwarn握り潰しする。 */ closeBrowserSession?: (sessionId: string) => Promise; } /** * E2E テストを実行する * * playwrightScript がある場合は @playwright/test サブプロセスで直接実行(高速)、 * ない場合は従来のAI実行フローを使用する。 */ export declare function executeE2eTest(options: ExecuteE2eTestOptions): Promise; //# sourceMappingURL=e2e-test-executor.d.ts.map