Add automation rules and cron configuration
- Add Rule 1: All coding work must use Cursor CLI with agent login - Add Rule 2: Automated fix task checking (5min progress check, 30min auto-start) - Configure cron jobs in ~/.openclaw/cron/jobs.json - Add check-progress.sh script for manual/automated checks - Update AGENTS.md with mandatory task execution rules - Update .fixes/README.md with automation documentation Rules: 1. Coding tasks -> Cursor CLI (agent --model auto --trust) 2. Every 5min -> Check progress 3. Every 30min -> Auto-start next fix task
This commit is contained in:
34
msh_single_uniapp/.fixes/scripts/check-progress.sh
Executable file
34
msh_single_uniapp/.fixes/scripts/check-progress.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# MSH Fix Progress Check Script
|
||||
# 由 Cron 每 5 分钟调用,或由 Agent 手动执行
|
||||
|
||||
FIX_DIR="/Users/apple/scott2026/msh-system/msh_single_uniapp/.fixes"
|
||||
|
||||
# 检查目录是否存在
|
||||
if [ ! -d "$FIX_DIR" ]; then
|
||||
echo "❌ Fix directory not found: $FIX_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 统计任务
|
||||
cd "$FIX_DIR"
|
||||
|
||||
BACKLOG_COUNT=$(ls -1 backlog/ 2>/dev/null | wc -l)
|
||||
IN_PROGRESS_COUNT=$(ls -1 in-progress/ 2>/dev/null | wc -l)
|
||||
COMPLETED_COUNT=$(ls -1 completed/ 2>/dev/null | wc -l)
|
||||
|
||||
# 输出报告
|
||||
echo ""
|
||||
echo "📊 MSH 前端修复任务进度报告"
|
||||
echo "================================"
|
||||
echo "⏰ 检查时间: $(date "+%Y-%m-%d %H:%M:%S")"
|
||||
echo ""
|
||||
echo "📈 任务统计:"
|
||||
echo " • 待处理 (backlog): $BACKLOG_COUNT"
|
||||
echo " • 进行中 (in-progress): $IN_PROGRESS_COUNT"
|
||||
echo " • 已完成 (completed): $COMPLETED_COUNT"
|
||||
echo " • 总计: $((BACKLOG_COUNT + IN_PROGRESS_COUNT + COMPLETED_COUNT))"
|
||||
echo ""
|
||||
echo "================================"
|
||||
echo "🔄 下次检查: 5分钟后"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user