123 Commits

Author SHA1 Message Date
qzl d2d292a99e fix(agent): 修复 skill action 卡片调用约定、memory 强类型校验和死代码清理
- 所有 calendar action .md: skill/action 替换为 module/method + mode 字段
- handler_memory: 新增 Pydantic extra=forbid 模型替代手工 dict 校验
- memory/SKILL.md: 补充 UserMemoryContent/WorkProfileContent 全字段文档
- 移除 handler_calendar 死代码 _batch_status 和 runner 旧别名 AgentScopeReActRunner
- PRD §5.2-5.6 和 sse-events 协议对齐实际 module/method 实现
2026-04-24 14:10:57 +08:00
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 bb36bdbb9b Merge branch 'worktree/refactor-tool-cli-skill-ui-schema' into dev 2026-04-23 16:04:13 +08:00
qzl dcb0eb4c65 chore: sync worktree changes - update protocols, trellis workspace, and config 2026-04-23 16:04:04 +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 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 2cdf075e92 feat: 添加用户行为分析功能 2026-04-01 18:35:32 +08:00
qzl 24eda6ff51 refactor: 重命名 automation worker 为 general worker 并完善错误处理 2026-04-01 17:24:52 +08:00
qzl 0fe28a1c62 docs: add Android APK build instructions and plan document 2026-04-01 15:18:07 +08:00
qzl 9a231dae9e feat: 重构会话管理与提醒通知系统 2026-03-31 18:26:36 +08:00
qzl 91bf3c3f96 feat: 重构 Reminder Notification 系统并更新应用包名 2026-03-30 18:36:57 +08:00
qzl 9fb2a6857b feat: 日历分享改为按手机号+好友关系校验 2026-03-30 11:37:41 +08:00
zl-q 0f3175e303 docs: 更新协议文档并清理过时计划文件 2026-03-30 09:07:07 +08:00
zl-q 1aac62f39e feat: 添加日历事件订阅者功能及权限重构 2026-03-30 09:05:50 +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 47e2aa3eb9 docs: 更新协议文档并清理过期的问题追踪文档 2026-03-27 14:05:14 +08:00
qzl 5900993ee7 refactor: unify storage config keys and refresh local dev setup 2026-03-26 13:25:25 +08:00
qzl 96fc4a1e77 feat: 支持 agent 运行取消功能 2026-03-25 18:33:25 +08:00
qzl 599c597e69 feat: 重构 agentscope 缓存架构,新增消息和附件缓存 2026-03-25 17:41:55 +08:00
qzl d22ded21f8 refactor: 重构 schemas 结构,统一枚举定义 2026-03-25 12:36:31 +08:00
qzl 389f5248fc feat: 统一自动化任务调度配置并增强聊天流恢复 2026-03-24 18:19:33 +08:00
qzl 23359c2d01 feat: 添加自动化任务(automation_jobs)功能模块 2026-03-24 12:38:11 +08:00
qzl f4b7eb7e09 refactor: 梳理规则体系并统一记忆与部署流程 2026-03-23 17:57:24 +08:00
qzl 6be616f108 feat: 重构 memory 系统,支持 user memory 和 work memory 分离 2026-03-23 14:25:47 +08:00
zl-q 3aacc756db refactor(agent): remove memory agent, simplify runtime config system 2026-03-23 01:20:27 +08:00
zl-q 80ad5141a6 refactor(agent): restructure visibility masks, task queues, and memory service
Visibility mask refactoring:
- Replace dead UI_REALTIME bit with CONTEXT_ASSEMBLY (bit 1)
- Remove visibility_consumer_bit from SystemAgentLLMConfig and system_agents.yaml
- Simplify _resolve_user_message_visibility_mask: chat->UI_HISTORY|CONTEXT_ASSEMBLY, automation->0
- Simplify _resolve_stage_visibility_mask: memory->UI_HISTORY, router/worker->UI_HISTORY|CONTEXT_ASSEMBLY
- Remove stage_visibility_bit_map from store.py

Task queue renaming:
- Replace default_broker/bulk_broker/critical_broker with worker_agent_broker/worker_automation_broker
- Queue names: 'default'/'bulk'/'critical' -> 'agent'/'automation'
- Rename run_command_task -> run_command_task_agent/run_command_task_automation
- AgentService derives queue from runtime_mode: chat->agent, automation->automation

Architecture cleanup:
- Move context_service.py from runtime/ to agentscope/services/
- Add MemoryService in v1/memory/ following repository/service pattern
- Move consumer_registry.py and pipeline_spec.py from schemas/agent to agentscope/schemas/
- Delete dead code: registry_builder.py, VisibilityBitRef
- Delete superseded plan docs
2026-03-22 20:35:55 +08:00
qzl fcf98b1142 feat(apps): refine login consent and calendar day/month UX 2026-03-20 19:00:24 +08:00
qzl 9ece726de0 docs: add reminder overlay implementation plan 2026-03-20 18:23:52 +08:00
qzl 5e2ade614f docs: add reminder overlay design document 2026-03-20 18:22:14 +08:00
qzl 3f1858d733 docs: finalize navigation decoupling and unified cache rollout 2026-03-20 15:46:24 +08:00
qzl fbf15bc937 refactor(todo): 移除 due_at 字段,改用 order 字段管理象限内顺序 2026-03-20 11:09:38 +08:00
zl-q d574128815 feat: 实现日历提醒 in-app fallback 机制及通知服务重构 2026-03-20 01:30:34 +08:00
qzl 641d847008 docs: update agent and UI protocol documentation
- Update api-endpoints.md with new agent endpoints
- Update run-agent-input.md with new input schemas
- Update sse-events.md with new event types
- Update ui-schema.md with schema changes
2026-03-19 18:42:45 +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 7c70422ad1 docs: 更新协议文档和设计文档 2026-03-19 00:52:16 +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 257cb0f5d5 docs: 更新自动化记忆设计文档与协议路由
- 重构 automation-memory-design.md 为 v2 版本,新增 Execution Profile 抽象层
- 删除 auth-global-rewrite-design.md 和 auth-global-rewrite-plan.md
- 更新 agent/api-endpoints.md 协议文档
- 更新 ASR 与 worker token latency 优化 TODO 文档
2026-03-18 17:03:33 +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 ed86bfe9ae docs: 更新 Agent 协议文档与部署配置
- 更新 Agent API 端点文档
- 更新 SSE 事件与输入输出文档
- 新增 deploy/.env.prod.example 配置模板
2026-03-16 16:11:40 +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 61997f3613 docs: 更新 Agent Chat Messages 协议文档 2026-03-13 17:27:21 +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