claude-flow-novice 2.15.10 → 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/CLAUDE.md +9 -81
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +4 -4
- package/claude-assets/agents/cfn-dev-team/architecture/planner.md +4 -4
- package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +5 -5
- 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 +14 -4
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +63 -70
- package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +50 -70
- package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +13 -4
- package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +27 -58
- 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/accessibility-advocate-persona.md +4 -4
- package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +4 -4
- package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +4 -4
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +19 -27
- 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 +14 -70
- package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +25 -73
- package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +26 -65
- package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +5 -5
- package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +27 -67
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +16 -73
- package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +27 -67
- package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +27 -60
- package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +15 -74
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +14 -60
- package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +5 -5
- package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +4 -4
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +4 -4
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +16 -16
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +16 -32
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +17 -17
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +10 -5
- package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +12 -102
- package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +127 -814
- package/claude-assets/agents/cfn-dev-team/utility/researcher.md +16 -25
- package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +157 -667
- 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-definition-parser.js +37 -4
- package/dist/cli/agent-definition-parser.js.map +1 -1
- package/dist/cli/agent-executor.js +32 -2
- package/dist/cli/agent-executor.js.map +1 -1
- 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.map +1 -1
- 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 -976
- 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
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
+
##############################################################################
|
|
4
|
+
# DEPRECATED: Use ./dist/cli/orchestrator-cli.js instead
|
|
5
|
+
#
|
|
6
|
+
# This bash wrapper is preserved for reference only.
|
|
7
|
+
# Migrate to the TypeScript CLI for improved type safety and performance.
|
|
8
|
+
#
|
|
9
|
+
# NEW: ./dist/cli/orchestrator-cli.js --task-id <id> --mode <mode> ...
|
|
10
|
+
# OLD: ./orchestrate-wrapper.sh --task-id <id> --mode <mode> ...
|
|
11
|
+
##############################################################################
|
|
12
|
+
|
|
3
13
|
##############################################################################
|
|
4
14
|
# CFN Loop Orchestration Wrapper - Parameter Validation & Fallback Enforcement
|
|
5
|
-
# Version: 1.0.0 (BUG #22 Phase 2 - Parameter Fallback)
|
|
15
|
+
# Version: 1.0.0 (BUG #22 Phase 2 - Parameter Fallback) [DEPRECATED]
|
|
6
16
|
#
|
|
7
17
|
# Purpose:
|
|
8
18
|
# Validates and enforces non-empty parameters for orchestrate.sh invocation.
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
##############################################################################
|
|
4
|
+
# DEPRECATED: Use ./dist/cli/orchestrator-cli.js instead
|
|
5
|
+
#
|
|
6
|
+
# This bash wrapper is preserved for reference only.
|
|
7
|
+
# Migrate to the TypeScript CLI for improved type safety and performance.
|
|
8
|
+
#
|
|
9
|
+
# NEW: ./dist/cli/orchestrator-cli.js --task-id <id> --mode <mode> ...
|
|
10
|
+
# OLD: ./orchestrate.sh --task-id <id> --mode <mode> ...
|
|
11
|
+
##############################################################################
|
|
12
|
+
|
|
13
|
+
##############################################################################
|
|
14
|
+
# Bash Wrapper for TypeScript Orchestrator [DEPRECATED]
|
|
15
|
+
# Provides backward compatibility with bash-based orchestration
|
|
16
|
+
# Routes all calls to TypeScript implementation
|
|
17
|
+
#
|
|
18
|
+
# Usage:
|
|
19
|
+
# ./orchestrate-ts.sh --task-id <id> \
|
|
20
|
+
# --mode <mvp|standard|enterprise> \
|
|
21
|
+
# --max-iterations <n> \
|
|
22
|
+
# [--loop3-agents <agents>] \
|
|
23
|
+
# [--loop2-agents <agents>] \
|
|
24
|
+
# [--product-owner <agent>] \
|
|
25
|
+
# [--success-criteria <flag>]
|
|
26
|
+
##############################################################################
|
|
27
|
+
|
|
28
|
+
set -euo pipefail
|
|
29
|
+
|
|
30
|
+
# Determine script directory and project root
|
|
31
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
32
|
+
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
|
|
33
|
+
|
|
34
|
+
# Handle both locations: helpers/orchestrate-ts.sh and root orchestrate.sh
|
|
35
|
+
if [[ "$SCRIPT_DIR" == *"/helpers" ]]; then
|
|
36
|
+
ORCHESTRATION_SKILL="$SCRIPT_DIR/.."
|
|
37
|
+
else
|
|
38
|
+
ORCHESTRATION_SKILL="$SCRIPT_DIR"
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# Input validation
|
|
42
|
+
sanitize_input() {
|
|
43
|
+
local input="$1"
|
|
44
|
+
local max_length="${2:-256}"
|
|
45
|
+
|
|
46
|
+
input="${input:0:$max_length}"
|
|
47
|
+
echo "$input" | sed 's/[^a-zA-Z0-9._:, /-]//g'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
# Configuration
|
|
51
|
+
TASK_ID=""
|
|
52
|
+
MODE="standard"
|
|
53
|
+
MAX_ITERATIONS=10
|
|
54
|
+
LOOP3_AGENTS=""
|
|
55
|
+
LOOP2_AGENTS=""
|
|
56
|
+
PRODUCT_OWNER=""
|
|
57
|
+
SUCCESS_CRITERIA=""
|
|
58
|
+
|
|
59
|
+
# Parse arguments
|
|
60
|
+
while [[ $# -gt 0 ]]; do
|
|
61
|
+
case $1 in
|
|
62
|
+
--task-id)
|
|
63
|
+
if [[ $# -lt 2 ]]; then
|
|
64
|
+
echo "Error: --task-id requires a value" >&2
|
|
65
|
+
exit 1
|
|
66
|
+
fi
|
|
67
|
+
TASK_ID=$(sanitize_input "$2") || { echo "Invalid task ID"; exit 1; }
|
|
68
|
+
shift 2
|
|
69
|
+
;;
|
|
70
|
+
--mode)
|
|
71
|
+
if [[ $# -lt 2 ]]; then
|
|
72
|
+
echo "Error: --mode requires a value" >&2
|
|
73
|
+
exit 1
|
|
74
|
+
fi
|
|
75
|
+
MODE="$2"
|
|
76
|
+
if [[ ! "$MODE" =~ ^(mvp|standard|enterprise)$ ]]; then
|
|
77
|
+
echo "Invalid mode. Must be mvp, standard, or enterprise." >&2
|
|
78
|
+
exit 1
|
|
79
|
+
fi
|
|
80
|
+
shift 2
|
|
81
|
+
;;
|
|
82
|
+
--max-iterations)
|
|
83
|
+
if [[ $# -lt 2 ]]; then
|
|
84
|
+
echo "Error: --max-iterations requires a value" >&2
|
|
85
|
+
exit 1
|
|
86
|
+
fi
|
|
87
|
+
if [[ ! "$2" =~ ^[1-9][0-9]*$ ]]; then
|
|
88
|
+
echo "Max iterations must be a positive integer" >&2
|
|
89
|
+
exit 1
|
|
90
|
+
fi
|
|
91
|
+
if [[ "$2" -gt 100 ]]; then
|
|
92
|
+
echo "Max iterations cannot exceed 100" >&2
|
|
93
|
+
exit 1
|
|
94
|
+
fi
|
|
95
|
+
MAX_ITERATIONS="$2"
|
|
96
|
+
shift 2
|
|
97
|
+
;;
|
|
98
|
+
--loop3-agents)
|
|
99
|
+
if [[ $# -lt 2 ]]; then
|
|
100
|
+
echo "Error: --loop3-agents requires a value" >&2
|
|
101
|
+
exit 1
|
|
102
|
+
fi
|
|
103
|
+
LOOP3_AGENTS=$(sanitize_input "$2" 512) || { echo "Invalid loop3-agents"; exit 1; }
|
|
104
|
+
shift 2
|
|
105
|
+
;;
|
|
106
|
+
--loop2-agents)
|
|
107
|
+
if [[ $# -lt 2 ]]; then
|
|
108
|
+
echo "Error: --loop2-agents requires a value" >&2
|
|
109
|
+
exit 1
|
|
110
|
+
fi
|
|
111
|
+
LOOP2_AGENTS=$(sanitize_input "$2" 512) || { echo "Invalid loop2-agents"; exit 1; }
|
|
112
|
+
shift 2
|
|
113
|
+
;;
|
|
114
|
+
--product-owner)
|
|
115
|
+
if [[ $# -lt 2 ]]; then
|
|
116
|
+
echo "Error: --product-owner requires a value" >&2
|
|
117
|
+
exit 1
|
|
118
|
+
fi
|
|
119
|
+
PRODUCT_OWNER=$(sanitize_input "$2") || { echo "Invalid product-owner"; exit 1; }
|
|
120
|
+
shift 2
|
|
121
|
+
;;
|
|
122
|
+
--success-criteria)
|
|
123
|
+
if [[ $# -lt 2 ]]; then
|
|
124
|
+
echo "Error: --success-criteria requires a value" >&2
|
|
125
|
+
exit 1
|
|
126
|
+
fi
|
|
127
|
+
SUCCESS_CRITERIA="$2"
|
|
128
|
+
shift 2
|
|
129
|
+
;;
|
|
130
|
+
*)
|
|
131
|
+
echo "Error: Unknown option: '$1'" >&2
|
|
132
|
+
echo "Usage: $0 --task-id <id> --mode <mode> [--max-iterations <n>] [--loop3-agents <agents>] [--loop2-agents <agents>] [--product-owner <agent>] [--success-criteria <flag>]" >&2
|
|
133
|
+
exit 1
|
|
134
|
+
;;
|
|
135
|
+
esac
|
|
136
|
+
done
|
|
137
|
+
|
|
138
|
+
# Validate required arguments
|
|
139
|
+
if [ -z "$TASK_ID" ]; then
|
|
140
|
+
echo "Error: --task-id is required" >&2
|
|
141
|
+
exit 1
|
|
142
|
+
fi
|
|
143
|
+
|
|
144
|
+
# Ensure TypeScript is compiled
|
|
145
|
+
if [ ! -d "$ORCHESTRATION_SKILL/dist" ]; then
|
|
146
|
+
echo "Building TypeScript orchestrator..." >&2
|
|
147
|
+
cd "$ORCHESTRATION_SKILL"
|
|
148
|
+
npm run build >/dev/null 2>&1 || {
|
|
149
|
+
echo "Error: Failed to build TypeScript orchestrator" >&2
|
|
150
|
+
exit 1
|
|
151
|
+
}
|
|
152
|
+
fi
|
|
153
|
+
|
|
154
|
+
# Build the node invocation with all parameters
|
|
155
|
+
NODE_ARGS=(
|
|
156
|
+
"$ORCHESTRATION_SKILL/dist/orchestrate.js"
|
|
157
|
+
--task-id "$TASK_ID"
|
|
158
|
+
--mode "$MODE"
|
|
159
|
+
--max-iterations "$MAX_ITERATIONS"
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
# Add optional parameters if provided
|
|
163
|
+
if [[ -n "$LOOP3_AGENTS" ]]; then
|
|
164
|
+
NODE_ARGS+=(--loop3-agents "$LOOP3_AGENTS")
|
|
165
|
+
fi
|
|
166
|
+
|
|
167
|
+
if [[ -n "$LOOP2_AGENTS" ]]; then
|
|
168
|
+
NODE_ARGS+=(--loop2-agents "$LOOP2_AGENTS")
|
|
169
|
+
fi
|
|
170
|
+
|
|
171
|
+
if [[ -n "$PRODUCT_OWNER" ]]; then
|
|
172
|
+
NODE_ARGS+=(--product-owner "$PRODUCT_OWNER")
|
|
173
|
+
fi
|
|
174
|
+
|
|
175
|
+
if [[ -n "$SUCCESS_CRITERIA" ]]; then
|
|
176
|
+
NODE_ARGS+=(--success-criteria "$SUCCESS_CRITERIA")
|
|
177
|
+
fi
|
|
178
|
+
|
|
179
|
+
# Execute TypeScript orchestrator via Node
|
|
180
|
+
node "${NODE_ARGS[@]}"
|
|
181
|
+
|
|
182
|
+
exit $?
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
// E2E TypeScript Stack Validation - Fixed
|
|
2
|
+
console.log('=== E2E TypeScript Orchestration Stack Validation ===\n');
|
|
3
|
+
|
|
4
|
+
let totalTests = 0;
|
|
5
|
+
let passedTests = 0;
|
|
6
|
+
|
|
7
|
+
function test(name, fn) {
|
|
8
|
+
totalTests++;
|
|
9
|
+
console.log('TEST ' + totalTests + ': ' + name);
|
|
10
|
+
try {
|
|
11
|
+
fn();
|
|
12
|
+
passedTests++;
|
|
13
|
+
console.log('PASSED\n');
|
|
14
|
+
return true;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.error('FAILED:', error.message);
|
|
17
|
+
console.log('');
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Test 1: Module Loading
|
|
23
|
+
test('Module Loading', () => {
|
|
24
|
+
const orchestrate = require('./dist/orchestrate.js');
|
|
25
|
+
const spawnAgents = require('./dist/helpers/spawn-agents.js');
|
|
26
|
+
const contextInjector = require('./dist/helpers/context-injector.js');
|
|
27
|
+
const validator = require('./dist/helpers/validator.js');
|
|
28
|
+
const contextLookup = require('./dist/helpers/context-lookup.js');
|
|
29
|
+
const aggregator = require('./dist/helpers/confidence-aggregator.js');
|
|
30
|
+
const gateCheck = require('./dist/helpers/gate-check.js');
|
|
31
|
+
const iterationManager = require('./dist/helpers/iteration-manager.js');
|
|
32
|
+
const consensus = require('./dist/helpers/consensus.js');
|
|
33
|
+
const parseTestResults = require('./dist/helpers/parse-test-results.js');
|
|
34
|
+
|
|
35
|
+
console.log(' - orchestrate.js:', typeof orchestrate.Orchestrator);
|
|
36
|
+
console.log(' - spawn-agents.js:', typeof spawnAgents.spawnAgents);
|
|
37
|
+
console.log(' - context-injector.js:', typeof contextInjector.buildBroadcastContext);
|
|
38
|
+
console.log(' - validator.js:', typeof validator.ValidatorFactory);
|
|
39
|
+
console.log(' - context-lookup.js:', typeof contextLookup.createContextLookup);
|
|
40
|
+
console.log(' - confidence-aggregator.js:', typeof aggregator.aggregateScores);
|
|
41
|
+
console.log(' - gate-check.js:', typeof gateCheck.gateCheck);
|
|
42
|
+
console.log(' - iteration-manager.js:', typeof iterationManager.prepareIteration);
|
|
43
|
+
console.log(' - consensus.js:', typeof consensus.collectConsensus);
|
|
44
|
+
console.log(' - parse-test-results.js:', typeof parseTestResults.parseTestResults);
|
|
45
|
+
|
|
46
|
+
if (typeof orchestrate.Orchestrator !== 'function') throw new Error('Orchestrator missing');
|
|
47
|
+
if (typeof spawnAgents.spawnAgents !== 'function') throw new Error('spawnAgents missing');
|
|
48
|
+
if (typeof contextInjector.buildBroadcastContext !== 'function') throw new Error('buildBroadcastContext missing');
|
|
49
|
+
if (typeof validator.ValidatorFactory !== 'function') throw new Error('ValidatorFactory missing');
|
|
50
|
+
if (typeof contextLookup.createContextLookup !== 'function') throw new Error('createContextLookup missing');
|
|
51
|
+
if (typeof aggregator.aggregateScores !== 'function') throw new Error('aggregateScores missing');
|
|
52
|
+
if (typeof gateCheck.gateCheck !== 'function') throw new Error('gateCheck missing');
|
|
53
|
+
if (typeof iterationManager.prepareIteration !== 'function') throw new Error('prepareIteration missing');
|
|
54
|
+
if (typeof consensus.collectConsensus !== 'function') throw new Error('collectConsensus missing');
|
|
55
|
+
if (typeof parseTestResults.parseTestResults !== 'function') throw new Error('parseTestResults missing');
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// Test 2: Orchestrator Instantiation
|
|
59
|
+
test('Orchestrator Instantiation', () => {
|
|
60
|
+
const { Orchestrator } = require('./dist/orchestrate.js');
|
|
61
|
+
|
|
62
|
+
const config = {
|
|
63
|
+
taskId: 'e2e-test-task-123',
|
|
64
|
+
mode: 'standard',
|
|
65
|
+
maxIterations: 5,
|
|
66
|
+
loop3Agents: ['backend-developer', 'tester'],
|
|
67
|
+
loop2Agents: ['code-reviewer', 'security-specialist']
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const orch = new Orchestrator(config);
|
|
71
|
+
console.log(' - Task ID:', orch.config.taskId);
|
|
72
|
+
console.log(' - Mode:', orch.config.mode);
|
|
73
|
+
console.log(' - Max Iterations:', orch.config.maxIterations);
|
|
74
|
+
|
|
75
|
+
if (!orch.config.taskId) throw new Error('Task ID not set');
|
|
76
|
+
if (orch.config.mode !== 'standard') throw new Error('Mode not set correctly');
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// Test 3: Spawn Agents Helper
|
|
80
|
+
test('Spawn Agents Helper', () => {
|
|
81
|
+
const { spawnAgents } = require('./dist/helpers/spawn-agents.js');
|
|
82
|
+
|
|
83
|
+
const result = spawnAgents(
|
|
84
|
+
['backend-developer', 'tester'],
|
|
85
|
+
'test-task-456',
|
|
86
|
+
{ iteration: 1, mode: 'standard' }
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
console.log(' - Type:', typeof result);
|
|
90
|
+
console.log(' - Is Object:', typeof result === 'object' && result !== null);
|
|
91
|
+
console.log(' - Has commands:', !!result.commands);
|
|
92
|
+
|
|
93
|
+
if (typeof result !== 'object') throw new Error('Expected object result');
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// Test 4: Context Injector
|
|
97
|
+
test('Context Injector', () => {
|
|
98
|
+
const { buildBroadcastContext } = require('./dist/helpers/context-injector.js');
|
|
99
|
+
|
|
100
|
+
const result = buildBroadcastContext({
|
|
101
|
+
taskId: 'test-task-789',
|
|
102
|
+
iteration: 2,
|
|
103
|
+
phase: 'loop3',
|
|
104
|
+
mode: 'standard',
|
|
105
|
+
agentIds: ['agent-1', 'agent-2']
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
console.log(' - Has context:', !!result.context);
|
|
109
|
+
console.log(' - Has JSON:', !!result.json);
|
|
110
|
+
console.log(' - Message count:', result.messageCount);
|
|
111
|
+
console.log(' - Task ID:', result.context.taskId);
|
|
112
|
+
console.log(' - Iteration:', result.context.iteration);
|
|
113
|
+
|
|
114
|
+
if (!result.context) throw new Error('No context returned');
|
|
115
|
+
if (!result.json) throw new Error('No JSON returned');
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Test 5: Validator Factory
|
|
119
|
+
test('Validator Factory', () => {
|
|
120
|
+
const { ValidatorFactory } = require('./dist/helpers/validator.js');
|
|
121
|
+
|
|
122
|
+
const factory = new ValidatorFactory();
|
|
123
|
+
console.log(' - Factory created:', !!factory);
|
|
124
|
+
console.log(' - Factory type:', typeof factory);
|
|
125
|
+
console.log(' - Has createValidator method:', typeof factory.createValidator);
|
|
126
|
+
|
|
127
|
+
if (typeof factory.createValidator === 'function') {
|
|
128
|
+
const mvpValidator = factory.createValidator('mvp');
|
|
129
|
+
const standardValidator = factory.createValidator('standard');
|
|
130
|
+
console.log(' - MVP Validator created:', !!mvpValidator);
|
|
131
|
+
console.log(' - Standard Validator created:', !!standardValidator);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (!factory) throw new Error('Factory not created');
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// Test 6: Context Lookup
|
|
138
|
+
test('Context Lookup', () => {
|
|
139
|
+
const { createContextLookup } = require('./dist/helpers/context-lookup.js');
|
|
140
|
+
|
|
141
|
+
const lookup = createContextLookup();
|
|
142
|
+
console.log(' - Lookup created:', !!lookup);
|
|
143
|
+
console.log(' - Type:', typeof lookup);
|
|
144
|
+
console.log(' - Has redis:', !!lookup.redis);
|
|
145
|
+
console.log(' - Has logger:', !!lookup.logger);
|
|
146
|
+
|
|
147
|
+
if (!lookup) throw new Error('Lookup not created');
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
// Test 7: Confidence Aggregator
|
|
151
|
+
test('Confidence Aggregator', () => {
|
|
152
|
+
const { aggregateScores } = require('./dist/helpers/confidence-aggregator.js');
|
|
153
|
+
|
|
154
|
+
const mockScores = [
|
|
155
|
+
{ agentId: 'agent-1', score: 0.95, metadata: {} },
|
|
156
|
+
{ agentId: 'agent-2', score: 0.88, metadata: {} },
|
|
157
|
+
{ agentId: 'agent-3', score: 0.92, metadata: {} }
|
|
158
|
+
];
|
|
159
|
+
|
|
160
|
+
const result = aggregateScores(mockScores);
|
|
161
|
+
console.log(' - Result type:', typeof result);
|
|
162
|
+
console.log(' - Has statistics:', !!result.statistics);
|
|
163
|
+
console.log(' - Average:', result.statistics.average);
|
|
164
|
+
console.log(' - Median:', result.statistics.median);
|
|
165
|
+
|
|
166
|
+
if (!result.statistics) throw new Error('No statistics returned');
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// Test 8: Parse Test Results
|
|
170
|
+
test('Parse Test Results', () => {
|
|
171
|
+
const { parseTestResults } = require('./dist/helpers/parse-test-results.js');
|
|
172
|
+
|
|
173
|
+
const mockOutput = '10 passing\n2 failing';
|
|
174
|
+
|
|
175
|
+
const results = parseTestResults(mockOutput);
|
|
176
|
+
console.log(' - Result type:', typeof results);
|
|
177
|
+
console.log(' - Has passRate:', typeof results.passRate);
|
|
178
|
+
console.log(' - Has total:', typeof results.total);
|
|
179
|
+
console.log(' - Framework:', results.framework);
|
|
180
|
+
console.log(' - Pass rate:', results.passRate);
|
|
181
|
+
|
|
182
|
+
if (typeof results.passRate === 'undefined') throw new Error('No pass rate returned');
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// Test 9: Gate Check
|
|
186
|
+
test('Gate Check', () => {
|
|
187
|
+
const { gateCheck, getModeThreshold } = require('./dist/helpers/gate-check.js');
|
|
188
|
+
|
|
189
|
+
const threshold = getModeThreshold('standard');
|
|
190
|
+
console.log(' - Standard threshold:', threshold);
|
|
191
|
+
|
|
192
|
+
const passingGate = gateCheck({ passRate: 0.96, mode: 'standard' });
|
|
193
|
+
const failingGate = gateCheck({ passRate: 0.85, mode: 'standard' });
|
|
194
|
+
|
|
195
|
+
console.log(' - Passing gate (0.96):', passingGate.passed);
|
|
196
|
+
console.log(' - Failing gate (0.85):', failingGate.passed);
|
|
197
|
+
|
|
198
|
+
if (!passingGate.passed) throw new Error('Gate should pass for 0.96');
|
|
199
|
+
if (failingGate.passed) throw new Error('Gate should fail for 0.85');
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
// Test 10: Iteration Manager
|
|
203
|
+
test('Iteration Manager', () => {
|
|
204
|
+
const { prepareIteration, wakeAgents } = require('./dist/helpers/iteration-manager.js');
|
|
205
|
+
|
|
206
|
+
console.log(' - prepareIteration:', typeof prepareIteration);
|
|
207
|
+
console.log(' - wakeAgents:', typeof wakeAgents);
|
|
208
|
+
|
|
209
|
+
if (typeof prepareIteration !== 'function') throw new Error('prepareIteration not a function');
|
|
210
|
+
if (typeof wakeAgents !== 'function') throw new Error('wakeAgents not a function');
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// Summary
|
|
214
|
+
console.log('=== E2E Validation Summary ===');
|
|
215
|
+
console.log('Total Tests: ' + totalTests);
|
|
216
|
+
console.log('Passed: ' + passedTests);
|
|
217
|
+
console.log('Failed: ' + (totalTests - passedTests));
|
|
218
|
+
|
|
219
|
+
if (passedTests === totalTests) {
|
|
220
|
+
console.log('\nAll tests passed - Stack validated successfully');
|
|
221
|
+
console.log('\nValidated Modules:');
|
|
222
|
+
console.log(' Phase 1-2 (P0):');
|
|
223
|
+
console.log(' - parse-test-results.ts');
|
|
224
|
+
console.log(' - gate-check.ts');
|
|
225
|
+
console.log(' - iteration-manager.ts');
|
|
226
|
+
console.log(' - consensus.ts');
|
|
227
|
+
console.log(' - spawn-agents.ts');
|
|
228
|
+
console.log(' - context-injector.ts');
|
|
229
|
+
console.log(' - validator.ts');
|
|
230
|
+
console.log(' Phase 4 (P1):');
|
|
231
|
+
console.log(' - context-lookup.ts');
|
|
232
|
+
console.log(' - confidence-aggregator.ts');
|
|
233
|
+
console.log(' Main Orchestrator:');
|
|
234
|
+
console.log(' - orchestrate.ts');
|
|
235
|
+
console.log(' - orchestrator-cli.ts');
|
|
236
|
+
process.exit(0);
|
|
237
|
+
} else {
|
|
238
|
+
console.log('\n' + (totalTests - passedTests) + ' test(s) failed');
|
|
239
|
+
process.exit(1);
|
|
240
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// E2E TypeScript Stack Validation
|
|
2
|
+
console.log('=== E2E TypeScript Orchestration Stack Validation ===\n');
|
|
3
|
+
|
|
4
|
+
let totalTests = 0;
|
|
5
|
+
let passedTests = 0;
|
|
6
|
+
|
|
7
|
+
function test(name, fn) {
|
|
8
|
+
totalTests++;
|
|
9
|
+
console.log(`TEST ${totalTests}: ${name}`);
|
|
10
|
+
try {
|
|
11
|
+
fn();
|
|
12
|
+
passedTests++;
|
|
13
|
+
console.log('✅ PASSED\n');
|
|
14
|
+
} catch (error) {
|
|
15
|
+
console.error('❌ FAILED:', error.message);
|
|
16
|
+
console.error(error.stack);
|
|
17
|
+
console.log('');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Test 1: Module Loading
|
|
22
|
+
test('Module Loading', () => {
|
|
23
|
+
const orchestrate = require('./dist/orchestrate.js');
|
|
24
|
+
const spawnAgents = require('./dist/helpers/spawn-agents.js');
|
|
25
|
+
const contextInjector = require('./dist/helpers/context-injector.js');
|
|
26
|
+
const validator = require('./dist/helpers/validator.js');
|
|
27
|
+
const contextLookup = require('./dist/helpers/context-lookup.js');
|
|
28
|
+
const aggregator = require('./dist/helpers/confidence-aggregator.js');
|
|
29
|
+
const gateCheck = require('./dist/helpers/gate-check.js');
|
|
30
|
+
const iterationManager = require('./dist/helpers/iteration-manager.js');
|
|
31
|
+
const consensus = require('./dist/helpers/consensus.js');
|
|
32
|
+
const parseTestResults = require('./dist/helpers/parse-test-results.js');
|
|
33
|
+
|
|
34
|
+
console.log(' - orchestrate.js:', typeof orchestrate.Orchestrator);
|
|
35
|
+
console.log(' - spawn-agents.js:', typeof spawnAgents.spawnAgents);
|
|
36
|
+
console.log(' - context-injector.js:', typeof contextInjector.buildBroadcastContext);
|
|
37
|
+
console.log(' - validator.js:', typeof validator.ValidatorFactory);
|
|
38
|
+
console.log(' - context-lookup.js:', typeof contextLookup.createContextLookup);
|
|
39
|
+
console.log(' - confidence-aggregator.js:', typeof aggregator.aggregateScores);
|
|
40
|
+
console.log(' - gate-check.js:', Object.keys(gateCheck).join(', '));
|
|
41
|
+
console.log(' - iteration-manager.js:', Object.keys(iterationManager).join(', '));
|
|
42
|
+
console.log(' - consensus.js:', typeof consensus.collectConsensus);
|
|
43
|
+
console.log(' - parse-test-results.js:', typeof parseTestResults.parseTestResults);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// Test 2: Orchestrator Instantiation
|
|
47
|
+
test('Orchestrator Instantiation', () => {
|
|
48
|
+
const { Orchestrator } = require('./dist/orchestrate.js');
|
|
49
|
+
|
|
50
|
+
const config = {
|
|
51
|
+
taskId: 'e2e-test-task-123',
|
|
52
|
+
mode: 'standard',
|
|
53
|
+
maxIterations: 5,
|
|
54
|
+
loop3Agents: ['backend-developer', 'tester'],
|
|
55
|
+
loop2Agents: ['code-reviewer', 'security-specialist']
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const orch = new Orchestrator(config);
|
|
59
|
+
console.log(' - Task ID:', orch.config.taskId);
|
|
60
|
+
console.log(' - Mode:', orch.config.mode);
|
|
61
|
+
console.log(' - Max Iterations:', orch.config.maxIterations);
|
|
62
|
+
|
|
63
|
+
if (!orch.config.taskId) throw new Error('Task ID not set');
|
|
64
|
+
if (orch.config.mode !== 'standard') throw new Error('Mode not set correctly');
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Test 3: Spawn Agents Helper
|
|
68
|
+
test('Spawn Agents Helper', () => {
|
|
69
|
+
const { spawnAgents } = require('./dist/helpers/spawn-agents.js');
|
|
70
|
+
|
|
71
|
+
const result = spawnAgents(
|
|
72
|
+
['backend-developer', 'tester'],
|
|
73
|
+
'test-task-456',
|
|
74
|
+
{ iteration: 1, mode: 'standard' }
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
console.log(' - Type:', typeof result);
|
|
78
|
+
console.log(' - Is Object:', typeof result === 'object' && result !== null);
|
|
79
|
+
|
|
80
|
+
if (typeof result !== 'object') throw new Error('Expected object result');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// Test 4: Context Injector
|
|
84
|
+
test('Context Injector', () => {
|
|
85
|
+
const { buildBroadcastContext } = require('./dist/helpers/context-injector.js');
|
|
86
|
+
|
|
87
|
+
const result = buildBroadcastContext({
|
|
88
|
+
taskId: 'test-task-789',
|
|
89
|
+
iteration: 2,
|
|
90
|
+
phase: 'loop3',
|
|
91
|
+
mode: 'standard',
|
|
92
|
+
agentIds: ['agent-1', 'agent-2']
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
console.log(' - Has context:', !!result.context);
|
|
96
|
+
console.log(' - Has JSON:', !!result.json);
|
|
97
|
+
console.log(' - Message count:', result.messageCount);
|
|
98
|
+
console.log(' - Task ID:', result.context.taskId);
|
|
99
|
+
console.log(' - Iteration:', result.context.iteration);
|
|
100
|
+
|
|
101
|
+
if (!result.context) throw new Error('No context returned');
|
|
102
|
+
if (!result.json) throw new Error('No JSON returned');
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Test 5: Validator Factory
|
|
106
|
+
test('Validator Factory', () => {
|
|
107
|
+
const { ValidatorFactory } = require('./dist/helpers/validator.js');
|
|
108
|
+
|
|
109
|
+
const factory = new ValidatorFactory();
|
|
110
|
+
const mvpValidator = factory.createValidator('mvp');
|
|
111
|
+
const standardValidator = factory.createValidator('standard');
|
|
112
|
+
const enterpriseValidator = factory.createValidator('enterprise');
|
|
113
|
+
|
|
114
|
+
console.log(' - MVP Validator:', typeof mvpValidator.validate);
|
|
115
|
+
console.log(' - Standard Validator:', typeof standardValidator.validate);
|
|
116
|
+
console.log(' - Enterprise Validator:', typeof enterpriseValidator.validate);
|
|
117
|
+
|
|
118
|
+
if (typeof mvpValidator.validate !== 'function') throw new Error('MVP validator invalid');
|
|
119
|
+
if (typeof standardValidator.validate !== 'function') throw new Error('Standard validator invalid');
|
|
120
|
+
if (typeof enterpriseValidator.validate !== 'function') throw new Error('Enterprise validator invalid');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// Test 6: Context Lookup
|
|
124
|
+
test('Context Lookup', () => {
|
|
125
|
+
const { createContextLookup } = require('./dist/helpers/context-lookup.js');
|
|
126
|
+
|
|
127
|
+
const lookup = createContextLookup();
|
|
128
|
+
console.log(' - Has getContext:', typeof lookup.getContext);
|
|
129
|
+
console.log(' - Has getPreviousResults:', typeof lookup.getPreviousResults);
|
|
130
|
+
|
|
131
|
+
if (typeof lookup.getContext !== 'function') throw new Error('getContext not a function');
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
// Test 7: Confidence Aggregator
|
|
135
|
+
test('Confidence Aggregator', () => {
|
|
136
|
+
const { aggregateScores } = require('./dist/helpers/confidence-aggregator.js');
|
|
137
|
+
|
|
138
|
+
const mockScores = [
|
|
139
|
+
{ agentId: 'agent-1', confidence: 0.95, metadata: {} },
|
|
140
|
+
{ agentId: 'agent-2', confidence: 0.88, metadata: {} },
|
|
141
|
+
{ agentId: 'agent-3', confidence: 0.92, metadata: {} }
|
|
142
|
+
];
|
|
143
|
+
|
|
144
|
+
const stats = aggregateScores(mockScores);
|
|
145
|
+
console.log(' - Mean:', stats.mean.toFixed(2));
|
|
146
|
+
console.log(' - Median:', stats.median.toFixed(2));
|
|
147
|
+
console.log(' - Min:', stats.min.toFixed(2));
|
|
148
|
+
console.log(' - Max:', stats.max.toFixed(2));
|
|
149
|
+
|
|
150
|
+
if (stats.mean < 0.88 || stats.mean > 0.95) throw new Error('Mean calculation incorrect');
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// Test 8: Parse Test Results
|
|
154
|
+
test('Parse Test Results', () => {
|
|
155
|
+
const { parseTestResults } = require('./dist/helpers/parse-test-results.js');
|
|
156
|
+
|
|
157
|
+
const mockOutput = `
|
|
158
|
+
Tests: 10 passed, 2 failed, 12 total
|
|
159
|
+
Pass rate: 83.33%
|
|
160
|
+
`;
|
|
161
|
+
|
|
162
|
+
const results = parseTestResults(mockOutput);
|
|
163
|
+
console.log(' - Pass rate:', results.passRate.toFixed(2));
|
|
164
|
+
console.log(' - Total tests:', results.total);
|
|
165
|
+
console.log(' - Passed:', results.passed);
|
|
166
|
+
console.log(' - Failed:', results.failed);
|
|
167
|
+
|
|
168
|
+
if (results.total !== 12) throw new Error('Total count incorrect');
|
|
169
|
+
if (results.passed !== 10) throw new Error('Passed count incorrect');
|
|
170
|
+
if (results.failed !== 2) throw new Error('Failed count incorrect');
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// Test 9: Gate Check
|
|
174
|
+
test('Gate Check', () => {
|
|
175
|
+
const { gateCheck, getModeThreshold } = require('./dist/helpers/gate-check.js');
|
|
176
|
+
|
|
177
|
+
const threshold = getModeThreshold('standard');
|
|
178
|
+
console.log(' - Standard threshold:', threshold);
|
|
179
|
+
|
|
180
|
+
const passingGate = gateCheck(0.96, 'standard');
|
|
181
|
+
const failingGate = gateCheck(0.85, 'standard');
|
|
182
|
+
|
|
183
|
+
console.log(' - Passing gate (0.96):', passingGate);
|
|
184
|
+
console.log(' - Failing gate (0.85):', failingGate);
|
|
185
|
+
|
|
186
|
+
if (!passingGate) throw new Error('Gate should pass for 0.96');
|
|
187
|
+
if (failingGate) throw new Error('Gate should fail for 0.85');
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// Test 10: Iteration Manager
|
|
191
|
+
test('Iteration Manager', () => {
|
|
192
|
+
const { prepareIteration, wakeAgents } = require('./dist/helpers/iteration-manager.js');
|
|
193
|
+
|
|
194
|
+
console.log(' - prepareIteration:', typeof prepareIteration);
|
|
195
|
+
console.log(' - wakeAgents:', typeof wakeAgents);
|
|
196
|
+
|
|
197
|
+
if (typeof prepareIteration !== 'function') throw new Error('prepareIteration not a function');
|
|
198
|
+
if (typeof wakeAgents !== 'function') throw new Error('wakeAgents not a function');
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
// Summary
|
|
202
|
+
console.log('=== E2E Validation Summary ===');
|
|
203
|
+
console.log(`Total Tests: ${totalTests}`);
|
|
204
|
+
console.log(`Passed: ${passedTests}`);
|
|
205
|
+
console.log(`Failed: ${totalTests - passedTests}`);
|
|
206
|
+
|
|
207
|
+
if (passedTests === totalTests) {
|
|
208
|
+
console.log('\n✅ All tests passed - Stack validated successfully');
|
|
209
|
+
process.exit(0);
|
|
210
|
+
} else {
|
|
211
|
+
console.log(`\n❌ ${totalTests - passedTests} test(s) failed`);
|
|
212
|
+
process.exit(1);
|
|
213
|
+
}
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
"description": "TypeScript implementation of CFN Loop orchestration engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"orchestrator-cli": "./dist/cli/orchestrator-cli.js"
|
|
9
|
+
},
|
|
7
10
|
"scripts": {
|
|
8
11
|
"build": "tsc",
|
|
9
12
|
"build:watch": "tsc --watch",
|
|
10
13
|
"dev": "ts-node src/index.ts",
|
|
14
|
+
"dev:cli": "ts-node src/cli/orchestrator-cli.ts",
|
|
11
15
|
"test": "jest",
|
|
12
16
|
"test:watch": "jest --watch",
|
|
13
17
|
"test:coverage": "jest --coverage",
|