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
Release 0.4.13
nash_sud8700732371a
diff --git a/package.json b/package.jsonindex 5875cbd7..b1e8d2ac 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "llm-wiki","private": true,- "version": "0.4.12",+ "version": "0.4.13","type": "module","scripts": {"dev": "vite",diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex 54677142..29fa2705 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -4420,7 +4420,7 @@ checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"[[package]]name = "llm-wiki"-version = "0.4.12"+version = "0.4.13"dependencies = ["arrow-array","arrow-schema",diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex ad3a1cee..c773adb7 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "llm-wiki"-version = "0.4.12"+version = "0.4.13"description = "LLM Wiki - A personal knowledge base for LLM concepts"authors = []edition = "2021"diff --git a/src-tauri/src/commands/codex_cli.rs b/src-tauri/src/commands/codex_cli.rsindex a8be6215..5d4af4ae 100644--- a/src-tauri/src/commands/codex_cli.rs+++ b/src-tauri/src/commands/codex_cli.rs@@ -65,6 +65,16 @@ fn find_codex_command() -> Result<PathBuf, String> {which::which("codex").map_err(|_| "`codex` not found on PATH".to_string())}+fn suppress_windows_console(_cmd: &mut Command) {+ #[cfg(windows)]+ {+ use std::os::windows::process::CommandExt;++ const CREATE_NO_WINDOW: u32 = 0x08000000;+ _cmd.creation_flags(CREATE_NO_WINDOW);+ }+}+#[tauri::command]pub async fn codex_cli_detect() -> Result<DetectResult, String> {let path = match find_codex_command() {@@ -80,11 +90,9 @@ pub async fn codex_cli_detect() -> Result<DetectResult, String> {};let path_str = path.to_string_lossy().to_string();- let output = tokio::time::timeout(- Duration::from_secs(3),- Command::new(&path).arg("--version").output(),- )- .await;+ let mut cmd = Command::new(&path);+ suppress_windows_console(&mut cmd);+ let output = tokio::time::timeout(Duration::from_secs(3), cmd.arg("--version").output()).await;match output {Ok(Ok(out)) if out.status.success() => {@@ -138,6 +146,7 @@ pub async fn codex_cli_spawn(let codex = find_codex_command()?;let mut cmd = Command::new(&codex);+ suppress_windows_console(&mut cmd);cmd.arg("-a").arg("never").arg("exec")diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 91af7868..dc8ed0b3 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -1,7 +1,7 @@{"$schema": "https://schema.tauri.app/config/2","productName": "LLM Wiki",- "version": "0.4.12",+ "version": "0.4.13","identifier": "com.llmwiki.app","build": {"beforeDevCommand": "npm run dev",diff --git a/src/lib/changelog.ts b/src/lib/changelog.tsindex 70cdc10d..571e8bc2 100644--- a/src/lib/changelog.ts+++ b/src/lib/changelog.ts@@ -25,6 +25,22 @@ export interface ChangelogEntry {}export const CHANGELOG: ChangelogEntry[] = [+ {+ version: "0.4.13",+ date: "2026-05-24",+ highlights: {+ en: [+ "Improved local API and search reliability, including shared backend search behavior.",+ "Fixed source handling edge cases for nested folders, non-English paths, and Windows compatibility.",+ "Fixed search provider configuration and Codex CLI Windows behavior issues.",+ ],+ zh: [+ "改进本地 API 与搜索稳定性,包括统一后端搜索能力。",+ "修复嵌套资料文件夹、非英文路径和 Windows 兼容相关的资料处理问题。",+ "修复搜索 Provider 配置和 Codex CLI 在 Windows 下的体验问题。",+ ],+ },+ },{version: "0.4.12",date: "2026-05-19",diff --git a/src/lib/source-identity.test.ts b/src/lib/source-identity.test.tsindex beb38ff9..92041a85 100644--- a/src/lib/source-identity.test.ts+++ b/src/lib/source-identity.test.ts@@ -48,4 +48,21 @@ describe("source identity helpers", () => {sourceSummarySlugFromIdentity("a--b/config.yaml"),)})++ it("caps nested source summary slugs to avoid Windows path length failures", () => {+ const slug = sourceSummarySlugFromIdentity("2024年/污水处理/反硝化除磷技术研究报告.pdf")++ expect(slug.length).toBeLessThanOrEqual(120)+ expect(`wiki/sources/${slug}.md`.length).toBeLessThanOrEqual(136)+ expect(slug).toMatch(/--[a-z0-9]+$/)+ })++ it("keeps stable hashes when truncating long nested source slugs", () => {+ const first = sourceSummarySlugFromIdentity("2024年/污水处理/反硝化除磷技术研究报告.pdf")+ const second = sourceSummarySlugFromIdentity("2024年/污水处理/反硝化除磷技术研究报告修订版.pdf")++ expect(first).not.toBe(second)+ expect(first.length).toBeLessThanOrEqual(120)+ expect(second.length).toBeLessThanOrEqual(120)+ })})diff --git a/src/lib/source-identity.ts b/src/lib/source-identity.tsindex 21031b06..41367bc1 100644--- a/src/lib/source-identity.ts+++ b/src/lib/source-identity.ts@@ -2,6 +2,7 @@ import { getFileName, normalizePath } from "@/lib/path-utils"const RAW_SOURCES_PREFIX = "raw/sources/"const RAW_SOURCES_MARKER = "/raw/sources/"+const MAX_SOURCE_SUMMARY_SLUG_LENGTH = 120export function sourceIdentityForPath(projectPath: string, sourcePath: string): string {const pp = normalizePath(projectPath).replace(/\/+$/, "")@@ -45,6 +46,7 @@ export function sourceSummarySlugFromIdentity(sourceIdentity: string): string {return parts[0] || "source"}+ const hash = stableSlugHash(sourceIdentity)const slug = parts.map((part) => {const encoded = encodeURIComponent(part).replace(/[!'()*]/g,@@ -52,7 +54,20 @@ export function sourceSummarySlugFromIdentity(sourceIdentity: string): string {)return `${encoded.length}-${encoded}`}).join("--")- return `${slug}--${stableSlugHash(sourceIdentity)}`+ const fullSlug = `${slug}--${hash}`+ if (fullSlug.length <= MAX_SOURCE_SUMMARY_SLUG_LENGTH) {+ return fullSlug+ }++ const readableLimit = MAX_SOURCE_SUMMARY_SLUG_LENGTH - hash.length - 2+ const readablePrefix = trimIncompletePercentEncoding(slug.slice(0, readableLimit))+ .replace(/-+$/, "")+ .replace(/%$/, "")+ return `${readablePrefix || "source"}--${hash}`+}++function trimIncompletePercentEncoding(value: string): string {+ return value.replace(/%(?:[0-9A-F])?$/i, "")}function stableSlugHash(value: string): string {