{
  "permissions": {
    "allow": [
      "Bash(mvn *)",
      "Bash(git *)",
      "Bash(rm *)",
      "Bash(mkdir *)",
      "Bash(touch *)",
      "Bash(cat *)",
      "Bash(ls *)",
      "Bash(find *)",
      "Bash(grep *)",
      "Bash(sed *)",
      "Bash(java *)",
      "Bash(python3 *)",
      "Write",
      "Edit",
      "Read",
      "Glob",
      "Grep",
      "Bash(cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | head -30)",
      "Bash(npm run build 2>&1 | head -40)",
      "Bash(npm run build 2>&1 | head -50)",
      "Bash(cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | tail -20)",
      "Bash(npm run build 2>&1 | tail -15)",
      "Bash(cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | tail -15)",
      "Bash(npm run build 2>&1 | tail -10)",
      "Bash(javap -cp /home/long/project/蚊子/target/classes /home/long/project/蚊子/target/classes/com/mosquito/project/permission/SysApprovalRecord.class | grep -i \"setId\\\\|setStatus\\\\|setFlowId\")",
      "Bash(git commit -m \"$\\(cat <<'EOF'\nfeat\\(approval\\): 实现完整的审批流后端服务\n\n- 新增实体类: SysApprovalFlow, SysApprovalRecord, SysApprovalHistory\n- 新增Repositories: ApprovalFlowRepository, ApprovalRecordRepository, ApprovalHistoryRepository\n- 完整实现ApprovalFlowService: 提交审批、处理审批、取消审批等\n- 更新ApprovalController连接实际服务\n- 添加单元测试ApprovalFlowServiceTest\n- 更新Ralph状态文件 \\(Phase 3: 90%\\)\nEOF\n\\)\")",
      "Bash(grep -l \"FAILURE\\\\|ERROR\" /home/long/project/蚊子/target/surefire-reports/*.txt | xargs -I{} basename {} .txt | head -15)",
      "Bash(cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | tail -10)",
      "Bash(mvn compile -q 2>&1 | tail -5 && cd /home/long/project/蚊子/frontend/admin && npm run build 2>&1 | tail -5)",
      "Bash(git commit -m \"$\\(cat <<'EOF'\nfeat\\(business\\): 添加业务模块前后端服务\n\n后端Controllers:\n- AuditController: 审计日志API\n- SystemController: 系统配置API\n- RewardController: 奖励管理API\n- RiskController: 风险管理API\n\n前端Services:\n- activity.ts: 活动管理服务\n- user管理服务\n-Manage.ts: 用户 reward.ts: 奖励管理服务\n- risk.ts: 风险管理服务\n- audit.ts: 审计日志服务\n- systemConfig.ts: 系统配置服务\n- activity.ts: 活动类型定义\nEOF\n\\)\")",
      "Bash(mvn compile -q 2>&1 | tail -5 && npm run build 2>&1 | tail -5)",
      "mcp__serena__get_symbols_overview",
      "Bash(npm run build 2>&1 | tail -20)",
      "Bash(npm test -- --run 2>&1 | tail -30)",
      "Bash(curl -s http://localhost:3000 2>&1 | head -5)",
      "Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3000 || echo \"Gitea not accessible\")",
      "Bash(cd /home/long/project/蚊子/frontend/admin && npm run test:unit 2>&1 | tail -30)",
      "Bash(npm run 2>&1)",
      "Bash(git add -A && git commit -m \"feat: 添加独立登录认证功能\n\n- 添加LoginController处理登录/登出请求\n- 添加AuthService实现用户名密码认证和Token管理\n- 添加LoginRequest/LoginResponse DTO\n- 修复RoleRepository JPA查询问题\n- 完善ApprovalTimeoutJob实现\")",
      "Bash(cd /home/long/project/蚊子/src/main/resources/db/migration && \\\\\nsed -i 's/TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW\\(\\)/TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP/g' *.sql && \\\\\nsed -i 's/TIMESTAMP WITH TIME ZONE DEFAULT NOW\\(\\)/TIMESTAMP DEFAULT CURRENT_TIMESTAMP/g' *.sql && \\\\\nsed -i 's/TIMESTAMP WITH TIME ZONE;/TIMESTAMP;/g' *.sql && \\\\\necho \"Done\")",
      "Bash(curl -s -X POST http://localhost:8080/api/auth/login \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\"username\":\"admin\",\"password\":\"admin\"}')"
    ],
    "deny": []
  },
  "autoApprovedAllowDangerous": true
}
