Files
ruflo/docker-test/test-alpha50.dockerfile
T
rUvandClaude af1c8a7c72 feat: implement hive-mind resume functionality (#245)
* fix: update hooks format for Claude Code 1.0.51+ compatibility

- Changed hooks from object format to array format (PreToolUse, PostToolUse, Stop)
- Added migration script for existing users
- Updated settings.json template in init command
- Removed unsupported fields (mcpServers, features, performance)
- Added @alpha tag to npx commands in hooks

Fixes #235

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

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: implement hive-mind resume functionality (alpha.50)

- Add HiveMindSessionManager for session persistence
- Implement auto-save middleware with 30-second intervals
- Add 'hive-mind resume <session-id>' command
- Add 'hive-mind sessions' command to list sessions
- Integrate session tracking into spawn workflow
- Add comprehensive test suite (80+ tests)
- Update documentation and fix README
- Bump version to 2.0.0-alpha.50

Fixes #232

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>

* chore: bump version to 2.0.0-alpha.51

- Update version strings in all CLI files
- Prepare for npm publication

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-14 10:56:09 -04:00

50 lines
1.2 KiB
Docker

FROM node:20-alpine
WORKDIR /app
# Install required packages
RUN apk add --no-cache \
git \
bash \
curl \
jq
# Install claude-flow alpha.50
RUN npm install -g claude-flow@alpha
# Create test script
RUN echo '#!/bin/bash\n\
set -e\n\
echo "=== Testing Claude Flow alpha.50 ==="\n\
echo ""\n\
echo "1. Version check:"\n\
claude-flow --version\n\
echo ""\n\
echo "2. Help text:"\n\
claude-flow --help | head -20\n\
echo ""\n\
echo "3. Hive-mind help:"\n\
claude-flow hive-mind help\n\
echo ""\n\
echo "4. Initialize hive-mind:"\n\
claude-flow hive-mind init\n\
echo ""\n\
echo "5. Spawn a test session:"\n\
claude-flow hive-mind spawn "Test Docker environment" --queen-type strategic --max-workers 3\n\
echo ""\n\
echo "6. List sessions:"\n\
claude-flow hive-mind sessions\n\
echo ""\n\
echo "7. Get session ID and test resume:"\n\
SESSION_ID=$(claude-flow hive-mind sessions --json | jq -r ".[0].session_id" || echo "no-session")\n\
if [ "$SESSION_ID" != "no-session" ]; then\n\
echo "Resuming session: $SESSION_ID"\n\
claude-flow hive-mind resume "$SESSION_ID"\n\
else\n\
echo "No session found to resume"\n\
fi\n\
echo ""\n\
echo "=== All tests passed! ==="\n\
' > /test-alpha50.sh && chmod +x /test-alpha50.sh
CMD ["/test-alpha50.sh"]