/**
 * Extracts workflow metrics from LLM stream result steps.
 */
export function extractWorkflowMetrics(steps) {
    let toolCalls = 0;
    for (const step of steps) {
        toolCalls += step.toolCalls?.length ?? 0;
    }
    return {
        toolCalls,
        stepCount: steps.length,
        // TODO: Implement accurate line counting with proper diff algorithm
        // Currently returning 0 for all line metrics
        linesAdded: 0,
        linesEdited: 0,
        linesRemoved: 0,
    };
}
//# sourceMappingURL=workflow-metrics.js.map