{path ? `${path.split("/").at(-1)} · ` : ""}{name || "repository"} · lodge {#snippet slashed( value: string )} {#each value.split("/") as part, index (index)} {index ? "/" : ""}{part} {/each} {/snippet}
{#if problem} {/if} {#if bed}

Depth {bed.seq}{bed.seq === latest ? ", the surface" : ""}

{bed.machine} on {bed.main_branch || "detached"} {shortSha(bed.main_sha)}

    {#each bed.changes as change (fileId(change.space, change.path))}
  • {changeKind(change)} {#if change.hash} {@render slashed(change.path)} {:else} {@render slashed(change.path)} {/if}
  • {/each}
{#if bed.seq !== latest} Back to the surface {/if}
{/if} {#each spaces as group (group)}

{group === SHARED ? "Shared notes" : `Branch ${spaceName(group)}`}

{:else} {#if loaded && !problem}

{latest ? "Nothing had been written yet at this depth. Drag the column up towards the surface." : "This repository has no revisions yet. Write a file under docs/agents on any connected machine and it lands here within seconds."}

{/if} {/each}
Delete this repository

Erases all {latest} revisions from the server. Files on your machines stay where they are, and a machine that still syncs this repository starts a new history. Type {name} to confirm.

{#if path} Files

{path.split("/").at(-1)}

{space === SHARED ? "shared" : `branch ${spaceName(space)}`} {path} {#if written} written at depth {written.seq} by {written.machine}, , on {written.main_branch || "detached"} {shortSha(written.main_sha)} {/if}

{#if entry}
{#each [ ["read", "Read"], ["changes", "Changes"], ["source", "Source"], ] as [id, title] (id)} {#if markdown || id !== "read"} {title} {/if} {/each} {#if restorable} {#if confirming === "restore"} Put depth {written?.seq} back on the surface? {:else} {/if} {/if}
{#if opened === null}
{:else if opened.now === null}

This file is binary, so there is nothing to read here. Fetch it with lodge show {at} {path}.

{:else} {/if} {:else if repoState}

{path.split("/").at(-1)} does not exist at depth {at}. {#if fileHistory.length} It was last written at depth {fileHistory[0].seq}. {/if}

{/if} {:else}

Pick a file to pull its core from depth {at}. Drag along the column, or use the arrow keys, to read the notes as they were at any revision.

{/if}