{#if phase === "choice"}

{translate("Pseudonyms include a public salt, so guessed paths can be checked. Original names include private filenames. Reports omit file contents and credentials.")}

{options?.kind === "usage" ? translate("Read available local revisions and report their Chunk references. Settings are left unchanged.") : translate("Inspect normal-file Metadata, current conflicts, and suspect content against the Vault. Remote inspection supports CouchDB. Older history is excluded; findings do not authorise deletion.")}

{translate("Names in this report")}
{#if options?.kind === "integrity"} {/if}
{:else if phase === "running"}
{#if cancelling}

{translate("Cancelling inspection…")}

{/if} {:else if phase === "result" && output}

{statusText}

{output.nameMode === "pseudonym" ? translate("This report uses temporary pseudonyms. Counts and relationships remain visible.") : translate("This report contains original paths and identifiers. Review them before sharing.")}

{#if options?.kind === "usage" && output.status !== "complete"}

{translate("Partial Usage results are available as JSON so their coverage and reasons stay with the rows.")}

{/if}
{translate("Report format")}
{#each output.artifacts as artifact} {/each}

{actionStatus}

{:else if phase === "failed"}

{translate("The inspection could not finish. Close this dialogue and try again after database startup.")}

{/if}