Commit Graph

134 Commits

Author SHA1 Message Date
qzl 19a2cd451d refactor(runtime): decouple scheduler tasks and align worker group names 2026-03-20 14:06:37 +08:00
qzl fbf15bc937 refactor(todo): 移除 due_at 字段,改用 order 字段管理象限内顺序 2026-03-20 11:09:38 +08:00
qzl 7fd536e976 refactor: finalize agent schemas and profile model
- Remove deprecated calendar UI tests
- Update profile model with phone field support
- Update agent schemas with runtime_models and forwarded_props
- Update system_agent with new agent configuration
2026-03-19 18:43:35 +08:00
qzl 524b91f454 docs: update AGENTS.md with new guidelines
- Add ui-ux-pro-max skill reference
- Add keyboard overlay behavior rules for Flutter
- Update testing strategy to prioritize high-regression flows
- Add copy priority rules for auth and form pages
- Update minimal interface copy guidelines
2026-03-19 18:43:23 +08:00
qzl 9ddd7a0147 chore: update configuration and infrastructure
- Add SOCIAL_RUNTIME__TRUSTED_PROXY_IPS to .env.example
- Add SOCIAL_AUTOMATION_SCHEDULER__* config options
- Change SOCIAL_TEST__EMAIL to SOCIAL_TEST__PHONE
- Update app.sh startup script
- Add new database migrations for phone auth and automation
2026-03-19 18:43:15 +08:00
qzl f0af44d840 refactor(backend): update API routes and service layer
- Update agent router/service/repository with new endpoints
- Update auth routes with phone-based authentication
- Update users service with new phone lookup
- Update schedule_items with new schemas
- Update message schemas with visibility support
- Update settings with new automation scheduler config
- Update CLI with new commands
- Update tests to match new API contracts
2026-03-19 18:42:59 +08:00
qzl 0abf51e837 feat(agentscope): add memory system and automation job support
- Add consumer_registry and pipeline_registry for runtime orchestration
- Add Visibility schema for message filtering
- Add PipelineSpec for agent pipeline configuration
- Add automation job models and configuration
- Remove memory_prompt.py (consolidated into memory system)
- Update runtime components: context_loader, context_service, orchestrator, runner, tasks
- Update toolkit: tool_config, tool_middleware, custom tools (calendar, user_lookup)
- Add auth_helpers and calendar_domain utilities
- Add system_agents.yaml configuration
2026-03-19 18:42:35 +08:00
zl-q caf9304064 test(backend): 更新后端测试文件 2026-03-19 00:52:12 +08:00
zl-q 522b53c993 refactor(backend): 更新 agent 服务和配置层 2026-03-19 00:52:12 +08:00
zl-q c8e51d1329 refactor(backend): 更新 agentscope 工具系统 2026-03-19 00:52:10 +08:00
zl-q 05096d22de refactor(backend): 更新 agentscope 提示词系统 2026-03-19 00:52:07 +08:00
zl-q a8ec9d460b refactor(backend): 更新 agentscope 事件存储和编解码 2026-03-19 00:52:06 +08:00
zl-q f709023b6d refactor(backend): 重构 agentscope 运行时模块 2026-03-19 00:52:05 +08:00
qzl 00f37d7e19 feat: 实现日历提醒完整功能(操作执行、通知服务重构、归档)
- 新增 ReminderActionExecutor 处理取消/稍后提醒操作
- 新增 ReminderOutboxStore 本地存储待处理操作
- 重构 LocalNotificationService 支持聚合提醒和交互操作
- 新增 event_color_resolver 工具类统一颜色解析
- 新增 CalendarService.archiveEvent 归档方法
- 增强 ModelTracking 支持缓存命中、推理token和成本追踪
- 添加 qwen3.5-35b-a3b 模型配置
- 更新 AndroidManifest 全屏intent权限
- 补充相关单元测试和文档
2026-03-18 19:12:47 +08:00
qzl 8539f05a66 feat: 增强 HomeScreen 录音交互与 ChatBloc 状态管理
- 新增录音启动延迟处理,解决权限未就绪时的竞态问题
- 实现历史分页滚动位置保持,提升加载体验
- 添加文本输入框点击键盘显示与焦点管理
- 优化 ChatBloc provider 到 MultiBlocProvider 支持
- 修复 ApiException 429 错误详情解析(支持 JSON 字符串 body)
- 改进 LocalNotificationService 精确闹钟权限请求
- 优化 UiSchemaRenderer GridView children 生成
- 支持导航 action 的 replace 参数
- 移除 Agent router 速率限制逻辑(_allow_run_request, _allow_transcribe_request)
- 补充相关单元测试与集成测试
2026-03-18 17:03:22 +08:00
qzl b34697660d feat: 实现 Auth 全局状态机与 401 统一处理机制
- 新增 AuthSessionInvalidated 事件处理 token 失效场景
- ApiInterceptor 新增 authFailureCallback 单飞机制
- AuthBloc 区分 manual logout 与 auto expiry 语义
- 新增 startup recovery fallback 防止启动卡死

