MCPcopy Create free account
hub / github.com/Qinbf/groundmap / edgeColor

Function edgeColor

tools/debug-console/components/FlowGraph.tsx:203–219  ·  view source on GitHub ↗
(stepType?: string, isGhost?: boolean, isSynthetic?: boolean)

Source from the content-addressed store, hash-verified

201}
202
203function edgeColor(stepType?: string, isGhost?: boolean, isSynthetic?: boolean): string {
204 if (isGhost) return "#64748b";
205 if (isSynthetic) return "#ea580c"; // orange — 与 synthetic 节点橙色统一
206 switch (stepType) {
207 case "INTENT": return "#6366f1";
208 case "STRATEGY": return "#a855f7";
209 case "SEARCH": return "#2563eb";
210 case "EVAL": return "#0891b2";
211 case "READ": return "#16a34a";
212 case "EXTRACT": return "#84cc16";
213 case "LINK": return "#0d9488";
214 case "DECIDE": return "#ea580c";
215 case "CONFLICT": return "#d97706";
216 case "ANSWER": return "#b45309";
217 default: return "#475569";
218 }
219}
220
221export function FlowGraph(props: Props) {
222 return (

Callers 1

FlowGraphInnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected