Commit Graph

14 Commits

Author SHA1 Message Date
qzl 5e169251fe refactor(apps): simplify API layer by removing redundant wrapper classes
- Remove ApiClientWrapper and MockApiClientWrapper
- Simplify IApiClient interface
- Update dependency injection configuration
- Optimize calendar service and AG-UI chat models
2026-03-03 10:12:46 +08:00
qzl e161ca22c4 refactor(chat): 重构聊天模块并集成历史消息加载功能
- 删除冗余的 chat_history_repository 和 home_mock_data
- 简化 ag_ui_event fromJson 使用工厂映射表
- 提取 ChatBloc 事件处理方法,添加 loadHistory/loadMoreHistory
- HomeScreen 集成 ChatBloc 实现历史消息加载和下拉刷新
- 更新 AGENTS.md 文档约束
2026-03-02 15:05:10 +08:00
qzl 87b8727ca4 docs: 添加 AG-UI 协议规则约束到 apps/AGENTS.md 2026-03-02 11:17:20 +08:00
qzl 99d540a18d refactor: 重命名 agent_chat 模块为 agent 2026-03-02 11:13:20 +08:00
qzl d37677c533 fix(chat): fix ChatBloc event callback and test reliability
- Fix onEvent callback initialization in ChatBloc constructor
- Add MockAgUiService to isolate test from mock API behavior
- Remove unnecessary non-null assertions in tests
2026-02-28 14:41:21 +08:00
qzl f82a8072a2 feat(chat): add ChatHistoryRepository with shared_preferences 2026-02-28 13:41:58 +08:00
qzl e1973a9868 feat(chat): add ChatBloc for state management 2026-02-28 13:40:46 +08:00
qzl d12f846cc0 feat(chat): add UiSchemaRenderer with design tokens 2026-02-28 13:38:58 +08:00
qzl 1fd33c57a7 feat(chat): add AgUiService with mock event stream 2026-02-28 13:38:26 +08:00
qzl 7e0e6457d7 feat(chat): add AiDecisionEngine with force trigger support 2026-02-28 13:36:59 +08:00
qzl f0ae3b31e2 feat(chat): add ToolRegistry with validation 2026-02-28 13:36:30 +08:00
qzl bc7bfa0692 feat(chat): add ChatListItem models in chat feature 2026-02-28 13:36:08 +08:00
qzl e20b5e0b4f feat(chat): add AG-UI event models with wire protocol mapping 2026-02-28 13:34:55 +08:00
qzl 4044b50cf9 feat(chat): add ToolResult and UiCard models 2026-02-28 13:33:08 +08:00