Frontend: unified /runs URL (#3912)

This commit is contained in:
Jonathan Dobson
2025-11-05 09:48:55 -05:00
committed by GitHub
parent 2fa4d933cc
commit fcc3f30ba4
27 changed files with 388 additions and 66 deletions

View File

@@ -1,3 +1,5 @@
import { WorkflowApiResponse } from "@/routes/workflows/types/workflowTypes";
export const ArtifactType = {
Recording: "recording",
ActionScreenshot: "screenshot_action",
@@ -374,6 +376,32 @@ export type WorkflowRunStatusApiResponse = {
max_screenshot_scrolls: number | null;
};
export type WorkflowRunStatusApiResponseWithWorkflow = {
workflow_id: string;
workflow_run_id: string;
status: Status;
proxy_location: ProxyLocation | null;
webhook_callback_url: string | null;
extra_http_headers: Record<string, string> | null;
created_at: string;
finished_at: string;
modified_at: string;
parameters: Record<string, unknown>;
screenshot_urls: Array<string> | null;
recording_url: string | null;
outputs: Record<string, unknown> | null;
failure_reason: string | null;
webhook_failure_reason: string | null;
downloaded_file_urls: Array<string> | null;
total_steps: number | null;
total_cost: number | null;
task_v2: TaskV2 | null;
workflow_title: string | null;
browser_session_id: string | null;
max_screenshot_scrolls: number | null;
workflow: WorkflowApiResponse;
};
export type TaskGenerationApiResponse = {
suggested_title: string | null;
url: string | null;