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
feat: define shared WikiProject and FileNode types
nash_su0685a4aaedac
diff --git a/src-tauri/src/types/mod.rs b/src-tauri/src/types/mod.rsnew file mode 100644index 00000000..0124c4c3--- /dev/null+++ b/src-tauri/src/types/mod.rs@@ -0,0 +1 @@+pub mod wiki;diff --git a/src-tauri/src/types/wiki.rs b/src-tauri/src/types/wiki.rsnew file mode 100644index 00000000..ff082d18--- /dev/null+++ b/src-tauri/src/types/wiki.rs@@ -0,0 +1,16 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, Serialize, Deserialize)]+pub struct WikiProject {+ pub name: String,+ pub path: String,+}++#[derive(Debug, Clone, Serialize, Deserialize)]+pub struct FileNode {+ pub name: String,+ pub path: String,+ pub is_dir: bool,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub children: Option<Vec<FileNode>>,+}diff --git a/src/types/wiki.ts b/src/types/wiki.tsnew file mode 100644index 00000000..9ecbf1f2--- /dev/null+++ b/src/types/wiki.ts@@ -0,0 +1,17 @@+export interface WikiProject {+ name: string+ path: string+}++export interface FileNode {+ name: string+ path: string+ is_dir: boolean+ children?: FileNode[]+}++export interface WikiPage {+ path: string+ content: string+ frontmatter: Record<string, unknown>+}