MCPcopy Create free account
hub / github.com/coder/mux / withStepRecord

Method withStepRecord

src/node/services/workflows/WorkflowRunStore.ts:968–973  ·  view source on GitHub ↗
(run: WorkflowRunRecord, record: WorkflowStepRecord)

Source from the content-addressed store, hash-verified

966 }
967
968 private withStepRecord(run: WorkflowRunRecord, record: WorkflowStepRecord): WorkflowRunRecord {
969 return WorkflowRunRecordSchema.parse({
970 ...run,
971 steps: mergeWorkflowStepRecords(run.steps, record),
972 });
973 }
974
975 private async readEvents(runId: string): Promise<WorkflowRunEvent[]> {
976 const events = await readJsonLines(this.eventsFile(runId), WorkflowRunEventSchema);

Calls 2

mergeWorkflowStepRecordsFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected