(goal: GoalSnapshot | null)
| 91 | } |
| 92 | |
| 93 | export function formatGoalSummaryText(goal: GoalSnapshot | null): string { |
| 94 | if (goal === null) return 'Goal: no goal found.'; |
| 95 | const parts = [`Goal [${goal.status}]`]; |
| 96 | if (goal.terminalReason !== undefined) parts.push(goal.terminalReason); |
| 97 | return `${parts.join(': ')} (turns: ${goal.turnsUsed}, tokens: ${goal.tokensUsed})`; |
| 98 | } |
no test coverage detected