MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / useStepFiles

Function useStepFiles

frontend/src/features/trace/api/trace-core.ts:59–69  ·  view source on GitHub ↗
(traceId: string | undefined, stepId: string | undefined)

Source from the content-addressed store, hash-verified

57}
58
59export function useStepFiles(traceId: string | undefined, stepId: string | undefined) {
60 return useQuery<StepFile[]>({
61 queryKey: traceKeys.stepFiles(traceId ?? '', stepId ?? ''),
62 queryFn: () =>
63 apiClient.get<StepFile[]>(
64 `/api/traces/${traceId}/steps/${stepId}/files`,
65 ),
66 enabled: !!traceId && !!stepId,
67 staleTime: 60_000,
68 })
69}
70
71/** Trace-root files: README.md, memory.md, scripts/*, resources/*, styles/*.
72 * Guards against an older `trace serve` that doesn't have this endpoint —

Callers 2

StepCardFunction · 0.90
StepDocsDrawerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…