Files
ruflo/v2/scripts/build-workaround.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

71 lines
2.0 KiB
Bash
Executable File

#!/bin/bash
# Workaround build script for Deno deprecation warning
echo "🔨 Building Claude Flow with workaround..."
# Ensure bin directory exists
mkdir -p bin
# Set Deno path
export PATH="/home/codespace/.deno/bin:$PATH"
# First, try to build normally to a temp file
echo "Attempting build..."
# Build command that continues despite warnings
(deno compile --allow-all --no-check --output=bin/claude-flow.tmp src/cli/main.ts 2>&1 || true) | grep -v "Import assertions are deprecated"
# Check if the temporary binary was created despite the error
if [ -f "bin/claude-flow.tmp" ]; then
echo "✅ Build artifact created!"
# The binary might still work, so let's test it
if bin/claude-flow.tmp --version &>/dev/null; then
echo "✅ Binary is functional!"
# Backup existing binary
if [ -f "bin/claude-flow" ]; then
cp bin/claude-flow bin/claude-flow.backup
fi
# Replace with new binary
mv bin/claude-flow.tmp bin/claude-flow
chmod +x bin/claude-flow
echo "✅ Build successful!"
exit 0
else
echo "❌ Binary is not functional"
rm -f bin/claude-flow.tmp
fi
fi
# If we get here, try bundling as a fallback
echo "Trying bundle approach..."
# Bundle the TypeScript to JavaScript first
if deno bundle src/cli/main.ts bin/claude-flow.bundle.js &>/dev/null; then
# Create a wrapper script
cat > bin/claude-flow.new << 'EOF'
#!/usr/bin/env -S deno run --allow-all --no-check
import "./claude-flow.bundle.js";
EOF
chmod +x bin/claude-flow.new
# Test the wrapper
if bin/claude-flow.new --version &>/dev/null; then
echo "✅ Bundle wrapper is functional!"
# Backup and replace
if [ -f "bin/claude-flow" ]; then
cp bin/claude-flow bin/claude-flow.backup
fi
mv bin/claude-flow.new bin/claude-flow
echo "✅ Build successful (bundle mode)!"
exit 0
fi
fi
echo "❌ All build attempts failed"
echo "Keeping existing binary in place"
exit 1