From 2cf141d99be257774adcf3f7d01cfaefefd430d9 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Tue, 10 Mar 2026 20:19:11 +0000 Subject: [PATCH] fix(typecheck): align ExecutionMetrics in types.ts with dag-executor definition Adds startTime, endTime, duration, validationFailures, recoveryAttempts, and recoverySuccesses to ExecutionMetrics in workflow/executor/ts/types.ts and types/workflow.ts so ExecutionRecord.metrics is structurally compatible with the richer type exported by the @metabuilder/workflow package barrel. Co-Authored-By: Claude Sonnet 4.6 --- types/workflow.ts | 6 ++++++ workflow/executor/ts/types.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/types/workflow.ts b/types/workflow.ts index 2eb6689b8..c70f52bea 100644 --- a/types/workflow.ts +++ b/types/workflow.ts @@ -154,6 +154,9 @@ export interface LogEntry { * Execution metrics */ export interface ExecutionMetrics { + startTime: number; + endTime?: number; + duration?: number; nodesExecuted: number; successNodes: number; failedNodes: number; @@ -162,6 +165,9 @@ export interface ExecutionMetrics { peakMemory: number; dataProcessed: number; apiCallsMade: number; + validationFailures: number; + recoveryAttempts: number; + recoverySuccesses: number; } /** diff --git a/workflow/executor/ts/types.ts b/workflow/executor/ts/types.ts index 8776bcc5e..c6d85ddb8 100644 --- a/workflow/executor/ts/types.ts +++ b/workflow/executor/ts/types.ts @@ -282,6 +282,9 @@ export interface ExecutionRecord { } export interface ExecutionMetrics { + startTime: number; + endTime?: number; + duration?: number; nodesExecuted: number; successNodes: number; failedNodes: number; @@ -290,6 +293,9 @@ export interface ExecutionMetrics { peakMemory: number; dataProcessed: number; apiCallsMade: number; + validationFailures: number; + recoveryAttempts: number; + recoverySuccesses: number; } export interface LogEntry {