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

    Interface FsResponder

    Host-side handler for FS-adapter RPC, mirroring the HostFsAdapter/FsDirHandle surface the editor consumes. Each method returns its matching FsResult variant (or throws — serialized into a texbrain:fs:result { ok: false }).

    interface FsResponder {
        list(path: string): Promise<{ entries: DirEntry[]; kind: "list" }>;
        mkdir(path: string): Promise<{ kind: "ok" }>;
        readFile(
            path: string,
        ): Promise<{ binary: boolean; data: string; kind: "readFile" }>;
        remove(path: string, recursive: boolean): Promise<{ kind: "ok" }>;
        writeFile(
            path: string,
            data: string,
            binary: boolean,
        ): Promise<{ kind: "ok" }>;
    }

    Implemented by

    Index