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: default scheduled import path to project/raw
skfan1354a1b95b9723b
diff --git a/src/components/settings/sections/scheduled-import-section.tsx b/src/components/settings/sections/scheduled-import-section.tsxindex 62c284b5..7d589087 100644--- a/src/components/settings/sections/scheduled-import-section.tsx+++ b/src/components/settings/sections/scheduled-import-section.tsx@@ -110,7 +110,7 @@ export function ScheduledImportSection({ draft, setDraft }: Props) {<Inputvalue={draft.scheduledImportPath}onChange={(e) => setDraft("scheduledImportPath", e.target.value)}- placeholder="/path/to/monitor"+ placeholder={project ? `${project.path}/raw` : "/path/to/monitor"}disabled={!draft.scheduledImportEnabled}className="flex-1"/>diff --git a/src/components/settings/settings-view.tsx b/src/components/settings/settings-view.tsxindex d78baf2b..6927b5c4 100644--- a/src/components/settings/settings-view.tsx+++ b/src/components/settings/settings-view.tsx@@ -79,7 +79,11 @@ function initialDraft(scheduledImport: ReturnType<typeof useWikiStore.getState>["scheduledImportConfig"],maxHistoryMessages: number,uiLanguage: string,+ projectPath?: string,): SettingsDraft {+ // Default scheduled import path to project/raw if not set+ const defaultImportPath = scheduledImport.path || (projectPath ? `${projectPath}/raw` : "")+return {provider: llm.provider,apiKey: llm.apiKey,@@ -111,7 +115,7 @@ function initialDraft(proxyUrl: proxy.url,proxyBypassLocal: proxy.bypassLocal,scheduledImportEnabled: scheduledImport.enabled,- scheduledImportPath: scheduledImport.path,+ scheduledImportPath: defaultImportPath,scheduledImportInterval: scheduledImport.interval,uiLanguage,}@@ -119,6 +123,7 @@ function initialDraft(export function SettingsView() {const { t } = useTranslation()+ const project = useWikiStore((s) => s.project)const llmConfig = useWikiStore((s) => s.llmConfig)const setLlmConfig = useWikiStore((s) => s.setLlmConfig)const searchApiConfig = useWikiStore((s) => s.searchApiConfig)@@ -158,6 +163,7 @@ export function SettingsView() {scheduledImportConfig,maxHistoryMessages,i18n.language,+ project?.path,),)@@ -181,6 +187,7 @@ export function SettingsView() {scheduledImportConfig,maxHistoryMessages,prev.uiLanguage,+ project?.path,),)}, [@@ -192,6 +199,7 @@ export function SettingsView() {proxyConfig,scheduledImportConfig,maxHistoryMessages,+ project,])const setDraft: DraftSetter = useCallback((key, value) => {diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex bbc938ba..fe8a545e 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -202,7 +202,7 @@"description": "Automatically monitor a directory and import new or modified files at regular intervals.","enable": "Enable scheduled import","directory": "Monitor Directory",- "directoryHelp": "Files in this directory (and subdirectories) will be automatically imported. New files are copied to sources; modified files are re-ingested.",+ "directoryHelp": "Files in this directory (and subdirectories) will be automatically imported. New files are copied to sources; modified files are re-ingested. Defaults to the project's raw/ directory.","browse": "Browse","selectDirectory": "Select Directory to Monitor","interval": "Scan Interval (minutes)",diff --git a/src/i18n/zh.json b/src/i18n/zh.jsonindex d09216aa..6595da97 100644--- a/src/i18n/zh.json+++ b/src/i18n/zh.json@@ -202,7 +202,7 @@"description": "自动监控指定目录,按固定间隔导入新增或修改的文件。","enable": "启用定时导入","directory": "监控目录",- "directoryHelp": "该目录(含子目录)中的文件将被自动导入。新文件会复制到 sources;修改过的文件会重新摄入。",+ "directoryHelp": "该目录(含子目录)中的文件将被自动导入。新文件会复制到 sources;修改过的文件会重新摄入。默认为项目下的 raw/ 目录。","browse": "浏览","selectDirectory": "选择监控目录","interval": "扫描间隔(分钟)",