claude-flow-novice 2.0.0 ā 2.0.1
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/CLAUDE.md +669 -51
- package/.claude/agents/agent-principles/CODER_AGENT_GUIDELINES.md +1245 -0
- package/.claude/agents/agent-principles/agent-type-guidelines.md +137 -0
- package/.claude/agents/agent-principles/format-selection.md +20 -0
- package/.claude/agents/agent-principles/prompt-engineering.md +165 -35
- package/.claude/agents/agent-principles/quality-metrics.md +83 -2
- package/.claude/agents/analysis/code-analyzer.md +722 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +33 -3
- package/.claude/agents/analysis/perf-analyzer.md +812 -0
- package/.claude/agents/architecture/system-architect.md +25 -11
- package/.claude/agents/cfn-loop/product-owner.md +458 -2
- package/.claude/agents/code-booster.md +13 -2
- package/.claude/agents/consensus/byzantine-coordinator.md +259 -6
- package/.claude/agents/consensus/consensus-builder.md +135 -2
- package/.claude/agents/consensus/crdt-synchronizer.md +307 -771
- package/.claude/agents/consensus/gossip-coordinator.md +227 -2
- package/.claude/agents/consensus/performance-benchmarker.md +385 -704
- package/.claude/agents/consensus/quorum-manager.md +241 -749
- package/.claude/agents/consensus/raft-manager.md +195 -2
- package/.claude/agents/consensus/security-manager.md +461 -518
- package/.claude/agents/core-agents/analyst.md +560 -0
- package/.claude/agents/core-agents/architect.md +578 -0
- package/.claude/agents/core-agents/base-template-generator.md +137 -0
- package/.claude/agents/core-agents/coder.md +409 -0
- package/.claude/agents/core-agents/coordinator.md +1429 -0
- package/.claude/agents/core-agents/planner.md +343 -0
- package/.claude/agents/core-agents/researcher.md +414 -0
- package/.claude/agents/core-agents/reviewer.md +652 -0
- package/.claude/agents/core-agents/task-coordinator.md +400 -0
- package/.claude/agents/core-agents/tester.md +912 -0
- package/.claude/agents/development/backend/dev-backend-api.md +418 -23
- package/.claude/agents/devops/devops-engineer.md +240 -433
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +350 -11
- package/.claude/agents/examples/blocking-coordinator-example.md +388 -0
- package/.claude/agents/frontend/interaction-tester.md +334 -17
- package/.claude/agents/frontend/react-frontend-engineer.md +255 -2
- package/.claude/agents/frontend/state-architect.md +235 -9
- package/.claude/agents/frontend/ui-designer.md +261 -132
- package/.claude/agents/goal/goal-planner.md +803 -52
- package/.claude/agents/planning-team/api-designer-persona.md +736 -0
- package/.claude/agents/planning-team/security-architect-persona.md +643 -0
- package/.claude/agents/planning-team/system-architect-persona.md +585 -0
- package/.claude/agents/product-owner-team/accessibility-advocate-persona.md +796 -0
- package/.claude/agents/product-owner-team/cto-agent.md +473 -0
- package/.claude/agents/product-owner-team/power-user-persona.md +590 -0
- package/.claude/agents/product-owner-team/product-owner-agent.md +806 -0
- package/.claude/agents/security/security-specialist.md +515 -13
- package/.claude/agents/sparc/architecture.md +237 -1
- package/.claude/agents/sparc/pseudocode.md +237 -1
- package/.claude/agents/sparc/refinement.md +244 -1
- package/.claude/agents/sparc/specification.md +282 -21
- package/.claude/agents/specialized/code-booster.md +826 -0
- package/.claude/agents/specialized/mobile/mobile-dev.md +560 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +33 -1
- package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +485 -746
- package/.claude/agents/swarm/adaptive-coordinator.md +269 -37
- package/.claude/agents/swarm/blocking-coordinator-example.md +456 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +324 -60
- package/.claude/agents/swarm/mesh-coordinator.md +774 -324
- package/.claude/agents/swarm/test-coordinator.md +123 -74
- package/.claude/agents/testing/e2e/playwright-agent.md +32 -0
- package/.claude/agents/testing/interaction-tester.md +525 -0
- package/.claude/agents/testing/playwright-tester.md +405 -0
- package/.claude/agents/testing/production-validator.md +644 -0
- package/.claude/agents/testing/tdd-london-swarm.md +659 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +27 -0
- package/.claude/agents/testing/validation/production-validator.md +390 -1
- package/.claude/agents-ignore/mesh-coordinator-backup.md +435 -0
- package/.claude/commands/cfn-loop-document.md +441 -0
- package/.claude/commands/github-commit.md +289 -0
- package/.claude-flow-novice/.claude/agents/CLAUDE.md +669 -51
- package/.claude-flow-novice/.claude/agents/agent-principles/agent-type-guidelines.md +137 -0
- package/.claude-flow-novice/.claude/agents/agent-principles/format-selection.md +20 -0
- package/.claude-flow-novice/.claude/agents/agent-principles/prompt-engineering.md +165 -35
- package/.claude-flow-novice/.claude/agents/agent-principles/quality-metrics.md +83 -2
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +722 -192
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +33 -3
- package/.claude-flow-novice/.claude/agents/analysis/perf-analyzer.md +812 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +25 -11
- package/.claude-flow-novice/.claude/agents/cfn-loop/product-owner.md +458 -2
- package/.claude-flow-novice/.claude/agents/code-booster.md +13 -2
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +259 -6
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +135 -2
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +307 -771
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +227 -2
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +385 -704
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +241 -749
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +195 -2
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +461 -518
- package/.claude-flow-novice/.claude/agents/core-agents/analyst.md +560 -0
- package/.claude-flow-novice/.claude/agents/core-agents/architect.md +578 -0
- package/.claude-flow-novice/.claude/agents/core-agents/base-template-generator.md +137 -0
- package/.claude-flow-novice/.claude/agents/core-agents/coder.md +409 -0
- package/.claude-flow-novice/.claude/agents/core-agents/coordinator.md +1429 -0
- package/.claude-flow-novice/.claude/agents/core-agents/planner.md +343 -0
- package/.claude-flow-novice/.claude/agents/core-agents/researcher.md +414 -0
- package/.claude-flow-novice/.claude/agents/core-agents/reviewer.md +652 -0
- package/.claude-flow-novice/.claude/agents/core-agents/task-coordinator.md +400 -0
- package/.claude-flow-novice/.claude/agents/core-agents/tester.md +912 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +418 -23
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +240 -433
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +350 -11
- package/.claude-flow-novice/.claude/agents/examples/blocking-coordinator-example.md +388 -0
- package/.claude-flow-novice/.claude/agents/frontend/interaction-tester.md +334 -17
- package/.claude-flow-novice/.claude/agents/frontend/react-frontend-engineer.md +255 -2
- package/.claude-flow-novice/.claude/agents/frontend/state-architect.md +235 -9
- package/.claude-flow-novice/.claude/agents/frontend/ui-designer.md +261 -132
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +803 -52
- package/.claude-flow-novice/.claude/agents/planning-team/api-designer-persona.md +736 -0
- package/.claude-flow-novice/.claude/agents/planning-team/security-architect-persona.md +643 -0
- package/.claude-flow-novice/.claude/agents/planning-team/system-architect-persona.md +585 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/accessibility-advocate-persona.md +796 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/cto-agent.md +473 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/power-user-persona.md +590 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/product-owner-agent.md +806 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/accessibility-advocate-persona.md +796 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/cto-agent.md +473 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/power-user-persona.md +590 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/product-owner-agent.md +806 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +515 -13
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +237 -1
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +237 -1
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +244 -1
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +282 -21
- package/.claude-flow-novice/.claude/agents/specialized/code-booster.md +826 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/mobile-dev.md +560 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +33 -1
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +485 -746
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +269 -37
- package/.claude-flow-novice/.claude/agents/swarm/blocking-coordinator-example.md +456 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +324 -60
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +774 -324
- package/.claude-flow-novice/.claude/agents/swarm/test-coordinator.md +123 -74
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +32 -0
- package/.claude-flow-novice/.claude/agents/testing/interaction-tester.md +525 -0
- package/.claude-flow-novice/.claude/agents/testing/playwright-tester.md +405 -0
- package/.claude-flow-novice/.claude/agents/testing/production-validator.md +644 -0
- package/.claude-flow-novice/.claude/agents/testing/tdd-london-swarm.md +659 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +27 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +390 -1
- package/.claude-flow-novice/config/typescript/tsconfig.tsbuildinfo +1 -1
- package/.claude-flow-novice/dist/__tests__/redis/RedisHealthMonitor.test.d.ts +14 -0
- package/.claude-flow-novice/dist/agents/heartbeat-manager.d.ts +73 -0
- package/.claude-flow-novice/dist/agents/lifecycle-cleanup-enhanced.d.ts +190 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/agent-lifecycle-sqlite.test.d.ts +17 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/blocking-coordination-audit.test.d.ts +16 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/blocking-coordination-signals.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/byzantine-consensus-adapter.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/byzantine-performance.test.d.ts +17 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-byzantine-integration.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-e2e.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-memory-manager.test.d.ts +9 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cleanup-integration.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cleanup-performance-validation.test.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/coordinator-timeout-handler.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/dead-coordinator-detection.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/doc-code-examples-validator.d.ts +35 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/doc-executable-examples.test.d.ts +10 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/extended-timeout-testing.test.d.ts +24 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/heartbeat-warning-system.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/redis-health-monitor.test.d.ts +22 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/signal-ack-protocol.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/sqlite-memory-manager.test.d.ts +19 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/test-utilities.d.ts +133 -0
- package/.claude-flow-novice/dist/cfn-loop/agent-lifecycle-sqlite.d.ts +143 -0
- package/.claude-flow-novice/dist/cfn-loop/blocking-coordination-signals.d.ts +178 -0
- package/.claude-flow-novice/dist/cfn-loop/blocking-coordination.d.ts +268 -0
- package/.claude-flow-novice/dist/cfn-loop/byzantine-consensus-adapter.d.ts +193 -0
- package/.claude-flow-novice/dist/cfn-loop/cfn-loop-memory-manager.d.ts +221 -0
- package/.claude-flow-novice/dist/cfn-loop/cfn-loop-orchestrator.d.ts +193 -1
- package/.claude-flow-novice/dist/cfn-loop/checkpoint-serializer.d.ts +113 -0
- package/.claude-flow-novice/dist/cfn-loop/circuit-breaker.d.ts +8 -2
- package/.claude-flow-novice/dist/cfn-loop/conflict-resolver.d.ts +221 -0
- package/.claude-flow-novice/dist/cfn-loop/consensus/enterprise-planning-consensus.d.ts +61 -0
- package/.claude-flow-novice/dist/cfn-loop/consensus/mvp-consensus.d.ts +33 -0
- package/.claude-flow-novice/dist/cfn-loop/coordination-validator.d.ts +121 -0
- package/.claude-flow-novice/dist/cfn-loop/coordinator-timeout-handler.d.ts +195 -0
- package/.claude-flow-novice/dist/cfn-loop/crash-detector.d.ts +138 -0
- package/.claude-flow-novice/dist/cfn-loop/epic-report-generator.d.ts +136 -0
- package/.claude-flow-novice/dist/cfn-loop/git-checkpoint-integration.example.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/git-checkpoint-manager.d.ts +165 -0
- package/.claude-flow-novice/dist/cfn-loop/heartbeat-integration-example.d.ts +16 -0
- package/.claude-flow-novice/dist/cfn-loop/heartbeat-warning-system.d.ts +202 -0
- package/.claude-flow-novice/dist/cfn-loop/meta-coordinator.d.ts +208 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/__tests__/mode-selection.test.d.ts +9 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/enterprise-mode.d.ts +37 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/index.d.ts +111 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/mvp-mode.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/standard-mode.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/types.d.ts +135 -0
- package/.claude-flow-novice/dist/cfn-loop/product-owner/enterprise-owner-team.d.ts +50 -0
- package/.claude-flow-novice/dist/cfn-loop/product-owner/mvp-owner.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/recovery-engine.d.ts +183 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-health-integration-example.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-health-monitor.d.ts +164 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-pubsub-helpers.d.ts +230 -0
- package/.claude-flow-novice/dist/cfn-loop/sprint-coordinator-enhanced.d.ts +199 -0
- package/.claude-flow-novice/dist/cfn-loop/state-checkpoint-manager.d.ts +198 -0
- package/.claude-flow-novice/dist/cfn-loop/test-aggregator.d.ts +205 -0
- package/.claude-flow-novice/dist/cfn-loop/test-lock-coordinator.d.ts +176 -0
- package/.claude-flow-novice/dist/cfn-loop/test-product-owner-decision.d.ts +19 -0
- package/.claude-flow-novice/dist/cfn-loop/types.d.ts +174 -0
- package/.claude-flow-novice/dist/cfn-loop/validator-methods-replacement.d.ts +68 -0
- package/.claude-flow-novice/dist/cli/cleanup-orphans.d.ts +54 -0
- package/.claude-flow-novice/dist/cli/commands/agent-lifecycle.d.ts +226 -0
- package/.claude-flow-novice/dist/cli/commands/cfn-loop-parallel.d.ts +21 -0
- package/.claude-flow-novice/dist/cli/commands/recovery-resume.d.ts +33 -0
- package/.claude-flow-novice/dist/cli/commands/recovery-status.d.ts +57 -0
- package/.claude-flow-novice/dist/cli/commands/recovery.d.ts +88 -0
- package/.claude-flow-novice/dist/cli/commands/validate-coordination.d.ts +14 -0
- package/.claude-flow-novice/dist/cli/node-compat.d.ts +1 -1
- package/.claude-flow-novice/dist/cli/simple-commands/hive-mind/queen.d.ts +3 -3
- package/.claude-flow-novice/dist/cli/utils/interactive-detector.d.ts +1 -1
- package/.claude-flow-novice/dist/cli/utils/redis-client.d.ts +1 -5
- package/.claude-flow-novice/dist/consensus/byzantine-coordinator.d.ts +314 -0
- package/.claude-flow-novice/dist/constants/agent-types.d.ts +2 -2
- package/.claude-flow-novice/dist/coordination/hive-orchestrator.d.ts +1 -1
- package/.claude-flow-novice/dist/coordination/validation-schemas.d.ts +12 -12
- package/.claude-flow-novice/dist/hooks/index.d.ts +1 -1
- package/.claude-flow-novice/dist/hooks/useSwarmRealtimeData.d.ts +11 -11
- package/.claude-flow-novice/dist/memory/advanced-memory-manager.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/backends/sqlite.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/distributed-memory.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/secret-detector.d.ts +131 -0
- package/.claude-flow-novice/dist/memory/sqlite-enhanced-backend.d.ts +1 -0
- package/.claude-flow-novice/dist/monitoring/memory-leak-dashboard-widget.d.ts +194 -0
- package/.claude-flow-novice/dist/providers/api-key-rotation-example.d.ts +54 -0
- package/.claude-flow-novice/dist/providers/api-key-rotator.d.ts +166 -0
- package/.claude-flow-novice/dist/providers/rate-limit-detector.d.ts +60 -0
- package/.claude-flow-novice/dist/redis/RedisHealthMonitor.d.ts +162 -0
- package/.claude-flow-novice/dist/redis/health-integration-example.d.ts +86 -0
- package/.claude-flow-novice/dist/services/swarm-memory-manager.d.ts +1 -0
- package/.claude-flow-novice/dist/src/agents/heartbeat-manager.js +144 -0
- package/.claude-flow-novice/dist/src/agents/lifecycle-cleanup-enhanced.js +514 -0
- package/.claude-flow-novice/dist/src/automation/test-pipeline/PipelineValidator.js +1 -1
- package/.claude-flow-novice/dist/src/automation/test-pipeline/SwarmTestCoordinator.js +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/agent-lifecycle-sqlite.js +385 -0
- package/.claude-flow-novice/dist/src/cfn-loop/blocking-coordination-signals.js +470 -0
- package/.claude-flow-novice/dist/src/cfn-loop/blocking-coordination.js +768 -0
- package/.claude-flow-novice/dist/src/cfn-loop/byzantine-consensus-adapter.js +548 -0
- package/.claude-flow-novice/dist/src/cfn-loop/cfn-loop-memory-manager.js +589 -0
- package/.claude-flow-novice/dist/src/cfn-loop/cfn-loop-orchestrator.js +1059 -21
- package/.claude-flow-novice/dist/src/cfn-loop/checkpoint-serializer.js +308 -0
- package/.claude-flow-novice/dist/src/cfn-loop/circuit-breaker.js +34 -9
- package/.claude-flow-novice/dist/src/cfn-loop/conflict-resolver.js +525 -0
- package/.claude-flow-novice/dist/src/cfn-loop/consensus/enterprise-planning-consensus.js +403 -0
- package/.claude-flow-novice/dist/src/cfn-loop/consensus/mvp-consensus.js +235 -0
- package/.claude-flow-novice/dist/src/cfn-loop/coordination-validator.js +304 -0
- package/.claude-flow-novice/dist/src/cfn-loop/coordinator-timeout-handler.js +600 -0
- package/.claude-flow-novice/dist/src/cfn-loop/crash-detector.js +362 -0
- package/.claude-flow-novice/dist/src/cfn-loop/epic-report-generator.js +283 -0
- package/.claude-flow-novice/dist/src/cfn-loop/git-checkpoint-integration.example.js +161 -0
- package/.claude-flow-novice/dist/src/cfn-loop/git-checkpoint-manager.js +486 -0
- package/.claude-flow-novice/dist/src/cfn-loop/heartbeat-integration-example.js +187 -0
- package/.claude-flow-novice/dist/src/cfn-loop/heartbeat-warning-system.js +492 -0
- package/.claude-flow-novice/dist/src/cfn-loop/meta-coordinator.js +538 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/enterprise-mode.js +132 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/index.js +191 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/mvp-mode.js +79 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/standard-mode.js +81 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/types.js +41 -0
- package/.claude-flow-novice/dist/src/cfn-loop/product-owner/enterprise-owner-team.js +380 -0
- package/.claude-flow-novice/dist/src/cfn-loop/product-owner/mvp-owner.js +170 -0
- package/.claude-flow-novice/dist/src/cfn-loop/recovery-engine.js +546 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-health-integration-example.js +215 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-health-monitor.js +414 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-pubsub-helpers.js +463 -0
- package/.claude-flow-novice/dist/src/cfn-loop/sprint-coordinator-enhanced.js +466 -0
- package/.claude-flow-novice/dist/src/cfn-loop/state-checkpoint-manager.js +402 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-aggregator.js +476 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-lock-coordinator.js +446 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-product-owner-decision.js +69 -0
- package/.claude-flow-novice/dist/src/cfn-loop/types.js +30 -0
- package/.claude-flow-novice/dist/src/cfn-loop/validator-methods-replacement.js +362 -0
- package/.claude-flow-novice/dist/src/cli/cleanup-orphans.js +246 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent-lifecycle.js +1058 -0
- package/.claude-flow-novice/dist/src/cli/commands/cfn-loop-parallel.js +436 -0
- package/.claude-flow-novice/dist/src/cli/commands/index.js +86 -0
- package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js +64 -2
- package/.claude-flow-novice/dist/src/cli/commands/recovery-resume.js +369 -0
- package/.claude-flow-novice/dist/src/cli/commands/recovery-status.js +265 -0
- package/.claude-flow-novice/dist/src/cli/commands/recovery.js +546 -0
- package/.claude-flow-novice/dist/src/cli/commands/validate-coordination.js +211 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE-backup-pre-enterprise-loop.md +735 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +176 -326
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js +1 -1
- package/.claude-flow-novice/dist/src/memory/advanced-memory-manager.js +17 -2
- package/.claude-flow-novice/dist/src/memory/backends/sqlite.js +23 -1
- package/.claude-flow-novice/dist/src/memory/distributed-memory.js +18 -3
- package/.claude-flow-novice/dist/src/memory/secret-detector.js +253 -0
- package/.claude-flow-novice/dist/src/memory/sqlite-enhanced-backend.js +20 -1
- package/.claude-flow-novice/dist/src/monitoring/memory-leak-dashboard-widget.js +421 -0
- package/.claude-flow-novice/dist/src/observability/prometheus-metrics.d.js +8 -0
- package/.claude-flow-novice/dist/src/providers/api-key-rotation-example.js +165 -0
- package/.claude-flow-novice/dist/src/providers/api-key-rotator.js +412 -0
- package/.claude-flow-novice/dist/src/providers/rate-limit-detector.js +193 -0
- package/.claude-flow-novice/dist/src/redis/RedisHealthMonitor.js +429 -0
- package/.claude-flow-novice/dist/src/redis/health-integration-example.js +353 -0
- package/.claude-flow-novice/dist/src/services/swarm-memory-manager.js +72 -42
- package/.claude-flow-novice/dist/src/sqlite/ACLEnforcer.cjs +928 -0
- package/.claude-flow-novice/dist/src/sqlite/AgentRegistry.cjs +702 -0
- package/.claude-flow-novice/dist/src/sqlite/AgentRegistry.js +702 -0
- package/.claude-flow-novice/dist/src/sqlite/EncryptionKeyManager.cjs +754 -0
- package/.claude-flow-novice/dist/src/sqlite/EncryptionKeyManager.js +754 -0
- package/.claude-flow-novice/dist/src/sqlite/MemoryStoreAdapter.cjs +571 -0
- package/.claude-flow-novice/dist/src/sqlite/MemoryStoreAdapter.js +571 -0
- package/.claude-flow-novice/dist/src/sqlite/MultiLayerCache.cjs +640 -0
- package/.claude-flow-novice/dist/src/sqlite/MultiLayerCache.js +640 -0
- package/.claude-flow-novice/dist/src/sqlite/RedisCoordinator.cjs +636 -0
- package/.claude-flow-novice/dist/src/sqlite/RedisCoordinator.js +636 -0
- package/.claude-flow-novice/dist/src/sqlite/SwarmMemoryManager.cjs +750 -0
- package/.claude-flow-novice/dist/src/sqlite/SwarmMemoryManager.js +750 -0
- package/.claude-flow-novice/dist/src/sqlite/index.cjs +620 -0
- package/.claude-flow-novice/dist/src/sqlite/index.js +620 -0
- package/.claude-flow-novice/dist/src/sqlite/performance-benchmarks.cjs +839 -0
- package/.claude-flow-novice/dist/src/sqlite/performance-benchmarks.js +839 -0
- package/.claude-flow-novice/dist/src/testing/performance/PerformanceTestRunner.js +1 -1
- package/.claude-flow-novice/dist/src/wasm-regex-engine/pkg/wasm_regex_engine.d.js +11 -0
- package/.claude-flow-novice/dist/src/wasm-regex-engine/pkg/wasm_regex_engine_bg.wasm.d.js +28 -0
- package/.claude-flow-novice/dist/web/api/routes/parallel-status.d.ts +105 -0
- package/.claude-flow-novice/dist/web/dashboard/hooks/useWebSocket.d.ts +4 -4
- package/.claude-flow-novice/tsconfig.tsbuildinfo +1 -1
- package/AUTO_SETUP.md +271 -0
- package/CLAUDE.md +176 -326
- package/README.md +127 -30
- package/config/.env.example +17 -0
- package/config/cfn-loop/enterprise-criteria.json +207 -0
- package/config/cfn-loop/instructions/enterprise-instructions.md +506 -0
- package/config/cfn-loop/instructions/mvp-instructions.md +420 -0
- package/config/cfn-loop/instructions/standard-instructions.md +497 -0
- package/config/cfn-loop/mvp-criteria.json +133 -0
- package/config/docker/DEPLOYMENT_VALIDATION_RESULTS.md +1 -1
- package/config/docker/QUICK_START.txt +7 -5
- package/config/docker/STABILITY_TEST_README.md +10 -10
- package/config/hooks/AGENT_TEMPLATE_VALIDATOR_COMPLETION.md +440 -0
- package/config/hooks/BLOCKING_COORDINATION_VALIDATOR_IMPLEMENTATION_REPORT.md +559 -0
- package/config/hooks/BLOCKING_COORDINATION_VALIDATOR_README.md +467 -0
- package/config/hooks/CFN_LOOP_MEMORY_VALIDATOR_IMPLEMENTATION.md +343 -0
- package/config/hooks/COVERAGE_VALIDATOR_QUICK_START.md +218 -0
- package/config/hooks/POST_TEST_COVERAGE_README.md +657 -0
- package/config/hooks/README-AGENT-TEMPLATE-VALIDATOR.md +464 -0
- package/config/hooks/README-CFN-LOOP-MEMORY-VALIDATOR.md +442 -0
- package/config/hooks/TEST_COVERAGE_VALIDATOR_COMPLETION.md +497 -0
- package/config/hooks/WASM_REGEX_ENGINE.md +210 -0
- package/config/hooks/coverage.config.json +40 -0
- package/config/hooks/hook-manager.cjs +47 -0
- package/config/hooks/markdown-validator.js +202 -0
- package/config/hooks/post-edit-agent-template.js +607 -0
- package/config/hooks/post-edit-blocking-coordination.js +748 -0
- package/config/hooks/post-edit-cfn-loop-memory.cjs +503 -0
- package/config/hooks/post-edit-pipeline.js +290 -145
- package/config/hooks/post-test-coverage.js +981 -0
- package/config/hooks/pre-commit-db-scan +119 -0
- package/config/hooks/pre-edit-security.js +33 -6
- package/config/hooks/pre-tool-validation.js +60 -1
- package/config/hooks/safety-validator.js +236 -21
- package/config/hooks/safety-validator.js.backup +1323 -0
- package/config/hooks/validators/CWEValidator.js +152 -0
- package/config/hooks/validators/ComplianceValidator.js +187 -0
- package/config/hooks/validators/DependencyScanner.js +162 -0
- package/config/hooks/validators/InputSanitizer.js +134 -0
- package/config/hooks/validators/OWASPValidator.js +197 -0
- package/config/hooks/validators/SecurityPatternScanner.js +318 -0
- package/config/jest/jest.config.js +12 -1
- package/docs/PRE_COMMIT_HOOK.md +294 -0
- package/docs/README.md +130 -153
- package/docs/TEST_INFRASTRUCTURE.md +381 -0
- package/docs/agent-lifecycle-hooks.md +860 -0
- package/docs/api/FUNCTION_CATALOG.md +584 -0
- package/docs/api/ROUTING_QUICK_REFERENCE.md +117 -0
- package/docs/api/VALIDATION_QUICK_REFERENCE.md +172 -0
- package/docs/api/blocking-coordination-api.md +1451 -0
- package/docs/architecture/MULTI_SWARM_COORDINATION_README.md +620 -0
- package/docs/architecture/README_REALTIME_COMMUNICATION.md +463 -0
- package/docs/architecture/REALTIME_COMMUNICATION_ANALYSIS.md +321 -0
- package/docs/architecture/WASM_ARCHITECTURE_SUMMARY.md +429 -0
- package/docs/architecture/WASM_INTEGRATION_ARCHITECTURE.md +1330 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/BLOCKING_COORDINATION_VALIDATION_FINAL.md +334 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/blocking-coordination-pattern.md +484 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/production-blocking-coordination-plan.md +764 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/revised-production-blocking-plan.md +614 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/WASM_IMPLEMENTATION_GUIDE.md +1011 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/WASM_ROLLOUT_PLAN.md +701 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/agent-lifecycle-implementation-plan.md +1428 -0
- package/docs/archive/2025-10-10-architecture/other-designs/CORRECTED-task-tool-constraints.md +366 -0
- package/docs/archive/2025-10-10-architecture/other-designs/claude-code-task-tool-constraints.md +401 -0
- package/docs/archive/2025-10-10-architecture/other-designs/cleanup-architecture-explanation.md +423 -0
- package/docs/archive/2025-10-10-guides/setup-guides/CONTRIBUTING.md +136 -0
- package/docs/archive/2025-10-10-guides/setup-guides/DEVELOPMENT_SETUP.md +486 -0
- package/docs/archive/2025-10-10-guides/setup-guides/EXAMPLES.md +793 -0
- package/docs/archive/2025-10-10-guides/setup-guides/INSTALLATION.md +608 -0
- package/docs/archive/2025-10-10-guides/setup-guides/QUICK_START_INSTALLATION.md +521 -0
- package/docs/archive/2025-10-10-guides/setup-guides/README.md +162 -0
- package/docs/archive/2025-10-10-guides/setup-guides/TROUBLESHOOTING.md +1388 -0
- package/docs/archive/2025-10-10-operations/ARCHIVE_MIGRATION_PLAN.md +214 -0
- package/docs/archive/2025-10-10-performance/wasm-deliverables/WASM_DELIVERABLES.md +421 -0
- package/docs/archive/ARCHIVAL_EXECUTION_REPORT_2025-10-10.md +219 -0
- package/docs/archive/HTTP_POLLING_FALLBACK.md +283 -0
- package/docs/archive/reference-historical/BACKUP_MANIFEST.md +32 -0
- package/docs/archive/reference-historical/README-PHASE4.md +355 -0
- package/docs/archive/reference-historical/READMEv2.md +524 -0
- package/docs/deployment/blocking-coordination-secrets.md +1445 -0
- package/docs/implementation/SQLITE_INTEGRATION_IMPLEMENTATION.md +663 -0
- package/docs/integration/cfn-loop-examples.md +1107 -0
- package/docs/observability/prometheus-setup.md +455 -0
- package/docs/operations/OPERATIONS_FOLDER_REVIEW_REPORT.json +135 -0
- package/docs/operations/failure-recovery-playbook.md +877 -0
- package/docs/operations/monitoring-runbook.md +880 -0
- package/docs/patterns/blocking-coordination-pattern.md +642 -0
- package/docs/reference/CHANGELOG-POST-EDIT-PIPELINE.md +370 -0
- package/docs/reference/MANUAL_NPM_PUBLICATION_GUIDE.md +248 -0
- package/docs/security/SEC-002-race-condition-fix.md +300 -0
- package/docs/security/SEC-003-JSON-VALIDATION.md +215 -0
- package/docs/testing/chaos-engineering.md +524 -0
- package/docs/training/best-practices.md +1241 -0
- package/docs/training/faq.md +1483 -0
- package/docs/training/interactive-tutorial.md +966 -0
- package/docs/training/troubleshooting-guide.md +1279 -0
- package/docs/training/video-walkthrough-script.md +675 -0
- package/examples/demonstrations/phase5-demonstration.cjs +227 -0
- package/examples/rest-api-simple/sparc-implementation-roadmap.md +1 -1
- package/examples/rest-api-simple/sparc-implementation-roadmap.md.backup-1760135091708 +190 -0
- package/examples/templates/basic-swarm/CLAUDE.md +464 -0
- package/examples/templates/custom-agent/CLAUDE.md +299 -0
- package/examples/templates/custom-agent/package.json +26 -0
- package/examples/templates/event-bus/package.json +28 -0
- package/examples/templates/fleet-manager/CLAUDE.md +134 -0
- package/examples/templates/fleet-manager/package.json +28 -0
- package/package.json +60 -18
- package/readme/additional-commands.md +365 -2
- package/readme/cfn-loop-modes.md +527 -0
- package/readme/logs-cli-redis.md +82 -14
- package/readme/logs-documentation-index.md +8 -0
- package/readme/logs-features.md +188 -24
- package/readme/logs-slash-commands.md +35 -11
- package/scripts/CLEANUP_OPTIMIZATION_REPORT.json +312 -0
- package/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +387 -0
- package/scripts/CLEANUP_QUICK_START.md +268 -0
- package/scripts/CLEANUP_TEST_RESULTS.md +205 -0
- package/scripts/auto-setup.js +332 -0
- package/scripts/cleanup-blocking-coordination.sh +420 -0
- package/scripts/collect-build-metrics.js +65 -0
- package/scripts/demo/README.md +79 -0
- package/scripts/demo/autoscaling-demo-simplified.js +963 -0
- package/scripts/demo/comprehensive-dashboard-test.js +693 -0
- package/scripts/demo/confidence-log.js +87 -0
- package/scripts/demo/confidence-report.js +82 -0
- package/scripts/demo/demo-multi-swarm-coordination.js +325 -0
- package/scripts/demo/demo-production-deployment.js +399 -0
- package/scripts/demo/demo-visualization-system.js +149 -0
- package/scripts/demo/performance-analysis.cjs +71 -0
- package/scripts/demo/performance-analysis.js +71 -0
- package/scripts/demo/test-autoscaling-demo.js +314 -0
- package/scripts/dev/demo-phase3-compliance.js +2 -2
- package/scripts/ecosystem.config.cjs +90 -0
- package/scripts/hook-wrapper.sh +54 -0
- package/scripts/install-pre-commit-hook.sh +127 -0
- package/scripts/legacy/performance-test-runner.js +7 -7
- package/scripts/migration/QUICK-START.md +189 -0
- package/scripts/migration/QUICK-START.md.backup-1760135091363 +189 -0
- package/scripts/migration/README.md +30 -0
- package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +500 -0
- package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +500 -0
- package/scripts/migration/UPDATE-PATHS-README.md +464 -0
- package/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +464 -0
- package/scripts/migration/example-patterns.json +19 -0
- package/scripts/migration/reorganize-workspace.js +504 -0
- package/scripts/migration/test-update-paths.js +359 -0
- package/scripts/migration/update-paths.js +664 -0
- package/scripts/migration/validate-migration.js +647 -0
- package/scripts/monitoring/README.md +6 -6
- package/scripts/monitoring/analyze-resources.sh +1 -1
- package/scripts/monitoring/dynamic-monitor.sh +4 -4
- package/scripts/monitoring/test-monitor-quick.sh +1 -1
- package/scripts/performance-test-runner.js +7 -7
- package/scripts/redis-lua/cleanup-blocking-coordination.lua +198 -0
- package/scripts/sync-agents.js +290 -0
- package/scripts/test/NEW_STABILITY_TEST_GUIDE.md +13 -8
- package/scripts/test/quick-multilingual-demo.js +2 -2
- package/scripts/test-cleanup-performance.sh +416 -0
- package/scripts/test-runner.cjs +154 -0
- package/scripts/validate-agent-hooks.js +506 -0
- package/scripts/validation/README.md +33 -0
- package/scripts/validation/acl-security-validation.cjs +214 -0
- package/scripts/validation/acl-security-validation.js +402 -0
- package/scripts/validation/byzantine-verification.js +407 -0
- package/scripts/validation/final-phase-2-consensus.cjs +219 -0
- package/scripts/validation/final-security-validation.js +791 -0
- package/scripts/validation/final-wasm-validation.cjs +840 -0
- package/scripts/validation/integration-test-analysis.js +105 -0
- package/scripts/validation/phase-0-comprehensive-validation.js +474 -0
- package/scripts/validation/phase-0-consensus-report.js +139 -0
- package/scripts/validation/phase-0-final-report.js +112 -0
- package/scripts/validation/phase-0-redis-consensus-report.js +129 -0
- package/scripts/validation/phase-0-validation-improved.js +490 -0
- package/scripts/validation/phase-0-validation-test.js +65 -0
- package/scripts/validation/phase-1-consensus-report.cjs +342 -0
- package/scripts/validation/phase-1-consensus-validation.cjs +551 -0
- package/scripts/validation/phase-1-consensus-validation.js +551 -0
- package/scripts/validation/phase-2-consensus-report.cjs +186 -0
- package/scripts/validation/phase-2-validation.cjs +171 -0
- package/scripts/validation/phase-2-validation.js +171 -0
- package/scripts/validation/phase-4-consensus-report.js +181 -0
- package/scripts/validation/phase-4-final-validation.js +351 -0
- package/scripts/validation/phase-5-consensus-report.cjs +113 -0
- package/scripts/validation/phase-5-consensus-report.js +113 -0
- package/scripts/validation/security-analysis.js +49 -0
- package/scripts/validation/security-validation.js +492 -0
- package/scripts/validation/simple-security-validation.js +464 -0
- package/scripts/verify-installation.js +44 -14
- package/src/cli/simple-commands/init/templates/CLAUDE-backup-pre-enterprise-loop.md +735 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +176 -326
- package/src/observability/blocking-coordination-metrics.js +161 -0
- package/src/observability/prometheus-metrics.d.ts +21 -0
- package/src/observability/prometheus-metrics.js +280 -0
- package/wiki/tutorials/beginner/04-quality-testing.md +3 -3
- package/.claude/agents/analyst.md +0 -300
- package/.claude/agents/architect.md +0 -558
- package/.claude/agents/base-template-generator.md +0 -65
- package/.claude/agents/coder.md +0 -181
- package/.claude/agents/planner.md +0 -135
- package/.claude/agents/researcher.md +0 -185
- package/.claude/agents/reviewer.md +0 -293
- package/.claude/agents/task-coordinator.md +0 -126
- package/.claude/agents/tester.md +0 -664
- package/MCP_DEPRECATION_COMPLETE.md +0 -375
- package/V2.0.0_READY_FOR_PUBLICATION.md +0 -417
- package/V2_RELEASE_SUMMARY.md +0 -568
- package/docs/DEPLOYMENT.md +0 -523
- package/docs/TROUBLESHOOTING.md +0 -1388
- package/docs/agent-token-analysis-results.json +0 -1329
- package/docs/architecture/agent-lifecycle-implementation-plan.md +0 -1428
- package/templates/custom-agent/package.json +0 -26
- package/templates/event-bus/package.json +0 -28
- package/templates/fleet-manager/package.json +0 -28
- /package/.claude/{agents ā agents-ignore}/benchmarking-tests/test-agent-code-heavy.md +0 -0
- /package/.claude/{agents ā agents-ignore}/benchmarking-tests/test-agent-metadata.md +0 -0
- /package/.claude/{agents ā agents-ignore}/benchmarking-tests/test-agent-minimal.md +0 -0
- /package/.claude/{agents/coordinator.md ā agents-ignore/coordinator-backup.md} +0 -0
- /package/.claude/{agents ā agents-ignore}/data/ml/data-ml-model.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/code-review-swarm.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/github-modes.md +0 -0
- /package/.claude/{agents/templates ā agents-ignore/github}/github-pr-manager.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/github-specialist.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/issue-tracker.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/multi-repo-swarm.md +0 -0
- /package/.claude/{agents/devops/ci-cd ā agents-ignore/github}/ops-cicd-github.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/pr-manager.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/project-board-sync.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/release-manager.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/release-swarm.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/repo-architect.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/swarm-issue.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/swarm-pr.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/sync-coordinator.md +0 -0
- /package/.claude/{agents ā agents-ignore}/github/workflow-automation.md +0 -0
- /package/.claude/{agents ā agents-ignore}/neural/neural-pattern-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/neural/safla-neural.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/benchmark-suite.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/load-balancer.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/perf-analyzer.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/performance-monitor.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/resource-allocator.md +0 -0
- /package/.claude/{agents ā agents-ignore}/optimization/topology-optimizer.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/consciousness-evolution-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/matrix-solver-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/nanosecond-scheduler-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/pagerank-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/phi-calculator-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/psycho-symbolic-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/sublinear.md +0 -0
- /package/.claude/{agents ā agents-ignore}/sublinear/temporal-advantage-agent.md +0 -0
- /package/.claude/{agents/architecture ā agents-ignore}/system-design/arch-system-design.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/automation-smart-agent.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/coordinator-swarm-init.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/implementer-sparc-coder.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/memory-coordinator.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/migration-plan.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/orchestrator-task.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/performance-analyzer.md +0 -0
- /package/.claude/{agents ā agents-ignore}/templates/sparc-coordinator.md +0 -0
- /package/{.claude/agents/specialized ā .claude-flow-novice/.claude/agents/agent-principles}/CODER_AGENT_GUIDELINES.md +0 -0
- /package/docs/{API.md ā api/API.md} +0 -0
- /package/docs/{CONFIGURATION.md ā api/CONFIGURATION.md} +0 -0
- /package/docs/{PROVIDER_ROUTING_CONFIGURATION.md ā api/PROVIDER_ROUTING_CONFIGURATION.md} +0 -0
- /package/docs/{PROVIDER_ROUTING_VERIFICATION.md ā api/PROVIDER_ROUTING_VERIFICATION.md} +0 -0
- /package/docs/{ROUTING_FLOW_DIAGRAM.md ā api/ROUTING_FLOW_DIAGRAM.md} +0 -0
- /package/{AGENT_PERFORMANCE_GUIDELINES.md ā docs/architecture/AGENT_PERFORMANCE_GUIDELINES.md} +0 -0
- /package/docs/{EVENTEMITTER_CLEANUP_PATTERN.md ā architecture/EVENTEMITTER_CLEANUP_PATTERN.md} +0 -0
- /package/docs/{REDIS_COORDINATION_SYSTEM.md ā architecture/REDIS_COORDINATION_SYSTEM.md} +0 -0
- /package/docs/{SYSTEM_ARCHITECTURE.md ā architecture/SYSTEM_ARCHITECTURE.md} +0 -0
- /package/docs/{consensus ā architecture/consensus}/QUORUM_VERIFICATION_GUIDE.md +0 -0
- /package/docs/{consensus ā architecture/consensus}/README.md +0 -0
- /package/docs/{consensus ā architecture/consensus}/consensus-verification-1758747665635.json +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/MIGRATION_SUMMARY.md +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/README.md +0 -0
- /package/docs/{agent-booster-architecture.md ā archive/2025-10-10-architecture/agent-subdirectory/agent-booster-architecture.md} +0 -0
- /package/docs/{agent-prompt-guidelines.md ā archive/2025-10-10-architecture/agent-subdirectory/agent-prompt-guidelines.md} +0 -0
- /package/docs/{agent-token-usage-analysis-report.md ā archive/2025-10-10-architecture/agent-subdirectory/agent-token-usage-analysis-report.md} +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/consensus-README.md +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/dependency-tracking-examples.md +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/optimization-README.md +0 -0
- /package/docs/{agents ā archive/2025-10-10-architecture/agent-subdirectory}/swarm-README.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/CONSENSUS-COMPARISON.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/ROUND-5-EXECUTIVE-SUMMARY.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/consolidated-consensus-report.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-consensus-round-2.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-consensus-summary.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-1.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-2.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-3.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-4.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-consensus-summary.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-1.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-2.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-3.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-4.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-5-final-consensus.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/fullstack-swarm-consensus-report.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/post-edit-consensus-round-2.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/raft-implementation-summary.md +0 -0
- /package/docs/{consensus ā archive/2025-10-10-architecture/consensus-rounds}/verification-summary.md +0 -0
- /package/docs/{comprehensive-mcp-solution-architecture.md ā archive/2025-10-10-architecture/deprecated-implementations/comprehensive-mcp-solution-architecture.md} +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture}/experimental/ExperimentalFeaturesArchitecture.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/frontend-specific}/frontend-agent-ecosystem-integration.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/frontend-specific}/frontend-agent-technical-decisions.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/frontend-specific}/frontend-backend-coordination-interfaces.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/frontend-specific}/react-frontend-agent-specification.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/github-specific}/github-agent-consolidation-architecture.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/github-specific}/github-architecture-diagrams.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/implementation-guides}/agent-lifecycle-implementation-guide.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/implementation-guides}/implementation-guide.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/implementation-guides}/implementation-specifications.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/implementation-guides}/integration-guide.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/implementation-guides}/performance-optimization-guide.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/old-summaries}/architecture-summary-report.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/old-summaries}/fullstack-swarm-implementation-summary.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/old-summaries}/ultra-fast-communication-summary.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/agent-discovery-registration-system.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/agent-lifecycle-management-architecture.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/architectural-decisions.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/architecture-decision-records.md +0 -0
- /package/docs/{claude-soul-implementation.md ā archive/2025-10-10-architecture/other-designs/claude-soul-implementation.md} +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/file-based-cross-team-communication.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/full-stack-swarm-team-specification.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/fullstack-communication-integration.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/stage3-unified-system-architecture.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/ultra-fast-communication-bus-design.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/other-designs}/zero-latency-communication-architecture.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/dynamic-agent-spawning-architecture.md +0 -0
- /package/docs/{fleet-manager-design.md ā archive/2025-10-10-architecture/specific-feature-specs/fleet-manager-design.md} +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/fleet-manager-npm-architecture.md +0 -0
- /package/docs/{help-coordinator-implementation.md ā archive/2025-10-10-architecture/specific-feature-specs/help-coordinator-implementation.md} +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/high-performance-memory-store.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/intelligent-configuration-system.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/message-serialization-compression-strategy.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/priority-queue-dead-letter-design.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/swarm-message-router-extension-design.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/swarm-router-implementation-spec.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/user-preference-storage-design.md +0 -0
- /package/docs/{architecture ā archive/2025-10-10-architecture/specific-feature-specs}/websocket-connection-scaling-design.md +0 -0
- /package/docs/{swarm-coordination-test-results.md ā archive/2025-10-10-architecture/test-results/swarm-coordination-test-results.md} +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/COMPREHENSIVE_WORKFLOW_SYSTEM.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/DEVELOPMENT_WORKFLOW.md +0 -0
- /package/docs/{EXAMPLES.md ā archive/2025-10-10-development/EXAMPLES.md} +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/SPARC.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/agent-scope-creep-prevention-guide.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/cargo-build-validator-summary.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development/cli-consolidation}/command-consolidation-technical-spec.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development/cli-consolidation}/consolidated-cli-implementation.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development/cli-consolidation}/consolidated-command-design.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/experimental-features-improvement-plan.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/feature-simplification-strategy.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-1.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-3.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-4.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-5.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/round-5-quick-reference.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/round-5-summary.md +0 -0
- /package/docs/{fixes ā archive/2025-10-10-development/fixes}/round-5-visual-summary.md +0 -0
- /package/docs/{implementation ā archive/2025-10-10-development/implementation}/configuration-system-specs.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/npm-packaging-solution.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/pair-optimization.md +0 -0
- /package/docs/{phase11-cli-integration-complete.md ā archive/2025-10-10-development/phase-summaries/phase11-cli-integration-complete.md} +0 -0
- /package/docs/{phase4-deployment-summary.md ā archive/2025-10-10-development/phase-summaries/phase4-deployment-summary.md} +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/rust-framework-detection.md +0 -0
- /package/docs/{SDK-INTEGRATION-TEST-SUMMARY.md ā archive/2025-10-10-development/sdk-integration/SDK-INTEGRATION-TEST-SUMMARY.md} +0 -0
- /package/docs/{SDK-TESTING.md ā archive/2025-10-10-development/sdk-integration/SDK-TESTING.md} +0 -0
- /package/docs/{claude-agent-sdk-integration-strategy.md ā archive/2025-10-10-development/sdk-integration/claude-agent-sdk-integration-strategy.md} +0 -0
- /package/docs/{sdk-integration-phase1.md ā archive/2025-10-10-development/sdk-integration/sdk-integration-phase1.md} +0 -0
- /package/docs/{sdk-migration-guide.md ā archive/2025-10-10-development/sdk-integration/sdk-migration-guide.md} +0 -0
- /package/docs/{sdk-phase1-summary.md ā archive/2025-10-10-development/sdk-integration/sdk-phase1-summary.md} +0 -0
- /package/docs/{swarm-fullstack ā archive/2025-10-10-development/swarm-fullstack}/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/docs/{swarm-fullstack ā archive/2025-10-10-development/swarm-fullstack}/frontend-testing-system.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/technical-implementation-guide.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/token-tracking-guide.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/token-tracking-status.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/troubleshooting.md +0 -0
- /package/docs/{development ā archive/2025-10-10-development}/typescript-distribution-solution.md +0 -0
- /package/docs/{personalization ā archive/2025-10-10-guides/personalization}/cli-integration-guide.md +0 -0
- /package/docs/{phase4-ux ā archive/2025-10-10-guides/phase4-ux}/error-handling-ux-guide.md +0 -0
- /package/docs/{phase4-ux ā archive/2025-10-10-guides/phase4-ux}/rollout-monitoring-dashboard.md +0 -0
- /package/docs/{phase4-ux ā archive/2025-10-10-guides/phase4-ux}/user-experience-validation-framework.md +0 -0
- /package/docs/{phase4-ux ā archive/2025-10-10-guides/phase4-ux}/user-onboarding-experience.md +0 -0
- /package/docs/{NOVICE_USER_GUIDE.md ā archive/2025-10-10-guides/setup-guides/NOVICE_USER_GUIDE.md} +0 -0
- /package/docs/{QUICK_START.md ā archive/2025-10-10-guides/setup-guides/QUICK_START.md} +0 -0
- /package/docs/{SETUP_WIZARD.md ā archive/2025-10-10-guides/setup-guides/SETUP_WIZARD.md} +0 -0
- /package/docs/{ZAIR_SETUP_CHECKLIST.md ā archive/2025-10-10-guides/setup-guides/ZAIR_SETUP_CHECKLIST.md} +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/PREFERENCE_SYSTEM_GUIDE.md +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/USER_GUIDE.md +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/enterprise-stakeholder-guide.md +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/novice-user-guide.md +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/tutorial.md +0 -0
- /package/docs/{user ā archive/2025-10-10-guides/user-guides}/ux-assessment-pain-points.md +0 -0
- /package/docs/{ux-design/mockups ā archive/2025-10-10-guides/ux-design}/configuration-ui-mockups.md +0 -0
- /package/docs/{ux-design/wizards ā archive/2025-10-10-guides/ux-design}/configuration-wizard-flows.md +0 -0
- /package/docs/{ux-design/ui-patterns ā archive/2025-10-10-guides/ux-design}/progressive-disclosure-patterns.md +0 -0
- /package/docs/{ux-design ā archive/2025-10-10-guides/ux-design}/usability-testing-plan.md +0 -0
- /package/docs/{ux-design/user-journeys ā archive/2025-10-10-guides/ux-design}/user-personas-analysis.md +0 -0
- /package/docs/{ux-design/accessibility ā archive/2025-10-10-guides/ux-design}/wcag-compliance-guidelines.md +0 -0
- /package/docs/{HOOK-COMPARISON.md ā archive/2025-10-10-integration/HOOK-COMPARISON.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-AGENT-INFO.md ā archive/2025-10-10-integration/POST-EDIT-PIPELINE-AGENT-INFO.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-MERGED.md ā archive/2025-10-10-integration/POST-EDIT-PIPELINE-MERGED.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-UNIFIED.md ā archive/2025-10-10-integration/POST-EDIT-PIPELINE-UNIFIED.md} +0 -0
- /package/docs/{automation ā archive/2025-10-10-integration/automation}/swarm-test-pipeline-strategy.md +0 -0
- /package/docs/{integration ā archive/2025-10-10-integration/mcp-compatibility}/issue-772-implementation-plan.md +0 -0
- /package/docs/{mcp-backwards-compatibility.md ā archive/2025-10-10-integration/mcp-compatibility/mcp-backwards-compatibility.md} +0 -0
- /package/docs/{mcp-novice-simplification.md ā archive/2025-10-10-integration/mcp-compatibility/mcp-novice-simplification.md} +0 -0
- /package/docs/{slash-commands ā archive/2025-10-10-integration/slash-commands}/cfn-claude-sync-usage.md +0 -0
- /package/docs/{slash-commands ā archive/2025-10-10-integration/slash-commands}/cfn-loop-quick-reference.md +0 -0
- /package/docs/{slash-commands ā archive/2025-10-10-integration/slash-commands}/cfn-loop-usage.md +0 -0
- /package/docs/{final-slash-commands-setup.md ā archive/2025-10-10-integration/slash-commands/final-slash-commands-setup.md} +0 -0
- /package/docs/{commands ā archive/2025-10-10-integration/slash-commands}/fullstack.md +0 -0
- /package/docs/{slash-commands-complete-status.md ā archive/2025-10-10-integration/slash-commands/slash-commands-complete-status.md} +0 -0
- /package/docs/{slash-commands-status-report.md ā archive/2025-10-10-integration/slash-commands/slash-commands-status-report.md} +0 -0
- /package/docs/{workflows ā archive/2025-10-10-integration/workflows}/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/docs/{workflows ā archive/2025-10-10-integration/workflows}/README.md +0 -0
- /package/docs/{workflows ā archive/2025-10-10-integration/workflows}/iterative-build-test-workflow.md +0 -0
- /package/docs/{DOCUMENTATION_AUTO_UPDATER_CHANGELOG.md ā archive/2025-10-10-migration/deprecation-notices/DOCUMENTATION_AUTO_UPDATER_CHANGELOG.md} +0 -0
- /package/{MCP_DEPRECATION_NOTICE.md ā docs/archive/2025-10-10-migration/deprecation-notices/MCP_DEPRECATION_NOTICE.md} +0 -0
- /package/docs/{migration ā archive/2025-10-10-migration/deprecation-notices}/README.md +0 -0
- /package/docs/{deprecation-report.md ā archive/2025-10-10-migration/deprecation-notices/deprecation-report.md} +0 -0
- /package/docs/{migration ā archive/2025-10-10-migration/v2-migration}/COMPREHENSIVE_MIGRATION_GUIDE.md +0 -0
- /package/docs/{V1_TO_V2_MIGRATION.md ā archive/2025-10-10-migration/v2-migration/V1_TO_V2_MIGRATION.md} +0 -0
- /package/{V2_MIGRATION_GUIDE.md ā docs/archive/2025-10-10-migration/v2-migration/V2_MIGRATION_GUIDE.md} +0 -0
- /package/docs/{migration ā archive/2025-10-10-migration/v2-migration}/migration-assessment-toolkit.md +0 -0
- /package/docs/{npm-package-updates.md ā archive/2025-10-10-migration/v2-migration/npm-package-updates.md} +0 -0
- /package/docs/{migration ā archive/2025-10-10-migration/v2-migration}/proven-migration-case-studies.md +0 -0
- /package/docs/{APM_INTEGRATION_GUIDE.md ā archive/2025-10-10-operations/APM_INTEGRATION_GUIDE.md} +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/DEPLOYMENT.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/ENABLE_AUTHENTICATION.md +0 -0
- /package/docs/{HOW_METRICS_WORK.md ā archive/2025-10-10-operations/HOW_METRICS_WORK.md} +0 -0
- /package/docs/{METRICS_PLACEMENT_STRATEGY.md ā archive/2025-10-10-operations/METRICS_PLACEMENT_STRATEGY.md} +0 -0
- /package/docs/{PRODUCTION_OPERATIONS.md ā archive/2025-10-10-operations/PRODUCTION_OPERATIONS.md} +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/RESOURCE_MANAGEMENT_IMPLEMENTATION_PLAN.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/RESOURCE_MANAGEMENT_TECHNICAL_SPECS.md +0 -0
- /package/docs/{SESSION_CLEANUP_SYSTEM.md ā archive/2025-10-10-operations/SESSION_CLEANUP_SYSTEM.md} +0 -0
- /package/docs/{V2_TRANSPARENCY_SYSTEM.md ā archive/2025-10-10-operations/V2_TRANSPARENCY_SYSTEM.md} +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/analytics-system.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/benchmarks}/benchmark-claude-flow-conflict-analysis.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/benchmarks}/benchmark-cleanup-analysis.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/benchmarks}/build-artifacts-analysis.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/byzantine-consensus}/FINAL_BYZANTINE_CONSENSUS_VERIFICATION_REPORT.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/byzantine-consensus}/byzantine-consensus-verification-report-phase2.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/byzantine-consensus}/byzantine-consensus-verification-report-phase4.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/chrome-mcp-research-report.md +0 -0
- /package/docs/{ci-cd ā archive/2025-10-10-operations/ci-cd}/README.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/cli-command-consolidation-analysis.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/DEPLOYMENT_GUIDE.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/DEPLOYMENT_STRATEGIES.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/DISASTER_RECOVERY.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/DOCKER_SECURITY.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/HELM_CHARTS.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/INFRASTRUCTURE_AS_CODE.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/MONITORING_OBSERVABILITY.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/PERFORMANCE_OPTIMIZATION.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/README.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/pm2-setup.md +0 -0
- /package/docs/{deployment ā archive/2025-10-10-operations/deployment}/production-deployment-guide.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/deployment-checklist.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/deployment-report.md +0 -0
- /package/docs/{metrics-counter-usage.md ā archive/2025-10-10-operations/metrics-counter-usage.md} +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/migration-strategy.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/performance-analysis}/agent-analysis-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/performance-analysis}/agent-persistence-performance-analysis.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/performance-analysis}/performance-analysis-report.md +0 -0
- /package/docs/{runbooks ā archive/2025-10-10-operations/runbooks}/DATABASE_PERFORMANCE_RUNBOOK.md +0 -0
- /package/docs/{runbooks ā archive/2025-10-10-operations/runbooks}/EMERGENCY_RESPONSE_PROCEDURES.md +0 -0
- /package/docs/{runbooks ā archive/2025-10-10-operations/runbooks}/SERVICE_OUTAGE_RUNBOOK.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/shadcn-mcp-swarm-research-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/training-pipeline-demo.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations}/training-pipeline-real-only.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/COMPREHENSIVE_QA_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/PRODUCTION_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/WIKI_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/checkpoint-1-3-validation-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/checkpoint-1-4-validation-summary.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/cli-validation-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/command-consolidation-usability-validation.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/configuration-system-validation-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/experimental-features-validation-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/final-validation-summary.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/unified-config-validation-report.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/validation-executive-summary.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/validator-scope-overreach-analysis.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/verification-integration.md +0 -0
- /package/docs/{operations ā archive/2025-10-10-operations/validation-reports}/verification-validation.md +0 -0
- /package/docs/{performance ā archive/2025-10-10-performance}/COMPREHENSIVE_SQLITE_ANALYSIS.md +0 -0
- /package/docs/{LRU_GARBAGE_COLLECTION.md ā archive/2025-10-10-performance/LRU_GARBAGE_COLLECTION.md} +0 -0
- /package/docs/{OPTIMIZATION_SAFETY_REPORT.md ā archive/2025-10-10-performance/OPTIMIZATION_SAFETY_REPORT.md} +0 -0
- /package/docs/{performance ā archive/2025-10-10-performance}/Phase3-Remediation-Report.md +0 -0
- /package/docs/{benchmark-realistic-code-generation.md ā archive/2025-10-10-performance/benchmarks/benchmark-realistic-code-generation.md} +0 -0
- /package/docs/{benchmark-rust-known-issues.md ā archive/2025-10-10-performance/benchmarks/benchmark-rust-known-issues.md} +0 -0
- /package/docs/{benchmark-rust-support-summary.md ā archive/2025-10-10-performance/benchmarks/benchmark-rust-support-summary.md} +0 -0
- /package/docs/{optimization ā archive/2025-10-10-performance/optimization}/README.md +0 -0
- /package/docs/{optimization ā archive/2025-10-10-performance/optimization}/communication-improvements.md +0 -0
- /package/docs/{performance ā archive/2025-10-10-performance/optimization}/sqlite-performance-analysis.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security}/DEPLOYMENT_CHECKLIST.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security}/GIT_SECRETS_SETUP.md +0 -0
- /package/docs/{operations/SECURITY_AUDIT_REPORT.md ā archive/2025-10-10-security/PACKAGE_SECURITY_AUDIT.md} +0 -0
- /package/docs/{security ā archive/2025-10-10-security}/SECRET-DETECTION.md +0 -0
- /package/docs/{SECURITY_AUDIT_REPORT.md ā archive/2025-10-10-security/SECRET_DETECTION_AUDIT.md} +0 -0
- /package/docs/{security ā archive/2025-10-10-security/authentication}/JWT_AUTHENTICATION.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/authentication}/MIGRATION_BASE64_TO_JWT.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/authentication}/REDIS_AUTHENTICATION.md +0 -0
- /package/docs/{SECURITY_AUTH.md ā archive/2025-10-10-security/authentication/SECURITY_AUTH.md} +0 -0
- /package/docs/{certification ā archive/2025-10-10-security/certification}/FINAL-PRODUCTION-CERTIFICATION.md +0 -0
- /package/docs/{certification ā archive/2025-10-10-security/certification}/README.md +0 -0
- /package/docs/{certification ā archive/2025-10-10-security/certification}/fullstack-swarm-production-cert.md +0 -0
- /package/docs/{certification ā archive/2025-10-10-security/certification}/post-edit-pipeline-production-cert.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security}/phase5-security-implementation-summary.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security}/sec-024-lamport-clock-implementation.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/vulnerabilities}/CRYPTO_CIPHER_FIX_REPORT.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/vulnerabilities}/CRYPTO_VULNERABILITY_SUMMARY.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/vulnerabilities}/cve-2025-005-006-implementation.md +0 -0
- /package/docs/{security ā archive/2025-10-10-security/vulnerabilities}/rbac-test-bypass-fix.md +0 -0
- /package/docs/{testing ā archive/2025-10-10-testing}/README.md +0 -0
- /package/docs/{testing ā archive/2025-10-10-testing}/consensus-decision-matrix.md +0 -0
- /package/docs/{testing ā archive/2025-10-10-testing}/playwright-mcp-integration-guide.md +0 -0
- /package/docs/{CROSS_PLATFORM_TEST_RESULTS.md ā archive/2025-10-10-testing/test-results/CROSS_PLATFORM_TEST_RESULTS.md} +0 -0
- /package/docs/{V2_MULTI_LEVEL_TEST_RESULTS.md ā archive/2025-10-10-testing/test-results/V2_MULTI_LEVEL_TEST_RESULTS.md} +0 -0
- /package/docs/{backend-testing-system.md ā archive/2025-10-10-testing/test-results/backend-testing-system.md} +0 -0
- /package/docs/{benchmark-test-report.md ā archive/2025-10-10-testing/test-results/benchmark-test-report.md} +0 -0
- /package/docs/{testing ā archive/2025-10-10-testing/test-results}/comprehensive-test-results.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/PRODUCTION-CERTIFICATION-SUMMARY.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/byzantine-consensus-coordination-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/byzantine-consensus-summary.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/completion-validation-verification-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/fullstack-integration-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/phase2-byzantine-consensus-verification-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/phase2-completion-consensus-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/stage5-consensus-report.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/stage6-final-certification.md +0 -0
- /package/docs/{validation ā archive/2025-10-10-testing/validation}/stage7-production-certification.md +0 -0
- /package/docs/{ERROR_HANDLING_IMPLEMENTATION_SUMMARY.md ā archive/ERROR_HANDLING_IMPLEMENTATION_SUMMARY.md} +0 -0
- /package/docs/{ERROR_MESSAGES_GUIDE.md ā archive/ERROR_MESSAGES_GUIDE.md} +0 -0
- /package/docs/{HTTP_POLLING_FALLBACK.md ā archive/HTTP_POLLING_FALLBACK.md.backup-1760135090706} +0 -0
- /package/docs/{phase2-implementation-summary.md ā archive/cfn-loop/completed-phases/phase2-implementation-summary.md} +0 -0
- /package/docs/{CFN_LOOP.md ā archive/cfn-loop/deprecated-3-loop/CFN_LOOP.md} +0 -0
- /package/docs/{validation-loop-pattern.md ā archive/cfn-loop/early-patterns/validation-loop-pattern.md} +0 -0
- /package/docs/{MCP_ENDPOINTS_REFERENCE.md ā archive/deprecated-mcp/MCP_ENDPOINTS_REFERENCE.md} +0 -0
- /package/docs/{api ā archive/deprecated-mcp}/MCP_TOOLS.md +0 -0
- /package/docs/{api ā archive/deprecated-mcp}/mcp-swarm-integration-api.md +0 -0
- /package/docs/{API_AUTH.md ā archive/phase3-auth-unimplemented/API_AUTH.md} +0 -0
- /package/docs/{AUTHENTICATION.md ā archive/phase3-auth-unimplemented/AUTHENTICATION.md} +0 -0
- /package/docs/{AUTH_DOCUMENTATION_SUMMARY.md ā archive/phase3-auth-unimplemented/AUTH_DOCUMENTATION_SUMMARY.md} +0 -0
- /package/docs/{AUTH_MIGRATION.md ā archive/phase3-auth-unimplemented/AUTH_MIGRATION.md} +0 -0
- /package/docs/{phase5-booster-integration-summary.md ā archive/phase5-booster-integration-summary.md} +0 -0
- /package/{CHANGELOG_V2.md ā docs/archive/reference-historical/CHANGELOG_V2.md} +0 -0
- /package/docs/{INDEX.md ā archive/reference-historical/INDEX.md} +0 -0
- /package/docs/{CFN_LOOP_PHASE_ORCHESTRATION.md ā cfn-loop/CFN_LOOP_PHASE_ORCHESTRATION.md} +0 -0
- /package/docs/{CFN_LOOP_SCOPE_CONTROL.md ā cfn-loop/CFN_LOOP_SCOPE_CONTROL.md} +0 -0
- /package/docs/{CFN_LOOP_SELF_LOOPING_ADDITIONS.md ā cfn-loop/CFN_LOOP_SELF_LOOPING_ADDITIONS.md} +0 -0
- /package/docs/{SPRINT_ORCHESTRATION.md ā cfn-loop/SPRINT_ORCHESTRATION.md} +0 -0
- /package/docs/{epic-iteration-limits-implementation.md ā cfn-loop/epic-iteration-limits-implementation.md} +0 -0
- /package/docs/{phase-5-sprint-5.2-multi-level-control.md ā cfn-loop/phase-5-sprint-5.2-multi-level-control.md} +0 -0
- /package/docs/{phase-orchestrator-sprint-enhancement-summary.md ā cfn-loop/phase-orchestrator-sprint-enhancement-summary.md} +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_06_ARCHITECTURE_SUMMARY.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_06_COMPONENT_INTERFACES.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_06_INTEGRATION_STRATEGY.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_06_MESH_COORDINATION_ARCHITECTURE.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_06_README.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_07_HELP_SYSTEM_ARCHITECTURE.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/PHASE_0_SDK_FOUNDATION.md +0 -0
- /package/docs/{phases ā cfn-loop/phases}/phase-05-architecture.md +0 -0
- /package/docs/{self-validating-loops-implementation.md ā cfn-loop/self-validating-loops-implementation.md} +0 -0
- /package/{CHANGELOG.md ā docs/reference/CHANGELOG.md} +0 -0
- /package/{NPM_PACKAGE_CONTENTS.md ā docs/reference/NPM_PACKAGE_CONTENTS.md} +0 -0
- /package/{README-NPM.md ā docs/reference/README-NPM.md} +0 -0
- /package/docs/{SITE_MAP.md ā reference/SITE_MAP.md} +0 -0
- /package/docs/{research ā reference/research}/AGENT_ACCESSIBILITY_GUIDE.md +0 -0
- /package/docs/{research ā reference/research}/AGENT_PERMISSION_SYSTEM_ANALYSIS.md +0 -0
- /package/docs/{research ā reference/research}/CLAUDE_AGENT_SDK_COMPREHENSIVE_ANALYSIS.md +0 -0
- /package/docs/{research ā reference/research}/CLAUDE_AGENT_SDK_EXECUTIVE_SUMMARY.md +0 -0
- /package/docs/{research ā reference/research}/CLEANUP_CRITERIA_QUICK_REFERENCE.md +0 -0
- /package/docs/{research ā reference/research}/claude-session-cpu-behavior-analysis.md +0 -0
- /package/docs/{research ā reference/research}/completion-validation-research.md +0 -0
- /package/docs/{templates ā reference/templates}/PHASE_DOCUMENT_TEMPLATE.md +0 -0
- /package/docs/{templates ā reference/templates}/PHASE_TEMPLATE_USAGE_GUIDE.md +0 -0
- /package/docs/{TEMPLATE_CUSTOMIZATION_GUIDE.md ā reference/templates/TEMPLATE_CUSTOMIZATION_GUIDE.md} +0 -0
- /package/docs/{TEMPLATE_EXAMPLES_AND_BEST_PRACTICES.md ā reference/templates/TEMPLATE_EXAMPLES_AND_BEST_PRACTICES.md} +0 -0
- /package/docs/{TEMPLATE_SYSTEM_DOCUMENTATION.md ā reference/templates/TEMPLATE_SYSTEM_DOCUMENTATION.md} +0 -0
- /package/docs/{wiki ā reference/wiki}/background-commands.md +0 -0
- /package/docs/{wiki ā reference/wiki}/efficiency-patterns-and-anti-patterns.md +0 -0
- /package/docs/{wiki ā reference/wiki}/monitoring-and-metrics-guide.md +0 -0
- /package/docs/{wiki ā reference/wiki}/performance-benchmarking-tools.md +0 -0
- /package/docs/{wiki ā reference/wiki}/performance-optimization-strategies.md +0 -0
- /package/docs/{wiki ā reference/wiki}/performance-testing-framework.md +0 -0
- /package/docs/{wiki ā reference/wiki}/resource-optimization-techniques.md +0 -0
- /package/docs/{wiki ā reference/wiki}/scalability-guidelines.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/README.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/authentication-authorization-strategies.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/compliance-automation-workflows.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/compliance-frameworks-integration.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/enterprise-security-patterns.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/incident-response-guide.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/secrets-management-guide.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/secure-coding-patterns.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/security-best-practices.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/security-first-development-workflows.md +0 -0
- /package/docs/{wiki ā reference/wiki}/security/security-testing-framework.md +0 -0
- /package/docs/{wiki ā reference/wiki}/session-persistence.md +0 -0
- /package/docs/{wiki ā reference/wiki}/stream-chain-command.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/README.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/cli-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/configuration-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/debug-mode.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/error-analysis.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/linux-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/log-analysis.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/macos-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/mcp-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/performance-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/quick-reference.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting/windows-troubleshooting.md +0 -0
- /package/docs/{wiki ā reference/wiki}/troubleshooting-slow-workflows.md +0 -0
- /package/docs/{CROSS_PLATFORM_VALIDATION_CONFIDENCE.json ā testing/CROSS_PLATFORM_VALIDATION_CONFIDENCE.json} +0 -0
- /package/docs/{validation ā testing/validation}/byzantine-validation-report.json +0 -0
- /package/{templates ā examples/templates}/README.md +0 -0
- /package/{templates ā examples/templates}/basic-swarm/.claude/settings.json +0 -0
- /package/{templates/basic-swarm/CLAUDE.md ā examples/templates/basic-swarm/CLAUDE.md.backup-1760135091193} +0 -0
- /package/{templates ā examples/templates}/basic-swarm/coordination.md +0 -0
- /package/{templates ā examples/templates}/basic-swarm/memory-bank.md +0 -0
- /package/{templates ā examples/templates}/basic-swarm/package.json +0 -0
- /package/{templates ā examples/templates}/custom-agent/.claude/settings.json +0 -0
- /package/{templates/custom-agent/CLAUDE.md ā examples/templates/custom-agent/CLAUDE.md.backup-1760135091180} +0 -0
- /package/{templates ā examples/templates}/event-bus/.claude/settings.json +0 -0
- /package/{templates ā examples/templates}/event-bus/CLAUDE.md +0 -0
- /package/{templates ā examples/templates}/fleet-manager/.claude/settings.json +0 -0
- /package/{templates/fleet-manager/CLAUDE.md ā examples/templates/fleet-manager/CLAUDE.md.backup-1760135091167} +0 -0
- /package/{docs ā scripts}/agent-token-analysis.js +0 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# cleanup-blocking-coordination.sh
|
|
4
|
+
# Sprint 3.2: Auto-Recovery Mechanisms - High-Performance Cleanup Script
|
|
5
|
+
#
|
|
6
|
+
# Performance Optimized Version:
|
|
7
|
+
# - Target: <5s for 10,000 coordinators (2,000 coordinators/sec)
|
|
8
|
+
# - Strategy: Lua script execution for atomic, server-side batch processing
|
|
9
|
+
# - Fallback: Original sequential bash implementation if Lua fails
|
|
10
|
+
#
|
|
11
|
+
# Finds and removes stale blocking coordinator state from Redis.
|
|
12
|
+
# Stale detection: Heartbeat age >10 minutes (600 seconds)
|
|
13
|
+
#
|
|
14
|
+
# Features:
|
|
15
|
+
# - Uses Redis SCAN (not KEYS) to prevent DoS in production
|
|
16
|
+
# - Lua script for 50-60x performance improvement
|
|
17
|
+
# - Dry-run mode for testing: --dry-run flag
|
|
18
|
+
# - Logs to ~/.claude-flow/logs/blocking-cleanup.log
|
|
19
|
+
# - Exit codes: 0 (success), 1 (Redis connection failed), 2 (cleanup errors)
|
|
20
|
+
# - Cleanup categories: heartbeats, ACKs, signals, idempotency, activity
|
|
21
|
+
#
|
|
22
|
+
# Usage:
|
|
23
|
+
# ./scripts/cleanup-blocking-coordination.sh # Production cleanup
|
|
24
|
+
# ./scripts/cleanup-blocking-coordination.sh --dry-run # Test mode
|
|
25
|
+
# ./scripts/cleanup-blocking-coordination.sh --fallback # Force bash implementation
|
|
26
|
+
#
|
|
27
|
+
# Scheduled execution:
|
|
28
|
+
# - systemd timer: Every 5 minutes (systemd/cleanup-blocking-coordination.timer)
|
|
29
|
+
# - cron: */5 * * * * (cron.d/cleanup-blocking-coordination)
|
|
30
|
+
# - npm: npm run cleanup:blocking
|
|
31
|
+
#
|
|
32
|
+
|
|
33
|
+
set -euo pipefail
|
|
34
|
+
|
|
35
|
+
# ===== CONFIGURATION =====
|
|
36
|
+
|
|
37
|
+
# Stale threshold: 10 minutes = 600 seconds
|
|
38
|
+
STALE_THRESHOLD_SECONDS=600
|
|
39
|
+
|
|
40
|
+
# Log file location
|
|
41
|
+
LOG_DIR="${HOME}/.claude-flow/logs"
|
|
42
|
+
LOG_FILE="${LOG_DIR}/blocking-cleanup.log"
|
|
43
|
+
|
|
44
|
+
# Redis connection (uses environment variables or defaults)
|
|
45
|
+
REDIS_HOST="${REDIS_HOST:-127.0.0.1}"
|
|
46
|
+
REDIS_PORT="${REDIS_PORT:-6379}"
|
|
47
|
+
REDIS_PASSWORD="${REDIS_PASSWORD:-}"
|
|
48
|
+
REDIS_DB="${REDIS_DB:-0}"
|
|
49
|
+
|
|
50
|
+
# Script directory (for Lua script location)
|
|
51
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
52
|
+
LUA_SCRIPT="${SCRIPT_DIR}/redis-lua/cleanup-blocking-coordination.lua"
|
|
53
|
+
|
|
54
|
+
# Dry-run mode flag
|
|
55
|
+
DRY_RUN=false
|
|
56
|
+
|
|
57
|
+
# Force fallback to bash implementation
|
|
58
|
+
FORCE_FALLBACK=false
|
|
59
|
+
|
|
60
|
+
# Metrics counters
|
|
61
|
+
TOTAL_COORDINATORS_CHECKED=0
|
|
62
|
+
STALE_COORDINATORS_FOUND=0
|
|
63
|
+
KEYS_DELETED=0
|
|
64
|
+
CLEANUP_ERRORS=0
|
|
65
|
+
EXECUTION_TIME_MS=0
|
|
66
|
+
|
|
67
|
+
# ===== HELPER FUNCTIONS =====
|
|
68
|
+
|
|
69
|
+
# Log with timestamp
|
|
70
|
+
log() {
|
|
71
|
+
local level="$1"
|
|
72
|
+
shift
|
|
73
|
+
local message="$*"
|
|
74
|
+
local timestamp
|
|
75
|
+
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
|
76
|
+
echo "[${timestamp}] [${level}] ${message}" | tee -a "${LOG_FILE}"
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
# Redis command wrapper with authentication
|
|
80
|
+
redis_cmd() {
|
|
81
|
+
if [ -n "${REDIS_PASSWORD}" ]; then
|
|
82
|
+
redis-cli -h "${REDIS_HOST}" -p "${REDIS_PORT}" -a "${REDIS_PASSWORD}" -n "${REDIS_DB}" "$@" 2>/dev/null
|
|
83
|
+
else
|
|
84
|
+
redis-cli -h "${REDIS_HOST}" -p "${REDIS_PORT}" -n "${REDIS_DB}" "$@" 2>/dev/null
|
|
85
|
+
fi
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
# Redis EVAL wrapper for Lua script execution
|
|
89
|
+
redis_eval_lua() {
|
|
90
|
+
local lua_script="$1"
|
|
91
|
+
local num_keys="$2"
|
|
92
|
+
shift 2
|
|
93
|
+
local args=("$@")
|
|
94
|
+
|
|
95
|
+
if [ -n "${REDIS_PASSWORD}" ]; then
|
|
96
|
+
redis-cli -h "${REDIS_HOST}" -p "${REDIS_PORT}" -a "${REDIS_PASSWORD}" -n "${REDIS_DB}" --eval "${lua_script}" "${num_keys}" "${args[@]}" 2>/dev/null
|
|
97
|
+
else
|
|
98
|
+
redis-cli -h "${REDIS_HOST}" -p "${REDIS_PORT}" -n "${REDIS_DB}" --eval "${lua_script}" "${num_keys}" "${args[@]}" 2>/dev/null
|
|
99
|
+
fi
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
# High-performance Lua-based cleanup
|
|
103
|
+
cleanup_lua() {
|
|
104
|
+
log "INFO" "Using high-performance Lua script for cleanup"
|
|
105
|
+
|
|
106
|
+
# Check if Lua script exists
|
|
107
|
+
if [ ! -f "${LUA_SCRIPT}" ]; then
|
|
108
|
+
log "ERROR" "Lua script not found: ${LUA_SCRIPT}"
|
|
109
|
+
log "INFO" "Falling back to bash implementation"
|
|
110
|
+
return 1
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
# Execute Lua script
|
|
114
|
+
local dry_run_flag=0
|
|
115
|
+
if [ "${DRY_RUN}" = true ]; then
|
|
116
|
+
dry_run_flag=1
|
|
117
|
+
fi
|
|
118
|
+
|
|
119
|
+
local start_time
|
|
120
|
+
start_time=$(date +%s%3N)
|
|
121
|
+
|
|
122
|
+
local lua_result
|
|
123
|
+
lua_result=$(redis_eval_lua "${LUA_SCRIPT}" 0 "${STALE_THRESHOLD_SECONDS}" "${dry_run_flag}") || {
|
|
124
|
+
log "ERROR" "Lua script execution failed"
|
|
125
|
+
return 1
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
local end_time
|
|
129
|
+
end_time=$(date +%s%3N)
|
|
130
|
+
EXECUTION_TIME_MS=$((end_time - start_time))
|
|
131
|
+
|
|
132
|
+
# Parse JSON result
|
|
133
|
+
if command -v jq >/dev/null 2>&1; then
|
|
134
|
+
TOTAL_COORDINATORS_CHECKED=$(echo "${lua_result}" | jq -r '.totalCoordinatorsChecked')
|
|
135
|
+
STALE_COORDINATORS_FOUND=$(echo "${lua_result}" | jq -r '.staleCoordinatorsFound')
|
|
136
|
+
KEYS_DELETED=$(echo "${lua_result}" | jq -r '.keysDeleted')
|
|
137
|
+
local lua_execution_time_ms
|
|
138
|
+
lua_execution_time_ms=$(echo "${lua_result}" | jq -r '.executionTimeMs')
|
|
139
|
+
|
|
140
|
+
log "INFO" "Lua script execution time: ${lua_execution_time_ms}ms (server-side)"
|
|
141
|
+
log "INFO" "Total round-trip time: ${EXECUTION_TIME_MS}ms (including network)"
|
|
142
|
+
|
|
143
|
+
# Log stale coordinator IDs if any found
|
|
144
|
+
local stale_ids
|
|
145
|
+
stale_ids=$(echo "${lua_result}" | jq -r '.staleCoordinatorIds[]' 2>/dev/null || echo "")
|
|
146
|
+
if [ -n "${stale_ids}" ]; then
|
|
147
|
+
log "DEBUG" "Stale coordinator IDs: ${stale_ids}"
|
|
148
|
+
fi
|
|
149
|
+
else
|
|
150
|
+
log "WARN" "jq not found, cannot parse Lua script output"
|
|
151
|
+
log "INFO" "Raw output: ${lua_result}"
|
|
152
|
+
return 1
|
|
153
|
+
fi
|
|
154
|
+
|
|
155
|
+
return 0
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
# Redis SCAN wrapper (non-blocking alternative to KEYS)
|
|
159
|
+
redis_scan() {
|
|
160
|
+
local pattern="$1"
|
|
161
|
+
local cursor=0
|
|
162
|
+
local keys=()
|
|
163
|
+
|
|
164
|
+
while true; do
|
|
165
|
+
# SCAN returns: [cursor, [key1, key2, ...]]
|
|
166
|
+
local result
|
|
167
|
+
result=$(redis_cmd SCAN "${cursor}" MATCH "${pattern}" COUNT 100)
|
|
168
|
+
|
|
169
|
+
# Extract new cursor (first line)
|
|
170
|
+
cursor=$(echo "${result}" | head -n 1)
|
|
171
|
+
|
|
172
|
+
# Extract keys (remaining lines)
|
|
173
|
+
local batch_keys
|
|
174
|
+
batch_keys=$(echo "${result}" | tail -n +2)
|
|
175
|
+
|
|
176
|
+
# Add to results
|
|
177
|
+
if [ -n "${batch_keys}" ]; then
|
|
178
|
+
keys+=( ${batch_keys} )
|
|
179
|
+
fi
|
|
180
|
+
|
|
181
|
+
# Check if scan is complete
|
|
182
|
+
if [ "${cursor}" = "0" ]; then
|
|
183
|
+
break
|
|
184
|
+
fi
|
|
185
|
+
done
|
|
186
|
+
|
|
187
|
+
# Return unique keys (SCAN may return duplicates)
|
|
188
|
+
printf '%s\n' "${keys[@]}" | sort -u
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
# Get current Unix timestamp
|
|
192
|
+
current_timestamp() {
|
|
193
|
+
date +%s
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
# Calculate age of heartbeat in seconds
|
|
197
|
+
get_heartbeat_age() {
|
|
198
|
+
local heartbeat_key="$1"
|
|
199
|
+
|
|
200
|
+
# Get heartbeat timestamp from Redis
|
|
201
|
+
local heartbeat_value
|
|
202
|
+
heartbeat_value=$(redis_cmd GET "${heartbeat_key}")
|
|
203
|
+
|
|
204
|
+
if [ -z "${heartbeat_value}" ]; then
|
|
205
|
+
echo "-1" # Heartbeat not found
|
|
206
|
+
return
|
|
207
|
+
fi
|
|
208
|
+
|
|
209
|
+
# Parse JSON to extract timestamp (format: {"coordinatorId":"...","timestamp":1234567890,...})
|
|
210
|
+
local heartbeat_timestamp
|
|
211
|
+
heartbeat_timestamp=$(echo "${heartbeat_value}" | grep -oP '(?<="timestamp":)\d+' || echo "0")
|
|
212
|
+
|
|
213
|
+
if [ "${heartbeat_timestamp}" = "0" ]; then
|
|
214
|
+
echo "-1" # Invalid timestamp
|
|
215
|
+
return
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
# Calculate age
|
|
219
|
+
local now
|
|
220
|
+
now=$(current_timestamp)
|
|
221
|
+
local age=$((now - heartbeat_timestamp / 1000)) # Convert ms to seconds
|
|
222
|
+
|
|
223
|
+
echo "${age}"
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
# Cleanup coordinator state (bash fallback implementation)
|
|
227
|
+
cleanup_coordinator() {
|
|
228
|
+
local coordinator_id="$1"
|
|
229
|
+
local age_seconds="$2"
|
|
230
|
+
|
|
231
|
+
log "INFO" "Cleaning up stale coordinator: ${coordinator_id} (age: ${age_seconds}s, threshold: ${STALE_THRESHOLD_SECONDS}s)"
|
|
232
|
+
|
|
233
|
+
local keys_to_delete=()
|
|
234
|
+
|
|
235
|
+
# 1. Heartbeat key
|
|
236
|
+
keys_to_delete+=( "blocking:heartbeat:${coordinator_id}" )
|
|
237
|
+
|
|
238
|
+
# 2. Signal ACK keys (blocking:ack:coordinatorId:*)
|
|
239
|
+
local ack_keys
|
|
240
|
+
ack_keys=$(redis_scan "blocking:ack:${coordinator_id}:*")
|
|
241
|
+
if [ -n "${ack_keys}" ]; then
|
|
242
|
+
while IFS= read -r key; do
|
|
243
|
+
keys_to_delete+=( "${key}" )
|
|
244
|
+
done <<< "${ack_keys}"
|
|
245
|
+
fi
|
|
246
|
+
|
|
247
|
+
# 3. Signal key (blocking:signal:coordinatorId)
|
|
248
|
+
keys_to_delete+=( "blocking:signal:${coordinator_id}" )
|
|
249
|
+
|
|
250
|
+
# 4. Idempotency keys (blocking:idempotency:*coordinatorId*)
|
|
251
|
+
local idempotency_keys
|
|
252
|
+
idempotency_keys=$(redis_scan "blocking:idempotency:*${coordinator_id}*")
|
|
253
|
+
if [ -n "${idempotency_keys}" ]; then
|
|
254
|
+
while IFS= read -r key; do
|
|
255
|
+
keys_to_delete+=( "${key}" )
|
|
256
|
+
done <<< "${idempotency_keys}"
|
|
257
|
+
fi
|
|
258
|
+
|
|
259
|
+
# 5. Activity tracking key
|
|
260
|
+
keys_to_delete+=( "coordinator:activity:${coordinator_id}" )
|
|
261
|
+
|
|
262
|
+
# Log keys to delete
|
|
263
|
+
local key_count=${#keys_to_delete[@]}
|
|
264
|
+
log "DEBUG" "Found ${key_count} keys to delete for coordinator ${coordinator_id}"
|
|
265
|
+
|
|
266
|
+
if [ "${DRY_RUN}" = true ]; then
|
|
267
|
+
log "INFO" "[DRY-RUN] Would delete ${key_count} keys for coordinator ${coordinator_id}"
|
|
268
|
+
for key in "${keys_to_delete[@]}"; do
|
|
269
|
+
log "DEBUG" "[DRY-RUN] Would delete: ${key}"
|
|
270
|
+
done
|
|
271
|
+
else
|
|
272
|
+
# Delete keys in batch
|
|
273
|
+
if [ ${key_count} -gt 0 ]; then
|
|
274
|
+
redis_cmd DEL "${keys_to_delete[@]}" >/dev/null || {
|
|
275
|
+
log "ERROR" "Failed to delete keys for coordinator ${coordinator_id}"
|
|
276
|
+
CLEANUP_ERRORS=$((CLEANUP_ERRORS + 1))
|
|
277
|
+
return 1
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
KEYS_DELETED=$((KEYS_DELETED + key_count))
|
|
281
|
+
log "INFO" "Deleted ${key_count} keys for coordinator ${coordinator_id}"
|
|
282
|
+
fi
|
|
283
|
+
fi
|
|
284
|
+
|
|
285
|
+
STALE_COORDINATORS_FOUND=$((STALE_COORDINATORS_FOUND + 1))
|
|
286
|
+
return 0
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
# Bash fallback cleanup implementation
|
|
290
|
+
cleanup_bash() {
|
|
291
|
+
log "INFO" "Using bash fallback implementation for cleanup"
|
|
292
|
+
|
|
293
|
+
local start_time
|
|
294
|
+
start_time=$(date +%s%3N)
|
|
295
|
+
|
|
296
|
+
# Find all blocking:heartbeat:* keys using SCAN
|
|
297
|
+
log "INFO" "Scanning for blocking coordinator heartbeats..."
|
|
298
|
+
|
|
299
|
+
local heartbeat_keys
|
|
300
|
+
heartbeat_keys=$(redis_scan "blocking:heartbeat:*")
|
|
301
|
+
|
|
302
|
+
if [ -z "${heartbeat_keys}" ]; then
|
|
303
|
+
log "INFO" "No coordinator heartbeats found"
|
|
304
|
+
log "INFO" "Cleanup complete (nothing to do)"
|
|
305
|
+
return 0
|
|
306
|
+
fi
|
|
307
|
+
|
|
308
|
+
# Process each heartbeat
|
|
309
|
+
while IFS= read -r heartbeat_key; do
|
|
310
|
+
TOTAL_COORDINATORS_CHECKED=$((TOTAL_COORDINATORS_CHECKED + 1))
|
|
311
|
+
|
|
312
|
+
# Extract coordinator ID from key: blocking:heartbeat:{coordinatorId}
|
|
313
|
+
local coordinator_id
|
|
314
|
+
coordinator_id=$(echo "${heartbeat_key}" | sed 's/^blocking:heartbeat://')
|
|
315
|
+
|
|
316
|
+
log "DEBUG" "Checking coordinator: ${coordinator_id}"
|
|
317
|
+
|
|
318
|
+
# Get heartbeat age
|
|
319
|
+
local age_seconds
|
|
320
|
+
age_seconds=$(get_heartbeat_age "${heartbeat_key}")
|
|
321
|
+
|
|
322
|
+
if [ "${age_seconds}" = "-1" ]; then
|
|
323
|
+
log "WARN" "Invalid or missing heartbeat for coordinator: ${coordinator_id}"
|
|
324
|
+
continue
|
|
325
|
+
fi
|
|
326
|
+
|
|
327
|
+
# Check if stale
|
|
328
|
+
if [ "${age_seconds}" -gt "${STALE_THRESHOLD_SECONDS}" ]; then
|
|
329
|
+
log "WARN" "Stale coordinator detected: ${coordinator_id} (age: ${age_seconds}s)"
|
|
330
|
+
cleanup_coordinator "${coordinator_id}" "${age_seconds}" || true
|
|
331
|
+
else
|
|
332
|
+
log "DEBUG" "Coordinator active: ${coordinator_id} (age: ${age_seconds}s)"
|
|
333
|
+
fi
|
|
334
|
+
done <<< "${heartbeat_keys}"
|
|
335
|
+
|
|
336
|
+
local end_time
|
|
337
|
+
end_time=$(date +%s%3N)
|
|
338
|
+
EXECUTION_TIME_MS=$((end_time - start_time))
|
|
339
|
+
|
|
340
|
+
log "INFO" "Bash fallback execution time: ${EXECUTION_TIME_MS}ms"
|
|
341
|
+
|
|
342
|
+
return 0
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
# ===== MAIN EXECUTION =====
|
|
346
|
+
|
|
347
|
+
main() {
|
|
348
|
+
# Parse command line arguments
|
|
349
|
+
while [[ $# -gt 0 ]]; do
|
|
350
|
+
case $1 in
|
|
351
|
+
--dry-run)
|
|
352
|
+
DRY_RUN=true
|
|
353
|
+
shift
|
|
354
|
+
;;
|
|
355
|
+
--fallback)
|
|
356
|
+
FORCE_FALLBACK=true
|
|
357
|
+
shift
|
|
358
|
+
;;
|
|
359
|
+
*)
|
|
360
|
+
echo "Unknown option: $1"
|
|
361
|
+
echo "Usage: $0 [--dry-run] [--fallback]"
|
|
362
|
+
exit 2
|
|
363
|
+
;;
|
|
364
|
+
esac
|
|
365
|
+
done
|
|
366
|
+
|
|
367
|
+
# Create log directory if it doesn't exist
|
|
368
|
+
mkdir -p "${LOG_DIR}"
|
|
369
|
+
|
|
370
|
+
# Start cleanup
|
|
371
|
+
log "INFO" "========================================"
|
|
372
|
+
log "INFO" "Blocking Coordination Cleanup Started"
|
|
373
|
+
log "INFO" "Dry-run mode: ${DRY_RUN}"
|
|
374
|
+
log "INFO" "Stale threshold: ${STALE_THRESHOLD_SECONDS}s"
|
|
375
|
+
log "INFO" "Force fallback: ${FORCE_FALLBACK}"
|
|
376
|
+
log "INFO" "========================================"
|
|
377
|
+
|
|
378
|
+
# Check Redis connection
|
|
379
|
+
if ! redis_cmd PING >/dev/null 2>&1; then
|
|
380
|
+
log "ERROR" "Redis connection failed (host: ${REDIS_HOST}, port: ${REDIS_PORT})"
|
|
381
|
+
log "ERROR" "Cleanup aborted"
|
|
382
|
+
exit 1
|
|
383
|
+
fi
|
|
384
|
+
|
|
385
|
+
log "INFO" "Redis connection established"
|
|
386
|
+
|
|
387
|
+
# Execute cleanup: Try Lua first, fallback to bash if needed
|
|
388
|
+
if [ "${FORCE_FALLBACK}" = true ]; then
|
|
389
|
+
log "INFO" "Fallback mode forced via --fallback flag"
|
|
390
|
+
cleanup_bash
|
|
391
|
+
else
|
|
392
|
+
if ! cleanup_lua; then
|
|
393
|
+
log "WARN" "Lua cleanup failed, falling back to bash implementation"
|
|
394
|
+
cleanup_bash
|
|
395
|
+
fi
|
|
396
|
+
fi
|
|
397
|
+
|
|
398
|
+
# Log summary
|
|
399
|
+
log "INFO" "========================================"
|
|
400
|
+
log "INFO" "Cleanup Summary:"
|
|
401
|
+
log "INFO" " Total coordinators checked: ${TOTAL_COORDINATORS_CHECKED}"
|
|
402
|
+
log "INFO" " Stale coordinators found: ${STALE_COORDINATORS_FOUND}"
|
|
403
|
+
log "INFO" " Keys deleted: ${KEYS_DELETED}"
|
|
404
|
+
log "INFO" " Cleanup errors: ${CLEANUP_ERRORS}"
|
|
405
|
+
log "INFO" " Execution time: ${EXECUTION_TIME_MS}ms"
|
|
406
|
+
log "INFO" " Performance: $(awk "BEGIN {printf \"%.2f\", ${TOTAL_COORDINATORS_CHECKED} / (${EXECUTION_TIME_MS} / 1000.0)}" 2>/dev/null || echo "N/A") coordinators/sec"
|
|
407
|
+
log "INFO" "========================================"
|
|
408
|
+
|
|
409
|
+
# Exit code based on errors
|
|
410
|
+
if [ ${CLEANUP_ERRORS} -gt 0 ]; then
|
|
411
|
+
log "ERROR" "Cleanup completed with ${CLEANUP_ERRORS} errors"
|
|
412
|
+
exit 2
|
|
413
|
+
else
|
|
414
|
+
log "INFO" "Cleanup completed successfully"
|
|
415
|
+
exit 0
|
|
416
|
+
fi
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
# Execute main function
|
|
420
|
+
main "$@"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Standardized build metrics collection
|
|
4
|
+
* Usage: node scripts/collect-build-metrics.js [--json]
|
|
5
|
+
*
|
|
6
|
+
* Prevents ambiguous metrics like Sprint 7.1's "691 files compiled"
|
|
7
|
+
* See CLAUDE.md Section 11 for reporting standards
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { execSync } from 'child_process';
|
|
11
|
+
import { existsSync } from 'fs';
|
|
12
|
+
|
|
13
|
+
function countFiles(pattern, dir = 'src') {
|
|
14
|
+
try {
|
|
15
|
+
const cmd = `find ${dir} -name "${pattern}" 2>/dev/null | wc -l`;
|
|
16
|
+
return parseInt(execSync(cmd, { encoding: 'utf8' }).trim());
|
|
17
|
+
} catch {
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function collectMetrics() {
|
|
23
|
+
const metrics = {
|
|
24
|
+
source_files: {
|
|
25
|
+
typescript: countFiles('*.ts') + countFiles('*.tsx'),
|
|
26
|
+
javascript: countFiles('*.js'),
|
|
27
|
+
jsx: countFiles('*.jsx')
|
|
28
|
+
},
|
|
29
|
+
output_files: {
|
|
30
|
+
javascript: countFiles('*.js', '.claude-flow-novice/dist') || countFiles('*.js', 'dist'),
|
|
31
|
+
sourcemaps: countFiles('*.map', '.claude-flow-novice/dist') || countFiles('*.map', 'dist')
|
|
32
|
+
},
|
|
33
|
+
dist_exists: existsSync('.claude-flow-novice/dist') || existsSync('dist')
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
if (metrics.source_files.typescript > 0 && metrics.output_files.javascript > 0) {
|
|
37
|
+
metrics.compilation_ratio =
|
|
38
|
+
((metrics.output_files.javascript * 100) / metrics.source_files.typescript).toFixed(1) + '%';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return metrics;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const metrics = collectMetrics();
|
|
45
|
+
|
|
46
|
+
if (process.argv.includes('--json')) {
|
|
47
|
+
console.log(JSON.stringify(metrics, null, 2));
|
|
48
|
+
} else {
|
|
49
|
+
console.log('š Build Metrics Report');
|
|
50
|
+
console.log('ā'.repeat(50));
|
|
51
|
+
console.log(`\nSource Files:`);
|
|
52
|
+
console.log(` TypeScript: ${metrics.source_files.typescript} files`);
|
|
53
|
+
console.log(` JavaScript: ${metrics.source_files.javascript} files`);
|
|
54
|
+
console.log(`\nOutput Files (dist/):`);
|
|
55
|
+
console.log(` JavaScript: ${metrics.output_files.javascript} files`);
|
|
56
|
+
console.log(` Source Maps: ${metrics.output_files.sourcemaps} files`);
|
|
57
|
+
if (metrics.compilation_ratio) {
|
|
58
|
+
console.log(`\nCompilation Ratio: ${metrics.compilation_ratio}`);
|
|
59
|
+
console.log(`(Lower ratio = better tree-shaking)`);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (!metrics.dist_exists) {
|
|
63
|
+
console.log('\nā ļø Warning: dist/ directory not found. Run build first.');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Demo and Performance Scripts
|
|
2
|
+
|
|
3
|
+
This directory contains demonstration and performance analysis scripts for the claude-flow-novice framework.
|
|
4
|
+
|
|
5
|
+
## Demo Scripts
|
|
6
|
+
|
|
7
|
+
### Swarm Coordination Demos
|
|
8
|
+
- **autoscaling-demo-simplified.js** - Simplified autoscaling demonstration
|
|
9
|
+
- **test-autoscaling-demo.js** - Autoscaling test scenarios
|
|
10
|
+
- **demo-multi-swarm-coordination.js** - Multi-swarm coordination patterns
|
|
11
|
+
- **demo-production-deployment.js** - Production deployment workflows
|
|
12
|
+
- **demo-visualization-system.js** - Visualization system capabilities
|
|
13
|
+
|
|
14
|
+
### Dashboard and Monitoring
|
|
15
|
+
- **comprehensive-dashboard-test.js** - Complete dashboard functionality test
|
|
16
|
+
|
|
17
|
+
## Performance Analysis
|
|
18
|
+
|
|
19
|
+
### Analysis Tools
|
|
20
|
+
- **performance-analysis.js** - Main performance analysis tool (ES modules)
|
|
21
|
+
- **performance-analysis.cjs** - Performance analysis tool (CommonJS)
|
|
22
|
+
|
|
23
|
+
### Confidence Metrics
|
|
24
|
+
- **confidence-log.js** - Confidence metric logging
|
|
25
|
+
- **confidence-report.js** - Confidence report generation
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Running Demo Scripts
|
|
30
|
+
```bash
|
|
31
|
+
# Swarm coordination demo
|
|
32
|
+
node scripts/demo/demo-multi-swarm-coordination.js
|
|
33
|
+
|
|
34
|
+
# Production deployment demo
|
|
35
|
+
node scripts/demo/demo-production-deployment.js
|
|
36
|
+
|
|
37
|
+
# Visualization system demo
|
|
38
|
+
node scripts/demo/demo-visualization-system.js
|
|
39
|
+
|
|
40
|
+
# Autoscaling demo
|
|
41
|
+
node scripts/demo/autoscaling-demo-simplified.js
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Running Performance Analysis
|
|
45
|
+
```bash
|
|
46
|
+
# ES module version
|
|
47
|
+
node scripts/demo/performance-analysis.js
|
|
48
|
+
|
|
49
|
+
# CommonJS version
|
|
50
|
+
node scripts/demo/performance-analysis.cjs
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Monitoring and Confidence
|
|
54
|
+
```bash
|
|
55
|
+
# Generate confidence logs
|
|
56
|
+
node scripts/demo/confidence-log.js
|
|
57
|
+
|
|
58
|
+
# Generate confidence reports
|
|
59
|
+
node scripts/demo/confidence-report.js
|
|
60
|
+
|
|
61
|
+
# Dashboard test
|
|
62
|
+
node scripts/demo/comprehensive-dashboard-test.js
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Purpose
|
|
66
|
+
|
|
67
|
+
These scripts demonstrate:
|
|
68
|
+
1. **Swarm Orchestration** - Multi-agent coordination patterns
|
|
69
|
+
2. **Performance Profiling** - System performance analysis
|
|
70
|
+
3. **Confidence Metrics** - Agent confidence tracking and reporting
|
|
71
|
+
4. **Visualization** - Dashboard and monitoring capabilities
|
|
72
|
+
5. **Production Workflows** - Deployment and scaling patterns
|
|
73
|
+
|
|
74
|
+
## Notes
|
|
75
|
+
|
|
76
|
+
- Demo scripts are for demonstration and testing purposes
|
|
77
|
+
- Performance scripts analyze system metrics and agent efficiency
|
|
78
|
+
- Confidence scripts track and report agent confidence scores
|
|
79
|
+
- All scripts use the production swarm infrastructure
|