( context: ExecutionContext, description: string, turnCount: number, duration: number, )
| 346 | } |
| 347 | |
| 348 | export function formatCompletionMessage( |
| 349 | context: ExecutionContext, |
| 350 | description: string, |
| 351 | turnCount: number, |
| 352 | duration: number, |
| 353 | ): string { |
| 354 | if (context.isParallelExecution) { |
| 355 | const prefix = getAgentPrefix(description); |
| 356 | return `${prefix} Complete (${turnCount} turns, ${formatDuration(duration)})`; |
| 357 | } |
| 358 | |
| 359 | if (context.useCleanOutput) { |
| 360 | return `${context.agentType.charAt(0).toUpperCase() + context.agentType.slice(1)} complete! (${turnCount} turns, ${formatDuration(duration)})`; |
| 361 | } |
| 362 | |
| 363 | return ` Claude Code completed: ${description} (${turnCount} turns) in ${formatDuration(duration)}`; |
| 364 | } |
| 365 | |
| 366 | export function formatToolUseOutput(toolName: string, input: Record<string, unknown> | undefined): string[] { |
| 367 | const lines: string[] = []; |
no test coverage detected