{#if orchestrationNodes.length === 0}

Ingen orkestreringer i denne samlingen.

Opprett en orchestration-node for å automatisere arbeidsflyter.

{:else} {#if orchestrationNodes.length > 1}
{:else}
{orchestrationNodes[0]?.title ?? 'Orkestrering'}
{/if}
{#if compiling} Kompilerer... {:else if compileResult && !hasErrors} OK {:else if hasErrors} {errorCount} feil {/if}
{#if activeTab === 'enkel'}
{#if compileResult?.diagnostics && compileResult.diagnostics.length > 0}
{#each compileResult.diagnostics as diag (diag.line + '-' + diag.severity)}
{diag.severity === 'Ok' ? '\u2713' : '\u2717'} L{diag.line} {#if diag.severity === 'Ok' && diag.compiled_output} {diag.compiled_output} {:else if diag.severity === 'Error'} {diag.message} {#if diag.suggestion} Mente du: "{diag.suggestion}"? {/if} {/if}
{/each}
{/if}
{:else if activeTab === 'teknisk'}
{technicalView}
{:else if activeTab === 'kompilert'}
{compiledJson}
{/if}
{#if showAiAssist}
AI-assistent
{#if aiError}
{aiError}
{/if}
{/if}
{#if lastTestJobId} Jobb: {lastTestJobId.slice(0, 8)}... {/if}
{#if showHistory}
Kjørehistorikk
{#if logEntries.length === 0}

Ingen kjøringer ennå.

{:else}
{#each logEntries as entry (entry.id)}
{entry.status === 'ok' ? '\u2713' : '\u2717'} {#if entry.is_fallback}FB{:else}#{entry.step_number}{/if} {entry.tool_binary} {#if entry.duration_ms != null} {entry.duration_ms}ms {/if} {formatTime(entry.created_at)} {#if entry.error_msg}
{entry.error_msg}
{/if}
{/each}
{/if}
{/if} {/if}