@claude-flow/cli 3.7.0-alpha.81 → 3.7.0-alpha.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/core/coder.md +453 -0
- package/.claude/agents/core/researcher.md +369 -0
- package/.claude/agents/core/reviewer.md +520 -0
- package/.claude/agents/core/tester.md +512 -0
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/release-swarm.md +1 -1
- package/.claude/agents/github/repo-architect.md +2 -2
- package/.claude/agents/github/swarm-pr.md +1 -1
- package/.claude/agents/github/workflow-automation.md +2 -2
- package/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude/agents/v3/adr-architect.md +184 -0
- package/.claude/agents/v3/memory-specialist.md +995 -0
- package/.claude/agents/v3/security-auditor.md +771 -0
- package/.claude/agents/v3/sparc-orchestrator.md +182 -0
- package/.claude/commands/flow-nexus/app-store.md +124 -0
- package/.claude/commands/flow-nexus/challenges.md +120 -0
- package/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/.claude/commands/flow-nexus/payments.md +116 -0
- package/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/.claude/commands/flow-nexus/swarm.md +87 -0
- package/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/.claude/commands/flow-nexus/workflow.md +115 -0
- package/.claude/commands/github/code-review-swarm.md +1 -1
- package/.claude/commands/github/issue-tracker.md +3 -3
- package/.claude/commands/github/release-manager.md +3 -5
- package/.claude/commands/github/release-swarm.md +1 -1
- package/.claude/commands/github/repo-architect.md +2 -2
- package/.claude/commands/github/swarm-issue.md +1 -4
- package/.claude/commands/github/swarm-pr.md +3 -6
- package/.claude/commands/github/sync-coordinator.md +1 -3
- package/.claude/commands/github/workflow-automation.md +2 -2
- package/.claude/helpers/github-safe.js +60 -95
- package/.claude/helpers/github-setup.sh +9 -26
- package/.claude/helpers/hook-handler.cjs +4 -12
- package/.claude/helpers/statusline.cjs +2 -31
- package/.claude/settings.json +1 -1
- package/README.md +38 -55
- package/dist/src/commands/daemon.d.ts +0 -20
- package/dist/src/commands/daemon.d.ts.map +1 -1
- package/dist/src/commands/daemon.js +5 -82
- package/dist/src/commands/daemon.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +6 -17
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/embeddings.d.ts.map +1 -1
- package/dist/src/commands/embeddings.js +9 -18
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/index.d.ts +26 -26
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +1 -21
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +5 -43
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/start.js +1 -1
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/swarm.js +1 -1
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +0 -1
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +0 -41
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +0 -1
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +2 -19
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +15 -74
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +31 -75
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +0 -23
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +5 -18
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +0 -12
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +5 -38
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-execute-core.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-execute-core.js +74 -141
- package/dist/src/mcp-tools/agent-execute-core.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +4 -112
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/browser-session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/browser-session-tools.js +2 -13
- package/dist/src/mcp-tools/browser-session-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +0 -44
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +0 -2
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +6 -100
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +7 -332
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.js +1 -17
- package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +1 -125
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +0 -28
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +2 -4
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +0 -48
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +0 -48
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +0 -108
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +0 -4
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +8 -49
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +0 -4
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +6 -24
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts +4 -15
- package/dist/src/plugins/store/discovery.d.ts.map +1 -1
- package/dist/src/plugins/store/discovery.js +18 -40
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/prompt.d.ts +3 -3
- package/dist/src/prompt.d.ts.map +1 -1
- package/dist/src/ruvector/coverage-tools.js +6 -6
- package/dist/src/ruvector/coverage-tools.js.map +1 -1
- package/dist/src/ruvector/vector-db.d.ts.map +1 -1
- package/dist/src/ruvector/vector-db.js +12 -3
- package/dist/src/ruvector/vector-db.js.map +1 -1
- package/dist/src/services/headless-worker-executor.d.ts +1 -14
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -1
- package/dist/src/services/headless-worker-executor.js +10 -54
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/src/services/worker-daemon.d.ts +0 -12
- package/dist/src/services/worker-daemon.d.ts.map +1 -1
- package/dist/src/services/worker-daemon.js +14 -68
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -10
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/browser/SKILL.md +0 -204
- package/.claude/skills/dual-mode/README.md +0 -71
- package/.claude/skills/dual-mode/dual-collect.md +0 -103
- package/.claude/skills/dual-mode/dual-coordinate.md +0 -85
- package/.claude/skills/dual-mode/dual-spawn.md +0 -81
- package/.claude/skills/flow-nexus-neural/SKILL.md +0 -727
- package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1154
- package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -604
- package/.claude/skills/github-code-review/SKILL.md +0 -1125
- package/.claude/skills/github-multi-repo/SKILL.md +0 -862
- package/.claude/skills/github-project-management/SKILL.md +0 -1262
- package/.claude/skills/github-release-management/SKILL.md +0 -1064
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1047
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1106
- package/.claude/skills/stream-chain/SKILL.md +0 -560
- package/.claude/skills/swarm-advanced/SKILL.md +0 -970
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -872
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -797
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -442
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -241
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -777
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -174
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -390
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -82
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -340
- package/.claude/skills/verification-quality/SKILL.md +0 -691
- package/dist/src/__probe.d.ts +0 -2
- package/dist/src/__probe.d.ts.map +0 -1
- package/dist/src/__probe.js +0 -5
- package/dist/src/__probe.js.map +0 -1
- package/dist/src/commands/benchmark-cosign.d.ts +0 -29
- package/dist/src/commands/benchmark-cosign.d.ts.map +0 -1
- package/dist/src/commands/benchmark-cosign.js +0 -222
- package/dist/src/commands/benchmark-cosign.js.map +0 -1
- package/dist/src/commands/benchmark-verify.d.ts +0 -21
- package/dist/src/commands/benchmark-verify.d.ts.map +0 -1
- package/dist/src/commands/benchmark-verify.js +0 -202
- package/dist/src/commands/benchmark-verify.js.map +0 -1
- package/dist/src/mcp-tools/hive-consensus-runtime.d.ts +0 -149
- package/dist/src/mcp-tools/hive-consensus-runtime.d.ts.map +0 -1
- package/dist/src/mcp-tools/hive-consensus-runtime.js +0 -296
- package/dist/src/mcp-tools/hive-consensus-runtime.js.map +0 -1
- package/dist/src/mcp-tools/managed-agent-tools.d.ts +0 -22
- package/dist/src/mcp-tools/managed-agent-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/managed-agent-tools.js +0 -357
- package/dist/src/mcp-tools/managed-agent-tools.js.map +0 -1
- package/dist/src/memory/ann-router-registry.d.ts +0 -61
- package/dist/src/memory/ann-router-registry.d.ts.map +0 -1
- package/dist/src/memory/ann-router-registry.js +0 -72
- package/dist/src/memory/ann-router-registry.js.map +0 -1
- package/dist/src/memory/diskann-registry.d.ts +0 -56
- package/dist/src/memory/diskann-registry.d.ts.map +0 -1
- package/dist/src/memory/diskann-registry.js +0 -88
- package/dist/src/memory/diskann-registry.js.map +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-payments
|
|
3
|
+
description: Credit management, billing, and payment configuration
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flow Nexus Payments
|
|
7
|
+
|
|
8
|
+
Manage credits, configure billing, and track usage.
|
|
9
|
+
|
|
10
|
+
## Check Balance
|
|
11
|
+
```javascript
|
|
12
|
+
mcp__flow-nexus__check_balance()
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Purchase Credits
|
|
16
|
+
```javascript
|
|
17
|
+
// Create payment link
|
|
18
|
+
mcp__flow-nexus__create_payment_link({
|
|
19
|
+
amount: 50 // USD, minimum $10
|
|
20
|
+
})
|
|
21
|
+
// Returns secure payment URL to complete purchase
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Auto-Refill Configuration
|
|
25
|
+
```javascript
|
|
26
|
+
// Enable auto-refill
|
|
27
|
+
mcp__flow-nexus__configure_auto_refill({
|
|
28
|
+
enabled: true,
|
|
29
|
+
threshold: 100, // Refill when credits drop below 100
|
|
30
|
+
amount: 50 // Refill with $50 worth of credits
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
// Disable auto-refill
|
|
34
|
+
mcp__flow-nexus__configure_auto_refill({
|
|
35
|
+
enabled: false
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Payment History
|
|
40
|
+
```javascript
|
|
41
|
+
mcp__flow-nexus__get_payment_history({
|
|
42
|
+
limit: 50
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## rUv Credits Management
|
|
47
|
+
```javascript
|
|
48
|
+
// Check balance
|
|
49
|
+
mcp__flow-nexus__ruv_balance({
|
|
50
|
+
user_id: "your_id"
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
// Transaction history
|
|
54
|
+
mcp__flow-nexus__ruv_history({
|
|
55
|
+
user_id: "your_id",
|
|
56
|
+
limit: 100
|
|
57
|
+
})
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Upgrade Tier
|
|
61
|
+
```javascript
|
|
62
|
+
mcp__flow-nexus__user_upgrade({
|
|
63
|
+
user_id: "your_id",
|
|
64
|
+
tier: "pro" // pro, enterprise
|
|
65
|
+
})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Usage Statistics
|
|
69
|
+
```javascript
|
|
70
|
+
mcp__flow-nexus__user_stats({
|
|
71
|
+
user_id: "your_id"
|
|
72
|
+
})
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Credit Pricing
|
|
76
|
+
- **Swarm Operations**: 1-10 credits/hour
|
|
77
|
+
- **Sandbox Execution**: 0.5-5 credits/hour
|
|
78
|
+
- **Neural Training**: 5-50 credits/job
|
|
79
|
+
- **Workflow Runs**: 0.1-1 credit/execution
|
|
80
|
+
- **Storage**: 0.01 credits/GB/day
|
|
81
|
+
|
|
82
|
+
## Earning Credits
|
|
83
|
+
1. **Complete Challenges**: 10-500 credits per challenge
|
|
84
|
+
2. **Publish Templates**: Earn when others use
|
|
85
|
+
3. **Referrals**: Bonus credits for invites
|
|
86
|
+
4. **Daily Login**: Small daily bonus
|
|
87
|
+
5. **Achievements**: Unlock milestone rewards
|
|
88
|
+
|
|
89
|
+
## Tiers
|
|
90
|
+
### Free Tier
|
|
91
|
+
- 100 free credits monthly
|
|
92
|
+
- Basic sandbox access
|
|
93
|
+
- Limited swarm agents (3 max)
|
|
94
|
+
- Community support
|
|
95
|
+
|
|
96
|
+
### Pro Tier ($29/month)
|
|
97
|
+
- 1000 credits monthly
|
|
98
|
+
- Priority sandbox access
|
|
99
|
+
- Unlimited agents
|
|
100
|
+
- Advanced workflows
|
|
101
|
+
- Email support
|
|
102
|
+
|
|
103
|
+
### Enterprise Tier (Custom)
|
|
104
|
+
- Unlimited credits
|
|
105
|
+
- Dedicated resources
|
|
106
|
+
- Custom models
|
|
107
|
+
- SLA guarantee
|
|
108
|
+
- Priority support
|
|
109
|
+
|
|
110
|
+
## Cost Optimization Tips
|
|
111
|
+
1. Use smaller sandboxes when possible
|
|
112
|
+
2. Optimize neural network training parameters
|
|
113
|
+
3. Batch workflow executions
|
|
114
|
+
4. Clean up unused resources
|
|
115
|
+
5. Monitor usage regularly
|
|
116
|
+
6. Use templates to avoid redundant work
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-sandbox
|
|
3
|
+
description: E2B sandbox management for isolated code execution
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flow Nexus Sandboxes
|
|
7
|
+
|
|
8
|
+
Deploy and manage isolated execution environments.
|
|
9
|
+
|
|
10
|
+
## Create Sandbox
|
|
11
|
+
```javascript
|
|
12
|
+
mcp__flow-nexus__sandbox_create({
|
|
13
|
+
template: "node", // node, python, react, nextjs, vanilla, base
|
|
14
|
+
name: "my-sandbox",
|
|
15
|
+
env_vars: {
|
|
16
|
+
API_KEY: "your_api_key",
|
|
17
|
+
NODE_ENV: "development"
|
|
18
|
+
},
|
|
19
|
+
timeout: 3600 // seconds
|
|
20
|
+
})
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Execute Code
|
|
24
|
+
```javascript
|
|
25
|
+
mcp__flow-nexus__sandbox_execute({
|
|
26
|
+
sandbox_id: "sandbox_id",
|
|
27
|
+
code: `
|
|
28
|
+
console.log('Hello from sandbox!');
|
|
29
|
+
const result = await fetch('https://api.example.com');
|
|
30
|
+
return result.json();
|
|
31
|
+
`,
|
|
32
|
+
language: "javascript",
|
|
33
|
+
capture_output: true
|
|
34
|
+
})
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Manage Sandboxes
|
|
38
|
+
```javascript
|
|
39
|
+
// List all sandboxes
|
|
40
|
+
mcp__flow-nexus__sandbox_list({ status: "running" })
|
|
41
|
+
|
|
42
|
+
// Get status
|
|
43
|
+
mcp__flow-nexus__sandbox_status({ sandbox_id: "id" })
|
|
44
|
+
|
|
45
|
+
// Upload file
|
|
46
|
+
mcp__flow-nexus__sandbox_upload({
|
|
47
|
+
sandbox_id: "id",
|
|
48
|
+
file_path: "/app/data.json",
|
|
49
|
+
content: JSON.stringify(data)
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
// Stop sandbox
|
|
53
|
+
mcp__flow-nexus__sandbox_stop({ sandbox_id: "id" })
|
|
54
|
+
|
|
55
|
+
// Delete sandbox
|
|
56
|
+
mcp__flow-nexus__sandbox_delete({ sandbox_id: "id" })
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Templates
|
|
60
|
+
- **node**: Node.js environment
|
|
61
|
+
- **python**: Python 3.x environment
|
|
62
|
+
- **react**: React development setup
|
|
63
|
+
- **nextjs**: Next.js full-stack
|
|
64
|
+
- **vanilla**: Basic HTML/CSS/JS
|
|
65
|
+
- **base**: Minimal Linux environment
|
|
66
|
+
|
|
67
|
+
## Common Patterns
|
|
68
|
+
```javascript
|
|
69
|
+
// API development sandbox
|
|
70
|
+
mcp__flow-nexus__sandbox_create({
|
|
71
|
+
template: "node",
|
|
72
|
+
name: "api-dev",
|
|
73
|
+
install_packages: ["express", "cors", "dotenv"],
|
|
74
|
+
startup_script: "npm run dev"
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// ML sandbox
|
|
78
|
+
mcp__flow-nexus__sandbox_create({
|
|
79
|
+
template: "python",
|
|
80
|
+
name: "ml-training",
|
|
81
|
+
install_packages: ["numpy", "pandas", "scikit-learn"]
|
|
82
|
+
})
|
|
83
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-swarm
|
|
3
|
+
description: AI swarm deployment and coordination in cloud
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flow Nexus Swarms
|
|
7
|
+
|
|
8
|
+
Deploy and manage AI agent swarms in the cloud.
|
|
9
|
+
|
|
10
|
+
## Initialize Swarm
|
|
11
|
+
```javascript
|
|
12
|
+
mcp__flow-nexus__swarm_init({
|
|
13
|
+
topology: "hierarchical", // mesh, ring, star, hierarchical
|
|
14
|
+
maxAgents: 8,
|
|
15
|
+
strategy: "balanced" // balanced, specialized, adaptive
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Spawn Agents
|
|
20
|
+
```javascript
|
|
21
|
+
mcp__flow-nexus__agent_spawn({
|
|
22
|
+
type: "researcher", // coder, analyst, optimizer, coordinator
|
|
23
|
+
name: "Lead Researcher",
|
|
24
|
+
capabilities: ["web_search", "analysis", "summarization"]
|
|
25
|
+
})
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Orchestrate Tasks
|
|
29
|
+
```javascript
|
|
30
|
+
mcp__flow-nexus__task_orchestrate({
|
|
31
|
+
task: "Build a REST API with authentication",
|
|
32
|
+
strategy: "parallel", // parallel, sequential, adaptive
|
|
33
|
+
maxAgents: 5,
|
|
34
|
+
priority: "high"
|
|
35
|
+
})
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Monitor Swarm
|
|
39
|
+
```javascript
|
|
40
|
+
// Get swarm status
|
|
41
|
+
mcp__flow-nexus__swarm_status()
|
|
42
|
+
|
|
43
|
+
// List active swarms
|
|
44
|
+
mcp__flow-nexus__swarm_list({ status: "active" })
|
|
45
|
+
|
|
46
|
+
// Scale swarm
|
|
47
|
+
mcp__flow-nexus__swarm_scale({ target_agents: 10 })
|
|
48
|
+
|
|
49
|
+
// Destroy swarm
|
|
50
|
+
mcp__flow-nexus__swarm_destroy({ swarm_id: "id" })
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Templates
|
|
54
|
+
```javascript
|
|
55
|
+
// Use pre-built swarm template
|
|
56
|
+
mcp__flow-nexus__swarm_create_from_template({
|
|
57
|
+
template_name: "full-stack-dev",
|
|
58
|
+
overrides: {
|
|
59
|
+
maxAgents: 6,
|
|
60
|
+
strategy: "specialized"
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// List available templates
|
|
65
|
+
mcp__flow-nexus__swarm_templates_list({
|
|
66
|
+
category: "quickstart" // specialized, enterprise, custom
|
|
67
|
+
})
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Common Swarm Patterns
|
|
71
|
+
|
|
72
|
+
### Research Swarm
|
|
73
|
+
```javascript
|
|
74
|
+
mcp__flow-nexus__swarm_init({ topology: "mesh", maxAgents: 5 })
|
|
75
|
+
mcp__flow-nexus__agent_spawn({ type: "researcher", name: "Lead" })
|
|
76
|
+
mcp__flow-nexus__agent_spawn({ type: "analyst", name: "Data Analyst" })
|
|
77
|
+
mcp__flow-nexus__task_orchestrate({ task: "Research ML trends" })
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Development Swarm
|
|
81
|
+
```javascript
|
|
82
|
+
mcp__flow-nexus__swarm_init({ topology: "hierarchical", maxAgents: 8 })
|
|
83
|
+
mcp__flow-nexus__agent_spawn({ type: "coordinator", name: "PM" })
|
|
84
|
+
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Backend Dev" })
|
|
85
|
+
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Frontend Dev" })
|
|
86
|
+
mcp__flow-nexus__task_orchestrate({ task: "Build e-commerce platform" })
|
|
87
|
+
```
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-user-tools
|
|
3
|
+
description: User management, storage, and system utilities
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flow Nexus User Tools
|
|
7
|
+
|
|
8
|
+
Utilities for user management, storage, and system operations.
|
|
9
|
+
|
|
10
|
+
## Profile Management
|
|
11
|
+
```javascript
|
|
12
|
+
// Get profile
|
|
13
|
+
mcp__flow-nexus__user_profile({
|
|
14
|
+
user_id: "your_id"
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Update profile
|
|
18
|
+
mcp__flow-nexus__user_update_profile({
|
|
19
|
+
user_id: "your_id",
|
|
20
|
+
updates: {
|
|
21
|
+
full_name: "New Name",
|
|
22
|
+
bio: "Developer interested in AI",
|
|
23
|
+
github_username: "username"
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// Get statistics
|
|
28
|
+
mcp__flow-nexus__user_stats({
|
|
29
|
+
user_id: "your_id"
|
|
30
|
+
})
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Storage Management
|
|
34
|
+
```javascript
|
|
35
|
+
// Upload file
|
|
36
|
+
mcp__flow-nexus__storage_upload({
|
|
37
|
+
bucket: "my-bucket",
|
|
38
|
+
path: "data/file.json",
|
|
39
|
+
content: JSON.stringify(data),
|
|
40
|
+
content_type: "application/json"
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
// List files
|
|
44
|
+
mcp__flow-nexus__storage_list({
|
|
45
|
+
bucket: "my-bucket",
|
|
46
|
+
path: "data/",
|
|
47
|
+
limit: 100
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
// Get public URL
|
|
51
|
+
mcp__flow-nexus__storage_get_url({
|
|
52
|
+
bucket: "my-bucket",
|
|
53
|
+
path: "data/file.json",
|
|
54
|
+
expires_in: 3600 // seconds
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
// Delete file
|
|
58
|
+
mcp__flow-nexus__storage_delete({
|
|
59
|
+
bucket: "my-bucket",
|
|
60
|
+
path: "data/file.json"
|
|
61
|
+
})
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Real-time Subscriptions
|
|
65
|
+
```javascript
|
|
66
|
+
// Subscribe to database changes
|
|
67
|
+
mcp__flow-nexus__realtime_subscribe({
|
|
68
|
+
table: "tasks",
|
|
69
|
+
event: "INSERT", // UPDATE, DELETE, *
|
|
70
|
+
filter: "status=eq.pending"
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
// List subscriptions
|
|
74
|
+
mcp__flow-nexus__realtime_list()
|
|
75
|
+
|
|
76
|
+
// Unsubscribe
|
|
77
|
+
mcp__flow-nexus__realtime_unsubscribe({
|
|
78
|
+
subscription_id: "sub_id"
|
|
79
|
+
})
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Execution Monitoring
|
|
83
|
+
```javascript
|
|
84
|
+
// Monitor execution stream
|
|
85
|
+
mcp__flow-nexus__execution_stream_subscribe({
|
|
86
|
+
stream_type: "claude-flow-swarm",
|
|
87
|
+
deployment_id: "deployment_id"
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
// Get stream status
|
|
91
|
+
mcp__flow-nexus__execution_stream_status({
|
|
92
|
+
stream_id: "stream_id"
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
// List generated files
|
|
96
|
+
mcp__flow-nexus__execution_files_list({
|
|
97
|
+
stream_id: "stream_id",
|
|
98
|
+
created_by: "claude-flow",
|
|
99
|
+
file_type: "javascript"
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
// Get file content
|
|
103
|
+
mcp__flow-nexus__execution_file_get({
|
|
104
|
+
file_id: "file_id"
|
|
105
|
+
})
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## System Health
|
|
109
|
+
```javascript
|
|
110
|
+
// Check system health
|
|
111
|
+
mcp__flow-nexus__system_health()
|
|
112
|
+
|
|
113
|
+
// View audit logs
|
|
114
|
+
mcp__flow-nexus__audit_log({
|
|
115
|
+
user_id: "your_id",
|
|
116
|
+
limit: 100
|
|
117
|
+
})
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Queen Seraphina Chat
|
|
121
|
+
```javascript
|
|
122
|
+
// Seek guidance from Queen Seraphina
|
|
123
|
+
mcp__flow-nexus__seraphina_chat({
|
|
124
|
+
message: "How should I architect my distributed system?",
|
|
125
|
+
enable_tools: true, // Allow her to create swarms/deploy code
|
|
126
|
+
conversation_history: [
|
|
127
|
+
{ role: "user", content: "Previous message" },
|
|
128
|
+
{ role: "assistant", content: "Previous response" }
|
|
129
|
+
]
|
|
130
|
+
})
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Email Verification
|
|
134
|
+
```javascript
|
|
135
|
+
mcp__flow-nexus__user_verify_email({
|
|
136
|
+
token: "verification_token_from_email"
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Storage Buckets
|
|
141
|
+
- **public**: Publicly accessible files
|
|
142
|
+
- **private**: User-only access
|
|
143
|
+
- **shared**: Team collaboration
|
|
144
|
+
- **temp**: Auto-deleted after 24h
|
|
145
|
+
|
|
146
|
+
## Best Practices
|
|
147
|
+
1. Use appropriate storage buckets
|
|
148
|
+
2. Set expiration on temporary URLs
|
|
149
|
+
3. Monitor real-time subscriptions
|
|
150
|
+
4. Clean up unused subscriptions
|
|
151
|
+
5. Regular audit log reviews
|
|
152
|
+
6. Enable 2FA for security (coming soon)
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-workflow
|
|
3
|
+
description: Event-driven workflow automation with message queues
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flow Nexus Workflows
|
|
7
|
+
|
|
8
|
+
Create and manage automated workflows with event-driven processing.
|
|
9
|
+
|
|
10
|
+
## Create Workflow
|
|
11
|
+
```javascript
|
|
12
|
+
mcp__flow-nexus__workflow_create({
|
|
13
|
+
name: "CI/CD Pipeline",
|
|
14
|
+
description: "Automated testing and deployment",
|
|
15
|
+
steps: [
|
|
16
|
+
{ id: "test", action: "run_tests", agent: "tester" },
|
|
17
|
+
{ id: "build", action: "build_app", agent: "builder" },
|
|
18
|
+
{ id: "deploy", action: "deploy_prod", agent: "deployer" }
|
|
19
|
+
],
|
|
20
|
+
triggers: ["push_to_main", "manual_trigger"]
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Execute Workflow
|
|
25
|
+
```javascript
|
|
26
|
+
mcp__flow-nexus__workflow_execute({
|
|
27
|
+
workflow_id: "workflow_id",
|
|
28
|
+
input_data: {
|
|
29
|
+
branch: "main",
|
|
30
|
+
commit: "abc123"
|
|
31
|
+
},
|
|
32
|
+
async: true // Execute via message queue
|
|
33
|
+
})
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Monitor Workflows
|
|
37
|
+
```javascript
|
|
38
|
+
// Get workflow status
|
|
39
|
+
mcp__flow-nexus__workflow_status({
|
|
40
|
+
workflow_id: "id",
|
|
41
|
+
include_metrics: true
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
// List workflows
|
|
45
|
+
mcp__flow-nexus__workflow_list({
|
|
46
|
+
status: "running",
|
|
47
|
+
limit: 10
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
// Get audit trail
|
|
51
|
+
mcp__flow-nexus__workflow_audit_trail({
|
|
52
|
+
workflow_id: "id",
|
|
53
|
+
limit: 50
|
|
54
|
+
})
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Agent Assignment
|
|
58
|
+
```javascript
|
|
59
|
+
mcp__flow-nexus__workflow_agent_assign({
|
|
60
|
+
task_id: "task_id",
|
|
61
|
+
agent_type: "coder",
|
|
62
|
+
use_vector_similarity: true // AI-powered matching
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Queue Management
|
|
67
|
+
```javascript
|
|
68
|
+
mcp__flow-nexus__workflow_queue_status({
|
|
69
|
+
include_messages: true
|
|
70
|
+
})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Common Workflow Patterns
|
|
74
|
+
|
|
75
|
+
### CI/CD Pipeline
|
|
76
|
+
```javascript
|
|
77
|
+
mcp__flow-nexus__workflow_create({
|
|
78
|
+
name: "Deploy Pipeline",
|
|
79
|
+
steps: [
|
|
80
|
+
{ action: "lint", parallel: true },
|
|
81
|
+
{ action: "test", parallel: true },
|
|
82
|
+
{ action: "build", depends_on: ["lint", "test"] },
|
|
83
|
+
{ action: "deploy", depends_on: ["build"] }
|
|
84
|
+
],
|
|
85
|
+
triggers: ["github_push"]
|
|
86
|
+
})
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Data Processing
|
|
90
|
+
```javascript
|
|
91
|
+
mcp__flow-nexus__workflow_create({
|
|
92
|
+
name: "ETL Pipeline",
|
|
93
|
+
steps: [
|
|
94
|
+
{ action: "extract_data", agent: "data_extractor" },
|
|
95
|
+
{ action: "transform_data", agent: "transformer" },
|
|
96
|
+
{ action: "load_data", agent: "loader" },
|
|
97
|
+
{ action: "validate", agent: "validator" }
|
|
98
|
+
],
|
|
99
|
+
triggers: ["schedule:0 2 * * *"] // Daily at 2 AM
|
|
100
|
+
})
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Multi-Stage Review
|
|
104
|
+
```javascript
|
|
105
|
+
mcp__flow-nexus__workflow_create({
|
|
106
|
+
name: "PR Review",
|
|
107
|
+
steps: [
|
|
108
|
+
{ action: "code_analysis", agent: "analyzer" },
|
|
109
|
+
{ action: "security_scan", agent: "security" },
|
|
110
|
+
{ action: "performance_test", agent: "perf_tester" },
|
|
111
|
+
{ action: "approve_merge", agent: "reviewer" }
|
|
112
|
+
],
|
|
113
|
+
metadata: { priority: 10 }
|
|
114
|
+
})
|
|
115
|
+
```
|
|
@@ -88,7 +88,7 @@ mcp__github__add_issue_comment {
|
|
|
88
88
|
- Final validation and merge preparation
|
|
89
89
|
|
|
90
90
|
---
|
|
91
|
-
`
|
|
91
|
+
🤖 Generated with Claude Code using ruv-swarm coordination`
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
// Store progress in swarm memory
|
|
@@ -206,10 +206,9 @@ mcp__github__update_issue {
|
|
|
206
206
|
Updates will be posted automatically by swarm agents during implementation.
|
|
207
207
|
|
|
208
208
|
---
|
|
209
|
+
🤖 Generated with Claude Code
|
|
209
210
|
```
|
|
210
211
|
|
|
211
|
-
<!-- last-updated: 2026-05-21 — ADR-127 -->
|
|
212
|
-
|
|
213
212
|
### Bug Report Template:
|
|
214
213
|
```markdown
|
|
215
214
|
## 🐛 Bug Report
|
|
@@ -245,6 +244,7 @@ Updates will be posted automatically by swarm agents during implementation.
|
|
|
245
244
|
- **Tester**: Validation and testing
|
|
246
245
|
|
|
247
246
|
---
|
|
247
|
+
🤖 Generated with Claude Code
|
|
248
248
|
```
|
|
249
249
|
|
|
250
250
|
## Best Practices
|
|
@@ -167,12 +167,10 @@ This release was coordinated using ruv-swarm agents:
|
|
|
167
167
|
This release is production-ready with comprehensive validation and testing.
|
|
168
168
|
|
|
169
169
|
---
|
|
170
|
-
`
|
|
170
|
+
🤖 Generated with Claude Code using ruv-swarm coordination`
|
|
171
171
|
}
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
<!-- last-updated: 2026-05-21 — ADR-127 -->
|
|
175
|
-
|
|
176
174
|
## Batch Release Workflow
|
|
177
175
|
|
|
178
176
|
### Complete Release Pipeline:
|
|
@@ -312,9 +310,9 @@ jobs:
|
|
|
312
310
|
release-validation:
|
|
313
311
|
runs-on: ubuntu-latest
|
|
314
312
|
steps:
|
|
315
|
-
- uses: actions/checkout@
|
|
313
|
+
- uses: actions/checkout@v3
|
|
316
314
|
- name: Setup Node.js
|
|
317
|
-
uses: actions/setup-node@
|
|
315
|
+
uses: actions/setup-node@v3
|
|
318
316
|
with:
|
|
319
317
|
node-version: '20'
|
|
320
318
|
- name: Install and Test
|
|
@@ -153,8 +153,8 @@ jobs:
|
|
|
153
153
|
test:
|
|
154
154
|
runs-on: ubuntu-latest
|
|
155
155
|
steps:
|
|
156
|
-
- uses: actions/checkout@
|
|
157
|
-
- uses: actions/setup-node@
|
|
156
|
+
- uses: actions/checkout@v3
|
|
157
|
+
- uses: actions/setup-node@v3
|
|
158
158
|
with: { node-version: '20' }
|
|
159
159
|
- run: npm install && npm test`,
|
|
160
160
|
message: "ci: Standardize integration workflow across repositories",
|
|
@@ -259,12 +259,9 @@ jobs:
|
|
|
259
259
|
uses: ruvnet/swarm-action@v1
|
|
260
260
|
with:
|
|
261
261
|
command: |
|
|
262
|
-
|
|
263
|
-
printf '%s' "${{ github.event.label.name }}" > "$LABEL_NAME_FILE"
|
|
264
|
-
if grep -qx 'swarm-ready' "$LABEL_NAME_FILE"; then
|
|
262
|
+
if [[ "${{ github.event.label.name }}" == "swarm-ready" ]]; then
|
|
265
263
|
npx ruv-swarm github issue-init ${{ github.event.issue.number }}
|
|
266
264
|
fi
|
|
267
|
-
rm -f "$LABEL_NAME_FILE"
|
|
268
265
|
```
|
|
269
266
|
|
|
270
267
|
### Issue Board Integration
|
|
@@ -44,17 +44,14 @@ jobs:
|
|
|
44
44
|
swarm-handler:
|
|
45
45
|
runs-on: ubuntu-latest
|
|
46
46
|
steps:
|
|
47
|
-
- uses: actions/checkout@
|
|
47
|
+
- uses: actions/checkout@v3
|
|
48
48
|
- name: Handle Swarm Command
|
|
49
49
|
run: |
|
|
50
|
-
|
|
51
|
-
printf '%s' "${{ github.event.comment.body }}" > "$COMMENT_BODY_FILE"
|
|
52
|
-
if grep -q '^/swarm' "$COMMENT_BODY_FILE"; then
|
|
50
|
+
if [[ "${{ github.event.comment.body }}" == /swarm* ]]; then
|
|
53
51
|
npx ruv-swarm github handle-comment \
|
|
54
52
|
--pr ${{ github.event.pull_request.number }} \
|
|
55
|
-
--comment
|
|
53
|
+
--comment "${{ github.event.comment.body }}"
|
|
56
54
|
fi
|
|
57
|
-
rm -f "$COMMENT_BODY_FILE"
|
|
58
55
|
```
|
|
59
56
|
|
|
60
57
|
## PR Label Integration
|
|
@@ -137,12 +137,10 @@ This integration uses ruv-swarm agents for:
|
|
|
137
137
|
- Memory-based state management
|
|
138
138
|
|
|
139
139
|
---
|
|
140
|
-
`
|
|
140
|
+
🤖 Generated with Claude Code using ruv-swarm coordination`
|
|
141
141
|
}
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
<!-- last-updated: 2026-05-21 — ADR-127 -->
|
|
145
|
-
|
|
146
144
|
## Batch Synchronization Example
|
|
147
145
|
|
|
148
146
|
### Complete Package Sync Workflow:
|