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: add TypeScript wrappers for Rust commands
nash_su85735896a279
diff --git a/src/commands/fs.ts b/src/commands/fs.tsnew file mode 100644index 00000000..255dddbd--- /dev/null+++ b/src/commands/fs.ts@@ -0,0 +1,29 @@+import { invoke } from "@tauri-apps/api/core"+import type { FileNode, WikiProject } from "@/types/wiki"++export async function readFile(path: string): Promise<string> {+ return invoke<string>("read_file", { path })+}++export async function writeFile(path: string, contents: string): Promise<void> {+ return invoke<void>("write_file", { path, contents })+}++export async function listDirectory(path: string): Promise<FileNode[]> {+ return invoke<FileNode[]>("list_directory", { path })+}++export async function createDirectory(path: string): Promise<void> {+ return invoke<void>("create_directory", { path })+}++export async function createProject(+ name: string,+ path: string,+): Promise<WikiProject> {+ return invoke<WikiProject>("create_project", { name, path })+}++export async function openProject(path: string): Promise<WikiProject> {+ return invoke<WikiProject>("open_project", { path })+}