From 3d3a4f558bda87824fddacf37a9d559ae63a3e58 Mon Sep 17 00:00:00 2001 From: rUv Date: Sat, 6 Sep 2025 20:52:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/simple-commands/init/templates/claude?= =?UTF-8?q?-md.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../init/templates/claude-md.js | 120 ++++++++++++++++++ .../.claude/checkpoints/1757191920.json | 1 + .../.claude/checkpoints/1757191921.json | 1 + 3 files changed, 122 insertions(+) create mode 100644 test-final/.claude/checkpoints/1757191920.json create mode 100644 test-final/.claude/checkpoints/1757191921.json diff --git a/src/cli/simple-commands/init/templates/claude-md.js b/src/cli/simple-commands/init/templates/claude-md.js index 71072ae9a7..032622e904 100644 --- a/src/cli/simple-commands/init/templates/claude-md.js +++ b/src/cli/simple-commands/init/templates/claude-md.js @@ -978,3 +978,123 @@ NEVER proactively create documentation files (*.md) or README files. Only create Never save working files, text/mds and tests to the root folder. `; } + +export function createFlowNexusClaudeMd() { + return `# Claude Code Configuration - Flow Nexus Integration + +## 🌐 Flow Nexus Cloud Platform + +Flow Nexus extends Claude Flow with cloud-powered features for AI development and deployment. + +### Quick Start +1. **Register**: Use \\`mcp__flow-nexus__user_register\\` with email/password +2. **Login**: Use \\`mcp__flow-nexus__user_login\\` to access features +3. **Check Balance**: Use \\`mcp__flow-nexus__check_balance\\` for credits + +### 🚀 Key Capabilities + +**🤖 AI Swarms** +- Deploy multi-agent swarms in cloud sandboxes +- Pre-built templates for common architectures +- Auto-scaling and load balancing + +**📦 E2B Sandboxes** +- \\`mcp__flow-nexus__sandbox_create\\` - Isolated execution environments +- Support for Node.js, Python, React, Next.js +- Real-time code execution with environment variables + +**⚡ Workflows** +- \\`mcp__flow-nexus__workflow_create\\` - Event-driven automation +- Parallel task processing with message queues +- Reusable workflow templates + +**🎯 Challenges & Learning** +- \\`mcp__flow-nexus__challenges_list\\` - Coding challenges +- Earn rUv credits by completing tasks +- Global leaderboard and achievements + +**🧠 Neural Networks** +- \\`mcp__flow-nexus__neural_train\\` - Train custom models +- Distributed training across sandboxes +- Pre-built templates for ML tasks + +**💰 Credits & Billing** +- Pay-as-you-go with rUv credits +- Auto-refill configuration available +- Free tier for getting started + +### 🤖 Flow Nexus Agents + +Specialized agents for Flow Nexus operations available in \\`.claude/agents/flow-nexus/\\`: + +- **flow-nexus-auth**: Authentication and user management +- **flow-nexus-sandbox**: E2B sandbox deployment and management +- **flow-nexus-swarm**: AI swarm orchestration and scaling +- **flow-nexus-workflow**: Event-driven workflow automation +- **flow-nexus-neural**: Neural network training and deployment +- **flow-nexus-challenges**: Coding challenges and gamification +- **flow-nexus-app-store**: Application marketplace management +- **flow-nexus-payments**: Credit management and billing +- **flow-nexus-user-tools**: User management and system utilities + +### 📁 Flow Nexus Commands + +Detailed Flow Nexus command documentation available in \\`.claude/commands/flow-nexus/\\`: + +- \\`login-registration.md\\` - Authentication workflows +- \\`sandbox.md\\` - E2B sandbox management +- \\`swarm.md\\` - AI swarm deployment +- \\`workflow.md\\` - Automation workflows +- \\`neural-network.md\\` - ML model training +- \\`challenges.md\\` - Coding challenges +- \\`app-store.md\\` - App marketplace +- \\`payments.md\\` - Credit and billing +- \\`user-tools.md\\` - User utilities + +### 💡 Example: Deploy a Swarm +\\`\\`\\`javascript +// 1. Login to Flow Nexus +mcp__flow-nexus__user_login({ + email: "user@example.com", + password: "password" +}) + +// 2. Initialize swarm +mcp__flow-nexus__swarm_init({ + topology: "mesh", + maxAgents: 5 +}) + +// 3. Create sandbox +mcp__flow-nexus__sandbox_create({ + template: "node", + name: "api-dev" +}) + +// 4. Orchestrate task +mcp__flow-nexus__task_orchestrate({ + task: "Build REST API with authentication", + strategy: "parallel" +}) +\\`\\`\\` + +### 🔗 Integration with Claude Code + +Flow Nexus seamlessly integrates with Claude Code through MCP (Model Context Protocol): + +1. **Add MCP Server**: \\`claude mcp add flow-nexus npx flow-nexus@latest mcp start\\` +2. **Use in Claude Code**: Access all Flow Nexus tools through MCP interface +3. **Agent Coordination**: Use Flow Nexus agents for specialized cloud operations +4. **Command Reference**: Use slash commands for quick Flow Nexus operations + +### 📚 Learn More + +- Documentation: https://github.com/ruvnet/claude-flow#flow-nexus +- MCP Integration: Use \\`mcp__flow-nexus__*\\` tools in Claude Code +- Agent Usage: Type \\`/\\` in Claude Code to see Flow Nexus commands +- Community: Join discussions and share templates + +--- + +**Ready to build with Flow Nexus? Start with authentication and explore the cloud-powered AI development platform!** +`; diff --git a/test-final/.claude/checkpoints/1757191920.json b/test-final/.claude/checkpoints/1757191920.json new file mode 100644 index 0000000000..601274936f --- /dev/null +++ b/test-final/.claude/checkpoints/1757191920.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250906-205159", "file": "/workspaces/claude-code-flow/src/cli/commands/index.ts", "timestamp": "2025-09-06T20:52:00Z", "type": "pre-edit", "original_branch": "alpha101"} diff --git a/test-final/.claude/checkpoints/1757191921.json b/test-final/.claude/checkpoints/1757191921.json new file mode 100644 index 0000000000..0d7cc3a150 --- /dev/null +++ b/test-final/.claude/checkpoints/1757191921.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250906-205201", "file": "/workspaces/claude-code-flow/src/cli/commands/index.ts", "timestamp": "2025-09-06T20:52:01Z", "type": "post-edit", "branch": "alpha101", "diff_summary": " .claude-flow/metrics/system-metrics.json | 1056 ++++++++++++++++-------- claude-flow-wiki | 0 src/cli/commands/index.ts | 26 +- test-final/.claude/checkpoints/1757191900.json | 1 + test-final/.claude/checkpoints/1757191902.json | 1 + 5 files changed, 747 insertions(+), 337 deletions(-) "}