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,839 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Benchmarks for SQLite Memory Management
|
|
3
|
+
* Phase 1 Foundation Infrastructure & Event Bus Architecture
|
|
4
|
+
*
|
|
5
|
+
* Comprehensive performance testing for the 12-table SQLite schema
|
|
6
|
+
* with 5-level ACL system and Redis coordination.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const SwarmMemoryManager = require('./SwarmMemoryManager');
|
|
10
|
+
const MemoryStoreAdapter = require('./MemoryStoreAdapter');
|
|
11
|
+
const fs = require('fs');
|
|
12
|
+
const path = require('path');
|
|
13
|
+
|
|
14
|
+
class PerformanceBenchmarks {
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
this.options = {
|
|
17
|
+
testDbPath: options.testDbPath || ':memory:',
|
|
18
|
+
testIterations: options.testIterations || 1000,
|
|
19
|
+
concurrency: options.concurrency || 10,
|
|
20
|
+
dataSize: options.dataSize || 1024, // 1KB
|
|
21
|
+
enableEncryption: options.enableEncryption !== false,
|
|
22
|
+
enableCompression: options.enableCompression !== false,
|
|
23
|
+
outputDir: options.outputDir || './benchmarks',
|
|
24
|
+
...options
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
this.memoryManager = null;
|
|
28
|
+
this.adapter = null;
|
|
29
|
+
this.results = {
|
|
30
|
+
timestamp: new Date().toISOString(),
|
|
31
|
+
configuration: this.options,
|
|
32
|
+
tests: {}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Initialize benchmark environment
|
|
38
|
+
*/
|
|
39
|
+
async initialize() {
|
|
40
|
+
console.log('๐ Initializing Performance Benchmarks...');
|
|
41
|
+
|
|
42
|
+
// Create output directory
|
|
43
|
+
if (!fs.existsSync(this.options.outputDir)) {
|
|
44
|
+
fs.mkdirSync(this.options.outputDir, { recursive: true });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Initialize memory manager
|
|
48
|
+
this.memoryManager = new SwarmMemoryManager({
|
|
49
|
+
dbPath: this.options.testDbPath,
|
|
50
|
+
encryptionKey: Buffer.from('benchmark-encryption-key-32-bytes', 'utf8'),
|
|
51
|
+
compressionThreshold: this.options.enableCompression ? 1024 : Infinity
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
await this.memoryManager.initialize();
|
|
55
|
+
|
|
56
|
+
// Initialize adapter
|
|
57
|
+
this.adapter = new MemoryStoreAdapter({
|
|
58
|
+
dbPath: this.options.testDbPath,
|
|
59
|
+
swarmId: 'benchmark-swarm',
|
|
60
|
+
namespace: 'benchmark-test'
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
await this.adapter.initialize();
|
|
64
|
+
|
|
65
|
+
console.log('โ
Benchmark environment initialized');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Run all performance benchmarks
|
|
70
|
+
*/
|
|
71
|
+
async runAllBenchmarks() {
|
|
72
|
+
console.log('๐ Running Performance Benchmarks...');
|
|
73
|
+
|
|
74
|
+
await this.initialize();
|
|
75
|
+
|
|
76
|
+
try {
|
|
77
|
+
// Basic operations benchmarks
|
|
78
|
+
await this.benchmarkBasicOperations();
|
|
79
|
+
await this.benchmarkConcurrentOperations();
|
|
80
|
+
await this.benchmarkAclPerformance();
|
|
81
|
+
await this.benchmarkEncryptionPerformance();
|
|
82
|
+
await this.benchmarkCompressionPerformance();
|
|
83
|
+
|
|
84
|
+
// Advanced benchmarks
|
|
85
|
+
await this.benchmarkLargeDataOperations();
|
|
86
|
+
await this.benchmarkTtlOperations();
|
|
87
|
+
await this.benchmarkNamespaceOperations();
|
|
88
|
+
await this.benchmarkBackupAndRestore();
|
|
89
|
+
await this.benchmarkOptimizationOperations();
|
|
90
|
+
|
|
91
|
+
// Summary
|
|
92
|
+
this.generateSummary();
|
|
93
|
+
await this.saveResults();
|
|
94
|
+
|
|
95
|
+
console.log('โ
All benchmarks completed');
|
|
96
|
+
return this.results;
|
|
97
|
+
} finally {
|
|
98
|
+
await this.cleanup();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Benchmark basic CRUD operations
|
|
104
|
+
*/
|
|
105
|
+
async benchmarkBasicOperations() {
|
|
106
|
+
console.log('๐ Benchmarking Basic Operations...');
|
|
107
|
+
|
|
108
|
+
const testName = 'basic_operations';
|
|
109
|
+
const results = {
|
|
110
|
+
set: [],
|
|
111
|
+
get: [],
|
|
112
|
+
delete: [],
|
|
113
|
+
has: []
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const testData = this.generateTestData(this.options.testIterations);
|
|
117
|
+
|
|
118
|
+
// Benchmark SET operations
|
|
119
|
+
console.log(' ๐ SET operations...');
|
|
120
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
121
|
+
const start = process.hrtime.bigint();
|
|
122
|
+
await this.adapter.set(`key-${i}`, testData[i]);
|
|
123
|
+
const end = process.hrtime.bigint();
|
|
124
|
+
results.set.push(Number(end - start) / 1000000); // Convert to milliseconds
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Benchmark GET operations
|
|
128
|
+
console.log(' ๐ GET operations...');
|
|
129
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
130
|
+
const start = process.hrtime.bigint();
|
|
131
|
+
await this.adapter.get(`key-${i}`);
|
|
132
|
+
const end = process.hrtime.bigint();
|
|
133
|
+
results.get.push(Number(end - start) / 1000000);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Benchmark HAS operations
|
|
137
|
+
console.log(' ๐ HAS operations...');
|
|
138
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
139
|
+
const start = process.hrtime.bigint();
|
|
140
|
+
await this.adapter.has(`key-${i}`);
|
|
141
|
+
const end = process.hrtime.bigint();
|
|
142
|
+
results.has.push(Number(end - start) / 1000000);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Benchmark DELETE operations
|
|
146
|
+
console.log(' ๐๏ธ DELETE operations...');
|
|
147
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
148
|
+
const start = process.hrtime.bigint();
|
|
149
|
+
await this.adapter.delete(`key-${i}`);
|
|
150
|
+
const end = process.hrtime.bigint();
|
|
151
|
+
results.delete.push(Number(end - start) / 1000000);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
this.results.tests[testName] = this.calculateStats(results);
|
|
155
|
+
console.log(` โ
Basic Operations: ${this.results.tests[testName].set.avg.toFixed(2)}ms avg SET`);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Benchmark concurrent operations
|
|
160
|
+
*/
|
|
161
|
+
async benchmarkConcurrentOperations() {
|
|
162
|
+
console.log('๐ Benchmarking Concurrent Operations...');
|
|
163
|
+
|
|
164
|
+
const testName = 'concurrent_operations';
|
|
165
|
+
const results = {
|
|
166
|
+
concurrent_sets: [],
|
|
167
|
+
concurrent_gets: []
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const concurrency = this.options.concurrency;
|
|
171
|
+
const operationsPerWorker = Math.floor(this.options.testIterations / concurrency);
|
|
172
|
+
|
|
173
|
+
// Concurrent SET operations
|
|
174
|
+
console.log(' ๐ Concurrent SET operations...');
|
|
175
|
+
const setPromises = [];
|
|
176
|
+
for (let worker = 0; worker < concurrency; worker++) {
|
|
177
|
+
setPromises.push(this.runConcurrentSets(worker, operationsPerWorker, results));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const setStart = process.hrtime.bigint();
|
|
181
|
+
await Promise.all(setPromises);
|
|
182
|
+
const setEnd = process.hrtime.bigint();
|
|
183
|
+
|
|
184
|
+
// Concurrent GET operations
|
|
185
|
+
console.log(' ๐ Concurrent GET operations...');
|
|
186
|
+
const getPromises = [];
|
|
187
|
+
for (let worker = 0; worker < concurrency; worker++) {
|
|
188
|
+
getPromises.push(this.runConcurrentGets(worker, operationsPerWorker, results));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const getStart = process.hrtime.bigint();
|
|
192
|
+
await Promise.all(getPromises);
|
|
193
|
+
const getEnd = process.hrtime.bigint();
|
|
194
|
+
|
|
195
|
+
this.results.tests[testName] = {
|
|
196
|
+
concurrent_sets: {
|
|
197
|
+
totalTime: Number(setEnd - setStart) / 1000000,
|
|
198
|
+
opsPerSecond: (this.options.testIterations) / (Number(setEnd - setStart) / 1000000000),
|
|
199
|
+
workers: concurrency
|
|
200
|
+
},
|
|
201
|
+
concurrent_gets: {
|
|
202
|
+
totalTime: Number(getEnd - getStart) / 1000000,
|
|
203
|
+
opsPerSecond: (this.options.testIterations) / (Number(getEnd - getStart) / 1000000000),
|
|
204
|
+
workers: concurrency
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
console.log(` โ
Concurrent: ${this.results.tests[testName].concurrent_sets.opsPerSecond.toFixed(0)} SET ops/sec`);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Benchmark ACL performance
|
|
213
|
+
*/
|
|
214
|
+
async benchmarkAclPerformance() {
|
|
215
|
+
console.log('๐ Benchmarking ACL Performance...');
|
|
216
|
+
|
|
217
|
+
const testName = 'acl_performance';
|
|
218
|
+
const results = {
|
|
219
|
+
acl_checks: [],
|
|
220
|
+
cache_hits: 0,
|
|
221
|
+
cache_misses: 0
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
// Test ACL checks at different levels
|
|
225
|
+
const agentIds = ['agent-1', 'agent-2', 'agent-3'];
|
|
226
|
+
const aclLevels = [1, 2, 3, 4, 5];
|
|
227
|
+
|
|
228
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
229
|
+
const agentId = agentIds[i % agentIds.length];
|
|
230
|
+
const aclLevel = aclLevels[i % aclLevels.length];
|
|
231
|
+
|
|
232
|
+
const start = process.hrtime.bigint();
|
|
233
|
+
await this.memoryManager._checkACL(agentId, aclLevel, 'read');
|
|
234
|
+
const end = process.hrtime.bigint();
|
|
235
|
+
|
|
236
|
+
results.acl_checks.push(Number(end - start) / 1000000);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Get cache metrics
|
|
240
|
+
const metrics = this.memoryManager.getMetrics();
|
|
241
|
+
results.cache_hits = metrics.cacheHits;
|
|
242
|
+
results.cache_misses = metrics.cacheMisses;
|
|
243
|
+
|
|
244
|
+
this.results.tests[testName] = {
|
|
245
|
+
acl_checks: this.calculateStats(results.acl_checks),
|
|
246
|
+
cache_hit_rate: results.cache_hits / (results.cache_hits + results.cache_misses)
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
console.log(` โ
ACL: ${this.results.tests[testName].acl_checks.avg.toFixed(2)}ms avg check`);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Benchmark encryption performance
|
|
254
|
+
*/
|
|
255
|
+
async benchmarkEncryptionPerformance() {
|
|
256
|
+
if (!this.options.enableEncryption) {
|
|
257
|
+
console.log('โญ๏ธ Skipping encryption benchmarks (disabled)');
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
console.log('๐ Benchmarking Encryption Performance...');
|
|
262
|
+
|
|
263
|
+
const testName = 'encryption_performance';
|
|
264
|
+
const results = {
|
|
265
|
+
encrypt: [],
|
|
266
|
+
decrypt: []
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const testData = this.generateTestData(this.options.testIterations);
|
|
270
|
+
|
|
271
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
272
|
+
const data = testData[i];
|
|
273
|
+
const aclLevel = (i % 2) + 1; // private or team level
|
|
274
|
+
|
|
275
|
+
// Benchmark encryption
|
|
276
|
+
const encryptStart = process.hrtime.bigint();
|
|
277
|
+
this.memoryManager._encrypt(data, aclLevel);
|
|
278
|
+
const encryptEnd = process.hrtime.bigint();
|
|
279
|
+
results.encrypt.push(Number(encryptEnd - encryptStart) / 1000000);
|
|
280
|
+
|
|
281
|
+
// Benchmark decryption
|
|
282
|
+
const encrypted = this.memoryManager._encrypt(data, aclLevel);
|
|
283
|
+
const decryptStart = process.hrtime.bigint();
|
|
284
|
+
this.memoryManager._decrypt(encrypted.encrypted, encrypted.iv, encrypted.authTag, aclLevel);
|
|
285
|
+
const decryptEnd = process.hrtime.bigint();
|
|
286
|
+
results.decrypt.push(Number(decryptEnd - decryptStart) / 1000000);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
this.results.tests[testName] = {
|
|
290
|
+
encrypt: this.calculateStats(results.encrypt),
|
|
291
|
+
decrypt: this.calculateStats(results.decrypt)
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
console.log(` โ
Encryption: ${this.results.tests[testName].encrypt.avg.toFixed(2)}ms avg`);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Benchmark compression performance
|
|
299
|
+
*/
|
|
300
|
+
async benchmarkCompressionPerformance() {
|
|
301
|
+
if (!this.options.enableCompression) {
|
|
302
|
+
console.log('โญ๏ธ Skipping compression benchmarks (disabled)');
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
console.log('๐ฆ Benchmarking Compression Performance...');
|
|
307
|
+
|
|
308
|
+
const testName = 'compression_performance';
|
|
309
|
+
const results = {
|
|
310
|
+
compress: [],
|
|
311
|
+
decompress: [],
|
|
312
|
+
compression_ratios: []
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
const testData = this.generateLargeTestData(this.options.testIterations, 10240); // 10KB
|
|
316
|
+
|
|
317
|
+
for (let i = 0; i < this.options.testIterations; i++) {
|
|
318
|
+
const data = testData[i];
|
|
319
|
+
const originalSize = Buffer.byteLength(data, 'utf8');
|
|
320
|
+
|
|
321
|
+
// Benchmark compression
|
|
322
|
+
const compressStart = process.hrtime.bigint();
|
|
323
|
+
const compressed = this.memoryManager._compress(data);
|
|
324
|
+
const compressEnd = process.hrtime.bigint();
|
|
325
|
+
results.compress.push(Number(compressEnd - compressStart) / 1000000);
|
|
326
|
+
|
|
327
|
+
// Calculate compression ratio
|
|
328
|
+
const compressedSize = Buffer.byteLength(compressed, 'utf8');
|
|
329
|
+
const compressionRatio = originalSize / compressedSize;
|
|
330
|
+
results.compression_ratios.push(compressionRatio);
|
|
331
|
+
|
|
332
|
+
// Benchmark decompression
|
|
333
|
+
const decompressStart = process.hrtime.bigint();
|
|
334
|
+
this.memoryManager._decompress(compressed);
|
|
335
|
+
const decompressEnd = process.hrtime.bigint();
|
|
336
|
+
results.decompress.push(Number(decompressEnd - decompressStart) / 1000000);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
this.results.tests[testName] = {
|
|
340
|
+
compress: this.calculateStats(results.compress),
|
|
341
|
+
decompress: this.calculateStats(results.decompress),
|
|
342
|
+
compression_ratio: {
|
|
343
|
+
avg: results.compression_ratios.reduce((a, b) => a + b, 0) / results.compression_ratios.length,
|
|
344
|
+
min: Math.min(...results.compression_ratios),
|
|
345
|
+
max: Math.max(...results.compression_ratios)
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
console.log(` โ
Compression: ${this.results.tests[testName].compress.avg.toFixed(2)}ms avg, ${this.results.tests[testName].compression_ratio.avg.toFixed(2)}x ratio`);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Benchmark large data operations
|
|
354
|
+
*/
|
|
355
|
+
async benchmarkLargeDataOperations() {
|
|
356
|
+
console.log('๐ Benchmarking Large Data Operations...');
|
|
357
|
+
|
|
358
|
+
const testName = 'large_data_operations';
|
|
359
|
+
const results = {
|
|
360
|
+
large_sets: [],
|
|
361
|
+
large_gets: []
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
const largeDataSizes = [10240, 51200, 102400, 512000]; // 10KB to 500KB
|
|
365
|
+
|
|
366
|
+
for (const size of largeDataSizes) {
|
|
367
|
+
const largeData = this.generateLargeTestData(10, size);
|
|
368
|
+
|
|
369
|
+
for (let i = 0; i < 10; i++) {
|
|
370
|
+
// Benchmark large SET
|
|
371
|
+
const setStart = process.hrtime.bigint();
|
|
372
|
+
await this.adapter.set(`large-key-${size}-${i}`, largeData[i]);
|
|
373
|
+
const setEnd = process.hrtime.bigint();
|
|
374
|
+
results.large_sets.push({
|
|
375
|
+
size,
|
|
376
|
+
time: Number(setEnd - setStart) / 1000000
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// Benchmark large GET
|
|
380
|
+
const getStart = process.hrtime.bigint();
|
|
381
|
+
await this.adapter.get(`large-key-${size}-${i}`);
|
|
382
|
+
const getEnd = process.hrtime.bigint();
|
|
383
|
+
results.large_gets.push({
|
|
384
|
+
size,
|
|
385
|
+
time: Number(getEnd - getStart) / 1000000
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
this.results.tests[testName] = {
|
|
391
|
+
large_sets: this.groupBySize(results.large_sets),
|
|
392
|
+
large_gets: this.groupBySize(results.large_gets)
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
console.log(` โ
Large Data: Benchmark completed for up to 500KB`);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Benchmark TTL operations
|
|
400
|
+
*/
|
|
401
|
+
async benchmarkTtlOperations() {
|
|
402
|
+
console.log('โฐ Benchmarking TTL Operations...');
|
|
403
|
+
|
|
404
|
+
const testName = 'ttl_operations';
|
|
405
|
+
const results = {
|
|
406
|
+
set_with_ttl: [],
|
|
407
|
+
ttl_cleanup: []
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
// Benchmark SET with TTL
|
|
411
|
+
for (let i = 0; i < 100; i++) {
|
|
412
|
+
const ttl = Math.floor(Math.random() * 300) + 60; // 1-5 minutes
|
|
413
|
+
|
|
414
|
+
const start = process.hrtime.bigint();
|
|
415
|
+
await this.adapter.set(`ttl-key-${i}`, `value-${i}`, { ttl });
|
|
416
|
+
const end = process.hrtime.bigint();
|
|
417
|
+
|
|
418
|
+
results.set_with_ttl.push(Number(end - start) / 1000000);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// Wait for some entries to expire
|
|
422
|
+
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
423
|
+
|
|
424
|
+
// Benchmark TTL cleanup
|
|
425
|
+
const cleanupStart = process.hrtime.bigint();
|
|
426
|
+
await this.memoryManager.vacuum();
|
|
427
|
+
const cleanupEnd = process.hrtime.bigint();
|
|
428
|
+
results.ttl_cleanup.push(Number(cleanupEnd - cleanupStart) / 1000000);
|
|
429
|
+
|
|
430
|
+
this.results.tests[testName] = {
|
|
431
|
+
set_with_ttl: this.calculateStats(results.set_with_ttl),
|
|
432
|
+
ttl_cleanup: this.calculateStats(results.ttl_cleanup)
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
console.log(` โ
TTL: ${this.results.tests[testName].set_with_ttl.avg.toFixed(2)}ms avg SET`);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Benchmark namespace operations
|
|
440
|
+
*/
|
|
441
|
+
async benchmarkNamespaceOperations() {
|
|
442
|
+
console.log('๐ Benchmarking Namespace Operations...');
|
|
443
|
+
|
|
444
|
+
const testName = 'namespace_operations';
|
|
445
|
+
const results = {
|
|
446
|
+
namespace_sets: [],
|
|
447
|
+
namespace_gets: [],
|
|
448
|
+
namespace_clears: []
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
const namespaces = ['ns1', 'ns2', 'ns3', 'ns4', 'ns5'];
|
|
452
|
+
|
|
453
|
+
for (const ns of namespaces) {
|
|
454
|
+
const adapter = new MemoryStoreAdapter({
|
|
455
|
+
dbPath: this.options.testDbPath,
|
|
456
|
+
swarmId: 'benchmark-swarm',
|
|
457
|
+
namespace: ns
|
|
458
|
+
});
|
|
459
|
+
await adapter.initialize();
|
|
460
|
+
|
|
461
|
+
// Benchmark SET in namespace
|
|
462
|
+
const setStart = process.hrtime.bigint();
|
|
463
|
+
for (let i = 0; i < 50; i++) {
|
|
464
|
+
await adapter.set(`key-${i}`, `value-${i}`);
|
|
465
|
+
}
|
|
466
|
+
const setEnd = process.hrtime.bigint();
|
|
467
|
+
results.namespace_sets.push(Number(setEnd - setStart) / 1000000);
|
|
468
|
+
|
|
469
|
+
// Benchmark GET from namespace
|
|
470
|
+
const getStart = process.hrtime.bigint();
|
|
471
|
+
for (let i = 0; i < 50; i++) {
|
|
472
|
+
await adapter.get(`key-${i}`);
|
|
473
|
+
}
|
|
474
|
+
const getEnd = process.hrtime.bigint();
|
|
475
|
+
results.namespace_gets.push(Number(getEnd - getStart) / 1000000);
|
|
476
|
+
|
|
477
|
+
// Benchmark CLEAR namespace
|
|
478
|
+
const clearStart = process.hrtime.bigint();
|
|
479
|
+
await adapter.clear();
|
|
480
|
+
const clearEnd = process.hrtime.bigint();
|
|
481
|
+
results.namespace_clears.push(Number(clearEnd - clearStart) / 1000000);
|
|
482
|
+
|
|
483
|
+
await adapter.close();
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
this.results.tests[testName] = {
|
|
487
|
+
namespace_sets: this.calculateStats(results.namespace_sets),
|
|
488
|
+
namespace_gets: this.calculateStats(results.namespace_gets),
|
|
489
|
+
namespace_clears: this.calculateStats(results.namespace_clears)
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
console.log(` โ
Namespace: ${this.results.tests[testName].namespace_sets.avg.toFixed(2)}ms avg SET`);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Benchmark backup and restore operations
|
|
497
|
+
*/
|
|
498
|
+
async benchmarkBackupAndRestore() {
|
|
499
|
+
console.log('๐พ Benchmarking Backup and Restore...');
|
|
500
|
+
|
|
501
|
+
const testName = 'backup_restore';
|
|
502
|
+
const results = {
|
|
503
|
+
backup: [],
|
|
504
|
+
restore: []
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
// Populate with test data
|
|
508
|
+
for (let i = 0; i < 100; i++) {
|
|
509
|
+
await this.adapter.set(`backup-key-${i}`, `backup-value-${i}`);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// Benchmark backup
|
|
513
|
+
const backupPath = path.join(this.options.outputDir, 'benchmark-backup.db');
|
|
514
|
+
const backupStart = process.hrtime.bigint();
|
|
515
|
+
await this.adapter.backup(backupPath);
|
|
516
|
+
const backupEnd = process.hrtime.bigint();
|
|
517
|
+
results.backup.push(Number(backupEnd - backupStart) / 1000000);
|
|
518
|
+
|
|
519
|
+
// Clear current data
|
|
520
|
+
await this.adapter.clear({ clearAll: true });
|
|
521
|
+
|
|
522
|
+
// Benchmark restore (create new adapter with backup)
|
|
523
|
+
const restoreStart = process.hrtime.bigint();
|
|
524
|
+
const restoreAdapter = new MemoryStoreAdapter({
|
|
525
|
+
dbPath: backupPath,
|
|
526
|
+
swarmId: 'benchmark-swarm',
|
|
527
|
+
namespace: 'benchmark-test'
|
|
528
|
+
});
|
|
529
|
+
await restoreAdapter.initialize();
|
|
530
|
+
const restoreEnd = process.hrtime.bigint();
|
|
531
|
+
results.restore.push(Number(restoreEnd - restoreStart) / 1000000);
|
|
532
|
+
|
|
533
|
+
// Verify restore worked
|
|
534
|
+
const restoredValue = await restoreAdapter.get('backup-key-50');
|
|
535
|
+
if (restoredValue !== 'backup-value-50') {
|
|
536
|
+
throw new Error('Restore verification failed');
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
await restoreAdapter.close();
|
|
540
|
+
|
|
541
|
+
// Cleanup backup file
|
|
542
|
+
try {
|
|
543
|
+
fs.unlinkSync(backupPath);
|
|
544
|
+
} catch (error) {
|
|
545
|
+
// Ignore cleanup errors
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
this.results.tests[testName] = {
|
|
549
|
+
backup: this.calculateStats(results.backup),
|
|
550
|
+
restore: this.calculateStats(results.restore)
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
console.log(` โ
Backup/Restore: ${this.results.tests[testName].backup.avg.toFixed(2)}ms avg backup`);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Benchmark optimization operations
|
|
558
|
+
*/
|
|
559
|
+
async benchmarkOptimizationOperations() {
|
|
560
|
+
console.log('โก Benchmarking Optimization Operations...');
|
|
561
|
+
|
|
562
|
+
const testName = 'optimization_operations';
|
|
563
|
+
const results = {
|
|
564
|
+
vacuum: [],
|
|
565
|
+
analyze: [],
|
|
566
|
+
cache_clear: []
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
// Populate with data to optimize
|
|
570
|
+
for (let i = 0; i < 500; i++) {
|
|
571
|
+
await this.adapter.set(`opt-key-${i}`, `opt-value-${i}`);
|
|
572
|
+
if (i % 10 === 0) {
|
|
573
|
+
await this.adapter.delete(`opt-key-${i-10}`);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// Benchmark VACUUM
|
|
578
|
+
const vacuumStart = process.hrtime.bigint();
|
|
579
|
+
await this.memoryManager.vacuum();
|
|
580
|
+
const vacuumEnd = process.hrtime.bigint();
|
|
581
|
+
results.vacuum.push(Number(vacuumEnd - vacuumStart) / 1000000);
|
|
582
|
+
|
|
583
|
+
// Benchmark ANALYZE
|
|
584
|
+
const analyzeStart = process.hrtime.bigint();
|
|
585
|
+
await this.memoryManager.analyze();
|
|
586
|
+
const analyzeEnd = process.hrtime.bigint();
|
|
587
|
+
results.analyze.push(Number(analyzeEnd - analyzeStart) / 1000000);
|
|
588
|
+
|
|
589
|
+
// Benchmark ACL cache clear
|
|
590
|
+
const cacheStart = process.hrtime.bigint();
|
|
591
|
+
this.memoryManager.clearACLCache();
|
|
592
|
+
const cacheEnd = process.hrtime.bigint();
|
|
593
|
+
results.cache_clear.push(Number(cacheEnd - cacheStart) / 1000000);
|
|
594
|
+
|
|
595
|
+
this.results.tests[testName] = {
|
|
596
|
+
vacuum: this.calculateStats(results.vacuum),
|
|
597
|
+
analyze: this.calculateStats(results.analyze),
|
|
598
|
+
cache_clear: this.calculateStats(results.cache_clear)
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
console.log(` โ
Optimization: ${this.results.tests[testName].vacuum.avg.toFixed(2)}ms avg VACUUM`);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Generate test data
|
|
606
|
+
*/
|
|
607
|
+
generateTestData(count) {
|
|
608
|
+
const data = [];
|
|
609
|
+
for (let i = 0; i < count; i++) {
|
|
610
|
+
data.push(`test-data-${i}-${Math.random().toString(36).substring(7)}`.repeat(10));
|
|
611
|
+
}
|
|
612
|
+
return data;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Generate large test data
|
|
617
|
+
*/
|
|
618
|
+
generateLargeTestData(count, size) {
|
|
619
|
+
const data = [];
|
|
620
|
+
for (let i = 0; i < count; i++) {
|
|
621
|
+
let str = `large-data-${i}-`;
|
|
622
|
+
while (Buffer.byteLength(str, 'utf8') < size) {
|
|
623
|
+
str += Math.random().toString(36).substring(7);
|
|
624
|
+
}
|
|
625
|
+
data.push(str.substring(0, size));
|
|
626
|
+
}
|
|
627
|
+
return data;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Calculate statistics from array of numbers
|
|
632
|
+
*/
|
|
633
|
+
calculateStats(values) {
|
|
634
|
+
if (values.length === 0) return {};
|
|
635
|
+
|
|
636
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
637
|
+
const sum = values.reduce((a, b) => a + b, 0);
|
|
638
|
+
|
|
639
|
+
return {
|
|
640
|
+
min: sorted[0],
|
|
641
|
+
max: sorted[sorted.length - 1],
|
|
642
|
+
avg: sum / values.length,
|
|
643
|
+
median: sorted[Math.floor(sorted.length / 2)],
|
|
644
|
+
p95: sorted[Math.floor(sorted.length * 0.95)],
|
|
645
|
+
p99: sorted[Math.floor(sorted.length * 0.99)],
|
|
646
|
+
ops: values.length
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Group results by data size
|
|
652
|
+
*/
|
|
653
|
+
groupBySize(results) {
|
|
654
|
+
const grouped = {};
|
|
655
|
+
results.forEach(result => {
|
|
656
|
+
if (!grouped[result.size]) {
|
|
657
|
+
grouped[result.size] = [];
|
|
658
|
+
}
|
|
659
|
+
grouped[result.size].push(result.time);
|
|
660
|
+
});
|
|
661
|
+
|
|
662
|
+
const stats = {};
|
|
663
|
+
Object.keys(grouped).forEach(size => {
|
|
664
|
+
stats[size] = this.calculateStats(grouped[size]);
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
return stats;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Run concurrent SET operations
|
|
672
|
+
*/
|
|
673
|
+
async runConcurrentSets(workerId, count, results) {
|
|
674
|
+
for (let i = 0; i < count; i++) {
|
|
675
|
+
const key = `concurrent-set-${workerId}-${i}`;
|
|
676
|
+
const value = `value-${Math.random()}`;
|
|
677
|
+
|
|
678
|
+
const start = process.hrtime.bigint();
|
|
679
|
+
await this.adapter.set(key, value);
|
|
680
|
+
const end = process.hrtime.bigint();
|
|
681
|
+
|
|
682
|
+
results.concurrent_sets.push(Number(end - start) / 1000000);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Run concurrent GET operations
|
|
688
|
+
*/
|
|
689
|
+
async runConcurrentGets(workerId, count, results) {
|
|
690
|
+
for (let i = 0; i < count; i++) {
|
|
691
|
+
const key = `concurrent-set-${workerId}-${i}`;
|
|
692
|
+
|
|
693
|
+
const start = process.hrtime.bigint();
|
|
694
|
+
await this.adapter.get(key);
|
|
695
|
+
const end = process.hrtime.bigint();
|
|
696
|
+
|
|
697
|
+
results.concurrent_gets.push(Number(end - start) / 1000000);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Generate performance summary
|
|
703
|
+
*/
|
|
704
|
+
generateSummary() {
|
|
705
|
+
console.log('๐ Generating Performance Summary...');
|
|
706
|
+
|
|
707
|
+
this.results.summary = {
|
|
708
|
+
totalTests: Object.keys(this.results.tests).length,
|
|
709
|
+
keyMetrics: {}
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
// Extract key metrics
|
|
713
|
+
if (this.results.tests.basic_operations) {
|
|
714
|
+
this.results.summary.keyMetrics.avgSetTime = this.results.tests.basic_operations.set.avg;
|
|
715
|
+
this.results.summary.keyMetrics.avgGetTime = this.results.tests.basic_operations.get.avg;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
if (this.results.tests.concurrent_operations) {
|
|
719
|
+
this.results.summary.keyMetrics.maxSetOpsPerSec = this.results.tests.concurrent_operations.concurrent_sets.opsPerSecond;
|
|
720
|
+
this.results.summary.keyMetrics.maxGetOpsPerSec = this.results.tests.concurrent_operations.concurrent_gets.opsPerSecond;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
if (this.results.tests.acl_performance) {
|
|
724
|
+
this.results.summary.keyMetrics.aclCheckTime = this.results.tests.acl_performance.acl_checks.avg;
|
|
725
|
+
this.results.summary.keyMetrics.aclCacheHitRate = this.results.tests.acl_performance.cache_hit_rate;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
if (this.results.tests.encryption_performance) {
|
|
729
|
+
this.results.summary.keyMetrics.encryptionTime = this.results.tests.encryption_performance.encrypt.avg;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (this.results.tests.compression_performance) {
|
|
733
|
+
this.results.summary.keyMetrics.compressionTime = this.results.tests.compression_performance.compress.avg;
|
|
734
|
+
this.results.summary.keyMetrics.compressionRatio = this.results.tests.compression_performance.compression_ratio.avg;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
console.log('โ
Performance summary generated');
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Save benchmark results
|
|
742
|
+
*/
|
|
743
|
+
async saveResults() {
|
|
744
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
745
|
+
const resultsFile = path.join(this.options.outputDir, `performance-benchmarks-${timestamp}.json`);
|
|
746
|
+
|
|
747
|
+
fs.writeFileSync(resultsFile, JSON.stringify(this.results, null, 2));
|
|
748
|
+
|
|
749
|
+
// Generate HTML report
|
|
750
|
+
const htmlFile = path.join(this.options.outputDir, `performance-report-${timestamp}.html`);
|
|
751
|
+
this.generateHtmlReport(htmlFile);
|
|
752
|
+
|
|
753
|
+
console.log(`๐พ Results saved to: ${resultsFile}`);
|
|
754
|
+
console.log(`๐ HTML report: ${htmlFile}`);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Generate HTML performance report
|
|
759
|
+
*/
|
|
760
|
+
generateHtmlReport(outputFile) {
|
|
761
|
+
const html = `
|
|
762
|
+
<!DOCTYPE html>
|
|
763
|
+
<html>
|
|
764
|
+
<head>
|
|
765
|
+
<title>SQLite Memory Management Performance Report</title>
|
|
766
|
+
<style>
|
|
767
|
+
body { font-family: Arial, sans-serif; margin: 20px; }
|
|
768
|
+
.header { background: #f5f5f5; padding: 20px; border-radius: 5px; }
|
|
769
|
+
.summary { margin: 20px 0; }
|
|
770
|
+
.test-section { margin: 30px 0; border: 1px solid #ddd; border-radius: 5px; padding: 20px; }
|
|
771
|
+
.metric { display: inline-block; margin: 10px; padding: 10px; background: #f9f9f9; border-radius: 3px; }
|
|
772
|
+
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
|
|
773
|
+
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
|
|
774
|
+
th { background: #f5f5f5; }
|
|
775
|
+
.metric-value { font-weight: bold; color: #2196F3; }
|
|
776
|
+
</style>
|
|
777
|
+
</head>
|
|
778
|
+
<body>
|
|
779
|
+
<div class="header">
|
|
780
|
+
<h1>SQLite Memory Management Performance Report</h1>
|
|
781
|
+
<p>Generated: ${this.results.timestamp}</p>
|
|
782
|
+
<p>Test Configuration: ${JSON.stringify(this.results.configuration, null, 2)}</p>
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
<div class="summary">
|
|
786
|
+
<h2>Summary</h2>
|
|
787
|
+
<div class="metric">
|
|
788
|
+
<span class="metric-label">Total Tests:</span>
|
|
789
|
+
<span class="metric-value">${this.results.summary.totalTests}</span>
|
|
790
|
+
</div>
|
|
791
|
+
<div class="metric">
|
|
792
|
+
<span class="metric-label">Avg SET Time:</span>
|
|
793
|
+
<span class="metric-value">${(this.results.summary.keyMetrics.avgSetTime || 0).toFixed(2)}ms</span>
|
|
794
|
+
</div>
|
|
795
|
+
<div class="metric">
|
|
796
|
+
<span class="metric-label">Avg GET Time:</span>
|
|
797
|
+
<span class="metric-value">${(this.results.summary.keyMetrics.avgGetTime || 0).toFixed(2)}ms</span>
|
|
798
|
+
</div>
|
|
799
|
+
<div class="metric">
|
|
800
|
+
<span class="metric-label">Max SET Ops/sec:</span>
|
|
801
|
+
<span class="metric-value">${(this.results.summary.keyMetrics.maxSetOpsPerSec || 0).toFixed(0)}</span>
|
|
802
|
+
</div>
|
|
803
|
+
<div class="metric">
|
|
804
|
+
<span class="metric-label">Max GET Ops/sec:</span>
|
|
805
|
+
<span class="metric-value">${(this.results.summary.keyMetrics.maxGetOpsPerSec || 0).toFixed(0)}</span>
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
|
|
809
|
+
${Object.entries(this.results.tests).map(([testName, testResults]) => `
|
|
810
|
+
<div class="test-section">
|
|
811
|
+
<h3>${testName.replace(/_/g, ' ').toUpperCase()}</h3>
|
|
812
|
+
<pre>${JSON.stringify(testResults, null, 2)}</pre>
|
|
813
|
+
</div>
|
|
814
|
+
`).join('')}
|
|
815
|
+
</body>
|
|
816
|
+
</html>`;
|
|
817
|
+
|
|
818
|
+
fs.writeFileSync(outputFile, html);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Cleanup benchmark environment
|
|
823
|
+
*/
|
|
824
|
+
async cleanup() {
|
|
825
|
+
console.log('๐งน Cleaning up benchmark environment...');
|
|
826
|
+
|
|
827
|
+
if (this.adapter) {
|
|
828
|
+
await this.adapter.close();
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
if (this.memoryManager) {
|
|
832
|
+
await this.memoryManager.close();
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
console.log('โ
Cleanup completed');
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
module.exports = PerformanceBenchmarks;
|