LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
import { create } from "zustand"
import type { FileChangeTask } from "@/commands/file-sync"
interface FileSyncState {
tasks: FileChangeTask[]
running: boolean
lastError: string | null
setTasks: (tasks: FileChangeTask[]) => void
setRunning: (running: boolean) => void
setLastError: (error: string | null) => void
clear: () => void
}
export const useFileSyncStore = create<FileSyncState>((set) => ({
tasks: [],
running: false,
lastError: null,
setTasks: (tasks) => set({ tasks }),
setRunning: (running) => set({ running }),
setLastError: (lastError) => set({ lastError }),
clear: () => set({ tasks: [], running: false, lastError: null }),
}))