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
fix: handle Windows paths with forward slashes
skfan135eb42ea48ed20
diff --git a/src/App.tsx b/src/App.tsxindex c5f58a07..d0ee6541 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -283,7 +283,7 @@ function App() {if (savedScheduledImport) {// Migrate relative path to absolute (backward compatibility)let path = savedScheduledImport.path- if (path && !path.startsWith("/") && !path.match(/^[a-zA-Z]:\\/)) {+ if (path && !path.startsWith("/") && !path.match(/^[a-zA-Z]:[/\\]/)) {path = `${proj.path}/${path}`}useWikiStore.getState().setScheduledImportConfig({diff --git a/src/components/settings/settings-view.tsx b/src/components/settings/settings-view.tsxindex 7dba7177..bf0c4940 100644--- a/src/components/settings/settings-view.tsx+++ b/src/components/settings/settings-view.tsx@@ -87,7 +87,7 @@ function initialDraft(let displayPath = scheduledImport.path || ""if (!displayPath && projectPath) {displayPath = `${projectPath}/raw/sources`- } else if (displayPath && projectPath && !displayPath.startsWith("/") && !displayPath.match(/^[a-zA-Z]:\\/)) {+ } else if (displayPath && projectPath && !displayPath.startsWith("/") && !displayPath.match(/^[a-zA-Z]:[/\\]/)) {// Legacy relative path - prepend project path for displaydisplayPath = `${projectPath}/${displayPath}`}diff --git a/src/lib/scheduled-import.ts b/src/lib/scheduled-import.tsindex 5d70fc17..7f6b184c 100644--- a/src/lib/scheduled-import.ts+++ b/src/lib/scheduled-import.ts@@ -209,7 +209,7 @@ export function resolveImportPath(projectPath: string, configPath: string): stri// Default to "raw/sources" if path is emptyconst path = configPath || "raw/sources"// If path is already absolute, use it as-is- if (path.startsWith("/") || path.match(/^[a-zA-Z]:\\/)) {+ if (path.startsWith("/") || path.match(/^[a-zA-Z]:[/\\]/)) {return normalizePath(path)}// Otherwise, treat as relative to project path