1. 1{t('wiz.stepSource')}
  2. 2{t('wiz.stepReport')}
  3. 3{t('wiz.stepResult')}
{#if error} {/if} {#if step === 'source'}
{#if mode === 'scan'} {:else}
{t('wiz.pickFiles')} void readPickedFiles(e.currentTarget.files)} /> {t('wiz.pickFilesHint')} {#if reading}

{t('common.loading')}…

{/if} {#if inputFiles.length}

{t('wiz.parsed', { n: inputFiles.length })}

{/if} {#if nonUiSkipped.length}

{t('wiz.notUi', { n: nonUiSkipped.length })}

{/if}
{/if} {#if mode === 'files' && endpoints.length > 0} {/if} {:else if step === 'report' && report}
{t('wiz.total', { n: report.total })} {t('wiz.ok', { n: report.ok })} {t('wiz.warn', { n: report.warn })} {t('wiz.fail', { n: report.fail })} {t('wiz.confirmCount', { n: report.needs_confirmation })} {t('wiz.importable', { n: report.importable })}

{t('wiz.reportHint')}

(rSearch = e.currentTarget.value)} placeholder={t('wiz.searchPh')} aria-label={t('wiz.searchPh')} />
{#each filteredFiles.slice(0, visible) as f (rk(f))}
{#if mode === 'files'} { const next = new Set(excludedKeys); if (e.currentTarget.checked) next.delete(rk(f)); else next.add(rk(f)); excludedKeys = next; }} /> {/if}
{f.name} {#if f.suggested?.model_family} {f.suggested.model_family} {/if} {#if f.suggested} {usageLabel(f.suggested.usage)} {/if} {#if f.status === 'warn'} {t('wiz.warnTag')} {/if} {#if f.needs_confirmation} {t('wiz.confirmTag')} {/if} {#if f.preflight && !f.preflight.ok} x.message).join('\n')}> {t('wiz.preflightTag')} {/if}
{#if f.source_path}
{f.source_path}
{/if} {#if !f.importable && f.skip_reason}
{t('wiz.skipReason', { reason: skipText(f.skip_reason) })}
{/if} {#if needsUsagePick(f)} {/if} {#if f.issues.length} {#if expandedIssues.has(rk(f))}
    {#each f.issues as iss, i (`${rk(f)}#${i}`)}
  • {iss.node_id} {iss.message}
  • {/each}
{/if} {/if}
{/each}
{#if filteredFiles.length > visible} {/if} {:else if step === 'result' && result}
{t('wiz.imported', { n: result.imported })} {t('wiz.skipped', { n: result.skipped })} {#if result.files.some((f) => f.result === 'failed')} {t('wiz.fail', { n: result.files.filter((f) => f.result === 'failed').length })} {/if}

{t('wiz.resultNote')}

{#if usageApplied > 0}

{t('wiz.usageApplied', { n: usageApplied })}

{/if}
{#each result.files as f (rk(f))}
{f.name} {#if f.result === 'imported'} {t('wiz.importedTag', { id: f.id ?? '?' })} {:else if f.skip_reason === 'conflict' || f.result === 'skipped'} {skipText(f.skip_reason)} {:else} {skipText(f.skip_reason)} {/if}
{#if f.source_path}
{f.source_path}
{/if}
{/each}
{/if} {#snippet footer()} {#if step === 'source'} {:else if step === 'report'} {t('wiz.selectedN', { n: selectedCount })} {#if blockedCount}· {t('wiz.excludedM', { m: blockedCount })}{/if} {:else} {/if} {/snippet}