mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
- Rename setup-agent-worktrees.sh -> parallel-init.sh - Rename sync-agent-integration.sh -> parallel-sync.sh - Rename 13-agent-parallel-workflow.md -> 13-parallel-workflow.md - Add parallel-common.sh with shared utilities - Add parallel-up.sh (sync + dev-all in one step) - Add parallel-down.sh (stop integration stack) - Remove agent-worktrees and agent-sync Makefile targets - Remove AGENT_BASE_REF and AGENT_WORKTREE_ROOT variables - Clean up compatibility shim references in docs
27 lines
608 B
Bash
Executable file
27 lines
608 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# shellcheck source=./parallel-common.sh
|
|
source "$SCRIPT_DIR/parallel-common.sh"
|
|
|
|
usage() {
|
|
cat <<'EOF'
|
|
Usage: parallel-down.sh
|
|
|
|
Stops the integration worktree development stack.
|
|
|
|
Run this inside an integration worktree on branch agent/integration/<task>.
|
|
EOF
|
|
}
|
|
|
|
if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then
|
|
usage
|
|
exit 0
|
|
fi
|
|
|
|
TASK_SLUG="$(require_integration_task)"
|
|
REPO_ROOT="$(repo_root)"
|
|
|
|
info "Stopping integration stack for task $TASK_SLUG in $REPO_ROOT"
|
|
make -C "$REPO_ROOT" dev-all-down
|