{
  "permissions": {
    "allow": [
      "Bash(tree:*)",
      "Bash(npm run build:*)",
      "Bash(npx tsc:*)",
      "Bash(npx typescript:*)",
      "Bash(node_modules.bintsc:*)",
      "Bash(./node_modules/.bin/tsc:*)",
      "Bash(wsl:*)",
      "Bash(dir \"c:\\Users\\dong\\Desktop\\rwadurian\\backend\\services\\identity-service\\scripts\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" status)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" diff --stat)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" log --oneline -5)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" add .)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" add \"../admin-service/test/\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" status --short)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" commit -m \"$(cat <<''EOF''\nfeat(presence-service): 添加完整的测试套件和生产部署设施\n\n- 添加 165 个测试用例 (123 单元测试, 22 集成测试, 20 E2E测试)\n- 添加 Docker 多阶段构建和 docker-compose 生产部署配置\n- 添加完整的文档体系 (架构、API、开发、测试、部署)\n- 添加环境配置 (.env.development/production/test)\n- 添加部署脚本 (health-check, start-all, stop-service)\n- 修复 TypeScript 类型错误\n- 经 WSL2 验证所有生产部署命令测试通过\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" push)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" add deploy.sh scripts/quick-test.sh scripts/rebuild-kafka.sh scripts/README.md)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" commit -m \"$(cat <<''EOF''\nfeat(presence-service): 添加完整的部署脚本\n\n- 添加 deploy.sh 主部署脚本 (build/start/stop/logs/migrate/test)\n- 添加 scripts/quick-test.sh API 快速测试脚本\n- 添加 scripts/rebuild-kafka.sh Kafka 重建脚本\n- 更新 scripts/README.md 文档\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" diff deploy.sh)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" add deploy.sh)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" commit -m \"refactor(presence-service): 优化 deploy.sh 与主基础设施集成\n\n- 更新容器名和镜像名与项目规范一致\n- 添加 load_env 函数支持共享环境配置\n- 添加 up/logs-all/clean-all 命令\n- 使用动态 HEALTH_ENDPOINT\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" log --oneline -3)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" commit -m \"fix(presence-service): 修复 deploy.sh 自调用权限问题\n\n使用 bash \"\"$SCRIPT_DIR/deploy.sh\"\" 替代 $0 避免路径变化导致的权限问题\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" add .env.development .env.example .env.production Dockerfile docker-compose.yml scripts/README.md scripts/health-check.sh scripts/quick-test.sh scripts/rebuild-kafka.sh scripts/start-all.sh scripts/stop-service.sh src/main.ts)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services/presence-service\" commit -m \"$(cat <<''EOF''\nfix(presence-service): 统一端口配置为 3011\n\n修复端口配置不一致问题 (子项目使用3001，主项目使用3011)：\n- 更新 docker-compose.yml 端口映射和健康检查URL\n- 更新 Dockerfile EXPOSE 和 HEALTHCHECK 端口\n- 更新 .env.* 文件中的 APP_PORT\n- 更新 src/main.ts 默认端口\n- 更新所有脚本中的端口引用\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git add:*)",
      "Bash(git commit:*)",
      "Bash(git push:*)",
      "Bash(dir:*)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" status --short)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" add deploy.sh)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" commit -m \"$(cat <<''EOF''\nfix(deploy): 修复 health 命令使用正确的健康检查端点\n\n- 为每个微服务配置实际的健康检查端点路径\n- 大多数服务使用 /api/v1/health\n- backup-service 和 reward-service 使用 /health\n- leaderboard-service 使用 /api/health\n- 新增 presence-service (端口 3011)\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" add presence-service/deploy.sh)",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" commit -m \"$(cat <<''EOF''\nfeat(presence-service): 添加 init-db 命令创建数据库\n\n- 添加 init-db 命令自动创建 rwa_presence 数据库\n- 创建数据库后自动运行 prisma db push 创建表结构\n- 更新帮助文档\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" commit -m \"$(cat <<''EOF''\nfeat(deploy): 添加 presence-service 到主部署脚本\n\n- 在 init-databases.sh 中添加 rwa_presence 数据库\n- 在 migrate 函数中添加 presence-service\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" commit -m \"$(cat <<''EOF''\nfix(deploy): 添加 admin-service 数据库 rwa_admin\n\n- 在 init-databases.sh 中添加 rwa_admin 数据库\n- 在 migrate 函数中添加 admin-service\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>\nEOF\n)\")",
      "Bash(git -C \"c:/Users/dong/Desktop/rwadurian/backend/services\" push)"
    ],
    "deny": [],
    "ask": []
  }
}
