Files
ruflo/v2/scripts/force-build.sh
T
rUvandClaude Opus 4.5 1b6a1971f7 feat(v3): add comprehensive v3 implementation plans and swarm architecture
- 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>
2026-01-04 15:40:51 +00:00

63 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Force build script that works around Deno deprecation issues
echo "🔨 Force Building Claude Flow..."
echo "================================"
# Ensure bin directory exists
mkdir -p bin
# Set Deno path
export PATH="/home/codespace/.deno/bin:$PATH"
# Backup existing binary
if [ -f "bin/claude-flow" ]; then
echo "📦 Backing up existing binary..."
cp bin/claude-flow bin/claude-flow.working
fi
# Force remove any existing temp files
rm -f bin/claude-flow.tmp*
# Try to compile, ignoring the exit code
echo "🏗️ Attempting build (ignoring errors)..."
deno compile --allow-all --no-check --output=bin/claude-flow.tmp src/cli/main.ts 2>&1 | grep -v "Import assertions" || true
# Wait a moment for file system
sleep 1
# Check if ANY temporary file was created
TEMP_FILE=$(ls bin/claude-flow.tmp* 2>/dev/null | head -1)
if [ -n "$TEMP_FILE" ] && [ -f "$TEMP_FILE" ]; then
echo "📦 Found build artifact: $TEMP_FILE"
# Check if it's executable
if [ -x "$TEMP_FILE" ]; then
echo "✅ Build artifact is executable!"
# Move to final location
mv -f "$TEMP_FILE" bin/claude-flow
chmod +x bin/claude-flow
echo "✅ Build successful!"
echo "Binary location: bin/claude-flow"
exit 0
else
echo "⚠️ Build artifact is not executable, making it executable..."
chmod +x "$TEMP_FILE"
mv -f "$TEMP_FILE" bin/claude-flow
echo "✅ Build completed with warnings"
exit 0
fi
else
echo "❌ No build artifact found"
# Restore backup
if [ -f "bin/claude-flow.working" ]; then
echo "🔄 Restoring working binary..."
mv bin/claude-flow.working bin/claude-flow
fi
exit 1
fi