From 54c4d3cf93c708c9b5ba906c5a9824bc0cde0a86 Mon Sep 17 00:00:00 2001 From: Mika Kuns Date: Tue, 14 Apr 2026 11:38:39 +0200 Subject: [PATCH] feat(worker): extend RunResult with structured output, session ID, and token metrics Co-Authored-By: Claude Opus 4.6 (1M context) --- src/ClaudeDo.Worker/Runner/RunResult.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ClaudeDo.Worker/Runner/RunResult.cs b/src/ClaudeDo.Worker/Runner/RunResult.cs index bed0cff..07d3010 100644 --- a/src/ClaudeDo.Worker/Runner/RunResult.cs +++ b/src/ClaudeDo.Worker/Runner/RunResult.cs @@ -5,6 +5,11 @@ public sealed class RunResult public required int ExitCode { get; init; } public string? ResultMarkdown { get; init; } public string? ErrorMarkdown { get; init; } + public string? StructuredOutputJson { get; init; } + public string? SessionId { get; init; } + public int TurnCount { get; init; } + public int TokensIn { get; init; } + public int TokensOut { get; init; } public bool IsSuccess => ExitCode == 0 && ResultMarkdown is not null; }