mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
feat: add CCW Loop System for automated iterative workflow execution
Implements a complete loop execution system with multi-loop parallel support, dashboard monitoring, and comprehensive security validation. Core features: - Loop orchestration engine (loop-manager, loop-state-manager) - Multi-loop parallel execution with independent state management - REST API endpoints for loop control (pause, resume, stop, retry) - WebSocket real-time status updates - Dashboard Loop Monitor view with live updates - Security: path traversal protection and sandboxed JavaScript evaluation Test coverage: - 42 comprehensive tests covering multi-loop, API, WebSocket, security - Security validation for success_condition injection attacks - Edge case handling and end-to-end workflow tests
This commit is contained in:
1041
tests/loop-comprehensive-test.js
Normal file
1041
tests/loop-comprehensive-test.js
Normal file
File diff suppressed because it is too large
Load Diff
26
tests/run-loop-comprehensive-test.sh
Normal file
26
tests/run-loop-comprehensive-test.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# CCW Loop System - Comprehensive Test Runner
|
||||
|
||||
echo "============================================"
|
||||
echo "🧪 CCW LOOP SYSTEM - COMPREHENSIVE TESTS"
|
||||
echo "============================================"
|
||||
echo ""
|
||||
|
||||
# Check if Node.js is available
|
||||
if ! command -v node &> /dev/null; then
|
||||
echo "❌ Error: Node.js is not installed or not in PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get the project root directory
|
||||
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
echo "📁 Project Root: $PROJECT_ROOT"
|
||||
echo ""
|
||||
|
||||
# Run the comprehensive test
|
||||
node tests/loop-comprehensive-test.js "$@"
|
||||
|
||||
# Exit with the test's exit code
|
||||
exit $?
|
||||
Reference in New Issue
Block a user