feat: 重构 Calendar DayWeek 视图事件布局引擎

- 新增 DayEventLayoutEngine 解耦事件计算与渲染
- 新增 DayTimelineMetrics 统一时间轴常量
- 新增 DayViewScale 支持捏合缩放

feat: 新增 Settings 页面共享 UI 组件

- 新增 BackTitlePageHeader 统一页面 header
- 新增 DetailHeaderActionMenu 统一操作菜单
- 新增 DestructiveActionSheet 统一删除确认
- 新增 AppToggleSwitch 统一开关组件

feat: Chat UI Schema 支持导航操作

- 支持 navigation 类型 action 触发内部路由跳转
- 新增路径验证与参数处理

chore: 更新相关测试覆盖 auth 失效路径
2026-03-18 13:35:25 +08:00
qzl 19981964fb refactor: 移除 LiteLLM proxy 架构,后端直连 Provider API
- 移除 backend/scripts/build_litellm_proxy_config.py
- 简化 LiteLLMService,移除 run_completion_with_cost 方法
- AgentScopeRunner 改为从 LlmFactory 获取 api_base 和 api_key
- 部署配置移除 litellm/litellm-config-job 服务
- Flutter 新增 AuthBootScreen 引导页
- Android 添加通知权限 (POST_NOTIFICATIONS, RECEIVE_BOOT_COMPLETED, SCHEDULE_EXACT_ALARM)
- 优化 LocalNotificationService 调度失败 fallback
- 更新 manifest.json (version 3)
2026-03-17 18:05:49 +08:00
qzl 3bf7640000 feat: 实现 AgentScope tool call context,支持 runtime 上下文续接 2026-03-17 14:12:44 +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
zl-q c26cdbbc27 feat: 添加日历批量操作与客户端时区感知功能,优化前端 UI 交互体验 2026-03-17 00:13:41 +08:00
qzl 5a34616287 feat: 优化 Agent 运行时与聊天设置体验 2026-03-16 18:32:09 +08:00
qzl 3f79cf0df7 chore: 清理废弃的生成文件和重命名文件 2026-03-16 16:13:27 +08:00
qzl e55f12cdc1 test: 更新 AgentScope 相关单元测试与集成测试
- 重命名 test_react_runner.py 为 test_runner.py
- 新增 test_utils.py 测试工具函数
- 更新现有测试用例适配新架构
2026-03-16 16:11:06 +08:00
qzl 36b104fa37 refactor: 重构 AgentScope ReAct Runner 与事件处理
- 重构 runtime/runner.py 实现 ReAct Agent 核心逻辑
- 更新事件编码器与存储机制
- 优化 prompt 系统与 tool 调用
- 调整 agent service 与 repository 配合
2026-03-16 16:10:39 +08:00
qzl ab073c88ed feat: 添加 App 检查更新功能
- 前端:设置页面添加检查更新菜单项,从 pubspec.yaml 动态获取版本号
- 后端:新增 /api/v1/app/check-updates 接口,自动扫描 releases 目录对比版本
- 配置:新增 AppVersionSettings,支持通过环境变量配置版本和下载链接
- Docker:添加 releases 目录挂载
2026-03-16 16:09:07 +08:00
zl-q dcceb48d84 feat: 实现 AgentScope ReAct Runner 两阶段执行并重构事件处理 2026-03-16 09:01:01 +08:00
zl-q 072c09d99d refactor: 简化 AgentScope 运行时模块与 prompt 系统 2026-03-15 17:14:15 +08:00
qzl 1c02503d1d refactor: 简化 AgentScope 运行时模块与事件处理
- 移除冗余的 user_token 参数传递
- 重构 tool.result 事件使用 ToolAgentOutput 模型
- 重构 text.end 事件使用 WorkerAgentOutput 模型
- 简化 store 模块的 tool result 处理逻辑
- 更新 router/service 适配新事件结构
- 清理废弃的测试文件与设计文档
- 新增 AgentRuns 多模态存储设计文档
2026-03-13 17:27:18 +08:00
qzl 4c10929498 refactor: 重构 AgentScope 运行时模块并优化前端附件展示 2026-03-13 15:42:01 +08:00
qzl a10a2db27a feat: 添加视觉设计语言系统并重构认证页面UI
- 新增 visual_design_language.md 设计规范文档
- 新增 auth 设计 tokens (authBackground, authCard, authInput, feedback 系列等)
- 重构登录/注册/验证码/重置密码页面为新设计系统
- 新增 AuthHeroHeader, AuthSurfaceCard, AuthSection, AuthField, PasswordField 组件
- 重构 AppBanner 和 Toast 支持多类型配置 (info/success/warning/error)
- 后端 AgentScope: 重整 schemas/prompts/tools 作用域, 新增协议文档
- 更新 AGENTS.md 集成视觉设计语言约束
2026-03-13 14:10:13 +08:00
zl-q fb3c649db7 refactor: 重整 schemas 作用域并统一用户上下文模型 2026-03-13 01:01:54 +08:00
qzl f201babb48 refactor: 重构前端 UI 组件与后端 AgentScope schemas 2026-03-12 18:26:10 +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
zl-q 87215f9d41 feat(agent): 补充会话上下文构建单元测试 2026-03-12 00:19:04 +08:00
zl-q 21ba8e4a44 feat(agent): 增强多模态链路与工具调用能力 2026-03-12 00:18:45 +08:00
qzl 18db6c50e7 fix(redis): 修复 Redis 流读取兼容性问题
- 支持 bytes 和 str 类型的 entry_id
- 支持 list 类型响应格式
- 优化 payload 解码处理
2026-03-11 21:33:25 +08:00
qzl a8dacbe81f chore: no changes needed for calendar message card 2026-03-11 21:06:02 +08:00
qzl d3545b5c28 feat(users): add get user by id endpoint 2026-03-11 20:57:49 +08:00
qzl 145e3dc615 refactor: 重构 Agent 模块为 AgentScope,删除旧版 CrewAI/LiteLLM 实现 2026-03-11 20:51:56 +08:00
qzl 85b314cf64 feat: 增强日历功能并集成 AgentScope 代理服务 2026-03-11 17:16:11 +08:00
qzl e20e7d2a02 feat: 增强日历功能并集成 AgentScope 代理服务 2026-03-11 15:28:29 +08:00
zl-q e55e445906 feat: 添加好友功能并集成 LiteLLM 代理服务
- 新增好友搜索、添加、好友列表功能
- 集成 LiteLLM 代理服务及多模型定价配置
- 更新 iOS CocoaPods 配置
- 更新 .gitignore 和环境变量配置
2026-03-11 09:14:51 +08:00
qzl 487405aa5b feat: 应用名称更新为灵可析并增强 Chat 功能
- 更新 Android/iOS 应用名称和图标为灵可析
- Chat 支持取消正在运行的 Agent 对话
- 改进 ChatBloc 状态管理(区分发送/等待/流式/取消状态)
- HomeScreen 支持外部注入 ChatBloc 和显示等待指示器
- 后端 Agent 运行服务优化(消息处理、usage 追踪)
- 补充相关单元测试和 Widget 测试
2026-03-10 18:39:53 +08:00
qzl 2049184456 chore: 后端 agent 和 users 模块代码更新优化 2026-03-10 17:44:29 +08:00
qzl 95d6927724 fix: 后端 JWT 验证改为 HS256 方式提升认证可靠性 2026-03-10 17:43:55 +08:00
zl-q c9a2c75c35 fix: 增强云端 Supabase 认证可靠性,修复验证码失败可观测性
- JWT 验证器新增 apikey 参数,支持云端 JWKS 认证头
- Auth 网关新增上游超时/错误映射为 503 状态码
- Auth 网关新增重定向 URL 校验,阻断开放重定向风险
- 用户依赖传递 anon_key 给 JWT 验证器
- 新增相关单元测试覆盖 JWKS 头、503 映射、重定向校验
- 新增实现计划文档
2026-03-10 09:11:27 +08:00
qzl 6fe2e7b6c3 refactor: 迁移本地 Supabase 到云端,使用 JWKS 进行 JWT 验证
- 新增 JwtVerifier 支持 RS256 + JWKS 验证
- 简化 docker-compose,删除本地 Supabase 服务(kong/auth/storage等)
- 删除冗余的 Supabase 配置文件(volumes目录)
- 适配测试用例以支持新配置方式
- 更新运行时文档和迁移计划
2026-03-09 18:03:04 +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 2980213a5b fix(agent): stabilize live e2e tool execution and loop isolation 2026-03-08 22:41:59 +08:00