feat(audit): 审计修复第四轮 — 跨会话搜索、LLM压缩集成、Presentation渲染器
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- S9: MessageSearch 新增 Session/Global 双模式,Global 调用 VikingStorage memory_search
- M4b: LLM 压缩器集成到 kernel AgentLoop,支持 use_llm 配置切换
- M4c: 压缩时自动提取记忆到 VikingStorage (runtime + tauri 双路径)
- H6: 新增 ChartRenderer(recharts)、Document/Slideshow 完整渲染
- 累计修复 23 项,整体完成度 ~72%,真实可用率 ~80%
This commit is contained in:
iven
2026-03-27 11:44:14 +08:00
parent 7ae6990c97
commit 30b2515f07
16 changed files with 2121 additions and 245 deletions

View File

@@ -347,8 +347,8 @@ export const reflection = {
return invoke('reflection_reflect', { agentId, memories });
},
async getHistory(limit?: number): Promise<ReflectionResult[]> {
return invoke('reflection_get_history', { limit });
async getHistory(limit?: number, agentId?: string): Promise<ReflectionResult[]> {
return invoke('reflection_get_history', { limit, agentId });
},
async getState(): Promise<ReflectionState> {

View File

@@ -691,7 +691,7 @@ const fallbackReflection = {
return result;
},
async getHistory(limit?: number): Promise<ReflectionResult[]> {
async getHistory(limit?: number, _agentId?: string): Promise<ReflectionResult[]> {
const l = limit ?? 10;
return fallbackReflection._history.slice(-l).reverse();
},
@@ -1318,13 +1318,13 @@ export const intelligenceClient = {
return fallbackReflection.reflect(agentId, memories);
},
getHistory: async (limit?: number): Promise<ReflectionResult[]> => {
getHistory: async (limit?: number, agentId?: string): Promise<ReflectionResult[]> => {
if (isTauriRuntime()) {
return tauriInvoke('reflection.getHistory', () =>
intelligence.reflection.getHistory(limit)
intelligence.reflection.getHistory(limit, agentId)
);
}
return fallbackReflection.getHistory(limit);
return fallbackReflection.getHistory(limit, agentId);
},
getState: async (): Promise<ReflectionState> => {