{#if $activityLog.length === 0}

Waiting for activity…

{:else}
{#each $activityLog as entry, i (entry.id)} {@const isLast = i === $activityLog.length - 1} {@const icon = typeIcon(entry.type)} {@const isOpen = expanded.has(entry.id)} {@const time = formatTime(entry.timestamp)}
{#if !isLast}
{/if} {#if isOpen}
{entry.status} {#if time}{time}{/if} {#if entry.toolName}{entry.toolName}{/if}
{#if entry.args}

Called with

{prettyPrint(entry.args)}
{/if} {#if entry.detail}
{#if entry.args}

{entry.status === 'failed' ? 'Error' : 'Result'}

{/if}
{prettyPrint(entry.detail)}
{/if} {#if !entry.args && !entry.detail}

No further detail for this step.

{/if}
{/if}
{/each}
{/if}