Skip to content

feat: 提交 human CLI 命令行工具#9

Open
linli2004 wants to merge 4 commits into
quanttide:mainfrom
linli2004:human-cli
Open

feat: 提交 human CLI 命令行工具#9
linli2004 wants to merge 4 commits into
quanttide:mainfrom
linli2004:human-cli

Conversation

@linli2004

Copy link
Copy Markdown

做了什么

提交 human CLI 命令行工具集:邮件拉取与分类、飞书集成、邮件发送守护进程、配置管理。

验证方式

cd src/cli && QTADMIN_TEST=1 python -m pytest tests/ -v

测试输出

tests/test_audit.py::TestAuditResult::test_audit_result_default PASSED
tests/test_audit.py::TestAuditResult::test_audit_result_with_suggestion PASSED
...
tests/test_backup.py::TestBackupResult::test_backup_result_custom_values PASSED

============================== 76 passed in 0.22s ==============================

文件变更

⚠️ 此为完整 CLI 工具包新增,共 30 个源文件,超出 20 文件限制,特此说明。

纪律自检

  • git diff main --name-only 无构建产物
  • 文件数 >20(完整 CLI 包新增,已说明)
  • pytest tests/ → 76 passed
  • PR 描述包含:做了什么 + 怎么验证 + 文件清单 + 测试输出
  • 分支已推送远端

qtadmin and others added 4 commits June 5, 2026 14:35
- 新增邮件消息模型 (MailMessage) 和已处理邮件追踪 (ProcessedMail)
- 新增 AI 智能分类器,支持 OpenAI 兼容 API
- 新增邮箱自动匹配 (EmailMatcher),同名邮箱自动归并
- 新增简历解析器、资料管理、导出功能
- 新增待确认队列 (PendingQueue) 完整流程
- 新增 CLI 邮件发送循环 (mail_sender_loop)
- 新增 Demo 前端 (examples/human/) 整合看板页面
- 新增部署脚本 (scripts/) 和 systemd 服务配置 (manifests/)
- 新增零基础用户指南 (docs/user-guide/human.md)
- 修复 pyproject.toml 包发现配置
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
新增 src/cli/src/qtadmin/ 包,包含 CLI 入口、API 客户端、
邮件发送、飞书集成、AI 分类等功能。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Add timeout=30 and check_returncode() to LarkClient._run
- Fix test_agents_concise_with_table (add self-update text)
- Fix test_submodules_timeout (expected False, not True)
- Fix test_audit_failure (use typer.Exit instead of click.Exit)
- Add CLI changelog v0.0.2

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant