{#if items.length === 0}

Waiting for activity…

{:else}
{#each items as item, i (item.kind === 'step' ? item.step.id : item.entry.id)} {@const isFirst = i === 0} {@const isLast = i === items.length - 1} {#if item.kind === 'step'} {@const st = item.step.status} {@const open = stepOpen(item.step)} {@const hasDetail = !!item.step.detail?.trim()} {@const expandable = item.tools.length > 0 || hasDetail} {@const expandedWithTools = open && item.tools.length > 0}
{#if expandedWithTools}
{#each item.tools as tool (tool.id)} {@const tOpen = expandedTools.has(tool.id)}
{#if tOpen}
{tool.status} {hhmmss(tool.timestamp)} {#if tool.toolName}{tool.toolName}{/if}
{#if tool.args}
{prettyPrint(tool.args)}
{/if} {#if tool.detail}
{prettyPrint(tool.detail)}
{/if}
{/if}
{/each}
{/if}
{:else} {@const e = item.entry} {@const Icon = entryIcon(e)} {@const eOpen = expandedTools.has(e.id)}
{#if eOpen}
{e.status} {hhmmss(e.timestamp)} {#if e.toolName}{e.toolName}{/if}
{#if e.args}
{prettyPrint(e.args)}
{/if} {#if e.detail}
{prettyPrint(e.detail)}
{/if}
{/if}
{/if} {/each}
{/if}