#!/usr/bin/env bash
# 组合包安装脚本（Trove 自动生成，勿手改；组合包文档为准）
# combo: combo-multi-agent-workflow ｜ 多 Agent 工作流编排 ｜ 状态: partial
# 生成: 2026-09-24 ｜ 详情: https://trove.xin/combos/combo-multi-agent-workflow.html ｜ 依赖警告见文档
# 按官方下载源 + 国内镜像适配；每条命令后可验证（预期输出见组合包文档）。
set -euo pipefail

# ==== [1/3] ruflo：编排主线 ====
# 版本要求: 3.38.20（2026-08-28 收录实测；Node >= 18，需已装 Claude Code / Codex 客户端）
npm_config_registry=https://registry.npmmirror.com npx -y ruflo init --no-signup --no-skills-sh --no-codex-detect
npx -y ruflo --version

# ==== [2/3] claude-mem：跨会话记忆支撑 ====
# 版本要求: 0.11.x（2026-08-28 收录实测；Node >= 18）
npm_config_registry=https://registry.npmmirror.com npm install -g claude-mem
claude-mem install --ide claude-code

# ==== [3/3] claude-code-router：模型路由支撑 ====
# 版本要求: 3.0.22（2026-08-28 收录实测；Node >= 18）
npm_config_registry=https://registry.npmmirror.com npm install -g @musistudio/claude-code-router --no-audit --no-fund
ccr --help

