feat(rag): harden post-LightRAG runtime
Retire legacy OCR/media/evidence fallbacks, add local-folder event bus and Page Aggregate guards, and archive completed design checklists. Validation: cargo test -p mnote-web -- --test-threads=1; cargo test --workspace -- --test-threads=1; git diff --check; codegraph sync .; codegraph_status.
This commit is contained in:
@@ -194,6 +194,19 @@
|
||||
var localRootUri = (params.get('rootUri') || '').trim()
|
||||
|| (document.body instanceof HTMLElement ? (document.body.getAttribute('data-mnote-root-uri') || '').trim() : '');
|
||||
if (localRootUri && 'EventSource' in window) {
|
||||
var localBus = window.__mnoteLocalFolderEventBus;
|
||||
if (localBus && typeof localBus.startLocalFolderWatcher === 'function') {
|
||||
var localHandle = localBus.startLocalFolderWatcher({
|
||||
rootUri: localRootUri,
|
||||
workspaceId: bootstrap.workspaceId || resolveWorkspaceId(),
|
||||
bootstrap: bootstrap
|
||||
});
|
||||
if (localHandle) {
|
||||
window.__mnoteTreeLiveEventSource = localHandle;
|
||||
applyStatus('connected');
|
||||
return;
|
||||
}
|
||||
}
|
||||
var url = new URL('/api/local-folder/events', window.location.origin);
|
||||
url.searchParams.set('rootUri', localRootUri);
|
||||
url.searchParams.set('treeLive', 'true');
|
||||
|
||||
Reference in New Issue
Block a user