8 Commits

Author SHA1 Message Date
admin
2f5a9f7035 简化定时任务说明,去掉过度设计的双文件方案
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:19:42 +08:00
admin
ff1f9ae07f 限定 weekly-report 工具权限,禁止写操作
通过 allowed-tools 限制为 Read/Glob/Grep + git pull + python,
禁止 Write、Edit 及任意 Bash 命令,临时文件由 Python 脚本自行管理

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:14:21 +08:00
admin
7ff805ca68 完善 weekly-report 使用说明:添加定时任务配置指南
涵盖凭证安全存储、执行脚本写法、Windows Task Scheduler 和 Linux crontab 配置

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 15:00:00 +08:00
admin
176f93614b 添加 weekly-report 使用说明
涵盖前置要求、配置文件格式、环境变量说明、插件启用方式及常见问题

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:44:31 +08:00
admin
b047160dfb 根据 SMTP_USER 邮箱后缀自动匹配 SMTP 服务商
内置 gmail/qq/163/126/outlook/hotmail/live,
优先级:report-config.json > 自动识别 > 环境变量

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:39:33 +08:00
admin
5895c14240 将 smtp_host/smtp_port 移入 report-config.json,修复 SSL 端口判断
- report-config.json 新增 smtp_host、smtp_port 字段(不敏感,可提交)
- 环境变量仅保留 SMTP_USER 和 SMTP_PASSWORD
- 修复 port 994 被误判为 STARTTLS 的问题,SSL 端口统一为 {465, 994}

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:33:02 +08:00
admin
c734958fa6 替换 gh CLI 为 Gitea REST API,新增 fetch_gitea_data.py
- 移除对 gh CLI 的依赖,改用 Gitea /api/v1 接口
- fetch_gitea_data.py:自动解析 git remote 获取实例地址和仓库路径,支持分页,输出结构化 JSON
- 私有仓库通过 GITEA_TOKEN 环境变量鉴权,公开仓库无需配置
- 更新 SKILL.md 对应执行步骤

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:07:43 +08:00
admin
d139ff3398 添加 weekly-report 技能:生成项目周报并发送邮件
- SKILL.md 定义完整执行流程(拉取代码、统计commits/PR、生成报告、发邮件)
- send_email.py 从环境变量读取 SMTP 凭证,收件人从项目 report-config.json 读取
- 更新 README 技能列表

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:02:05 +08:00