Spaces:
Runtime error
Runtime error
File size: 972 Bytes
fc99222 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | export interface Finding {
title: string;
description: string;
recommendation: string;
severity: "high" | "medium" | "low";
codeSnippet: string;
location: string;
path: string;
judgeReview: {
review: string;
confidence: number;
exploitablePaths: string[];
};
}
export interface CoderResult {
contract: string;
compilationErrors: string[];
reviewSummary: string;
}
export interface AuditorResult {
findings: Finding[];
}
export interface TesterResult {
status: "success" | "failed" | "timeout" | "skipped" | "running";
pocCode?: string;
executionLogs?: string[];
iterations: number;
}
export type StepStatus = "pending" | "running" | "done" | "error" | "skipped";
export interface PipelineStep {
id: string;
label: string;
status: StepStatus;
detail?: string;
}
export interface AgentState {
id: "coder" | "auditor" | "tester";
label: string;
color: string;
status: StepStatus;
steps: PipelineStep[];
}
|