Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export interface ExecutionContext {
evidence_level: 'minimal' | 'standard' | 'full'
}

export type ScanInputs = Record<string, unknown>

export interface EvidenceRecord {
type: string
label?: string
Expand Down Expand Up @@ -567,7 +569,7 @@ export function getTaskDiff(taskId: string): Promise<ScanDiff> {

export function startTask(
plugin_id: string,
inputs: Record<string, unknown>,
inputs: ScanInputs,
consent_granted: boolean,
preset?: string,
execution_context?: Partial<ExecutionContext>,
Expand Down Expand Up @@ -626,7 +628,7 @@ export function streamTask(taskId: string, onEvent: (ev: MessageEvent) => void)
}
export interface WorkflowStep {
plugin_id: string
inputs: Record<string, unknown>
inputs: ScanInputs
preset?: string
execution_context?: ExecutionContext
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Scans.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useRef } from "react";
import { useNavigate } from "react-router-dom";
import { motion, AnimatePresence, type Variants } from "framer-motion";
import { API_BASE, deleteTask, clearAllTasks, bulkDeleteTasks, startTask, ExecutionContext } from "../api";
import { API_BASE, deleteTask, clearAllTasks, bulkDeleteTasks, startTask, ExecutionContext, ScanInputs } from "../api";
import { routePath } from "../routes";
import {
parseDateSafe,
Expand All @@ -24,7 +24,7 @@ interface Task {
completed_at?: string;
duration_seconds?: number;
error_message?: string;
inputs?: any;
inputs?: ScanInputs;
preset?: string;
execution_context?: ExecutionContext;
queue_position?: number;
Expand Down
Loading