Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ main() {
detect_sha256
resolve_tag

# Short-circuit if already at TAG (CCTEAM_FORCE=1 to bypass).
# `ccteam --version` may print either `ccteam 0.6.8` or `0.6.8`; the
# release TAG may be `v0.6.8` — compare against both forms.
if [ -z "${CCTEAM_FORCE:-}" ] && command -v ccteam >/dev/null 2>&1; then
_current="$(ccteam --version 2>/dev/null | awk 'NR==1{print $NF}')"
_tag_no_v="${TAG#v}"
if [ -n "$_current" ] && { [ "$_current" = "$TAG" ] || [ "$_current" = "$_tag_no_v" ]; }; then
info "Already at $TAG; nothing to do."
info "(Set CCTEAM_FORCE=1 to reinstall anyway.)"
exit 0
fi
fi

_asset="ccteam-${TAG}-${SUFFIX}.${EXT}"
_base="https://github.com/${REPO}/releases/download/${TAG}"
_url="${_base}/${_asset}"
Expand Down Expand Up @@ -212,6 +225,16 @@ main() {
fi

mkdir -p "$INSTALL_DIR"

# Warn if the daemon is currently running — the new binary won't be
# picked up until `ccteam stop && ccteam start` cycles the supervisor.
# `pgrep -f "ccteam start"` matches the argv (not just the comm name),
# so it won't false-positive on the installer's own shell children.
if command -v pgrep >/dev/null 2>&1 && pgrep -f "ccteam start" >/dev/null 2>&1; then
warn "ccteam daemon is running. Restart after install:"
printf ' ccteam stop && ccteam start\n\n'
fi

mv "$_extracted" "$INSTALL_DIR/ccteam"
chmod +x "$INSTALL_DIR/ccteam"
info "${GREEN}Installed:${RESET} $INSTALL_DIR/ccteam ($TAG)"
Expand Down
8 changes: 1 addition & 7 deletions skills/ccteam-creator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,7 @@ render_project_mcp_json(current_ccteam_bin()) → project_dir/.mcp.json
Merges into existing `.mcp.json` if present (does not clobber other
servers).

## 5.8 Ensure daemon is running

Run `ccteam internal daemon ensure-running` so the workflow is
picked up. If it was already running, the next reload tick (≤ 5s)
will roster the new workflow.

## 5.9 User reply
## 5.8 User reply

```
好了 ✓
Expand Down
Loading