feat: advance local-first conflict and search indexing

- 补齐本地 markdown 冲突处理与合并写回路径\n- 增加本地搜索索引路由、刷新与 browser smoke\n- 同步更新 current-priority checklist 的阶段进度
This commit is contained in:
lix-2026
2026-05-19 09:38:57 +08:00
parent 8ed594f1c2
commit 1b5d6a2a2d
12 changed files with 1622 additions and 49 deletions
+13
View File
@@ -13,6 +13,7 @@ mod kernel;
mod local_folder_events;
mod local_folder_source;
mod local_markdown_parser;
mod local_search_index;
mod media;
mod mindmap_api;
mod mindmap_shell;
@@ -89,6 +90,18 @@ pub fn build_router(state: AppState) -> Router {
get(web_shell::editor_image_placeholder_asset),
)
.route("/api/search/documents", post(search::documents))
.route(
"/api/search/local-index/refresh",
post(search::refresh_local_index),
)
.route(
"/api/search/local-index/backlinks",
get(search::local_index_backlinks),
)
.route(
"/api/search/local-index/tags",
get(search::local_index_tags),
)
.route("/api/gateway/health", get(gateway::gateway_health))
.route("/api/dev/hot-reload", get(dev_hot::hot_reload))
.route("/api/runtime/config", get(session::runtime_config))