agentic-flow 1.0.0
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/MIGRATION_SUMMARY.md +222 -0
- package/.claude/agents/README.md +89 -0
- package/.claude/agents/analysis/code-analyzer.md +209 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude/agents/base-template-generator.md +42 -0
- package/.claude/agents/consensus/README.md +253 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +211 -0
- package/.claude/agents/core/planner.md +116 -0
- package/.claude/agents/core/researcher.md +136 -0
- package/.claude/agents/core/reviewer.md +272 -0
- package/.claude/agents/core/tester.md +266 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude/agents/optimization/README.md +250 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/.claude/agents/swarm/README.md +190 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +256 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/test-neural.md +14 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/commands/agents/README.md +10 -0
- package/.claude/commands/agents/agent-capabilities.md +21 -0
- package/.claude/commands/agents/agent-coordination.md +28 -0
- package/.claude/commands/agents/agent-spawning.md +28 -0
- package/.claude/commands/agents/agent-types.md +26 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/claude-flow-help.md +103 -0
- package/.claude/commands/claude-flow-memory.md +107 -0
- package/.claude/commands/claude-flow-swarm.md +205 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +44 -0
- package/.claude/commands/coordination/orchestrate.md +43 -0
- package/.claude/commands/coordination/spawn.md +45 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -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/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hive-mind/README.md +17 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +58 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +103 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +47 -0
- package/.claude/commands/memory/usage.md +46 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/pair/README.md +261 -0
- package/.claude/commands/pair/commands.md +546 -0
- package/.claude/commands/pair/config.md +510 -0
- package/.claude/commands/pair/examples.md +512 -0
- package/.claude/commands/pair/modes.md +348 -0
- package/.claude/commands/pair/session.md +407 -0
- package/.claude/commands/pair/start.md +209 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/stream-chain/pipeline.md +121 -0
- package/.claude/commands/stream-chain/run.md +70 -0
- package/.claude/commands/swarm/README.md +15 -0
- package/.claude/commands/swarm/analysis.md +95 -0
- package/.claude/commands/swarm/development.md +96 -0
- package/.claude/commands/swarm/examples.md +168 -0
- package/.claude/commands/swarm/maintenance.md +102 -0
- package/.claude/commands/swarm/optimization.md +117 -0
- package/.claude/commands/swarm/research.md +136 -0
- package/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/.claude/commands/swarm/swarm-background.md +8 -0
- package/.claude/commands/swarm/swarm-init.md +19 -0
- package/.claude/commands/swarm/swarm-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/.claude/commands/swarm/swarm-status.md +8 -0
- package/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/.claude/commands/swarm/swarm.md +27 -0
- package/.claude/commands/swarm/testing.md +131 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +74 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +63 -0
- package/.claude/commands/truth/start.md +143 -0
- package/.claude/commands/verify/check.md +50 -0
- package/.claude/commands/verify/start.md +128 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +78 -0
- package/.claude/commands/workflows/research.md +63 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
- package/.claude/mcp.json +13 -0
- package/.claude/settings-backup.json +130 -0
- package/.claude/settings-optimized.json +116 -0
- package/.claude/settings-simple.json +78 -0
- package/.claude/settings.json +114 -0
- package/.claude/settings.local.json +14 -0
- package/README.md +1280 -0
- package/dist/agents/claudeAgent.js +73 -0
- package/dist/agents/claudeFlowAgent.js +115 -0
- package/dist/agents/codeReviewAgent.js +34 -0
- package/dist/agents/dataAgent.js +34 -0
- package/dist/agents/directApiAgent.js +260 -0
- package/dist/agents/webResearchAgent.js +35 -0
- package/dist/cli/mcp.js +135 -0
- package/dist/cli-proxy.js +246 -0
- package/dist/cli.js +158 -0
- package/dist/config/claudeFlow.js +67 -0
- package/dist/config/tools.js +33 -0
- package/dist/coordination/parallelSwarm.js +226 -0
- package/dist/examples/multi-agent-orchestration.js +45 -0
- package/dist/examples/parallel-swarm-deployment.js +171 -0
- package/dist/examples/use-goal-planner.js +52 -0
- package/dist/health.js +46 -0
- package/dist/index-with-proxy.js +101 -0
- package/dist/index.js +167 -0
- package/dist/mcp/claudeFlowSdkServer.js +202 -0
- package/dist/mcp/fastmcp/servers/claude-flow-sdk.js +198 -0
- package/dist/mcp/fastmcp/servers/http-streaming-updated.js +421 -0
- package/dist/mcp/fastmcp/servers/poc-stdio.js +82 -0
- package/dist/mcp/fastmcp/servers/stdio-full.js +421 -0
- package/dist/mcp/fastmcp/tools/agent/add-agent.js +107 -0
- package/dist/mcp/fastmcp/tools/agent/add-command.js +117 -0
- package/dist/mcp/fastmcp/tools/agent/execute.js +56 -0
- package/dist/mcp/fastmcp/tools/agent/list.js +82 -0
- package/dist/mcp/fastmcp/tools/agent/parallel.js +63 -0
- package/dist/mcp/fastmcp/tools/memory/retrieve.js +38 -0
- package/dist/mcp/fastmcp/tools/memory/search.js +41 -0
- package/dist/mcp/fastmcp/tools/memory/store.js +56 -0
- package/dist/mcp/fastmcp/tools/swarm/init.js +41 -0
- package/dist/mcp/fastmcp/tools/swarm/orchestrate.js +47 -0
- package/dist/mcp/fastmcp/tools/swarm/spawn.js +40 -0
- package/dist/mcp/fastmcp/types/index.js +2 -0
- package/dist/proxy/anthropic-to-openrouter.js +246 -0
- package/dist/router/providers/anthropic.js +89 -0
- package/dist/router/providers/onnx-local-optimized.js +167 -0
- package/dist/router/providers/onnx-local.js +294 -0
- package/dist/router/providers/onnx-phi4.js +190 -0
- package/dist/router/providers/onnx.js +242 -0
- package/dist/router/providers/openrouter.js +242 -0
- package/dist/router/router.js +283 -0
- package/dist/router/test-integration.js +140 -0
- package/dist/router/test-onnx-benchmark.js +145 -0
- package/dist/router/test-onnx-integration.js +128 -0
- package/dist/router/test-onnx-local.js +37 -0
- package/dist/router/test-onnx.js +148 -0
- package/dist/router/test-openrouter.js +121 -0
- package/dist/router/test-phi4.js +137 -0
- package/dist/router/types.js +2 -0
- package/dist/utils/agentLoader.js +106 -0
- package/dist/utils/cli.js +128 -0
- package/dist/utils/logger.js +41 -0
- package/dist/utils/mcpCommands.js +214 -0
- package/dist/utils/model-downloader.js +182 -0
- package/dist/utils/retry.js +54 -0
- package/docs/.claude-flow/metrics/agent-metrics.json +1 -0
- package/docs/.claude-flow/metrics/performance.json +9 -0
- package/docs/.claude-flow/metrics/task-metrics.json +10 -0
- package/docs/CHANGELOG.md +155 -0
- package/docs/CLAUDE.md +352 -0
- package/docs/COMPLETE_VALIDATION_SUMMARY.md +405 -0
- package/docs/INDEX.md +183 -0
- package/docs/LICENSE +21 -0
- package/docs/ONNX_CLI_USAGE.md +344 -0
- package/docs/ONNX_ENV_VARS.md +564 -0
- package/docs/ONNX_INTEGRATION.md +422 -0
- package/docs/ONNX_OPTIMIZATION_GUIDE.md +665 -0
- package/docs/ONNX_OPTIMIZATION_SUMMARY.md +374 -0
- package/docs/ONNX_VS_CLAUDE_QUALITY.md +442 -0
- package/docs/OPENROUTER_DEPLOYMENT.md +495 -0
- package/docs/architecture/EXECUTIVE_SUMMARY.md +310 -0
- package/docs/architecture/IMPROVEMENT_PLAN.md +11 -0
- package/docs/architecture/INTEGRATION-STATUS.md +290 -0
- package/docs/architecture/MULTI_MODEL_ROUTER_PLAN.md +620 -0
- package/docs/architecture/QUICK_WINS.md +333 -0
- package/docs/architecture/README.md +15 -0
- package/docs/architecture/RESEARCH_SUMMARY.md +652 -0
- package/docs/archived/FASTMCP_COMPLETE.md +428 -0
- package/docs/archived/FASTMCP_INTEGRATION_STATUS.md +288 -0
- package/docs/archived/FLOW-NEXUS-COMPLETE.md +269 -0
- package/docs/archived/INTEGRATION_CONFIRMED.md +351 -0
- package/docs/archived/ONNX_FINAL_REPORT.md +312 -0
- package/docs/archived/ONNX_IMPLEMENTATION_COMPLETE.md +215 -0
- package/docs/archived/ONNX_IMPLEMENTATION_SUMMARY.md +197 -0
- package/docs/archived/ONNX_SUCCESS_REPORT.md +271 -0
- package/docs/archived/OPENROUTER_PROXY_COMPLETE.md +494 -0
- package/docs/archived/PACKAGE-COMPLETE.md +138 -0
- package/docs/archived/README.md +27 -0
- package/docs/archived/RESEARCH_COMPLETE.txt +335 -0
- package/docs/archived/SDK-SETUP-COMPLETE.md +252 -0
- package/docs/guides/ALTERNATIVE_LLM_MODELS.md +524 -0
- package/docs/guides/DOCKER_AGENT_USAGE.md +352 -0
- package/docs/guides/IMPLEMENTATION_EXAMPLES.md +960 -0
- package/docs/guides/NPM-PUBLISH.md +218 -0
- package/docs/guides/README.md +17 -0
- package/docs/guides/agent-sdk.md +234 -0
- package/docs/integrations/CLAUDE_AGENTS_INTEGRATION.md +356 -0
- package/docs/integrations/CLAUDE_FLOW_INTEGRATION.md +535 -0
- package/docs/integrations/FASTMCP_CLI_INTEGRATION.md +503 -0
- package/docs/integrations/FLOW-NEXUS-INTEGRATION.md +319 -0
- package/docs/integrations/README.md +18 -0
- package/docs/integrations/fastmcp-implementation-plan.md +2516 -0
- package/docs/integrations/fastmcp-poc-integration.md +198 -0
- package/docs/router/ONNX_PHI4_RESEARCH.md +220 -0
- package/docs/router/ONNX_RUNTIME_INTEGRATION_PLAN.md +866 -0
- package/docs/router/PHI4_HYPEROPTIMIZATION_PLAN.md +2488 -0
- package/docs/router/README.md +552 -0
- package/docs/router/ROUTER_CONFIG_REFERENCE.md +577 -0
- package/docs/router/ROUTER_USER_GUIDE.md +865 -0
- package/docs/validation/DOCKER_MCP_VALIDATION.md +358 -0
- package/docs/validation/DOCKER_OPENROUTER_VALIDATION.md +443 -0
- package/docs/validation/FINAL_SYSTEM_VALIDATION.md +458 -0
- package/docs/validation/FINAL_VALIDATION_SUMMARY.md +409 -0
- package/docs/validation/MCP_CLI_TOOLS_VALIDATION.md +266 -0
- package/docs/validation/MODEL_VALIDATION_REPORT.md +386 -0
- package/docs/validation/OPENROUTER_VALIDATION_COMPLETE.md +382 -0
- package/docs/validation/README.md +20 -0
- package/docs/validation/ROUTER_VALIDATION.md +311 -0
- package/package.json +140 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Standard checkpoint hook functions for Claude settings.json (without GitHub features)
|
|
3
|
+
|
|
4
|
+
# Function to handle pre-edit checkpoints
|
|
5
|
+
pre_edit_checkpoint() {
|
|
6
|
+
local tool_input="$1"
|
|
7
|
+
local file=$(echo "$tool_input" | jq -r '.file_path // empty')
|
|
8
|
+
|
|
9
|
+
if [ -n "$file" ]; then
|
|
10
|
+
local checkpoint_branch="checkpoint/pre-edit-$(date +%Y%m%d-%H%M%S)"
|
|
11
|
+
local current_branch=$(git branch --show-current)
|
|
12
|
+
|
|
13
|
+
# Create checkpoint
|
|
14
|
+
git add -A
|
|
15
|
+
git stash push -m "Pre-edit checkpoint for $file" >/dev/null 2>&1
|
|
16
|
+
git branch "$checkpoint_branch"
|
|
17
|
+
|
|
18
|
+
# Store metadata
|
|
19
|
+
mkdir -p .claude/checkpoints
|
|
20
|
+
cat > ".claude/checkpoints/$(date +%s).json" <<EOF
|
|
21
|
+
{
|
|
22
|
+
"branch": "$checkpoint_branch",
|
|
23
|
+
"file": "$file",
|
|
24
|
+
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
25
|
+
"type": "pre-edit",
|
|
26
|
+
"original_branch": "$current_branch"
|
|
27
|
+
}
|
|
28
|
+
EOF
|
|
29
|
+
|
|
30
|
+
# Restore working directory
|
|
31
|
+
git stash pop --quiet >/dev/null 2>&1 || true
|
|
32
|
+
|
|
33
|
+
echo "✅ Created checkpoint: $checkpoint_branch for $file"
|
|
34
|
+
fi
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
# Function to handle post-edit checkpoints
|
|
38
|
+
post_edit_checkpoint() {
|
|
39
|
+
local tool_input="$1"
|
|
40
|
+
local file=$(echo "$tool_input" | jq -r '.file_path // empty')
|
|
41
|
+
|
|
42
|
+
if [ -n "$file" ] && [ -f "$file" ]; then
|
|
43
|
+
# Check if file was modified - first check if file is tracked
|
|
44
|
+
if ! git ls-files --error-unmatch "$file" >/dev/null 2>&1; then
|
|
45
|
+
# File is not tracked, add it first
|
|
46
|
+
git add "$file"
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
# Now check if there are changes
|
|
50
|
+
if git diff --cached --quiet "$file" 2>/dev/null && git diff --quiet "$file" 2>/dev/null; then
|
|
51
|
+
echo "ℹ️ No changes to checkpoint for $file"
|
|
52
|
+
else
|
|
53
|
+
local tag_name="checkpoint-$(date +%Y%m%d-%H%M%S)"
|
|
54
|
+
local current_branch=$(git branch --show-current)
|
|
55
|
+
|
|
56
|
+
# Create commit
|
|
57
|
+
git add "$file"
|
|
58
|
+
if git commit -m "🔖 Checkpoint: Edit $file
|
|
59
|
+
|
|
60
|
+
Automatic checkpoint created by Claude
|
|
61
|
+
- File: $file
|
|
62
|
+
- Branch: $current_branch
|
|
63
|
+
- Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
64
|
+
|
|
65
|
+
[Auto-checkpoint]" --quiet; then
|
|
66
|
+
# Create tag only if commit succeeded
|
|
67
|
+
git tag -a "$tag_name" -m "Checkpoint after editing $file"
|
|
68
|
+
|
|
69
|
+
# Store metadata
|
|
70
|
+
mkdir -p .claude/checkpoints
|
|
71
|
+
local diff_stats=$(git diff HEAD~1 --stat | tr '\n' ' ' | sed 's/"/\"/g')
|
|
72
|
+
cat > ".claude/checkpoints/$(date +%s).json" <<EOF
|
|
73
|
+
{
|
|
74
|
+
"tag": "$tag_name",
|
|
75
|
+
"file": "$file",
|
|
76
|
+
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
77
|
+
"type": "post-edit",
|
|
78
|
+
"branch": "$current_branch",
|
|
79
|
+
"diff_summary": "$diff_stats"
|
|
80
|
+
}
|
|
81
|
+
EOF
|
|
82
|
+
|
|
83
|
+
echo "✅ Created checkpoint: $tag_name for $file"
|
|
84
|
+
else
|
|
85
|
+
echo "ℹ️ No commit created (no changes or commit failed)"
|
|
86
|
+
fi
|
|
87
|
+
fi
|
|
88
|
+
fi
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
# Function to handle task checkpoints
|
|
92
|
+
task_checkpoint() {
|
|
93
|
+
local user_prompt="$1"
|
|
94
|
+
local task=$(echo "$user_prompt" | head -c 100 | tr '\n' ' ')
|
|
95
|
+
|
|
96
|
+
if [ -n "$task" ]; then
|
|
97
|
+
local checkpoint_name="task-$(date +%Y%m%d-%H%M%S)"
|
|
98
|
+
|
|
99
|
+
# Commit current state
|
|
100
|
+
git add -A
|
|
101
|
+
git commit -m "🔖 Task checkpoint: $task..." --quiet || true
|
|
102
|
+
|
|
103
|
+
# Store metadata
|
|
104
|
+
mkdir -p .claude/checkpoints
|
|
105
|
+
cat > ".claude/checkpoints/task-$(date +%s).json" <<EOF
|
|
106
|
+
{
|
|
107
|
+
"checkpoint": "$checkpoint_name",
|
|
108
|
+
"task": "$task",
|
|
109
|
+
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
110
|
+
"commit": "$(git rev-parse HEAD)"
|
|
111
|
+
}
|
|
112
|
+
EOF
|
|
113
|
+
|
|
114
|
+
echo "✅ Created task checkpoint: $checkpoint_name"
|
|
115
|
+
fi
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
# Function to handle session end
|
|
119
|
+
session_end_checkpoint() {
|
|
120
|
+
local session_id="session-$(date +%Y%m%d-%H%M%S)"
|
|
121
|
+
local summary_file=".claude/checkpoints/summary-$session_id.md"
|
|
122
|
+
|
|
123
|
+
mkdir -p .claude/checkpoints
|
|
124
|
+
|
|
125
|
+
# Create summary
|
|
126
|
+
cat > "$summary_file" <<EOF
|
|
127
|
+
# Session Summary - $(date +'%Y-%m-%d %H:%M:%S')
|
|
128
|
+
|
|
129
|
+
## Checkpoints Created
|
|
130
|
+
$(find .claude/checkpoints -name '*.json' -mtime -1 -exec basename {} \; | sort)
|
|
131
|
+
|
|
132
|
+
## Files Modified
|
|
133
|
+
$(git diff --name-only $(git log --format=%H -n 1 --before="1 hour ago" 2>/dev/null) 2>/dev/null || echo "No files tracked")
|
|
134
|
+
|
|
135
|
+
## Recent Commits
|
|
136
|
+
$(git log --oneline -10 --grep="Checkpoint" || echo "No checkpoint commits")
|
|
137
|
+
|
|
138
|
+
## Rollback Instructions
|
|
139
|
+
To rollback to a specific checkpoint:
|
|
140
|
+
\`\`\`bash
|
|
141
|
+
# List all checkpoints
|
|
142
|
+
git tag -l 'checkpoint-*' | sort -r
|
|
143
|
+
|
|
144
|
+
# Rollback to a checkpoint
|
|
145
|
+
git checkout checkpoint-YYYYMMDD-HHMMSS
|
|
146
|
+
|
|
147
|
+
# Or reset to a checkpoint (destructive)
|
|
148
|
+
git reset --hard checkpoint-YYYYMMDD-HHMMSS
|
|
149
|
+
\`\`\`
|
|
150
|
+
EOF
|
|
151
|
+
|
|
152
|
+
# Create final checkpoint
|
|
153
|
+
git add -A
|
|
154
|
+
git commit -m "🏁 Session end checkpoint: $session_id" --quiet || true
|
|
155
|
+
git tag -a "session-end-$session_id" -m "End of Claude session"
|
|
156
|
+
|
|
157
|
+
echo "✅ Session summary saved to: $summary_file"
|
|
158
|
+
echo "📌 Final checkpoint: session-end-$session_id"
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
# Main entry point
|
|
162
|
+
case "$1" in
|
|
163
|
+
pre-edit)
|
|
164
|
+
pre_edit_checkpoint "$2"
|
|
165
|
+
;;
|
|
166
|
+
post-edit)
|
|
167
|
+
post_edit_checkpoint "$2"
|
|
168
|
+
;;
|
|
169
|
+
task)
|
|
170
|
+
task_checkpoint "$2"
|
|
171
|
+
;;
|
|
172
|
+
session-end)
|
|
173
|
+
session_end_checkpoint
|
|
174
|
+
;;
|
|
175
|
+
*)
|
|
176
|
+
echo "Usage: $0 {pre-edit|post-edit|task|session-end} [input]"
|
|
177
|
+
exit 1
|
|
178
|
+
;;
|
|
179
|
+
esac
|
package/.claude/mcp.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"flow-nexus": {
|
|
4
|
+
"command": "node",
|
|
5
|
+
"args": ["/workspaces/flow-cloud/mcp/flow-nexus-sse/mcp-server-supabase.js"],
|
|
6
|
+
"env": {
|
|
7
|
+
"SUPABASE_URL": "${SUPABASE_URL}",
|
|
8
|
+
"SUPABASE_ANON_KEY": "${SUPABASE_ANON_KEY}",
|
|
9
|
+
"NODE_NO_WARNINGS": "1"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
|
4
|
+
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
|
5
|
+
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
|
6
|
+
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
|
7
|
+
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
|
8
|
+
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true"
|
|
9
|
+
},
|
|
10
|
+
"permissions": {
|
|
11
|
+
"allow": [
|
|
12
|
+
"Bash(npx claude-flow *)",
|
|
13
|
+
"Bash(npm run lint)",
|
|
14
|
+
"Bash(npm run test:*)",
|
|
15
|
+
"Bash(npm test *)",
|
|
16
|
+
"Bash(git status)",
|
|
17
|
+
"Bash(git diff *)",
|
|
18
|
+
"Bash(git log *)",
|
|
19
|
+
"Bash(git add *)",
|
|
20
|
+
"Bash(git commit *)",
|
|
21
|
+
"Bash(git push)",
|
|
22
|
+
"Bash(git config *)",
|
|
23
|
+
"Bash(git tag *)",
|
|
24
|
+
"Bash(git branch *)",
|
|
25
|
+
"Bash(git checkout *)",
|
|
26
|
+
"Bash(git stash *)",
|
|
27
|
+
"Bash(jq *)",
|
|
28
|
+
"Bash(node *)",
|
|
29
|
+
"Bash(which *)",
|
|
30
|
+
"Bash(pwd)",
|
|
31
|
+
"Bash(ls *)"
|
|
32
|
+
],
|
|
33
|
+
"deny": [
|
|
34
|
+
"Bash(rm -rf /)",
|
|
35
|
+
"Bash(curl * | bash)",
|
|
36
|
+
"Bash(wget * | sh)",
|
|
37
|
+
"Bash(eval *)"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"hooks": {
|
|
41
|
+
"PreToolUse": [
|
|
42
|
+
{
|
|
43
|
+
"matcher": "Bash",
|
|
44
|
+
"hooks": [
|
|
45
|
+
{
|
|
46
|
+
"type": "command",
|
|
47
|
+
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
53
|
+
"hooks": [
|
|
54
|
+
{
|
|
55
|
+
"type": "command",
|
|
56
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "command",
|
|
60
|
+
"command": "/bin/bash -c 'FILE=$(cat | jq -r \".tool_input.file_path // .tool_input.path // empty\"); echo \"⚠️ CRITICAL VERIFICATION REMINDER:\"; echo \"🔍 BEFORE implementing ANY function/component:\"; echo \" ✓ Verify it will be FULLY FUNCTIONAL, not mocked/simulated\"; echo \" ✓ Check for actual implementation, not placeholders\"; echo \" ✓ Ensure real connectivity to APIs/services (unless test)\"; echo \" ✓ Validate data persistence and state management\"; echo \" ✓ Confirm error handling is comprehensive\"; if echo \"$FILE\" | grep -qE \"(test|spec|mock)\"; then echo \"📝 Test file detected - mocks/stubs acceptable\"; else echo \"🚫 Production code - NO MOCKS/SIMULATIONS unless explicitly requested\"; echo \"⚡ Be CRITICAL: Does this actually work end-to-end?\"; fi'"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"PostToolUse": [
|
|
66
|
+
{
|
|
67
|
+
"matcher": "Bash",
|
|
68
|
+
"hooks": [
|
|
69
|
+
{
|
|
70
|
+
"type": "command",
|
|
71
|
+
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
77
|
+
"hooks": [
|
|
78
|
+
{
|
|
79
|
+
"type": "command",
|
|
80
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "command",
|
|
84
|
+
"command": "/bin/bash -c 'FILE=$(cat | jq -r \".tool_input.file_path // .tool_input.path // empty\"); echo \"✅ POST-IMPLEMENTATION VERIFICATION:\"; echo \"🔍 Critical checks:\"; echo \" • Is the implementation COMPLETE and FUNCTIONAL?\"; echo \" • Are there any TODO/FIXME comments left?\"; echo \" • Does it handle edge cases and errors?\"; echo \" • Is it connected to real services (not mocked)?\"; if echo \"$FILE\" | grep -qE \"\\.(ts|js|tsx|jsx)$\" && ! echo \"$FILE\" | grep -qE \"(test|spec|mock)\"; then echo \"⚡ Production code modified - verify:\"; echo \" • No console.log() statements (unless needed)\"; echo \" • No hardcoded secrets/credentials\"; echo \" • Proper async/await handling\"; echo \" • Real API endpoints (not localhost unless dev)\"; fi'"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "command",
|
|
88
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha verify implementation --file '{}' --threshold 0.95"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "command",
|
|
92
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha truth --metrics --file '{}'"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"PreCompact": [
|
|
98
|
+
{
|
|
99
|
+
"matcher": "manual",
|
|
100
|
+
"hooks": [
|
|
101
|
+
{
|
|
102
|
+
"type": "command",
|
|
103
|
+
"command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \\\"\\\"\"); echo \"🔄 PreCompact Guidance:\"; echo \"📋 IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" • 54 available agents and concurrent usage patterns\"; echo \" • Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" • SPARC methodology workflows with batchtools optimization\"; echo \" • Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"✅ Ready for compact operation\"'"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"matcher": "auto",
|
|
109
|
+
"hooks": [
|
|
110
|
+
{
|
|
111
|
+
"type": "command",
|
|
112
|
+
"command": "/bin/bash -c 'echo \"🔄 Auto-Compact Guidance (Context Window Full):\"; echo \"📋 CRITICAL: Before compacting, ensure you understand:\"; echo \" • All 54 agents available in .claude/agents/ directory\"; echo \" • Concurrent execution patterns from CLAUDE.md\"; echo \" • Batchtools optimization for 300% performance gains\"; echo \" • Swarm coordination strategies for complex tasks\"; echo \"⚡ Apply GOLDEN RULE: Always batch operations in single messages\"; echo \"✅ Auto-compact proceeding with full agent context\"'"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"Stop": [
|
|
118
|
+
{
|
|
119
|
+
"hooks": [
|
|
120
|
+
{
|
|
121
|
+
"type": "command",
|
|
122
|
+
"command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"includeCoAuthoredBy": true,
|
|
129
|
+
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
|
|
130
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
|
4
|
+
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
|
5
|
+
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
|
6
|
+
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
|
7
|
+
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
|
8
|
+
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
|
|
9
|
+
"CLAUDE_FLOW_TRUTH_THRESHOLD": "0.95",
|
|
10
|
+
"CLAUDE_FLOW_VERIFY_MODE": "strict",
|
|
11
|
+
"CLAUDE_FLOW_SECURITY_AUDIT": "true"
|
|
12
|
+
},
|
|
13
|
+
"permissions": {
|
|
14
|
+
"allow": [
|
|
15
|
+
"Bash(npx claude-flow*)",
|
|
16
|
+
"Bash(npm run*)",
|
|
17
|
+
"Bash(npm test*)",
|
|
18
|
+
"Bash(git *)",
|
|
19
|
+
"Bash(jq *)",
|
|
20
|
+
"Bash(node *)",
|
|
21
|
+
"Bash(which *)",
|
|
22
|
+
"Bash(pwd)",
|
|
23
|
+
"Bash(ls *)",
|
|
24
|
+
"Bash(cat *)",
|
|
25
|
+
"Bash(grep *)",
|
|
26
|
+
"Bash(rg *)",
|
|
27
|
+
"Bash(echo *)",
|
|
28
|
+
"Bash(bc *)",
|
|
29
|
+
"Bash(date *)",
|
|
30
|
+
"Bash(head *)",
|
|
31
|
+
"Bash(tail *)"
|
|
32
|
+
],
|
|
33
|
+
"deny": [
|
|
34
|
+
"Bash(rm -rf /)",
|
|
35
|
+
"Bash(curl * | bash)",
|
|
36
|
+
"Bash(wget * | sh)",
|
|
37
|
+
"Bash(eval *)",
|
|
38
|
+
"Bash(sudo *)",
|
|
39
|
+
"Bash(chmod 777 *)",
|
|
40
|
+
"Bash(* > /dev/sda*)"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"hooks": {
|
|
44
|
+
"PreToolUse": [
|
|
45
|
+
{
|
|
46
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
47
|
+
"hooks": [
|
|
48
|
+
{
|
|
49
|
+
"type": "command",
|
|
50
|
+
"command": "echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '🎯 PRE-IMPLEMENTATION VERIFICATION & SECURITY PROTOCOL' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '' && FILE=$(cat | jq -r '.tool_input.file_path // .tool_input.path // empty') && echo \"📁 Target: $FILE\" && echo '' && echo '🔍 MANDATORY VERIFICATION CHECKLIST:' && echo '┌─────────────────────────────────────────────────────┐' && echo '│ ✓ Implementation MUST be FULLY FUNCTIONAL │' && echo '│ ✓ NO mocks/stubs/simulations (unless test file) │' && echo '│ ✓ Real API connections (not placeholders) │' && echo '│ ✓ Actual data persistence (not in-memory only) │' && echo '│ ✓ Complete error handling (not just happy path) │' && echo '│ ✓ Production-ready code (not proof-of-concept) │' && echo '└─────────────────────────────────────────────────────┘' && echo '' && echo '🔐 SECURITY REQUIREMENTS:' && echo '┌─────────────────────────────────────────────────────┐' && echo '│ ⚠️ NEVER hardcode credentials or secrets │' && echo '│ ⚠️ Use environment variables for sensitive data │' && echo '│ ⚠️ No API keys, passwords, or tokens in code │' && echo '│ ⚠️ Validate and sanitize ALL user inputs │' && echo '│ ⚠️ Use secure connection protocols (HTTPS/TLS) │' && echo '│ ⚠️ Implement proper authentication & authorization │' && echo '└─────────────────────────────────────────────────────┘' && echo '' && if echo \"$FILE\" | grep -qE '(test|spec|mock)\\.' ; then echo '📝 TEST FILE: Mocks/stubs acceptable'; else echo '⚡ PRODUCTION CODE: Must be REAL, SECURE & WORKING'; echo ''; echo '🚫 REJECT IF YOU SEE:'; echo ' • Hardcoded: API_KEY=\"sk-...\"'; echo ' • Direct secrets: password=\"admin123\"'; echo ' • TODO/FIXME without implementation'; echo ' • return mockData or simulatedResponse'; echo ' • console.log with sensitive data'; echo ' • Unvalidated user inputs (SQL injection risk)'; echo ' • HTTP instead of HTTPS for APIs'; fi && echo '' && echo '📊 Initializing quality metrics...' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "command",
|
|
54
|
+
"command": "if command -v npx >/dev/null 2>&1; then npx claude-flow@alpha verify init strict --threshold 0.95 2>/dev/null && echo '✅ Claude Flow verification: ACTIVE (95% threshold)' || echo '⚠️ Claude Flow initialization pending'; fi"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"matcher": "Bash",
|
|
60
|
+
"hooks": [
|
|
61
|
+
{
|
|
62
|
+
"type": "command",
|
|
63
|
+
"command": "CMD=$(cat | jq -r '.tool_input.command // empty') && if echo \"$CMD\" | grep -qE 'echo.*[>]{1,2}.*\\.env' || echo \"$CMD\" | grep -qE 'export.*(KEY|TOKEN|SECRET|PASSWORD)'; then echo '⚠️ SECURITY WARNING: Potential secret exposure detected!'; echo ' Use proper secret management (e.g., dotenv, vault)'; fi"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"PostToolUse": [
|
|
69
|
+
{
|
|
70
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
71
|
+
"hooks": [
|
|
72
|
+
{
|
|
73
|
+
"type": "command",
|
|
74
|
+
"command": "FILE=$(cat | jq -r '.tool_input.file_path // .tool_input.path // empty') && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '✅ POST-IMPLEMENTATION VERIFICATION & SECURITY REPORT' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '' && echo \"📁 Modified: $FILE\" && echo \"🕒 Timestamp: $(date '+%Y-%m-%d %H:%M:%S')\" && echo '' && if echo \"$FILE\" | grep -qE '\\.(ts|js|tsx|jsx|py|java|go|rs)$' && ! echo \"$FILE\" | grep -qE '(test|spec|mock)'; then echo '🔍 PRODUCTION CODE ANALYSIS:' && echo '' && SCORE=100 && ISSUES='' && echo '📋 Functionality Checks:' && if grep -q 'TODO\\|FIXME\\|XXX' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} ❌ TODO/FIXME comments found\\n\" && SCORE=$((SCORE - 15)); else echo ' ✓ No TODO/FIXME comments'; fi && if grep -q 'console\\.log' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} ⚠️ console.log statements detected\\n\" && SCORE=$((SCORE - 5)); else echo ' ✓ No console.log statements'; fi && if grep -qE 'mock|Mock|stub|Stub|fake|Fake|dummy|Dummy|placeholder|simulat' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} ❌ Possible mock/simulation detected\\n\" && SCORE=$((SCORE - 25)); else echo ' ✓ No mocks or simulations'; fi && echo '' && echo '🔐 Security Checks:' && if grep -qE '(api[_-]?key|apikey|api[_-]?secret|private[_-]?key|secret[_-]?key)[[:space:]]*=[[:space:]]*[\"'\\'''][^\"'\\''']+[\"'\\''']' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} 🚨 CRITICAL: Hardcoded API key detected\\n\" && SCORE=$((SCORE - 30)); else echo ' ✓ No hardcoded API keys'; fi && if grep -qE '(password|passwd|pwd)[[:space:]]*=[[:space:]]*[\"'\\'''][^\"'\\''']+[\"'\\''']' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} 🚨 CRITICAL: Hardcoded password detected\\n\" && SCORE=$((SCORE - 30)); else echo ' ✓ No hardcoded passwords'; fi && if grep -qE 'http://' \"$FILE\" 2>/dev/null && ! grep -qE 'http://localhost|http://127\\.0\\.0\\.1' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} ⚠️ Insecure HTTP protocol used\\n\" && SCORE=$((SCORE - 10)); else echo ' ✓ Secure protocols (HTTPS/TLS)'; fi && if grep -qE 'eval\\(|exec\\(' \"$FILE\" 2>/dev/null; then ISSUES=\"${ISSUES} 🚨 CRITICAL: eval/exec usage (injection risk)\\n\" && SCORE=$((SCORE - 25)); else echo ' ✓ No dangerous eval/exec'; fi && if grep -qE 'process\\.env\\.' \"$FILE\" 2>/dev/null || grep -qE 'import.*dotenv|require.*dotenv' \"$FILE\" 2>/dev/null; then echo ' ✓ Environment variables used properly'; else echo ' ℹ️ Consider using env vars for configuration'; fi && echo '' && if [ -n \"$ISSUES\" ]; then echo '⚠️ ISSUES DETECTED:' && echo -e \"$ISSUES\"; fi && echo \"📊 QUALITY SCORE: ${SCORE}/100\" && if [ $SCORE -lt 95 ]; then echo '🚫 BELOW THRESHOLD (95) - Review required!'; echo ''; echo '🔧 REQUIRED ACTIONS:'; echo ' 1. Fix all security issues immediately'; echo ' 2. Replace mocks with real implementations'; echo ' 3. Use environment variables for secrets'; echo ' 4. Remove debug statements'; else echo '✅ MEETS QUALITY & SECURITY THRESHOLD'; fi; fi && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "command",
|
|
78
|
+
"command": "if command -v npx >/dev/null 2>&1; then FILE=$(cat | jq -r '.tool_input.file_path // .tool_input.path // empty') && echo '' && echo '🔬 Claude Flow Truth Verification:' && npx claude-flow@alpha truth --agent coder --threshold 0.95 2>/dev/null | head -5 || echo ' Analysis pending...'; npx claude-flow@alpha verify verify \"$FILE\" --threshold 0.95 --agent coder 2>/dev/null | grep -E 'Score:|Status:|Issues:' | head -5 || true; fi"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"matcher": "Bash",
|
|
84
|
+
"hooks": [
|
|
85
|
+
{
|
|
86
|
+
"type": "command",
|
|
87
|
+
"command": "CMD=$(cat | jq -r '.tool_input.command // empty') && if echo \"$CMD\" | grep -qE '^(npm run test|npm test|jest|vitest|pytest)'; then echo '' && echo '🧪 TEST RESULTS VERIFICATION:' && if command -v npx >/dev/null 2>&1; then npx claude-flow@alpha truth --report --agent tester 2>/dev/null | grep -E 'Coverage:|Passed:|Failed:' | head -5 || echo ' Test metrics unavailable'; fi; fi"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"PreCompact": [
|
|
93
|
+
{
|
|
94
|
+
"matcher": "manual",
|
|
95
|
+
"hooks": [
|
|
96
|
+
{
|
|
97
|
+
"type": "command",
|
|
98
|
+
"command": "echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '🔄 CONTEXT COMPACTION - MAINTAIN CRITICAL AWARENESS' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '' && echo '🎯 CORE PRINCIPLES (DO NOT FORGET):' && echo ' 1. Real, verified, functional code only' && echo ' 2. Truth threshold: 95% confidence' && echo ' 3. NEVER hardcode secrets or credentials' && echo ' 4. Complete implementations, no placeholders' && echo ' 5. Security-first development approach' && echo '' && echo '🔐 SECURITY CHECKLIST TO MAINTAIN:' && echo ' • All secrets in environment variables' && echo ' • Input validation on all user data' && echo ' • HTTPS/TLS for all external connections' && echo ' • No eval/exec with user input' && echo ' • Proper authentication & authorization' && echo '' && if command -v npx >/dev/null 2>&1; then echo '📊 Current System Metrics:' && npx claude-flow@alpha truth --json 2>/dev/null | jq -r '\" Truth Score: \\(.averageScore // \"N/A\")\\n Files Verified: \\(.filesAnalyzed // 0)\\n Security Issues: \\(.securityIssues // 0)\"' 2>/dev/null || echo ' Metrics unavailable'; fi && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"Stop": [
|
|
104
|
+
{
|
|
105
|
+
"hooks": [
|
|
106
|
+
{
|
|
107
|
+
"type": "command",
|
|
108
|
+
"command": "echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '📊 SESSION SUMMARY - VERIFICATION & SECURITY REPORT' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━' && echo '' && if command -v npx >/dev/null 2>&1; then echo '📈 Session Metrics:' && npx claude-flow@alpha truth --report --json 2>/dev/null | jq -r '\" Files Modified: \\(.filesAnalyzed // 0)\\n Average Quality: \\(.averageScore // \"N/A\")\\n Security Issues: \\(.securityIssues // 0)\\n TODOs Remaining: \\(.todosFound // 0)\"' 2>/dev/null || echo ' Summary unavailable' && echo '' && npx claude-flow@alpha hooks session-end --generate-summary true --export-metrics true 2>/dev/null || true; else echo ' Claude Flow not available for metrics'; fi && echo '' && echo '🔐 Security Reminder:' && echo ' Review all modified files for:' && echo ' • Hardcoded credentials' && echo ' • Unvalidated inputs' && echo ' • Insecure protocols' && echo ' • Debug statements with sensitive data' && echo '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"includeCoAuthoredBy": true,
|
|
115
|
+
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm", "flow-nexus"]
|
|
116
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
|
4
|
+
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
|
5
|
+
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
|
6
|
+
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
|
7
|
+
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
|
8
|
+
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
|
|
9
|
+
"CLAUDE_FLOW_TRUTH_THRESHOLD": "0.95",
|
|
10
|
+
"CLAUDE_FLOW_VERIFY_MODE": "strict",
|
|
11
|
+
"CLAUDE_FLOW_SECURITY_AUDIT": "true"
|
|
12
|
+
},
|
|
13
|
+
"permissions": {
|
|
14
|
+
"allow": [
|
|
15
|
+
"Bash(npx claude-flow:*)",
|
|
16
|
+
"Bash(npm run:*)",
|
|
17
|
+
"Bash(npm test:*)",
|
|
18
|
+
"Bash(git:*)",
|
|
19
|
+
"Bash(jq:*)",
|
|
20
|
+
"Bash(node:*)",
|
|
21
|
+
"Bash(which:*)",
|
|
22
|
+
"Bash(pwd)",
|
|
23
|
+
"Bash(ls:*)",
|
|
24
|
+
"Bash(cat:*)",
|
|
25
|
+
"Bash(grep:*)",
|
|
26
|
+
"Bash(rg:*)",
|
|
27
|
+
"Bash(echo:*)",
|
|
28
|
+
"Bash(bc:*)",
|
|
29
|
+
"Bash(date:*)",
|
|
30
|
+
"Bash(head:*)",
|
|
31
|
+
"Bash(tail:*)"
|
|
32
|
+
],
|
|
33
|
+
"deny": [
|
|
34
|
+
"Bash(rm -rf /)",
|
|
35
|
+
"Bash(curl:*)",
|
|
36
|
+
"Bash(wget:*)",
|
|
37
|
+
"Bash(eval:*)",
|
|
38
|
+
"Bash(sudo:*)",
|
|
39
|
+
"Bash(chmod 777:*)",
|
|
40
|
+
"Bash(dd:*)"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"hooks": {
|
|
44
|
+
"PreToolUse": [
|
|
45
|
+
{
|
|
46
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
47
|
+
"hooks": [
|
|
48
|
+
{
|
|
49
|
+
"type": "command",
|
|
50
|
+
"command": "echo '🎯 PRE-EDIT VERIFICATION' && FILE=$(cat | jq -r '.tool_input.file_path // .tool_input.path // empty') && echo \"Target: $FILE\" && echo '⚠️ REQUIREMENTS:' && echo ' • Real implementations only (no mocks in production)' && echo ' • No hardcoded secrets - use environment variables' && echo ' • Complete error handling' && echo ' • Secure protocols (HTTPS)'"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"PostToolUse": [
|
|
56
|
+
{
|
|
57
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
58
|
+
"hooks": [
|
|
59
|
+
{
|
|
60
|
+
"type": "command",
|
|
61
|
+
"command": "echo '✅ POST-EDIT ANALYSIS' && FILE=$(cat | jq -r '.tool_input.file_path // .tool_input.path // empty') && echo \"Modified: $FILE\" && echo 'Checking for issues...' && grep -q 'TODO' \"$FILE\" 2>/dev/null && echo ' ⚠️ TODO comments found' || echo ' ✓ No TODOs' && grep -q 'console.log' \"$FILE\" 2>/dev/null && echo ' ⚠️ console.log detected' || echo ' ✓ No console.log' && grep -qE 'password.*=.*[\"\\x27]' \"$FILE\" 2>/dev/null && echo ' 🚨 Hardcoded password!' || echo ' ✓ No hardcoded passwords'"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"matcher": "Bash",
|
|
67
|
+
"hooks": [
|
|
68
|
+
{
|
|
69
|
+
"type": "command",
|
|
70
|
+
"command": "CMD=$(cat | jq -r '.tool_input.command // empty') && echo \"Command executed: $CMD\""
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"includeCoAuthoredBy": true,
|
|
77
|
+
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm", "flow-nexus"]
|
|
78
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
|
4
|
+
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
|
5
|
+
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
|
6
|
+
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
|
7
|
+
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
|
8
|
+
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true"
|
|
9
|
+
},
|
|
10
|
+
"permissions": {
|
|
11
|
+
"allow": [
|
|
12
|
+
"Bash(npx claude-flow *)",
|
|
13
|
+
"Bash(npm run lint)",
|
|
14
|
+
"Bash(npm run test:*)",
|
|
15
|
+
"Bash(npm test *)",
|
|
16
|
+
"Bash(git status)",
|
|
17
|
+
"Bash(git diff *)",
|
|
18
|
+
"Bash(git log *)",
|
|
19
|
+
"Bash(git add *)",
|
|
20
|
+
"Bash(git commit *)",
|
|
21
|
+
"Bash(git push)",
|
|
22
|
+
"Bash(git config *)",
|
|
23
|
+
"Bash(git tag *)",
|
|
24
|
+
"Bash(git branch *)",
|
|
25
|
+
"Bash(git checkout *)",
|
|
26
|
+
"Bash(git stash *)",
|
|
27
|
+
"Bash(jq *)",
|
|
28
|
+
"Bash(node *)",
|
|
29
|
+
"Bash(which *)",
|
|
30
|
+
"Bash(pwd)",
|
|
31
|
+
"Bash(ls *)"
|
|
32
|
+
],
|
|
33
|
+
"deny": [
|
|
34
|
+
"Bash(rm -rf /)",
|
|
35
|
+
"Bash(curl * | bash)",
|
|
36
|
+
"Bash(wget * | sh)",
|
|
37
|
+
"Bash(eval *)"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"hooks": {
|
|
41
|
+
"PreToolUse": [
|
|
42
|
+
{
|
|
43
|
+
"matcher": "Bash",
|
|
44
|
+
"hooks": [
|
|
45
|
+
{
|
|
46
|
+
"type": "command",
|
|
47
|
+
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
53
|
+
"hooks": [
|
|
54
|
+
{
|
|
55
|
+
"type": "command",
|
|
56
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"PostToolUse": [
|
|
62
|
+
{
|
|
63
|
+
"matcher": "Bash",
|
|
64
|
+
"hooks": [
|
|
65
|
+
{
|
|
66
|
+
"type": "command",
|
|
67
|
+
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
73
|
+
"hooks": [
|
|
74
|
+
{
|
|
75
|
+
"type": "command",
|
|
76
|
+
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"PreCompact": [
|
|
82
|
+
{
|
|
83
|
+
"matcher": "manual",
|
|
84
|
+
"hooks": [
|
|
85
|
+
{
|
|
86
|
+
"type": "command",
|
|
87
|
+
"command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \\\"\\\"\"); echo \"🔄 PreCompact Guidance:\"; echo \"📋 IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" • 54 available agents and concurrent usage patterns\"; echo \" • Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" • SPARC methodology workflows with batchtools optimization\"; echo \" • Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"✅ Ready for compact operation\"'"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"matcher": "auto",
|
|
93
|
+
"hooks": [
|
|
94
|
+
{
|
|
95
|
+
"type": "command",
|
|
96
|
+
"command": "/bin/bash -c 'echo \"🔄 Auto-Compact Guidance (Context Window Full):\"; echo \"📋 CRITICAL: Before compacting, ensure you understand:\"; echo \" • All 54 agents available in .claude/agents/ directory\"; echo \" • Concurrent execution patterns from CLAUDE.md\"; echo \" • Batchtools optimization for 300% performance gains\"; echo \" • Swarm coordination strategies for complex tasks\"; echo \"⚡ Apply GOLDEN RULE: Always batch operations in single messages\"; echo \"✅ Auto-compact proceeding with full agent context\"'"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"Stop": [
|
|
102
|
+
{
|
|
103
|
+
"hooks": [
|
|
104
|
+
{
|
|
105
|
+
"type": "command",
|
|
106
|
+
"command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"includeCoAuthoredBy": true,
|
|
113
|
+
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
|
|
114
|
+
}
|