(result: ExecuteResult)
| 89 | * or result content itself. |
| 90 | */ |
| 91 | const annotateExecuteOutcome = (result: ExecuteResult) => |
| 92 | Effect.annotateCurrentSpan({ |
| 93 | "mcp.execute.result_chars": measureResultChars(result.result), |
| 94 | "mcp.execute.log_chars": result.logs?.reduce((total, line) => total + line.length, 0) ?? 0, |
| 95 | "mcp.execute.emitted": result.output?.length ?? 0, |
| 96 | ...(result.error |
| 97 | ? { "mcp.execute.outcome": "fail", "mcp.execute.error_kind": result.errorKind ?? "unknown" } |
| 98 | : { "mcp.execute.outcome": "ok" }), |
| 99 | }); |
| 100 | |
| 101 | const annotateExecutionOutcome = (execution: ExecutionResult) => |
| 102 | execution.status === "paused" |
no test coverage detected