MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / readWorkflowRun

Function readWorkflowRun

src/utils/workflowRuns.ts:99–115  ·  view source on GitHub ↗
(
  rootDir: string,
  runId: string,
)

Source from the content-addressed store, hash-verified

97}
98
99async function readWorkflowRun(
100 rootDir: string,
101 runId: string,
102): Promise<WorkflowRunRecord | null> {
103 try {
104 const parsed = safeParseJSON(
105 await readFile(
106 join(rootDir, WORKFLOW_RUNS_REL, `${runId}.json`),
107 'utf-8',
108 ),
109 false,
110 )
111 return normalizeWorkflowRun(parsed)
112 } catch {
113 return null
114 }
115}
116
117export async function listWorkflowRuns(
118 rootDir: string = getProjectRoot(),

Callers 1

listWorkflowRunsFunction · 0.85

Calls 3

safeParseJSONFunction · 0.85
readFileFunction · 0.85
normalizeWorkflowRunFunction · 0.85

Tested by

no test coverage detected