feat: Page AI Reasonix desktop session alignment, settings IA cleanup, knowledge RAG hardening

- ACP client/session manager: Reasonix desktop live session context
- Hermes tools: knowledge_rag tool manifest and skill updates
- Browser runtime: sidebar page AI permission/profile/render/session/tree modules
- Routes: hermes_client, hermes_tools, knowledge_rag, web_shell
- Scripts: reasonix ACP wrapper, LightRAG MCP, smoke tasks 159/558/559/561/562
- Skills: mnote-knowledge-rag and mnote-lightrag-bridge SKILL.md updates
This commit is contained in:
lix-2026
2026-06-13 22:20:01 +08:00
parent 2236a053c0
commit 4a7efd4a30
30 changed files with 5321 additions and 291 deletions
+16 -2
View File
@@ -1930,13 +1930,27 @@ pub async fn office_preview_page(Query(query): Query<OfficePreviewQuery>) -> Res
}}
const buffer = await fetchArrayBuffer();
viewer.replaceChildren();
await window.docx.renderAsync(buffer, viewer, null, {{
const options = {{
className: 'mnote-docx',
inWrapper: true,
breakPages: true,
renderHeaders: true,
renderFooters: true
}});
}};
try {{
await window.docx.renderAsync(buffer, viewer, null, options);
}} catch (error) {{
if (!String(error && error.message || '').includes("reading 'type'")) {{
throw error;
}}
viewer.replaceChildren();
document.documentElement.setAttribute('data-mnote-office-preview-footnotes-disabled', 'true');
await window.docx.renderAsync(buffer.slice(0), viewer, null, {{
...options,
renderFootnotes: false,
renderEndnotes: false
}});
}}
}}
async function renderWorkbook() {{