- 01 Jul, 2026 40 commits
-
-
sunqi02 committed
-
sunqi02 committed
-
sunqi02 committed
-
更新已重新出现的已删除客户记录的状态与信息,避免创建重复的客户群条目,并记录对应的操作日志。
imwangxiaozhou committed -
sunqi02 committed
-
- 新增私有工具方法 _scan_pending_customer_groups,用于查询去重待处理客户群并组装标准化条目 - 将待处理客户群条目整合到主扫描流程中 - 修复客户群有效性检查逻辑,将pending状态纳入需重新处理的范围
imwangxiaozhou committed -
sunqi02 committed
-
sunqi02 committed
-
sunqi02 committed
-
Adds a new THINKING_GUIDE module-level constant in agent_hub.py and appends it to both the main (steward) and sub-agent system prompts. The guide constrains the LLM's reasoning style: ≤20 chars thinking, direct tool_call output without explanation, and detailed reasoning summarized in tool results. The main prompt still gets REVIEW_GUIDE; sub-agents do not (they are leaf executors, not coordinators). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
sunqi02 committed
-
为子 Agent 引入独立 model 实例 sub_model,temperature=0.2 以提升子 Agent 输出确定性。_call_sub_agent 改用 sub_model 而非主 model。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
将原单字段customer_contact_id的唯一约束调整为联合customer_contact_id与bot_id的约束,适配多机器人对接场景。更新查询过滤条件增加bot_id,避免跨机器人获取错误数据,同时补充新建记录时的bot_id和bot_code字段赋值
imwangxiaozhou committed -
清理企业微信同步服务与客户群编排服务中的多处无用日志,同时移除不再使用的_format_dispatch_payload辅助函数
imwangxiaozhou committed -
- 更新协议定义,新增带可选contact_type参数的list_contacts方法 - 优化HTTP客户端实现,添加contact_type参数处理逻辑 - 将业务层的list_customers调用替换为list_contacts,移除无用的起止时间参数 - 更新所有测试用例的FakeClient及mock签名以适配新接口
imwangxiaozhou committed -
sunqi02 committed
-
新增企微同步配置项customer_contact_type和max_group_creates_per_bot_per_job,并同步到Pydantic设置模型 重构新客户扫描逻辑,新增全量对比与预览模式,废弃旧的增量扫描与checkpoint逻辑 为建群请求添加单机器人每任务建群数量限制,基于配置项控制 将硬编码的客户联系类型改为从配置读取,新增deleted群组状态到无效状态集合 支持自动清理远端已不存在的本地客户数据 调整list_new_customers接口默认开启dry_run模式,避免意外写入数据
imwangxiaozhou committed -
sunqi02 committed
-
修改企业微信同步服务与客户群编排服务的默认分页参数,从100调整为50以优化性能表现
imwangxiaozhou committed -
新增_record_failed_customer_group方法,将超时失败的客户群创建记录持久化到数据库,同时更新对应测试以验证该逻辑
imwangxiaozhou committed -
sunqi02 committed
-
- Remove _current_bot_id_mapping instance variable, pass bot_id_mapping as parameter instead (race condition fix) - Remove dead _process_message_async function from agent_hub.py - Remove unused SessionMemory import in _classify_and_rewrite - Update close() to cancel running tasks before clearing - Remove unused messages parameter from evaluate() - Remove dead _dispatch_to_agent_hub mock in test Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
All Tasks 1-7 verified against actual implementation. Noted 6 minor deviations (model injection param, test race fix, endpoint wiring) and 1 additional fix (room_id persistence in active_session_service). Design doc confirmed consistent with no critical deviations. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
sunqi02 committed
-
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
sunqi02 committed
-
在Dockerfile.prod中创建容器内日志目录/app/logs,在各docker-compose配置文件中添加本地./logs到容器/app/logs的卷挂载,实现日志持久化保存,避免容器删除后日志丢失。
imwangxiaozhou committed -
删除项目中不再使用的各模块OpenSpec变更配置、设计提案文档,以及已废弃的数据库迁移脚本,清理冗余项目文件。
imwangxiaozhou committed -
数据库密码等敏感信息不应提交到版本库,.gitignore 已有规则但因文件已追踪而未生效。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed -
- 更新会议纪要技能的SKILL.md文档,移除冗余的输出要求条目,仅保留docx链接的格式规范 - 修改会议代理的提示模板:将{company}占位符替换为硬编码的广联数科,简化格式规则以匹配更新后的输出要求wangzhiyang committed -
完善_wrap_link函数的链接处理逻辑,移除链接内容前后的反引号后再生成链接标签
wangzhiyang committed -
- agents.json: update keys from main/meeting to agent_xxx format - test_request.json: update agent_id and messages - Add implementation plan for DB-driven agent config
sunqi02 committed -
- send_test.sh: no-arg mode sends test_request.json, with-arg mode sends single text message - main.py: replace diagnostic prints with structured logger.info - Fix agent_id 14 → 17 (meeting agent) in send_test.sh
sunqi02 committed -
- test_main.py: use preloaded_agents, new AgentConfig structure - test_agent_hub.py: replace all 'main'/'meeting' with STEWARD_KEY/MEETING_KEY - test_read_file_tool.py: use mock config_loader, add preloaded_agents - PostReplyHook tests: remove account_mapping, add bot_id_mapping to context - Routing tests: assert response_agent_code == STEWARD_KEY - Collaboration tests: use dynamic agent keys
sunqi02 committed -
- main.py lifespan: replace load_agents() with load_agents_from_db(db) - Fix remaining "meeting" in call_sub_agent docstring
sunqi02 committed -
- Add _find_steward_agent()/_find_steward_key() for dynamic steward lookup - Replace all hardcoded 'main' with is_steward-based checks - Simplify prompt building (no more .format() placeholder substitution) - Remove account_mapping from hooks, bot_id from request only - Delete self.agent_to_account / self.account_to_agent - Add REVIEW_GUIDE module constant - API endpoint uses is_steward instead of 'main' check Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sunqi02 committed
-