{"id":48343717,"url":"https://github.com/cris-z123/mailcopilot","last_synced_at":"2026-04-05T06:01:40.920Z","repository":{"id":335678642,"uuid":"1144358547","full_name":"Cris-z123/mailCopilot","owner":"Cris-z123","description":"📫Privacy-first local email assistant Extracts traceable tasks from emails, auto-generates daily reports. 100% source-linked, fully offline capable. ","archived":false,"fork":false,"pushed_at":"2026-04-01T15:48:18.000Z","size":1538,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T16:27:47.808Z","etag":null,"topics":["agent","electron","vibe-coding"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cris-z123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-28T15:58:06.000Z","updated_at":"2026-04-01T14:38:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Cris-z123/mailCopilot","commit_stats":null,"previous_names":["cris-z123/mailcopilot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Cris-z123/mailCopilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cris-z123%2FmailCopilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cris-z123%2FmailCopilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cris-z123%2FmailCopilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cris-z123%2FmailCopilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cris-z123","download_url":"https://codeload.github.com/Cris-z123/mailCopilot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cris-z123%2FmailCopilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31426193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T02:22:46.605Z","status":"ssl_error","status_checked_at":"2026-04-05T02:22:33.263Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","electron","vibe-coding"],"created_at":"2026-04-05T06:01:37.747Z","updated_at":"2026-04-05T06:01:40.898Z","avatar_url":"https://github.com/Cris-z123.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailCopilot\n\n\u003e 智能邮件处理助手 - Email Item Traceability \u0026 Verification System\n\n[![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/your-org/mailcopilot)\n[![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/Cris-z123/11757b000330f5d8d4e482164f08052d/raw/mailcopilot-coverage.json)](https://gist.github.com/Cris-z123/11757b000330f5d8d4e482164f08052d)\n[![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)\n[![Electron](https://img.shields.io/badge/Electron-29.4.6-9FEAF5?logo=electron)](https://electronjs.org/)\n[![Vitest](https://img.shields.io/badge/Vitest-3.2.4-6E9F18?logo=vitest)](https://vitest.dev/)\n\n## 📖 项目简介\n\nmailCopilot 是一款面向隐私敏感场景的**本地邮件智能处理客户端**，通过规则引擎与本地/远程 LLM 协同，在**用户可控环境**下实现邮件内容结构化、事项提取、**100% 可溯源验证**。\n\n### 核心特性\n\n- ✅ **100% 事项可溯源** - 每个事项均可追溯到原始邮件来源（Message-ID 或 SHA-256 指纹）\n- 🔒 **隐私优先架构** - 字段级 AES-256-GCM 加密，设备绑定存储，零知识架构\n- 🎯 **智能置信度系统** - 双引擎置信度计算，低置信度事项自动标记\n- 🔍 **多格式支持** - 支持主流邮件格式（.eml, .msg, .pst/.ost, .mbox, .html）\n- 🌓 **双模式运行** - 本地模式（Ollama）/ 远程模式（OpenAI API）热切换，无需重启\n- 💾 **设备绑定存储** - SQLite 本地数据库，WAL 模式，可配置数据保留期\n- 📊 **日报生成** - 自动生成包含事项、进度、总结的日报，支持 Markdown/PDF 导出\n- 🔄 **本地反馈系统** - 用户可标记事项准确性，反馈数据加密存储，永不联网\n\n## 🚀 快速开始\n\n### 环境要求\n\n- **Node.js**: 20.x (LTS)\n- **pnpm**: 8.x\n- **操作系统**: Windows 10+, macOS 10.15+\n\n### 本地模式要求（可选）\n\n如果使用本地模式，需要先安装 Ollama\n```\n\n### 安装步骤\n\n```bash\n# 1. 安装依赖\npnpm install\n\n# 2. 重建原生模块（better-sqlite3）\npnpm run rebuild\n\n# 3. 开发模式运行\npnpm run dev\n\n# 4. 构建生产版本\npnpm run build\n\n# 5. 运行生产版本\npnpm run start\n```\n\n## 🏗️ 技术栈\n\n### 核心框架\n- **Electron** 29.4.6 - 跨平台桌面应用框架\n- **React** 18 - 用户界面\n- **TypeScript** 5.4 - 类型安全\n- **Zustand** 4.5 - 状态管理\n- **Tailwind CSS** v3.4 - 样式框架\n- **shadcn/ui** - UI 组件库\n\n## 🔧 开发指南\n\n### 开发命令\n\n```bash\n# 启动开发服务器（热重载）\npnpm run dev\n\n# 类型检查\npnpm run typecheck\n\n# 代码检查\npnpm run lint\n\n# 自动修复代码风格\npnpm run lint:fix\n\n# 格式化代码\npnpm run format\n```\n\n### 测试命令\n\n```bash\n# 运行所有测试\npnpm test\n\n# 单元测试\npnpm run test:unit\n\n# 集成测试\npnpm run test:integration\n\n# 安全测试\npnpm run test:security\n\n# 代码覆盖率\npnpm run test:coverage\n```\n\n## 📖 文档\n\n- [技术架构文档](./docs/tech-architecture.md) - 完整的技术设计说明\n- [功能规格](./specs/001-email-item-traceability/spec.md) - 详细功能需求\n- [LLM API 文档](./docs/api/llm-api.md) - LLM 适配器接口文档\n- [部署指南](./docs/deployment.md) - 打包、签名、发布指南\n- [设计系统](./docs/DESIGN_SYSTEM.md) - UI/UX 设计规范\n\n## 🔒 安全与隐私\n\n### 设计原则\n\n1. **隐私优先**: 默认远程模式，完全离线可选\n2. **零知识架构**: 不提供云备份，无跨设备同步\n3. **防幻觉机制**: 100% 事项可溯源，无来源事项降级入库\n4. **设备绑定**: 数据绑定当前设备，重装系统即数据丢失\n5. **字段级加密**: 敏感字段 AES-256-GCM 加密\n6. **本地反馈**: 用户反馈永不联网传输\n\n## 🤝 贡献指南\n\n欢迎贡献代码、报告问题或提出建议！\n\n1. Fork 本项目\n2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 开启 Pull Request\n\n### Commit 规范\n\n遵循 [Conventional Commits](https://www.conventionalcommits.org/) 规范：\n\n```\nfeat: add new feature\nfix: fix bug\ndocs: update documentation\ntest: add tests\nrefactor: refactor code\nchore: update dependencies\n```\n\n## 📄 许可证\n\n本项目采用 MIT 许可证 - 详见 [LICENSE](LICENSE) 文件\n\n## 🙏 致谢\n\n- [Electron](https://electronjs.org/) - 跨平台桌面应用框架\n- [React](https://reactjs.org/) - 用户界面库\n- [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) - SQLite 同步驱动\n- [Zustand](https://github.com/pmndrs/zustand) - 状态管理\n- [Vite](https://vitejs.dev/) - 下一代前端构建工具\n\n## 📮 联系方式\n- 问题反馈: [GitHub Issues](https://github.com/your-org/mailcopilot/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcris-z123%2Fmailcopilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcris-z123%2Fmailcopilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcris-z123%2Fmailcopilot/lists"}