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
36 changes: 18 additions & 18 deletions bin/ccs
Original file line number Diff line number Diff line change
Expand Up @@ -270,47 +270,47 @@ print()
# Ghost binary
if command -v ghost &>/dev/null; then
echo -e " $OK ghost binary on PATH"
((pass++))
pass=$((pass + 1))
else
echo -e " $FAIL ghost binary not found"
((fail++))
fail=$((fail + 1))
fi

# Ghost MCP registered
if claude mcp list 2>&1 | grep -q "ghost"; then
echo -e " $OK Ghost MCP registered"
((pass++))
pass=$((pass + 1))
else
echo -e " $FAIL Ghost MCP not registered (run: claude mcp add ghost -s user -- \$(which ghost) mcp)"
((fail++))
fail=$((fail + 1))
fi

# Ollama running
if curl -s --max-time 2 http://localhost:11434/api/tags &>/dev/null; then
echo -e " $OK Ollama server running"
((pass++))
pass=$((pass + 1))

# Embedding model
if curl -s http://localhost:11434/api/tags 2>/dev/null | grep -q "nomic-embed-text"; then
echo -e " $OK nomic-embed-text model available"
((pass++))
pass=$((pass + 1))
else
echo -e " $FAIL nomic-embed-text model missing (run: ollama pull nomic-embed-text)"
((fail++))
fail=$((fail + 1))
fi
else
echo -e " $FAIL Ollama not running (run: ollama serve)"
echo -e " $WARN skipping model check"
((fail++))
fail=$((fail + 1))
fi

# cc-conversation-search
if command -v cc-conversation-search &>/dev/null; then
echo -e " $OK cc-conversation-search installed"
((pass++))
pass=$((pass + 1))
else
echo -e " $FAIL cc-conversation-search not found"
((fail++))
fail=$((fail + 1))
fi

# Search index
Expand All @@ -320,33 +320,33 @@ print()
age_hours=$(( age_seconds / 3600 ))
if [ "$age_hours" -lt 24 ]; then
echo -e " $OK search index fresh (updated ${age_hours}h ago)"
((pass++))
pass=$((pass + 1))
else
echo -e " $WARN search index stale (${age_hours}h old - run: ccs ix)"
((pass++))
pass=$((pass + 1))
fi
else
echo -e " $FAIL search index missing (run: ccs ix)"
((fail++))
fail=$((fail + 1))
fi

# ccs shortcut
if command -v ccs &>/dev/null; then
echo -e " $OK ccs shortcut on PATH"
((pass++))
pass=$((pass + 1))
else
echo -e " $FAIL ccs not on PATH"
((fail++))
fail=$((fail + 1))
fi

# Commands installed
cmd_count=0
for cmd in rename-session standup wrapup team-log team-standup; do
[ -f "${HOME}/.claude/commands/${cmd}.md" ] && ((cmd_count++))
[ -f "${HOME}/.claude/commands/${cmd}.md" ] && cmd_count=$((cmd_count + 1))
done
if [ "$cmd_count" -eq 5 ]; then
echo -e " $OK all slash commands installed ($cmd_count/5)"
((pass++))
pass=$((pass + 1))
else
echo -e " $WARN $cmd_count/5 slash commands installed (run: ccs update)"
fi
Expand All @@ -357,7 +357,7 @@ print()
if [ -n "$latest" ]; then
if [ "$CCS_VERSION" = "$latest" ]; then
echo -e " $OK ccs v$CCS_VERSION (latest)"
((pass++))
pass=$((pass + 1))
else
echo -e " $WARN ccs v$CCS_VERSION (v$latest available - run: ccs update)"
fi
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ for cmd_file in "$SCRIPT_DIR"/commands/*.md; do
[ -f "$cmd_file" ] || continue
cp "$cmd_file" "$CLAUDE_DIR/commands/"
ok "Installed /$(basename "${cmd_file%.md}") command"
((cmd_count++))
cmd_count=$((cmd_count + 1))
done
if [ "$cmd_count" -eq 0 ]; then
warn "No commands found in repo"
Expand Down
8 changes: 6 additions & 2 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ echo ""

# Remove MCP registration (check both scopes)
if [ "$LOCAL_ONLY" -eq 0 ] && command -v claude &>/dev/null; then
claude mcp remove ghost -s user 2>/dev/null && info "Removed Ghost MCP registration (user scope)" || true
claude mcp remove ghost -s project 2>/dev/null && info "Removed Ghost MCP registration (project scope)" || true
if claude mcp remove ghost -s user 2>/dev/null; then
info "Removed Ghost MCP registration (user scope)"
fi
if claude mcp remove ghost -s project 2>/dev/null; then
info "Removed Ghost MCP registration (project scope)"
fi
if ! claude mcp list 2>&1 | grep -q ghost; then
info "Ghost MCP fully removed"
else
Expand Down
8 changes: 4 additions & 4 deletions verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ check() {
shift
if "$@" &>/dev/null; then
echo -e " ${GREEN}PASS${NC} $desc"
((PASS++))
PASS=$((PASS + 1))
else
echo -e " ${RED}FAIL${NC} $desc"
((FAIL++))
FAIL=$((FAIL + 1))
fi
}

Expand All @@ -39,10 +39,10 @@ check_warn() {
shift
if "$@" &>/dev/null; then
echo -e " ${GREEN}PASS${NC} $desc"
((PASS++))
PASS=$((PASS + 1))
else
echo -e " ${YELLOW}WARN${NC} $desc"
((WARN++))
WARN=$((WARN + 1))
fi
}

Expand Down
Loading