#!/usr/bin/env bash
# 组合包安装脚本（Trove 自动生成，勿手改；组合包文档为准）
# combo: combo-cicd-quality ｜ CI/CD 质量门禁（swe-rex + deepcode + code-review-graph） ｜ 状态: verified
# 生成: 2026-09-24 ｜ 详情: https://trove.xin/combos/combo-cicd-quality.html ｜ 依赖警告见文档
# 按官方下载源 + 国内镜像适配；每条命令后可验证（预期输出见组合包文档）。
set -euo pipefail

# ==== [1/3] swe-rex：沙箱执行服务器 ====
# 版本要求: [1.4.0, 1.4.0]（manifest 锁定；Python >= 3.10；release v1.4.0 无独立资产，分发走 PyPI）
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple swe-rex==1.4.0
swerex-remote --help   # 预期输出: usage: swerex-remote [-h] [--host HOST] [--port PORT] --auth-token AUTH_TOKEN

# ==== [2/3] deepcode：静态分析 ====
# 版本要求: [2.1.0, 2.1.0]（manifest 锁定；Python >= 3.12）
pip install deepcode-hku --index-url https://pypi.tuna.tsinghua.edu.cn/simple
deepcode --version   # 预期输出: DeepCode 2.1.0

# ==== [3/3] code-review-graph：审查图谱 ====
# 版本要求: [2.3.8, 2.3.8]（manifest 锁定；Python >= 3.10）
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple code-review-graph==2.3.8
code-review-graph --version   # 预期输出: code-review-graph 2.3.8

