claude-flow-novice 2.15.11 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/.claude/commands/cfn-loop-cli.md +158 -464
- package/.claude/commands/cfn-loop-trigger.md +114 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +22 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/.claude/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/.claude/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/.claude/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/.claude/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/.claude/skills/{cfn-redis-coordination/check-dependencies.sh → cfn-agent-spawning/check-dependencies.sh.backup} +3 -5
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/.claude/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/.claude/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/.claude/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/.claude/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/.claude/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/{claude-assets/skills/cfn-loop-orchestration → .claude/skills/cfn-loop-orchestration/archive/legacy-bash}/orchestrate-wrapper.sh +11 -1
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/.claude/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/.claude/skills/cfn-loop-orchestration/package.json +4 -0
- package/.claude/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/.claude/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/.claude/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/.claude/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/.claude/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/.claude/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/.claude/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/.claude/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/.claude/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/.claude/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/.claude/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/.claude/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/.claude/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/.claude/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/.claude/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/.claude/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/.claude/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/.claude/skills/cfn-loop-validation/INDEX.md +531 -0
- package/.claude/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/.claude/skills/cfn-loop-validation/SKILL.md +48 -1
- package/.claude/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/.claude/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/.claude/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/.claude/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/{claude-assets/skills/cfn-redis-coordination/check-dependencies.sh → .claude/skills/cfn-loop-validation/check-dependencies.sh.backup} +4 -5
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js +66 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/.claude/skills/cfn-loop-validation/package.json +93 -0
- package/.claude/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/.claude/skills/cfn-loop-validation/src/types.ts +215 -0
- package/.claude/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/.claude/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/.claude/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/.claude/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/.claude/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/{claude-assets/skills/cfn-product-owner-decision → .claude/skills/cfn-product-owner-decision/archive/legacy-bash}/execute-decision.sh +24 -2
- package/.claude/skills/pre-edit-backup/SKILL.md +324 -0
- package/.claude/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/.claude/skills/pre-edit-backup/backup.sh +22 -0
- package/.claude/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +10 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +56 -33
- package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +46 -36
- package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +9 -0
- package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +17 -17
- package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +40 -58
- package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +18 -20
- package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +19 -28
- package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +15 -19
- package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +15 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +15 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +15 -25
- package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +17 -21
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +17 -21
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +1 -5
- package/claude-assets/agents/cfn-dev-team/reviewers/code-reviewer.md +20 -51
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +22 -71
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +21 -64
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +22 -67
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +23 -67
- package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +7 -35
- package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +8 -37
- package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +16 -54
- package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +17 -55
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +9 -37
- package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +17 -55
- package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +17 -48
- package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +8 -37
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +7 -27
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +12 -28
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +13 -13
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -2
- package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +5 -10
- package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +120 -714
- package/claude-assets/agents/cfn-dev-team/utility/researcher.md +12 -21
- package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +146 -572
- package/claude-assets/agents/custom/cfn-docker-expert.md +102 -0
- package/claude-assets/agents/custom/cfn-loops-cli-expert.md +129 -0
- package/claude-assets/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/claude-assets/commands/cfn-loop-cli.md +158 -464
- package/claude-assets/commands/cfn-loop-trigger.md +114 -0
- package/claude-assets/hooks/SKILL.md +518 -0
- package/claude-assets/hooks/SKILL.md.backup +471 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +22 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/DELIVERABLES.md +409 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/IMPLEMENTATION_SUMMARY.md +396 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/INTEGRATION_GUIDE.md +308 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/QUICK_REFERENCE.md +239 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md +107 -1
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md.backup +302 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/TYPESCRIPT_MIGRATION.md +295 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.cjs +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.js +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.cjs +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.js +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh +45 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh.backup +23 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh.backup +173 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.test.ts +357 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.ts +350 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/cli.ts +74 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh.backup +71 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/tsconfig.json +18 -0
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/claude-assets/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh.backup +30 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/claude-assets/skills/cfn-coordination/agent-completion.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-signal.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-wait.sh.backup +36 -0
- package/claude-assets/skills/cfn-dependency-ingestion/README.md +101 -0
- package/claude-assets/skills/cfn-dependency-ingestion/SKILL.md +369 -0
- package/claude-assets/skills/cfn-dependency-ingestion/build.sh +23 -0
- package/claude-assets/skills/cfn-dependency-ingestion/dist/ingest-dependencies.js +478 -0
- package/claude-assets/skills/cfn-dependency-ingestion/ingest-dependencies.sh +295 -0
- package/claude-assets/skills/cfn-dependency-ingestion/src/ingest-dependencies.ts +563 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/claude-assets/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/claude-assets/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/claude-assets/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/claude-assets/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/{.claude/skills/cfn-loop-orchestration → claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash}/orchestrate-wrapper.sh +11 -1
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/claude-assets/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/claude-assets/skills/cfn-loop-orchestration/package.json +4 -0
- package/claude-assets/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/claude-assets/skills/cfn-loop-output-processing/.eslintrc.json +33 -0
- package/claude-assets/skills/cfn-loop-output-processing/DELIVERY_SUMMARY.txt +462 -0
- package/claude-assets/skills/cfn-loop-output-processing/DEPRECATION_NOTICE.md +183 -0
- package/claude-assets/skills/cfn-loop-output-processing/EXAMPLES.md +609 -0
- package/claude-assets/skills/cfn-loop-output-processing/IMPLEMENTATION_SUMMARY.md +418 -0
- package/claude-assets/skills/cfn-loop-output-processing/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-output-processing/MIGRATION.md +362 -0
- package/claude-assets/skills/cfn-loop-output-processing/README.md +114 -0
- package/claude-assets/skills/cfn-loop-output-processing/SKILL.md +633 -0
- package/{.claude/skills/cfn-docker-redis-coordination → claude-assets/skills/cfn-loop-output-processing}/jest.config.js +7 -15
- package/claude-assets/skills/cfn-loop-output-processing/package.json +50 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop2.ts +195 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop3.ts +157 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/output-processor.ts +632 -0
- package/claude-assets/skills/cfn-loop-output-processing/tests/output-processor.test.ts +617 -0
- package/claude-assets/skills/{cfn-docker-redis-coordination → cfn-loop-output-processing}/tsconfig.json +16 -7
- package/claude-assets/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/claude-assets/skills/cfn-loop-validation/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL.md +48 -1
- package/claude-assets/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/claude-assets/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh.backup +31 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js +66 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/claude-assets/skills/cfn-loop-validation/package.json +93 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/claude-assets/skills/cfn-loop-validation/src/types.ts +215 -0
- package/claude-assets/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/claude-assets/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/claude-assets/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/claude-assets/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/claude-assets/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/{.claude/skills/cfn-product-owner-decision → claude-assets/skills/cfn-product-owner-decision/archive/legacy-bash}/execute-decision.sh +24 -2
- package/claude-assets/skills/cfn-provider-routing/README.md +129 -0
- package/claude-assets/skills/cfn-provider-routing/SKILL.md +192 -0
- package/claude-assets/skills/cfn-provider-routing/resolve-provider-model.ts +223 -0
- package/claude-assets/skills/pre-edit-backup/SKILL.md +324 -0
- package/claude-assets/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh +22 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/dist/agents/agent-loader.js +146 -165
- package/dist/agents/agent-loader.js.map +1 -1
- package/dist/api/auth-endpoints.js +415 -0
- package/dist/api/auth-endpoints.js.map +1 -0
- package/dist/api/task-endpoints.js +562 -0
- package/dist/api/task-endpoints.js.map +1 -0
- package/dist/backend/server.js +418 -0
- package/dist/backend/server.js.map +1 -0
- package/dist/cfn-loop/product-owner/decision-parser.js +356 -0
- package/dist/cfn-loop/product-owner/decision-parser.js.map +1 -0
- package/dist/cfn-loop/product-owner/index.js +1 -0
- package/dist/cfn-loop/product-owner/index.js.map +1 -1
- package/dist/cli/agent-command.js +1 -1
- package/dist/cli/agent-command.js.map +1 -1
- package/dist/cli/agent-completion.js +273 -0
- package/dist/cli/agent-completion.js.map +1 -0
- package/dist/cli/agent-prompt-builder.js +83 -48
- package/dist/cli/agent-prompt-builder.js.map +1 -1
- package/dist/cli/agent-spawner.js +499 -0
- package/dist/cli/agent-spawner.js.map +1 -0
- package/dist/cli/anthropic-client.js +10 -3
- package/dist/cli/anthropic-client.js.map +1 -1
- package/dist/cli/config-manager.js +91 -109
- package/dist/cli/index.js +11 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/parse-decision-cli.js +268 -0
- package/dist/cli/parse-decision-cli.js.map +1 -0
- package/dist/cli/post-edit-hook.js +83 -0
- package/dist/cli/post-edit-hook.js.map +1 -0
- package/dist/cli/pre-edit-hook.js +77 -0
- package/dist/cli/pre-edit-hook.js.map +1 -0
- package/dist/cli/spawn-agent-cli.js +209 -0
- package/dist/cli/spawn-agent-cli.js.map +1 -0
- package/dist/coordination/coordination-wrapper.js +383 -0
- package/dist/coordination/coordination-wrapper.js.map +1 -0
- package/dist/coordination/store-success-criteria.js +68 -0
- package/dist/coordination/store-success-criteria.js.map +1 -0
- package/dist/coordination/store-task-context.js +65 -0
- package/dist/coordination/store-task-context.js.map +1 -0
- package/dist/hooks/backup-manager.js +273 -0
- package/dist/hooks/backup-manager.js.map +1 -0
- package/dist/hooks/post-edit-validator.js +388 -0
- package/dist/hooks/post-edit-validator.js.map +1 -0
- package/dist/integration/index.js +19 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/task-mode-adapter.js +297 -0
- package/dist/integration/task-mode-adapter.js.map +1 -0
- package/dist/integration/trigger-dev-client.js +253 -0
- package/dist/integration/trigger-dev-client.js.map +1 -0
- package/dist/integration/trigger-dev-webhooks.js +362 -0
- package/dist/integration/trigger-dev-webhooks.js.map +1 -0
- package/dist/lib/path-validator.js +14 -5
- package/dist/lib/path-validator.js.map +1 -1
- package/dist/lib/redis-queue-manager.js +5 -1
- package/dist/lib/redis-queue-manager.js.map +1 -1
- package/dist/middleware/authentication.js +317 -0
- package/dist/middleware/authentication.js.map +1 -0
- package/dist/services/authentication.js +669 -0
- package/dist/services/authentication.js.map +1 -0
- package/dist/services/session-management.js +436 -0
- package/dist/services/session-management.js.map +1 -0
- package/dist/services/skill-deployment.js +8 -6
- package/dist/services/skill-deployment.js.map +1 -1
- package/dist/services/user-service.js +710 -0
- package/dist/services/user-service.js.map +1 -0
- package/dist/types/trigger-dev-events.d.js +10 -0
- package/dist/types/trigger-dev-events.d.js.map +1 -0
- package/docs/README.md +240 -0
- package/package.json +13 -4
- package/scripts/compare-workflow-performance.sh +556 -0
- package/scripts/migrate-to-optimized-workflows.sh +438 -0
- package/scripts/organize-docs.sh +338 -0
- package/scripts/trigger-dev-setup.sh +267 -0
- package/.claude/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/.claude/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/.claude/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/.claude/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/.claude/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/.claude/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/.claude/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/.claude/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/.claude/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/.claude/skills/cfn-docker-redis-coordination/tsconfig.json +0 -30
- package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/.claude/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/.claude/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/.claude/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/.claude/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/.claude/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/.claude/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/.claude/skills/cfn-redis-coordination/config.json +0 -61
- package/.claude/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/.claude/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/.claude/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/.claude/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/.claude/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/.claude/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/.claude/skills/cfn-redis-coordination/package.json +0 -45
- package/.claude/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/.claude/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/.claude/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/.claude/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/.claude/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/.claude/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/.claude/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/.claude/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/.claude/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/.claude/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/.claude/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/.claude/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/.claude/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/.claude/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/.claude/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/.claude/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/.claude/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/.claude/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/.claude/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/.claude/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +0 -980
- package/claude-assets/agents/typescript-specialist.md +0 -280
- package/claude-assets/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/claude-assets/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/claude-assets/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/claude-assets/skills/cfn-docker-redis-coordination/jest.config.js +0 -37
- package/claude-assets/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/claude-assets/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/claude-assets/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/claude-assets/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/claude-assets/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/claude-assets/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/claude-assets/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/claude-assets/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/claude-assets/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/claude-assets/skills/cfn-redis-cleanup/cleanup-redis.sh +0 -130
- package/claude-assets/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/claude-assets/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/claude-assets/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/claude-assets/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/claude-assets/skills/cfn-redis-coordination/config.json +0 -61
- package/claude-assets/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/claude-assets/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/claude-assets/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/claude-assets/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/claude-assets/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/claude-assets/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/claude-assets/skills/cfn-redis-coordination/package.json +0 -45
- package/claude-assets/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/claude-assets/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/claude-assets/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/claude-assets/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/claude-assets/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/claude-assets/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/claude-assets/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/claude-assets/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/claude-assets/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/claude-assets/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/claude-assets/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/claude-assets/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/claude-assets/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/claude-assets/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/claude-assets/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/claude-assets/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/claude-assets/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/claude-assets/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/claude-assets/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/claude-assets/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/skills/cfn-redis-data-extraction/SKILL.md +0 -442
- package/claude-assets/skills/cfn-redis-data-extraction/extract.sh +0 -306
- package/dist/coordination/index.js +0 -25
- package/dist/coordination/index.js.map +0 -1
- package/docs/BUG_19_MEMORY_LEAK_TASK_MODE.md +0 -405
- package/docs/MEMORY_CLEANUP_GUIDE.md +0 -358
- package/docs/MEMORY_LEAK_FIX_SUMMARY.md +0 -322
- package/docs/REDIS_CLEANUP_EXECUTIVE_SUMMARY.md +0 -319
- package/docs/REDIS_CLEANUP_VERIFICATION_REPORT.md +0 -574
- /package/.claude/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/.claude/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for redis-coordinator module
|
|
3
|
+
* Validates Redis coordination implementation
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { RedisCoordinator } from '../src/redis/redis-coordinator';
|
|
7
|
+
|
|
8
|
+
describe('redis-coordinator', () => {
|
|
9
|
+
let coordinator: RedisCoordinator;
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
coordinator = new RedisCoordinator();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe('connect', () => {
|
|
16
|
+
it('should connect to Redis', async () => {
|
|
17
|
+
await expect(coordinator.connect()).resolves.toBeUndefined();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should not throw on connect', async () => {
|
|
21
|
+
await expect(coordinator.connect()).resolves.not.toThrow();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
describe('disconnect', () => {
|
|
26
|
+
it('should disconnect from Redis', async () => {
|
|
27
|
+
await expect(coordinator.disconnect()).resolves.toBeUndefined();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should not throw on disconnect', async () => {
|
|
31
|
+
await expect(coordinator.disconnect()).resolves.not.toThrow();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('should allow disconnect without connect', async () => {
|
|
35
|
+
const newCoordinator = new RedisCoordinator();
|
|
36
|
+
await expect(newCoordinator.disconnect()).resolves.not.toThrow();
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
describe('lpush', () => {
|
|
41
|
+
it('should push message to queue', async () => {
|
|
42
|
+
const result = await coordinator.lpush('test-queue', 'test-message');
|
|
43
|
+
|
|
44
|
+
expect(result).toBe(0);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('should accept any queue name', async () => {
|
|
48
|
+
await expect(coordinator.lpush('queue1', 'msg1')).resolves.toBe(0);
|
|
49
|
+
await expect(coordinator.lpush('queue2', 'msg2')).resolves.toBe(0);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it('should accept any message', async () => {
|
|
53
|
+
await expect(coordinator.lpush('queue', 'simple')).resolves.toBe(0);
|
|
54
|
+
await expect(coordinator.lpush('queue', JSON.stringify({ key: 'value' }))).resolves.toBe(0);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should handle empty message', async () => {
|
|
58
|
+
await expect(coordinator.lpush('queue', '')).resolves.toBe(0);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('should handle empty queue name', async () => {
|
|
62
|
+
await expect(coordinator.lpush('', 'message')).resolves.toBe(0);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('should return number type', async () => {
|
|
66
|
+
const result = await coordinator.lpush('queue', 'message');
|
|
67
|
+
expect(typeof result).toBe('number');
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
describe('blpop', () => {
|
|
72
|
+
it('should return null for blocking pop', async () => {
|
|
73
|
+
const result = await coordinator.blpop('test-queue', 1);
|
|
74
|
+
|
|
75
|
+
expect(result).toBeNull();
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it('should accept any queue name', async () => {
|
|
79
|
+
await expect(coordinator.blpop('queue1', 1)).resolves.toBeNull();
|
|
80
|
+
await expect(coordinator.blpop('queue2', 1)).resolves.toBeNull();
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('should accept any timeout value', async () => {
|
|
84
|
+
await expect(coordinator.blpop('queue', 0)).resolves.toBeNull();
|
|
85
|
+
await expect(coordinator.blpop('queue', 10)).resolves.toBeNull();
|
|
86
|
+
await expect(coordinator.blpop('queue', 1000)).resolves.toBeNull();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('should handle negative timeout', async () => {
|
|
90
|
+
await expect(coordinator.blpop('queue', -1)).resolves.toBeNull();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('should return null or tuple type', async () => {
|
|
94
|
+
const result = await coordinator.blpop('queue', 1);
|
|
95
|
+
expect(result === null || Array.isArray(result)).toBe(true);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
describe('hGetAll', () => {
|
|
100
|
+
it('should return empty object', async () => {
|
|
101
|
+
const result = await coordinator.hGetAll('test-key');
|
|
102
|
+
|
|
103
|
+
expect(result).toEqual({});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it('should accept any key name', async () => {
|
|
107
|
+
await expect(coordinator.hGetAll('key1')).resolves.toEqual({});
|
|
108
|
+
await expect(coordinator.hGetAll('key2')).resolves.toEqual({});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it('should handle empty key', async () => {
|
|
112
|
+
await expect(coordinator.hGetAll('')).resolves.toEqual({});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it('should handle special characters in key', async () => {
|
|
116
|
+
await expect(coordinator.hGetAll('key:with:colons')).resolves.toEqual({});
|
|
117
|
+
await expect(coordinator.hGetAll('key_with_underscores')).resolves.toEqual({});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it('should return object type', async () => {
|
|
121
|
+
const result = await coordinator.hGetAll('key');
|
|
122
|
+
expect(typeof result).toBe('object');
|
|
123
|
+
expect(Array.isArray(result)).toBe(false);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
describe('set', () => {
|
|
128
|
+
it('should set key-value pair', async () => {
|
|
129
|
+
const result = await coordinator.set('test-key', 'test-value');
|
|
130
|
+
|
|
131
|
+
expect(result).toBe('OK');
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
it('should accept any key', async () => {
|
|
135
|
+
await expect(coordinator.set('key1', 'value1')).resolves.toBe('OK');
|
|
136
|
+
await expect(coordinator.set('key2', 'value2')).resolves.toBe('OK');
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('should accept any value', async () => {
|
|
140
|
+
await expect(coordinator.set('key', 'simple')).resolves.toBe('OK');
|
|
141
|
+
await expect(coordinator.set('key', JSON.stringify({ data: 123 }))).resolves.toBe('OK');
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
it('should handle empty key', async () => {
|
|
145
|
+
await expect(coordinator.set('', 'value')).resolves.toBe('OK');
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('should handle empty value', async () => {
|
|
149
|
+
await expect(coordinator.set('key', '')).resolves.toBe('OK');
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
it('should return string type', async () => {
|
|
153
|
+
const result = await coordinator.set('key', 'value');
|
|
154
|
+
expect(typeof result).toBe('string');
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
describe('get', () => {
|
|
159
|
+
it('should return null for get', async () => {
|
|
160
|
+
const result = await coordinator.get('test-key');
|
|
161
|
+
|
|
162
|
+
expect(result).toBeNull();
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
it('should accept any key', async () => {
|
|
166
|
+
await expect(coordinator.get('key1')).resolves.toBeNull();
|
|
167
|
+
await expect(coordinator.get('key2')).resolves.toBeNull();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it('should handle empty key', async () => {
|
|
171
|
+
await expect(coordinator.get('')).resolves.toBeNull();
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
it('should return null or string type', async () => {
|
|
175
|
+
const result = await coordinator.get('key');
|
|
176
|
+
expect(result === null || typeof result === 'string').toBe(true);
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
describe('sMembers', () => {
|
|
181
|
+
it('should return empty array', async () => {
|
|
182
|
+
const result = await coordinator.sMembers('test-set');
|
|
183
|
+
|
|
184
|
+
expect(result).toEqual([]);
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
it('should accept any key', async () => {
|
|
188
|
+
await expect(coordinator.sMembers('set1')).resolves.toEqual([]);
|
|
189
|
+
await expect(coordinator.sMembers('set2')).resolves.toEqual([]);
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
it('should handle empty key', async () => {
|
|
193
|
+
await expect(coordinator.sMembers('')).resolves.toEqual([]);
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
it('should return array type', async () => {
|
|
197
|
+
const result = await coordinator.sMembers('set');
|
|
198
|
+
expect(Array.isArray(result)).toBe(true);
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
describe('del', () => {
|
|
203
|
+
it('should delete key', async () => {
|
|
204
|
+
const result = await coordinator.del('test-key');
|
|
205
|
+
|
|
206
|
+
expect(result).toBe(0);
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
it('should accept any key', async () => {
|
|
210
|
+
await expect(coordinator.del('key1')).resolves.toBe(0);
|
|
211
|
+
await expect(coordinator.del('key2')).resolves.toBe(0);
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
it('should handle empty key', async () => {
|
|
215
|
+
await expect(coordinator.del('')).resolves.toBe(0);
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
it('should return number type', async () => {
|
|
219
|
+
const result = await coordinator.del('key');
|
|
220
|
+
expect(typeof result).toBe('number');
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
describe('method chaining', () => {
|
|
225
|
+
it('should allow sequential operations', async () => {
|
|
226
|
+
await coordinator.connect();
|
|
227
|
+
await coordinator.set('key', 'value');
|
|
228
|
+
const result = await coordinator.get('key');
|
|
229
|
+
await coordinator.del('key');
|
|
230
|
+
await coordinator.disconnect();
|
|
231
|
+
|
|
232
|
+
expect(result).toBeNull();
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it('should allow operations without connect', async () => {
|
|
236
|
+
const newCoordinator = new RedisCoordinator();
|
|
237
|
+
|
|
238
|
+
await expect(newCoordinator.set('key', 'value')).resolves.toBe('OK');
|
|
239
|
+
await expect(newCoordinator.get('key')).resolves.toBeNull();
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
it('should allow operations after disconnect', async () => {
|
|
243
|
+
await coordinator.connect();
|
|
244
|
+
await coordinator.disconnect();
|
|
245
|
+
|
|
246
|
+
await expect(coordinator.set('key', 'value')).resolves.toBe('OK');
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
describe('multiple instances', () => {
|
|
251
|
+
it('should allow multiple coordinator instances', () => {
|
|
252
|
+
const coordinator1 = new RedisCoordinator();
|
|
253
|
+
const coordinator2 = new RedisCoordinator();
|
|
254
|
+
|
|
255
|
+
expect(coordinator1).toBeInstanceOf(RedisCoordinator);
|
|
256
|
+
expect(coordinator2).toBeInstanceOf(RedisCoordinator);
|
|
257
|
+
expect(coordinator1).not.toBe(coordinator2);
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
it('should not interfere with each other', async () => {
|
|
261
|
+
const coordinator1 = new RedisCoordinator();
|
|
262
|
+
const coordinator2 = new RedisCoordinator();
|
|
263
|
+
|
|
264
|
+
await coordinator1.set('key1', 'value1');
|
|
265
|
+
await coordinator2.set('key2', 'value2');
|
|
266
|
+
|
|
267
|
+
await expect(coordinator1.get('key1')).resolves.toBeNull();
|
|
268
|
+
await expect(coordinator2.get('key2')).resolves.toBeNull();
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
describe('edge cases', () => {
|
|
273
|
+
it('should handle very long keys', async () => {
|
|
274
|
+
const longKey = 'k'.repeat(10000);
|
|
275
|
+
await expect(coordinator.set(longKey, 'value')).resolves.toBe('OK');
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
it('should handle very long values', async () => {
|
|
279
|
+
const longValue = 'v'.repeat(10000);
|
|
280
|
+
await expect(coordinator.set('key', longValue)).resolves.toBe('OK');
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
it('should handle special characters in keys', async () => {
|
|
284
|
+
const specialKey = 'key:with:special_chars.123';
|
|
285
|
+
await expect(coordinator.set(specialKey, 'value')).resolves.toBe('OK');
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
it('should handle JSON values', async () => {
|
|
289
|
+
const jsonValue = JSON.stringify({ nested: { data: [1, 2, 3] } });
|
|
290
|
+
await expect(coordinator.set('key', jsonValue)).resolves.toBe('OK');
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
it('should handle Unicode in keys and values', async () => {
|
|
294
|
+
await expect(coordinator.set('键', '值')).resolves.toBe('OK');
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
it('should handle zero timeout for blpop', async () => {
|
|
298
|
+
await expect(coordinator.blpop('queue', 0)).resolves.toBeNull();
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
it('should handle large timeout for blpop', async () => {
|
|
302
|
+
await expect(coordinator.blpop('queue', 999999)).resolves.toBeNull();
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
it('should handle numeric queue names', async () => {
|
|
306
|
+
await expect(coordinator.lpush('12345', 'message')).resolves.toBe(0);
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
describe('placeholder implementation validation', () => {
|
|
311
|
+
it('should consistently return expected placeholder values', async () => {
|
|
312
|
+
expect(await coordinator.lpush('q', 'm')).toBe(0);
|
|
313
|
+
expect(await coordinator.blpop('q', 1)).toBeNull();
|
|
314
|
+
expect(await coordinator.hGetAll('k')).toEqual({});
|
|
315
|
+
expect(await coordinator.set('k', 'v')).toBe('OK');
|
|
316
|
+
expect(await coordinator.get('k')).toBeNull();
|
|
317
|
+
expect(await coordinator.sMembers('s')).toEqual([]);
|
|
318
|
+
expect(await coordinator.del('k')).toBe(0);
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
});
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for spawn-agents.ts
|
|
3
|
+
*
|
|
4
|
+
* Tests agent type validation, CLI command formatting,
|
|
5
|
+
* dry-run mode, and error handling.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { spawnAgents, spawnLoop3Agents, spawnLoop2Agents, type SpawnAgentsConfig } from '../src/helpers/spawn-agents';
|
|
9
|
+
|
|
10
|
+
describe('spawn-agents', () => {
|
|
11
|
+
describe('agent type validation', () => {
|
|
12
|
+
test('accepts loop3 agent type', async () => {
|
|
13
|
+
const config: SpawnAgentsConfig = {
|
|
14
|
+
taskId: 'test-task-1',
|
|
15
|
+
iteration: 1,
|
|
16
|
+
agents: ['loop3'],
|
|
17
|
+
originalContext: '{"task": "test"}',
|
|
18
|
+
dryRun: true,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const summary = await spawnAgents(config);
|
|
22
|
+
expect(summary.totalSpawned).toBe(1);
|
|
23
|
+
expect(summary.successCount).toBe(1);
|
|
24
|
+
expect(summary.results).toHaveLength(1);
|
|
25
|
+
expect(summary.results[0]!.agentType).toBe('loop3');
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('accepts loop2 agent type', async () => {
|
|
29
|
+
const config: SpawnAgentsConfig = {
|
|
30
|
+
taskId: 'test-task-2',
|
|
31
|
+
iteration: 1,
|
|
32
|
+
agents: ['loop2'],
|
|
33
|
+
originalContext: '{"task": "test"}',
|
|
34
|
+
dryRun: true,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const summary = await spawnAgents(config);
|
|
38
|
+
expect(summary.totalSpawned).toBe(1);
|
|
39
|
+
expect(summary.successCount).toBe(1);
|
|
40
|
+
expect(summary.results).toHaveLength(1);
|
|
41
|
+
expect(summary.results[0]!.agentType).toBe('loop2');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('rejects invalid agent type', async () => {
|
|
45
|
+
const config: SpawnAgentsConfig = {
|
|
46
|
+
taskId: 'test-task-3',
|
|
47
|
+
iteration: 1,
|
|
48
|
+
agents: ['invalid-agent'],
|
|
49
|
+
originalContext: '{"task": "test"}',
|
|
50
|
+
dryRun: true,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
await expect(spawnAgents(config)).rejects.toThrow('Invalid agent type');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test('validates all agents in array', async () => {
|
|
57
|
+
const config: SpawnAgentsConfig = {
|
|
58
|
+
taskId: 'test-task-4',
|
|
59
|
+
iteration: 1,
|
|
60
|
+
agents: ['loop3', 'unknown'],
|
|
61
|
+
originalContext: '{"task": "test"}',
|
|
62
|
+
dryRun: true,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
await expect(spawnAgents(config)).rejects.toThrow('Invalid agent type');
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
describe('CLI command formatting', () => {
|
|
70
|
+
test('formats valid spawn command for loop3', async () => {
|
|
71
|
+
const config: SpawnAgentsConfig = {
|
|
72
|
+
taskId: 'test-task-5',
|
|
73
|
+
iteration: 2,
|
|
74
|
+
agents: ['loop3'],
|
|
75
|
+
originalContext: 'test-context',
|
|
76
|
+
dryRun: true,
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const summary = await spawnAgents(config);
|
|
80
|
+
expect(summary.results).toHaveLength(1);
|
|
81
|
+
expect(summary.results[0]!.success).toBe(true);
|
|
82
|
+
expect(summary.results[0]!.agentType).toBe('loop3');
|
|
83
|
+
expect(summary.results[0]!.agentId).toMatch(/loop3-2-\d+/);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test('formats valid spawn command for loop2', async () => {
|
|
87
|
+
const config: SpawnAgentsConfig = {
|
|
88
|
+
taskId: 'test-task-6',
|
|
89
|
+
iteration: 3,
|
|
90
|
+
agents: ['loop2'],
|
|
91
|
+
originalContext: 'test-context',
|
|
92
|
+
dryRun: true,
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const summary = await spawnAgents(config);
|
|
96
|
+
expect(summary.results).toHaveLength(1);
|
|
97
|
+
expect(summary.results[0]!.success).toBe(true);
|
|
98
|
+
expect(summary.results[0]!.agentType).toBe('loop2');
|
|
99
|
+
expect(summary.results[0]!.agentId).toMatch(/loop2-3-\d+/);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test('sanitizes special characters in input', async () => {
|
|
103
|
+
const config: SpawnAgentsConfig = {
|
|
104
|
+
taskId: 'test-task-7!@#$',
|
|
105
|
+
iteration: 1,
|
|
106
|
+
agents: ['loop3'],
|
|
107
|
+
originalContext: 'context-with-special!@#$',
|
|
108
|
+
dryRun: true,
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const summary = await spawnAgents(config);
|
|
112
|
+
expect(summary.totalSpawned).toBe(1);
|
|
113
|
+
// Command should execute with sanitized inputs
|
|
114
|
+
expect(summary.successCount).toBe(1);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
describe('dry-run mode', () => {
|
|
119
|
+
test('dry-run mode logs command without executing', async () => {
|
|
120
|
+
const config: SpawnAgentsConfig = {
|
|
121
|
+
taskId: 'test-task-8',
|
|
122
|
+
iteration: 1,
|
|
123
|
+
agents: ['loop3'],
|
|
124
|
+
originalContext: '{"task": "dry-run-test"}',
|
|
125
|
+
dryRun: true,
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const summary = await spawnAgents(config);
|
|
129
|
+
expect(summary.totalSpawned).toBe(1);
|
|
130
|
+
expect(summary.successCount).toBe(1);
|
|
131
|
+
expect(summary.results).toHaveLength(1);
|
|
132
|
+
expect(summary.results[0]!.success).toBe(true);
|
|
133
|
+
expect(summary.results[0]!.pid).toBeUndefined();
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('dry-run mode succeeds for multiple agents', async () => {
|
|
137
|
+
const config: SpawnAgentsConfig = {
|
|
138
|
+
taskId: 'test-task-9',
|
|
139
|
+
iteration: 1,
|
|
140
|
+
agents: ['loop3', 'loop2'],
|
|
141
|
+
originalContext: 'context',
|
|
142
|
+
dryRun: true,
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const summary = await spawnAgents(config);
|
|
146
|
+
expect(summary.totalSpawned).toBe(2);
|
|
147
|
+
expect(summary.successCount).toBe(2);
|
|
148
|
+
expect(summary.results.every((r) => r.success)).toBe(true);
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
describe('error handling', () => {
|
|
153
|
+
test('throws error on missing task ID', async () => {
|
|
154
|
+
const config = {
|
|
155
|
+
taskId: '',
|
|
156
|
+
iteration: 1,
|
|
157
|
+
agents: ['loop3'],
|
|
158
|
+
originalContext: 'context',
|
|
159
|
+
dryRun: true,
|
|
160
|
+
} as SpawnAgentsConfig;
|
|
161
|
+
|
|
162
|
+
await expect(spawnAgents(config)).rejects.toThrow('Task ID is required');
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test('throws error on invalid iteration', async () => {
|
|
166
|
+
const config: SpawnAgentsConfig = {
|
|
167
|
+
taskId: 'test-task',
|
|
168
|
+
iteration: -1,
|
|
169
|
+
agents: ['loop3'],
|
|
170
|
+
originalContext: 'context',
|
|
171
|
+
dryRun: true,
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
await expect(spawnAgents(config)).rejects.toThrow('Iteration must be a non-negative integer');
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
test('throws error on empty agents array', async () => {
|
|
178
|
+
const config: SpawnAgentsConfig = {
|
|
179
|
+
taskId: 'test-task',
|
|
180
|
+
iteration: 1,
|
|
181
|
+
agents: [],
|
|
182
|
+
originalContext: 'context',
|
|
183
|
+
dryRun: true,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
await expect(spawnAgents(config)).rejects.toThrow('Agents array is required');
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
test('throws error on missing context', async () => {
|
|
190
|
+
const config = {
|
|
191
|
+
taskId: 'test-task',
|
|
192
|
+
iteration: 1,
|
|
193
|
+
agents: ['loop3'],
|
|
194
|
+
originalContext: '',
|
|
195
|
+
dryRun: true,
|
|
196
|
+
} as SpawnAgentsConfig;
|
|
197
|
+
|
|
198
|
+
await expect(spawnAgents(config)).rejects.toThrow('Original context is required');
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
describe('spawn summary', () => {
|
|
203
|
+
test('returns accurate spawn summary', async () => {
|
|
204
|
+
const config: SpawnAgentsConfig = {
|
|
205
|
+
taskId: 'test-task-10',
|
|
206
|
+
iteration: 1,
|
|
207
|
+
agents: ['loop3', 'loop2'],
|
|
208
|
+
originalContext: 'context',
|
|
209
|
+
dryRun: true,
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const summary = await spawnAgents(config);
|
|
213
|
+
expect(summary.totalSpawned).toBe(2);
|
|
214
|
+
expect(summary.successCount).toBe(2);
|
|
215
|
+
expect(summary.failureCount).toBe(0);
|
|
216
|
+
expect(summary.results).toHaveLength(2);
|
|
217
|
+
expect(summary.duration).toBeGreaterThan(0);
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
test('counts failures correctly', async () => {
|
|
221
|
+
// We can't easily trigger real failures in dry-run mode,
|
|
222
|
+
// but we can verify the structure is correct
|
|
223
|
+
const config: SpawnAgentsConfig = {
|
|
224
|
+
taskId: 'test-task-11',
|
|
225
|
+
iteration: 1,
|
|
226
|
+
agents: ['loop3'],
|
|
227
|
+
originalContext: 'context',
|
|
228
|
+
dryRun: true,
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
const summary = await spawnAgents(config);
|
|
232
|
+
expect(summary.successCount + summary.failureCount).toBe(summary.totalSpawned);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
describe('convenience functions', () => {
|
|
237
|
+
test('spawnLoop3Agents works correctly', async () => {
|
|
238
|
+
const summary = await spawnLoop3Agents('test-task-12', 1, 'context', true);
|
|
239
|
+
expect(summary.totalSpawned).toBe(1);
|
|
240
|
+
expect(summary.successCount).toBe(1);
|
|
241
|
+
expect(summary.results).toHaveLength(1);
|
|
242
|
+
expect(summary.results[0]!.agentType).toBe('loop3');
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
test('spawnLoop2Agents works correctly', async () => {
|
|
246
|
+
const summary = await spawnLoop2Agents('test-task-13', 2, 'context', true);
|
|
247
|
+
expect(summary.totalSpawned).toBe(1);
|
|
248
|
+
expect(summary.successCount).toBe(1);
|
|
249
|
+
expect(summary.results).toHaveLength(1);
|
|
250
|
+
expect(summary.results[0]!.agentType).toBe('loop2');
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
describe('iteration tracking', () => {
|
|
255
|
+
test('tracks iteration numbers in agent IDs', async () => {
|
|
256
|
+
const config: SpawnAgentsConfig = {
|
|
257
|
+
taskId: 'test-task-14',
|
|
258
|
+
iteration: 5,
|
|
259
|
+
agents: ['loop3'],
|
|
260
|
+
originalContext: 'context',
|
|
261
|
+
dryRun: true,
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
const summary = await spawnAgents(config);
|
|
265
|
+
expect(summary.results).toHaveLength(1);
|
|
266
|
+
expect(summary.results[0]!.agentId).toMatch(/loop3-5-/);
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
test('tracks instance numbers for duplicate agent types', async () => {
|
|
270
|
+
const config: SpawnAgentsConfig = {
|
|
271
|
+
taskId: 'test-task-15',
|
|
272
|
+
iteration: 1,
|
|
273
|
+
agents: ['loop3', 'loop3'],
|
|
274
|
+
originalContext: 'context',
|
|
275
|
+
dryRun: true,
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const summary = await spawnAgents(config);
|
|
279
|
+
expect(summary.results).toHaveLength(2);
|
|
280
|
+
expect(summary.results[0]!.agentId).toMatch(/loop3-1-1/);
|
|
281
|
+
expect(summary.results[1]!.agentId).toMatch(/loop3-1-2/);
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
});
|