33 Commits

Author SHA1 Message Date
qzl d060962a5f feat(agent): redesign project_cli with module/method/input protocol
- Replace command/subcommand/args with module/method/input envelope
- Calendar handler uses discriminated union (mode) for read operations
- Strict Pydantic models with extra='forbid' for all calendar methods
- Worker max_iters=7, router prompt simplified (removed project_cli_defaults)
- Skill index cards + per-action files for progressive disclosure
- Frontend/AG-UI aligned to module/method dispatch
- Protocol docs updated to module/method/input contract

WIP: action cards need envelope fix, 2 tests need update, memory
handler needs Pydantic models.
2026-04-24 13:24:13 +08:00
qzl f708bce585 refactor: remove analytics module, update tool postprocessor tests 2026-04-23 15:55:35 +08:00
qzl 19e273a9e6 refactor: clean CLI taxonomy — canonical subcommands, merged memory.update, no aliases
- calendar: split write → create/read/update/delete/share
- contacts: rename lookup → read
- memory: merge write+forget → update (unified action field in operations)
- Remove all alias/normalization logic from adapter and handlers
- Update tool_postprocessor ui_hints builders to canonical keys
- Remove frontend legacy TOOL_CALL_START/ARGS/END events and ToolCallItem
- Update SKILL.md files and protocol docs
- Update tests and settings screens
2026-04-23 12:12:41 +08:00
qzl ef931ee73c chore: clean up legacy tool/UI code paths and remove unused events 2026-04-22 17:33:12 +08:00
qzl 4d55df45ab refactor: unify skills+cli runtime and streamline ag-ui flow 2026-04-22 17:09:37 +08:00
qzl 7b6dbe72c3 feat: 添加 Analytics 分析功能(行为追踪、错误码、协议更新) 2026-04-02 11:52:36 +08:00
qzl 19aa33a609 fix: correct test failures and error propagation
- Add CacheScope provider in UserProfileCacheRepository tests
- Remove catch blocks that swallowed errors in _loadHistory/_loadMoreHistory
- Errors now properly propagate to switchUser() caller
2026-04-01 15:11:49 +08:00
qzl b8e5a42a12 feat(logging): add logging to chat bloc history and attachments 2026-04-01 14:33:41 +08:00
qzl 227c9c123c feat(logging): add logging to ChatBloc 2026-04-01 14:20:08 +08:00
qzl 91bf3c3f96 feat: 重构 Reminder Notification 系统并更新应用包名 2026-03-30 18:36:57 +08:00
zl-q 4285b4ec80 refactor: 重构聊天模块支持 SSE 断线重连及用户上下文隔离 2026-03-30 09:06:10 +08:00
zl-q f126d7a547 refactor: 重构聊天数据层至core并简化首页UI 2026-03-29 21:46:26 +08:00
zl-q 4db9a13bfe refactor(apps): 重构数据层目录结构并新增启动预热编排器 2026-03-29 20:26:30 +08:00
qzl ae29a8209b refactor(apps): 主题系统迁移至 ColorScheme + 扩展架构并支持 Dark Mode 2026-03-27 19:07:39 +08:00
qzl c592cc7854 feat(apps): 重构 UI 架构为 presentation 层并新增 l10n 国际化支持 2026-03-27 14:05:03 +08:00
qzl 96fc4a1e77 feat: 支持 agent 运行取消功能 2026-03-25 18:33:25 +08:00
qzl 389f5248fc feat: 统一自动化任务调度配置并增强聊天流恢复 2026-03-24 18:19:33 +08:00
zl-q 81cbc14219 feat(apps/chat): 新增 UI Schema 导航和路由导航工具 2026-03-19 00:51:57 +08:00
qzl cf56b358ad fix: stabilize chat run lifecycle rendering 2026-03-17 15:58:29 +08:00
qzl aa30fe0ce6 refactor: 重构 Tool Result 契约,移除 ui_hints 统一使用 result 字段
- ToolAgentOutput 移除 result_summary 和 ui_hints,统一使用 result 字段
- 日历/用户查找工具移除 ui_hints 输出,改为机器可读的结构化结果
- Agent History 移除 tool 消息的 ui_hints 处理逻辑
- App 版本检查改为 manifest.json 方式,支持多渠道发布
- 更新 settings 配置和测试用例适配新结构
2026-03-17 12:18:09 +08:00
qzl d3783522e6 feat: 优化前端 UI 与交互体验 2026-03-16 19:04:54 +08:00
qzl 5a34616287 feat: 优化 Agent 运行时与聊天设置体验 2026-03-16 18:32:09 +08:00
qzl 4b92772535 feat: 优化前端 UI 组件与交互体验
- 优化日历、待办、消息等页面交互
- 更新 ChatBloc 与 UI Schema 渲染
- 优化联系人、首页、设置页面体验
2026-03-16 16:11:28 +08:00
qzl 01c36eb32e refactor: 移除前端 Mock API,新增共享组件,优化认证流程
- 删除 mock_api_client、mock_calendar_service、mock_history_service
- 新增 fixed_length_code_input、link_button、message_composer 共享组件
- 优化登录/注册/密码重置页面使用新组件
- 简化 injection.dart 移除 mock 分支
- 更新 env.dart 配置(BACKEND_URL 替换 API_URL)
- 后端 agentscope 工具和测试更新
- 重构 AGENTS.md 文档结构
- 新增 deploy/ 目录和 protocol 文档
2026-03-12 16:41:45 +08:00
zl-q 7b8865e256 feat: 添加 Agent 步骤事件与图片附件功能
- 新增 stepStarted/stepFinished 事件类型支持
- 前端实现图片附件上传和预览功能
- 后端增强工具结果存储和事件处理
- 完善相关单元测试和集成测试
2026-03-12 09:29:57 +08:00
qzl 9f2b060282 feat: 添加首页图片选择功能(拍照/相册) 2026-03-11 17:20:35 +08:00
qzl 487405aa5b feat: 应用名称更新为灵可析并增强 Chat 功能
- 更新 Android/iOS 应用名称和图标为灵可析
- Chat 支持取消正在运行的 Agent 对话
- 改进 ChatBloc 状态管理(区分发送/等待/流式/取消状态)
- HomeScreen 支持外部注入 ChatBloc 和显示等待指示器
- 后端 Agent 运行服务优化(消息处理、usage 追踪)
- 补充相关单元测试和 Widget 测试
2026-03-10 18:39:53 +08:00
zl-q 3ac09475ad feat(agent): add voice input capability and standardize tool naming
- Add voice recording with transcribe endpoint (ASR) for multimodal input
- Android: add RECORD_AUDIO and INTERNET permissions
- Refactor tool naming: frontend tools use 'front.' prefix, backend tools use 'back.'
- Migrate calendar tools: create_calendar_event -> back.mutate/list/delete events
- Add calendar_event_list.v1 and calendar_operation.v1 UI card types
- Update all Flutter and Python tests to match new tool naming conventions
- Add record package dependency for voice recording
2026-03-09 00:10:09 +08:00
zl-q 120df903d2 feat: AG-UI 协议对齐与路由导航功能
- 前端: 添加 SSE 流式支持、stateSnapshot 事件、路由导航工具
- 前端: 实现工具调用审批流程,支持 pending 状态展示
- 后端: Agent 状态管理与会话持久化相关重构
- 文档: 新增 agent-agui-full-alignance 设计文档
- 测试: 补充相关单元测试和集成测试
2026-03-07 17:30:20 +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 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 e1973a9868 feat(chat): add ChatBloc for state management 2026-02-28 13:40:46 +08:00