mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
- Reorganize v3/ into implementation/ subfolders: - planning/, architecture/, migration/, integration/ - security/, adrs/, research/, swarm-plans/ - Add 15-agent concurrent swarm implementation plans: - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x) - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies - Update .claude/settings.json with proper hooks format - Add bash aliases for claude --dangerously-skip-permissions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
84 lines
2.4 KiB
Bash
Executable File
84 lines
2.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Build script that works around Deno compile deprecation warnings
|
|
|
|
echo "🔨 Building Claude Flow (filtering deprecation warnings)..."
|
|
|
|
# Ensure bin directory exists
|
|
mkdir -p bin
|
|
|
|
# Set Deno path
|
|
export PATH="/home/codespace/.deno/bin:$PATH"
|
|
|
|
# Remove any existing binary to avoid conflicts
|
|
rm -f bin/claude-flow
|
|
|
|
# Create a temporary script that will capture the build process
|
|
cat > /tmp/deno-build.sh << 'EOF'
|
|
#!/bin/bash
|
|
# Run deno compile and capture all output
|
|
deno compile --allow-all --no-check --output bin/claude-flow src/cli/main.ts 2>&1
|
|
EOF
|
|
|
|
chmod +x /tmp/deno-build.sh
|
|
|
|
# Run the build and capture output
|
|
BUILD_OUTPUT=$(/tmp/deno-build.sh)
|
|
BUILD_EXIT_CODE=$?
|
|
|
|
# Check if the binary was created despite the error
|
|
if [ -f "bin/claude-flow" ]; then
|
|
echo "✅ Binary created successfully!"
|
|
chmod +x bin/claude-flow
|
|
|
|
# Test if it works
|
|
if bin/claude-flow --version &>/dev/null; then
|
|
echo "✅ Binary is functional!"
|
|
echo "📍 Location: bin/claude-flow"
|
|
exit 0
|
|
else
|
|
echo "⚠️ Binary was created but may not be functional"
|
|
fi
|
|
else
|
|
# Check for temporary files that might have been created
|
|
TEMP_FILES=$(find bin -name "claude-flow.tmp*" -type f 2>/dev/null)
|
|
|
|
if [ -n "$TEMP_FILES" ]; then
|
|
echo "📦 Found temporary build artifacts..."
|
|
|
|
for temp_file in $TEMP_FILES; do
|
|
echo " Checking: $temp_file"
|
|
|
|
# Check if it's a valid executable
|
|
if file "$temp_file" | grep -q "executable"; then
|
|
echo " ✅ Valid executable found!"
|
|
|
|
# Move it to the final location
|
|
mv "$temp_file" bin/claude-flow
|
|
chmod +x bin/claude-flow
|
|
|
|
if bin/claude-flow --version &>/dev/null; then
|
|
echo "✅ Build successful!"
|
|
echo "📍 Location: bin/claude-flow"
|
|
exit 0
|
|
fi
|
|
fi
|
|
done
|
|
fi
|
|
fi
|
|
|
|
# If we get here, build failed
|
|
echo "❌ Build failed"
|
|
echo ""
|
|
echo "Build output:"
|
|
echo "$BUILD_OUTPUT" | grep -v "Import assertions are deprecated"
|
|
|
|
# Restore backup if available
|
|
if [ -f "bin/claude-flow.working-backup" ]; then
|
|
echo ""
|
|
echo "🔄 Restoring working backup..."
|
|
cp bin/claude-flow.working-backup bin/claude-flow
|
|
chmod +x bin/claude-flow
|
|
echo "✅ Backup restored"
|
|
fi
|
|
|
|
exit 1 |