linXiv frontend (TS/JS)
    Preparing search index...

    Interface DocOpenPayload

    The document/project payload the host mounts into the editor.

    interface DocOpenPayload {
        files: Record<string, string>;
        mainFile: string;
        projectId: number;
        projectName: string;
    }
    Index
    files: Record<string, string>
    mainFile: string
    projectId: number

    Stable host-side project identity (the note id). The editor keys its doc:open idempotency guard on THIS: (projectName, mainFile) collides trivially (two "Untitled" projects, both main.tex), so a real switch would read as a re-send and a later save would write the wrong project.

    projectName: string