diff --git a/frontend/src/flow/Inspector.tsx b/frontend/src/flow/Inspector.tsx index 69ab6ab..aedec0d 100644 --- a/frontend/src/flow/Inspector.tsx +++ b/frontend/src/flow/Inspector.tsx @@ -2,6 +2,7 @@ import { useState } from "react"; import { Edge, Node } from "reactflow"; import { AgentNodeData, NODE_TYPES } from "./types"; import type { Gateway } from "./gateways"; +import { TEMPLATES, Workflow } from "./workflows"; interface Props { node: Node | null; @@ -10,9 +11,20 @@ interface Props { gateways?: Gateway[]; onChange: (id: string, data: Partial) => void; onDelete: (id: string) => void; + activeWorkflowId?: string | null; + workflows?: Workflow[]; } -export function Inspector({ node, edges, nodes, gateways = [], onChange, onDelete }: Props) { +export function Inspector({ + node, + edges, + nodes, + gateways = [], + onChange, + onDelete, + activeWorkflowId = null, + workflows = [], +}: Props) { const [confirming, setConfirming] = useState(false); if (!node) { @@ -48,7 +60,26 @@ export function Inspector({ node, edges, nodes, gateways = [], onChange, onDelet {meta.configFields.map((f) => (