Commit Graph

10 Commits

Author SHA1 Message Date
1a4a8dce98 feat: 移植6个缺失工具定义和handler到AIAgentService
- memory_introspect — 查看记忆状态统计
- memory_archive — 归档旧记忆
- memory_cleanup — 清理已删除数据
- memory_query_archived — 查询已归档记忆
- context_rewrite — 压缩工具调用上下文
- persona_remove — 删除单条人设属性

同时在GraphMemoryService添加:
- queryArchived() 方法
- personaRemove() 方法

更新系统提示词,加入工具调用规则和context_rewrite使用说明
2026-04-30 16:44:27 +08:00
c8571f9d5f perf: removeOrphanNodes O(N²) → O(N) 批量查询优化
- 改为先批量查询所有 active 关系的节点 ID 集合
- 再遍历所有节点找出孤儿节点
- 从 O(N×2) 查询降到 O(1) 批量 + O(N) 遍历
- 显著提升 cleanup / purge 性能
2026-04-30 15:16:19 +08:00
dd0ab4dcbe perf: recall BFS N+1 优化 + timeRange 过滤支持
- GraphDatabase.recall() 添加 timeRange.days 参数,计算 minDateBucket 过滤
- getRelationsForNodes() 批量预加载节点名称缓存,减少 N+1 查询
- 关系查询传入 minDateBucket,支持按时间范围过滤关系
- BFS 扩展节点时优先从缓存获取,避免重复查询数据库
2026-04-30 15:09:53 +08:00
ba44d50d7a fix: AIAgentService getContext(this) 改为外部传入,Index 添加 aboutToDisappear 释放 display 监听
- AIAgentService: 添加 appContext 字段,构造函数接收 Context 参数
- ChatPage: 创建 AIAgentService 时传入 getContext(this)
- Index: 添加 displayCallback 字段和 aboutToDisappear 释放监听
2026-04-30 15:02:00 +08:00
b9a2cba2a7 fix: 编译错误修复 - ArkTS语法兼容(去交点类型/展开/内联对象类型/duplicate code) + pinchGesture/alignContent移除 2026-04-30 10:35:54 +08:00
c060a59710 feat: 星图响应式布局适配 - ResizeObserver + 窄屏55/45上下分/宽屏左右分 (@ohos.display) 2026-04-30 10:29:51 +08:00
d594099f02 feat: harmonyos星图全面适配交互功能-搜索/过滤/连接高亮/拖拽/触摸/节点详情 2026-04-30 10:24:06 +08:00
45c098d10b chore: update harmonyos source files 2026-04-29 23:30:02 +08:00
4bfa4673be chore: clean harmonyos branch - keep only DevEco source files (57 files) 2026-04-28 17:09:15 +08:00
11ee329943 refactor: move HarmonyOS project files from harmony/ to branch root 2026-04-28 16:52:05 +08:00