Files
ruflo/scripts/validate-phase7.sh
T
rUvandClaude 1b96e71252 🚀 Release v2.5.0-alpha.130 - Phase 4 SDK Integration Complete
✨ New Features:
- agents/spawn_parallel: Parallel agent spawning (10-20x faster)
- query/control: Real-time query control (pause/resume/terminate/change_model)
- query/list: Active query monitoring with status

🔧 Improvements:
- Fixed async/await in MCP tool registration
- Fixed missing exports in agent-types.ts
- Updated help dialog with v2.5.0-alpha.130 features
- Removed non-working UI options from help
- Build optimization (568 files compiled successfully)

📚 Documentation:
- Created comprehensive Phase 4 implementation docs
- Updated README with changelog
- Created NPM publish readiness report
- Complete conversation summary

🎯 Performance:
- 10-20x faster agent spawning
- 500-2000x potential speedup with combined stack
- Real-time query control
- Dynamic model switching for cost optimization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 15:31:16 +00:00

106 lines
2.4 KiB
Bash
Executable File

#!/bin/bash
#
# Phase 7: Validation Script
# Validates implementation with real Claude-Flow CLI commands
#
set -e
echo "=========================================="
echo "Phase 7: CLI Validation"
echo "=========================================="
echo ""
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m'
VALIDATION_PASSED=0
VALIDATION_FAILED=0
validate_command() {
local description=$1
local command=$2
echo "Testing: $description"
echo "Command: $command"
if eval "$command" > /dev/null 2>&1; then
echo -e "${GREEN}✓ Passed${NC}"
VALIDATION_PASSED=$((VALIDATION_PASSED + 1))
else
echo -e "${RED}✗ Failed${NC}"
VALIDATION_FAILED=$((VALIDATION_FAILED + 1))
fi
echo ""
}
echo "=== Session Forking Tests ==="
echo ""
validate_command \
"Swarm initialization with topology" \
"./bin/claude-flow swarm init --topology mesh --max-agents 10"
validate_command \
"Agent spawn command" \
"./bin/claude-flow agent spawn --type coder --capabilities code_generation"
validate_command \
"Swarm status check" \
"./bin/claude-flow swarm status"
echo "=== Hook Matcher Tests ==="
echo ""
validate_command \
"Pre-task hook with file pattern" \
"./bin/claude-flow hooks pre-task --description 'Test task' --file 'src/**/*.ts'"
validate_command \
"Post-edit hook with memory key" \
"./bin/claude-flow hooks post-edit --file 'test.ts' --memory-key 'test/key'"
validate_command \
"Notify hook" \
"./bin/claude-flow hooks notify --message 'Test notification'"
echo "=== In-Process MCP Tests ==="
echo ""
validate_command \
"MCP server status" \
"./bin/claude-flow mcp status"
validate_command \
"Session restore" \
"./bin/claude-flow hooks session-restore --session-id 'test-session'"
echo "=== Memory Operations Tests ==="
echo ""
validate_command \
"Session end with metrics" \
"./bin/claude-flow hooks session-end --export-metrics true"
validate_command \
"Post-task hook" \
"./bin/claude-flow hooks post-task --task-id 'test-task-123'"
echo ""
echo "=========================================="
echo "Validation Summary"
echo "=========================================="
echo ""
echo "Passed: $VALIDATION_PASSED"
echo "Failed: $VALIDATION_FAILED"
echo ""
if [ $VALIDATION_FAILED -eq 0 ]; then
echo -e "${GREEN}✓ All CLI validations passed!${NC}"
exit 0
else
echo -e "${YELLOW}⚠ Some CLI validations failed${NC}"
exit 1
fi